configure revision 262253
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for subversion 1.8.8.
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.8'
594PACKAGE_STRING='subversion 1.8.8'
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.8 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.8:";;
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.8
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_cxx_try_compile LINENO
1793# ----------------------------
1794# Try to compile conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_cxx_try_compile ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  rm -f conftest.$ac_objext
1799  if { { ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
1816	 test ! -s conftest.err
1817       } && test -s conftest.$ac_objext; then :
1818  ac_retval=0
1819else
1820  $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823	ac_retval=1
1824fi
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_cxx_try_compile
1829
1830# ac_fn_c_try_cpp LINENO
1831# ----------------------
1832# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833ac_fn_c_try_cpp ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if { { ac_try="$ac_cpp conftest.$ac_ext"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } > conftest.i && {
1852	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1853	 test ! -s conftest.err
1854       }; then :
1855  ac_retval=0
1856else
1857  $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860    ac_retval=1
1861fi
1862  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863  as_fn_set_status $ac_retval
1864
1865} # ac_fn_c_try_cpp
1866
1867# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868# -------------------------------------------------------
1869# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870# the include files in INCLUDES and setting the cache variable VAR
1871# accordingly.
1872ac_fn_c_check_header_mongrel ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  if eval \${$3+:} false; then :
1876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879  $as_echo_n "(cached) " >&6
1880fi
1881eval ac_res=\$$3
1882	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
1884else
1885  # Is the header compilable?
1886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887$as_echo_n "checking $2 usability... " >&6; }
1888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h.  */
1890$4
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  ac_header_compiler=yes
1895else
1896  ac_header_compiler=no
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900$as_echo "$ac_header_compiler" >&6; }
1901
1902# Is the header present?
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904$as_echo_n "checking $2 presence... " >&6; }
1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907#include <$2>
1908_ACEOF
1909if ac_fn_c_try_cpp "$LINENO"; then :
1910  ac_header_preproc=yes
1911else
1912  ac_header_preproc=no
1913fi
1914rm -f conftest.err conftest.i conftest.$ac_ext
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916$as_echo "$ac_header_preproc" >&6; }
1917
1918# So?  What about this header?
1919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920  yes:no: )
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925    ;;
1926  no:yes:* )
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1930$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1934$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937( $as_echo "## -------------------------------------------- ##
1938## Report this to http://subversion.apache.org/ ##
1939## -------------------------------------------- ##"
1940     ) | sed "s/^/$as_me: WARNING:     /" >&2
1941    ;;
1942esac
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  eval "$3=\$ac_header_compiler"
1949fi
1950eval ac_res=\$$3
1951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953fi
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956} # ac_fn_c_check_header_mongrel
1957
1958# ac_fn_c_try_run LINENO
1959# ----------------------
1960# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961# that executables *can* be run.
1962ac_fn_c_try_run ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  if { { ac_try="$ac_link"
1966case "(($ac_try" in
1967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968  *) ac_try_echo=$ac_try;;
1969esac
1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971$as_echo "$ac_try_echo"; } >&5
1972  (eval "$ac_link") 2>&5
1973  ac_status=$?
1974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976  { { case "(($ac_try" in
1977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978  *) ac_try_echo=$ac_try;;
1979esac
1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981$as_echo "$ac_try_echo"; } >&5
1982  (eval "$ac_try") 2>&5
1983  ac_status=$?
1984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985  test $ac_status = 0; }; }; then :
1986  ac_retval=0
1987else
1988  $as_echo "$as_me: program exited with status $ac_status" >&5
1989       $as_echo "$as_me: failed program was:" >&5
1990sed 's/^/| /' conftest.$ac_ext >&5
1991
1992       ac_retval=$ac_status
1993fi
1994  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996  as_fn_set_status $ac_retval
1997
1998} # ac_fn_c_try_run
1999
2000# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001# -------------------------------------------------------
2002# Tests whether HEADER exists and can be compiled using the include files in
2003# INCLUDES, setting the cache variable VAR accordingly.
2004ac_fn_c_check_header_compile ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008$as_echo_n "checking for $2... " >&6; }
2009if eval \${$3+:} false; then :
2010  $as_echo_n "(cached) " >&6
2011else
2012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h.  */
2014$4
2015#include <$2>
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018  eval "$3=yes"
2019else
2020  eval "$3=no"
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023fi
2024eval ac_res=\$$3
2025	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029} # ac_fn_c_check_header_compile
2030
2031# ac_fn_c_try_link LINENO
2032# -----------------------
2033# Try to link conftest.$ac_ext, and return whether this succeeded.
2034ac_fn_c_try_link ()
2035{
2036  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037  rm -f conftest.$ac_objext conftest$ac_exeext
2038  if { { ac_try="$ac_link"
2039case "(($ac_try" in
2040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041  *) ac_try_echo=$ac_try;;
2042esac
2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044$as_echo "$ac_try_echo"; } >&5
2045  (eval "$ac_link") 2>conftest.err
2046  ac_status=$?
2047  if test -s conftest.err; then
2048    grep -v '^ *+' conftest.err >conftest.er1
2049    cat conftest.er1 >&5
2050    mv -f conftest.er1 conftest.err
2051  fi
2052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053  test $ac_status = 0; } && {
2054	 test -z "$ac_c_werror_flag" ||
2055	 test ! -s conftest.err
2056       } && test -s conftest$ac_exeext && {
2057	 test "$cross_compiling" = yes ||
2058	 test -x conftest$ac_exeext
2059       }; then :
2060  ac_retval=0
2061else
2062  $as_echo "$as_me: failed program was:" >&5
2063sed 's/^/| /' conftest.$ac_ext >&5
2064
2065	ac_retval=1
2066fi
2067  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2068  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2069  # interfere with the next link command; also delete a directory that is
2070  # left behind by Apple's compiler.  We do this before executing the actions.
2071  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073  as_fn_set_status $ac_retval
2074
2075} # ac_fn_c_try_link
2076
2077# ac_fn_c_check_func LINENO FUNC VAR
2078# ----------------------------------
2079# Tests whether FUNC exists, setting the cache variable VAR accordingly
2080ac_fn_c_check_func ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084$as_echo_n "checking for $2... " >&6; }
2085if eval \${$3+:} false; then :
2086  $as_echo_n "(cached) " >&6
2087else
2088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2092#define $2 innocuous_$2
2093
2094/* System header to define __stub macros and hopefully few prototypes,
2095    which can conflict with char $2 (); below.
2096    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097    <limits.h> exists even on freestanding compilers.  */
2098
2099#ifdef __STDC__
2100# include <limits.h>
2101#else
2102# include <assert.h>
2103#endif
2104
2105#undef $2
2106
2107/* Override any GCC internal prototype to avoid an error.
2108   Use char because int might match the return type of a GCC
2109   builtin and then its argument prototype would still apply.  */
2110#ifdef __cplusplus
2111extern "C"
2112#endif
2113char $2 ();
2114/* The GNU C library defines this for functions which it implements
2115    to always fail with ENOSYS.  Some functions are actually named
2116    something starting with __ and the normal name is an alias.  */
2117#if defined __stub_$2 || defined __stub___$2
2118choke me
2119#endif
2120
2121int
2122main ()
2123{
2124return $2 ();
2125  ;
2126  return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_link "$LINENO"; then :
2130  eval "$3=yes"
2131else
2132  eval "$3=no"
2133fi
2134rm -f core conftest.err conftest.$ac_objext \
2135    conftest$ac_exeext conftest.$ac_ext
2136fi
2137eval ac_res=\$$3
2138	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142} # ac_fn_c_check_func
2143
2144# ac_fn_cxx_try_cpp LINENO
2145# ------------------------
2146# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147ac_fn_cxx_try_cpp ()
2148{
2149  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150  if { { ac_try="$ac_cpp conftest.$ac_ext"
2151case "(($ac_try" in
2152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153  *) ac_try_echo=$ac_try;;
2154esac
2155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156$as_echo "$ac_try_echo"; } >&5
2157  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158  ac_status=$?
2159  if test -s conftest.err; then
2160    grep -v '^ *+' conftest.err >conftest.er1
2161    cat conftest.er1 >&5
2162    mv -f conftest.er1 conftest.err
2163  fi
2164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165  test $ac_status = 0; } > conftest.i && {
2166	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2167	 test ! -s conftest.err
2168       }; then :
2169  ac_retval=0
2170else
2171  $as_echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174    ac_retval=1
2175fi
2176  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177  as_fn_set_status $ac_retval
2178
2179} # ac_fn_cxx_try_cpp
2180
2181# ac_fn_cxx_try_link LINENO
2182# -------------------------
2183# Try to link conftest.$ac_ext, and return whether this succeeded.
2184ac_fn_cxx_try_link ()
2185{
2186  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187  rm -f conftest.$ac_objext conftest$ac_exeext
2188  if { { ac_try="$ac_link"
2189case "(($ac_try" in
2190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191  *) ac_try_echo=$ac_try;;
2192esac
2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194$as_echo "$ac_try_echo"; } >&5
2195  (eval "$ac_link") 2>conftest.err
2196  ac_status=$?
2197  if test -s conftest.err; then
2198    grep -v '^ *+' conftest.err >conftest.er1
2199    cat conftest.er1 >&5
2200    mv -f conftest.er1 conftest.err
2201  fi
2202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203  test $ac_status = 0; } && {
2204	 test -z "$ac_cxx_werror_flag" ||
2205	 test ! -s conftest.err
2206       } && test -s conftest$ac_exeext && {
2207	 test "$cross_compiling" = yes ||
2208	 test -x conftest$ac_exeext
2209       }; then :
2210  ac_retval=0
2211else
2212  $as_echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215	ac_retval=1
2216fi
2217  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2218  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2219  # interfere with the next link command; also delete a directory that is
2220  # left behind by Apple's compiler.  We do this before executing the actions.
2221  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2222  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223  as_fn_set_status $ac_retval
2224
2225} # ac_fn_cxx_try_link
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.8, 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.8" >&5
2665$as_echo "$as_me: Configuring Subversion 1.8.8" >&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.  */
3514
3515_ACEOF
3516if ac_fn_c_try_compile "$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.  */
3541
3542_ACEOF
3543if ac_fn_c_try_compile "$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.  */
3568
3569_ACEOF
3570if ac_fn_c_try_compile "$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 conftest.$ac_ext
3585  ac_ext=c
3586ac_cpp='$CPP $CPPFLAGS'
3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
3591
3592
3593
3594fi
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596  ac_ext=c
3597ac_cpp='$CPP $CPPFLAGS'
3598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601
3602
3603
3604
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607  ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
3614
3615  CMODEFLAGS="$CFLAGS"
3616  CFLAGS="$CFLAGS_KEEP"
3617
3618
3619
3620
3621  _svn_xxflags__save="$CFLAGS"
3622  ac_ext=c
3623ac_cpp='$CPP $CPPFLAGS'
3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3629$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3630  CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634_ACEOF
3635if ac_fn_c_try_compile "$LINENO"; then :
3636
3637    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638$as_echo "yes" >&6; }
3639
3640
3641else
3642
3643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
3645    CFLAGS="$_svn_xxflags__save"
3646
3647
3648fi
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650  ac_ext=c
3651ac_cpp='$CPP $CPPFLAGS'
3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656
3657
3658
3659# Look for a C++ compiler (before anything can set CXXFLAGS)
3660CXXMAINTAINERFLAGS="$CXXUSERFLAGS"
3661CXXUSERFLAGS="$CXXFLAGS"
3662ac_ext=cpp
3663ac_cpp='$CXXCPP $CPPFLAGS'
3664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3667if test -z "$CXX"; then
3668  if test -n "$CCC"; then
3669    CXX=$CCC
3670  else
3671    if test -n "$ac_tool_prefix"; then
3672  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3673  do
3674    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677$as_echo_n "checking for $ac_word... " >&6; }
3678if ${ac_cv_prog_CXX+:} false; then :
3679  $as_echo_n "(cached) " >&6
3680else
3681  if test -n "$CXX"; then
3682  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689    for ac_exec_ext in '' $ac_executable_extensions; do
3690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693    break 2
3694  fi
3695done
3696  done
3697IFS=$as_save_IFS
3698
3699fi
3700fi
3701CXX=$ac_cv_prog_CXX
3702if test -n "$CXX"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3704$as_echo "$CXX" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711    test -n "$CXX" && break
3712  done
3713fi
3714if test -z "$CXX"; then
3715  ac_ct_CXX=$CXX
3716  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3717do
3718  # Extract the first word of "$ac_prog", so it can be a program name with args.
3719set dummy $ac_prog; ac_word=$2
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721$as_echo_n "checking for $ac_word... " >&6; }
3722if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3723  $as_echo_n "(cached) " >&6
3724else
3725  if test -n "$ac_ct_CXX"; then
3726  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731  IFS=$as_save_IFS
3732  test -z "$as_dir" && as_dir=.
3733    for ac_exec_ext in '' $ac_executable_extensions; do
3734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735    ac_cv_prog_ac_ct_CXX="$ac_prog"
3736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737    break 2
3738  fi
3739done
3740  done
3741IFS=$as_save_IFS
3742
3743fi
3744fi
3745ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3746if test -n "$ac_ct_CXX"; then
3747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3748$as_echo "$ac_ct_CXX" >&6; }
3749else
3750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751$as_echo "no" >&6; }
3752fi
3753
3754
3755  test -n "$ac_ct_CXX" && break
3756done
3757
3758  if test "x$ac_ct_CXX" = x; then
3759    CXX="g++"
3760  else
3761    case $cross_compiling:$ac_tool_warned in
3762yes:)
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765ac_tool_warned=yes ;;
3766esac
3767    CXX=$ac_ct_CXX
3768  fi
3769fi
3770
3771  fi
3772fi
3773# Provide some information about the compiler.
3774$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3775set X $ac_compile
3776ac_compiler=$2
3777for ac_option in --version -v -V -qversion; do
3778  { { ac_try="$ac_compiler $ac_option >&5"
3779case "(($ac_try" in
3780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781  *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784$as_echo "$ac_try_echo"; } >&5
3785  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786  ac_status=$?
3787  if test -s conftest.err; then
3788    sed '10a\
3789... rest of stderr output deleted ...
3790         10q' conftest.err >conftest.er1
3791    cat conftest.er1 >&5
3792  fi
3793  rm -f conftest.er1 conftest.err
3794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }
3796done
3797
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3799$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3800if ${ac_cv_cxx_compiler_gnu+:} false; then :
3801  $as_echo_n "(cached) " >&6
3802else
3803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809#ifndef __GNUC__
3810       choke me
3811#endif
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817if ac_fn_cxx_try_compile "$LINENO"; then :
3818  ac_compiler_gnu=yes
3819else
3820  ac_compiler_gnu=no
3821fi
3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3824
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3827$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3828if test $ac_compiler_gnu = yes; then
3829  GXX=yes
3830else
3831  GXX=
3832fi
3833ac_test_CXXFLAGS=${CXXFLAGS+set}
3834ac_save_CXXFLAGS=$CXXFLAGS
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3836$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3837if ${ac_cv_prog_cxx_g+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3841   ac_cxx_werror_flag=yes
3842   ac_cv_prog_cxx_g=no
3843   CXXFLAGS="-g"
3844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846
3847int
3848main ()
3849{
3850
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855if ac_fn_cxx_try_compile "$LINENO"; then :
3856  ac_cv_prog_cxx_g=yes
3857else
3858  CXXFLAGS=""
3859      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861
3862int
3863main ()
3864{
3865
3866  ;
3867  return 0;
3868}
3869_ACEOF
3870if ac_fn_cxx_try_compile "$LINENO"; then :
3871
3872else
3873  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3874	 CXXFLAGS="-g"
3875	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h.  */
3877
3878int
3879main ()
3880{
3881
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886if ac_fn_cxx_try_compile "$LINENO"; then :
3887  ac_cv_prog_cxx_g=yes
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890fi
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3895fi
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3897$as_echo "$ac_cv_prog_cxx_g" >&6; }
3898if test "$ac_test_CXXFLAGS" = set; then
3899  CXXFLAGS=$ac_save_CXXFLAGS
3900elif test $ac_cv_prog_cxx_g = yes; then
3901  if test "$GXX" = yes; then
3902    CXXFLAGS="-g -O2"
3903  else
3904    CXXFLAGS="-g"
3905  fi
3906else
3907  if test "$GXX" = yes; then
3908    CXXFLAGS="-O2"
3909  else
3910    CXXFLAGS=
3911  fi
3912fi
3913ac_ext=c
3914ac_cpp='$CPP $CPPFLAGS'
3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919
3920
3921  CXXFLAGS_KEEP="$CXXFLAGS"
3922  CXXFLAGS=""
3923
3924
3925  _svn_xxflags__save="$CXXFLAGS"
3926  ac_ext=cpp
3927ac_cpp='$CXXCPP $CPPFLAGS'
3928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3931
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
3933$as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
3934  CXXFLAGS="-std=c++98 $CXXFLAGS"
3935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937
3938_ACEOF
3939if ac_fn_cxx_try_compile "$LINENO"; then :
3940
3941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942$as_echo "yes" >&6; }
3943
3944
3945else
3946
3947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948$as_echo "no" >&6; }
3949    CXXFLAGS="$_svn_xxflags__save"
3950
3951
3952fi
3953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954  ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960
3961
3962  CXXMODEFLAGS="$CXXFLAGS"
3963  CXXFLAGS="$CXXFLAGS_KEEP"
3964
3965
3966
3967
3968  _svn_xxflags__save="$CXXFLAGS"
3969  ac_ext=cpp
3970ac_cpp='$CXXCPP $CPPFLAGS'
3971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3974
3975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
3976$as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
3977  CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
3978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980
3981_ACEOF
3982if ac_fn_cxx_try_compile "$LINENO"; then :
3983
3984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985$as_echo "yes" >&6; }
3986
3987
3988else
3989
3990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992    CXXFLAGS="$_svn_xxflags__save"
3993
3994
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997  ac_ext=c
3998ac_cpp='$CPP $CPPFLAGS'
3999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003
4004
4005
4006# Look for a C pre-processor
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4013$as_echo_n "checking how to run the C preprocessor... " >&6; }
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016  CPP=
4017fi
4018if test -z "$CPP"; then
4019  if ${ac_cv_prog_CPP+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022      # Double quotes because CPP needs to be expanded
4023    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024    do
4025      ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028  # Use a header file that comes with gcc, so configuring glibc
4029  # with a fresh cross-compiler works.
4030  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031  # <limits.h> exists even on freestanding compilers.
4032  # On the NeXT, cc -E runs the code through the compiler's parser,
4033  # not just through cpp. "Syntax error" is here to catch this case.
4034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036#ifdef __STDC__
4037# include <limits.h>
4038#else
4039# include <assert.h>
4040#endif
4041		     Syntax error
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044
4045else
4046  # Broken: fails on valid input.
4047continue
4048fi
4049rm -f conftest.err conftest.i conftest.$ac_ext
4050
4051  # OK, works on sane cases.  Now check whether nonexistent headers
4052  # can be detected and how.
4053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055#include <ac_nonexistent.h>
4056_ACEOF
4057if ac_fn_c_try_cpp "$LINENO"; then :
4058  # Broken: success on invalid input.
4059continue
4060else
4061  # Passes both tests.
4062ac_preproc_ok=:
4063break
4064fi
4065rm -f conftest.err conftest.i conftest.$ac_ext
4066
4067done
4068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4069rm -f conftest.i conftest.err conftest.$ac_ext
4070if $ac_preproc_ok; then :
4071  break
4072fi
4073
4074    done
4075    ac_cv_prog_CPP=$CPP
4076
4077fi
4078  CPP=$ac_cv_prog_CPP
4079else
4080  ac_cv_prog_CPP=$CPP
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4083$as_echo "$CPP" >&6; }
4084ac_preproc_ok=false
4085for ac_c_preproc_warn_flag in '' yes
4086do
4087  # Use a header file that comes with gcc, so configuring glibc
4088  # with a fresh cross-compiler works.
4089  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090  # <limits.h> exists even on freestanding compilers.
4091  # On the NeXT, cc -E runs the code through the compiler's parser,
4092  # not just through cpp. "Syntax error" is here to catch this case.
4093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095#ifdef __STDC__
4096# include <limits.h>
4097#else
4098# include <assert.h>
4099#endif
4100		     Syntax error
4101_ACEOF
4102if ac_fn_c_try_cpp "$LINENO"; then :
4103
4104else
4105  # Broken: fails on valid input.
4106continue
4107fi
4108rm -f conftest.err conftest.i conftest.$ac_ext
4109
4110  # OK, works on sane cases.  Now check whether nonexistent headers
4111  # can be detected and how.
4112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114#include <ac_nonexistent.h>
4115_ACEOF
4116if ac_fn_c_try_cpp "$LINENO"; then :
4117  # Broken: success on invalid input.
4118continue
4119else
4120  # Passes both tests.
4121ac_preproc_ok=:
4122break
4123fi
4124rm -f conftest.err conftest.i conftest.$ac_ext
4125
4126done
4127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128rm -f conftest.i conftest.err conftest.$ac_ext
4129if $ac_preproc_ok; then :
4130
4131else
4132  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4134as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4135See \`config.log' for more details" "$LINENO" 5; }
4136fi
4137
4138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145# Look for a good sed
4146# AC_PROG_SED was introduced in Autoconf 2.59b
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4148$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4149if ${ac_cv_path_SED+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4153     for ac_i in 1 2 3 4 5 6 7; do
4154       ac_script="$ac_script$as_nl$ac_script"
4155     done
4156     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4157     { ac_script=; unset ac_script;}
4158     if test -z "$SED"; then
4159  ac_path_SED_found=false
4160  # Loop through the user's path and test for each of PROGNAME-LIST
4161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166    for ac_prog in sed gsed; do
4167    for ac_exec_ext in '' $ac_executable_extensions; do
4168      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4169      as_fn_executable_p "$ac_path_SED" || continue
4170# Check for GNU ac_path_SED and select it if it is found.
4171  # Check for GNU $ac_path_SED
4172case `"$ac_path_SED" --version 2>&1` in
4173*GNU*)
4174  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4175*)
4176  ac_count=0
4177  $as_echo_n 0123456789 >"conftest.in"
4178  while :
4179  do
4180    cat "conftest.in" "conftest.in" >"conftest.tmp"
4181    mv "conftest.tmp" "conftest.in"
4182    cp "conftest.in" "conftest.nl"
4183    $as_echo '' >> "conftest.nl"
4184    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186    as_fn_arith $ac_count + 1 && ac_count=$as_val
4187    if test $ac_count -gt ${ac_path_SED_max-0}; then
4188      # Best one so far, save it but keep looking for a better one
4189      ac_cv_path_SED="$ac_path_SED"
4190      ac_path_SED_max=$ac_count
4191    fi
4192    # 10*(2^10) chars as input seems more than enough
4193    test $ac_count -gt 10 && break
4194  done
4195  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196esac
4197
4198      $ac_path_SED_found && break 3
4199    done
4200  done
4201  done
4202IFS=$as_save_IFS
4203  if test -z "$ac_cv_path_SED"; then
4204    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4205  fi
4206else
4207  ac_cv_path_SED=$SED
4208fi
4209
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4212$as_echo "$ac_cv_path_SED" >&6; }
4213 SED="$ac_cv_path_SED"
4214  rm -f conftest.sed
4215
4216
4217# Grab target_cpu, so we can use it in the Solaris pkginfo file
4218# Make sure we can run config.sub.
4219$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4220  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4221
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4223$as_echo_n "checking build system type... " >&6; }
4224if ${ac_cv_build+:} false; then :
4225  $as_echo_n "(cached) " >&6
4226else
4227  ac_build_alias=$build_alias
4228test "x$ac_build_alias" = x &&
4229  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4230test "x$ac_build_alias" = x &&
4231  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4232ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4233  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4234
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4237$as_echo "$ac_cv_build" >&6; }
4238case $ac_cv_build in
4239*-*-*) ;;
4240*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4241esac
4242build=$ac_cv_build
4243ac_save_IFS=$IFS; IFS='-'
4244set x $ac_cv_build
4245shift
4246build_cpu=$1
4247build_vendor=$2
4248shift; shift
4249# Remember, the first character of IFS is used to create $*,
4250# except with old shells:
4251build_os=$*
4252IFS=$ac_save_IFS
4253case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4254
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4257$as_echo_n "checking host system type... " >&6; }
4258if ${ac_cv_host+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  if test "x$host_alias" = x; then
4262  ac_cv_host=$ac_cv_build
4263else
4264  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4265    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4266fi
4267
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4270$as_echo "$ac_cv_host" >&6; }
4271case $ac_cv_host in
4272*-*-*) ;;
4273*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4274esac
4275host=$ac_cv_host
4276ac_save_IFS=$IFS; IFS='-'
4277set x $ac_cv_host
4278shift
4279host_cpu=$1
4280host_vendor=$2
4281shift; shift
4282# Remember, the first character of IFS is used to create $*,
4283# except with old shells:
4284host_os=$*
4285IFS=$ac_save_IFS
4286case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4287
4288
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4290$as_echo_n "checking target system type... " >&6; }
4291if ${ac_cv_target+:} false; then :
4292  $as_echo_n "(cached) " >&6
4293else
4294  if test "x$target_alias" = x; then
4295  ac_cv_target=$ac_cv_host
4296else
4297  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4298    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4299fi
4300
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4303$as_echo "$ac_cv_target" >&6; }
4304case $ac_cv_target in
4305*-*-*) ;;
4306*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4307esac
4308target=$ac_cv_target
4309ac_save_IFS=$IFS; IFS='-'
4310set x $ac_cv_target
4311shift
4312target_cpu=$1
4313target_vendor=$2
4314shift; shift
4315# Remember, the first character of IFS is used to create $*,
4316# except with old shells:
4317target_os=$*
4318IFS=$ac_save_IFS
4319case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4320
4321
4322# The aliases save the names the user supplied, while $host etc.
4323# will get canonicalized.
4324test -n "$target_alias" &&
4325  test "$program_prefix$program_suffix$program_transform_name" = \
4326    NONENONEs,x,x, &&
4327  program_prefix=${target_alias}-
4328
4329# Look for an extended grep
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4331$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4332if ${ac_cv_path_GREP+:} false; then :
4333  $as_echo_n "(cached) " >&6
4334else
4335  if test -z "$GREP"; then
4336  ac_path_GREP_found=false
4337  # Loop through the user's path and test for each of PROGNAME-LIST
4338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4340do
4341  IFS=$as_save_IFS
4342  test -z "$as_dir" && as_dir=.
4343    for ac_prog in grep ggrep; do
4344    for ac_exec_ext in '' $ac_executable_extensions; do
4345      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4346      as_fn_executable_p "$ac_path_GREP" || continue
4347# Check for GNU ac_path_GREP and select it if it is found.
4348  # Check for GNU $ac_path_GREP
4349case `"$ac_path_GREP" --version 2>&1` in
4350*GNU*)
4351  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4352*)
4353  ac_count=0
4354  $as_echo_n 0123456789 >"conftest.in"
4355  while :
4356  do
4357    cat "conftest.in" "conftest.in" >"conftest.tmp"
4358    mv "conftest.tmp" "conftest.in"
4359    cp "conftest.in" "conftest.nl"
4360    $as_echo 'GREP' >> "conftest.nl"
4361    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363    as_fn_arith $ac_count + 1 && ac_count=$as_val
4364    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4365      # Best one so far, save it but keep looking for a better one
4366      ac_cv_path_GREP="$ac_path_GREP"
4367      ac_path_GREP_max=$ac_count
4368    fi
4369    # 10*(2^10) chars as input seems more than enough
4370    test $ac_count -gt 10 && break
4371  done
4372  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373esac
4374
4375      $ac_path_GREP_found && break 3
4376    done
4377  done
4378  done
4379IFS=$as_save_IFS
4380  if test -z "$ac_cv_path_GREP"; then
4381    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4382  fi
4383else
4384  ac_cv_path_GREP=$GREP
4385fi
4386
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4389$as_echo "$ac_cv_path_GREP" >&6; }
4390 GREP="$ac_cv_path_GREP"
4391
4392
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4394$as_echo_n "checking for egrep... " >&6; }
4395if ${ac_cv_path_EGREP+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4399   then ac_cv_path_EGREP="$GREP -E"
4400   else
4401     if test -z "$EGREP"; then
4402  ac_path_EGREP_found=false
4403  # Loop through the user's path and test for each of PROGNAME-LIST
4404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406do
4407  IFS=$as_save_IFS
4408  test -z "$as_dir" && as_dir=.
4409    for ac_prog in egrep; do
4410    for ac_exec_ext in '' $ac_executable_extensions; do
4411      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4412      as_fn_executable_p "$ac_path_EGREP" || continue
4413# Check for GNU ac_path_EGREP and select it if it is found.
4414  # Check for GNU $ac_path_EGREP
4415case `"$ac_path_EGREP" --version 2>&1` in
4416*GNU*)
4417  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4418*)
4419  ac_count=0
4420  $as_echo_n 0123456789 >"conftest.in"
4421  while :
4422  do
4423    cat "conftest.in" "conftest.in" >"conftest.tmp"
4424    mv "conftest.tmp" "conftest.in"
4425    cp "conftest.in" "conftest.nl"
4426    $as_echo 'EGREP' >> "conftest.nl"
4427    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429    as_fn_arith $ac_count + 1 && ac_count=$as_val
4430    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4431      # Best one so far, save it but keep looking for a better one
4432      ac_cv_path_EGREP="$ac_path_EGREP"
4433      ac_path_EGREP_max=$ac_count
4434    fi
4435    # 10*(2^10) chars as input seems more than enough
4436    test $ac_count -gt 10 && break
4437  done
4438  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4439esac
4440
4441      $ac_path_EGREP_found && break 3
4442    done
4443  done
4444  done
4445IFS=$as_save_IFS
4446  if test -z "$ac_cv_path_EGREP"; then
4447    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4448  fi
4449else
4450  ac_cv_path_EGREP=$EGREP
4451fi
4452
4453   fi
4454fi
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4456$as_echo "$ac_cv_path_EGREP" >&6; }
4457 EGREP="$ac_cv_path_EGREP"
4458
4459
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4462$as_echo_n "checking whether ln -s works... " >&6; }
4463LN_S=$as_ln_s
4464if test "$LN_S" = "ln -s"; then
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4466$as_echo "yes" >&6; }
4467else
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4469$as_echo "no, using $LN_S" >&6; }
4470fi
4471
4472
4473# Find a good install program.  We prefer a C program (faster),
4474# so one script is as good as another.  But avoid the broken or
4475# incompatible versions:
4476# SysV /etc/install, /usr/sbin/install
4477# SunOS /usr/etc/install
4478# IRIX /sbin/install
4479# AIX /bin/install
4480# AmigaOS /C/install, which installs bootblocks on floppy discs
4481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4484# OS/2's system install, which has a completely different semantic
4485# ./install, which can be erroneously created by make from ./install.sh.
4486# Reject install programs that cannot install multiple files.
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4488$as_echo_n "checking for a BSD-compatible install... " >&6; }
4489if test -z "$INSTALL"; then
4490if ${ac_cv_path_install+:} false; then :
4491  $as_echo_n "(cached) " >&6
4492else
4493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496  IFS=$as_save_IFS
4497  test -z "$as_dir" && as_dir=.
4498    # Account for people who put trailing slashes in PATH elements.
4499case $as_dir/ in #((
4500  ./ | .// | /[cC]/* | \
4501  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4502  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4503  /usr/ucb/* ) ;;
4504  *)
4505    # OSF1 and SCO ODT 3.0 have their own names for install.
4506    # Don't use installbsd from OSF since it installs stuff as root
4507    # by default.
4508    for ac_prog in ginstall scoinst install; do
4509      for ac_exec_ext in '' $ac_executable_extensions; do
4510	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4511	  if test $ac_prog = install &&
4512	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4513	    # AIX install.  It has an incompatible calling convention.
4514	    :
4515	  elif test $ac_prog = install &&
4516	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4517	    # program-specific install script used by HP pwplus--don't use.
4518	    :
4519	  else
4520	    rm -rf conftest.one conftest.two conftest.dir
4521	    echo one > conftest.one
4522	    echo two > conftest.two
4523	    mkdir conftest.dir
4524	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4525	      test -s conftest.one && test -s conftest.two &&
4526	      test -s conftest.dir/conftest.one &&
4527	      test -s conftest.dir/conftest.two
4528	    then
4529	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4530	      break 3
4531	    fi
4532	  fi
4533	fi
4534      done
4535    done
4536    ;;
4537esac
4538
4539  done
4540IFS=$as_save_IFS
4541
4542rm -rf conftest.one conftest.two conftest.dir
4543
4544fi
4545  if test "${ac_cv_path_install+set}" = set; then
4546    INSTALL=$ac_cv_path_install
4547  else
4548    # As a last resort, use the slow shell script.  Don't cache a
4549    # value for INSTALL within a source directory, because that will
4550    # break other packages using the cache if that directory is
4551    # removed, or if the value is a relative name.
4552    INSTALL=$ac_install_sh
4553  fi
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4556$as_echo "$INSTALL" >&6; }
4557
4558# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4559# It thinks the first close brace ends the variable substitution.
4560test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4561
4562test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4563
4564test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4565
4566# If $INSTALL is relative path to our fallback install-sh, then convert
4567# to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4568# may try to use it from a changed working directory.
4569if test "$INSTALL" = "build/install-sh -c"; then
4570  INSTALL="$abs_srcdir/$INSTALL"
4571fi
4572
4573if test -z "$MKDIR"; then
4574  MKDIR="$INSTALL -d"
4575fi
4576
4577
4578# ==== Libraries, for which we may have source to build ======================
4579
4580
4581APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\. 2\."
4582
4583
4584  APR_WANTED_REGEXES="$APR_VER_REGEXES"
4585
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4587$as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4588
4589
4590  apr_found="no"
4591
4592  if test "$ac_cv_emxos2" = "yes"; then
4593    # Scripts don't pass test -x on OS/2
4594    TEST_X="test -f"
4595  else
4596    TEST_X="test -x"
4597  fi
4598
4599  acceptable_majors="1 0"
4600
4601  apr_temp_acceptable_apr_config=""
4602  for apr_temp_major in $acceptable_majors
4603  do
4604    case $apr_temp_major in
4605      0)
4606      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4607      ;;
4608      *)
4609      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4610      ;;
4611    esac
4612  done
4613
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4615$as_echo_n "checking for APR... " >&6; }
4616
4617# Check whether --with-apr was given.
4618if test "${with_apr+set}" = set; then :
4619  withval=$with_apr;
4620    if test "$withval" = "no" || test "$withval" = "yes"; then
4621      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4622    fi
4623
4624    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4625    do
4626      for lookdir in "$withval/bin" "$withval"
4627      do
4628        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4629          apr_found="yes"
4630          apr_config="$lookdir/$apr_temp_apr_config_file"
4631          break 2
4632        fi
4633      done
4634    done
4635
4636    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4637      apr_found="yes"
4638      apr_config="$withval"
4639    fi
4640
4641            if test "$apr_found" != "yes"; then
4642      as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4643    fi
4644
4645else
4646
4647        if test -d """"; then
4648      apr_temp_abs_srcdir="`cd "" && pwd`"
4649      apr_found="reconfig"
4650      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4651      case $apr_bundled_major in
4652        "")
4653          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4654        ;;
4655        0)
4656          apr_temp_apr_config_file="apr-config"
4657        ;;
4658        *)
4659          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4660        ;;
4661      esac
4662      if test -n """"; then
4663        apr_config="""/$apr_temp_apr_config_file"
4664      else
4665        apr_config="""/$apr_temp_apr_config_file"
4666      fi
4667    fi
4668    if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4669      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4670      do
4671        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4672          apr_found="yes"
4673          apr_config="$apr_temp_apr_config_file"
4674          break
4675        else
4676                    for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4677            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4678              apr_found="yes"
4679              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4680              break 2
4681            fi
4682          done
4683        fi
4684      done
4685    fi
4686
4687fi
4688
4689
4690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4691$as_echo "$apr_found" >&6; }
4692
4693
4694  if test $apr_found = "no"; then
4695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4696$as_echo "$as_me: WARNING: APR not found" >&2;}
4697
4698  echo "The Apache Portable Runtime (APR) library cannot be found."
4699  echo "Please install APR on this system and configure Subversion"
4700  echo "with the appropriate --with-apr option."
4701  echo ""
4702  echo "You probably need to do something similar with the Apache"
4703  echo "Portable Runtime Utility (APRUTIL) library and then configure"
4704  echo "Subversion with both the --with-apr and --with-apr-util options."
4705  echo ""
4706  as_fn_error $? "no suitable APR found" "$LINENO" 5
4707
4708  fi
4709
4710  if test $apr_found = "reconfig"; then
4711    as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4712  fi
4713
4714
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4716$as_echo_n "checking APR version... " >&6; }
4717  apr_version="`$apr_config --version`"
4718  if test $? -ne 0; then
4719    as_fn_error $? "apr-config --version failed" "$LINENO" 5
4720  fi
4721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4722$as_echo "$apr_version" >&6; }
4723
4724  APR_WANTED_REGEX_MATCH=0
4725  for apr_wanted_regex in $APR_WANTED_REGEXES; do
4726    if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4727      APR_WANTED_REGEX_MATCH=1
4728      break
4729    fi
4730  done
4731
4732  if test $APR_WANTED_REGEX_MATCH -eq 0; then
4733    echo "wanted regexes are $APR_WANTED_REGEXES"
4734    as_fn_error $? "invalid apr version found" "$LINENO" 5
4735  fi
4736
4737
4738  CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4739  if test $? -ne 0; then
4740    as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4741  fi
4742
4743  CFLAGS="$CFLAGS `$apr_config --cflags`"
4744  if test $? -ne 0; then
4745    as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4746  fi
4747
4748  apr_ldflags="`$apr_config --ldflags`"
4749  if test $? -ne 0; then
4750    as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4751  fi
4752  LDFLAGS="$LDFLAGS `
4753  input_flags="$apr_ldflags"
4754  output_flags=""
4755  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4756  for flag in $input_flags; do
4757    filter="no"
4758    for dir in $filtered_dirs; do
4759      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4760        filter="yes"
4761        break
4762      fi
4763    done
4764    if test "$filter" = "no"; then
4765      output_flags="$output_flags $flag"
4766    fi
4767  done
4768  if test -n "$output_flags"; then
4769    printf "%s" "${output_flags# }"
4770  fi
4771`"
4772
4773  SVN_APR_INCLUDES="`$apr_config --includes`"
4774  if test $? -ne 0; then
4775    as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4776  fi
4777
4778  if test "$enable_all_static" = "yes"; then
4779    SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4780    if test $? -ne 0; then
4781      as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4782    fi
4783  else
4784    SVN_APR_LIBS="`$apr_config --link-ld`"
4785    if test $? -ne 0; then
4786      as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4787    fi
4788  fi
4789  SVN_APR_LIBS="`
4790  input_flags="$SVN_APR_LIBS"
4791  output_flags=""
4792  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4793  for flag in $input_flags; do
4794    filter="no"
4795    for dir in $filtered_dirs; do
4796      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4797        filter="yes"
4798        break
4799      fi
4800    done
4801    if test "$filter" = "no"; then
4802      output_flags="$output_flags $flag"
4803    fi
4804  done
4805  if test -n "$output_flags"; then
4806    printf "%s" "${output_flags# }"
4807  fi
4808`"
4809
4810  SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4811  if test $? -ne 0; then
4812    as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4813  fi
4814
4815  SVN_APR_CONFIG="$apr_config"
4816
4817
4818
4819
4820
4821
4822if test `expr $apr_version : 2` -ne 0; then
4823      svn_lib_ver=2
4824    apu_config=$apr_config
4825
4826  SVN_APRUTIL_CONFIG="$apu_config"
4827
4828
4829else
4830  svn_lib_ver=0
4831  APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\."
4832
4833  APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4834
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4836$as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4837
4838
4839  apu_found="no"
4840
4841  if test "$ac_cv_emxos2" = "yes"; then
4842    # Scripts don't pass test -x on OS/2
4843    TEST_X="test -f"
4844  else
4845    TEST_X="test -x"
4846  fi
4847
4848  acceptable_majors="1 0"
4849
4850  apu_temp_acceptable_apu_config=""
4851  for apu_temp_major in $acceptable_majors
4852  do
4853    case $apu_temp_major in
4854      0)
4855      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4856      ;;
4857      *)
4858      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4859      ;;
4860    esac
4861  done
4862
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4864$as_echo_n "checking for APR-util... " >&6; }
4865
4866# Check whether --with-apr-util was given.
4867if test "${with_apr_util+set}" = set; then :
4868  withval=$with_apr_util;
4869    if test "$withval" = "no" || test "$withval" = "yes"; then
4870      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4871    fi
4872
4873    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4874    do
4875      for lookdir in "$withval/bin" "$withval"
4876      do
4877        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4878          apu_found="yes"
4879          apu_config="$lookdir/$apu_temp_apu_config_file"
4880          break 2
4881        fi
4882      done
4883    done
4884
4885    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4886      apu_found="yes"
4887      apu_config="$withval"
4888    fi
4889
4890            if test "$apu_found" != "yes"; then
4891      as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
4892    fi
4893
4894else
4895
4896        if test -d """"; then
4897      apu_temp_abs_srcdir="`cd "" && pwd`"
4898      apu_found="reconfig"
4899      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
4900      case $apu_bundled_major in
4901        "")
4902          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4903        ;;
4904        0)
4905          apu_temp_apu_config_file="apu-config"
4906        ;;
4907        *)
4908          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4909        ;;
4910      esac
4911      if test -n """"; then
4912        apu_config="""/$apu_temp_apu_config_file"
4913      else
4914        apu_config="""/$apu_temp_apu_config_file"
4915      fi
4916    fi
4917    if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
4918      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4919      do
4920        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4921          apu_found="yes"
4922          apu_config="$apu_temp_apu_config_file"
4923          break
4924        else
4925                    for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4926            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4927              apu_found="yes"
4928              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4929              break 2
4930            fi
4931          done
4932        fi
4933      done
4934    fi
4935
4936fi
4937
4938
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4940$as_echo "$apu_found" >&6; }
4941
4942
4943  if test $apu_found = "no"; then
4944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
4945$as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
4946
4947  echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
4948  echo "Install APRUTIL on this system and configure Subversion with the"
4949  echo " appropriate --with-apr-util option."
4950  echo ""
4951  as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
4952
4953  fi
4954
4955  if test $apu_found = "reconfig"; then
4956    as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
4957  fi
4958
4959
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
4961$as_echo_n "checking APRUTIL version... " >&6; }
4962  apu_version="`$apu_config --version`"
4963  if test $? -ne 0; then
4964    # This is a hack as suggested by Ben Collins-Sussman.  It can be
4965    # removed after apache 2.0.44 has been released.  (The apu-config
4966    # shipped in 2.0.43 contains a correct version number, but
4967    # stupidly doesn't understand the --version switch.)
4968    apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
4969    #AC_MSG_ERROR([
4970    #    apu-config --version failed.
4971    #    Your apu-config doesn't support the --version switch, please upgrade
4972    #    to APR-UTIL more recent than 2002-Nov-05.])
4973  fi
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
4975$as_echo "$apu_version" >&6; }
4976
4977  APU_WANTED_REGEX_MATCH=0
4978  for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
4979    if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
4980      APU_WANTED_REGEX_MATCH=1
4981      break
4982    fi
4983  done
4984
4985  if test $APU_WANTED_REGEX_MATCH -eq 0; then
4986    echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
4987    as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
4988  fi
4989
4990
4991  apu_ldflags="`$apu_config --ldflags`"
4992  if test $? -ne 0; then
4993    as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
4994  fi
4995  LDFLAGS="$LDFLAGS `
4996  input_flags="$apu_ldflags"
4997  output_flags=""
4998  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4999  for flag in $input_flags; do
5000    filter="no"
5001    for dir in $filtered_dirs; do
5002      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5003        filter="yes"
5004        break
5005      fi
5006    done
5007    if test "$filter" = "no"; then
5008      output_flags="$output_flags $flag"
5009    fi
5010  done
5011  if test -n "$output_flags"; then
5012    printf "%s" "${output_flags# }"
5013  fi
5014`"
5015
5016  SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5017  if test $? -ne 0; then
5018    as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5019  fi
5020
5021  if test "$enable_all_static" = "yes"; then
5022    SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5023    if test $? -ne 0; then
5024      as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5025    fi
5026  else
5027    SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5028    if test $? -ne 0; then
5029      as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5030    fi
5031  fi
5032  SVN_APRUTIL_LIBS="`
5033  input_flags="$SVN_APRUTIL_LIBS"
5034  output_flags=""
5035  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5036  for flag in $input_flags; do
5037    filter="no"
5038    for dir in $filtered_dirs; do
5039      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5040        filter="yes"
5041        break
5042      fi
5043    done
5044    if test "$filter" = "no"; then
5045      output_flags="$output_flags $flag"
5046    fi
5047  done
5048  if test -n "$output_flags"; then
5049    printf "%s" "${output_flags# }"
5050  fi
5051`"
5052
5053
5054  SVN_APRUTIL_CONFIG="$apu_config"
5055
5056
5057
5058    SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5059  if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5060
5061$as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5062
5063  fi
5064
5065fi
5066SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5067
5068
5069cat >>confdefs.h <<_ACEOF
5070#define SVN_SOVERSION $svn_lib_ver
5071_ACEOF
5072
5073
5074# Extract the first word of "pkg-config", so it can be a program name with args.
5075set dummy pkg-config; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_path_PKG_CONFIG+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  case $PKG_CONFIG in
5082  [\\/]* | ?:[\\/]*)
5083  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5084  ;;
5085  *)
5086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089  IFS=$as_save_IFS
5090  test -z "$as_dir" && as_dir=.
5091    for ac_exec_ext in '' $ac_executable_extensions; do
5092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095    break 2
5096  fi
5097done
5098  done
5099IFS=$as_save_IFS
5100
5101  ;;
5102esac
5103fi
5104PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5105if test -n "$PKG_CONFIG"; then
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5107$as_echo "$PKG_CONFIG" >&6; }
5108else
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112
5113
5114
5115
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5117$as_echo_n "checking for ANSI C header files... " >&6; }
5118if ${ac_cv_header_stdc+:} false; then :
5119  $as_echo_n "(cached) " >&6
5120else
5121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h.  */
5123#include <stdlib.h>
5124#include <stdarg.h>
5125#include <string.h>
5126#include <float.h>
5127
5128int
5129main ()
5130{
5131
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136if ac_fn_c_try_compile "$LINENO"; then :
5137  ac_cv_header_stdc=yes
5138else
5139  ac_cv_header_stdc=no
5140fi
5141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142
5143if test $ac_cv_header_stdc = yes; then
5144  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147#include <string.h>
5148
5149_ACEOF
5150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151  $EGREP "memchr" >/dev/null 2>&1; then :
5152
5153else
5154  ac_cv_header_stdc=no
5155fi
5156rm -f conftest*
5157
5158fi
5159
5160if test $ac_cv_header_stdc = yes; then
5161  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h.  */
5164#include <stdlib.h>
5165
5166_ACEOF
5167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5168  $EGREP "free" >/dev/null 2>&1; then :
5169
5170else
5171  ac_cv_header_stdc=no
5172fi
5173rm -f conftest*
5174
5175fi
5176
5177if test $ac_cv_header_stdc = yes; then
5178  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5179  if test "$cross_compiling" = yes; then :
5180  :
5181else
5182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184#include <ctype.h>
5185#include <stdlib.h>
5186#if ((' ' & 0x0FF) == 0x020)
5187# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5188# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5189#else
5190# define ISLOWER(c) \
5191		   (('a' <= (c) && (c) <= 'i') \
5192		     || ('j' <= (c) && (c) <= 'r') \
5193		     || ('s' <= (c) && (c) <= 'z'))
5194# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5195#endif
5196
5197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5198int
5199main ()
5200{
5201  int i;
5202  for (i = 0; i < 256; i++)
5203    if (XOR (islower (i), ISLOWER (i))
5204	|| toupper (i) != TOUPPER (i))
5205      return 2;
5206  return 0;
5207}
5208_ACEOF
5209if ac_fn_c_try_run "$LINENO"; then :
5210
5211else
5212  ac_cv_header_stdc=no
5213fi
5214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5215  conftest.$ac_objext conftest.beam conftest.$ac_ext
5216fi
5217
5218fi
5219fi
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5221$as_echo "$ac_cv_header_stdc" >&6; }
5222if test $ac_cv_header_stdc = yes; then
5223
5224$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5225
5226fi
5227
5228# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5229for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5230		  inttypes.h stdint.h unistd.h
5231do :
5232  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5233ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5234"
5235if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5236  cat >>confdefs.h <<_ACEOF
5237#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238_ACEOF
5239
5240fi
5241
5242done
5243
5244
5245
5246  serf_found=no
5247  serf_required=no
5248  serf_skip=no
5249
5250  serf_check_major="1"
5251  serf_check_minor="2"
5252  serf_check_patch="1"
5253  serf_check_version="1.2.1"
5254
5255
5256# Check whether --with-serf was given.
5257if test "${with_serf+set}" = set; then :
5258  withval=$with_serf;
5259    if test "$withval" = "yes" ; then
5260      serf_required=yes
5261    elif test "$withval" = "no" ; then
5262      serf_skip=yes
5263    else
5264
5265  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5266$as_echo "$as_me: serf library configuration via prefix" >&6;}
5267  serf_required=yes
5268  serf_prefix=$withval
5269  for serf_major in serf-2 serf-1; do
5270    if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5271    save_cppflags="$CPPFLAGS"
5272    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5273    for ac_header in serf.h
5274do :
5275  ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5276if test "x$ac_cv_header_serf_h" = xyes; then :
5277  cat >>confdefs.h <<_ACEOF
5278#define HAVE_SERF_H 1
5279_ACEOF
5280
5281      save_ldflags="$LDFLAGS"
5282      LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5283      as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5285$as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5286if eval \${$as_ac_Lib+:} false; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  ac_check_lib_save_LIBS=$LIBS
5290LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h.  */
5293
5294/* Override any GCC internal prototype to avoid an error.
5295   Use char because int might match the return type of a GCC
5296   builtin and then its argument prototype would still apply.  */
5297#ifdef __cplusplus
5298extern "C"
5299#endif
5300char serf_context_create ();
5301int
5302main ()
5303{
5304return serf_context_create ();
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309if ac_fn_c_try_link "$LINENO"; then :
5310  eval "$as_ac_Lib=yes"
5311else
5312  eval "$as_ac_Lib=no"
5313fi
5314rm -f core conftest.err conftest.$ac_objext \
5315    conftest$ac_exeext conftest.$ac_ext
5316LIBS=$ac_check_lib_save_LIBS
5317fi
5318eval ac_res=\$$as_ac_Lib
5319	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5320$as_echo "$ac_res" >&6; }
5321if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5322
5323        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h.  */
5325
5326#include <stdlib.h>
5327#include "serf.h"
5328
5329int
5330main ()
5331{
5332
5333#if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5334#error Serf version too old: need $serf_check_version
5335#endif
5336
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341if ac_fn_c_try_compile "$LINENO"; then :
5342  serf_found=yes
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5345$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5346      serf_found=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349fi
5350
5351    LDFLAGS="$save_ldflags"
5352fi
5353
5354done
5355
5356    CPPFLAGS="$save_cppflags"
5357    test $serf_found = yes && break
5358  done
5359
5360  if test $serf_found = "yes"; then
5361    SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5362    if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5363      SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5364    else
5365      SVN_SERF_LIBS="-l$serf_major"
5366      LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5367    fi
5368  fi
5369
5370    fi
5371
5372fi
5373
5374
5375  if test "$serf_skip" = "no" ; then
5376    if test "$serf_found" = "no" ; then
5377
5378  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5379$as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5380  if test -n "$PKG_CONFIG"; then
5381    for serf_major in serf-2 serf-1; do
5382      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5383$as_echo_n "checking for $serf_major library... " >&6; }
5384      if $PKG_CONFIG $serf_major --exists; then
5385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5386$as_echo "yes" >&6; }
5387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5388$as_echo_n "checking serf library version... " >&6; }
5389        SERF_VERSION=`$PKG_CONFIG $serf_major --modversion`
5390        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5391$as_echo "$SERF_VERSION" >&6; }
5392        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5393$as_echo_n "checking serf version is suitable... " >&6; }
5394        if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
5395          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396$as_echo "yes" >&6; }
5397          serf_found=yes
5398          SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`
5399          SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
5400          break
5401        else
5402          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5405$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5406        fi
5407      else
5408        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409$as_echo "no" >&6; }
5410      fi
5411    done
5412  fi
5413
5414    fi
5415
5416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5417$as_echo_n "checking was serf enabled... " >&6; }
5418    if test "$serf_found" = "yes"; then
5419      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5420$as_echo "yes" >&6; }
5421    else
5422      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424
5425  echo ""
5426  echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5427  echo "will not be built.  If you want to build libsvn_ra_serf, please"
5428  echo "install serf $serf_check_version or newer."
5429  echo ""
5430
5431      if test "$serf_required" = "yes"; then
5432        as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5433      fi
5434    fi
5435  fi
5436
5437  svn_lib_serf=$serf_found
5438
5439
5440
5441
5442
5443if test "$svn_lib_serf" = "yes"; then
5444
5445$as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5446
5447fi
5448
5449
5450  apr_memcache_found=no
5451
5452
5453# Check whether --with-apr_memcache was given.
5454if test "${with_apr_memcache+set}" = set; then :
5455  withval=$with_apr_memcache;
5456    if test "$withval" = "yes" ; then
5457      as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5458    else
5459      { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5460$as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5461      apr_memcache_prefix=$withval
5462      save_cppflags="$CPPFLAGS"
5463      CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5464      ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5465if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5466
5467        save_ldflags="$LDFLAGS"
5468        LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5469        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5470$as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5471if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5472  $as_echo_n "(cached) " >&6
5473else
5474  ac_check_lib_save_LIBS=$LIBS
5475LIBS="-lapr_memcache  $LIBS"
5476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h.  */
5478
5479/* Override any GCC internal prototype to avoid an error.
5480   Use char because int might match the return type of a GCC
5481   builtin and then its argument prototype would still apply.  */
5482#ifdef __cplusplus
5483extern "C"
5484#endif
5485char apr_memcache_create ();
5486int
5487main ()
5488{
5489return apr_memcache_create ();
5490  ;
5491  return 0;
5492}
5493_ACEOF
5494if ac_fn_c_try_link "$LINENO"; then :
5495  ac_cv_lib_apr_memcache_apr_memcache_create=yes
5496else
5497  ac_cv_lib_apr_memcache_apr_memcache_create=no
5498fi
5499rm -f core conftest.err conftest.$ac_objext \
5500    conftest$ac_exeext conftest.$ac_ext
5501LIBS=$ac_check_lib_save_LIBS
5502fi
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5504$as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5505if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5506  apr_memcache_found="standalone"
5507fi
5508
5509        LDFLAGS="$save_ldflags"
5510fi
5511
5512
5513      CPPFLAGS="$save_cppflags"
5514    fi
5515
5516else
5517
5518    { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5519$as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5520    save_cppflags="$CPPFLAGS"
5521    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5522    ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5523if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5524
5525      save_ldflags="$LDFLAGS"
5526      LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5527      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5528$as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5529if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  ac_check_lib_save_LIBS=$LIBS
5533LIBS="-laprutil-1  $LIBS"
5534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h.  */
5536
5537/* Override any GCC internal prototype to avoid an error.
5538   Use char because int might match the return type of a GCC
5539   builtin and then its argument prototype would still apply.  */
5540#ifdef __cplusplus
5541extern "C"
5542#endif
5543char apr_memcache_create ();
5544int
5545main ()
5546{
5547return apr_memcache_create ();
5548  ;
5549  return 0;
5550}
5551_ACEOF
5552if ac_fn_c_try_link "$LINENO"; then :
5553  ac_cv_lib_aprutil_1_apr_memcache_create=yes
5554else
5555  ac_cv_lib_aprutil_1_apr_memcache_create=no
5556fi
5557rm -f core conftest.err conftest.$ac_objext \
5558    conftest$ac_exeext conftest.$ac_ext
5559LIBS=$ac_check_lib_save_LIBS
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5562$as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5563if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5564  apr_memcache_found="aprutil"
5565fi
5566
5567      LDFLAGS="$save_ldflags"
5568fi
5569
5570
5571    CPPFLAGS="$save_cppflags"
5572
5573fi
5574
5575
5576
5577  if test $apr_memcache_found = "standalone"; then
5578    SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5579    SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5580    svn_lib_apr_memcache=yes
5581  elif test $apr_memcache_found = "aprutil"; then
5582    SVN_APR_MEMCACHE_INCLUDES=""
5583    SVN_APR_MEMCACHE_LIBS=""
5584    svn_lib_apr_memcache=yes
5585  elif test $apr_memcache_found = "reconfig"; then
5586    svn_lib_apr_memcache=yes
5587  else
5588    svn_lib_apr_memcache=no
5589  fi
5590
5591
5592
5593
5594
5595if test "$svn_lib_apr_memcache" = "yes"; then
5596
5597$as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5598
5599fi
5600
5601
5602
5603
5604
5605HTTPD_WANTED_MMN="20020903"
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5608$as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5609
5610# Check whether --with-apxs was given.
5611if test "${with_apxs+set}" = set; then :
5612  withval=$with_apxs;
5613    if test "$withval" = "yes"; then
5614      APXS=apxs
5615    else
5616      APXS="$withval"
5617    fi
5618    APXS_EXPLICIT=1
5619
5620fi
5621
5622
5623if test -z "$APXS"; then
5624  for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5625    if test -f "$i/apxs2"; then
5626      APXS="$i/apxs2"
5627      break
5628    fi
5629    if test -f "$i/apxs"; then
5630      APXS="$i/apxs"
5631      break
5632    fi
5633  done
5634fi
5635
5636if test -n "$APXS" && test "$APXS" != "no"; then
5637    APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5638    if test -r $APXS_INCLUDE/mod_dav.h; then
5639        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5640$as_echo "found at $APXS" >&6; }
5641
5642        { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5643$as_echo_n "checking httpd version... " >&6; }
5644        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645/* end confdefs.h.  */
5646
5647#include "$APXS_INCLUDE/ap_mmn.h"
5648#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5649VERSION_OKAY
5650#endif
5651_ACEOF
5652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653  $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5655$as_echo "recent enough" >&6; }
5656else
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5658$as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5659         if test "$APXS_EXPLICIT" != ""; then
5660             as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5661         fi
5662         APXS=""
5663
5664fi
5665rm -f conftest*
5666
5667
5668    elif test "$APXS_EXPLICIT" != ""; then
5669        as_fn_error $? "no - APXS refers to an old version of Apache
5670                      Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5671    else
5672        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5673$as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5674        APXS=""
5675    fi
5676else
5677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681if test -n "$APXS" && test "$APXS" != "no"; then
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5683$as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5684  apr_major_version="${apr_version%%.*}"
5685  case "$apr_major_version" in
5686    0)
5687      apache_minor_version_wanted_regex="0"
5688      ;;
5689    1)
5690      apache_minor_version_wanted_regex="[1-5]"
5691      ;;
5692    2)
5693      apache_minor_version_wanted_regex="[3-5]"
5694      ;;
5695    *)
5696      as_fn_error $? "unknown APR version" "$LINENO" 5
5697      ;;
5698  esac
5699  old_CPPFLAGS="$CPPFLAGS"
5700  CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h.  */
5703
5704#include "$APXS_INCLUDE/ap_release.h"
5705apache_minor_version=AP_SERVER_MINORVERSION
5706_ACEOF
5707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708  $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710$as_echo "yes" >&6; }
5711else
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714                as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5
5715fi
5716rm -f conftest*
5717
5718  CPPFLAGS="$old_CPPFLAGS"
5719fi
5720
5721
5722# Check whether --with-apache-libexecdir was given.
5723if test "${with_apache_libexecdir+set}" = set; then :
5724  withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5725else
5726  APACHE_LIBEXECDIR='no'
5727fi
5728
5729
5730INSTALL_APACHE_MODS=false
5731if test -n "$APXS" && test "$APXS" != "no"; then
5732    APXS_CC="`$APXS -q CC`"
5733    APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5734
5735    if test "$APACHE_LIBEXECDIR" = 'no'; then
5736        APACHE_LIBEXECDIR="$libexecdir"
5737    elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5738        APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5739    fi
5740
5741    BUILD_APACHE_RULE=apache-mod
5742    INSTALL_APACHE_RULE=install-mods-shared
5743    INSTALL_APACHE_MODS=true
5744
5745    case $host in
5746      *-*-cygwin*)
5747        APACHE_LDFLAGS="-shrext .so"
5748        ;;
5749    esac
5750elif test x"$APXS" != x"no"; then
5751    echo "=================================================================="
5752    echo "WARNING: skipping the build of mod_dav_svn"
5753    echo "         try using --with-apxs"
5754    echo "=================================================================="
5755fi
5756
5757
5758
5759
5760
5761
5762
5763# there aren't any flags that interest us ...
5764#if test -n "$APXS" && test "$APXS" != "no"; then
5765#  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
5766#fi
5767
5768if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
5769  echo "=================================================================="
5770  echo "WARNING: You have chosen to compile Subversion with a different"
5771  echo "         compiler than the one used to compile Apache."
5772  echo ""
5773  echo "    Current compiler:      $CC"
5774  echo "   Apache's compiler:      $APXS_CC"
5775  echo ""
5776  echo "This could cause some problems."
5777  echo "=================================================================="
5778fi
5779
5780
5781
5782SQLITE_MINIMUM_VER="3.7.12"
5783SQLITE_RECOMMENDED_VER="3.7.15.1"
5784SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
5785
5786
5787  SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
5788  SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
5789  SQLITE_URL="${SQLITE_URL}"
5790  SQLITE_PKGNAME="sqlite3"
5791
5792
5793
5794  version_string="$SQLITE_MINIMUM_VER"
5795
5796  major=`expr $version_string : '\([0-9]*\)'`
5797  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
5798  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5799  if test -z "$micro"; then
5800    micro=0
5801  fi
5802  sqlite_min_ver_num=`expr $major \* 1000000 \
5803        \+ $minor \* 1000 \
5804        \+ $micro`
5805
5806
5807
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
5809$as_echo "$as_me: checking sqlite library" >&6;}
5810
5811
5812# Check whether --with-sqlite was given.
5813if test "${with_sqlite+set}" = set; then :
5814  withval=$with_sqlite;
5815    if test "$withval" = "yes" ; then
5816      as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
5817    else
5818      sqlite_dir="$withval"
5819    fi
5820
5821    if test -d $sqlite_dir; then
5822
5823  if test -z "$sqlite_dir"; then
5824    sqlite_dir=""
5825    sqlite_include="sqlite3.h"
5826  else
5827    sqlite_dir="$sqlite_dir"
5828    sqlite_include="$sqlite_dir/include/sqlite3.h"
5829  fi
5830
5831  save_CPPFLAGS="$CPPFLAGS"
5832  save_LDFLAGS="$LDFLAGS"
5833
5834  if test ! -z "$sqlite_dir"; then
5835    CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
5836    LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
5837  fi
5838
5839  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5840if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5841
5842      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
5843$as_echo_n "checking sqlite library version (via header)... " >&6; }
5844      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h.  */
5846
5847#include "$sqlite_include"
5848#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5849SQLITE_VERSION_OKAY
5850#endif
5851_ACEOF
5852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5853  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
5855$as_echo "okay" >&6; }
5856                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
5857$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
5858if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  ac_check_lib_save_LIBS=$LIBS
5862LIBS="-lsqlite3  $LIBS"
5863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h.  */
5865
5866/* Override any GCC internal prototype to avoid an error.
5867   Use char because int might match the return type of a GCC
5868   builtin and then its argument prototype would still apply.  */
5869#ifdef __cplusplus
5870extern "C"
5871#endif
5872char sqlite3_close ();
5873int
5874main ()
5875{
5876return sqlite3_close ();
5877  ;
5878  return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_link "$LINENO"; then :
5882  ac_cv_lib_sqlite3_sqlite3_close=yes
5883else
5884  ac_cv_lib_sqlite3_sqlite3_close=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext \
5887    conftest$ac_exeext conftest.$ac_ext
5888LIBS=$ac_check_lib_save_LIBS
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
5891$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
5892if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
5893
5894                      svn_lib_sqlite="yes"
5895                      if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
5896                        SVN_SQLITE_LIBS="-lsqlite3"
5897                      else
5898                        SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
5899                        SVN_SQLITE_LIBS="`
5900  input_flags="-L$sqlite_dir/lib -lsqlite3"
5901  output_flags=""
5902  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5903  for flag in $input_flags; do
5904    filter="no"
5905    for dir in $filtered_dirs; do
5906      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5907        filter="yes"
5908        break
5909      fi
5910    done
5911    if test "$filter" = "no"; then
5912      output_flags="$output_flags $flag"
5913    fi
5914  done
5915  if test -n "$output_flags"; then
5916    printf "%s" "${output_flags# }"
5917  fi
5918`"
5919                      fi
5920
5921fi
5922
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
5925$as_echo "unsupported SQLite version" >&6; }
5926fi
5927rm -f conftest*
5928
5929
5930fi
5931
5932
5933
5934  CPPFLAGS="$save_CPPFLAGS"
5935  LDFLAGS="$save_LDFLAGS"
5936
5937    else
5938
5939  sqlite_amalg="$sqlite_dir"
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
5941$as_echo_n "checking sqlite amalgamation... " >&6; }
5942  if test ! -e $sqlite_amalg; then
5943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945  else
5946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947$as_echo "yes" >&6; }
5948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
5949$as_echo_n "checking sqlite amalgamation file version... " >&6; }
5950    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h.  */
5952
5953#include "$sqlite_amalg"
5954#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5955SQLITE_VERSION_OKAY
5956#endif
5957_ACEOF
5958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
5961$as_echo "amalgamation found and is okay" >&6; }
5962
5963  case $host_os in
5964  beos* | mingw* | pw32* | cegcc* | cygwin*)
5965    svn_sqlite_dso_ldflags=
5966    ;;
5967
5968  darwin*)
5969  # if libdl is installed we need to link against it
5970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5971$as_echo_n "checking for dlopen in -ldl... " >&6; }
5972if ${ac_cv_lib_dl_dlopen+:} false; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  ac_check_lib_save_LIBS=$LIBS
5976LIBS="-ldl  $LIBS"
5977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h.  */
5979
5980/* Override any GCC internal prototype to avoid an error.
5981   Use char because int might match the return type of a GCC
5982   builtin and then its argument prototype would still apply.  */
5983#ifdef __cplusplus
5984extern "C"
5985#endif
5986char dlopen ();
5987int
5988main ()
5989{
5990return dlopen ();
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995if ac_fn_c_try_link "$LINENO"; then :
5996  ac_cv_lib_dl_dlopen=yes
5997else
5998  ac_cv_lib_dl_dlopen=no
5999fi
6000rm -f core conftest.err conftest.$ac_objext \
6001    conftest$ac_exeext conftest.$ac_ext
6002LIBS=$ac_check_lib_save_LIBS
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6005$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6006if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6007  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6008else
6009
6010    svn_sqlite_dso_ldflags=
6011
6012fi
6013
6014    ;;
6015
6016  *)
6017    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6018if test "x$ac_cv_func_shl_load" = xyes; then :
6019  svn_sqlite_dso_ldflags=
6020else
6021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6022$as_echo_n "checking for shl_load in -ldld... " >&6; }
6023if ${ac_cv_lib_dld_shl_load+:} false; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026  ac_check_lib_save_LIBS=$LIBS
6027LIBS="-ldld  $LIBS"
6028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030
6031/* Override any GCC internal prototype to avoid an error.
6032   Use char because int might match the return type of a GCC
6033   builtin and then its argument prototype would still apply.  */
6034#ifdef __cplusplus
6035extern "C"
6036#endif
6037char shl_load ();
6038int
6039main ()
6040{
6041return shl_load ();
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_link "$LINENO"; then :
6047  ac_cv_lib_dld_shl_load=yes
6048else
6049  ac_cv_lib_dld_shl_load=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext \
6052    conftest$ac_exeext conftest.$ac_ext
6053LIBS=$ac_check_lib_save_LIBS
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6056$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6057if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6058  svn_sqlite_dso_ldflags="-ldld"
6059else
6060  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6061if test "x$ac_cv_func_dlopen" = xyes; then :
6062  svn_sqlite_dso_ldflags=
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6065$as_echo_n "checking for dlopen in -ldl... " >&6; }
6066if ${ac_cv_lib_dl_dlopen+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  ac_check_lib_save_LIBS=$LIBS
6070LIBS="-ldl  $LIBS"
6071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h.  */
6073
6074/* Override any GCC internal prototype to avoid an error.
6075   Use char because int might match the return type of a GCC
6076   builtin and then its argument prototype would still apply.  */
6077#ifdef __cplusplus
6078extern "C"
6079#endif
6080char dlopen ();
6081int
6082main ()
6083{
6084return dlopen ();
6085  ;
6086  return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_link "$LINENO"; then :
6090  ac_cv_lib_dl_dlopen=yes
6091else
6092  ac_cv_lib_dl_dlopen=no
6093fi
6094rm -f core conftest.err conftest.$ac_objext \
6095    conftest$ac_exeext conftest.$ac_ext
6096LIBS=$ac_check_lib_save_LIBS
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6099$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6100if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6101  svn_sqlite_dso_ldflags="-ldl"
6102else
6103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6104$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6105if ${ac_cv_lib_svld_dlopen+:} false; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  ac_check_lib_save_LIBS=$LIBS
6109LIBS="-lsvld  $LIBS"
6110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111/* end confdefs.h.  */
6112
6113/* Override any GCC internal prototype to avoid an error.
6114   Use char because int might match the return type of a GCC
6115   builtin and then its argument prototype would still apply.  */
6116#ifdef __cplusplus
6117extern "C"
6118#endif
6119char dlopen ();
6120int
6121main ()
6122{
6123return dlopen ();
6124  ;
6125  return 0;
6126}
6127_ACEOF
6128if ac_fn_c_try_link "$LINENO"; then :
6129  ac_cv_lib_svld_dlopen=yes
6130else
6131  ac_cv_lib_svld_dlopen=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext \
6134    conftest$ac_exeext conftest.$ac_ext
6135LIBS=$ac_check_lib_save_LIBS
6136fi
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6138$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6139if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6140  svn_sqlite_dso_ldflags="-lsvld"
6141else
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6143$as_echo_n "checking for dld_link in -ldld... " >&6; }
6144if ${ac_cv_lib_dld_dld_link+:} false; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  ac_check_lib_save_LIBS=$LIBS
6148LIBS="-ldld  $LIBS"
6149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151
6152/* Override any GCC internal prototype to avoid an error.
6153   Use char because int might match the return type of a GCC
6154   builtin and then its argument prototype would still apply.  */
6155#ifdef __cplusplus
6156extern "C"
6157#endif
6158char dld_link ();
6159int
6160main ()
6161{
6162return dld_link ();
6163  ;
6164  return 0;
6165}
6166_ACEOF
6167if ac_fn_c_try_link "$LINENO"; then :
6168  ac_cv_lib_dld_dld_link=yes
6169else
6170  ac_cv_lib_dld_dld_link=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext \
6173    conftest$ac_exeext conftest.$ac_ext
6174LIBS=$ac_check_lib_save_LIBS
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6177$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6178if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6179  svn_sqlite_dso_ldflags="-ldld"
6180fi
6181
6182
6183fi
6184
6185
6186fi
6187
6188
6189fi
6190
6191
6192fi
6193
6194
6195fi
6196
6197    ;;
6198  esac
6199
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6201$as_echo_n "checking additional libraries for sqlite... " >&6; }
6202  if test -n "$svn_sqlite_dso_ldflags"; then
6203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6204$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6205  else
6206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6207$as_echo "none" >&6; }
6208  fi
6209
6210
6211$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6212
6213                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6214                  if test -n "$svn_sqlite_dso_ldflags"; then
6215                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6216                  else
6217                    SVN_SQLITE_LIBS="-lpthread"
6218                  fi
6219                  svn_lib_sqlite="yes"
6220else
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6222$as_echo "unsupported amalgamation SQLite version" >&6; }
6223fi
6224rm -f conftest*
6225
6226  fi
6227
6228    fi
6229
6230    if test -z "$svn_lib_sqlite"; then
6231      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6232$as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6233
6234  echo ""
6235  echo "An appropriate version of sqlite could not be found.  We recommmend"
6236  echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6237  echo "Please either install a newer sqlite on this system"
6238  echo ""
6239  echo "or"
6240  echo ""
6241  echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6242  echo "    ${SQLITE_URL}"
6243  echo "unpack the archive using unzip and rename the resulting"
6244  echo "directory to:"
6245  echo "$abs_srcdir/sqlite-amalgamation"
6246  if test x"$abs_srcdir" != x"$abs_builddir"; then
6247    echo "or to:"
6248    echo "$abs_builddir/sqlite-amalgamation"
6249  fi
6250  echo ""
6251  as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6252
6253    fi
6254
6255else
6256
6257
6258  sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6260$as_echo_n "checking sqlite amalgamation... " >&6; }
6261  if test ! -e $sqlite_amalg; then
6262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
6264  else
6265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266$as_echo "yes" >&6; }
6267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6268$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6269    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271
6272#include "$sqlite_amalg"
6273#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6274SQLITE_VERSION_OKAY
6275#endif
6276_ACEOF
6277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6280$as_echo "amalgamation found and is okay" >&6; }
6281
6282  case $host_os in
6283  beos* | mingw* | pw32* | cegcc* | cygwin*)
6284    svn_sqlite_dso_ldflags=
6285    ;;
6286
6287  darwin*)
6288  # if libdl is installed we need to link against it
6289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6290$as_echo_n "checking for dlopen in -ldl... " >&6; }
6291if ${ac_cv_lib_dl_dlopen+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  ac_check_lib_save_LIBS=$LIBS
6295LIBS="-ldl  $LIBS"
6296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h.  */
6298
6299/* Override any GCC internal prototype to avoid an error.
6300   Use char because int might match the return type of a GCC
6301   builtin and then its argument prototype would still apply.  */
6302#ifdef __cplusplus
6303extern "C"
6304#endif
6305char dlopen ();
6306int
6307main ()
6308{
6309return dlopen ();
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314if ac_fn_c_try_link "$LINENO"; then :
6315  ac_cv_lib_dl_dlopen=yes
6316else
6317  ac_cv_lib_dl_dlopen=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext \
6320    conftest$ac_exeext conftest.$ac_ext
6321LIBS=$ac_check_lib_save_LIBS
6322fi
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6324$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6325if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6326  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6327else
6328
6329    svn_sqlite_dso_ldflags=
6330
6331fi
6332
6333    ;;
6334
6335  *)
6336    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6337if test "x$ac_cv_func_shl_load" = xyes; then :
6338  svn_sqlite_dso_ldflags=
6339else
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6341$as_echo_n "checking for shl_load in -ldld... " >&6; }
6342if ${ac_cv_lib_dld_shl_load+:} false; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  ac_check_lib_save_LIBS=$LIBS
6346LIBS="-ldld  $LIBS"
6347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h.  */
6349
6350/* Override any GCC internal prototype to avoid an error.
6351   Use char because int might match the return type of a GCC
6352   builtin and then its argument prototype would still apply.  */
6353#ifdef __cplusplus
6354extern "C"
6355#endif
6356char shl_load ();
6357int
6358main ()
6359{
6360return shl_load ();
6361  ;
6362  return 0;
6363}
6364_ACEOF
6365if ac_fn_c_try_link "$LINENO"; then :
6366  ac_cv_lib_dld_shl_load=yes
6367else
6368  ac_cv_lib_dld_shl_load=no
6369fi
6370rm -f core conftest.err conftest.$ac_objext \
6371    conftest$ac_exeext conftest.$ac_ext
6372LIBS=$ac_check_lib_save_LIBS
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6375$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6376if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6377  svn_sqlite_dso_ldflags="-ldld"
6378else
6379  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6380if test "x$ac_cv_func_dlopen" = xyes; then :
6381  svn_sqlite_dso_ldflags=
6382else
6383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6384$as_echo_n "checking for dlopen in -ldl... " >&6; }
6385if ${ac_cv_lib_dl_dlopen+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  ac_check_lib_save_LIBS=$LIBS
6389LIBS="-ldl  $LIBS"
6390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392
6393/* Override any GCC internal prototype to avoid an error.
6394   Use char because int might match the return type of a GCC
6395   builtin and then its argument prototype would still apply.  */
6396#ifdef __cplusplus
6397extern "C"
6398#endif
6399char dlopen ();
6400int
6401main ()
6402{
6403return dlopen ();
6404  ;
6405  return 0;
6406}
6407_ACEOF
6408if ac_fn_c_try_link "$LINENO"; then :
6409  ac_cv_lib_dl_dlopen=yes
6410else
6411  ac_cv_lib_dl_dlopen=no
6412fi
6413rm -f core conftest.err conftest.$ac_objext \
6414    conftest$ac_exeext conftest.$ac_ext
6415LIBS=$ac_check_lib_save_LIBS
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6418$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6419if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6420  svn_sqlite_dso_ldflags="-ldl"
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6423$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6424if ${ac_cv_lib_svld_dlopen+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  ac_check_lib_save_LIBS=$LIBS
6428LIBS="-lsvld  $LIBS"
6429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431
6432/* Override any GCC internal prototype to avoid an error.
6433   Use char because int might match the return type of a GCC
6434   builtin and then its argument prototype would still apply.  */
6435#ifdef __cplusplus
6436extern "C"
6437#endif
6438char dlopen ();
6439int
6440main ()
6441{
6442return dlopen ();
6443  ;
6444  return 0;
6445}
6446_ACEOF
6447if ac_fn_c_try_link "$LINENO"; then :
6448  ac_cv_lib_svld_dlopen=yes
6449else
6450  ac_cv_lib_svld_dlopen=no
6451fi
6452rm -f core conftest.err conftest.$ac_objext \
6453    conftest$ac_exeext conftest.$ac_ext
6454LIBS=$ac_check_lib_save_LIBS
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6457$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6458if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6459  svn_sqlite_dso_ldflags="-lsvld"
6460else
6461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6462$as_echo_n "checking for dld_link in -ldld... " >&6; }
6463if ${ac_cv_lib_dld_dld_link+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  ac_check_lib_save_LIBS=$LIBS
6467LIBS="-ldld  $LIBS"
6468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470
6471/* Override any GCC internal prototype to avoid an error.
6472   Use char because int might match the return type of a GCC
6473   builtin and then its argument prototype would still apply.  */
6474#ifdef __cplusplus
6475extern "C"
6476#endif
6477char dld_link ();
6478int
6479main ()
6480{
6481return dld_link ();
6482  ;
6483  return 0;
6484}
6485_ACEOF
6486if ac_fn_c_try_link "$LINENO"; then :
6487  ac_cv_lib_dld_dld_link=yes
6488else
6489  ac_cv_lib_dld_dld_link=no
6490fi
6491rm -f core conftest.err conftest.$ac_objext \
6492    conftest$ac_exeext conftest.$ac_ext
6493LIBS=$ac_check_lib_save_LIBS
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6496$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6497if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6498  svn_sqlite_dso_ldflags="-ldld"
6499fi
6500
6501
6502fi
6503
6504
6505fi
6506
6507
6508fi
6509
6510
6511fi
6512
6513
6514fi
6515
6516    ;;
6517  esac
6518
6519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6520$as_echo_n "checking additional libraries for sqlite... " >&6; }
6521  if test -n "$svn_sqlite_dso_ldflags"; then
6522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6523$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6524  else
6525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6526$as_echo "none" >&6; }
6527  fi
6528
6529
6530$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6531
6532                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6533                  if test -n "$svn_sqlite_dso_ldflags"; then
6534                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6535                  else
6536                    SVN_SQLITE_LIBS="-lpthread"
6537                  fi
6538                  svn_lib_sqlite="yes"
6539else
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6541$as_echo "unsupported amalgamation SQLite version" >&6; }
6542fi
6543rm -f conftest*
6544
6545  fi
6546
6547
6548    if test -z "$svn_lib_sqlite"; then
6549
6550  sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6552$as_echo_n "checking sqlite amalgamation... " >&6; }
6553  if test ! -e $sqlite_amalg; then
6554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556  else
6557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6558$as_echo "yes" >&6; }
6559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6560$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6561    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h.  */
6563
6564#include "$sqlite_amalg"
6565#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6566SQLITE_VERSION_OKAY
6567#endif
6568_ACEOF
6569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6572$as_echo "amalgamation found and is okay" >&6; }
6573
6574  case $host_os in
6575  beos* | mingw* | pw32* | cegcc* | cygwin*)
6576    svn_sqlite_dso_ldflags=
6577    ;;
6578
6579  darwin*)
6580  # if libdl is installed we need to link against it
6581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6582$as_echo_n "checking for dlopen in -ldl... " >&6; }
6583if ${ac_cv_lib_dl_dlopen+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586  ac_check_lib_save_LIBS=$LIBS
6587LIBS="-ldl  $LIBS"
6588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590
6591/* Override any GCC internal prototype to avoid an error.
6592   Use char because int might match the return type of a GCC
6593   builtin and then its argument prototype would still apply.  */
6594#ifdef __cplusplus
6595extern "C"
6596#endif
6597char dlopen ();
6598int
6599main ()
6600{
6601return dlopen ();
6602  ;
6603  return 0;
6604}
6605_ACEOF
6606if ac_fn_c_try_link "$LINENO"; then :
6607  ac_cv_lib_dl_dlopen=yes
6608else
6609  ac_cv_lib_dl_dlopen=no
6610fi
6611rm -f core conftest.err conftest.$ac_objext \
6612    conftest$ac_exeext conftest.$ac_ext
6613LIBS=$ac_check_lib_save_LIBS
6614fi
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6616$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6617if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6618  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6619else
6620
6621    svn_sqlite_dso_ldflags=
6622
6623fi
6624
6625    ;;
6626
6627  *)
6628    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6629if test "x$ac_cv_func_shl_load" = xyes; then :
6630  svn_sqlite_dso_ldflags=
6631else
6632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6633$as_echo_n "checking for shl_load in -ldld... " >&6; }
6634if ${ac_cv_lib_dld_shl_load+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  ac_check_lib_save_LIBS=$LIBS
6638LIBS="-ldld  $LIBS"
6639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641
6642/* Override any GCC internal prototype to avoid an error.
6643   Use char because int might match the return type of a GCC
6644   builtin and then its argument prototype would still apply.  */
6645#ifdef __cplusplus
6646extern "C"
6647#endif
6648char shl_load ();
6649int
6650main ()
6651{
6652return shl_load ();
6653  ;
6654  return 0;
6655}
6656_ACEOF
6657if ac_fn_c_try_link "$LINENO"; then :
6658  ac_cv_lib_dld_shl_load=yes
6659else
6660  ac_cv_lib_dld_shl_load=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext \
6663    conftest$ac_exeext conftest.$ac_ext
6664LIBS=$ac_check_lib_save_LIBS
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6667$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6668if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6669  svn_sqlite_dso_ldflags="-ldld"
6670else
6671  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6672if test "x$ac_cv_func_dlopen" = xyes; then :
6673  svn_sqlite_dso_ldflags=
6674else
6675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6676$as_echo_n "checking for dlopen in -ldl... " >&6; }
6677if ${ac_cv_lib_dl_dlopen+:} false; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  ac_check_lib_save_LIBS=$LIBS
6681LIBS="-ldl  $LIBS"
6682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684
6685/* Override any GCC internal prototype to avoid an error.
6686   Use char because int might match the return type of a GCC
6687   builtin and then its argument prototype would still apply.  */
6688#ifdef __cplusplus
6689extern "C"
6690#endif
6691char dlopen ();
6692int
6693main ()
6694{
6695return dlopen ();
6696  ;
6697  return 0;
6698}
6699_ACEOF
6700if ac_fn_c_try_link "$LINENO"; then :
6701  ac_cv_lib_dl_dlopen=yes
6702else
6703  ac_cv_lib_dl_dlopen=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext \
6706    conftest$ac_exeext conftest.$ac_ext
6707LIBS=$ac_check_lib_save_LIBS
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6710$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6711if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6712  svn_sqlite_dso_ldflags="-ldl"
6713else
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6715$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6716if ${ac_cv_lib_svld_dlopen+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  ac_check_lib_save_LIBS=$LIBS
6720LIBS="-lsvld  $LIBS"
6721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723
6724/* Override any GCC internal prototype to avoid an error.
6725   Use char because int might match the return type of a GCC
6726   builtin and then its argument prototype would still apply.  */
6727#ifdef __cplusplus
6728extern "C"
6729#endif
6730char dlopen ();
6731int
6732main ()
6733{
6734return dlopen ();
6735  ;
6736  return 0;
6737}
6738_ACEOF
6739if ac_fn_c_try_link "$LINENO"; then :
6740  ac_cv_lib_svld_dlopen=yes
6741else
6742  ac_cv_lib_svld_dlopen=no
6743fi
6744rm -f core conftest.err conftest.$ac_objext \
6745    conftest$ac_exeext conftest.$ac_ext
6746LIBS=$ac_check_lib_save_LIBS
6747fi
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6749$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6750if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6751  svn_sqlite_dso_ldflags="-lsvld"
6752else
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6754$as_echo_n "checking for dld_link in -ldld... " >&6; }
6755if ${ac_cv_lib_dld_dld_link+:} false; then :
6756  $as_echo_n "(cached) " >&6
6757else
6758  ac_check_lib_save_LIBS=$LIBS
6759LIBS="-ldld  $LIBS"
6760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762
6763/* Override any GCC internal prototype to avoid an error.
6764   Use char because int might match the return type of a GCC
6765   builtin and then its argument prototype would still apply.  */
6766#ifdef __cplusplus
6767extern "C"
6768#endif
6769char dld_link ();
6770int
6771main ()
6772{
6773return dld_link ();
6774  ;
6775  return 0;
6776}
6777_ACEOF
6778if ac_fn_c_try_link "$LINENO"; then :
6779  ac_cv_lib_dld_dld_link=yes
6780else
6781  ac_cv_lib_dld_dld_link=no
6782fi
6783rm -f core conftest.err conftest.$ac_objext \
6784    conftest$ac_exeext conftest.$ac_ext
6785LIBS=$ac_check_lib_save_LIBS
6786fi
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6788$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6789if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6790  svn_sqlite_dso_ldflags="-ldld"
6791fi
6792
6793
6794fi
6795
6796
6797fi
6798
6799
6800fi
6801
6802
6803fi
6804
6805
6806fi
6807
6808    ;;
6809  esac
6810
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6812$as_echo_n "checking additional libraries for sqlite... " >&6; }
6813  if test -n "$svn_sqlite_dso_ldflags"; then
6814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6815$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6816  else
6817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6818$as_echo "none" >&6; }
6819  fi
6820
6821
6822$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6823
6824                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6825                  if test -n "$svn_sqlite_dso_ldflags"; then
6826                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6827                  else
6828                    SVN_SQLITE_LIBS="-lpthread"
6829                  fi
6830                  svn_lib_sqlite="yes"
6831else
6832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6833$as_echo "unsupported amalgamation SQLite version" >&6; }
6834fi
6835rm -f conftest*
6836
6837  fi
6838
6839    fi
6840
6841    if test -z "$svn_lib_sqlite"; then
6842
6843  if test -z ""; then
6844    sqlite_dir=""
6845    sqlite_include="sqlite3.h"
6846  else
6847    sqlite_dir=""
6848    sqlite_include="/include/sqlite3.h"
6849  fi
6850
6851  save_CPPFLAGS="$CPPFLAGS"
6852  save_LDFLAGS="$LDFLAGS"
6853
6854  if test ! -z ""; then
6855    CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6856    LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6857  fi
6858
6859  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6860if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6861
6862      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6863$as_echo_n "checking sqlite library version (via header)... " >&6; }
6864      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866
6867#include "$sqlite_include"
6868#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6869SQLITE_VERSION_OKAY
6870#endif
6871_ACEOF
6872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6875$as_echo "okay" >&6; }
6876                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6877$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6878if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  ac_check_lib_save_LIBS=$LIBS
6882LIBS="-lsqlite3  $LIBS"
6883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885
6886/* Override any GCC internal prototype to avoid an error.
6887   Use char because int might match the return type of a GCC
6888   builtin and then its argument prototype would still apply.  */
6889#ifdef __cplusplus
6890extern "C"
6891#endif
6892char sqlite3_close ();
6893int
6894main ()
6895{
6896return sqlite3_close ();
6897  ;
6898  return 0;
6899}
6900_ACEOF
6901if ac_fn_c_try_link "$LINENO"; then :
6902  ac_cv_lib_sqlite3_sqlite3_close=yes
6903else
6904  ac_cv_lib_sqlite3_sqlite3_close=no
6905fi
6906rm -f core conftest.err conftest.$ac_objext \
6907    conftest$ac_exeext conftest.$ac_ext
6908LIBS=$ac_check_lib_save_LIBS
6909fi
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6911$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6912if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6913
6914                      svn_lib_sqlite="yes"
6915                      if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6916                        SVN_SQLITE_LIBS="-lsqlite3"
6917                      else
6918                        SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6919                        SVN_SQLITE_LIBS="`
6920  input_flags="-L$sqlite_dir/lib -lsqlite3"
6921  output_flags=""
6922  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6923  for flag in $input_flags; do
6924    filter="no"
6925    for dir in $filtered_dirs; do
6926      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6927        filter="yes"
6928        break
6929      fi
6930    done
6931    if test "$filter" = "no"; then
6932      output_flags="$output_flags $flag"
6933    fi
6934  done
6935  if test -n "$output_flags"; then
6936    printf "%s" "${output_flags# }"
6937  fi
6938`"
6939                      fi
6940
6941fi
6942
6943else
6944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6945$as_echo "unsupported SQLite version" >&6; }
6946fi
6947rm -f conftest*
6948
6949
6950fi
6951
6952
6953
6954  CPPFLAGS="$save_CPPFLAGS"
6955  LDFLAGS="$save_LDFLAGS"
6956
6957    fi
6958
6959    if test -z "$svn_lib_sqlite"; then
6960
6961    if test -n "$PKG_CONFIG"; then
6962      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
6963$as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
6964      sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
6965
6966      if test -n "$sqlite_version"; then
6967
6968  version_string="$sqlite_version"
6969
6970  major=`expr $version_string : '\([0-9]*\)'`
6971  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6972  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6973  if test -z "$micro"; then
6974    micro=0
6975  fi
6976  sqlite_ver_num=`expr $major \* 1000000 \
6977        \+ $minor \* 1000 \
6978        \+ $micro`
6979
6980
6981        if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
6982          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
6983$as_echo "$sqlite_version" >&6; }
6984          svn_lib_sqlite="yes"
6985          SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
6986          SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
6987        else
6988          { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
6989$as_echo "none or unsupported $sqlite_version" >&6; }
6990        fi
6991      fi
6992    fi
6993
6994    if test -z "$svn_lib_sqlite"; then
6995      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996$as_echo "no" >&6; }
6997    fi
6998
6999    fi
7000
7001    if test -z "$svn_lib_sqlite"; then
7002
7003  echo ""
7004  echo "An appropriate version of sqlite could not be found.  We recommmend"
7005  echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7006  echo "Please either install a newer sqlite on this system"
7007  echo ""
7008  echo "or"
7009  echo ""
7010  echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7011  echo "    ${SQLITE_URL}"
7012  echo "unpack the archive using unzip and rename the resulting"
7013  echo "directory to:"
7014  echo "$abs_srcdir/sqlite-amalgamation"
7015  if test x"$abs_srcdir" != x"$abs_builddir"; then
7016    echo "or to:"
7017    echo "$abs_builddir/sqlite-amalgamation"
7018  fi
7019  echo ""
7020  as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7021
7022    fi
7023
7024fi
7025
7026
7027
7028
7029
7030
7031# Check whether --enable-sqlite-compatibility-version was given.
7032if test "${enable_sqlite_compatibility_version+set}" = set; then :
7033  enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7034else
7035  sqlite_compat_ver=no
7036fi
7037
7038
7039if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7040
7041  version_string="$sqlite_compat_ver"
7042
7043  major=`expr $version_string : '\([0-9]*\)'`
7044  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7045  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7046  if test -z "$micro"; then
7047    micro=0
7048  fi
7049  sqlite_compat_ver_num=`expr $major \* 1000000 \
7050        \+ $minor \* 1000 \
7051        \+ $micro`
7052
7053  CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7054  CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7055fi
7056
7057
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7059$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7060if ${svn_cv_atomic_builtins+:} false; then :
7061  $as_echo_n "(cached) " >&6
7062else
7063  if test "$cross_compiling" = yes; then :
7064  svn_cv_atomic_builtins=no
7065else
7066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h.  */
7068
7069  int main()
7070  {
7071      unsigned long long val = 1010, tmp, *mem = &val;
7072
7073      if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7074          return 1;
7075
7076      tmp = val;
7077
7078      if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7079          return 1;
7080
7081      if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7082          return 1;
7083
7084      tmp = 3030;
7085
7086      if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7087          return 1;
7088
7089      if (__sync_lock_test_and_set(&val, 4040) != 3030)
7090          return 1;
7091
7092      mem = &tmp;
7093
7094      if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7095          return 1;
7096
7097      __sync_synchronize();
7098
7099      if (mem != &val)
7100          return 1;
7101
7102      return 0;
7103  }
7104_ACEOF
7105if ac_fn_c_try_run "$LINENO"; then :
7106  svn_cv_atomic_builtins=yes
7107else
7108  svn_cv_atomic_builtins=no
7109fi
7110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7111  conftest.$ac_objext conftest.beam conftest.$ac_ext
7112fi
7113
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7116$as_echo "$svn_cv_atomic_builtins" >&6; }
7117
7118
7119if test "$svn_cv_atomic_builtins" = "yes"; then
7120
7121$as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7122
7123fi
7124
7125
7126if test "${bindir}" = '${exec_prefix}/bin'; then
7127        if test "${exec_prefix}" = "NONE"; then
7128                if test "${prefix}" = "NONE"; then
7129                        SVN_BINDIR="${ac_default_prefix}/bin"
7130                else
7131                        SVN_BINDIR="${prefix}/bin"
7132                fi
7133        else
7134                SVN_BINDIR="${exec_prefix}/bin"
7135        fi
7136else
7137        SVN_BINDIR="${bindir}"
7138fi
7139
7140SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7141
7142
7143
7144cat >>confdefs.h <<_ACEOF
7145#define SVN_BINDIR "${SVN_BINDIR}"
7146_ACEOF
7147
7148
7149localedir='${datadir}/locale'
7150
7151
7152if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7153  exp_localedir='${ac_default_prefix}/share/locale'
7154else
7155  exp_localedir=$localedir
7156fi
7157
7158svn_last=
7159svn_cur=""${exp_localedir}""
7160while test "x${svn_cur}" != "x${svn_last}";
7161do
7162  svn_last="${svn_cur}"
7163  svn_cur=`eval "echo ${svn_cur}"`
7164done
7165svn_localedir="${svn_cur}"
7166
7167
7168cat >>confdefs.h <<_ACEOF
7169#define SVN_LOCALE_DIR "${svn_localedir}"
7170_ACEOF
7171
7172
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7174$as_echo "$as_me: configuring libtool now" >&6;}
7175case `pwd` in
7176  *\ * | *\	*)
7177    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7178$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7179esac
7180
7181
7182
7183macro_version='2.4.2'
7184macro_revision='1.3337'
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198ltmain="$ac_aux_dir/ltmain.sh"
7199
7200# Backslashify metacharacters that are still active within
7201# double-quoted strings.
7202sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7203
7204# Same as above, but do not quote variable references.
7205double_quote_subst='s/\(["`\\]\)/\\\1/g'
7206
7207# Sed substitution to delay expansion of an escaped shell variable in a
7208# double_quote_subst'ed string.
7209delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7210
7211# Sed substitution to delay expansion of an escaped single quote.
7212delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7213
7214# Sed substitution to avoid accidental globbing in evaled expressions
7215no_glob_subst='s/\*/\\\*/g'
7216
7217ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7218ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7219ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7220
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7222$as_echo_n "checking how to print strings... " >&6; }
7223# Test print first, because it will be a builtin if present.
7224if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7225   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7226  ECHO='print -r --'
7227elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7228  ECHO='printf %s\n'
7229else
7230  # Use this function as a fallback that always works.
7231  func_fallback_echo ()
7232  {
7233    eval 'cat <<_LTECHO_EOF
7234$1
7235_LTECHO_EOF'
7236  }
7237  ECHO='func_fallback_echo'
7238fi
7239
7240# func_echo_all arg...
7241# Invoke $ECHO with all args, space-separated.
7242func_echo_all ()
7243{
7244    $ECHO ""
7245}
7246
7247case "$ECHO" in
7248  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7249$as_echo "printf" >&6; } ;;
7250  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7251$as_echo "print -r" >&6; } ;;
7252  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7253$as_echo "cat" >&6; } ;;
7254esac
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7270$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7271if ${ac_cv_path_SED+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7275     for ac_i in 1 2 3 4 5 6 7; do
7276       ac_script="$ac_script$as_nl$ac_script"
7277     done
7278     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7279     { ac_script=; unset ac_script;}
7280     if test -z "$SED"; then
7281  ac_path_SED_found=false
7282  # Loop through the user's path and test for each of PROGNAME-LIST
7283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  test -z "$as_dir" && as_dir=.
7288    for ac_prog in sed gsed; do
7289    for ac_exec_ext in '' $ac_executable_extensions; do
7290      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7291      as_fn_executable_p "$ac_path_SED" || continue
7292# Check for GNU ac_path_SED and select it if it is found.
7293  # Check for GNU $ac_path_SED
7294case `"$ac_path_SED" --version 2>&1` in
7295*GNU*)
7296  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7297*)
7298  ac_count=0
7299  $as_echo_n 0123456789 >"conftest.in"
7300  while :
7301  do
7302    cat "conftest.in" "conftest.in" >"conftest.tmp"
7303    mv "conftest.tmp" "conftest.in"
7304    cp "conftest.in" "conftest.nl"
7305    $as_echo '' >> "conftest.nl"
7306    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7307    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7308    as_fn_arith $ac_count + 1 && ac_count=$as_val
7309    if test $ac_count -gt ${ac_path_SED_max-0}; then
7310      # Best one so far, save it but keep looking for a better one
7311      ac_cv_path_SED="$ac_path_SED"
7312      ac_path_SED_max=$ac_count
7313    fi
7314    # 10*(2^10) chars as input seems more than enough
7315    test $ac_count -gt 10 && break
7316  done
7317  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7318esac
7319
7320      $ac_path_SED_found && break 3
7321    done
7322  done
7323  done
7324IFS=$as_save_IFS
7325  if test -z "$ac_cv_path_SED"; then
7326    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7327  fi
7328else
7329  ac_cv_path_SED=$SED
7330fi
7331
7332fi
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7334$as_echo "$ac_cv_path_SED" >&6; }
7335 SED="$ac_cv_path_SED"
7336  rm -f conftest.sed
7337
7338test -z "$SED" && SED=sed
7339Xsed="$SED -e 1s/^X//"
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7352$as_echo_n "checking for fgrep... " >&6; }
7353if ${ac_cv_path_FGREP+:} false; then :
7354  $as_echo_n "(cached) " >&6
7355else
7356  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7357   then ac_cv_path_FGREP="$GREP -F"
7358   else
7359     if test -z "$FGREP"; then
7360  ac_path_FGREP_found=false
7361  # Loop through the user's path and test for each of PROGNAME-LIST
7362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367    for ac_prog in fgrep; do
7368    for ac_exec_ext in '' $ac_executable_extensions; do
7369      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7370      as_fn_executable_p "$ac_path_FGREP" || continue
7371# Check for GNU ac_path_FGREP and select it if it is found.
7372  # Check for GNU $ac_path_FGREP
7373case `"$ac_path_FGREP" --version 2>&1` in
7374*GNU*)
7375  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7376*)
7377  ac_count=0
7378  $as_echo_n 0123456789 >"conftest.in"
7379  while :
7380  do
7381    cat "conftest.in" "conftest.in" >"conftest.tmp"
7382    mv "conftest.tmp" "conftest.in"
7383    cp "conftest.in" "conftest.nl"
7384    $as_echo 'FGREP' >> "conftest.nl"
7385    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7386    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7387    as_fn_arith $ac_count + 1 && ac_count=$as_val
7388    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7389      # Best one so far, save it but keep looking for a better one
7390      ac_cv_path_FGREP="$ac_path_FGREP"
7391      ac_path_FGREP_max=$ac_count
7392    fi
7393    # 10*(2^10) chars as input seems more than enough
7394    test $ac_count -gt 10 && break
7395  done
7396  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7397esac
7398
7399      $ac_path_FGREP_found && break 3
7400    done
7401  done
7402  done
7403IFS=$as_save_IFS
7404  if test -z "$ac_cv_path_FGREP"; then
7405    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7406  fi
7407else
7408  ac_cv_path_FGREP=$FGREP
7409fi
7410
7411   fi
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7414$as_echo "$ac_cv_path_FGREP" >&6; }
7415 FGREP="$ac_cv_path_FGREP"
7416
7417
7418test -z "$GREP" && GREP=grep
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438# Check whether --with-gnu-ld was given.
7439if test "${with_gnu_ld+set}" = set; then :
7440  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7441else
7442  with_gnu_ld=no
7443fi
7444
7445ac_prog=ld
7446if test "$GCC" = yes; then
7447  # Check if gcc -print-prog-name=ld gives a path.
7448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7449$as_echo_n "checking for ld used by $CC... " >&6; }
7450  case $host in
7451  *-*-mingw*)
7452    # gcc leaves a trailing carriage return which upsets mingw
7453    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7454  *)
7455    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7456  esac
7457  case $ac_prog in
7458    # Accept absolute paths.
7459    [\\/]* | ?:[\\/]*)
7460      re_direlt='/[^/][^/]*/\.\./'
7461      # Canonicalize the pathname of ld
7462      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7463      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7464	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7465      done
7466      test -z "$LD" && LD="$ac_prog"
7467      ;;
7468  "")
7469    # If it fails, then pretend we aren't using GCC.
7470    ac_prog=ld
7471    ;;
7472  *)
7473    # If it is relative, then search for the first ld in PATH.
7474    with_gnu_ld=unknown
7475    ;;
7476  esac
7477elif test "$with_gnu_ld" = yes; then
7478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7479$as_echo_n "checking for GNU ld... " >&6; }
7480else
7481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7482$as_echo_n "checking for non-GNU ld... " >&6; }
7483fi
7484if ${lt_cv_path_LD+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487  if test -z "$LD"; then
7488  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7489  for ac_dir in $PATH; do
7490    IFS="$lt_save_ifs"
7491    test -z "$ac_dir" && ac_dir=.
7492    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7493      lt_cv_path_LD="$ac_dir/$ac_prog"
7494      # Check to see if the program is GNU ld.  I'd rather use --version,
7495      # but apparently some variants of GNU ld only accept -v.
7496      # Break only if it was the GNU/non-GNU ld that we prefer.
7497      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7498      *GNU* | *'with BFD'*)
7499	test "$with_gnu_ld" != no && break
7500	;;
7501      *)
7502	test "$with_gnu_ld" != yes && break
7503	;;
7504      esac
7505    fi
7506  done
7507  IFS="$lt_save_ifs"
7508else
7509  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7510fi
7511fi
7512
7513LD="$lt_cv_path_LD"
7514if test -n "$LD"; then
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7516$as_echo "$LD" >&6; }
7517else
7518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
7520fi
7521test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7523$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7524if ${lt_cv_prog_gnu_ld+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7528case `$LD -v 2>&1 </dev/null` in
7529*GNU* | *'with BFD'*)
7530  lt_cv_prog_gnu_ld=yes
7531  ;;
7532*)
7533  lt_cv_prog_gnu_ld=no
7534  ;;
7535esac
7536fi
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7538$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7539with_gnu_ld=$lt_cv_prog_gnu_ld
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7550$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7551if ${lt_cv_path_NM+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  if test -n "$NM"; then
7555  # Let the user override the test.
7556  lt_cv_path_NM="$NM"
7557else
7558  lt_nm_to_check="${ac_tool_prefix}nm"
7559  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7560    lt_nm_to_check="$lt_nm_to_check nm"
7561  fi
7562  for lt_tmp_nm in $lt_nm_to_check; do
7563    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7565      IFS="$lt_save_ifs"
7566      test -z "$ac_dir" && ac_dir=.
7567      tmp_nm="$ac_dir/$lt_tmp_nm"
7568      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7569	# Check to see if the nm accepts a BSD-compat flag.
7570	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7571	#   nm: unknown option "B" ignored
7572	# Tru64's nm complains that /dev/null is an invalid object file
7573	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7574	*/dev/null* | *'Invalid file or object type'*)
7575	  lt_cv_path_NM="$tmp_nm -B"
7576	  break
7577	  ;;
7578	*)
7579	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7580	  */dev/null*)
7581	    lt_cv_path_NM="$tmp_nm -p"
7582	    break
7583	    ;;
7584	  *)
7585	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7586	    continue # so that we can try to find one that supports BSD flags
7587	    ;;
7588	  esac
7589	  ;;
7590	esac
7591      fi
7592    done
7593    IFS="$lt_save_ifs"
7594  done
7595  : ${lt_cv_path_NM=no}
7596fi
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7599$as_echo "$lt_cv_path_NM" >&6; }
7600if test "$lt_cv_path_NM" != "no"; then
7601  NM="$lt_cv_path_NM"
7602else
7603  # Didn't find any BSD compatible name lister, look for dumpbin.
7604  if test -n "$DUMPBIN"; then :
7605    # Let the user override the test.
7606  else
7607    if test -n "$ac_tool_prefix"; then
7608  for ac_prog in dumpbin "link -dump"
7609  do
7610    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613$as_echo_n "checking for $ac_word... " >&6; }
7614if ${ac_cv_prog_DUMPBIN+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  if test -n "$DUMPBIN"; then
7618  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7619else
7620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623  IFS=$as_save_IFS
7624  test -z "$as_dir" && as_dir=.
7625    for ac_exec_ext in '' $ac_executable_extensions; do
7626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629    break 2
7630  fi
7631done
7632  done
7633IFS=$as_save_IFS
7634
7635fi
7636fi
7637DUMPBIN=$ac_cv_prog_DUMPBIN
7638if test -n "$DUMPBIN"; then
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7640$as_echo "$DUMPBIN" >&6; }
7641else
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643$as_echo "no" >&6; }
7644fi
7645
7646
7647    test -n "$DUMPBIN" && break
7648  done
7649fi
7650if test -z "$DUMPBIN"; then
7651  ac_ct_DUMPBIN=$DUMPBIN
7652  for ac_prog in dumpbin "link -dump"
7653do
7654  # Extract the first word of "$ac_prog", so it can be a program name with args.
7655set dummy $ac_prog; ac_word=$2
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657$as_echo_n "checking for $ac_word... " >&6; }
7658if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7659  $as_echo_n "(cached) " >&6
7660else
7661  if test -n "$ac_ct_DUMPBIN"; then
7662  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7663else
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667  IFS=$as_save_IFS
7668  test -z "$as_dir" && as_dir=.
7669    for ac_exec_ext in '' $ac_executable_extensions; do
7670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673    break 2
7674  fi
7675done
7676  done
7677IFS=$as_save_IFS
7678
7679fi
7680fi
7681ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7682if test -n "$ac_ct_DUMPBIN"; then
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7684$as_echo "$ac_ct_DUMPBIN" >&6; }
7685else
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
7688fi
7689
7690
7691  test -n "$ac_ct_DUMPBIN" && break
7692done
7693
7694  if test "x$ac_ct_DUMPBIN" = x; then
7695    DUMPBIN=":"
7696  else
7697    case $cross_compiling:$ac_tool_warned in
7698yes:)
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701ac_tool_warned=yes ;;
7702esac
7703    DUMPBIN=$ac_ct_DUMPBIN
7704  fi
7705fi
7706
7707    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7708    *COFF*)
7709      DUMPBIN="$DUMPBIN -symbols"
7710      ;;
7711    *)
7712      DUMPBIN=:
7713      ;;
7714    esac
7715  fi
7716
7717  if test "$DUMPBIN" != ":"; then
7718    NM="$DUMPBIN"
7719  fi
7720fi
7721test -z "$NM" && NM=nm
7722
7723
7724
7725
7726
7727
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7729$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7730if ${lt_cv_nm_interface+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  lt_cv_nm_interface="BSD nm"
7734  echo "int some_variable = 0;" > conftest.$ac_ext
7735  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7736  (eval "$ac_compile" 2>conftest.err)
7737  cat conftest.err >&5
7738  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7739  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7740  cat conftest.err >&5
7741  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7742  cat conftest.out >&5
7743  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7744    lt_cv_nm_interface="MS dumpbin"
7745  fi
7746  rm -f conftest*
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7749$as_echo "$lt_cv_nm_interface" >&6; }
7750
7751# find the maximum length of command line arguments
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7753$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7754if ${lt_cv_sys_max_cmd_len+:} false; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757    i=0
7758  teststring="ABCD"
7759
7760  case $build_os in
7761  msdosdjgpp*)
7762    # On DJGPP, this test can blow up pretty badly due to problems in libc
7763    # (any single argument exceeding 2000 bytes causes a buffer overrun
7764    # during glob expansion).  Even if it were fixed, the result of this
7765    # check would be larger than it should be.
7766    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7767    ;;
7768
7769  gnu*)
7770    # Under GNU Hurd, this test is not required because there is
7771    # no limit to the length of command line arguments.
7772    # Libtool will interpret -1 as no limit whatsoever
7773    lt_cv_sys_max_cmd_len=-1;
7774    ;;
7775
7776  cygwin* | mingw* | cegcc*)
7777    # On Win9x/ME, this test blows up -- it succeeds, but takes
7778    # about 5 minutes as the teststring grows exponentially.
7779    # Worse, since 9x/ME are not pre-emptively multitasking,
7780    # you end up with a "frozen" computer, even though with patience
7781    # the test eventually succeeds (with a max line length of 256k).
7782    # Instead, let's just punt: use the minimum linelength reported by
7783    # all of the supported platforms: 8192 (on NT/2K/XP).
7784    lt_cv_sys_max_cmd_len=8192;
7785    ;;
7786
7787  mint*)
7788    # On MiNT this can take a long time and run out of memory.
7789    lt_cv_sys_max_cmd_len=8192;
7790    ;;
7791
7792  amigaos*)
7793    # On AmigaOS with pdksh, this test takes hours, literally.
7794    # So we just punt and use a minimum line length of 8192.
7795    lt_cv_sys_max_cmd_len=8192;
7796    ;;
7797
7798  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7799    # This has been around since 386BSD, at least.  Likely further.
7800    if test -x /sbin/sysctl; then
7801      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7802    elif test -x /usr/sbin/sysctl; then
7803      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7804    else
7805      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7806    fi
7807    # And add a safety zone
7808    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7809    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7810    ;;
7811
7812  interix*)
7813    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7814    lt_cv_sys_max_cmd_len=196608
7815    ;;
7816
7817  os2*)
7818    # The test takes a long time on OS/2.
7819    lt_cv_sys_max_cmd_len=8192
7820    ;;
7821
7822  osf*)
7823    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7824    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7825    # nice to cause kernel panics so lets avoid the loop below.
7826    # First set a reasonable default.
7827    lt_cv_sys_max_cmd_len=16384
7828    #
7829    if test -x /sbin/sysconfig; then
7830      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7831        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7832      esac
7833    fi
7834    ;;
7835  sco3.2v5*)
7836    lt_cv_sys_max_cmd_len=102400
7837    ;;
7838  sysv5* | sco5v6* | sysv4.2uw2*)
7839    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7840    if test -n "$kargmax"; then
7841      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7842    else
7843      lt_cv_sys_max_cmd_len=32768
7844    fi
7845    ;;
7846  *)
7847    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7848    if test -n "$lt_cv_sys_max_cmd_len"; then
7849      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7850      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7851    else
7852      # Make teststring a little bigger before we do anything with it.
7853      # a 1K string should be a reasonable start.
7854      for i in 1 2 3 4 5 6 7 8 ; do
7855        teststring=$teststring$teststring
7856      done
7857      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7858      # If test is not a shell built-in, we'll probably end up computing a
7859      # maximum length that is only half of the actual maximum length, but
7860      # we can't tell.
7861      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7862	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7863	      test $i != 17 # 1/2 MB should be enough
7864      do
7865        i=`expr $i + 1`
7866        teststring=$teststring$teststring
7867      done
7868      # Only check the string length outside the loop.
7869      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7870      teststring=
7871      # Add a significant safety factor because C++ compilers can tack on
7872      # massive amounts of additional arguments before passing them to the
7873      # linker.  It appears as though 1/2 is a usable value.
7874      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7875    fi
7876    ;;
7877  esac
7878
7879fi
7880
7881if test -n $lt_cv_sys_max_cmd_len ; then
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7883$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7884else
7885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7886$as_echo "none" >&6; }
7887fi
7888max_cmd_len=$lt_cv_sys_max_cmd_len
7889
7890
7891
7892
7893
7894
7895: ${CP="cp -f"}
7896: ${MV="mv -f"}
7897: ${RM="rm -f"}
7898
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7900$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7901# Try some XSI features
7902xsi_shell=no
7903( _lt_dummy="a/b/c"
7904  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7905      = c,a/b,b/c, \
7906    && eval 'test $(( 1 + 1 )) -eq 2 \
7907    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7908  && xsi_shell=yes
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7910$as_echo "$xsi_shell" >&6; }
7911
7912
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7914$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7915lt_shell_append=no
7916( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7917    >/dev/null 2>&1 \
7918  && lt_shell_append=yes
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7920$as_echo "$lt_shell_append" >&6; }
7921
7922
7923if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7924  lt_unset=unset
7925else
7926  lt_unset=false
7927fi
7928
7929
7930
7931
7932
7933# test EBCDIC or ASCII
7934case `echo X|tr X '\101'` in
7935 A) # ASCII based system
7936    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7937  lt_SP2NL='tr \040 \012'
7938  lt_NL2SP='tr \015\012 \040\040'
7939  ;;
7940 *) # EBCDIC based system
7941  lt_SP2NL='tr \100 \n'
7942  lt_NL2SP='tr \r\n \100\100'
7943  ;;
7944esac
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7955$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7956if ${lt_cv_to_host_file_cmd+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  case $host in
7960  *-*-mingw* )
7961    case $build in
7962      *-*-mingw* ) # actually msys
7963        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7964        ;;
7965      *-*-cygwin* )
7966        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7967        ;;
7968      * ) # otherwise, assume *nix
7969        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7970        ;;
7971    esac
7972    ;;
7973  *-*-cygwin* )
7974    case $build in
7975      *-*-mingw* ) # actually msys
7976        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7977        ;;
7978      *-*-cygwin* )
7979        lt_cv_to_host_file_cmd=func_convert_file_noop
7980        ;;
7981      * ) # otherwise, assume *nix
7982        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7983        ;;
7984    esac
7985    ;;
7986  * ) # unhandled hosts (and "normal" native builds)
7987    lt_cv_to_host_file_cmd=func_convert_file_noop
7988    ;;
7989esac
7990
7991fi
7992
7993to_host_file_cmd=$lt_cv_to_host_file_cmd
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7995$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7996
7997
7998
7999
8000
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8002$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8003if ${lt_cv_to_tool_file_cmd+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  #assume ordinary cross tools, or native build.
8007lt_cv_to_tool_file_cmd=func_convert_file_noop
8008case $host in
8009  *-*-mingw* )
8010    case $build in
8011      *-*-mingw* ) # actually msys
8012        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8013        ;;
8014    esac
8015    ;;
8016esac
8017
8018fi
8019
8020to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8022$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8023
8024
8025
8026
8027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8029$as_echo_n "checking for $LD option to reload object files... " >&6; }
8030if ${lt_cv_ld_reload_flag+:} false; then :
8031  $as_echo_n "(cached) " >&6
8032else
8033  lt_cv_ld_reload_flag='-r'
8034fi
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8036$as_echo "$lt_cv_ld_reload_flag" >&6; }
8037reload_flag=$lt_cv_ld_reload_flag
8038case $reload_flag in
8039"" | " "*) ;;
8040*) reload_flag=" $reload_flag" ;;
8041esac
8042reload_cmds='$LD$reload_flag -o $output$reload_objs'
8043case $host_os in
8044  cygwin* | mingw* | pw32* | cegcc*)
8045    if test "$GCC" != yes; then
8046      reload_cmds=false
8047    fi
8048    ;;
8049  darwin*)
8050    if test "$GCC" = yes; then
8051      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8052    else
8053      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8054    fi
8055    ;;
8056esac
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066if test -n "$ac_tool_prefix"; then
8067  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8068set dummy ${ac_tool_prefix}objdump; ac_word=$2
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if ${ac_cv_prog_OBJDUMP+:} false; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  if test -n "$OBJDUMP"; then
8075  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080  IFS=$as_save_IFS
8081  test -z "$as_dir" && as_dir=.
8082    for ac_exec_ext in '' $ac_executable_extensions; do
8083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086    break 2
8087  fi
8088done
8089  done
8090IFS=$as_save_IFS
8091
8092fi
8093fi
8094OBJDUMP=$ac_cv_prog_OBJDUMP
8095if test -n "$OBJDUMP"; then
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8097$as_echo "$OBJDUMP" >&6; }
8098else
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102
8103
8104fi
8105if test -z "$ac_cv_prog_OBJDUMP"; then
8106  ac_ct_OBJDUMP=$OBJDUMP
8107  # Extract the first word of "objdump", so it can be a program name with args.
8108set dummy objdump; ac_word=$2
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  if test -n "$ac_ct_OBJDUMP"; then
8115  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122    for ac_exec_ext in '' $ac_executable_extensions; do
8123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129  done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8135if test -n "$ac_ct_OBJDUMP"; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8137$as_echo "$ac_ct_OBJDUMP" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143  if test "x$ac_ct_OBJDUMP" = x; then
8144    OBJDUMP="false"
8145  else
8146    case $cross_compiling:$ac_tool_warned in
8147yes:)
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150ac_tool_warned=yes ;;
8151esac
8152    OBJDUMP=$ac_ct_OBJDUMP
8153  fi
8154else
8155  OBJDUMP="$ac_cv_prog_OBJDUMP"
8156fi
8157
8158test -z "$OBJDUMP" && OBJDUMP=objdump
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8169$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8170if ${lt_cv_deplibs_check_method+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  lt_cv_file_magic_cmd='$MAGIC_CMD'
8174lt_cv_file_magic_test_file=
8175lt_cv_deplibs_check_method='unknown'
8176# Need to set the preceding variable on all platforms that support
8177# interlibrary dependencies.
8178# 'none' -- dependencies not supported.
8179# `unknown' -- same as none, but documents that we really don't know.
8180# 'pass_all' -- all dependencies passed with no checks.
8181# 'test_compile' -- check by making test program.
8182# 'file_magic [[regex]]' -- check by looking for files in library path
8183# which responds to the $file_magic_cmd with a given extended regex.
8184# If you have `file' or equivalent on your system and you're not sure
8185# whether `pass_all' will *always* work, you probably want this one.
8186
8187case $host_os in
8188aix[4-9]*)
8189  lt_cv_deplibs_check_method=pass_all
8190  ;;
8191
8192beos*)
8193  lt_cv_deplibs_check_method=pass_all
8194  ;;
8195
8196bsdi[45]*)
8197  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8198  lt_cv_file_magic_cmd='/usr/bin/file -L'
8199  lt_cv_file_magic_test_file=/shlib/libc.so
8200  ;;
8201
8202cygwin*)
8203  # func_win32_libid is a shell function defined in ltmain.sh
8204  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8205  lt_cv_file_magic_cmd='func_win32_libid'
8206  ;;
8207
8208mingw* | pw32*)
8209  # Base MSYS/MinGW do not provide the 'file' command needed by
8210  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8211  # unless we find 'file', for example because we are cross-compiling.
8212  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8213  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8214    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8215    lt_cv_file_magic_cmd='func_win32_libid'
8216  else
8217    # Keep this pattern in sync with the one in func_win32_libid.
8218    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8219    lt_cv_file_magic_cmd='$OBJDUMP -f'
8220  fi
8221  ;;
8222
8223cegcc*)
8224  # use the weaker test based on 'objdump'. See mingw*.
8225  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8226  lt_cv_file_magic_cmd='$OBJDUMP -f'
8227  ;;
8228
8229darwin* | rhapsody*)
8230  lt_cv_deplibs_check_method=pass_all
8231  ;;
8232
8233freebsd* | dragonfly*)
8234  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8235    case $host_cpu in
8236    i*86 )
8237      # Not sure whether the presence of OpenBSD here was a mistake.
8238      # Let's accept both of them until this is cleared up.
8239      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8240      lt_cv_file_magic_cmd=/usr/bin/file
8241      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8242      ;;
8243    esac
8244  else
8245    lt_cv_deplibs_check_method=pass_all
8246  fi
8247  ;;
8248
8249gnu*)
8250  lt_cv_deplibs_check_method=pass_all
8251  ;;
8252
8253haiku*)
8254  lt_cv_deplibs_check_method=pass_all
8255  ;;
8256
8257hpux10.20* | hpux11*)
8258  lt_cv_file_magic_cmd=/usr/bin/file
8259  case $host_cpu in
8260  ia64*)
8261    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8262    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8263    ;;
8264  hppa*64*)
8265    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8266    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8267    ;;
8268  *)
8269    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8270    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8271    ;;
8272  esac
8273  ;;
8274
8275interix[3-9]*)
8276  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8277  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8278  ;;
8279
8280irix5* | irix6* | nonstopux*)
8281  case $LD in
8282  *-32|*"-32 ") libmagic=32-bit;;
8283  *-n32|*"-n32 ") libmagic=N32;;
8284  *-64|*"-64 ") libmagic=64-bit;;
8285  *) libmagic=never-match;;
8286  esac
8287  lt_cv_deplibs_check_method=pass_all
8288  ;;
8289
8290# This must be glibc/ELF.
8291linux* | k*bsd*-gnu | kopensolaris*-gnu)
8292  lt_cv_deplibs_check_method=pass_all
8293  ;;
8294
8295netbsd*)
8296  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8297    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8298  else
8299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8300  fi
8301  ;;
8302
8303newos6*)
8304  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8305  lt_cv_file_magic_cmd=/usr/bin/file
8306  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8307  ;;
8308
8309*nto* | *qnx*)
8310  lt_cv_deplibs_check_method=pass_all
8311  ;;
8312
8313openbsd*)
8314  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8316  else
8317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8318  fi
8319  ;;
8320
8321osf3* | osf4* | osf5*)
8322  lt_cv_deplibs_check_method=pass_all
8323  ;;
8324
8325rdos*)
8326  lt_cv_deplibs_check_method=pass_all
8327  ;;
8328
8329solaris*)
8330  lt_cv_deplibs_check_method=pass_all
8331  ;;
8332
8333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8334  lt_cv_deplibs_check_method=pass_all
8335  ;;
8336
8337sysv4 | sysv4.3*)
8338  case $host_vendor in
8339  motorola)
8340    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8341    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8342    ;;
8343  ncr)
8344    lt_cv_deplibs_check_method=pass_all
8345    ;;
8346  sequent)
8347    lt_cv_file_magic_cmd='/bin/file'
8348    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8349    ;;
8350  sni)
8351    lt_cv_file_magic_cmd='/bin/file'
8352    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8353    lt_cv_file_magic_test_file=/lib/libc.so
8354    ;;
8355  siemens)
8356    lt_cv_deplibs_check_method=pass_all
8357    ;;
8358  pc)
8359    lt_cv_deplibs_check_method=pass_all
8360    ;;
8361  esac
8362  ;;
8363
8364tpf*)
8365  lt_cv_deplibs_check_method=pass_all
8366  ;;
8367esac
8368
8369fi
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8371$as_echo "$lt_cv_deplibs_check_method" >&6; }
8372
8373file_magic_glob=
8374want_nocaseglob=no
8375if test "$build" = "$host"; then
8376  case $host_os in
8377  mingw* | pw32*)
8378    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8379      want_nocaseglob=yes
8380    else
8381      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8382    fi
8383    ;;
8384  esac
8385fi
8386
8387file_magic_cmd=$lt_cv_file_magic_cmd
8388deplibs_check_method=$lt_cv_deplibs_check_method
8389test -z "$deplibs_check_method" && deplibs_check_method=unknown
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412if test -n "$ac_tool_prefix"; then
8413  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8414set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416$as_echo_n "checking for $ac_word... " >&6; }
8417if ${ac_cv_prog_DLLTOOL+:} false; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420  if test -n "$DLLTOOL"; then
8421  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8422else
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426  IFS=$as_save_IFS
8427  test -z "$as_dir" && as_dir=.
8428    for ac_exec_ext in '' $ac_executable_extensions; do
8429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432    break 2
8433  fi
8434done
8435  done
8436IFS=$as_save_IFS
8437
8438fi
8439fi
8440DLLTOOL=$ac_cv_prog_DLLTOOL
8441if test -n "$DLLTOOL"; then
8442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8443$as_echo "$DLLTOOL" >&6; }
8444else
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
8447fi
8448
8449
8450fi
8451if test -z "$ac_cv_prog_DLLTOOL"; then
8452  ac_ct_DLLTOOL=$DLLTOOL
8453  # Extract the first word of "dlltool", so it can be a program name with args.
8454set dummy dlltool; ac_word=$2
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456$as_echo_n "checking for $ac_word... " >&6; }
8457if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8458  $as_echo_n "(cached) " >&6
8459else
8460  if test -n "$ac_ct_DLLTOOL"; then
8461  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8462else
8463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464for as_dir in $PATH
8465do
8466  IFS=$as_save_IFS
8467  test -z "$as_dir" && as_dir=.
8468    for ac_exec_ext in '' $ac_executable_extensions; do
8469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472    break 2
8473  fi
8474done
8475  done
8476IFS=$as_save_IFS
8477
8478fi
8479fi
8480ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8481if test -n "$ac_ct_DLLTOOL"; then
8482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8483$as_echo "$ac_ct_DLLTOOL" >&6; }
8484else
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486$as_echo "no" >&6; }
8487fi
8488
8489  if test "x$ac_ct_DLLTOOL" = x; then
8490    DLLTOOL="false"
8491  else
8492    case $cross_compiling:$ac_tool_warned in
8493yes:)
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8496ac_tool_warned=yes ;;
8497esac
8498    DLLTOOL=$ac_ct_DLLTOOL
8499  fi
8500else
8501  DLLTOOL="$ac_cv_prog_DLLTOOL"
8502fi
8503
8504test -z "$DLLTOOL" && DLLTOOL=dlltool
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8516$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8517if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  lt_cv_sharedlib_from_linklib_cmd='unknown'
8521
8522case $host_os in
8523cygwin* | mingw* | pw32* | cegcc*)
8524  # two different shell functions defined in ltmain.sh
8525  # decide which to use based on capabilities of $DLLTOOL
8526  case `$DLLTOOL --help 2>&1` in
8527  *--identify-strict*)
8528    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8529    ;;
8530  *)
8531    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8532    ;;
8533  esac
8534  ;;
8535*)
8536  # fallback: assume linklib IS sharedlib
8537  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8538  ;;
8539esac
8540
8541fi
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8543$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8544sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8545test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8546
8547
8548
8549
8550
8551
8552
8553if test -n "$ac_tool_prefix"; then
8554  for ac_prog in ar
8555  do
8556    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559$as_echo_n "checking for $ac_word... " >&6; }
8560if ${ac_cv_prog_AR+:} false; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  if test -n "$AR"; then
8564  ac_cv_prog_AR="$AR" # Let the user override the test.
8565else
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569  IFS=$as_save_IFS
8570  test -z "$as_dir" && as_dir=.
8571    for ac_exec_ext in '' $ac_executable_extensions; do
8572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575    break 2
8576  fi
8577done
8578  done
8579IFS=$as_save_IFS
8580
8581fi
8582fi
8583AR=$ac_cv_prog_AR
8584if test -n "$AR"; then
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8586$as_echo "$AR" >&6; }
8587else
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590fi
8591
8592
8593    test -n "$AR" && break
8594  done
8595fi
8596if test -z "$AR"; then
8597  ac_ct_AR=$AR
8598  for ac_prog in ar
8599do
8600  # Extract the first word of "$ac_prog", so it can be a program name with args.
8601set dummy $ac_prog; ac_word=$2
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603$as_echo_n "checking for $ac_word... " >&6; }
8604if ${ac_cv_prog_ac_ct_AR+:} false; then :
8605  $as_echo_n "(cached) " >&6
8606else
8607  if test -n "$ac_ct_AR"; then
8608  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8609else
8610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611for as_dir in $PATH
8612do
8613  IFS=$as_save_IFS
8614  test -z "$as_dir" && as_dir=.
8615    for ac_exec_ext in '' $ac_executable_extensions; do
8616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617    ac_cv_prog_ac_ct_AR="$ac_prog"
8618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619    break 2
8620  fi
8621done
8622  done
8623IFS=$as_save_IFS
8624
8625fi
8626fi
8627ac_ct_AR=$ac_cv_prog_ac_ct_AR
8628if test -n "$ac_ct_AR"; then
8629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8630$as_echo "$ac_ct_AR" >&6; }
8631else
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633$as_echo "no" >&6; }
8634fi
8635
8636
8637  test -n "$ac_ct_AR" && break
8638done
8639
8640  if test "x$ac_ct_AR" = x; then
8641    AR="false"
8642  else
8643    case $cross_compiling:$ac_tool_warned in
8644yes:)
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8647ac_tool_warned=yes ;;
8648esac
8649    AR=$ac_ct_AR
8650  fi
8651fi
8652
8653: ${AR=ar}
8654: ${AR_FLAGS=cru}
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8667$as_echo_n "checking for archiver @FILE support... " >&6; }
8668if ${lt_cv_ar_at_file+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  lt_cv_ar_at_file=no
8672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h.  */
8674
8675int
8676main ()
8677{
8678
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684  echo conftest.$ac_objext > conftest.lst
8685      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8686      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8687  (eval $lt_ar_try) 2>&5
8688  ac_status=$?
8689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8690  test $ac_status = 0; }
8691      if test "$ac_status" -eq 0; then
8692	# Ensure the archiver fails upon bogus file names.
8693	rm -f conftest.$ac_objext libconftest.a
8694	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8695  (eval $lt_ar_try) 2>&5
8696  ac_status=$?
8697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8698  test $ac_status = 0; }
8699	if test "$ac_status" -ne 0; then
8700          lt_cv_ar_at_file=@
8701        fi
8702      fi
8703      rm -f conftest.* libconftest.a
8704
8705fi
8706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707
8708fi
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8710$as_echo "$lt_cv_ar_at_file" >&6; }
8711
8712if test "x$lt_cv_ar_at_file" = xno; then
8713  archiver_list_spec=
8714else
8715  archiver_list_spec=$lt_cv_ar_at_file
8716fi
8717
8718
8719
8720
8721
8722
8723
8724if test -n "$ac_tool_prefix"; then
8725  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8726set dummy ${ac_tool_prefix}strip; ac_word=$2
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728$as_echo_n "checking for $ac_word... " >&6; }
8729if ${ac_cv_prog_STRIP+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  if test -n "$STRIP"; then
8733  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8734else
8735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738  IFS=$as_save_IFS
8739  test -z "$as_dir" && as_dir=.
8740    for ac_exec_ext in '' $ac_executable_extensions; do
8741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744    break 2
8745  fi
8746done
8747  done
8748IFS=$as_save_IFS
8749
8750fi
8751fi
8752STRIP=$ac_cv_prog_STRIP
8753if test -n "$STRIP"; then
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8755$as_echo "$STRIP" >&6; }
8756else
8757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758$as_echo "no" >&6; }
8759fi
8760
8761
8762fi
8763if test -z "$ac_cv_prog_STRIP"; then
8764  ac_ct_STRIP=$STRIP
8765  # Extract the first word of "strip", so it can be a program name with args.
8766set dummy strip; ac_word=$2
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768$as_echo_n "checking for $ac_word... " >&6; }
8769if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8770  $as_echo_n "(cached) " >&6
8771else
8772  if test -n "$ac_ct_STRIP"; then
8773  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8774else
8775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776for as_dir in $PATH
8777do
8778  IFS=$as_save_IFS
8779  test -z "$as_dir" && as_dir=.
8780    for ac_exec_ext in '' $ac_executable_extensions; do
8781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782    ac_cv_prog_ac_ct_STRIP="strip"
8783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784    break 2
8785  fi
8786done
8787  done
8788IFS=$as_save_IFS
8789
8790fi
8791fi
8792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8793if test -n "$ac_ct_STRIP"; then
8794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8795$as_echo "$ac_ct_STRIP" >&6; }
8796else
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798$as_echo "no" >&6; }
8799fi
8800
8801  if test "x$ac_ct_STRIP" = x; then
8802    STRIP=":"
8803  else
8804    case $cross_compiling:$ac_tool_warned in
8805yes:)
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808ac_tool_warned=yes ;;
8809esac
8810    STRIP=$ac_ct_STRIP
8811  fi
8812else
8813  STRIP="$ac_cv_prog_STRIP"
8814fi
8815
8816test -z "$STRIP" && STRIP=:
8817
8818
8819
8820
8821
8822
8823if test -n "$ac_tool_prefix"; then
8824  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8825set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827$as_echo_n "checking for $ac_word... " >&6; }
8828if ${ac_cv_prog_RANLIB+:} false; then :
8829  $as_echo_n "(cached) " >&6
8830else
8831  if test -n "$RANLIB"; then
8832  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8833else
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837  IFS=$as_save_IFS
8838  test -z "$as_dir" && as_dir=.
8839    for ac_exec_ext in '' $ac_executable_extensions; do
8840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843    break 2
8844  fi
8845done
8846  done
8847IFS=$as_save_IFS
8848
8849fi
8850fi
8851RANLIB=$ac_cv_prog_RANLIB
8852if test -n "$RANLIB"; then
8853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8854$as_echo "$RANLIB" >&6; }
8855else
8856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857$as_echo "no" >&6; }
8858fi
8859
8860
8861fi
8862if test -z "$ac_cv_prog_RANLIB"; then
8863  ac_ct_RANLIB=$RANLIB
8864  # Extract the first word of "ranlib", so it can be a program name with args.
8865set dummy ranlib; ac_word=$2
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867$as_echo_n "checking for $ac_word... " >&6; }
8868if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  if test -n "$ac_ct_RANLIB"; then
8872  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8873else
8874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877  IFS=$as_save_IFS
8878  test -z "$as_dir" && as_dir=.
8879    for ac_exec_ext in '' $ac_executable_extensions; do
8880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881    ac_cv_prog_ac_ct_RANLIB="ranlib"
8882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883    break 2
8884  fi
8885done
8886  done
8887IFS=$as_save_IFS
8888
8889fi
8890fi
8891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8892if test -n "$ac_ct_RANLIB"; then
8893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8894$as_echo "$ac_ct_RANLIB" >&6; }
8895else
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
8898fi
8899
8900  if test "x$ac_ct_RANLIB" = x; then
8901    RANLIB=":"
8902  else
8903    case $cross_compiling:$ac_tool_warned in
8904yes:)
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8907ac_tool_warned=yes ;;
8908esac
8909    RANLIB=$ac_ct_RANLIB
8910  fi
8911else
8912  RANLIB="$ac_cv_prog_RANLIB"
8913fi
8914
8915test -z "$RANLIB" && RANLIB=:
8916
8917
8918
8919
8920
8921
8922# Determine commands to create old-style static archives.
8923old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8924old_postinstall_cmds='chmod 644 $oldlib'
8925old_postuninstall_cmds=
8926
8927if test -n "$RANLIB"; then
8928  case $host_os in
8929  openbsd*)
8930    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8931    ;;
8932  *)
8933    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8934    ;;
8935  esac
8936  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8937fi
8938
8939case $host_os in
8940  darwin*)
8941    lock_old_archive_extraction=yes ;;
8942  *)
8943    lock_old_archive_extraction=no ;;
8944esac
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966for ac_prog in gawk mawk nawk awk
8967do
8968  # Extract the first word of "$ac_prog", so it can be a program name with args.
8969set dummy $ac_prog; ac_word=$2
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971$as_echo_n "checking for $ac_word... " >&6; }
8972if ${ac_cv_prog_AWK+:} false; then :
8973  $as_echo_n "(cached) " >&6
8974else
8975  if test -n "$AWK"; then
8976  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8977else
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981  IFS=$as_save_IFS
8982  test -z "$as_dir" && as_dir=.
8983    for ac_exec_ext in '' $ac_executable_extensions; do
8984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985    ac_cv_prog_AWK="$ac_prog"
8986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987    break 2
8988  fi
8989done
8990  done
8991IFS=$as_save_IFS
8992
8993fi
8994fi
8995AWK=$ac_cv_prog_AWK
8996if test -n "$AWK"; then
8997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8998$as_echo "$AWK" >&6; }
8999else
9000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }
9002fi
9003
9004
9005  test -n "$AWK" && break
9006done
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026# If no C compiler was specified, use CC.
9027LTCC=${LTCC-"$CC"}
9028
9029# If no C compiler flags were specified, use CFLAGS.
9030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9031
9032# Allow CC to be a program name with arguments.
9033compiler=$CC
9034
9035
9036# Check for command to grab the raw symbol name followed by C symbol from nm.
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9038$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9039if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042
9043# These are sane defaults that work on at least a few old systems.
9044# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9045
9046# Character class describing NM global symbol codes.
9047symcode='[BCDEGRST]'
9048
9049# Regexp to match symbols that can be accessed directly from C.
9050sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9051
9052# Define system-specific variables.
9053case $host_os in
9054aix*)
9055  symcode='[BCDT]'
9056  ;;
9057cygwin* | mingw* | pw32* | cegcc*)
9058  symcode='[ABCDGISTW]'
9059  ;;
9060hpux*)
9061  if test "$host_cpu" = ia64; then
9062    symcode='[ABCDEGRST]'
9063  fi
9064  ;;
9065irix* | nonstopux*)
9066  symcode='[BCDEGRST]'
9067  ;;
9068osf*)
9069  symcode='[BCDEGQRST]'
9070  ;;
9071solaris*)
9072  symcode='[BDRT]'
9073  ;;
9074sco3.2v5*)
9075  symcode='[DT]'
9076  ;;
9077sysv4.2uw2*)
9078  symcode='[DT]'
9079  ;;
9080sysv5* | sco5v6* | unixware* | OpenUNIX*)
9081  symcode='[ABDT]'
9082  ;;
9083sysv4)
9084  symcode='[DFNSTU]'
9085  ;;
9086esac
9087
9088# If we're using GNU nm, then use its standard symbol codes.
9089case `$NM -V 2>&1` in
9090*GNU* | *'with BFD'*)
9091  symcode='[ABCDGIRSTW]' ;;
9092esac
9093
9094# Transform an extracted symbol line into a proper C declaration.
9095# Some systems (esp. on ia64) link data and code symbols differently,
9096# so use this general approach.
9097lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9098
9099# Transform an extracted symbol line into symbol name and symbol address
9100lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9101lt_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'"
9102
9103# Handle CRLF in mingw tool chain
9104opt_cr=
9105case $build_os in
9106mingw*)
9107  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9108  ;;
9109esac
9110
9111# Try without a prefix underscore, then with it.
9112for ac_symprfx in "" "_"; do
9113
9114  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9115  symxfrm="\\1 $ac_symprfx\\2 \\2"
9116
9117  # Write the raw and C identifiers.
9118  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9119    # Fake it for dumpbin and say T for any non-static function
9120    # and D for any global variable.
9121    # Also find C++ and __fastcall symbols from MSVC++,
9122    # which start with @ or ?.
9123    lt_cv_sys_global_symbol_pipe="$AWK '"\
9124"     {last_section=section; section=\$ 3};"\
9125"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9126"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9127"     \$ 0!~/External *\|/{next};"\
9128"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9129"     {if(hide[section]) next};"\
9130"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9131"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9132"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9133"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9134"     ' prfx=^$ac_symprfx"
9135  else
9136    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9137  fi
9138  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9139
9140  # Check to see that the pipe works correctly.
9141  pipe_works=no
9142
9143  rm -f conftest*
9144  cat > conftest.$ac_ext <<_LT_EOF
9145#ifdef __cplusplus
9146extern "C" {
9147#endif
9148char nm_test_var;
9149void nm_test_func(void);
9150void nm_test_func(void){}
9151#ifdef __cplusplus
9152}
9153#endif
9154int main(){nm_test_var='a';nm_test_func();return(0);}
9155_LT_EOF
9156
9157  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9158  (eval $ac_compile) 2>&5
9159  ac_status=$?
9160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9161  test $ac_status = 0; }; then
9162    # Now try to grab the symbols.
9163    nlist=conftest.nm
9164    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9165  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9166  ac_status=$?
9167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9168  test $ac_status = 0; } && test -s "$nlist"; then
9169      # Try sorting and uniquifying the output.
9170      if sort "$nlist" | uniq > "$nlist"T; then
9171	mv -f "$nlist"T "$nlist"
9172      else
9173	rm -f "$nlist"T
9174      fi
9175
9176      # Make sure that we snagged all the symbols we need.
9177      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9178	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9179	  cat <<_LT_EOF > conftest.$ac_ext
9180/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9181#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9182/* DATA imports from DLLs on WIN32 con't be const, because runtime
9183   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9184# define LT_DLSYM_CONST
9185#elif defined(__osf__)
9186/* This system does not cope well with relocations in const data.  */
9187# define LT_DLSYM_CONST
9188#else
9189# define LT_DLSYM_CONST const
9190#endif
9191
9192#ifdef __cplusplus
9193extern "C" {
9194#endif
9195
9196_LT_EOF
9197	  # Now generate the symbol file.
9198	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9199
9200	  cat <<_LT_EOF >> conftest.$ac_ext
9201
9202/* The mapping between symbol names and symbols.  */
9203LT_DLSYM_CONST struct {
9204  const char *name;
9205  void       *address;
9206}
9207lt__PROGRAM__LTX_preloaded_symbols[] =
9208{
9209  { "@PROGRAM@", (void *) 0 },
9210_LT_EOF
9211	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9212	  cat <<\_LT_EOF >> conftest.$ac_ext
9213  {0, (void *) 0}
9214};
9215
9216/* This works around a problem in FreeBSD linker */
9217#ifdef FREEBSD_WORKAROUND
9218static const void *lt_preloaded_setup() {
9219  return lt__PROGRAM__LTX_preloaded_symbols;
9220}
9221#endif
9222
9223#ifdef __cplusplus
9224}
9225#endif
9226_LT_EOF
9227	  # Now try linking the two files.
9228	  mv conftest.$ac_objext conftstm.$ac_objext
9229	  lt_globsym_save_LIBS=$LIBS
9230	  lt_globsym_save_CFLAGS=$CFLAGS
9231	  LIBS="conftstm.$ac_objext"
9232	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9233	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9234  (eval $ac_link) 2>&5
9235  ac_status=$?
9236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9237  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9238	    pipe_works=yes
9239	  fi
9240	  LIBS=$lt_globsym_save_LIBS
9241	  CFLAGS=$lt_globsym_save_CFLAGS
9242	else
9243	  echo "cannot find nm_test_func in $nlist" >&5
9244	fi
9245      else
9246	echo "cannot find nm_test_var in $nlist" >&5
9247      fi
9248    else
9249      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9250    fi
9251  else
9252    echo "$progname: failed program was:" >&5
9253    cat conftest.$ac_ext >&5
9254  fi
9255  rm -rf conftest* conftst*
9256
9257  # Do not use the global_symbol_pipe unless it works.
9258  if test "$pipe_works" = yes; then
9259    break
9260  else
9261    lt_cv_sys_global_symbol_pipe=
9262  fi
9263done
9264
9265fi
9266
9267if test -z "$lt_cv_sys_global_symbol_pipe"; then
9268  lt_cv_sys_global_symbol_to_cdecl=
9269fi
9270if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9272$as_echo "failed" >&6; }
9273else
9274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9275$as_echo "ok" >&6; }
9276fi
9277
9278# Response file support.
9279if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9280  nm_file_list_spec='@'
9281elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9282  nm_file_list_spec='@'
9283fi
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9312$as_echo_n "checking for sysroot... " >&6; }
9313
9314# Check whether --with-sysroot was given.
9315if test "${with_sysroot+set}" = set; then :
9316  withval=$with_sysroot;
9317else
9318  with_sysroot=no
9319fi
9320
9321
9322lt_sysroot=
9323case ${with_sysroot} in #(
9324 yes)
9325   if test "$GCC" = yes; then
9326     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9327   fi
9328   ;; #(
9329 /*)
9330   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9331   ;; #(
9332 no|'')
9333   ;; #(
9334 *)
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9336$as_echo "${with_sysroot}" >&6; }
9337   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9338   ;;
9339esac
9340
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9342$as_echo "${lt_sysroot:-no}" >&6; }
9343
9344
9345
9346
9347
9348# Check whether --enable-libtool-lock was given.
9349if test "${enable_libtool_lock+set}" = set; then :
9350  enableval=$enable_libtool_lock;
9351fi
9352
9353test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9354
9355# Some flags need to be propagated to the compiler or linker for good
9356# libtool support.
9357case $host in
9358ia64-*-hpux*)
9359  # Find out which ABI we are using.
9360  echo 'int i;' > conftest.$ac_ext
9361  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9362  (eval $ac_compile) 2>&5
9363  ac_status=$?
9364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9365  test $ac_status = 0; }; then
9366    case `/usr/bin/file conftest.$ac_objext` in
9367      *ELF-32*)
9368	HPUX_IA64_MODE="32"
9369	;;
9370      *ELF-64*)
9371	HPUX_IA64_MODE="64"
9372	;;
9373    esac
9374  fi
9375  rm -rf conftest*
9376  ;;
9377*-*-irix6*)
9378  # Find out which ABI we are using.
9379  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9380  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9381  (eval $ac_compile) 2>&5
9382  ac_status=$?
9383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9384  test $ac_status = 0; }; then
9385    if test "$lt_cv_prog_gnu_ld" = yes; then
9386      case `/usr/bin/file conftest.$ac_objext` in
9387	*32-bit*)
9388	  LD="${LD-ld} -melf32bsmip"
9389	  ;;
9390	*N32*)
9391	  LD="${LD-ld} -melf32bmipn32"
9392	  ;;
9393	*64-bit*)
9394	  LD="${LD-ld} -melf64bmip"
9395	;;
9396      esac
9397    else
9398      case `/usr/bin/file conftest.$ac_objext` in
9399	*32-bit*)
9400	  LD="${LD-ld} -32"
9401	  ;;
9402	*N32*)
9403	  LD="${LD-ld} -n32"
9404	  ;;
9405	*64-bit*)
9406	  LD="${LD-ld} -64"
9407	  ;;
9408      esac
9409    fi
9410  fi
9411  rm -rf conftest*
9412  ;;
9413
9414x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9415s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9416  # Find out which ABI we are using.
9417  echo 'int i;' > conftest.$ac_ext
9418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9419  (eval $ac_compile) 2>&5
9420  ac_status=$?
9421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9422  test $ac_status = 0; }; then
9423    case `/usr/bin/file conftest.o` in
9424      *32-bit*)
9425	case $host in
9426	  x86_64-*kfreebsd*-gnu)
9427	    LD="${LD-ld} -m elf_i386_fbsd"
9428	    ;;
9429	  x86_64-*linux*)
9430	    LD="${LD-ld} -m elf_i386"
9431	    ;;
9432	  ppc64-*linux*|powerpc64-*linux*)
9433	    LD="${LD-ld} -m elf32ppclinux"
9434	    ;;
9435	  s390x-*linux*)
9436	    LD="${LD-ld} -m elf_s390"
9437	    ;;
9438	  sparc64-*linux*)
9439	    LD="${LD-ld} -m elf32_sparc"
9440	    ;;
9441	esac
9442	;;
9443      *64-bit*)
9444	case $host in
9445	  x86_64-*kfreebsd*-gnu)
9446	    LD="${LD-ld} -m elf_x86_64_fbsd"
9447	    ;;
9448	  x86_64-*linux*)
9449	    LD="${LD-ld} -m elf_x86_64"
9450	    ;;
9451	  ppc*-*linux*|powerpc*-*linux*)
9452	    LD="${LD-ld} -m elf64ppc"
9453	    ;;
9454	  s390*-*linux*|s390*-*tpf*)
9455	    LD="${LD-ld} -m elf64_s390"
9456	    ;;
9457	  sparc*-*linux*)
9458	    LD="${LD-ld} -m elf64_sparc"
9459	    ;;
9460	esac
9461	;;
9462    esac
9463  fi
9464  rm -rf conftest*
9465  ;;
9466
9467*-*-sco3.2v5*)
9468  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9469  SAVE_CFLAGS="$CFLAGS"
9470  CFLAGS="$CFLAGS -belf"
9471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9472$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9473if ${lt_cv_cc_needs_belf+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  ac_ext=c
9477ac_cpp='$CPP $CPPFLAGS'
9478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480ac_compiler_gnu=$ac_cv_c_compiler_gnu
9481
9482     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484
9485int
9486main ()
9487{
9488
9489  ;
9490  return 0;
9491}
9492_ACEOF
9493if ac_fn_c_try_link "$LINENO"; then :
9494  lt_cv_cc_needs_belf=yes
9495else
9496  lt_cv_cc_needs_belf=no
9497fi
9498rm -f core conftest.err conftest.$ac_objext \
9499    conftest$ac_exeext conftest.$ac_ext
9500     ac_ext=c
9501ac_cpp='$CPP $CPPFLAGS'
9502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9504ac_compiler_gnu=$ac_cv_c_compiler_gnu
9505
9506fi
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9508$as_echo "$lt_cv_cc_needs_belf" >&6; }
9509  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9510    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9511    CFLAGS="$SAVE_CFLAGS"
9512  fi
9513  ;;
9514*-*solaris*)
9515  # Find out which ABI we are using.
9516  echo 'int i;' > conftest.$ac_ext
9517  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518  (eval $ac_compile) 2>&5
9519  ac_status=$?
9520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521  test $ac_status = 0; }; then
9522    case `/usr/bin/file conftest.o` in
9523    *64-bit*)
9524      case $lt_cv_prog_gnu_ld in
9525      yes*)
9526        case $host in
9527        i?86-*-solaris*)
9528          LD="${LD-ld} -m elf_x86_64"
9529          ;;
9530        sparc*-*-solaris*)
9531          LD="${LD-ld} -m elf64_sparc"
9532          ;;
9533        esac
9534        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9535        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9536          LD="${LD-ld}_sol2"
9537        fi
9538        ;;
9539      *)
9540	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9541	  LD="${LD-ld} -64"
9542	fi
9543	;;
9544      esac
9545      ;;
9546    esac
9547  fi
9548  rm -rf conftest*
9549  ;;
9550esac
9551
9552need_locks="$enable_libtool_lock"
9553
9554if test -n "$ac_tool_prefix"; then
9555  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9556set dummy ${ac_tool_prefix}mt; ac_word=$2
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558$as_echo_n "checking for $ac_word... " >&6; }
9559if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9560  $as_echo_n "(cached) " >&6
9561else
9562  if test -n "$MANIFEST_TOOL"; then
9563  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9564else
9565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566for as_dir in $PATH
9567do
9568  IFS=$as_save_IFS
9569  test -z "$as_dir" && as_dir=.
9570    for ac_exec_ext in '' $ac_executable_extensions; do
9571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9572    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574    break 2
9575  fi
9576done
9577  done
9578IFS=$as_save_IFS
9579
9580fi
9581fi
9582MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9583if test -n "$MANIFEST_TOOL"; then
9584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9585$as_echo "$MANIFEST_TOOL" >&6; }
9586else
9587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588$as_echo "no" >&6; }
9589fi
9590
9591
9592fi
9593if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9594  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9595  # Extract the first word of "mt", so it can be a program name with args.
9596set dummy mt; ac_word=$2
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9600  $as_echo_n "(cached) " >&6
9601else
9602  if test -n "$ac_ct_MANIFEST_TOOL"; then
9603  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608  IFS=$as_save_IFS
9609  test -z "$as_dir" && as_dir=.
9610    for ac_exec_ext in '' $ac_executable_extensions; do
9611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614    break 2
9615  fi
9616done
9617  done
9618IFS=$as_save_IFS
9619
9620fi
9621fi
9622ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9623if test -n "$ac_ct_MANIFEST_TOOL"; then
9624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9625$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9626else
9627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
9629fi
9630
9631  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9632    MANIFEST_TOOL=":"
9633  else
9634    case $cross_compiling:$ac_tool_warned in
9635yes:)
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9638ac_tool_warned=yes ;;
9639esac
9640    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9641  fi
9642else
9643  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9644fi
9645
9646test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9648$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9649if ${lt_cv_path_mainfest_tool+:} false; then :
9650  $as_echo_n "(cached) " >&6
9651else
9652  lt_cv_path_mainfest_tool=no
9653  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9654  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9655  cat conftest.err >&5
9656  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9657    lt_cv_path_mainfest_tool=yes
9658  fi
9659  rm -f conftest*
9660fi
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9662$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9663if test "x$lt_cv_path_mainfest_tool" != xyes; then
9664  MANIFEST_TOOL=:
9665fi
9666
9667
9668
9669
9670
9671
9672  case $host_os in
9673    rhapsody* | darwin*)
9674    if test -n "$ac_tool_prefix"; then
9675  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9676set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678$as_echo_n "checking for $ac_word... " >&6; }
9679if ${ac_cv_prog_DSYMUTIL+:} false; then :
9680  $as_echo_n "(cached) " >&6
9681else
9682  if test -n "$DSYMUTIL"; then
9683  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9684else
9685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $PATH
9687do
9688  IFS=$as_save_IFS
9689  test -z "$as_dir" && as_dir=.
9690    for ac_exec_ext in '' $ac_executable_extensions; do
9691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694    break 2
9695  fi
9696done
9697  done
9698IFS=$as_save_IFS
9699
9700fi
9701fi
9702DSYMUTIL=$ac_cv_prog_DSYMUTIL
9703if test -n "$DSYMUTIL"; then
9704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9705$as_echo "$DSYMUTIL" >&6; }
9706else
9707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708$as_echo "no" >&6; }
9709fi
9710
9711
9712fi
9713if test -z "$ac_cv_prog_DSYMUTIL"; then
9714  ac_ct_DSYMUTIL=$DSYMUTIL
9715  # Extract the first word of "dsymutil", so it can be a program name with args.
9716set dummy dsymutil; ac_word=$2
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718$as_echo_n "checking for $ac_word... " >&6; }
9719if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9720  $as_echo_n "(cached) " >&6
9721else
9722  if test -n "$ac_ct_DSYMUTIL"; then
9723  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9724else
9725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726for as_dir in $PATH
9727do
9728  IFS=$as_save_IFS
9729  test -z "$as_dir" && as_dir=.
9730    for ac_exec_ext in '' $ac_executable_extensions; do
9731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9732    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734    break 2
9735  fi
9736done
9737  done
9738IFS=$as_save_IFS
9739
9740fi
9741fi
9742ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9743if test -n "$ac_ct_DSYMUTIL"; then
9744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9745$as_echo "$ac_ct_DSYMUTIL" >&6; }
9746else
9747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748$as_echo "no" >&6; }
9749fi
9750
9751  if test "x$ac_ct_DSYMUTIL" = x; then
9752    DSYMUTIL=":"
9753  else
9754    case $cross_compiling:$ac_tool_warned in
9755yes:)
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9758ac_tool_warned=yes ;;
9759esac
9760    DSYMUTIL=$ac_ct_DSYMUTIL
9761  fi
9762else
9763  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9764fi
9765
9766    if test -n "$ac_tool_prefix"; then
9767  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9768set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770$as_echo_n "checking for $ac_word... " >&6; }
9771if ${ac_cv_prog_NMEDIT+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  if test -n "$NMEDIT"; then
9775  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9776else
9777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780  IFS=$as_save_IFS
9781  test -z "$as_dir" && as_dir=.
9782    for ac_exec_ext in '' $ac_executable_extensions; do
9783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786    break 2
9787  fi
9788done
9789  done
9790IFS=$as_save_IFS
9791
9792fi
9793fi
9794NMEDIT=$ac_cv_prog_NMEDIT
9795if test -n "$NMEDIT"; then
9796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9797$as_echo "$NMEDIT" >&6; }
9798else
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
9801fi
9802
9803
9804fi
9805if test -z "$ac_cv_prog_NMEDIT"; then
9806  ac_ct_NMEDIT=$NMEDIT
9807  # Extract the first word of "nmedit", so it can be a program name with args.
9808set dummy nmedit; ac_word=$2
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810$as_echo_n "checking for $ac_word... " >&6; }
9811if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9812  $as_echo_n "(cached) " >&6
9813else
9814  if test -n "$ac_ct_NMEDIT"; then
9815  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9816else
9817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $PATH
9819do
9820  IFS=$as_save_IFS
9821  test -z "$as_dir" && as_dir=.
9822    for ac_exec_ext in '' $ac_executable_extensions; do
9823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826    break 2
9827  fi
9828done
9829  done
9830IFS=$as_save_IFS
9831
9832fi
9833fi
9834ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9835if test -n "$ac_ct_NMEDIT"; then
9836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9837$as_echo "$ac_ct_NMEDIT" >&6; }
9838else
9839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840$as_echo "no" >&6; }
9841fi
9842
9843  if test "x$ac_ct_NMEDIT" = x; then
9844    NMEDIT=":"
9845  else
9846    case $cross_compiling:$ac_tool_warned in
9847yes:)
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9850ac_tool_warned=yes ;;
9851esac
9852    NMEDIT=$ac_ct_NMEDIT
9853  fi
9854else
9855  NMEDIT="$ac_cv_prog_NMEDIT"
9856fi
9857
9858    if test -n "$ac_tool_prefix"; then
9859  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9860set dummy ${ac_tool_prefix}lipo; ac_word=$2
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862$as_echo_n "checking for $ac_word... " >&6; }
9863if ${ac_cv_prog_LIPO+:} false; then :
9864  $as_echo_n "(cached) " >&6
9865else
9866  if test -n "$LIPO"; then
9867  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9868else
9869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870for as_dir in $PATH
9871do
9872  IFS=$as_save_IFS
9873  test -z "$as_dir" && as_dir=.
9874    for ac_exec_ext in '' $ac_executable_extensions; do
9875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878    break 2
9879  fi
9880done
9881  done
9882IFS=$as_save_IFS
9883
9884fi
9885fi
9886LIPO=$ac_cv_prog_LIPO
9887if test -n "$LIPO"; then
9888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9889$as_echo "$LIPO" >&6; }
9890else
9891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892$as_echo "no" >&6; }
9893fi
9894
9895
9896fi
9897if test -z "$ac_cv_prog_LIPO"; then
9898  ac_ct_LIPO=$LIPO
9899  # Extract the first word of "lipo", so it can be a program name with args.
9900set dummy lipo; ac_word=$2
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902$as_echo_n "checking for $ac_word... " >&6; }
9903if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9904  $as_echo_n "(cached) " >&6
9905else
9906  if test -n "$ac_ct_LIPO"; then
9907  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9908else
9909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910for as_dir in $PATH
9911do
9912  IFS=$as_save_IFS
9913  test -z "$as_dir" && as_dir=.
9914    for ac_exec_ext in '' $ac_executable_extensions; do
9915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916    ac_cv_prog_ac_ct_LIPO="lipo"
9917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918    break 2
9919  fi
9920done
9921  done
9922IFS=$as_save_IFS
9923
9924fi
9925fi
9926ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9927if test -n "$ac_ct_LIPO"; then
9928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9929$as_echo "$ac_ct_LIPO" >&6; }
9930else
9931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932$as_echo "no" >&6; }
9933fi
9934
9935  if test "x$ac_ct_LIPO" = x; then
9936    LIPO=":"
9937  else
9938    case $cross_compiling:$ac_tool_warned in
9939yes:)
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9942ac_tool_warned=yes ;;
9943esac
9944    LIPO=$ac_ct_LIPO
9945  fi
9946else
9947  LIPO="$ac_cv_prog_LIPO"
9948fi
9949
9950    if test -n "$ac_tool_prefix"; then
9951  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9952set dummy ${ac_tool_prefix}otool; ac_word=$2
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954$as_echo_n "checking for $ac_word... " >&6; }
9955if ${ac_cv_prog_OTOOL+:} false; then :
9956  $as_echo_n "(cached) " >&6
9957else
9958  if test -n "$OTOOL"; then
9959  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9960else
9961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962for as_dir in $PATH
9963do
9964  IFS=$as_save_IFS
9965  test -z "$as_dir" && as_dir=.
9966    for ac_exec_ext in '' $ac_executable_extensions; do
9967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970    break 2
9971  fi
9972done
9973  done
9974IFS=$as_save_IFS
9975
9976fi
9977fi
9978OTOOL=$ac_cv_prog_OTOOL
9979if test -n "$OTOOL"; then
9980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9981$as_echo "$OTOOL" >&6; }
9982else
9983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984$as_echo "no" >&6; }
9985fi
9986
9987
9988fi
9989if test -z "$ac_cv_prog_OTOOL"; then
9990  ac_ct_OTOOL=$OTOOL
9991  # Extract the first word of "otool", so it can be a program name with args.
9992set dummy otool; ac_word=$2
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994$as_echo_n "checking for $ac_word... " >&6; }
9995if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9996  $as_echo_n "(cached) " >&6
9997else
9998  if test -n "$ac_ct_OTOOL"; then
9999  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10000else
10001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004  IFS=$as_save_IFS
10005  test -z "$as_dir" && as_dir=.
10006    for ac_exec_ext in '' $ac_executable_extensions; do
10007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008    ac_cv_prog_ac_ct_OTOOL="otool"
10009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010    break 2
10011  fi
10012done
10013  done
10014IFS=$as_save_IFS
10015
10016fi
10017fi
10018ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10019if test -n "$ac_ct_OTOOL"; then
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10021$as_echo "$ac_ct_OTOOL" >&6; }
10022else
10023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024$as_echo "no" >&6; }
10025fi
10026
10027  if test "x$ac_ct_OTOOL" = x; then
10028    OTOOL=":"
10029  else
10030    case $cross_compiling:$ac_tool_warned in
10031yes:)
10032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10034ac_tool_warned=yes ;;
10035esac
10036    OTOOL=$ac_ct_OTOOL
10037  fi
10038else
10039  OTOOL="$ac_cv_prog_OTOOL"
10040fi
10041
10042    if test -n "$ac_tool_prefix"; then
10043  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10044set dummy ${ac_tool_prefix}otool64; ac_word=$2
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046$as_echo_n "checking for $ac_word... " >&6; }
10047if ${ac_cv_prog_OTOOL64+:} false; then :
10048  $as_echo_n "(cached) " >&6
10049else
10050  if test -n "$OTOOL64"; then
10051  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10052else
10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $PATH
10055do
10056  IFS=$as_save_IFS
10057  test -z "$as_dir" && as_dir=.
10058    for ac_exec_ext in '' $ac_executable_extensions; do
10059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062    break 2
10063  fi
10064done
10065  done
10066IFS=$as_save_IFS
10067
10068fi
10069fi
10070OTOOL64=$ac_cv_prog_OTOOL64
10071if test -n "$OTOOL64"; then
10072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10073$as_echo "$OTOOL64" >&6; }
10074else
10075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076$as_echo "no" >&6; }
10077fi
10078
10079
10080fi
10081if test -z "$ac_cv_prog_OTOOL64"; then
10082  ac_ct_OTOOL64=$OTOOL64
10083  # Extract the first word of "otool64", so it can be a program name with args.
10084set dummy otool64; ac_word=$2
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086$as_echo_n "checking for $ac_word... " >&6; }
10087if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10088  $as_echo_n "(cached) " >&6
10089else
10090  if test -n "$ac_ct_OTOOL64"; then
10091  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10092else
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096  IFS=$as_save_IFS
10097  test -z "$as_dir" && as_dir=.
10098    for ac_exec_ext in '' $ac_executable_extensions; do
10099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100    ac_cv_prog_ac_ct_OTOOL64="otool64"
10101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102    break 2
10103  fi
10104done
10105  done
10106IFS=$as_save_IFS
10107
10108fi
10109fi
10110ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10111if test -n "$ac_ct_OTOOL64"; then
10112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10113$as_echo "$ac_ct_OTOOL64" >&6; }
10114else
10115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
10117fi
10118
10119  if test "x$ac_ct_OTOOL64" = x; then
10120    OTOOL64=":"
10121  else
10122    case $cross_compiling:$ac_tool_warned in
10123yes:)
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126ac_tool_warned=yes ;;
10127esac
10128    OTOOL64=$ac_ct_OTOOL64
10129  fi
10130else
10131  OTOOL64="$ac_cv_prog_OTOOL64"
10132fi
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10161$as_echo_n "checking for -single_module linker flag... " >&6; }
10162if ${lt_cv_apple_cc_single_mod+:} false; then :
10163  $as_echo_n "(cached) " >&6
10164else
10165  lt_cv_apple_cc_single_mod=no
10166      if test -z "${LT_MULTI_MODULE}"; then
10167	# By default we will add the -single_module flag. You can override
10168	# by either setting the environment variable LT_MULTI_MODULE
10169	# non-empty at configure time, or by adding -multi_module to the
10170	# link flags.
10171	rm -rf libconftest.dylib*
10172	echo "int foo(void){return 1;}" > conftest.c
10173	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10174-dynamiclib -Wl,-single_module conftest.c" >&5
10175	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10176	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10177        _lt_result=$?
10178	# If there is a non-empty error log, and "single_module"
10179	# appears in it, assume the flag caused a linker warning
10180        if test -s conftest.err && $GREP single_module conftest.err; then
10181	  cat conftest.err >&5
10182	# Otherwise, if the output was created with a 0 exit code from
10183	# the compiler, it worked.
10184	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10185	  lt_cv_apple_cc_single_mod=yes
10186	else
10187	  cat conftest.err >&5
10188	fi
10189	rm -rf libconftest.dylib*
10190	rm -f conftest.*
10191      fi
10192fi
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10194$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10195
10196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10197$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10198if ${lt_cv_ld_exported_symbols_list+:} false; then :
10199  $as_echo_n "(cached) " >&6
10200else
10201  lt_cv_ld_exported_symbols_list=no
10202      save_LDFLAGS=$LDFLAGS
10203      echo "_main" > conftest.sym
10204      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10205      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h.  */
10207
10208int
10209main ()
10210{
10211
10212  ;
10213  return 0;
10214}
10215_ACEOF
10216if ac_fn_c_try_link "$LINENO"; then :
10217  lt_cv_ld_exported_symbols_list=yes
10218else
10219  lt_cv_ld_exported_symbols_list=no
10220fi
10221rm -f core conftest.err conftest.$ac_objext \
10222    conftest$ac_exeext conftest.$ac_ext
10223	LDFLAGS="$save_LDFLAGS"
10224
10225fi
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10227$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10228
10229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10230$as_echo_n "checking for -force_load linker flag... " >&6; }
10231if ${lt_cv_ld_force_load+:} false; then :
10232  $as_echo_n "(cached) " >&6
10233else
10234  lt_cv_ld_force_load=no
10235      cat > conftest.c << _LT_EOF
10236int forced_loaded() { return 2;}
10237_LT_EOF
10238      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10239      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10240      echo "$AR cru libconftest.a conftest.o" >&5
10241      $AR cru libconftest.a conftest.o 2>&5
10242      echo "$RANLIB libconftest.a" >&5
10243      $RANLIB libconftest.a 2>&5
10244      cat > conftest.c << _LT_EOF
10245int main() { return 0;}
10246_LT_EOF
10247      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10248      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10249      _lt_result=$?
10250      if test -s conftest.err && $GREP force_load conftest.err; then
10251	cat conftest.err >&5
10252      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10253	lt_cv_ld_force_load=yes
10254      else
10255	cat conftest.err >&5
10256      fi
10257        rm -f conftest.err libconftest.a conftest conftest.c
10258        rm -rf conftest.dSYM
10259
10260fi
10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10262$as_echo "$lt_cv_ld_force_load" >&6; }
10263    case $host_os in
10264    rhapsody* | darwin1.[012])
10265      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10266    darwin1.*)
10267      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10268    darwin*) # darwin 5.x on
10269      # if running on 10.5 or later, the deployment target defaults
10270      # to the OS version, if on x86, and 10.4, the deployment
10271      # target defaults to 10.4. Don't you love it?
10272      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10273	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10274	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10275	10.[012]*)
10276	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10277	10.*)
10278	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10279      esac
10280    ;;
10281  esac
10282    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10283      _lt_dar_single_mod='$single_module'
10284    fi
10285    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10286      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10287    else
10288      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10289    fi
10290    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10291      _lt_dsymutil='~$DSYMUTIL $lib || :'
10292    else
10293      _lt_dsymutil=
10294    fi
10295    ;;
10296  esac
10297
10298for ac_header in dlfcn.h
10299do :
10300  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10301"
10302if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10303  cat >>confdefs.h <<_ACEOF
10304#define HAVE_DLFCN_H 1
10305_ACEOF
10306
10307fi
10308
10309done
10310
10311
10312
10313func_stripname_cnf ()
10314{
10315  case ${2} in
10316  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10317  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10318  esac
10319} # func_stripname_cnf
10320
10321
10322
10323
10324
10325# Set options
10326
10327
10328
10329        enable_dlopen=no
10330
10331
10332  enable_win32_dll=no
10333
10334
10335            # Check whether --enable-shared was given.
10336if test "${enable_shared+set}" = set; then :
10337  enableval=$enable_shared; p=${PACKAGE-default}
10338    case $enableval in
10339    yes) enable_shared=yes ;;
10340    no) enable_shared=no ;;
10341    *)
10342      enable_shared=no
10343      # Look at the argument we got.  We use all the common list separators.
10344      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10345      for pkg in $enableval; do
10346	IFS="$lt_save_ifs"
10347	if test "X$pkg" = "X$p"; then
10348	  enable_shared=yes
10349	fi
10350      done
10351      IFS="$lt_save_ifs"
10352      ;;
10353    esac
10354else
10355  enable_shared=yes
10356fi
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366  # Check whether --enable-static was given.
10367if test "${enable_static+set}" = set; then :
10368  enableval=$enable_static; p=${PACKAGE-default}
10369    case $enableval in
10370    yes) enable_static=yes ;;
10371    no) enable_static=no ;;
10372    *)
10373     enable_static=no
10374      # Look at the argument we got.  We use all the common list separators.
10375      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10376      for pkg in $enableval; do
10377	IFS="$lt_save_ifs"
10378	if test "X$pkg" = "X$p"; then
10379	  enable_static=yes
10380	fi
10381      done
10382      IFS="$lt_save_ifs"
10383      ;;
10384    esac
10385else
10386  enable_static=yes
10387fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398# Check whether --with-pic was given.
10399if test "${with_pic+set}" = set; then :
10400  withval=$with_pic; lt_p=${PACKAGE-default}
10401    case $withval in
10402    yes|no) pic_mode=$withval ;;
10403    *)
10404      pic_mode=default
10405      # Look at the argument we got.  We use all the common list separators.
10406      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10407      for lt_pkg in $withval; do
10408	IFS="$lt_save_ifs"
10409	if test "X$lt_pkg" = "X$lt_p"; then
10410	  pic_mode=yes
10411	fi
10412      done
10413      IFS="$lt_save_ifs"
10414      ;;
10415    esac
10416else
10417  pic_mode=default
10418fi
10419
10420
10421test -z "$pic_mode" && pic_mode=default
10422
10423
10424
10425
10426
10427
10428
10429  # Check whether --enable-fast-install was given.
10430if test "${enable_fast_install+set}" = set; then :
10431  enableval=$enable_fast_install; p=${PACKAGE-default}
10432    case $enableval in
10433    yes) enable_fast_install=yes ;;
10434    no) enable_fast_install=no ;;
10435    *)
10436      enable_fast_install=no
10437      # Look at the argument we got.  We use all the common list separators.
10438      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10439      for pkg in $enableval; do
10440	IFS="$lt_save_ifs"
10441	if test "X$pkg" = "X$p"; then
10442	  enable_fast_install=yes
10443	fi
10444      done
10445      IFS="$lt_save_ifs"
10446      ;;
10447    esac
10448else
10449  enable_fast_install=yes
10450fi
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462# This can be used to rebuild libtool when needed
10463LIBTOOL_DEPS="$ltmain"
10464
10465# Always use our own libtool.
10466LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497test -z "$LN_S" && LN_S="ln -s"
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512if test -n "${ZSH_VERSION+set}" ; then
10513   setopt NO_GLOB_SUBST
10514fi
10515
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10517$as_echo_n "checking for objdir... " >&6; }
10518if ${lt_cv_objdir+:} false; then :
10519  $as_echo_n "(cached) " >&6
10520else
10521  rm -f .libs 2>/dev/null
10522mkdir .libs 2>/dev/null
10523if test -d .libs; then
10524  lt_cv_objdir=.libs
10525else
10526  # MS-DOS does not allow filenames that begin with a dot.
10527  lt_cv_objdir=_libs
10528fi
10529rmdir .libs 2>/dev/null
10530fi
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10532$as_echo "$lt_cv_objdir" >&6; }
10533objdir=$lt_cv_objdir
10534
10535
10536
10537
10538
10539cat >>confdefs.h <<_ACEOF
10540#define LT_OBJDIR "$lt_cv_objdir/"
10541_ACEOF
10542
10543
10544
10545
10546case $host_os in
10547aix3*)
10548  # AIX sometimes has problems with the GCC collect2 program.  For some
10549  # reason, if we set the COLLECT_NAMES environment variable, the problems
10550  # vanish in a puff of smoke.
10551  if test "X${COLLECT_NAMES+set}" != Xset; then
10552    COLLECT_NAMES=
10553    export COLLECT_NAMES
10554  fi
10555  ;;
10556esac
10557
10558# Global variables:
10559ofile=libtool
10560can_build_shared=yes
10561
10562# All known linkers require a `.a' archive for static linking (except MSVC,
10563# which needs '.lib').
10564libext=a
10565
10566with_gnu_ld="$lt_cv_prog_gnu_ld"
10567
10568old_CC="$CC"
10569old_CFLAGS="$CFLAGS"
10570
10571# Set sane defaults for various variables
10572test -z "$CC" && CC=cc
10573test -z "$LTCC" && LTCC=$CC
10574test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10575test -z "$LD" && LD=ld
10576test -z "$ac_objext" && ac_objext=o
10577
10578for cc_temp in $compiler""; do
10579  case $cc_temp in
10580    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10581    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10582    \-*) ;;
10583    *) break;;
10584  esac
10585done
10586cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10587
10588
10589# Only perform the check for file, if the check method requires it
10590test -z "$MAGIC_CMD" && MAGIC_CMD=file
10591case $deplibs_check_method in
10592file_magic*)
10593  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10595$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10596if ${lt_cv_path_MAGIC_CMD+:} false; then :
10597  $as_echo_n "(cached) " >&6
10598else
10599  case $MAGIC_CMD in
10600[\\/*] |  ?:[\\/]*)
10601  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10602  ;;
10603*)
10604  lt_save_MAGIC_CMD="$MAGIC_CMD"
10605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10606  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10607  for ac_dir in $ac_dummy; do
10608    IFS="$lt_save_ifs"
10609    test -z "$ac_dir" && ac_dir=.
10610    if test -f $ac_dir/${ac_tool_prefix}file; then
10611      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10612      if test -n "$file_magic_test_file"; then
10613	case $deplibs_check_method in
10614	"file_magic "*)
10615	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10616	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10617	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10618	    $EGREP "$file_magic_regex" > /dev/null; then
10619	    :
10620	  else
10621	    cat <<_LT_EOF 1>&2
10622
10623*** Warning: the command libtool uses to detect shared libraries,
10624*** $file_magic_cmd, produces output that libtool cannot recognize.
10625*** The result is that libtool may fail to recognize shared libraries
10626*** as such.  This will affect the creation of libtool libraries that
10627*** depend on shared libraries, but programs linked with such libtool
10628*** libraries will work regardless of this problem.  Nevertheless, you
10629*** may want to report the problem to your system manager and/or to
10630*** bug-libtool@gnu.org
10631
10632_LT_EOF
10633	  fi ;;
10634	esac
10635      fi
10636      break
10637    fi
10638  done
10639  IFS="$lt_save_ifs"
10640  MAGIC_CMD="$lt_save_MAGIC_CMD"
10641  ;;
10642esac
10643fi
10644
10645MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10646if test -n "$MAGIC_CMD"; then
10647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10648$as_echo "$MAGIC_CMD" >&6; }
10649else
10650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651$as_echo "no" >&6; }
10652fi
10653
10654
10655
10656
10657
10658if test -z "$lt_cv_path_MAGIC_CMD"; then
10659  if test -n "$ac_tool_prefix"; then
10660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10661$as_echo_n "checking for file... " >&6; }
10662if ${lt_cv_path_MAGIC_CMD+:} false; then :
10663  $as_echo_n "(cached) " >&6
10664else
10665  case $MAGIC_CMD in
10666[\\/*] |  ?:[\\/]*)
10667  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10668  ;;
10669*)
10670  lt_save_MAGIC_CMD="$MAGIC_CMD"
10671  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10672  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10673  for ac_dir in $ac_dummy; do
10674    IFS="$lt_save_ifs"
10675    test -z "$ac_dir" && ac_dir=.
10676    if test -f $ac_dir/file; then
10677      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10678      if test -n "$file_magic_test_file"; then
10679	case $deplibs_check_method in
10680	"file_magic "*)
10681	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10682	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10683	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10684	    $EGREP "$file_magic_regex" > /dev/null; then
10685	    :
10686	  else
10687	    cat <<_LT_EOF 1>&2
10688
10689*** Warning: the command libtool uses to detect shared libraries,
10690*** $file_magic_cmd, produces output that libtool cannot recognize.
10691*** The result is that libtool may fail to recognize shared libraries
10692*** as such.  This will affect the creation of libtool libraries that
10693*** depend on shared libraries, but programs linked with such libtool
10694*** libraries will work regardless of this problem.  Nevertheless, you
10695*** may want to report the problem to your system manager and/or to
10696*** bug-libtool@gnu.org
10697
10698_LT_EOF
10699	  fi ;;
10700	esac
10701      fi
10702      break
10703    fi
10704  done
10705  IFS="$lt_save_ifs"
10706  MAGIC_CMD="$lt_save_MAGIC_CMD"
10707  ;;
10708esac
10709fi
10710
10711MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10712if test -n "$MAGIC_CMD"; then
10713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10714$as_echo "$MAGIC_CMD" >&6; }
10715else
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717$as_echo "no" >&6; }
10718fi
10719
10720
10721  else
10722    MAGIC_CMD=:
10723  fi
10724fi
10725
10726  fi
10727  ;;
10728esac
10729
10730# Use C for the default configuration in the libtool script
10731
10732lt_save_CC="$CC"
10733ac_ext=c
10734ac_cpp='$CPP $CPPFLAGS'
10735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10737ac_compiler_gnu=$ac_cv_c_compiler_gnu
10738
10739
10740# Source file extension for C test sources.
10741ac_ext=c
10742
10743# Object file extension for compiled C test sources.
10744objext=o
10745objext=$objext
10746
10747# Code to be used in simple compile tests
10748lt_simple_compile_test_code="int some_variable = 0;"
10749
10750# Code to be used in simple link tests
10751lt_simple_link_test_code='int main(){return(0);}'
10752
10753
10754
10755
10756
10757
10758
10759# If no C compiler was specified, use CC.
10760LTCC=${LTCC-"$CC"}
10761
10762# If no C compiler flags were specified, use CFLAGS.
10763LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10764
10765# Allow CC to be a program name with arguments.
10766compiler=$CC
10767
10768# Save the default compiler, since it gets overwritten when the other
10769# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10770compiler_DEFAULT=$CC
10771
10772# save warnings/boilerplate of simple test code
10773ac_outfile=conftest.$ac_objext
10774echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10775eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10776_lt_compiler_boilerplate=`cat conftest.err`
10777$RM conftest*
10778
10779ac_outfile=conftest.$ac_objext
10780echo "$lt_simple_link_test_code" >conftest.$ac_ext
10781eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782_lt_linker_boilerplate=`cat conftest.err`
10783$RM -r conftest*
10784
10785
10786## CAVEAT EMPTOR:
10787## There is no encapsulation within the following macros, do not change
10788## the running order or otherwise move them around unless you know exactly
10789## what you are doing...
10790if test -n "$compiler"; then
10791
10792lt_prog_compiler_no_builtin_flag=
10793
10794if test "$GCC" = yes; then
10795  case $cc_basename in
10796  nvcc*)
10797    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10798  *)
10799    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10800  esac
10801
10802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10803$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10804if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10805  $as_echo_n "(cached) " >&6
10806else
10807  lt_cv_prog_compiler_rtti_exceptions=no
10808   ac_outfile=conftest.$ac_objext
10809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10810   lt_compiler_flag="-fno-rtti -fno-exceptions"
10811   # Insert the option either (1) after the last *FLAGS variable, or
10812   # (2) before a word containing "conftest.", or (3) at the end.
10813   # Note that $ac_compile itself does not contain backslashes and begins
10814   # with a dollar sign (not a hyphen), so the echo should work correctly.
10815   # The option is referenced via a variable to avoid confusing sed.
10816   lt_compile=`echo "$ac_compile" | $SED \
10817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819   -e 's:$: $lt_compiler_flag:'`
10820   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10821   (eval "$lt_compile" 2>conftest.err)
10822   ac_status=$?
10823   cat conftest.err >&5
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   if (exit $ac_status) && test -s "$ac_outfile"; then
10826     # The compiler can only warn and ignore the option if not recognized
10827     # So say no if there are warnings other than the usual output.
10828     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10829     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10830     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10831       lt_cv_prog_compiler_rtti_exceptions=yes
10832     fi
10833   fi
10834   $RM conftest*
10835
10836fi
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10838$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10839
10840if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10841    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10842else
10843    :
10844fi
10845
10846fi
10847
10848
10849
10850
10851
10852
10853  lt_prog_compiler_wl=
10854lt_prog_compiler_pic=
10855lt_prog_compiler_static=
10856
10857
10858  if test "$GCC" = yes; then
10859    lt_prog_compiler_wl='-Wl,'
10860    lt_prog_compiler_static='-static'
10861
10862    case $host_os in
10863      aix*)
10864      # All AIX code is PIC.
10865      if test "$host_cpu" = ia64; then
10866	# AIX 5 now supports IA64 processor
10867	lt_prog_compiler_static='-Bstatic'
10868      fi
10869      ;;
10870
10871    amigaos*)
10872      case $host_cpu in
10873      powerpc)
10874            # see comment about AmigaOS4 .so support
10875            lt_prog_compiler_pic='-fPIC'
10876        ;;
10877      m68k)
10878            # FIXME: we need at least 68020 code to build shared libraries, but
10879            # adding the `-m68020' flag to GCC prevents building anything better,
10880            # like `-m68040'.
10881            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10882        ;;
10883      esac
10884      ;;
10885
10886    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10887      # PIC is the default for these OSes.
10888      ;;
10889
10890    mingw* | cygwin* | pw32* | os2* | cegcc*)
10891      # This hack is so that the source file can tell whether it is being
10892      # built for inclusion in a dll (and should export symbols for example).
10893      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10894      # (--disable-auto-import) libraries
10895      lt_prog_compiler_pic='-DDLL_EXPORT'
10896      ;;
10897
10898    darwin* | rhapsody*)
10899      # PIC is the default on this platform
10900      # Common symbols not allowed in MH_DYLIB files
10901      lt_prog_compiler_pic='-fno-common'
10902      ;;
10903
10904    haiku*)
10905      # PIC is the default for Haiku.
10906      # The "-static" flag exists, but is broken.
10907      lt_prog_compiler_static=
10908      ;;
10909
10910    hpux*)
10911      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10912      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10913      # sets the default TLS model and affects inlining.
10914      case $host_cpu in
10915      hppa*64*)
10916	# +Z the default
10917	;;
10918      *)
10919	lt_prog_compiler_pic='-fPIC'
10920	;;
10921      esac
10922      ;;
10923
10924    interix[3-9]*)
10925      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10926      # Instead, we relocate shared libraries at runtime.
10927      ;;
10928
10929    msdosdjgpp*)
10930      # Just because we use GCC doesn't mean we suddenly get shared libraries
10931      # on systems that don't support them.
10932      lt_prog_compiler_can_build_shared=no
10933      enable_shared=no
10934      ;;
10935
10936    *nto* | *qnx*)
10937      # QNX uses GNU C++, but need to define -shared option too, otherwise
10938      # it will coredump.
10939      lt_prog_compiler_pic='-fPIC -shared'
10940      ;;
10941
10942    sysv4*MP*)
10943      if test -d /usr/nec; then
10944	lt_prog_compiler_pic=-Kconform_pic
10945      fi
10946      ;;
10947
10948    *)
10949      lt_prog_compiler_pic='-fPIC'
10950      ;;
10951    esac
10952
10953    case $cc_basename in
10954    nvcc*) # Cuda Compiler Driver 2.2
10955      lt_prog_compiler_wl='-Xlinker '
10956      if test -n "$lt_prog_compiler_pic"; then
10957        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10958      fi
10959      ;;
10960    esac
10961  else
10962    # PORTME Check for flag to pass linker flags through the system compiler.
10963    case $host_os in
10964    aix*)
10965      lt_prog_compiler_wl='-Wl,'
10966      if test "$host_cpu" = ia64; then
10967	# AIX 5 now supports IA64 processor
10968	lt_prog_compiler_static='-Bstatic'
10969      else
10970	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10971      fi
10972      ;;
10973
10974    mingw* | cygwin* | pw32* | os2* | cegcc*)
10975      # This hack is so that the source file can tell whether it is being
10976      # built for inclusion in a dll (and should export symbols for example).
10977      lt_prog_compiler_pic='-DDLL_EXPORT'
10978      ;;
10979
10980    hpux9* | hpux10* | hpux11*)
10981      lt_prog_compiler_wl='-Wl,'
10982      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10983      # not for PA HP-UX.
10984      case $host_cpu in
10985      hppa*64*|ia64*)
10986	# +Z the default
10987	;;
10988      *)
10989	lt_prog_compiler_pic='+Z'
10990	;;
10991      esac
10992      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10993      lt_prog_compiler_static='${wl}-a ${wl}archive'
10994      ;;
10995
10996    irix5* | irix6* | nonstopux*)
10997      lt_prog_compiler_wl='-Wl,'
10998      # PIC (with -KPIC) is the default.
10999      lt_prog_compiler_static='-non_shared'
11000      ;;
11001
11002    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11003      case $cc_basename in
11004      # old Intel for x86_64 which still supported -KPIC.
11005      ecc*)
11006	lt_prog_compiler_wl='-Wl,'
11007	lt_prog_compiler_pic='-KPIC'
11008	lt_prog_compiler_static='-static'
11009        ;;
11010      # icc used to be incompatible with GCC.
11011      # ICC 10 doesn't accept -KPIC any more.
11012      icc* | ifort*)
11013	lt_prog_compiler_wl='-Wl,'
11014	lt_prog_compiler_pic='-fPIC'
11015	lt_prog_compiler_static='-static'
11016        ;;
11017      # Lahey Fortran 8.1.
11018      lf95*)
11019	lt_prog_compiler_wl='-Wl,'
11020	lt_prog_compiler_pic='--shared'
11021	lt_prog_compiler_static='--static'
11022	;;
11023      nagfor*)
11024	# NAG Fortran compiler
11025	lt_prog_compiler_wl='-Wl,-Wl,,'
11026	lt_prog_compiler_pic='-PIC'
11027	lt_prog_compiler_static='-Bstatic'
11028	;;
11029      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11030        # Portland Group compilers (*not* the Pentium gcc compiler,
11031	# which looks to be a dead project)
11032	lt_prog_compiler_wl='-Wl,'
11033	lt_prog_compiler_pic='-fpic'
11034	lt_prog_compiler_static='-Bstatic'
11035        ;;
11036      ccc*)
11037        lt_prog_compiler_wl='-Wl,'
11038        # All Alpha code is PIC.
11039        lt_prog_compiler_static='-non_shared'
11040        ;;
11041      xl* | bgxl* | bgf* | mpixl*)
11042	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11043	lt_prog_compiler_wl='-Wl,'
11044	lt_prog_compiler_pic='-qpic'
11045	lt_prog_compiler_static='-qstaticlink'
11046	;;
11047      *)
11048	case `$CC -V 2>&1 | sed 5q` in
11049	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11050	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11051	  lt_prog_compiler_pic='-KPIC'
11052	  lt_prog_compiler_static='-Bstatic'
11053	  lt_prog_compiler_wl=''
11054	  ;;
11055	*Sun\ F* | *Sun*Fortran*)
11056	  lt_prog_compiler_pic='-KPIC'
11057	  lt_prog_compiler_static='-Bstatic'
11058	  lt_prog_compiler_wl='-Qoption ld '
11059	  ;;
11060	*Sun\ C*)
11061	  # Sun C 5.9
11062	  lt_prog_compiler_pic='-KPIC'
11063	  lt_prog_compiler_static='-Bstatic'
11064	  lt_prog_compiler_wl='-Wl,'
11065	  ;;
11066        *Intel*\ [CF]*Compiler*)
11067	  lt_prog_compiler_wl='-Wl,'
11068	  lt_prog_compiler_pic='-fPIC'
11069	  lt_prog_compiler_static='-static'
11070	  ;;
11071	*Portland\ Group*)
11072	  lt_prog_compiler_wl='-Wl,'
11073	  lt_prog_compiler_pic='-fpic'
11074	  lt_prog_compiler_static='-Bstatic'
11075	  ;;
11076	esac
11077	;;
11078      esac
11079      ;;
11080
11081    newsos6)
11082      lt_prog_compiler_pic='-KPIC'
11083      lt_prog_compiler_static='-Bstatic'
11084      ;;
11085
11086    *nto* | *qnx*)
11087      # QNX uses GNU C++, but need to define -shared option too, otherwise
11088      # it will coredump.
11089      lt_prog_compiler_pic='-fPIC -shared'
11090      ;;
11091
11092    osf3* | osf4* | osf5*)
11093      lt_prog_compiler_wl='-Wl,'
11094      # All OSF/1 code is PIC.
11095      lt_prog_compiler_static='-non_shared'
11096      ;;
11097
11098    rdos*)
11099      lt_prog_compiler_static='-non_shared'
11100      ;;
11101
11102    solaris*)
11103      lt_prog_compiler_pic='-KPIC'
11104      lt_prog_compiler_static='-Bstatic'
11105      case $cc_basename in
11106      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11107	lt_prog_compiler_wl='-Qoption ld ';;
11108      *)
11109	lt_prog_compiler_wl='-Wl,';;
11110      esac
11111      ;;
11112
11113    sunos4*)
11114      lt_prog_compiler_wl='-Qoption ld '
11115      lt_prog_compiler_pic='-PIC'
11116      lt_prog_compiler_static='-Bstatic'
11117      ;;
11118
11119    sysv4 | sysv4.2uw2* | sysv4.3*)
11120      lt_prog_compiler_wl='-Wl,'
11121      lt_prog_compiler_pic='-KPIC'
11122      lt_prog_compiler_static='-Bstatic'
11123      ;;
11124
11125    sysv4*MP*)
11126      if test -d /usr/nec ;then
11127	lt_prog_compiler_pic='-Kconform_pic'
11128	lt_prog_compiler_static='-Bstatic'
11129      fi
11130      ;;
11131
11132    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11133      lt_prog_compiler_wl='-Wl,'
11134      lt_prog_compiler_pic='-KPIC'
11135      lt_prog_compiler_static='-Bstatic'
11136      ;;
11137
11138    unicos*)
11139      lt_prog_compiler_wl='-Wl,'
11140      lt_prog_compiler_can_build_shared=no
11141      ;;
11142
11143    uts4*)
11144      lt_prog_compiler_pic='-pic'
11145      lt_prog_compiler_static='-Bstatic'
11146      ;;
11147
11148    *)
11149      lt_prog_compiler_can_build_shared=no
11150      ;;
11151    esac
11152  fi
11153
11154case $host_os in
11155  # For platforms which do not support PIC, -DPIC is meaningless:
11156  *djgpp*)
11157    lt_prog_compiler_pic=
11158    ;;
11159  *)
11160    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11161    ;;
11162esac
11163
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11165$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11166if ${lt_cv_prog_compiler_pic+:} false; then :
11167  $as_echo_n "(cached) " >&6
11168else
11169  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11170fi
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11172$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11173lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11174
11175#
11176# Check to make sure the PIC flag actually works.
11177#
11178if test -n "$lt_prog_compiler_pic"; then
11179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11180$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11181if ${lt_cv_prog_compiler_pic_works+:} false; then :
11182  $as_echo_n "(cached) " >&6
11183else
11184  lt_cv_prog_compiler_pic_works=no
11185   ac_outfile=conftest.$ac_objext
11186   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11187   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11188   # Insert the option either (1) after the last *FLAGS variable, or
11189   # (2) before a word containing "conftest.", or (3) at the end.
11190   # Note that $ac_compile itself does not contain backslashes and begins
11191   # with a dollar sign (not a hyphen), so the echo should work correctly.
11192   # The option is referenced via a variable to avoid confusing sed.
11193   lt_compile=`echo "$ac_compile" | $SED \
11194   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11195   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11196   -e 's:$: $lt_compiler_flag:'`
11197   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11198   (eval "$lt_compile" 2>conftest.err)
11199   ac_status=$?
11200   cat conftest.err >&5
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   if (exit $ac_status) && test -s "$ac_outfile"; then
11203     # The compiler can only warn and ignore the option if not recognized
11204     # So say no if there are warnings other than the usual output.
11205     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11206     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11207     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11208       lt_cv_prog_compiler_pic_works=yes
11209     fi
11210   fi
11211   $RM conftest*
11212
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11215$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11216
11217if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11218    case $lt_prog_compiler_pic in
11219     "" | " "*) ;;
11220     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11221     esac
11222else
11223    lt_prog_compiler_pic=
11224     lt_prog_compiler_can_build_shared=no
11225fi
11226
11227fi
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239#
11240# Check to make sure the static flag actually works.
11241#
11242wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11244$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11245if ${lt_cv_prog_compiler_static_works+:} false; then :
11246  $as_echo_n "(cached) " >&6
11247else
11248  lt_cv_prog_compiler_static_works=no
11249   save_LDFLAGS="$LDFLAGS"
11250   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11251   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11252   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11253     # The linker can only warn and ignore the option if not recognized
11254     # So say no if there are warnings
11255     if test -s conftest.err; then
11256       # Append any errors to the config.log.
11257       cat conftest.err 1>&5
11258       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11259       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11260       if diff conftest.exp conftest.er2 >/dev/null; then
11261         lt_cv_prog_compiler_static_works=yes
11262       fi
11263     else
11264       lt_cv_prog_compiler_static_works=yes
11265     fi
11266   fi
11267   $RM -r conftest*
11268   LDFLAGS="$save_LDFLAGS"
11269
11270fi
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11272$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11273
11274if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11275    :
11276else
11277    lt_prog_compiler_static=
11278fi
11279
11280
11281
11282
11283
11284
11285
11286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11287$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11288if ${lt_cv_prog_compiler_c_o+:} false; then :
11289  $as_echo_n "(cached) " >&6
11290else
11291  lt_cv_prog_compiler_c_o=no
11292   $RM -r conftest 2>/dev/null
11293   mkdir conftest
11294   cd conftest
11295   mkdir out
11296   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11297
11298   lt_compiler_flag="-o out/conftest2.$ac_objext"
11299   # Insert the option either (1) after the last *FLAGS variable, or
11300   # (2) before a word containing "conftest.", or (3) at the end.
11301   # Note that $ac_compile itself does not contain backslashes and begins
11302   # with a dollar sign (not a hyphen), so the echo should work correctly.
11303   lt_compile=`echo "$ac_compile" | $SED \
11304   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11305   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11306   -e 's:$: $lt_compiler_flag:'`
11307   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11308   (eval "$lt_compile" 2>out/conftest.err)
11309   ac_status=$?
11310   cat out/conftest.err >&5
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11313   then
11314     # The compiler can only warn and ignore the option if not recognized
11315     # So say no if there are warnings
11316     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11317     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11318     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11319       lt_cv_prog_compiler_c_o=yes
11320     fi
11321   fi
11322   chmod u+w . 2>&5
11323   $RM conftest*
11324   # SGI C++ compiler will create directory out/ii_files/ for
11325   # template instantiation
11326   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11327   $RM out/* && rmdir out
11328   cd ..
11329   $RM -r conftest
11330   $RM conftest*
11331
11332fi
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11334$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11335
11336
11337
11338
11339
11340
11341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11342$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11343if ${lt_cv_prog_compiler_c_o+:} false; then :
11344  $as_echo_n "(cached) " >&6
11345else
11346  lt_cv_prog_compiler_c_o=no
11347   $RM -r conftest 2>/dev/null
11348   mkdir conftest
11349   cd conftest
11350   mkdir out
11351   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11352
11353   lt_compiler_flag="-o out/conftest2.$ac_objext"
11354   # Insert the option either (1) after the last *FLAGS variable, or
11355   # (2) before a word containing "conftest.", or (3) at the end.
11356   # Note that $ac_compile itself does not contain backslashes and begins
11357   # with a dollar sign (not a hyphen), so the echo should work correctly.
11358   lt_compile=`echo "$ac_compile" | $SED \
11359   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11360   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11361   -e 's:$: $lt_compiler_flag:'`
11362   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11363   (eval "$lt_compile" 2>out/conftest.err)
11364   ac_status=$?
11365   cat out/conftest.err >&5
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11368   then
11369     # The compiler can only warn and ignore the option if not recognized
11370     # So say no if there are warnings
11371     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11372     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11373     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11374       lt_cv_prog_compiler_c_o=yes
11375     fi
11376   fi
11377   chmod u+w . 2>&5
11378   $RM conftest*
11379   # SGI C++ compiler will create directory out/ii_files/ for
11380   # template instantiation
11381   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11382   $RM out/* && rmdir out
11383   cd ..
11384   $RM -r conftest
11385   $RM conftest*
11386
11387fi
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11389$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11390
11391
11392
11393
11394hard_links="nottested"
11395if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11396  # do not overwrite the value of need_locks provided by the user
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11398$as_echo_n "checking if we can lock with hard links... " >&6; }
11399  hard_links=yes
11400  $RM conftest*
11401  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11402  touch conftest.a
11403  ln conftest.a conftest.b 2>&5 || hard_links=no
11404  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11406$as_echo "$hard_links" >&6; }
11407  if test "$hard_links" = no; then
11408    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11409$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11410    need_locks=warn
11411  fi
11412else
11413  need_locks=no
11414fi
11415
11416
11417
11418
11419
11420
11421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11422$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11423
11424  runpath_var=
11425  allow_undefined_flag=
11426  always_export_symbols=no
11427  archive_cmds=
11428  archive_expsym_cmds=
11429  compiler_needs_object=no
11430  enable_shared_with_static_runtimes=no
11431  export_dynamic_flag_spec=
11432  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11433  hardcode_automatic=no
11434  hardcode_direct=no
11435  hardcode_direct_absolute=no
11436  hardcode_libdir_flag_spec=
11437  hardcode_libdir_separator=
11438  hardcode_minus_L=no
11439  hardcode_shlibpath_var=unsupported
11440  inherit_rpath=no
11441  link_all_deplibs=unknown
11442  module_cmds=
11443  module_expsym_cmds=
11444  old_archive_from_new_cmds=
11445  old_archive_from_expsyms_cmds=
11446  thread_safe_flag_spec=
11447  whole_archive_flag_spec=
11448  # include_expsyms should be a list of space-separated symbols to be *always*
11449  # included in the symbol list
11450  include_expsyms=
11451  # exclude_expsyms can be an extended regexp of symbols to exclude
11452  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11453  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11454  # as well as any symbol that contains `d'.
11455  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11456  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11457  # platforms (ab)use it in PIC code, but their linkers get confused if
11458  # the symbol is explicitly referenced.  Since portable code cannot
11459  # rely on this symbol name, it's probably fine to never include it in
11460  # preloaded symbol tables.
11461  # Exclude shared library initialization/finalization symbols.
11462  extract_expsyms_cmds=
11463
11464  case $host_os in
11465  cygwin* | mingw* | pw32* | cegcc*)
11466    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11467    # When not using gcc, we currently assume that we are using
11468    # Microsoft Visual C++.
11469    if test "$GCC" != yes; then
11470      with_gnu_ld=no
11471    fi
11472    ;;
11473  interix*)
11474    # we just hope/assume this is gcc and not c89 (= MSVC++)
11475    with_gnu_ld=yes
11476    ;;
11477  openbsd*)
11478    with_gnu_ld=no
11479    ;;
11480  esac
11481
11482  ld_shlibs=yes
11483
11484  # On some targets, GNU ld is compatible enough with the native linker
11485  # that we're better off using the native interface for both.
11486  lt_use_gnu_ld_interface=no
11487  if test "$with_gnu_ld" = yes; then
11488    case $host_os in
11489      aix*)
11490	# The AIX port of GNU ld has always aspired to compatibility
11491	# with the native linker.  However, as the warning in the GNU ld
11492	# block says, versions before 2.19.5* couldn't really create working
11493	# shared libraries, regardless of the interface used.
11494	case `$LD -v 2>&1` in
11495	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11496	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11497	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11498	  *)
11499	    lt_use_gnu_ld_interface=yes
11500	    ;;
11501	esac
11502	;;
11503      *)
11504	lt_use_gnu_ld_interface=yes
11505	;;
11506    esac
11507  fi
11508
11509  if test "$lt_use_gnu_ld_interface" = yes; then
11510    # If archive_cmds runs LD, not CC, wlarc should be empty
11511    wlarc='${wl}'
11512
11513    # Set some defaults for GNU ld with shared library support. These
11514    # are reset later if shared libraries are not supported. Putting them
11515    # here allows them to be overridden if necessary.
11516    runpath_var=LD_RUN_PATH
11517    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11518    export_dynamic_flag_spec='${wl}--export-dynamic'
11519    # ancient GNU ld didn't support --whole-archive et. al.
11520    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11521      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11522    else
11523      whole_archive_flag_spec=
11524    fi
11525    supports_anon_versioning=no
11526    case `$LD -v 2>&1` in
11527      *GNU\ gold*) supports_anon_versioning=yes ;;
11528      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11529      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11530      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11531      *\ 2.11.*) ;; # other 2.11 versions
11532      *) supports_anon_versioning=yes ;;
11533    esac
11534
11535    # See if GNU ld supports shared libraries.
11536    case $host_os in
11537    aix[3-9]*)
11538      # On AIX/PPC, the GNU linker is very broken
11539      if test "$host_cpu" != ia64; then
11540	ld_shlibs=no
11541	cat <<_LT_EOF 1>&2
11542
11543*** Warning: the GNU linker, at least up to release 2.19, is reported
11544*** to be unable to reliably create shared libraries on AIX.
11545*** Therefore, libtool is disabling shared libraries support.  If you
11546*** really care for shared libraries, you may want to install binutils
11547*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11548*** You will then need to restart the configuration process.
11549
11550_LT_EOF
11551      fi
11552      ;;
11553
11554    amigaos*)
11555      case $host_cpu in
11556      powerpc)
11557            # see comment about AmigaOS4 .so support
11558            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11559            archive_expsym_cmds=''
11560        ;;
11561      m68k)
11562            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11563            hardcode_libdir_flag_spec='-L$libdir'
11564            hardcode_minus_L=yes
11565        ;;
11566      esac
11567      ;;
11568
11569    beos*)
11570      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11571	allow_undefined_flag=unsupported
11572	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11573	# support --undefined.  This deserves some investigation.  FIXME
11574	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11575      else
11576	ld_shlibs=no
11577      fi
11578      ;;
11579
11580    cygwin* | mingw* | pw32* | cegcc*)
11581      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11582      # as there is no search path for DLLs.
11583      hardcode_libdir_flag_spec='-L$libdir'
11584      export_dynamic_flag_spec='${wl}--export-all-symbols'
11585      allow_undefined_flag=unsupported
11586      always_export_symbols=no
11587      enable_shared_with_static_runtimes=yes
11588      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11589      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11590
11591      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11592        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11593	# If the export-symbols file already is a .def file (1st line
11594	# is EXPORTS), use it as is; otherwise, prepend...
11595	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11596	  cp $export_symbols $output_objdir/$soname.def;
11597	else
11598	  echo EXPORTS > $output_objdir/$soname.def;
11599	  cat $export_symbols >> $output_objdir/$soname.def;
11600	fi~
11601	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11602      else
11603	ld_shlibs=no
11604      fi
11605      ;;
11606
11607    haiku*)
11608      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11609      link_all_deplibs=yes
11610      ;;
11611
11612    interix[3-9]*)
11613      hardcode_direct=no
11614      hardcode_shlibpath_var=no
11615      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11616      export_dynamic_flag_spec='${wl}-E'
11617      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11618      # Instead, shared libraries are loaded at an image base (0x10000000 by
11619      # default) and relocated if they conflict, which is a slow very memory
11620      # consuming and fragmenting process.  To avoid this, we pick a random,
11621      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11622      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11623      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11624      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11625      ;;
11626
11627    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11628      tmp_diet=no
11629      if test "$host_os" = linux-dietlibc; then
11630	case $cc_basename in
11631	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11632	esac
11633      fi
11634      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11635	 && test "$tmp_diet" = no
11636      then
11637	tmp_addflag=' $pic_flag'
11638	tmp_sharedflag='-shared'
11639	case $cc_basename,$host_cpu in
11640        pgcc*)				# Portland Group C compiler
11641	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11642	  tmp_addflag=' $pic_flag'
11643	  ;;
11644	pgf77* | pgf90* | pgf95* | pgfortran*)
11645					# Portland Group f77 and f90 compilers
11646	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11647	  tmp_addflag=' $pic_flag -Mnomain' ;;
11648	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11649	  tmp_addflag=' -i_dynamic' ;;
11650	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11651	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11652	ifc* | ifort*)			# Intel Fortran compiler
11653	  tmp_addflag=' -nofor_main' ;;
11654	lf95*)				# Lahey Fortran 8.1
11655	  whole_archive_flag_spec=
11656	  tmp_sharedflag='--shared' ;;
11657	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11658	  tmp_sharedflag='-qmkshrobj'
11659	  tmp_addflag= ;;
11660	nvcc*)	# Cuda Compiler Driver 2.2
11661	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11662	  compiler_needs_object=yes
11663	  ;;
11664	esac
11665	case `$CC -V 2>&1 | sed 5q` in
11666	*Sun\ C*)			# Sun C 5.9
11667	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11668	  compiler_needs_object=yes
11669	  tmp_sharedflag='-G' ;;
11670	*Sun\ F*)			# Sun Fortran 8.3
11671	  tmp_sharedflag='-G' ;;
11672	esac
11673	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11674
11675        if test "x$supports_anon_versioning" = xyes; then
11676          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11677	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11678	    echo "local: *; };" >> $output_objdir/$libname.ver~
11679	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11680        fi
11681
11682	case $cc_basename in
11683	xlf* | bgf* | bgxlf* | mpixlf*)
11684	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11685	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11686	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11687	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11688	  if test "x$supports_anon_versioning" = xyes; then
11689	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11690	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11691	      echo "local: *; };" >> $output_objdir/$libname.ver~
11692	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11693	  fi
11694	  ;;
11695	esac
11696      else
11697        ld_shlibs=no
11698      fi
11699      ;;
11700
11701    netbsd*)
11702      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11703	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11704	wlarc=
11705      else
11706	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11707	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11708      fi
11709      ;;
11710
11711    solaris*)
11712      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11713	ld_shlibs=no
11714	cat <<_LT_EOF 1>&2
11715
11716*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11717*** create shared libraries on Solaris systems.  Therefore, libtool
11718*** is disabling shared libraries support.  We urge you to upgrade GNU
11719*** binutils to release 2.9.1 or newer.  Another option is to modify
11720*** your PATH or compiler configuration so that the native linker is
11721*** used, and then restart.
11722
11723_LT_EOF
11724      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11725	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11726	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11727      else
11728	ld_shlibs=no
11729      fi
11730      ;;
11731
11732    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11733      case `$LD -v 2>&1` in
11734        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11735	ld_shlibs=no
11736	cat <<_LT_EOF 1>&2
11737
11738*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11739*** reliably create shared libraries on SCO systems.  Therefore, libtool
11740*** is disabling shared libraries support.  We urge you to upgrade GNU
11741*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11742*** your PATH or compiler configuration so that the native linker is
11743*** used, and then restart.
11744
11745_LT_EOF
11746	;;
11747	*)
11748	  # For security reasons, it is highly recommended that you always
11749	  # use absolute paths for naming shared libraries, and exclude the
11750	  # DT_RUNPATH tag from executables and libraries.  But doing so
11751	  # requires that you compile everything twice, which is a pain.
11752	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11753	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11754	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11755	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11756	  else
11757	    ld_shlibs=no
11758	  fi
11759	;;
11760      esac
11761      ;;
11762
11763    sunos4*)
11764      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11765      wlarc=
11766      hardcode_direct=yes
11767      hardcode_shlibpath_var=no
11768      ;;
11769
11770    *)
11771      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11772	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11774      else
11775	ld_shlibs=no
11776      fi
11777      ;;
11778    esac
11779
11780    if test "$ld_shlibs" = no; then
11781      runpath_var=
11782      hardcode_libdir_flag_spec=
11783      export_dynamic_flag_spec=
11784      whole_archive_flag_spec=
11785    fi
11786  else
11787    # PORTME fill in a description of your system's linker (not GNU ld)
11788    case $host_os in
11789    aix3*)
11790      allow_undefined_flag=unsupported
11791      always_export_symbols=yes
11792      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11793      # Note: this linker hardcodes the directories in LIBPATH if there
11794      # are no directories specified by -L.
11795      hardcode_minus_L=yes
11796      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11797	# Neither direct hardcoding nor static linking is supported with a
11798	# broken collect2.
11799	hardcode_direct=unsupported
11800      fi
11801      ;;
11802
11803    aix[4-9]*)
11804      if test "$host_cpu" = ia64; then
11805	# On IA64, the linker does run time linking by default, so we don't
11806	# have to do anything special.
11807	aix_use_runtimelinking=no
11808	exp_sym_flag='-Bexport'
11809	no_entry_flag=""
11810      else
11811	# If we're using GNU nm, then we don't want the "-C" option.
11812	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11813	# Also, AIX nm treats weak defined symbols like other global
11814	# defined symbols, whereas GNU nm marks them as "W".
11815	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11816	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11817	else
11818	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11819	fi
11820	aix_use_runtimelinking=no
11821
11822	# Test if we are trying to use run time linking or normal
11823	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11824	# need to do runtime linking.
11825	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11826	  for ld_flag in $LDFLAGS; do
11827	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11828	    aix_use_runtimelinking=yes
11829	    break
11830	  fi
11831	  done
11832	  ;;
11833	esac
11834
11835	exp_sym_flag='-bexport'
11836	no_entry_flag='-bnoentry'
11837      fi
11838
11839      # When large executables or shared objects are built, AIX ld can
11840      # have problems creating the table of contents.  If linking a library
11841      # or program results in "error TOC overflow" add -mminimal-toc to
11842      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11843      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11844
11845      archive_cmds=''
11846      hardcode_direct=yes
11847      hardcode_direct_absolute=yes
11848      hardcode_libdir_separator=':'
11849      link_all_deplibs=yes
11850      file_list_spec='${wl}-f,'
11851
11852      if test "$GCC" = yes; then
11853	case $host_os in aix4.[012]|aix4.[012].*)
11854	# We only want to do this on AIX 4.2 and lower, the check
11855	# below for broken collect2 doesn't work under 4.3+
11856	  collect2name=`${CC} -print-prog-name=collect2`
11857	  if test -f "$collect2name" &&
11858	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11859	  then
11860	  # We have reworked collect2
11861	  :
11862	  else
11863	  # We have old collect2
11864	  hardcode_direct=unsupported
11865	  # It fails to find uninstalled libraries when the uninstalled
11866	  # path is not listed in the libpath.  Setting hardcode_minus_L
11867	  # to unsupported forces relinking
11868	  hardcode_minus_L=yes
11869	  hardcode_libdir_flag_spec='-L$libdir'
11870	  hardcode_libdir_separator=
11871	  fi
11872	  ;;
11873	esac
11874	shared_flag='-shared'
11875	if test "$aix_use_runtimelinking" = yes; then
11876	  shared_flag="$shared_flag "'${wl}-G'
11877	fi
11878      else
11879	# not using gcc
11880	if test "$host_cpu" = ia64; then
11881	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11882	# chokes on -Wl,-G. The following line is correct:
11883	  shared_flag='-G'
11884	else
11885	  if test "$aix_use_runtimelinking" = yes; then
11886	    shared_flag='${wl}-G'
11887	  else
11888	    shared_flag='${wl}-bM:SRE'
11889	  fi
11890	fi
11891      fi
11892
11893      export_dynamic_flag_spec='${wl}-bexpall'
11894      # It seems that -bexpall does not export symbols beginning with
11895      # underscore (_), so it is better to generate a list of symbols to export.
11896      always_export_symbols=yes
11897      if test "$aix_use_runtimelinking" = yes; then
11898	# Warning - without using the other runtime loading flags (-brtl),
11899	# -berok will link without error, but may produce a broken library.
11900	allow_undefined_flag='-berok'
11901        # Determine the default libpath from the value encoded in an
11902        # empty executable.
11903        if test "${lt_cv_aix_libpath+set}" = set; then
11904  aix_libpath=$lt_cv_aix_libpath
11905else
11906  if ${lt_cv_aix_libpath_+:} false; then :
11907  $as_echo_n "(cached) " >&6
11908else
11909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910/* end confdefs.h.  */
11911
11912int
11913main ()
11914{
11915
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920if ac_fn_c_try_link "$LINENO"; then :
11921
11922  lt_aix_libpath_sed='
11923      /Import File Strings/,/^$/ {
11924	  /^0/ {
11925	      s/^0  *\([^ ]*\) *$/\1/
11926	      p
11927	  }
11928      }'
11929  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11930  # Check for a 64-bit object if we didn't find anything.
11931  if test -z "$lt_cv_aix_libpath_"; then
11932    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11933  fi
11934fi
11935rm -f core conftest.err conftest.$ac_objext \
11936    conftest$ac_exeext conftest.$ac_ext
11937  if test -z "$lt_cv_aix_libpath_"; then
11938    lt_cv_aix_libpath_="/usr/lib:/lib"
11939  fi
11940
11941fi
11942
11943  aix_libpath=$lt_cv_aix_libpath_
11944fi
11945
11946        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11947        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11948      else
11949	if test "$host_cpu" = ia64; then
11950	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11951	  allow_undefined_flag="-z nodefs"
11952	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11953	else
11954	 # Determine the default libpath from the value encoded in an
11955	 # empty executable.
11956	 if test "${lt_cv_aix_libpath+set}" = set; then
11957  aix_libpath=$lt_cv_aix_libpath
11958else
11959  if ${lt_cv_aix_libpath_+:} false; then :
11960  $as_echo_n "(cached) " >&6
11961else
11962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963/* end confdefs.h.  */
11964
11965int
11966main ()
11967{
11968
11969  ;
11970  return 0;
11971}
11972_ACEOF
11973if ac_fn_c_try_link "$LINENO"; then :
11974
11975  lt_aix_libpath_sed='
11976      /Import File Strings/,/^$/ {
11977	  /^0/ {
11978	      s/^0  *\([^ ]*\) *$/\1/
11979	      p
11980	  }
11981      }'
11982  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11983  # Check for a 64-bit object if we didn't find anything.
11984  if test -z "$lt_cv_aix_libpath_"; then
11985    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11986  fi
11987fi
11988rm -f core conftest.err conftest.$ac_objext \
11989    conftest$ac_exeext conftest.$ac_ext
11990  if test -z "$lt_cv_aix_libpath_"; then
11991    lt_cv_aix_libpath_="/usr/lib:/lib"
11992  fi
11993
11994fi
11995
11996  aix_libpath=$lt_cv_aix_libpath_
11997fi
11998
11999	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12000	  # Warning - without using the other run time loading flags,
12001	  # -berok will link without error, but may produce a broken library.
12002	  no_undefined_flag=' ${wl}-bernotok'
12003	  allow_undefined_flag=' ${wl}-berok'
12004	  if test "$with_gnu_ld" = yes; then
12005	    # We only use this code for GNU lds that support --whole-archive.
12006	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12007	  else
12008	    # Exported symbols can be pulled into shared objects from archives
12009	    whole_archive_flag_spec='$convenience'
12010	  fi
12011	  archive_cmds_need_lc=yes
12012	  # This is similar to how AIX traditionally builds its shared libraries.
12013	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12014	fi
12015      fi
12016      ;;
12017
12018    amigaos*)
12019      case $host_cpu in
12020      powerpc)
12021            # see comment about AmigaOS4 .so support
12022            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12023            archive_expsym_cmds=''
12024        ;;
12025      m68k)
12026            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12027            hardcode_libdir_flag_spec='-L$libdir'
12028            hardcode_minus_L=yes
12029        ;;
12030      esac
12031      ;;
12032
12033    bsdi[45]*)
12034      export_dynamic_flag_spec=-rdynamic
12035      ;;
12036
12037    cygwin* | mingw* | pw32* | cegcc*)
12038      # When not using gcc, we currently assume that we are using
12039      # Microsoft Visual C++.
12040      # hardcode_libdir_flag_spec is actually meaningless, as there is
12041      # no search path for DLLs.
12042      case $cc_basename in
12043      cl*)
12044	# Native MSVC
12045	hardcode_libdir_flag_spec=' '
12046	allow_undefined_flag=unsupported
12047	always_export_symbols=yes
12048	file_list_spec='@'
12049	# Tell ltmain to make .lib files, not .a files.
12050	libext=lib
12051	# Tell ltmain to make .dll files, not .so files.
12052	shrext_cmds=".dll"
12053	# FIXME: Setting linknames here is a bad hack.
12054	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12055	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12056	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12057	  else
12058	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12059	  fi~
12060	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12061	  linknames='
12062	# The linker will not automatically build a static lib if we build a DLL.
12063	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12064	enable_shared_with_static_runtimes=yes
12065	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12066	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12067	# Don't use ranlib
12068	old_postinstall_cmds='chmod 644 $oldlib'
12069	postlink_cmds='lt_outputfile="@OUTPUT@"~
12070	  lt_tool_outputfile="@TOOL_OUTPUT@"~
12071	  case $lt_outputfile in
12072	    *.exe|*.EXE) ;;
12073	    *)
12074	      lt_outputfile="$lt_outputfile.exe"
12075	      lt_tool_outputfile="$lt_tool_outputfile.exe"
12076	      ;;
12077	  esac~
12078	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12079	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12080	    $RM "$lt_outputfile.manifest";
12081	  fi'
12082	;;
12083      *)
12084	# Assume MSVC wrapper
12085	hardcode_libdir_flag_spec=' '
12086	allow_undefined_flag=unsupported
12087	# Tell ltmain to make .lib files, not .a files.
12088	libext=lib
12089	# Tell ltmain to make .dll files, not .so files.
12090	shrext_cmds=".dll"
12091	# FIXME: Setting linknames here is a bad hack.
12092	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12093	# The linker will automatically build a .lib file if we build a DLL.
12094	old_archive_from_new_cmds='true'
12095	# FIXME: Should let the user specify the lib program.
12096	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12097	enable_shared_with_static_runtimes=yes
12098	;;
12099      esac
12100      ;;
12101
12102    darwin* | rhapsody*)
12103
12104
12105  archive_cmds_need_lc=no
12106  hardcode_direct=no
12107  hardcode_automatic=yes
12108  hardcode_shlibpath_var=unsupported
12109  if test "$lt_cv_ld_force_load" = "yes"; then
12110    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12111
12112  else
12113    whole_archive_flag_spec=''
12114  fi
12115  link_all_deplibs=yes
12116  allow_undefined_flag="$_lt_dar_allow_undefined"
12117  case $cc_basename in
12118     ifort*) _lt_dar_can_shared=yes ;;
12119     *) _lt_dar_can_shared=$GCC ;;
12120  esac
12121  if test "$_lt_dar_can_shared" = "yes"; then
12122    output_verbose_link_cmd=func_echo_all
12123    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12124    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12125    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12126    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12127
12128  else
12129  ld_shlibs=no
12130  fi
12131
12132      ;;
12133
12134    dgux*)
12135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12136      hardcode_libdir_flag_spec='-L$libdir'
12137      hardcode_shlibpath_var=no
12138      ;;
12139
12140    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12141    # support.  Future versions do this automatically, but an explicit c++rt0.o
12142    # does not break anything, and helps significantly (at the cost of a little
12143    # extra space).
12144    freebsd2.2*)
12145      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12146      hardcode_libdir_flag_spec='-R$libdir'
12147      hardcode_direct=yes
12148      hardcode_shlibpath_var=no
12149      ;;
12150
12151    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12152    freebsd2.*)
12153      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12154      hardcode_direct=yes
12155      hardcode_minus_L=yes
12156      hardcode_shlibpath_var=no
12157      ;;
12158
12159    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12160    freebsd* | dragonfly*)
12161      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12162      hardcode_libdir_flag_spec='-R$libdir'
12163      hardcode_direct=yes
12164      hardcode_shlibpath_var=no
12165      ;;
12166
12167    hpux9*)
12168      if test "$GCC" = yes; then
12169	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12170      else
12171	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12172      fi
12173      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12174      hardcode_libdir_separator=:
12175      hardcode_direct=yes
12176
12177      # hardcode_minus_L: Not really in the search PATH,
12178      # but as the default location of the library.
12179      hardcode_minus_L=yes
12180      export_dynamic_flag_spec='${wl}-E'
12181      ;;
12182
12183    hpux10*)
12184      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12185	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12186      else
12187	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12188      fi
12189      if test "$with_gnu_ld" = no; then
12190	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12191	hardcode_libdir_separator=:
12192	hardcode_direct=yes
12193	hardcode_direct_absolute=yes
12194	export_dynamic_flag_spec='${wl}-E'
12195	# hardcode_minus_L: Not really in the search PATH,
12196	# but as the default location of the library.
12197	hardcode_minus_L=yes
12198      fi
12199      ;;
12200
12201    hpux11*)
12202      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12203	case $host_cpu in
12204	hppa*64*)
12205	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12206	  ;;
12207	ia64*)
12208	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12209	  ;;
12210	*)
12211	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12212	  ;;
12213	esac
12214      else
12215	case $host_cpu in
12216	hppa*64*)
12217	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218	  ;;
12219	ia64*)
12220	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12221	  ;;
12222	*)
12223
12224	  # Older versions of the 11.00 compiler do not understand -b yet
12225	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12226	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12227$as_echo_n "checking if $CC understands -b... " >&6; }
12228if ${lt_cv_prog_compiler__b+:} false; then :
12229  $as_echo_n "(cached) " >&6
12230else
12231  lt_cv_prog_compiler__b=no
12232   save_LDFLAGS="$LDFLAGS"
12233   LDFLAGS="$LDFLAGS -b"
12234   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12235   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12236     # The linker can only warn and ignore the option if not recognized
12237     # So say no if there are warnings
12238     if test -s conftest.err; then
12239       # Append any errors to the config.log.
12240       cat conftest.err 1>&5
12241       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12242       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12243       if diff conftest.exp conftest.er2 >/dev/null; then
12244         lt_cv_prog_compiler__b=yes
12245       fi
12246     else
12247       lt_cv_prog_compiler__b=yes
12248     fi
12249   fi
12250   $RM -r conftest*
12251   LDFLAGS="$save_LDFLAGS"
12252
12253fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12255$as_echo "$lt_cv_prog_compiler__b" >&6; }
12256
12257if test x"$lt_cv_prog_compiler__b" = xyes; then
12258    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12259else
12260    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12261fi
12262
12263	  ;;
12264	esac
12265      fi
12266      if test "$with_gnu_ld" = no; then
12267	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12268	hardcode_libdir_separator=:
12269
12270	case $host_cpu in
12271	hppa*64*|ia64*)
12272	  hardcode_direct=no
12273	  hardcode_shlibpath_var=no
12274	  ;;
12275	*)
12276	  hardcode_direct=yes
12277	  hardcode_direct_absolute=yes
12278	  export_dynamic_flag_spec='${wl}-E'
12279
12280	  # hardcode_minus_L: Not really in the search PATH,
12281	  # but as the default location of the library.
12282	  hardcode_minus_L=yes
12283	  ;;
12284	esac
12285      fi
12286      ;;
12287
12288    irix5* | irix6* | nonstopux*)
12289      if test "$GCC" = yes; then
12290	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12291	# Try to use the -exported_symbol ld option, if it does not
12292	# work, assume that -exports_file does not work either and
12293	# implicitly export all symbols.
12294	# This should be the same for all languages, so no per-tag cache variable.
12295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12296$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12297if ${lt_cv_irix_exported_symbol+:} false; then :
12298  $as_echo_n "(cached) " >&6
12299else
12300  save_LDFLAGS="$LDFLAGS"
12301	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12302	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h.  */
12304int foo (void) { return 0; }
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
12307  lt_cv_irix_exported_symbol=yes
12308else
12309  lt_cv_irix_exported_symbol=no
12310fi
12311rm -f core conftest.err conftest.$ac_objext \
12312    conftest$ac_exeext conftest.$ac_ext
12313           LDFLAGS="$save_LDFLAGS"
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12316$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12317	if test "$lt_cv_irix_exported_symbol" = yes; then
12318          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12319	fi
12320      else
12321	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12322	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12323      fi
12324      archive_cmds_need_lc='no'
12325      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12326      hardcode_libdir_separator=:
12327      inherit_rpath=yes
12328      link_all_deplibs=yes
12329      ;;
12330
12331    netbsd*)
12332      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12333	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12334      else
12335	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12336      fi
12337      hardcode_libdir_flag_spec='-R$libdir'
12338      hardcode_direct=yes
12339      hardcode_shlibpath_var=no
12340      ;;
12341
12342    newsos6)
12343      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12344      hardcode_direct=yes
12345      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12346      hardcode_libdir_separator=:
12347      hardcode_shlibpath_var=no
12348      ;;
12349
12350    *nto* | *qnx*)
12351      ;;
12352
12353    openbsd*)
12354      if test -f /usr/libexec/ld.so; then
12355	hardcode_direct=yes
12356	hardcode_shlibpath_var=no
12357	hardcode_direct_absolute=yes
12358	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12359	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12360	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12361	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12362	  export_dynamic_flag_spec='${wl}-E'
12363	else
12364	  case $host_os in
12365	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12366	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12367	     hardcode_libdir_flag_spec='-R$libdir'
12368	     ;;
12369	   *)
12370	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12371	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12372	     ;;
12373	  esac
12374	fi
12375      else
12376	ld_shlibs=no
12377      fi
12378      ;;
12379
12380    os2*)
12381      hardcode_libdir_flag_spec='-L$libdir'
12382      hardcode_minus_L=yes
12383      allow_undefined_flag=unsupported
12384      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12385      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12386      ;;
12387
12388    osf3*)
12389      if test "$GCC" = yes; then
12390	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12391	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12392      else
12393	allow_undefined_flag=' -expect_unresolved \*'
12394	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12395      fi
12396      archive_cmds_need_lc='no'
12397      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12398      hardcode_libdir_separator=:
12399      ;;
12400
12401    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12402      if test "$GCC" = yes; then
12403	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12404	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12405	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12406      else
12407	allow_undefined_flag=' -expect_unresolved \*'
12408	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12409	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12410	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12411
12412	# Both c and cxx compiler support -rpath directly
12413	hardcode_libdir_flag_spec='-rpath $libdir'
12414      fi
12415      archive_cmds_need_lc='no'
12416      hardcode_libdir_separator=:
12417      ;;
12418
12419    solaris*)
12420      no_undefined_flag=' -z defs'
12421      if test "$GCC" = yes; then
12422	wlarc='${wl}'
12423	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12424	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12425	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12426      else
12427	case `$CC -V 2>&1` in
12428	*"Compilers 5.0"*)
12429	  wlarc=''
12430	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12431	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12432	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12433	  ;;
12434	*)
12435	  wlarc='${wl}'
12436	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12437	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12438	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12439	  ;;
12440	esac
12441      fi
12442      hardcode_libdir_flag_spec='-R$libdir'
12443      hardcode_shlibpath_var=no
12444      case $host_os in
12445      solaris2.[0-5] | solaris2.[0-5].*) ;;
12446      *)
12447	# The compiler driver will combine and reorder linker options,
12448	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12449	# but is careful enough not to reorder.
12450	# Supported since Solaris 2.6 (maybe 2.5.1?)
12451	if test "$GCC" = yes; then
12452	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12453	else
12454	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12455	fi
12456	;;
12457      esac
12458      link_all_deplibs=yes
12459      ;;
12460
12461    sunos4*)
12462      if test "x$host_vendor" = xsequent; then
12463	# Use $CC to link under sequent, because it throws in some extra .o
12464	# files that make .init and .fini sections work.
12465	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12466      else
12467	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12468      fi
12469      hardcode_libdir_flag_spec='-L$libdir'
12470      hardcode_direct=yes
12471      hardcode_minus_L=yes
12472      hardcode_shlibpath_var=no
12473      ;;
12474
12475    sysv4)
12476      case $host_vendor in
12477	sni)
12478	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12479	  hardcode_direct=yes # is this really true???
12480	;;
12481	siemens)
12482	  ## LD is ld it makes a PLAMLIB
12483	  ## CC just makes a GrossModule.
12484	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12485	  reload_cmds='$CC -r -o $output$reload_objs'
12486	  hardcode_direct=no
12487        ;;
12488	motorola)
12489	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12490	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12491	;;
12492      esac
12493      runpath_var='LD_RUN_PATH'
12494      hardcode_shlibpath_var=no
12495      ;;
12496
12497    sysv4.3*)
12498      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12499      hardcode_shlibpath_var=no
12500      export_dynamic_flag_spec='-Bexport'
12501      ;;
12502
12503    sysv4*MP*)
12504      if test -d /usr/nec; then
12505	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12506	hardcode_shlibpath_var=no
12507	runpath_var=LD_RUN_PATH
12508	hardcode_runpath_var=yes
12509	ld_shlibs=yes
12510      fi
12511      ;;
12512
12513    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12514      no_undefined_flag='${wl}-z,text'
12515      archive_cmds_need_lc=no
12516      hardcode_shlibpath_var=no
12517      runpath_var='LD_RUN_PATH'
12518
12519      if test "$GCC" = yes; then
12520	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12521	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12522      else
12523	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12524	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12525      fi
12526      ;;
12527
12528    sysv5* | sco3.2v5* | sco5v6*)
12529      # Note: We can NOT use -z defs as we might desire, because we do not
12530      # link with -lc, and that would cause any symbols used from libc to
12531      # always be unresolved, which means just about no library would
12532      # ever link correctly.  If we're not using GNU ld we use -z text
12533      # though, which does catch some bad symbols but isn't as heavy-handed
12534      # as -z defs.
12535      no_undefined_flag='${wl}-z,text'
12536      allow_undefined_flag='${wl}-z,nodefs'
12537      archive_cmds_need_lc=no
12538      hardcode_shlibpath_var=no
12539      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12540      hardcode_libdir_separator=':'
12541      link_all_deplibs=yes
12542      export_dynamic_flag_spec='${wl}-Bexport'
12543      runpath_var='LD_RUN_PATH'
12544
12545      if test "$GCC" = yes; then
12546	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12548      else
12549	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12550	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12551      fi
12552      ;;
12553
12554    uts4*)
12555      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12556      hardcode_libdir_flag_spec='-L$libdir'
12557      hardcode_shlibpath_var=no
12558      ;;
12559
12560    *)
12561      ld_shlibs=no
12562      ;;
12563    esac
12564
12565    if test x$host_vendor = xsni; then
12566      case $host in
12567      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12568	export_dynamic_flag_spec='${wl}-Blargedynsym'
12569	;;
12570      esac
12571    fi
12572  fi
12573
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12575$as_echo "$ld_shlibs" >&6; }
12576test "$ld_shlibs" = no && can_build_shared=no
12577
12578with_gnu_ld=$with_gnu_ld
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594#
12595# Do we need to explicitly link libc?
12596#
12597case "x$archive_cmds_need_lc" in
12598x|xyes)
12599  # Assume -lc should be added
12600  archive_cmds_need_lc=yes
12601
12602  if test "$enable_shared" = yes && test "$GCC" = yes; then
12603    case $archive_cmds in
12604    *'~'*)
12605      # FIXME: we may have to deal with multi-command sequences.
12606      ;;
12607    '$CC '*)
12608      # Test whether the compiler implicitly links with -lc since on some
12609      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12610      # to ld, don't add -lc before -lgcc.
12611      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12612$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12613if ${lt_cv_archive_cmds_need_lc+:} false; then :
12614  $as_echo_n "(cached) " >&6
12615else
12616  $RM conftest*
12617	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12618
12619	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12620  (eval $ac_compile) 2>&5
12621  ac_status=$?
12622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12623  test $ac_status = 0; } 2>conftest.err; then
12624	  soname=conftest
12625	  lib=conftest
12626	  libobjs=conftest.$ac_objext
12627	  deplibs=
12628	  wl=$lt_prog_compiler_wl
12629	  pic_flag=$lt_prog_compiler_pic
12630	  compiler_flags=-v
12631	  linker_flags=-v
12632	  verstring=
12633	  output_objdir=.
12634	  libname=conftest
12635	  lt_save_allow_undefined_flag=$allow_undefined_flag
12636	  allow_undefined_flag=
12637	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12638  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12639  ac_status=$?
12640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641  test $ac_status = 0; }
12642	  then
12643	    lt_cv_archive_cmds_need_lc=no
12644	  else
12645	    lt_cv_archive_cmds_need_lc=yes
12646	  fi
12647	  allow_undefined_flag=$lt_save_allow_undefined_flag
12648	else
12649	  cat conftest.err 1>&5
12650	fi
12651	$RM conftest*
12652
12653fi
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12655$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12656      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12657      ;;
12658    esac
12659  fi
12660  ;;
12661esac
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12815$as_echo_n "checking dynamic linker characteristics... " >&6; }
12816
12817if test "$GCC" = yes; then
12818  case $host_os in
12819    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12820    *) lt_awk_arg="/^libraries:/" ;;
12821  esac
12822  case $host_os in
12823    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12824    *) lt_sed_strip_eq="s,=/,/,g" ;;
12825  esac
12826  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12827  case $lt_search_path_spec in
12828  *\;*)
12829    # if the path contains ";" then we assume it to be the separator
12830    # otherwise default to the standard path separator (i.e. ":") - it is
12831    # assumed that no part of a normal pathname contains ";" but that should
12832    # okay in the real world where ";" in dirpaths is itself problematic.
12833    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12834    ;;
12835  *)
12836    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12837    ;;
12838  esac
12839  # Ok, now we have the path, separated by spaces, we can step through it
12840  # and add multilib dir if necessary.
12841  lt_tmp_lt_search_path_spec=
12842  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12843  for lt_sys_path in $lt_search_path_spec; do
12844    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12845      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12846    else
12847      test -d "$lt_sys_path" && \
12848	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12849    fi
12850  done
12851  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12852BEGIN {RS=" "; FS="/|\n";} {
12853  lt_foo="";
12854  lt_count=0;
12855  for (lt_i = NF; lt_i > 0; lt_i--) {
12856    if ($lt_i != "" && $lt_i != ".") {
12857      if ($lt_i == "..") {
12858        lt_count++;
12859      } else {
12860        if (lt_count == 0) {
12861          lt_foo="/" $lt_i lt_foo;
12862        } else {
12863          lt_count--;
12864        }
12865      }
12866    }
12867  }
12868  if (lt_foo != "") { lt_freq[lt_foo]++; }
12869  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12870}'`
12871  # AWK program above erroneously prepends '/' to C:/dos/paths
12872  # for these hosts.
12873  case $host_os in
12874    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12875      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12876  esac
12877  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12878else
12879  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12880fi
12881library_names_spec=
12882libname_spec='lib$name'
12883soname_spec=
12884shrext_cmds=".so"
12885postinstall_cmds=
12886postuninstall_cmds=
12887finish_cmds=
12888finish_eval=
12889shlibpath_var=
12890shlibpath_overrides_runpath=unknown
12891version_type=none
12892dynamic_linker="$host_os ld.so"
12893sys_lib_dlsearch_path_spec="/lib /usr/lib"
12894need_lib_prefix=unknown
12895hardcode_into_libs=no
12896
12897# when you set need_version to no, make sure it does not cause -set_version
12898# flags to be left without arguments
12899need_version=unknown
12900
12901case $host_os in
12902aix3*)
12903  version_type=linux # correct to gnu/linux during the next big refactor
12904  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12905  shlibpath_var=LIBPATH
12906
12907  # AIX 3 has no versioning support, so we append a major version to the name.
12908  soname_spec='${libname}${release}${shared_ext}$major'
12909  ;;
12910
12911aix[4-9]*)
12912  version_type=linux # correct to gnu/linux during the next big refactor
12913  need_lib_prefix=no
12914  need_version=no
12915  hardcode_into_libs=yes
12916  if test "$host_cpu" = ia64; then
12917    # AIX 5 supports IA64
12918    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12919    shlibpath_var=LD_LIBRARY_PATH
12920  else
12921    # With GCC up to 2.95.x, collect2 would create an import file
12922    # for dependence libraries.  The import file would start with
12923    # the line `#! .'.  This would cause the generated library to
12924    # depend on `.', always an invalid library.  This was fixed in
12925    # development snapshots of GCC prior to 3.0.
12926    case $host_os in
12927      aix4 | aix4.[01] | aix4.[01].*)
12928      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12929	   echo ' yes '
12930	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12931	:
12932      else
12933	can_build_shared=no
12934      fi
12935      ;;
12936    esac
12937    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12938    # soname into executable. Probably we can add versioning support to
12939    # collect2, so additional links can be useful in future.
12940    if test "$aix_use_runtimelinking" = yes; then
12941      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12942      # instead of lib<name>.a to let people know that these are not
12943      # typical AIX shared libraries.
12944      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945    else
12946      # We preserve .a as extension for shared libraries through AIX4.2
12947      # and later when we are not doing run time linking.
12948      library_names_spec='${libname}${release}.a $libname.a'
12949      soname_spec='${libname}${release}${shared_ext}$major'
12950    fi
12951    shlibpath_var=LIBPATH
12952  fi
12953  ;;
12954
12955amigaos*)
12956  case $host_cpu in
12957  powerpc)
12958    # Since July 2007 AmigaOS4 officially supports .so libraries.
12959    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961    ;;
12962  m68k)
12963    library_names_spec='$libname.ixlibrary $libname.a'
12964    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12965    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12966    ;;
12967  esac
12968  ;;
12969
12970beos*)
12971  library_names_spec='${libname}${shared_ext}'
12972  dynamic_linker="$host_os ld.so"
12973  shlibpath_var=LIBRARY_PATH
12974  ;;
12975
12976bsdi[45]*)
12977  version_type=linux # correct to gnu/linux during the next big refactor
12978  need_version=no
12979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980  soname_spec='${libname}${release}${shared_ext}$major'
12981  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12982  shlibpath_var=LD_LIBRARY_PATH
12983  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12984  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12985  # the default ld.so.conf also contains /usr/contrib/lib and
12986  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12987  # libtool to hard-code these into programs
12988  ;;
12989
12990cygwin* | mingw* | pw32* | cegcc*)
12991  version_type=windows
12992  shrext_cmds=".dll"
12993  need_version=no
12994  need_lib_prefix=no
12995
12996  case $GCC,$cc_basename in
12997  yes,*)
12998    # gcc
12999    library_names_spec='$libname.dll.a'
13000    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13001    postinstall_cmds='base_file=`basename \${file}`~
13002      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13003      dldir=$destdir/`dirname \$dlpath`~
13004      test -d \$dldir || mkdir -p \$dldir~
13005      $install_prog $dir/$dlname \$dldir/$dlname~
13006      chmod a+x \$dldir/$dlname~
13007      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13008        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13009      fi'
13010    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13011      dlpath=$dir/\$dldll~
13012       $RM \$dlpath'
13013    shlibpath_overrides_runpath=yes
13014
13015    case $host_os in
13016    cygwin*)
13017      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13018      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13019
13020      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13021      ;;
13022    mingw* | cegcc*)
13023      # MinGW DLLs use traditional 'lib' prefix
13024      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13025      ;;
13026    pw32*)
13027      # pw32 DLLs use 'pw' prefix rather than 'lib'
13028      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13029      ;;
13030    esac
13031    dynamic_linker='Win32 ld.exe'
13032    ;;
13033
13034  *,cl*)
13035    # Native MSVC
13036    libname_spec='$name'
13037    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13038    library_names_spec='${libname}.dll.lib'
13039
13040    case $build_os in
13041    mingw*)
13042      sys_lib_search_path_spec=
13043      lt_save_ifs=$IFS
13044      IFS=';'
13045      for lt_path in $LIB
13046      do
13047        IFS=$lt_save_ifs
13048        # Let DOS variable expansion print the short 8.3 style file name.
13049        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13050        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13051      done
13052      IFS=$lt_save_ifs
13053      # Convert to MSYS style.
13054      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13055      ;;
13056    cygwin*)
13057      # Convert to unix form, then to dos form, then back to unix form
13058      # but this time dos style (no spaces!) so that the unix form looks
13059      # like /cygdrive/c/PROGRA~1:/cygdr...
13060      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13061      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13062      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13063      ;;
13064    *)
13065      sys_lib_search_path_spec="$LIB"
13066      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13067        # It is most probably a Windows format PATH.
13068        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13069      else
13070        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13071      fi
13072      # FIXME: find the short name or the path components, as spaces are
13073      # common. (e.g. "Program Files" -> "PROGRA~1")
13074      ;;
13075    esac
13076
13077    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13078    postinstall_cmds='base_file=`basename \${file}`~
13079      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13080      dldir=$destdir/`dirname \$dlpath`~
13081      test -d \$dldir || mkdir -p \$dldir~
13082      $install_prog $dir/$dlname \$dldir/$dlname'
13083    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13084      dlpath=$dir/\$dldll~
13085       $RM \$dlpath'
13086    shlibpath_overrides_runpath=yes
13087    dynamic_linker='Win32 link.exe'
13088    ;;
13089
13090  *)
13091    # Assume MSVC wrapper
13092    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13093    dynamic_linker='Win32 ld.exe'
13094    ;;
13095  esac
13096  # FIXME: first we should search . and the directory the executable is in
13097  shlibpath_var=PATH
13098  ;;
13099
13100darwin* | rhapsody*)
13101  dynamic_linker="$host_os dyld"
13102  version_type=darwin
13103  need_lib_prefix=no
13104  need_version=no
13105  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13106  soname_spec='${libname}${release}${major}$shared_ext'
13107  shlibpath_overrides_runpath=yes
13108  shlibpath_var=DYLD_LIBRARY_PATH
13109  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13110
13111  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13112  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13113  ;;
13114
13115dgux*)
13116  version_type=linux # correct to gnu/linux during the next big refactor
13117  need_lib_prefix=no
13118  need_version=no
13119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13120  soname_spec='${libname}${release}${shared_ext}$major'
13121  shlibpath_var=LD_LIBRARY_PATH
13122  ;;
13123
13124freebsd* | dragonfly*)
13125  # DragonFly does not have aout.  When/if they implement a new
13126  # versioning mechanism, adjust this.
13127  if test -x /usr/bin/objformat; then
13128    objformat=`/usr/bin/objformat`
13129  else
13130    case $host_os in
13131    freebsd[23].*) objformat=aout ;;
13132    *) objformat=elf ;;
13133    esac
13134  fi
13135  version_type=freebsd-$objformat
13136  case $version_type in
13137    freebsd-elf*)
13138      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13139      need_version=no
13140      need_lib_prefix=no
13141      ;;
13142    freebsd-*)
13143      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13144      need_version=yes
13145      ;;
13146  esac
13147  shlibpath_var=LD_LIBRARY_PATH
13148  case $host_os in
13149  freebsd2.*)
13150    shlibpath_overrides_runpath=yes
13151    ;;
13152  freebsd3.[01]* | freebsdelf3.[01]*)
13153    shlibpath_overrides_runpath=yes
13154    hardcode_into_libs=yes
13155    ;;
13156  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13157  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13158    shlibpath_overrides_runpath=no
13159    hardcode_into_libs=yes
13160    ;;
13161  *) # from 4.6 on, and DragonFly
13162    shlibpath_overrides_runpath=yes
13163    hardcode_into_libs=yes
13164    ;;
13165  esac
13166  ;;
13167
13168gnu*)
13169  version_type=linux # correct to gnu/linux during the next big refactor
13170  need_lib_prefix=no
13171  need_version=no
13172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13173  soname_spec='${libname}${release}${shared_ext}$major'
13174  shlibpath_var=LD_LIBRARY_PATH
13175  shlibpath_overrides_runpath=no
13176  hardcode_into_libs=yes
13177  ;;
13178
13179haiku*)
13180  version_type=linux # correct to gnu/linux during the next big refactor
13181  need_lib_prefix=no
13182  need_version=no
13183  dynamic_linker="$host_os runtime_loader"
13184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13185  soname_spec='${libname}${release}${shared_ext}$major'
13186  shlibpath_var=LIBRARY_PATH
13187  shlibpath_overrides_runpath=yes
13188  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13189  hardcode_into_libs=yes
13190  ;;
13191
13192hpux9* | hpux10* | hpux11*)
13193  # Give a soname corresponding to the major version so that dld.sl refuses to
13194  # link against other versions.
13195  version_type=sunos
13196  need_lib_prefix=no
13197  need_version=no
13198  case $host_cpu in
13199  ia64*)
13200    shrext_cmds='.so'
13201    hardcode_into_libs=yes
13202    dynamic_linker="$host_os dld.so"
13203    shlibpath_var=LD_LIBRARY_PATH
13204    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13205    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206    soname_spec='${libname}${release}${shared_ext}$major'
13207    if test "X$HPUX_IA64_MODE" = X32; then
13208      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13209    else
13210      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13211    fi
13212    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13213    ;;
13214  hppa*64*)
13215    shrext_cmds='.sl'
13216    hardcode_into_libs=yes
13217    dynamic_linker="$host_os dld.sl"
13218    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13219    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13220    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221    soname_spec='${libname}${release}${shared_ext}$major'
13222    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13223    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13224    ;;
13225  *)
13226    shrext_cmds='.sl'
13227    dynamic_linker="$host_os dld.sl"
13228    shlibpath_var=SHLIB_PATH
13229    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13230    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231    soname_spec='${libname}${release}${shared_ext}$major'
13232    ;;
13233  esac
13234  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13235  postinstall_cmds='chmod 555 $lib'
13236  # or fails outright, so override atomically:
13237  install_override_mode=555
13238  ;;
13239
13240interix[3-9]*)
13241  version_type=linux # correct to gnu/linux during the next big refactor
13242  need_lib_prefix=no
13243  need_version=no
13244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13245  soname_spec='${libname}${release}${shared_ext}$major'
13246  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13247  shlibpath_var=LD_LIBRARY_PATH
13248  shlibpath_overrides_runpath=no
13249  hardcode_into_libs=yes
13250  ;;
13251
13252irix5* | irix6* | nonstopux*)
13253  case $host_os in
13254    nonstopux*) version_type=nonstopux ;;
13255    *)
13256	if test "$lt_cv_prog_gnu_ld" = yes; then
13257		version_type=linux # correct to gnu/linux during the next big refactor
13258	else
13259		version_type=irix
13260	fi ;;
13261  esac
13262  need_lib_prefix=no
13263  need_version=no
13264  soname_spec='${libname}${release}${shared_ext}$major'
13265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13266  case $host_os in
13267  irix5* | nonstopux*)
13268    libsuff= shlibsuff=
13269    ;;
13270  *)
13271    case $LD in # libtool.m4 will add one of these switches to LD
13272    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13273      libsuff= shlibsuff= libmagic=32-bit;;
13274    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13275      libsuff=32 shlibsuff=N32 libmagic=N32;;
13276    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13277      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13278    *) libsuff= shlibsuff= libmagic=never-match;;
13279    esac
13280    ;;
13281  esac
13282  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13283  shlibpath_overrides_runpath=no
13284  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13285  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13286  hardcode_into_libs=yes
13287  ;;
13288
13289# No shared lib support for Linux oldld, aout, or coff.
13290linux*oldld* | linux*aout* | linux*coff*)
13291  dynamic_linker=no
13292  ;;
13293
13294# This must be glibc/ELF.
13295linux* | k*bsd*-gnu | kopensolaris*-gnu)
13296  version_type=linux # correct to gnu/linux during the next big refactor
13297  need_lib_prefix=no
13298  need_version=no
13299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300  soname_spec='${libname}${release}${shared_ext}$major'
13301  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13302  shlibpath_var=LD_LIBRARY_PATH
13303  shlibpath_overrides_runpath=no
13304
13305  # Some binutils ld are patched to set DT_RUNPATH
13306  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13307  $as_echo_n "(cached) " >&6
13308else
13309  lt_cv_shlibpath_overrides_runpath=no
13310    save_LDFLAGS=$LDFLAGS
13311    save_libdir=$libdir
13312    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13313	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315/* end confdefs.h.  */
13316
13317int
13318main ()
13319{
13320
13321  ;
13322  return 0;
13323}
13324_ACEOF
13325if ac_fn_c_try_link "$LINENO"; then :
13326  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13327  lt_cv_shlibpath_overrides_runpath=yes
13328fi
13329fi
13330rm -f core conftest.err conftest.$ac_objext \
13331    conftest$ac_exeext conftest.$ac_ext
13332    LDFLAGS=$save_LDFLAGS
13333    libdir=$save_libdir
13334
13335fi
13336
13337  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13338
13339  # This implies no fast_install, which is unacceptable.
13340  # Some rework will be needed to allow for fast_install
13341  # before this can be enabled.
13342  hardcode_into_libs=yes
13343
13344  # Append ld.so.conf contents to the search path
13345  if test -f /etc/ld.so.conf; then
13346    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13347    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13348  fi
13349
13350  # We used to test for /lib/ld.so.1 and disable shared libraries on
13351  # powerpc, because MkLinux only supported shared libraries with the
13352  # GNU dynamic linker.  Since this was broken with cross compilers,
13353  # most powerpc-linux boxes support dynamic linking these days and
13354  # people can always --disable-shared, the test was removed, and we
13355  # assume the GNU/Linux dynamic linker is in use.
13356  dynamic_linker='GNU/Linux ld.so'
13357  ;;
13358
13359netbsd*)
13360  version_type=sunos
13361  need_lib_prefix=no
13362  need_version=no
13363  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13364    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13365    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13366    dynamic_linker='NetBSD (a.out) ld.so'
13367  else
13368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13369    soname_spec='${libname}${release}${shared_ext}$major'
13370    dynamic_linker='NetBSD ld.elf_so'
13371  fi
13372  shlibpath_var=LD_LIBRARY_PATH
13373  shlibpath_overrides_runpath=yes
13374  hardcode_into_libs=yes
13375  ;;
13376
13377newsos6)
13378  version_type=linux # correct to gnu/linux during the next big refactor
13379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380  shlibpath_var=LD_LIBRARY_PATH
13381  shlibpath_overrides_runpath=yes
13382  ;;
13383
13384*nto* | *qnx*)
13385  version_type=qnx
13386  need_lib_prefix=no
13387  need_version=no
13388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389  soname_spec='${libname}${release}${shared_ext}$major'
13390  shlibpath_var=LD_LIBRARY_PATH
13391  shlibpath_overrides_runpath=no
13392  hardcode_into_libs=yes
13393  dynamic_linker='ldqnx.so'
13394  ;;
13395
13396openbsd*)
13397  version_type=sunos
13398  sys_lib_dlsearch_path_spec="/usr/lib"
13399  need_lib_prefix=no
13400  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13401  case $host_os in
13402    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13403    *)				need_version=no  ;;
13404  esac
13405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13406  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13407  shlibpath_var=LD_LIBRARY_PATH
13408  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13409    case $host_os in
13410      openbsd2.[89] | openbsd2.[89].*)
13411	shlibpath_overrides_runpath=no
13412	;;
13413      *)
13414	shlibpath_overrides_runpath=yes
13415	;;
13416      esac
13417  else
13418    shlibpath_overrides_runpath=yes
13419  fi
13420  ;;
13421
13422os2*)
13423  libname_spec='$name'
13424  shrext_cmds=".dll"
13425  need_lib_prefix=no
13426  library_names_spec='$libname${shared_ext} $libname.a'
13427  dynamic_linker='OS/2 ld.exe'
13428  shlibpath_var=LIBPATH
13429  ;;
13430
13431osf3* | osf4* | osf5*)
13432  version_type=osf
13433  need_lib_prefix=no
13434  need_version=no
13435  soname_spec='${libname}${release}${shared_ext}$major'
13436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437  shlibpath_var=LD_LIBRARY_PATH
13438  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13439  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13440  ;;
13441
13442rdos*)
13443  dynamic_linker=no
13444  ;;
13445
13446solaris*)
13447  version_type=linux # correct to gnu/linux during the next big refactor
13448  need_lib_prefix=no
13449  need_version=no
13450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451  soname_spec='${libname}${release}${shared_ext}$major'
13452  shlibpath_var=LD_LIBRARY_PATH
13453  shlibpath_overrides_runpath=yes
13454  hardcode_into_libs=yes
13455  # ldd complains unless libraries are executable
13456  postinstall_cmds='chmod +x $lib'
13457  ;;
13458
13459sunos4*)
13460  version_type=sunos
13461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13462  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13463  shlibpath_var=LD_LIBRARY_PATH
13464  shlibpath_overrides_runpath=yes
13465  if test "$with_gnu_ld" = yes; then
13466    need_lib_prefix=no
13467  fi
13468  need_version=yes
13469  ;;
13470
13471sysv4 | sysv4.3*)
13472  version_type=linux # correct to gnu/linux during the next big refactor
13473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474  soname_spec='${libname}${release}${shared_ext}$major'
13475  shlibpath_var=LD_LIBRARY_PATH
13476  case $host_vendor in
13477    sni)
13478      shlibpath_overrides_runpath=no
13479      need_lib_prefix=no
13480      runpath_var=LD_RUN_PATH
13481      ;;
13482    siemens)
13483      need_lib_prefix=no
13484      ;;
13485    motorola)
13486      need_lib_prefix=no
13487      need_version=no
13488      shlibpath_overrides_runpath=no
13489      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13490      ;;
13491  esac
13492  ;;
13493
13494sysv4*MP*)
13495  if test -d /usr/nec ;then
13496    version_type=linux # correct to gnu/linux during the next big refactor
13497    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13498    soname_spec='$libname${shared_ext}.$major'
13499    shlibpath_var=LD_LIBRARY_PATH
13500  fi
13501  ;;
13502
13503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13504  version_type=freebsd-elf
13505  need_lib_prefix=no
13506  need_version=no
13507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13508  soname_spec='${libname}${release}${shared_ext}$major'
13509  shlibpath_var=LD_LIBRARY_PATH
13510  shlibpath_overrides_runpath=yes
13511  hardcode_into_libs=yes
13512  if test "$with_gnu_ld" = yes; then
13513    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13514  else
13515    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13516    case $host_os in
13517      sco3.2v5*)
13518        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13519	;;
13520    esac
13521  fi
13522  sys_lib_dlsearch_path_spec='/usr/lib'
13523  ;;
13524
13525tpf*)
13526  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13527  version_type=linux # correct to gnu/linux during the next big refactor
13528  need_lib_prefix=no
13529  need_version=no
13530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531  shlibpath_var=LD_LIBRARY_PATH
13532  shlibpath_overrides_runpath=no
13533  hardcode_into_libs=yes
13534  ;;
13535
13536uts4*)
13537  version_type=linux # correct to gnu/linux during the next big refactor
13538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13539  soname_spec='${libname}${release}${shared_ext}$major'
13540  shlibpath_var=LD_LIBRARY_PATH
13541  ;;
13542
13543*)
13544  dynamic_linker=no
13545  ;;
13546esac
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13548$as_echo "$dynamic_linker" >&6; }
13549test "$dynamic_linker" = no && can_build_shared=no
13550
13551variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13552if test "$GCC" = yes; then
13553  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13554fi
13555
13556if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13557  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13558fi
13559if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13560  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13561fi
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13655$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13656hardcode_action=
13657if test -n "$hardcode_libdir_flag_spec" ||
13658   test -n "$runpath_var" ||
13659   test "X$hardcode_automatic" = "Xyes" ; then
13660
13661  # We can hardcode non-existent directories.
13662  if test "$hardcode_direct" != no &&
13663     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13664     # have to relink, otherwise we might link with an installed library
13665     # when we should be linking with a yet-to-be-installed one
13666     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13667     test "$hardcode_minus_L" != no; then
13668    # Linking always hardcodes the temporary library directory.
13669    hardcode_action=relink
13670  else
13671    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13672    hardcode_action=immediate
13673  fi
13674else
13675  # We cannot hardcode anything, or else we can only hardcode existing
13676  # directories.
13677  hardcode_action=unsupported
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13680$as_echo "$hardcode_action" >&6; }
13681
13682if test "$hardcode_action" = relink ||
13683   test "$inherit_rpath" = yes; then
13684  # Fast installation is not supported
13685  enable_fast_install=no
13686elif test "$shlibpath_overrides_runpath" = yes ||
13687     test "$enable_shared" = no; then
13688  # Fast installation is not necessary
13689  enable_fast_install=needless
13690fi
13691
13692
13693
13694
13695
13696
13697  if test "x$enable_dlopen" != xyes; then
13698  enable_dlopen=unknown
13699  enable_dlopen_self=unknown
13700  enable_dlopen_self_static=unknown
13701else
13702  lt_cv_dlopen=no
13703  lt_cv_dlopen_libs=
13704
13705  case $host_os in
13706  beos*)
13707    lt_cv_dlopen="load_add_on"
13708    lt_cv_dlopen_libs=
13709    lt_cv_dlopen_self=yes
13710    ;;
13711
13712  mingw* | pw32* | cegcc*)
13713    lt_cv_dlopen="LoadLibrary"
13714    lt_cv_dlopen_libs=
13715    ;;
13716
13717  cygwin*)
13718    lt_cv_dlopen="dlopen"
13719    lt_cv_dlopen_libs=
13720    ;;
13721
13722  darwin*)
13723  # if libdl is installed we need to link against it
13724    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13725$as_echo_n "checking for dlopen in -ldl... " >&6; }
13726if ${ac_cv_lib_dl_dlopen+:} false; then :
13727  $as_echo_n "(cached) " >&6
13728else
13729  ac_check_lib_save_LIBS=$LIBS
13730LIBS="-ldl  $LIBS"
13731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h.  */
13733
13734/* Override any GCC internal prototype to avoid an error.
13735   Use char because int might match the return type of a GCC
13736   builtin and then its argument prototype would still apply.  */
13737#ifdef __cplusplus
13738extern "C"
13739#endif
13740char dlopen ();
13741int
13742main ()
13743{
13744return dlopen ();
13745  ;
13746  return 0;
13747}
13748_ACEOF
13749if ac_fn_c_try_link "$LINENO"; then :
13750  ac_cv_lib_dl_dlopen=yes
13751else
13752  ac_cv_lib_dl_dlopen=no
13753fi
13754rm -f core conftest.err conftest.$ac_objext \
13755    conftest$ac_exeext conftest.$ac_ext
13756LIBS=$ac_check_lib_save_LIBS
13757fi
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13759$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13760if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13761  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13762else
13763
13764    lt_cv_dlopen="dyld"
13765    lt_cv_dlopen_libs=
13766    lt_cv_dlopen_self=yes
13767
13768fi
13769
13770    ;;
13771
13772  *)
13773    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13774if test "x$ac_cv_func_shl_load" = xyes; then :
13775  lt_cv_dlopen="shl_load"
13776else
13777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13778$as_echo_n "checking for shl_load in -ldld... " >&6; }
13779if ${ac_cv_lib_dld_shl_load+:} false; then :
13780  $as_echo_n "(cached) " >&6
13781else
13782  ac_check_lib_save_LIBS=$LIBS
13783LIBS="-ldld  $LIBS"
13784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785/* end confdefs.h.  */
13786
13787/* Override any GCC internal prototype to avoid an error.
13788   Use char because int might match the return type of a GCC
13789   builtin and then its argument prototype would still apply.  */
13790#ifdef __cplusplus
13791extern "C"
13792#endif
13793char shl_load ();
13794int
13795main ()
13796{
13797return shl_load ();
13798  ;
13799  return 0;
13800}
13801_ACEOF
13802if ac_fn_c_try_link "$LINENO"; then :
13803  ac_cv_lib_dld_shl_load=yes
13804else
13805  ac_cv_lib_dld_shl_load=no
13806fi
13807rm -f core conftest.err conftest.$ac_objext \
13808    conftest$ac_exeext conftest.$ac_ext
13809LIBS=$ac_check_lib_save_LIBS
13810fi
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13812$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13813if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13814  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13815else
13816  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13817if test "x$ac_cv_func_dlopen" = xyes; then :
13818  lt_cv_dlopen="dlopen"
13819else
13820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13821$as_echo_n "checking for dlopen in -ldl... " >&6; }
13822if ${ac_cv_lib_dl_dlopen+:} false; then :
13823  $as_echo_n "(cached) " >&6
13824else
13825  ac_check_lib_save_LIBS=$LIBS
13826LIBS="-ldl  $LIBS"
13827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828/* end confdefs.h.  */
13829
13830/* Override any GCC internal prototype to avoid an error.
13831   Use char because int might match the return type of a GCC
13832   builtin and then its argument prototype would still apply.  */
13833#ifdef __cplusplus
13834extern "C"
13835#endif
13836char dlopen ();
13837int
13838main ()
13839{
13840return dlopen ();
13841  ;
13842  return 0;
13843}
13844_ACEOF
13845if ac_fn_c_try_link "$LINENO"; then :
13846  ac_cv_lib_dl_dlopen=yes
13847else
13848  ac_cv_lib_dl_dlopen=no
13849fi
13850rm -f core conftest.err conftest.$ac_objext \
13851    conftest$ac_exeext conftest.$ac_ext
13852LIBS=$ac_check_lib_save_LIBS
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13855$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13856if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13857  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13858else
13859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13860$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13861if ${ac_cv_lib_svld_dlopen+:} false; then :
13862  $as_echo_n "(cached) " >&6
13863else
13864  ac_check_lib_save_LIBS=$LIBS
13865LIBS="-lsvld  $LIBS"
13866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868
13869/* Override any GCC internal prototype to avoid an error.
13870   Use char because int might match the return type of a GCC
13871   builtin and then its argument prototype would still apply.  */
13872#ifdef __cplusplus
13873extern "C"
13874#endif
13875char dlopen ();
13876int
13877main ()
13878{
13879return dlopen ();
13880  ;
13881  return 0;
13882}
13883_ACEOF
13884if ac_fn_c_try_link "$LINENO"; then :
13885  ac_cv_lib_svld_dlopen=yes
13886else
13887  ac_cv_lib_svld_dlopen=no
13888fi
13889rm -f core conftest.err conftest.$ac_objext \
13890    conftest$ac_exeext conftest.$ac_ext
13891LIBS=$ac_check_lib_save_LIBS
13892fi
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13894$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13895if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13896  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13897else
13898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13899$as_echo_n "checking for dld_link in -ldld... " >&6; }
13900if ${ac_cv_lib_dld_dld_link+:} false; then :
13901  $as_echo_n "(cached) " >&6
13902else
13903  ac_check_lib_save_LIBS=$LIBS
13904LIBS="-ldld  $LIBS"
13905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906/* end confdefs.h.  */
13907
13908/* Override any GCC internal prototype to avoid an error.
13909   Use char because int might match the return type of a GCC
13910   builtin and then its argument prototype would still apply.  */
13911#ifdef __cplusplus
13912extern "C"
13913#endif
13914char dld_link ();
13915int
13916main ()
13917{
13918return dld_link ();
13919  ;
13920  return 0;
13921}
13922_ACEOF
13923if ac_fn_c_try_link "$LINENO"; then :
13924  ac_cv_lib_dld_dld_link=yes
13925else
13926  ac_cv_lib_dld_dld_link=no
13927fi
13928rm -f core conftest.err conftest.$ac_objext \
13929    conftest$ac_exeext conftest.$ac_ext
13930LIBS=$ac_check_lib_save_LIBS
13931fi
13932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13933$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13934if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13935  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13936fi
13937
13938
13939fi
13940
13941
13942fi
13943
13944
13945fi
13946
13947
13948fi
13949
13950
13951fi
13952
13953    ;;
13954  esac
13955
13956  if test "x$lt_cv_dlopen" != xno; then
13957    enable_dlopen=yes
13958  else
13959    enable_dlopen=no
13960  fi
13961
13962  case $lt_cv_dlopen in
13963  dlopen)
13964    save_CPPFLAGS="$CPPFLAGS"
13965    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13966
13967    save_LDFLAGS="$LDFLAGS"
13968    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13969
13970    save_LIBS="$LIBS"
13971    LIBS="$lt_cv_dlopen_libs $LIBS"
13972
13973    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13974$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13975if ${lt_cv_dlopen_self+:} false; then :
13976  $as_echo_n "(cached) " >&6
13977else
13978  	  if test "$cross_compiling" = yes; then :
13979  lt_cv_dlopen_self=cross
13980else
13981  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13982  lt_status=$lt_dlunknown
13983  cat > conftest.$ac_ext <<_LT_EOF
13984#line $LINENO "configure"
13985#include "confdefs.h"
13986
13987#if HAVE_DLFCN_H
13988#include <dlfcn.h>
13989#endif
13990
13991#include <stdio.h>
13992
13993#ifdef RTLD_GLOBAL
13994#  define LT_DLGLOBAL		RTLD_GLOBAL
13995#else
13996#  ifdef DL_GLOBAL
13997#    define LT_DLGLOBAL		DL_GLOBAL
13998#  else
13999#    define LT_DLGLOBAL		0
14000#  endif
14001#endif
14002
14003/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14004   find out it does not work in some platform. */
14005#ifndef LT_DLLAZY_OR_NOW
14006#  ifdef RTLD_LAZY
14007#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14008#  else
14009#    ifdef DL_LAZY
14010#      define LT_DLLAZY_OR_NOW		DL_LAZY
14011#    else
14012#      ifdef RTLD_NOW
14013#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14014#      else
14015#        ifdef DL_NOW
14016#          define LT_DLLAZY_OR_NOW	DL_NOW
14017#        else
14018#          define LT_DLLAZY_OR_NOW	0
14019#        endif
14020#      endif
14021#    endif
14022#  endif
14023#endif
14024
14025/* When -fvisbility=hidden is used, assume the code has been annotated
14026   correspondingly for the symbols needed.  */
14027#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14028int fnord () __attribute__((visibility("default")));
14029#endif
14030
14031int fnord () { return 42; }
14032int main ()
14033{
14034  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14035  int status = $lt_dlunknown;
14036
14037  if (self)
14038    {
14039      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14040      else
14041        {
14042	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14043          else puts (dlerror ());
14044	}
14045      /* dlclose (self); */
14046    }
14047  else
14048    puts (dlerror ());
14049
14050  return status;
14051}
14052_LT_EOF
14053  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14054  (eval $ac_link) 2>&5
14055  ac_status=$?
14056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14057  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14058    (./conftest; exit; ) >&5 2>/dev/null
14059    lt_status=$?
14060    case x$lt_status in
14061      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14062      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14063      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14064    esac
14065  else :
14066    # compilation failed
14067    lt_cv_dlopen_self=no
14068  fi
14069fi
14070rm -fr conftest*
14071
14072
14073fi
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14075$as_echo "$lt_cv_dlopen_self" >&6; }
14076
14077    if test "x$lt_cv_dlopen_self" = xyes; then
14078      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14079      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14080$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14081if ${lt_cv_dlopen_self_static+:} false; then :
14082  $as_echo_n "(cached) " >&6
14083else
14084  	  if test "$cross_compiling" = yes; then :
14085  lt_cv_dlopen_self_static=cross
14086else
14087  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088  lt_status=$lt_dlunknown
14089  cat > conftest.$ac_ext <<_LT_EOF
14090#line $LINENO "configure"
14091#include "confdefs.h"
14092
14093#if HAVE_DLFCN_H
14094#include <dlfcn.h>
14095#endif
14096
14097#include <stdio.h>
14098
14099#ifdef RTLD_GLOBAL
14100#  define LT_DLGLOBAL		RTLD_GLOBAL
14101#else
14102#  ifdef DL_GLOBAL
14103#    define LT_DLGLOBAL		DL_GLOBAL
14104#  else
14105#    define LT_DLGLOBAL		0
14106#  endif
14107#endif
14108
14109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110   find out it does not work in some platform. */
14111#ifndef LT_DLLAZY_OR_NOW
14112#  ifdef RTLD_LAZY
14113#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14114#  else
14115#    ifdef DL_LAZY
14116#      define LT_DLLAZY_OR_NOW		DL_LAZY
14117#    else
14118#      ifdef RTLD_NOW
14119#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14120#      else
14121#        ifdef DL_NOW
14122#          define LT_DLLAZY_OR_NOW	DL_NOW
14123#        else
14124#          define LT_DLLAZY_OR_NOW	0
14125#        endif
14126#      endif
14127#    endif
14128#  endif
14129#endif
14130
14131/* When -fvisbility=hidden is used, assume the code has been annotated
14132   correspondingly for the symbols needed.  */
14133#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14134int fnord () __attribute__((visibility("default")));
14135#endif
14136
14137int fnord () { return 42; }
14138int main ()
14139{
14140  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14141  int status = $lt_dlunknown;
14142
14143  if (self)
14144    {
14145      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14146      else
14147        {
14148	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14149          else puts (dlerror ());
14150	}
14151      /* dlclose (self); */
14152    }
14153  else
14154    puts (dlerror ());
14155
14156  return status;
14157}
14158_LT_EOF
14159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14160  (eval $ac_link) 2>&5
14161  ac_status=$?
14162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14164    (./conftest; exit; ) >&5 2>/dev/null
14165    lt_status=$?
14166    case x$lt_status in
14167      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14168      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14169      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14170    esac
14171  else :
14172    # compilation failed
14173    lt_cv_dlopen_self_static=no
14174  fi
14175fi
14176rm -fr conftest*
14177
14178
14179fi
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14181$as_echo "$lt_cv_dlopen_self_static" >&6; }
14182    fi
14183
14184    CPPFLAGS="$save_CPPFLAGS"
14185    LDFLAGS="$save_LDFLAGS"
14186    LIBS="$save_LIBS"
14187    ;;
14188  esac
14189
14190  case $lt_cv_dlopen_self in
14191  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14192  *) enable_dlopen_self=unknown ;;
14193  esac
14194
14195  case $lt_cv_dlopen_self_static in
14196  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14197  *) enable_dlopen_self_static=unknown ;;
14198  esac
14199fi
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217striplib=
14218old_striplib=
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14220$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14221if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14222  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14223  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14225$as_echo "yes" >&6; }
14226else
14227# FIXME - insert some real tests, host_os isn't really good enough
14228  case $host_os in
14229  darwin*)
14230    if test -n "$STRIP" ; then
14231      striplib="$STRIP -x"
14232      old_striplib="$STRIP -S"
14233      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14234$as_echo "yes" >&6; }
14235    else
14236      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237$as_echo "no" >&6; }
14238    fi
14239    ;;
14240  *)
14241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
14243    ;;
14244  esac
14245fi
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258  # Report which library types will actually be built
14259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14260$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14262$as_echo "$can_build_shared" >&6; }
14263
14264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14265$as_echo_n "checking whether to build shared libraries... " >&6; }
14266  test "$can_build_shared" = "no" && enable_shared=no
14267
14268  # On AIX, shared libraries and static libraries use the same namespace, and
14269  # are all built from PIC.
14270  case $host_os in
14271  aix3*)
14272    test "$enable_shared" = yes && enable_static=no
14273    if test -n "$RANLIB"; then
14274      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14275      postinstall_cmds='$RANLIB $lib'
14276    fi
14277    ;;
14278
14279  aix[4-9]*)
14280    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14281      test "$enable_shared" = yes && enable_static=no
14282    fi
14283    ;;
14284  esac
14285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14286$as_echo "$enable_shared" >&6; }
14287
14288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14289$as_echo_n "checking whether to build static libraries... " >&6; }
14290  # Make sure either enable_shared or enable_static is yes.
14291  test "$enable_shared" = yes || enable_static=yes
14292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14293$as_echo "$enable_static" >&6; }
14294
14295
14296
14297
14298fi
14299ac_ext=c
14300ac_cpp='$CPP $CPPFLAGS'
14301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304
14305CC="$lt_save_CC"
14306
14307      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14308    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14309    (test "X$CXX" != "Xg++"))) ; then
14310  ac_ext=cpp
14311ac_cpp='$CXXCPP $CPPFLAGS'
14312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14316$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14317if test -z "$CXXCPP"; then
14318  if ${ac_cv_prog_CXXCPP+:} false; then :
14319  $as_echo_n "(cached) " >&6
14320else
14321      # Double quotes because CXXCPP needs to be expanded
14322    for CXXCPP in "$CXX -E" "/lib/cpp"
14323    do
14324      ac_preproc_ok=false
14325for ac_cxx_preproc_warn_flag in '' yes
14326do
14327  # Use a header file that comes with gcc, so configuring glibc
14328  # with a fresh cross-compiler works.
14329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14330  # <limits.h> exists even on freestanding compilers.
14331  # On the NeXT, cc -E runs the code through the compiler's parser,
14332  # not just through cpp. "Syntax error" is here to catch this case.
14333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334/* end confdefs.h.  */
14335#ifdef __STDC__
14336# include <limits.h>
14337#else
14338# include <assert.h>
14339#endif
14340		     Syntax error
14341_ACEOF
14342if ac_fn_cxx_try_cpp "$LINENO"; then :
14343
14344else
14345  # Broken: fails on valid input.
14346continue
14347fi
14348rm -f conftest.err conftest.i conftest.$ac_ext
14349
14350  # OK, works on sane cases.  Now check whether nonexistent headers
14351  # can be detected and how.
14352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353/* end confdefs.h.  */
14354#include <ac_nonexistent.h>
14355_ACEOF
14356if ac_fn_cxx_try_cpp "$LINENO"; then :
14357  # Broken: success on invalid input.
14358continue
14359else
14360  # Passes both tests.
14361ac_preproc_ok=:
14362break
14363fi
14364rm -f conftest.err conftest.i conftest.$ac_ext
14365
14366done
14367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14368rm -f conftest.i conftest.err conftest.$ac_ext
14369if $ac_preproc_ok; then :
14370  break
14371fi
14372
14373    done
14374    ac_cv_prog_CXXCPP=$CXXCPP
14375
14376fi
14377  CXXCPP=$ac_cv_prog_CXXCPP
14378else
14379  ac_cv_prog_CXXCPP=$CXXCPP
14380fi
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14382$as_echo "$CXXCPP" >&6; }
14383ac_preproc_ok=false
14384for ac_cxx_preproc_warn_flag in '' yes
14385do
14386  # Use a header file that comes with gcc, so configuring glibc
14387  # with a fresh cross-compiler works.
14388  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14389  # <limits.h> exists even on freestanding compilers.
14390  # On the NeXT, cc -E runs the code through the compiler's parser,
14391  # not just through cpp. "Syntax error" is here to catch this case.
14392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h.  */
14394#ifdef __STDC__
14395# include <limits.h>
14396#else
14397# include <assert.h>
14398#endif
14399		     Syntax error
14400_ACEOF
14401if ac_fn_cxx_try_cpp "$LINENO"; then :
14402
14403else
14404  # Broken: fails on valid input.
14405continue
14406fi
14407rm -f conftest.err conftest.i conftest.$ac_ext
14408
14409  # OK, works on sane cases.  Now check whether nonexistent headers
14410  # can be detected and how.
14411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412/* end confdefs.h.  */
14413#include <ac_nonexistent.h>
14414_ACEOF
14415if ac_fn_cxx_try_cpp "$LINENO"; then :
14416  # Broken: success on invalid input.
14417continue
14418else
14419  # Passes both tests.
14420ac_preproc_ok=:
14421break
14422fi
14423rm -f conftest.err conftest.i conftest.$ac_ext
14424
14425done
14426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14427rm -f conftest.i conftest.err conftest.$ac_ext
14428if $ac_preproc_ok; then :
14429
14430else
14431  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14433as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14434See \`config.log' for more details" "$LINENO" 5; }
14435fi
14436
14437ac_ext=c
14438ac_cpp='$CPP $CPPFLAGS'
14439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14441ac_compiler_gnu=$ac_cv_c_compiler_gnu
14442
14443else
14444  _lt_caught_CXX_error=yes
14445fi
14446
14447ac_ext=cpp
14448ac_cpp='$CXXCPP $CPPFLAGS'
14449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14452
14453archive_cmds_need_lc_CXX=no
14454allow_undefined_flag_CXX=
14455always_export_symbols_CXX=no
14456archive_expsym_cmds_CXX=
14457compiler_needs_object_CXX=no
14458export_dynamic_flag_spec_CXX=
14459hardcode_direct_CXX=no
14460hardcode_direct_absolute_CXX=no
14461hardcode_libdir_flag_spec_CXX=
14462hardcode_libdir_separator_CXX=
14463hardcode_minus_L_CXX=no
14464hardcode_shlibpath_var_CXX=unsupported
14465hardcode_automatic_CXX=no
14466inherit_rpath_CXX=no
14467module_cmds_CXX=
14468module_expsym_cmds_CXX=
14469link_all_deplibs_CXX=unknown
14470old_archive_cmds_CXX=$old_archive_cmds
14471reload_flag_CXX=$reload_flag
14472reload_cmds_CXX=$reload_cmds
14473no_undefined_flag_CXX=
14474whole_archive_flag_spec_CXX=
14475enable_shared_with_static_runtimes_CXX=no
14476
14477# Source file extension for C++ test sources.
14478ac_ext=cpp
14479
14480# Object file extension for compiled C++ test sources.
14481objext=o
14482objext_CXX=$objext
14483
14484# No sense in running all these tests if we already determined that
14485# the CXX compiler isn't working.  Some variables (like enable_shared)
14486# are currently assumed to apply to all compilers on this platform,
14487# and will be corrupted by setting them based on a non-working compiler.
14488if test "$_lt_caught_CXX_error" != yes; then
14489  # Code to be used in simple compile tests
14490  lt_simple_compile_test_code="int some_variable = 0;"
14491
14492  # Code to be used in simple link tests
14493  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14494
14495  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14496
14497
14498
14499
14500
14501
14502# If no C compiler was specified, use CC.
14503LTCC=${LTCC-"$CC"}
14504
14505# If no C compiler flags were specified, use CFLAGS.
14506LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14507
14508# Allow CC to be a program name with arguments.
14509compiler=$CC
14510
14511
14512  # save warnings/boilerplate of simple test code
14513  ac_outfile=conftest.$ac_objext
14514echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14515eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14516_lt_compiler_boilerplate=`cat conftest.err`
14517$RM conftest*
14518
14519  ac_outfile=conftest.$ac_objext
14520echo "$lt_simple_link_test_code" >conftest.$ac_ext
14521eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14522_lt_linker_boilerplate=`cat conftest.err`
14523$RM -r conftest*
14524
14525
14526  # Allow CC to be a program name with arguments.
14527  lt_save_CC=$CC
14528  lt_save_CFLAGS=$CFLAGS
14529  lt_save_LD=$LD
14530  lt_save_GCC=$GCC
14531  GCC=$GXX
14532  lt_save_with_gnu_ld=$with_gnu_ld
14533  lt_save_path_LD=$lt_cv_path_LD
14534  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14535    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14536  else
14537    $as_unset lt_cv_prog_gnu_ld
14538  fi
14539  if test -n "${lt_cv_path_LDCXX+set}"; then
14540    lt_cv_path_LD=$lt_cv_path_LDCXX
14541  else
14542    $as_unset lt_cv_path_LD
14543  fi
14544  test -z "${LDCXX+set}" || LD=$LDCXX
14545  CC=${CXX-"c++"}
14546  CFLAGS=$CXXFLAGS
14547  compiler=$CC
14548  compiler_CXX=$CC
14549  for cc_temp in $compiler""; do
14550  case $cc_temp in
14551    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14552    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14553    \-*) ;;
14554    *) break;;
14555  esac
14556done
14557cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14558
14559
14560  if test -n "$compiler"; then
14561    # We don't want -fno-exception when compiling C++ code, so set the
14562    # no_builtin_flag separately
14563    if test "$GXX" = yes; then
14564      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14565    else
14566      lt_prog_compiler_no_builtin_flag_CXX=
14567    fi
14568
14569    if test "$GXX" = yes; then
14570      # Set up default GNU C++ configuration
14571
14572
14573
14574# Check whether --with-gnu-ld was given.
14575if test "${with_gnu_ld+set}" = set; then :
14576  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14577else
14578  with_gnu_ld=no
14579fi
14580
14581ac_prog=ld
14582if test "$GCC" = yes; then
14583  # Check if gcc -print-prog-name=ld gives a path.
14584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14585$as_echo_n "checking for ld used by $CC... " >&6; }
14586  case $host in
14587  *-*-mingw*)
14588    # gcc leaves a trailing carriage return which upsets mingw
14589    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14590  *)
14591    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14592  esac
14593  case $ac_prog in
14594    # Accept absolute paths.
14595    [\\/]* | ?:[\\/]*)
14596      re_direlt='/[^/][^/]*/\.\./'
14597      # Canonicalize the pathname of ld
14598      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14599      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14600	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14601      done
14602      test -z "$LD" && LD="$ac_prog"
14603      ;;
14604  "")
14605    # If it fails, then pretend we aren't using GCC.
14606    ac_prog=ld
14607    ;;
14608  *)
14609    # If it is relative, then search for the first ld in PATH.
14610    with_gnu_ld=unknown
14611    ;;
14612  esac
14613elif test "$with_gnu_ld" = yes; then
14614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14615$as_echo_n "checking for GNU ld... " >&6; }
14616else
14617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14618$as_echo_n "checking for non-GNU ld... " >&6; }
14619fi
14620if ${lt_cv_path_LD+:} false; then :
14621  $as_echo_n "(cached) " >&6
14622else
14623  if test -z "$LD"; then
14624  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625  for ac_dir in $PATH; do
14626    IFS="$lt_save_ifs"
14627    test -z "$ac_dir" && ac_dir=.
14628    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14629      lt_cv_path_LD="$ac_dir/$ac_prog"
14630      # Check to see if the program is GNU ld.  I'd rather use --version,
14631      # but apparently some variants of GNU ld only accept -v.
14632      # Break only if it was the GNU/non-GNU ld that we prefer.
14633      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14634      *GNU* | *'with BFD'*)
14635	test "$with_gnu_ld" != no && break
14636	;;
14637      *)
14638	test "$with_gnu_ld" != yes && break
14639	;;
14640      esac
14641    fi
14642  done
14643  IFS="$lt_save_ifs"
14644else
14645  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14646fi
14647fi
14648
14649LD="$lt_cv_path_LD"
14650if test -n "$LD"; then
14651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14652$as_echo "$LD" >&6; }
14653else
14654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655$as_echo "no" >&6; }
14656fi
14657test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14659$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14660if ${lt_cv_prog_gnu_ld+:} false; then :
14661  $as_echo_n "(cached) " >&6
14662else
14663  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14664case `$LD -v 2>&1 </dev/null` in
14665*GNU* | *'with BFD'*)
14666  lt_cv_prog_gnu_ld=yes
14667  ;;
14668*)
14669  lt_cv_prog_gnu_ld=no
14670  ;;
14671esac
14672fi
14673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14674$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14675with_gnu_ld=$lt_cv_prog_gnu_ld
14676
14677
14678
14679
14680
14681
14682
14683      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14684      # archiving commands below assume that GNU ld is being used.
14685      if test "$with_gnu_ld" = yes; then
14686        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14687        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14688
14689        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14690        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14691
14692        # If archive_cmds runs LD, not CC, wlarc should be empty
14693        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14694        #     investigate it a little bit more. (MM)
14695        wlarc='${wl}'
14696
14697        # ancient GNU ld didn't support --whole-archive et. al.
14698        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14699	  $GREP 'no-whole-archive' > /dev/null; then
14700          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14701        else
14702          whole_archive_flag_spec_CXX=
14703        fi
14704      else
14705        with_gnu_ld=no
14706        wlarc=
14707
14708        # A generic and very simple default shared library creation
14709        # command for GNU C++ for the case where it uses the native
14710        # linker, instead of GNU ld.  If possible, this setting should
14711        # overridden to take advantage of the native linker features on
14712        # the platform it is being used on.
14713        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14714      fi
14715
14716      # Commands to make compiler produce verbose output that lists
14717      # what "hidden" libraries, object files and flags are used when
14718      # linking a shared library.
14719      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14720
14721    else
14722      GXX=no
14723      with_gnu_ld=no
14724      wlarc=
14725    fi
14726
14727    # PORTME: fill in a description of your system's C++ link characteristics
14728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14729$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14730    ld_shlibs_CXX=yes
14731    case $host_os in
14732      aix3*)
14733        # FIXME: insert proper C++ library support
14734        ld_shlibs_CXX=no
14735        ;;
14736      aix[4-9]*)
14737        if test "$host_cpu" = ia64; then
14738          # On IA64, the linker does run time linking by default, so we don't
14739          # have to do anything special.
14740          aix_use_runtimelinking=no
14741          exp_sym_flag='-Bexport'
14742          no_entry_flag=""
14743        else
14744          aix_use_runtimelinking=no
14745
14746          # Test if we are trying to use run time linking or normal
14747          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14748          # need to do runtime linking.
14749          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14750	    for ld_flag in $LDFLAGS; do
14751	      case $ld_flag in
14752	      *-brtl*)
14753	        aix_use_runtimelinking=yes
14754	        break
14755	        ;;
14756	      esac
14757	    done
14758	    ;;
14759          esac
14760
14761          exp_sym_flag='-bexport'
14762          no_entry_flag='-bnoentry'
14763        fi
14764
14765        # When large executables or shared objects are built, AIX ld can
14766        # have problems creating the table of contents.  If linking a library
14767        # or program results in "error TOC overflow" add -mminimal-toc to
14768        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14769        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14770
14771        archive_cmds_CXX=''
14772        hardcode_direct_CXX=yes
14773        hardcode_direct_absolute_CXX=yes
14774        hardcode_libdir_separator_CXX=':'
14775        link_all_deplibs_CXX=yes
14776        file_list_spec_CXX='${wl}-f,'
14777
14778        if test "$GXX" = yes; then
14779          case $host_os in aix4.[012]|aix4.[012].*)
14780          # We only want to do this on AIX 4.2 and lower, the check
14781          # below for broken collect2 doesn't work under 4.3+
14782	  collect2name=`${CC} -print-prog-name=collect2`
14783	  if test -f "$collect2name" &&
14784	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14785	  then
14786	    # We have reworked collect2
14787	    :
14788	  else
14789	    # We have old collect2
14790	    hardcode_direct_CXX=unsupported
14791	    # It fails to find uninstalled libraries when the uninstalled
14792	    # path is not listed in the libpath.  Setting hardcode_minus_L
14793	    # to unsupported forces relinking
14794	    hardcode_minus_L_CXX=yes
14795	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14796	    hardcode_libdir_separator_CXX=
14797	  fi
14798          esac
14799          shared_flag='-shared'
14800	  if test "$aix_use_runtimelinking" = yes; then
14801	    shared_flag="$shared_flag "'${wl}-G'
14802	  fi
14803        else
14804          # not using gcc
14805          if test "$host_cpu" = ia64; then
14806	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14807	  # chokes on -Wl,-G. The following line is correct:
14808	  shared_flag='-G'
14809          else
14810	    if test "$aix_use_runtimelinking" = yes; then
14811	      shared_flag='${wl}-G'
14812	    else
14813	      shared_flag='${wl}-bM:SRE'
14814	    fi
14815          fi
14816        fi
14817
14818        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14819        # It seems that -bexpall does not export symbols beginning with
14820        # underscore (_), so it is better to generate a list of symbols to
14821	# export.
14822        always_export_symbols_CXX=yes
14823        if test "$aix_use_runtimelinking" = yes; then
14824          # Warning - without using the other runtime loading flags (-brtl),
14825          # -berok will link without error, but may produce a broken library.
14826          allow_undefined_flag_CXX='-berok'
14827          # Determine the default libpath from the value encoded in an empty
14828          # executable.
14829          if test "${lt_cv_aix_libpath+set}" = set; then
14830  aix_libpath=$lt_cv_aix_libpath
14831else
14832  if ${lt_cv_aix_libpath__CXX+:} false; then :
14833  $as_echo_n "(cached) " >&6
14834else
14835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837
14838int
14839main ()
14840{
14841
14842  ;
14843  return 0;
14844}
14845_ACEOF
14846if ac_fn_cxx_try_link "$LINENO"; then :
14847
14848  lt_aix_libpath_sed='
14849      /Import File Strings/,/^$/ {
14850	  /^0/ {
14851	      s/^0  *\([^ ]*\) *$/\1/
14852	      p
14853	  }
14854      }'
14855  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14856  # Check for a 64-bit object if we didn't find anything.
14857  if test -z "$lt_cv_aix_libpath__CXX"; then
14858    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14859  fi
14860fi
14861rm -f core conftest.err conftest.$ac_objext \
14862    conftest$ac_exeext conftest.$ac_ext
14863  if test -z "$lt_cv_aix_libpath__CXX"; then
14864    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14865  fi
14866
14867fi
14868
14869  aix_libpath=$lt_cv_aix_libpath__CXX
14870fi
14871
14872          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14873
14874          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14875        else
14876          if test "$host_cpu" = ia64; then
14877	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14878	    allow_undefined_flag_CXX="-z nodefs"
14879	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14880          else
14881	    # Determine the default libpath from the value encoded in an
14882	    # empty executable.
14883	    if test "${lt_cv_aix_libpath+set}" = set; then
14884  aix_libpath=$lt_cv_aix_libpath
14885else
14886  if ${lt_cv_aix_libpath__CXX+:} false; then :
14887  $as_echo_n "(cached) " >&6
14888else
14889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890/* end confdefs.h.  */
14891
14892int
14893main ()
14894{
14895
14896  ;
14897  return 0;
14898}
14899_ACEOF
14900if ac_fn_cxx_try_link "$LINENO"; then :
14901
14902  lt_aix_libpath_sed='
14903      /Import File Strings/,/^$/ {
14904	  /^0/ {
14905	      s/^0  *\([^ ]*\) *$/\1/
14906	      p
14907	  }
14908      }'
14909  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14910  # Check for a 64-bit object if we didn't find anything.
14911  if test -z "$lt_cv_aix_libpath__CXX"; then
14912    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14913  fi
14914fi
14915rm -f core conftest.err conftest.$ac_objext \
14916    conftest$ac_exeext conftest.$ac_ext
14917  if test -z "$lt_cv_aix_libpath__CXX"; then
14918    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14919  fi
14920
14921fi
14922
14923  aix_libpath=$lt_cv_aix_libpath__CXX
14924fi
14925
14926	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14927	    # Warning - without using the other run time loading flags,
14928	    # -berok will link without error, but may produce a broken library.
14929	    no_undefined_flag_CXX=' ${wl}-bernotok'
14930	    allow_undefined_flag_CXX=' ${wl}-berok'
14931	    if test "$with_gnu_ld" = yes; then
14932	      # We only use this code for GNU lds that support --whole-archive.
14933	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14934	    else
14935	      # Exported symbols can be pulled into shared objects from archives
14936	      whole_archive_flag_spec_CXX='$convenience'
14937	    fi
14938	    archive_cmds_need_lc_CXX=yes
14939	    # This is similar to how AIX traditionally builds its shared
14940	    # libraries.
14941	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14942          fi
14943        fi
14944        ;;
14945
14946      beos*)
14947	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14948	  allow_undefined_flag_CXX=unsupported
14949	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14950	  # support --undefined.  This deserves some investigation.  FIXME
14951	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952	else
14953	  ld_shlibs_CXX=no
14954	fi
14955	;;
14956
14957      chorus*)
14958        case $cc_basename in
14959          *)
14960	  # FIXME: insert proper C++ library support
14961	  ld_shlibs_CXX=no
14962	  ;;
14963        esac
14964        ;;
14965
14966      cygwin* | mingw* | pw32* | cegcc*)
14967	case $GXX,$cc_basename in
14968	,cl* | no,cl*)
14969	  # Native MSVC
14970	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14971	  # no search path for DLLs.
14972	  hardcode_libdir_flag_spec_CXX=' '
14973	  allow_undefined_flag_CXX=unsupported
14974	  always_export_symbols_CXX=yes
14975	  file_list_spec_CXX='@'
14976	  # Tell ltmain to make .lib files, not .a files.
14977	  libext=lib
14978	  # Tell ltmain to make .dll files, not .so files.
14979	  shrext_cmds=".dll"
14980	  # FIXME: Setting linknames here is a bad hack.
14981	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14982	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14984	    else
14985	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14986	    fi~
14987	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14988	    linknames='
14989	  # The linker will not automatically build a static lib if we build a DLL.
14990	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14991	  enable_shared_with_static_runtimes_CXX=yes
14992	  # Don't use ranlib
14993	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14994	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14995	    lt_tool_outputfile="@TOOL_OUTPUT@"~
14996	    case $lt_outputfile in
14997	      *.exe|*.EXE) ;;
14998	      *)
14999		lt_outputfile="$lt_outputfile.exe"
15000		lt_tool_outputfile="$lt_tool_outputfile.exe"
15001		;;
15002	    esac~
15003	    func_to_tool_file "$lt_outputfile"~
15004	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15005	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15006	      $RM "$lt_outputfile.manifest";
15007	    fi'
15008	  ;;
15009	*)
15010	  # g++
15011	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15012	  # as there is no search path for DLLs.
15013	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15014	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15015	  allow_undefined_flag_CXX=unsupported
15016	  always_export_symbols_CXX=no
15017	  enable_shared_with_static_runtimes_CXX=yes
15018
15019	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15020	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15021	    # If the export-symbols file already is a .def file (1st line
15022	    # is EXPORTS), use it as is; otherwise, prepend...
15023	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024	      cp $export_symbols $output_objdir/$soname.def;
15025	    else
15026	      echo EXPORTS > $output_objdir/$soname.def;
15027	      cat $export_symbols >> $output_objdir/$soname.def;
15028	    fi~
15029	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030	  else
15031	    ld_shlibs_CXX=no
15032	  fi
15033	  ;;
15034	esac
15035	;;
15036      darwin* | rhapsody*)
15037
15038
15039  archive_cmds_need_lc_CXX=no
15040  hardcode_direct_CXX=no
15041  hardcode_automatic_CXX=yes
15042  hardcode_shlibpath_var_CXX=unsupported
15043  if test "$lt_cv_ld_force_load" = "yes"; then
15044    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15045
15046  else
15047    whole_archive_flag_spec_CXX=''
15048  fi
15049  link_all_deplibs_CXX=yes
15050  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15051  case $cc_basename in
15052     ifort*) _lt_dar_can_shared=yes ;;
15053     *) _lt_dar_can_shared=$GCC ;;
15054  esac
15055  if test "$_lt_dar_can_shared" = "yes"; then
15056    output_verbose_link_cmd=func_echo_all
15057    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15058    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15059    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15060    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15061       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15062      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15063      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15064    fi
15065
15066  else
15067  ld_shlibs_CXX=no
15068  fi
15069
15070	;;
15071
15072      dgux*)
15073        case $cc_basename in
15074          ec++*)
15075	    # FIXME: insert proper C++ library support
15076	    ld_shlibs_CXX=no
15077	    ;;
15078          ghcx*)
15079	    # Green Hills C++ Compiler
15080	    # FIXME: insert proper C++ library support
15081	    ld_shlibs_CXX=no
15082	    ;;
15083          *)
15084	    # FIXME: insert proper C++ library support
15085	    ld_shlibs_CXX=no
15086	    ;;
15087        esac
15088        ;;
15089
15090      freebsd2.*)
15091        # C++ shared libraries reported to be fairly broken before
15092	# switch to ELF
15093        ld_shlibs_CXX=no
15094        ;;
15095
15096      freebsd-elf*)
15097        archive_cmds_need_lc_CXX=no
15098        ;;
15099
15100      freebsd* | dragonfly*)
15101        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15102        # conventions
15103        ld_shlibs_CXX=yes
15104        ;;
15105
15106      gnu*)
15107        ;;
15108
15109      haiku*)
15110        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111        link_all_deplibs_CXX=yes
15112        ;;
15113
15114      hpux9*)
15115        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15116        hardcode_libdir_separator_CXX=:
15117        export_dynamic_flag_spec_CXX='${wl}-E'
15118        hardcode_direct_CXX=yes
15119        hardcode_minus_L_CXX=yes # Not in the search PATH,
15120				             # but as the default
15121				             # location of the library.
15122
15123        case $cc_basename in
15124          CC*)
15125            # FIXME: insert proper C++ library support
15126            ld_shlibs_CXX=no
15127            ;;
15128          aCC*)
15129            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15130            # Commands to make compiler produce verbose output that lists
15131            # what "hidden" libraries, object files and flags are used when
15132            # linking a shared library.
15133            #
15134            # There doesn't appear to be a way to prevent this compiler from
15135            # explicitly linking system object files so we need to strip them
15136            # from the output so that they don't get included in the library
15137            # dependencies.
15138            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15139            ;;
15140          *)
15141            if test "$GXX" = yes; then
15142              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15143            else
15144              # FIXME: insert proper C++ library support
15145              ld_shlibs_CXX=no
15146            fi
15147            ;;
15148        esac
15149        ;;
15150
15151      hpux10*|hpux11*)
15152        if test $with_gnu_ld = no; then
15153	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15154	  hardcode_libdir_separator_CXX=:
15155
15156          case $host_cpu in
15157            hppa*64*|ia64*)
15158              ;;
15159            *)
15160	      export_dynamic_flag_spec_CXX='${wl}-E'
15161              ;;
15162          esac
15163        fi
15164        case $host_cpu in
15165          hppa*64*|ia64*)
15166            hardcode_direct_CXX=no
15167            hardcode_shlibpath_var_CXX=no
15168            ;;
15169          *)
15170            hardcode_direct_CXX=yes
15171            hardcode_direct_absolute_CXX=yes
15172            hardcode_minus_L_CXX=yes # Not in the search PATH,
15173					         # but as the default
15174					         # location of the library.
15175            ;;
15176        esac
15177
15178        case $cc_basename in
15179          CC*)
15180	    # FIXME: insert proper C++ library support
15181	    ld_shlibs_CXX=no
15182	    ;;
15183          aCC*)
15184	    case $host_cpu in
15185	      hppa*64*)
15186	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15187	        ;;
15188	      ia64*)
15189	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15190	        ;;
15191	      *)
15192	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15193	        ;;
15194	    esac
15195	    # Commands to make compiler produce verbose output that lists
15196	    # what "hidden" libraries, object files and flags are used when
15197	    # linking a shared library.
15198	    #
15199	    # There doesn't appear to be a way to prevent this compiler from
15200	    # explicitly linking system object files so we need to strip them
15201	    # from the output so that they don't get included in the library
15202	    # dependencies.
15203	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15204	    ;;
15205          *)
15206	    if test "$GXX" = yes; then
15207	      if test $with_gnu_ld = no; then
15208	        case $host_cpu in
15209	          hppa*64*)
15210	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15211	            ;;
15212	          ia64*)
15213	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15214	            ;;
15215	          *)
15216	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15217	            ;;
15218	        esac
15219	      fi
15220	    else
15221	      # FIXME: insert proper C++ library support
15222	      ld_shlibs_CXX=no
15223	    fi
15224	    ;;
15225        esac
15226        ;;
15227
15228      interix[3-9]*)
15229	hardcode_direct_CXX=no
15230	hardcode_shlibpath_var_CXX=no
15231	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15232	export_dynamic_flag_spec_CXX='${wl}-E'
15233	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234	# Instead, shared libraries are loaded at an image base (0x10000000 by
15235	# default) and relocated if they conflict, which is a slow very memory
15236	# consuming and fragmenting process.  To avoid this, we pick a random,
15237	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15239	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15240	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15241	;;
15242      irix5* | irix6*)
15243        case $cc_basename in
15244          CC*)
15245	    # SGI C++
15246	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15247
15248	    # Archives containing C++ object files must be created using
15249	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15250	    # necessary to make sure instantiated templates are included
15251	    # in the archive.
15252	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15253	    ;;
15254          *)
15255	    if test "$GXX" = yes; then
15256	      if test "$with_gnu_ld" = no; then
15257	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15258	      else
15259	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15260	      fi
15261	    fi
15262	    link_all_deplibs_CXX=yes
15263	    ;;
15264        esac
15265        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15266        hardcode_libdir_separator_CXX=:
15267        inherit_rpath_CXX=yes
15268        ;;
15269
15270      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15271        case $cc_basename in
15272          KCC*)
15273	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15274
15275	    # KCC will only create a shared library if the output file
15276	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15277	    # to its proper name (with version) after linking.
15278	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15279	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15280	    # Commands to make compiler produce verbose output that lists
15281	    # what "hidden" libraries, object files and flags are used when
15282	    # linking a shared library.
15283	    #
15284	    # There doesn't appear to be a way to prevent this compiler from
15285	    # explicitly linking system object files so we need to strip them
15286	    # from the output so that they don't get included in the library
15287	    # dependencies.
15288	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15289
15290	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15291	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15292
15293	    # Archives containing C++ object files must be created using
15294	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15295	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15296	    ;;
15297	  icpc* | ecpc* )
15298	    # Intel C++
15299	    with_gnu_ld=yes
15300	    # version 8.0 and above of icpc choke on multiply defined symbols
15301	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15302	    # earlier do not add the objects themselves.
15303	    case `$CC -V 2>&1` in
15304	      *"Version 7."*)
15305	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15306		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15307		;;
15308	      *)  # Version 8.0 or newer
15309	        tmp_idyn=
15310	        case $host_cpu in
15311		  ia64*) tmp_idyn=' -i_dynamic';;
15312		esac
15313	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15315		;;
15316	    esac
15317	    archive_cmds_need_lc_CXX=no
15318	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15319	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15320	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15321	    ;;
15322          pgCC* | pgcpp*)
15323            # Portland Group C++ compiler
15324	    case `$CC -V` in
15325	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15326	      prelink_cmds_CXX='tpldir=Template.dir~
15327		rm -rf $tpldir~
15328		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15329		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15330	      old_archive_cmds_CXX='tpldir=Template.dir~
15331		rm -rf $tpldir~
15332		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15333		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15334		$RANLIB $oldlib'
15335	      archive_cmds_CXX='tpldir=Template.dir~
15336		rm -rf $tpldir~
15337		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15338		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15339	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15340		rm -rf $tpldir~
15341		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15342		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15343	      ;;
15344	    *) # Version 6 and above use weak symbols
15345	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15346	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15347	      ;;
15348	    esac
15349
15350	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15351	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15352	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15353            ;;
15354	  cxx*)
15355	    # Compaq C++
15356	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15357	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15358
15359	    runpath_var=LD_RUN_PATH
15360	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15361	    hardcode_libdir_separator_CXX=:
15362
15363	    # Commands to make compiler produce verbose output that lists
15364	    # what "hidden" libraries, object files and flags are used when
15365	    # linking a shared library.
15366	    #
15367	    # There doesn't appear to be a way to prevent this compiler from
15368	    # explicitly linking system object files so we need to strip them
15369	    # from the output so that they don't get included in the library
15370	    # dependencies.
15371	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15372	    ;;
15373	  xl* | mpixl* | bgxl*)
15374	    # IBM XL 8.0 on PPC, with GNU ld
15375	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15376	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15377	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378	    if test "x$supports_anon_versioning" = xyes; then
15379	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15380		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15381		echo "local: *; };" >> $output_objdir/$libname.ver~
15382		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15383	    fi
15384	    ;;
15385	  *)
15386	    case `$CC -V 2>&1 | sed 5q` in
15387	    *Sun\ C*)
15388	      # Sun C++ 5.9
15389	      no_undefined_flag_CXX=' -zdefs'
15390	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15391	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15392	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15393	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15394	      compiler_needs_object_CXX=yes
15395
15396	      # Not sure whether something based on
15397	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15398	      # would be better.
15399	      output_verbose_link_cmd='func_echo_all'
15400
15401	      # Archives containing C++ object files must be created using
15402	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15403	      # necessary to make sure instantiated templates are included
15404	      # in the archive.
15405	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15406	      ;;
15407	    esac
15408	    ;;
15409	esac
15410	;;
15411
15412      lynxos*)
15413        # FIXME: insert proper C++ library support
15414	ld_shlibs_CXX=no
15415	;;
15416
15417      m88k*)
15418        # FIXME: insert proper C++ library support
15419        ld_shlibs_CXX=no
15420	;;
15421
15422      mvs*)
15423        case $cc_basename in
15424          cxx*)
15425	    # FIXME: insert proper C++ library support
15426	    ld_shlibs_CXX=no
15427	    ;;
15428	  *)
15429	    # FIXME: insert proper C++ library support
15430	    ld_shlibs_CXX=no
15431	    ;;
15432	esac
15433	;;
15434
15435      netbsd*)
15436        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15437	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15438	  wlarc=
15439	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15440	  hardcode_direct_CXX=yes
15441	  hardcode_shlibpath_var_CXX=no
15442	fi
15443	# Workaround some broken pre-1.5 toolchains
15444	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15445	;;
15446
15447      *nto* | *qnx*)
15448        ld_shlibs_CXX=yes
15449	;;
15450
15451      openbsd2*)
15452        # C++ shared libraries are fairly broken
15453	ld_shlibs_CXX=no
15454	;;
15455
15456      openbsd*)
15457	if test -f /usr/libexec/ld.so; then
15458	  hardcode_direct_CXX=yes
15459	  hardcode_shlibpath_var_CXX=no
15460	  hardcode_direct_absolute_CXX=yes
15461	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15462	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15463	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15464	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15465	    export_dynamic_flag_spec_CXX='${wl}-E'
15466	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15467	  fi
15468	  output_verbose_link_cmd=func_echo_all
15469	else
15470	  ld_shlibs_CXX=no
15471	fi
15472	;;
15473
15474      osf3* | osf4* | osf5*)
15475        case $cc_basename in
15476          KCC*)
15477	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15478
15479	    # KCC will only create a shared library if the output file
15480	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15481	    # to its proper name (with version) after linking.
15482	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15483
15484	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15485	    hardcode_libdir_separator_CXX=:
15486
15487	    # Archives containing C++ object files must be created using
15488	    # the KAI C++ compiler.
15489	    case $host in
15490	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15491	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15492	    esac
15493	    ;;
15494          RCC*)
15495	    # Rational C++ 2.4.1
15496	    # FIXME: insert proper C++ library support
15497	    ld_shlibs_CXX=no
15498	    ;;
15499          cxx*)
15500	    case $host in
15501	      osf3*)
15502	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15503	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15504	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15505		;;
15506	      *)
15507	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15508	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15509	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15510	          echo "-hidden">> $lib.exp~
15511	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
15512	          $RM $lib.exp'
15513	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15514		;;
15515	    esac
15516
15517	    hardcode_libdir_separator_CXX=:
15518
15519	    # Commands to make compiler produce verbose output that lists
15520	    # what "hidden" libraries, object files and flags are used when
15521	    # linking a shared library.
15522	    #
15523	    # There doesn't appear to be a way to prevent this compiler from
15524	    # explicitly linking system object files so we need to strip them
15525	    # from the output so that they don't get included in the library
15526	    # dependencies.
15527	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15528	    ;;
15529	  *)
15530	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15531	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15532	      case $host in
15533	        osf3*)
15534	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15535		  ;;
15536	        *)
15537	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15538		  ;;
15539	      esac
15540
15541	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15542	      hardcode_libdir_separator_CXX=:
15543
15544	      # Commands to make compiler produce verbose output that lists
15545	      # what "hidden" libraries, object files and flags are used when
15546	      # linking a shared library.
15547	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15548
15549	    else
15550	      # FIXME: insert proper C++ library support
15551	      ld_shlibs_CXX=no
15552	    fi
15553	    ;;
15554        esac
15555        ;;
15556
15557      psos*)
15558        # FIXME: insert proper C++ library support
15559        ld_shlibs_CXX=no
15560        ;;
15561
15562      sunos4*)
15563        case $cc_basename in
15564          CC*)
15565	    # Sun C++ 4.x
15566	    # FIXME: insert proper C++ library support
15567	    ld_shlibs_CXX=no
15568	    ;;
15569          lcc*)
15570	    # Lucid
15571	    # FIXME: insert proper C++ library support
15572	    ld_shlibs_CXX=no
15573	    ;;
15574          *)
15575	    # FIXME: insert proper C++ library support
15576	    ld_shlibs_CXX=no
15577	    ;;
15578        esac
15579        ;;
15580
15581      solaris*)
15582        case $cc_basename in
15583          CC* | sunCC*)
15584	    # Sun C++ 4.2, 5.x and Centerline C++
15585            archive_cmds_need_lc_CXX=yes
15586	    no_undefined_flag_CXX=' -zdefs'
15587	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15588	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15589	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15590
15591	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15592	    hardcode_shlibpath_var_CXX=no
15593	    case $host_os in
15594	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15595	      *)
15596		# The compiler driver will combine and reorder linker options,
15597		# but understands `-z linker_flag'.
15598	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15599		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15600	        ;;
15601	    esac
15602	    link_all_deplibs_CXX=yes
15603
15604	    output_verbose_link_cmd='func_echo_all'
15605
15606	    # Archives containing C++ object files must be created using
15607	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15608	    # necessary to make sure instantiated templates are included
15609	    # in the archive.
15610	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15611	    ;;
15612          gcx*)
15613	    # Green Hills C++ Compiler
15614	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15615
15616	    # The C++ compiler must be used to create the archive.
15617	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15618	    ;;
15619          *)
15620	    # GNU C++ compiler with Solaris linker
15621	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15622	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15623	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15624	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15625	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15626		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15627
15628	        # Commands to make compiler produce verbose output that lists
15629	        # what "hidden" libraries, object files and flags are used when
15630	        # linking a shared library.
15631	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15632	      else
15633	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15634	        # platform.
15635	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15636	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15637		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15638
15639	        # Commands to make compiler produce verbose output that lists
15640	        # what "hidden" libraries, object files and flags are used when
15641	        # linking a shared library.
15642	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15643	      fi
15644
15645	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15646	      case $host_os in
15647		solaris2.[0-5] | solaris2.[0-5].*) ;;
15648		*)
15649		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15650		  ;;
15651	      esac
15652	    fi
15653	    ;;
15654        esac
15655        ;;
15656
15657    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15658      no_undefined_flag_CXX='${wl}-z,text'
15659      archive_cmds_need_lc_CXX=no
15660      hardcode_shlibpath_var_CXX=no
15661      runpath_var='LD_RUN_PATH'
15662
15663      case $cc_basename in
15664        CC*)
15665	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667	  ;;
15668	*)
15669	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15671	  ;;
15672      esac
15673      ;;
15674
15675      sysv5* | sco3.2v5* | sco5v6*)
15676	# Note: We can NOT use -z defs as we might desire, because we do not
15677	# link with -lc, and that would cause any symbols used from libc to
15678	# always be unresolved, which means just about no library would
15679	# ever link correctly.  If we're not using GNU ld we use -z text
15680	# though, which does catch some bad symbols but isn't as heavy-handed
15681	# as -z defs.
15682	no_undefined_flag_CXX='${wl}-z,text'
15683	allow_undefined_flag_CXX='${wl}-z,nodefs'
15684	archive_cmds_need_lc_CXX=no
15685	hardcode_shlibpath_var_CXX=no
15686	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15687	hardcode_libdir_separator_CXX=':'
15688	link_all_deplibs_CXX=yes
15689	export_dynamic_flag_spec_CXX='${wl}-Bexport'
15690	runpath_var='LD_RUN_PATH'
15691
15692	case $cc_basename in
15693          CC*)
15694	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15697	      '"$old_archive_cmds_CXX"
15698	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15699	      '"$reload_cmds_CXX"
15700	    ;;
15701	  *)
15702	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15704	    ;;
15705	esac
15706      ;;
15707
15708      tandem*)
15709        case $cc_basename in
15710          NCC*)
15711	    # NonStop-UX NCC 3.20
15712	    # FIXME: insert proper C++ library support
15713	    ld_shlibs_CXX=no
15714	    ;;
15715          *)
15716	    # FIXME: insert proper C++ library support
15717	    ld_shlibs_CXX=no
15718	    ;;
15719        esac
15720        ;;
15721
15722      vxworks*)
15723        # FIXME: insert proper C++ library support
15724        ld_shlibs_CXX=no
15725        ;;
15726
15727      *)
15728        # FIXME: insert proper C++ library support
15729        ld_shlibs_CXX=no
15730        ;;
15731    esac
15732
15733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15734$as_echo "$ld_shlibs_CXX" >&6; }
15735    test "$ld_shlibs_CXX" = no && can_build_shared=no
15736
15737    GCC_CXX="$GXX"
15738    LD_CXX="$LD"
15739
15740    ## CAVEAT EMPTOR:
15741    ## There is no encapsulation within the following macros, do not change
15742    ## the running order or otherwise move them around unless you know exactly
15743    ## what you are doing...
15744    # Dependencies to place before and after the object being linked:
15745predep_objects_CXX=
15746postdep_objects_CXX=
15747predeps_CXX=
15748postdeps_CXX=
15749compiler_lib_search_path_CXX=
15750
15751cat > conftest.$ac_ext <<_LT_EOF
15752class Foo
15753{
15754public:
15755  Foo (void) { a = 0; }
15756private:
15757  int a;
15758};
15759_LT_EOF
15760
15761
15762_lt_libdeps_save_CFLAGS=$CFLAGS
15763case "$CC $CFLAGS " in #(
15764*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15765*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15766*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15767esac
15768
15769if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15770  (eval $ac_compile) 2>&5
15771  ac_status=$?
15772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773  test $ac_status = 0; }; then
15774  # Parse the compiler output and extract the necessary
15775  # objects, libraries and library flags.
15776
15777  # Sentinel used to keep track of whether or not we are before
15778  # the conftest object file.
15779  pre_test_object_deps_done=no
15780
15781  for p in `eval "$output_verbose_link_cmd"`; do
15782    case ${prev}${p} in
15783
15784    -L* | -R* | -l*)
15785       # Some compilers place space between "-{L,R}" and the path.
15786       # Remove the space.
15787       if test $p = "-L" ||
15788          test $p = "-R"; then
15789	 prev=$p
15790	 continue
15791       fi
15792
15793       # Expand the sysroot to ease extracting the directories later.
15794       if test -z "$prev"; then
15795         case $p in
15796         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15797         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15798         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15799         esac
15800       fi
15801       case $p in
15802       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15803       esac
15804       if test "$pre_test_object_deps_done" = no; then
15805	 case ${prev} in
15806	 -L | -R)
15807	   # Internal compiler library paths should come after those
15808	   # provided the user.  The postdeps already come after the
15809	   # user supplied libs so there is no need to process them.
15810	   if test -z "$compiler_lib_search_path_CXX"; then
15811	     compiler_lib_search_path_CXX="${prev}${p}"
15812	   else
15813	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15814	   fi
15815	   ;;
15816	 # The "-l" case would never come before the object being
15817	 # linked, so don't bother handling this case.
15818	 esac
15819       else
15820	 if test -z "$postdeps_CXX"; then
15821	   postdeps_CXX="${prev}${p}"
15822	 else
15823	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15824	 fi
15825       fi
15826       prev=
15827       ;;
15828
15829    *.lto.$objext) ;; # Ignore GCC LTO objects
15830    *.$objext)
15831       # This assumes that the test object file only shows up
15832       # once in the compiler output.
15833       if test "$p" = "conftest.$objext"; then
15834	 pre_test_object_deps_done=yes
15835	 continue
15836       fi
15837
15838       if test "$pre_test_object_deps_done" = no; then
15839	 if test -z "$predep_objects_CXX"; then
15840	   predep_objects_CXX="$p"
15841	 else
15842	   predep_objects_CXX="$predep_objects_CXX $p"
15843	 fi
15844       else
15845	 if test -z "$postdep_objects_CXX"; then
15846	   postdep_objects_CXX="$p"
15847	 else
15848	   postdep_objects_CXX="$postdep_objects_CXX $p"
15849	 fi
15850       fi
15851       ;;
15852
15853    *) ;; # Ignore the rest.
15854
15855    esac
15856  done
15857
15858  # Clean up.
15859  rm -f a.out a.exe
15860else
15861  echo "libtool.m4: error: problem compiling CXX test program"
15862fi
15863
15864$RM -f confest.$objext
15865CFLAGS=$_lt_libdeps_save_CFLAGS
15866
15867# PORTME: override above test on systems where it is broken
15868case $host_os in
15869interix[3-9]*)
15870  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15871  # hack all around it, let's just trust "g++" to DTRT.
15872  predep_objects_CXX=
15873  postdep_objects_CXX=
15874  postdeps_CXX=
15875  ;;
15876
15877linux*)
15878  case `$CC -V 2>&1 | sed 5q` in
15879  *Sun\ C*)
15880    # Sun C++ 5.9
15881
15882    # The more standards-conforming stlport4 library is
15883    # incompatible with the Cstd library. Avoid specifying
15884    # it if it's in CXXFLAGS. Ignore libCrun as
15885    # -library=stlport4 depends on it.
15886    case " $CXX $CXXFLAGS " in
15887    *" -library=stlport4 "*)
15888      solaris_use_stlport4=yes
15889      ;;
15890    esac
15891
15892    if test "$solaris_use_stlport4" != yes; then
15893      postdeps_CXX='-library=Cstd -library=Crun'
15894    fi
15895    ;;
15896  esac
15897  ;;
15898
15899solaris*)
15900  case $cc_basename in
15901  CC* | sunCC*)
15902    # The more standards-conforming stlport4 library is
15903    # incompatible with the Cstd library. Avoid specifying
15904    # it if it's in CXXFLAGS. Ignore libCrun as
15905    # -library=stlport4 depends on it.
15906    case " $CXX $CXXFLAGS " in
15907    *" -library=stlport4 "*)
15908      solaris_use_stlport4=yes
15909      ;;
15910    esac
15911
15912    # Adding this requires a known-good setup of shared libraries for
15913    # Sun compiler versions before 5.6, else PIC objects from an old
15914    # archive will be linked into the output, leading to subtle bugs.
15915    if test "$solaris_use_stlport4" != yes; then
15916      postdeps_CXX='-library=Cstd -library=Crun'
15917    fi
15918    ;;
15919  esac
15920  ;;
15921esac
15922
15923
15924case " $postdeps_CXX " in
15925*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15926esac
15927 compiler_lib_search_dirs_CXX=
15928if test -n "${compiler_lib_search_path_CXX}"; then
15929 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15930fi
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962    lt_prog_compiler_wl_CXX=
15963lt_prog_compiler_pic_CXX=
15964lt_prog_compiler_static_CXX=
15965
15966
15967  # C++ specific cases for pic, static, wl, etc.
15968  if test "$GXX" = yes; then
15969    lt_prog_compiler_wl_CXX='-Wl,'
15970    lt_prog_compiler_static_CXX='-static'
15971
15972    case $host_os in
15973    aix*)
15974      # All AIX code is PIC.
15975      if test "$host_cpu" = ia64; then
15976	# AIX 5 now supports IA64 processor
15977	lt_prog_compiler_static_CXX='-Bstatic'
15978      fi
15979      ;;
15980
15981    amigaos*)
15982      case $host_cpu in
15983      powerpc)
15984            # see comment about AmigaOS4 .so support
15985            lt_prog_compiler_pic_CXX='-fPIC'
15986        ;;
15987      m68k)
15988            # FIXME: we need at least 68020 code to build shared libraries, but
15989            # adding the `-m68020' flag to GCC prevents building anything better,
15990            # like `-m68040'.
15991            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15992        ;;
15993      esac
15994      ;;
15995
15996    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15997      # PIC is the default for these OSes.
15998      ;;
15999    mingw* | cygwin* | os2* | pw32* | cegcc*)
16000      # This hack is so that the source file can tell whether it is being
16001      # built for inclusion in a dll (and should export symbols for example).
16002      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16003      # (--disable-auto-import) libraries
16004      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16005      ;;
16006    darwin* | rhapsody*)
16007      # PIC is the default on this platform
16008      # Common symbols not allowed in MH_DYLIB files
16009      lt_prog_compiler_pic_CXX='-fno-common'
16010      ;;
16011    *djgpp*)
16012      # DJGPP does not support shared libraries at all
16013      lt_prog_compiler_pic_CXX=
16014      ;;
16015    haiku*)
16016      # PIC is the default for Haiku.
16017      # The "-static" flag exists, but is broken.
16018      lt_prog_compiler_static_CXX=
16019      ;;
16020    interix[3-9]*)
16021      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16022      # Instead, we relocate shared libraries at runtime.
16023      ;;
16024    sysv4*MP*)
16025      if test -d /usr/nec; then
16026	lt_prog_compiler_pic_CXX=-Kconform_pic
16027      fi
16028      ;;
16029    hpux*)
16030      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16031      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16032      # sets the default TLS model and affects inlining.
16033      case $host_cpu in
16034      hppa*64*)
16035	;;
16036      *)
16037	lt_prog_compiler_pic_CXX='-fPIC'
16038	;;
16039      esac
16040      ;;
16041    *qnx* | *nto*)
16042      # QNX uses GNU C++, but need to define -shared option too, otherwise
16043      # it will coredump.
16044      lt_prog_compiler_pic_CXX='-fPIC -shared'
16045      ;;
16046    *)
16047      lt_prog_compiler_pic_CXX='-fPIC'
16048      ;;
16049    esac
16050  else
16051    case $host_os in
16052      aix[4-9]*)
16053	# All AIX code is PIC.
16054	if test "$host_cpu" = ia64; then
16055	  # AIX 5 now supports IA64 processor
16056	  lt_prog_compiler_static_CXX='-Bstatic'
16057	else
16058	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16059	fi
16060	;;
16061      chorus*)
16062	case $cc_basename in
16063	cxch68*)
16064	  # Green Hills C++ Compiler
16065	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16066	  ;;
16067	esac
16068	;;
16069      mingw* | cygwin* | os2* | pw32* | cegcc*)
16070	# This hack is so that the source file can tell whether it is being
16071	# built for inclusion in a dll (and should export symbols for example).
16072	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16073	;;
16074      dgux*)
16075	case $cc_basename in
16076	  ec++*)
16077	    lt_prog_compiler_pic_CXX='-KPIC'
16078	    ;;
16079	  ghcx*)
16080	    # Green Hills C++ Compiler
16081	    lt_prog_compiler_pic_CXX='-pic'
16082	    ;;
16083	  *)
16084	    ;;
16085	esac
16086	;;
16087      freebsd* | dragonfly*)
16088	# FreeBSD uses GNU C++
16089	;;
16090      hpux9* | hpux10* | hpux11*)
16091	case $cc_basename in
16092	  CC*)
16093	    lt_prog_compiler_wl_CXX='-Wl,'
16094	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16095	    if test "$host_cpu" != ia64; then
16096	      lt_prog_compiler_pic_CXX='+Z'
16097	    fi
16098	    ;;
16099	  aCC*)
16100	    lt_prog_compiler_wl_CXX='-Wl,'
16101	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16102	    case $host_cpu in
16103	    hppa*64*|ia64*)
16104	      # +Z the default
16105	      ;;
16106	    *)
16107	      lt_prog_compiler_pic_CXX='+Z'
16108	      ;;
16109	    esac
16110	    ;;
16111	  *)
16112	    ;;
16113	esac
16114	;;
16115      interix*)
16116	# This is c89, which is MS Visual C++ (no shared libs)
16117	# Anyone wants to do a port?
16118	;;
16119      irix5* | irix6* | nonstopux*)
16120	case $cc_basename in
16121	  CC*)
16122	    lt_prog_compiler_wl_CXX='-Wl,'
16123	    lt_prog_compiler_static_CXX='-non_shared'
16124	    # CC pic flag -KPIC is the default.
16125	    ;;
16126	  *)
16127	    ;;
16128	esac
16129	;;
16130      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16131	case $cc_basename in
16132	  KCC*)
16133	    # KAI C++ Compiler
16134	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16135	    lt_prog_compiler_pic_CXX='-fPIC'
16136	    ;;
16137	  ecpc* )
16138	    # old Intel C++ for x86_64 which still supported -KPIC.
16139	    lt_prog_compiler_wl_CXX='-Wl,'
16140	    lt_prog_compiler_pic_CXX='-KPIC'
16141	    lt_prog_compiler_static_CXX='-static'
16142	    ;;
16143	  icpc* )
16144	    # Intel C++, used to be incompatible with GCC.
16145	    # ICC 10 doesn't accept -KPIC any more.
16146	    lt_prog_compiler_wl_CXX='-Wl,'
16147	    lt_prog_compiler_pic_CXX='-fPIC'
16148	    lt_prog_compiler_static_CXX='-static'
16149	    ;;
16150	  pgCC* | pgcpp*)
16151	    # Portland Group C++ compiler
16152	    lt_prog_compiler_wl_CXX='-Wl,'
16153	    lt_prog_compiler_pic_CXX='-fpic'
16154	    lt_prog_compiler_static_CXX='-Bstatic'
16155	    ;;
16156	  cxx*)
16157	    # Compaq C++
16158	    # Make sure the PIC flag is empty.  It appears that all Alpha
16159	    # Linux and Compaq Tru64 Unix objects are PIC.
16160	    lt_prog_compiler_pic_CXX=
16161	    lt_prog_compiler_static_CXX='-non_shared'
16162	    ;;
16163	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16164	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16165	    lt_prog_compiler_wl_CXX='-Wl,'
16166	    lt_prog_compiler_pic_CXX='-qpic'
16167	    lt_prog_compiler_static_CXX='-qstaticlink'
16168	    ;;
16169	  *)
16170	    case `$CC -V 2>&1 | sed 5q` in
16171	    *Sun\ C*)
16172	      # Sun C++ 5.9
16173	      lt_prog_compiler_pic_CXX='-KPIC'
16174	      lt_prog_compiler_static_CXX='-Bstatic'
16175	      lt_prog_compiler_wl_CXX='-Qoption ld '
16176	      ;;
16177	    esac
16178	    ;;
16179	esac
16180	;;
16181      lynxos*)
16182	;;
16183      m88k*)
16184	;;
16185      mvs*)
16186	case $cc_basename in
16187	  cxx*)
16188	    lt_prog_compiler_pic_CXX='-W c,exportall'
16189	    ;;
16190	  *)
16191	    ;;
16192	esac
16193	;;
16194      netbsd*)
16195	;;
16196      *qnx* | *nto*)
16197        # QNX uses GNU C++, but need to define -shared option too, otherwise
16198        # it will coredump.
16199        lt_prog_compiler_pic_CXX='-fPIC -shared'
16200        ;;
16201      osf3* | osf4* | osf5*)
16202	case $cc_basename in
16203	  KCC*)
16204	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16205	    ;;
16206	  RCC*)
16207	    # Rational C++ 2.4.1
16208	    lt_prog_compiler_pic_CXX='-pic'
16209	    ;;
16210	  cxx*)
16211	    # Digital/Compaq C++
16212	    lt_prog_compiler_wl_CXX='-Wl,'
16213	    # Make sure the PIC flag is empty.  It appears that all Alpha
16214	    # Linux and Compaq Tru64 Unix objects are PIC.
16215	    lt_prog_compiler_pic_CXX=
16216	    lt_prog_compiler_static_CXX='-non_shared'
16217	    ;;
16218	  *)
16219	    ;;
16220	esac
16221	;;
16222      psos*)
16223	;;
16224      solaris*)
16225	case $cc_basename in
16226	  CC* | sunCC*)
16227	    # Sun C++ 4.2, 5.x and Centerline C++
16228	    lt_prog_compiler_pic_CXX='-KPIC'
16229	    lt_prog_compiler_static_CXX='-Bstatic'
16230	    lt_prog_compiler_wl_CXX='-Qoption ld '
16231	    ;;
16232	  gcx*)
16233	    # Green Hills C++ Compiler
16234	    lt_prog_compiler_pic_CXX='-PIC'
16235	    ;;
16236	  *)
16237	    ;;
16238	esac
16239	;;
16240      sunos4*)
16241	case $cc_basename in
16242	  CC*)
16243	    # Sun C++ 4.x
16244	    lt_prog_compiler_pic_CXX='-pic'
16245	    lt_prog_compiler_static_CXX='-Bstatic'
16246	    ;;
16247	  lcc*)
16248	    # Lucid
16249	    lt_prog_compiler_pic_CXX='-pic'
16250	    ;;
16251	  *)
16252	    ;;
16253	esac
16254	;;
16255      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16256	case $cc_basename in
16257	  CC*)
16258	    lt_prog_compiler_wl_CXX='-Wl,'
16259	    lt_prog_compiler_pic_CXX='-KPIC'
16260	    lt_prog_compiler_static_CXX='-Bstatic'
16261	    ;;
16262	esac
16263	;;
16264      tandem*)
16265	case $cc_basename in
16266	  NCC*)
16267	    # NonStop-UX NCC 3.20
16268	    lt_prog_compiler_pic_CXX='-KPIC'
16269	    ;;
16270	  *)
16271	    ;;
16272	esac
16273	;;
16274      vxworks*)
16275	;;
16276      *)
16277	lt_prog_compiler_can_build_shared_CXX=no
16278	;;
16279    esac
16280  fi
16281
16282case $host_os in
16283  # For platforms which do not support PIC, -DPIC is meaningless:
16284  *djgpp*)
16285    lt_prog_compiler_pic_CXX=
16286    ;;
16287  *)
16288    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16289    ;;
16290esac
16291
16292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16293$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16294if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16295  $as_echo_n "(cached) " >&6
16296else
16297  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16298fi
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16300$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16301lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16302
16303#
16304# Check to make sure the PIC flag actually works.
16305#
16306if test -n "$lt_prog_compiler_pic_CXX"; then
16307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16308$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16309if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16310  $as_echo_n "(cached) " >&6
16311else
16312  lt_cv_prog_compiler_pic_works_CXX=no
16313   ac_outfile=conftest.$ac_objext
16314   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16315   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16316   # Insert the option either (1) after the last *FLAGS variable, or
16317   # (2) before a word containing "conftest.", or (3) at the end.
16318   # Note that $ac_compile itself does not contain backslashes and begins
16319   # with a dollar sign (not a hyphen), so the echo should work correctly.
16320   # The option is referenced via a variable to avoid confusing sed.
16321   lt_compile=`echo "$ac_compile" | $SED \
16322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16324   -e 's:$: $lt_compiler_flag:'`
16325   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16326   (eval "$lt_compile" 2>conftest.err)
16327   ac_status=$?
16328   cat conftest.err >&5
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   if (exit $ac_status) && test -s "$ac_outfile"; then
16331     # The compiler can only warn and ignore the option if not recognized
16332     # So say no if there are warnings other than the usual output.
16333     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16334     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16335     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16336       lt_cv_prog_compiler_pic_works_CXX=yes
16337     fi
16338   fi
16339   $RM conftest*
16340
16341fi
16342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16343$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16344
16345if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16346    case $lt_prog_compiler_pic_CXX in
16347     "" | " "*) ;;
16348     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16349     esac
16350else
16351    lt_prog_compiler_pic_CXX=
16352     lt_prog_compiler_can_build_shared_CXX=no
16353fi
16354
16355fi
16356
16357
16358
16359
16360
16361#
16362# Check to make sure the static flag actually works.
16363#
16364wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16366$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16367if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16368  $as_echo_n "(cached) " >&6
16369else
16370  lt_cv_prog_compiler_static_works_CXX=no
16371   save_LDFLAGS="$LDFLAGS"
16372   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16373   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16374   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16375     # The linker can only warn and ignore the option if not recognized
16376     # So say no if there are warnings
16377     if test -s conftest.err; then
16378       # Append any errors to the config.log.
16379       cat conftest.err 1>&5
16380       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16381       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16382       if diff conftest.exp conftest.er2 >/dev/null; then
16383         lt_cv_prog_compiler_static_works_CXX=yes
16384       fi
16385     else
16386       lt_cv_prog_compiler_static_works_CXX=yes
16387     fi
16388   fi
16389   $RM -r conftest*
16390   LDFLAGS="$save_LDFLAGS"
16391
16392fi
16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16394$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16395
16396if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16397    :
16398else
16399    lt_prog_compiler_static_CXX=
16400fi
16401
16402
16403
16404
16405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16406$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16407if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16408  $as_echo_n "(cached) " >&6
16409else
16410  lt_cv_prog_compiler_c_o_CXX=no
16411   $RM -r conftest 2>/dev/null
16412   mkdir conftest
16413   cd conftest
16414   mkdir out
16415   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16416
16417   lt_compiler_flag="-o out/conftest2.$ac_objext"
16418   # Insert the option either (1) after the last *FLAGS variable, or
16419   # (2) before a word containing "conftest.", or (3) at the end.
16420   # Note that $ac_compile itself does not contain backslashes and begins
16421   # with a dollar sign (not a hyphen), so the echo should work correctly.
16422   lt_compile=`echo "$ac_compile" | $SED \
16423   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16424   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16425   -e 's:$: $lt_compiler_flag:'`
16426   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16427   (eval "$lt_compile" 2>out/conftest.err)
16428   ac_status=$?
16429   cat out/conftest.err >&5
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16432   then
16433     # The compiler can only warn and ignore the option if not recognized
16434     # So say no if there are warnings
16435     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16436     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16437     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16438       lt_cv_prog_compiler_c_o_CXX=yes
16439     fi
16440   fi
16441   chmod u+w . 2>&5
16442   $RM conftest*
16443   # SGI C++ compiler will create directory out/ii_files/ for
16444   # template instantiation
16445   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16446   $RM out/* && rmdir out
16447   cd ..
16448   $RM -r conftest
16449   $RM conftest*
16450
16451fi
16452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16453$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16454
16455
16456
16457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16458$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16459if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16460  $as_echo_n "(cached) " >&6
16461else
16462  lt_cv_prog_compiler_c_o_CXX=no
16463   $RM -r conftest 2>/dev/null
16464   mkdir conftest
16465   cd conftest
16466   mkdir out
16467   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16468
16469   lt_compiler_flag="-o out/conftest2.$ac_objext"
16470   # Insert the option either (1) after the last *FLAGS variable, or
16471   # (2) before a word containing "conftest.", or (3) at the end.
16472   # Note that $ac_compile itself does not contain backslashes and begins
16473   # with a dollar sign (not a hyphen), so the echo should work correctly.
16474   lt_compile=`echo "$ac_compile" | $SED \
16475   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477   -e 's:$: $lt_compiler_flag:'`
16478   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16479   (eval "$lt_compile" 2>out/conftest.err)
16480   ac_status=$?
16481   cat out/conftest.err >&5
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16484   then
16485     # The compiler can only warn and ignore the option if not recognized
16486     # So say no if there are warnings
16487     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16488     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16489     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16490       lt_cv_prog_compiler_c_o_CXX=yes
16491     fi
16492   fi
16493   chmod u+w . 2>&5
16494   $RM conftest*
16495   # SGI C++ compiler will create directory out/ii_files/ for
16496   # template instantiation
16497   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16498   $RM out/* && rmdir out
16499   cd ..
16500   $RM -r conftest
16501   $RM conftest*
16502
16503fi
16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16505$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16506
16507
16508
16509
16510hard_links="nottested"
16511if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16512  # do not overwrite the value of need_locks provided by the user
16513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16514$as_echo_n "checking if we can lock with hard links... " >&6; }
16515  hard_links=yes
16516  $RM conftest*
16517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16518  touch conftest.a
16519  ln conftest.a conftest.b 2>&5 || hard_links=no
16520  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16522$as_echo "$hard_links" >&6; }
16523  if test "$hard_links" = no; then
16524    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16525$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16526    need_locks=warn
16527  fi
16528else
16529  need_locks=no
16530fi
16531
16532
16533
16534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16535$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16536
16537  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16538  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16539  case $host_os in
16540  aix[4-9]*)
16541    # If we're using GNU nm, then we don't want the "-C" option.
16542    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16543    # Also, AIX nm treats weak defined symbols like other global defined
16544    # symbols, whereas GNU nm marks them as "W".
16545    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16546      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16547    else
16548      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16549    fi
16550    ;;
16551  pw32*)
16552    export_symbols_cmds_CXX="$ltdll_cmds"
16553    ;;
16554  cygwin* | mingw* | cegcc*)
16555    case $cc_basename in
16556    cl*)
16557      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16558      ;;
16559    *)
16560      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16561      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16562      ;;
16563    esac
16564    ;;
16565  *)
16566    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16567    ;;
16568  esac
16569
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16571$as_echo "$ld_shlibs_CXX" >&6; }
16572test "$ld_shlibs_CXX" = no && can_build_shared=no
16573
16574with_gnu_ld_CXX=$with_gnu_ld
16575
16576
16577
16578
16579
16580
16581#
16582# Do we need to explicitly link libc?
16583#
16584case "x$archive_cmds_need_lc_CXX" in
16585x|xyes)
16586  # Assume -lc should be added
16587  archive_cmds_need_lc_CXX=yes
16588
16589  if test "$enable_shared" = yes && test "$GCC" = yes; then
16590    case $archive_cmds_CXX in
16591    *'~'*)
16592      # FIXME: we may have to deal with multi-command sequences.
16593      ;;
16594    '$CC '*)
16595      # Test whether the compiler implicitly links with -lc since on some
16596      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16597      # to ld, don't add -lc before -lgcc.
16598      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16599$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16600if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16601  $as_echo_n "(cached) " >&6
16602else
16603  $RM conftest*
16604	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16605
16606	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16607  (eval $ac_compile) 2>&5
16608  ac_status=$?
16609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610  test $ac_status = 0; } 2>conftest.err; then
16611	  soname=conftest
16612	  lib=conftest
16613	  libobjs=conftest.$ac_objext
16614	  deplibs=
16615	  wl=$lt_prog_compiler_wl_CXX
16616	  pic_flag=$lt_prog_compiler_pic_CXX
16617	  compiler_flags=-v
16618	  linker_flags=-v
16619	  verstring=
16620	  output_objdir=.
16621	  libname=conftest
16622	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16623	  allow_undefined_flag_CXX=
16624	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16625  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16626  ac_status=$?
16627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16628  test $ac_status = 0; }
16629	  then
16630	    lt_cv_archive_cmds_need_lc_CXX=no
16631	  else
16632	    lt_cv_archive_cmds_need_lc_CXX=yes
16633	  fi
16634	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16635	else
16636	  cat conftest.err 1>&5
16637	fi
16638	$RM conftest*
16639
16640fi
16641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16642$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16643      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16644      ;;
16645    esac
16646  fi
16647  ;;
16648esac
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16712$as_echo_n "checking dynamic linker characteristics... " >&6; }
16713
16714library_names_spec=
16715libname_spec='lib$name'
16716soname_spec=
16717shrext_cmds=".so"
16718postinstall_cmds=
16719postuninstall_cmds=
16720finish_cmds=
16721finish_eval=
16722shlibpath_var=
16723shlibpath_overrides_runpath=unknown
16724version_type=none
16725dynamic_linker="$host_os ld.so"
16726sys_lib_dlsearch_path_spec="/lib /usr/lib"
16727need_lib_prefix=unknown
16728hardcode_into_libs=no
16729
16730# when you set need_version to no, make sure it does not cause -set_version
16731# flags to be left without arguments
16732need_version=unknown
16733
16734case $host_os in
16735aix3*)
16736  version_type=linux # correct to gnu/linux during the next big refactor
16737  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16738  shlibpath_var=LIBPATH
16739
16740  # AIX 3 has no versioning support, so we append a major version to the name.
16741  soname_spec='${libname}${release}${shared_ext}$major'
16742  ;;
16743
16744aix[4-9]*)
16745  version_type=linux # correct to gnu/linux during the next big refactor
16746  need_lib_prefix=no
16747  need_version=no
16748  hardcode_into_libs=yes
16749  if test "$host_cpu" = ia64; then
16750    # AIX 5 supports IA64
16751    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16752    shlibpath_var=LD_LIBRARY_PATH
16753  else
16754    # With GCC up to 2.95.x, collect2 would create an import file
16755    # for dependence libraries.  The import file would start with
16756    # the line `#! .'.  This would cause the generated library to
16757    # depend on `.', always an invalid library.  This was fixed in
16758    # development snapshots of GCC prior to 3.0.
16759    case $host_os in
16760      aix4 | aix4.[01] | aix4.[01].*)
16761      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16762	   echo ' yes '
16763	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16764	:
16765      else
16766	can_build_shared=no
16767      fi
16768      ;;
16769    esac
16770    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16771    # soname into executable. Probably we can add versioning support to
16772    # collect2, so additional links can be useful in future.
16773    if test "$aix_use_runtimelinking" = yes; then
16774      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16775      # instead of lib<name>.a to let people know that these are not
16776      # typical AIX shared libraries.
16777      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778    else
16779      # We preserve .a as extension for shared libraries through AIX4.2
16780      # and later when we are not doing run time linking.
16781      library_names_spec='${libname}${release}.a $libname.a'
16782      soname_spec='${libname}${release}${shared_ext}$major'
16783    fi
16784    shlibpath_var=LIBPATH
16785  fi
16786  ;;
16787
16788amigaos*)
16789  case $host_cpu in
16790  powerpc)
16791    # Since July 2007 AmigaOS4 officially supports .so libraries.
16792    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16793    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16794    ;;
16795  m68k)
16796    library_names_spec='$libname.ixlibrary $libname.a'
16797    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16798    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16799    ;;
16800  esac
16801  ;;
16802
16803beos*)
16804  library_names_spec='${libname}${shared_ext}'
16805  dynamic_linker="$host_os ld.so"
16806  shlibpath_var=LIBRARY_PATH
16807  ;;
16808
16809bsdi[45]*)
16810  version_type=linux # correct to gnu/linux during the next big refactor
16811  need_version=no
16812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813  soname_spec='${libname}${release}${shared_ext}$major'
16814  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16815  shlibpath_var=LD_LIBRARY_PATH
16816  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16817  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16818  # the default ld.so.conf also contains /usr/contrib/lib and
16819  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16820  # libtool to hard-code these into programs
16821  ;;
16822
16823cygwin* | mingw* | pw32* | cegcc*)
16824  version_type=windows
16825  shrext_cmds=".dll"
16826  need_version=no
16827  need_lib_prefix=no
16828
16829  case $GCC,$cc_basename in
16830  yes,*)
16831    # gcc
16832    library_names_spec='$libname.dll.a'
16833    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16834    postinstall_cmds='base_file=`basename \${file}`~
16835      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16836      dldir=$destdir/`dirname \$dlpath`~
16837      test -d \$dldir || mkdir -p \$dldir~
16838      $install_prog $dir/$dlname \$dldir/$dlname~
16839      chmod a+x \$dldir/$dlname~
16840      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16841        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16842      fi'
16843    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16844      dlpath=$dir/\$dldll~
16845       $RM \$dlpath'
16846    shlibpath_overrides_runpath=yes
16847
16848    case $host_os in
16849    cygwin*)
16850      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16851      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16852
16853      ;;
16854    mingw* | cegcc*)
16855      # MinGW DLLs use traditional 'lib' prefix
16856      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857      ;;
16858    pw32*)
16859      # pw32 DLLs use 'pw' prefix rather than 'lib'
16860      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16861      ;;
16862    esac
16863    dynamic_linker='Win32 ld.exe'
16864    ;;
16865
16866  *,cl*)
16867    # Native MSVC
16868    libname_spec='$name'
16869    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16870    library_names_spec='${libname}.dll.lib'
16871
16872    case $build_os in
16873    mingw*)
16874      sys_lib_search_path_spec=
16875      lt_save_ifs=$IFS
16876      IFS=';'
16877      for lt_path in $LIB
16878      do
16879        IFS=$lt_save_ifs
16880        # Let DOS variable expansion print the short 8.3 style file name.
16881        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16882        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16883      done
16884      IFS=$lt_save_ifs
16885      # Convert to MSYS style.
16886      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16887      ;;
16888    cygwin*)
16889      # Convert to unix form, then to dos form, then back to unix form
16890      # but this time dos style (no spaces!) so that the unix form looks
16891      # like /cygdrive/c/PROGRA~1:/cygdr...
16892      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16893      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16894      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16895      ;;
16896    *)
16897      sys_lib_search_path_spec="$LIB"
16898      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16899        # It is most probably a Windows format PATH.
16900        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901      else
16902        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16903      fi
16904      # FIXME: find the short name or the path components, as spaces are
16905      # common. (e.g. "Program Files" -> "PROGRA~1")
16906      ;;
16907    esac
16908
16909    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16910    postinstall_cmds='base_file=`basename \${file}`~
16911      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16912      dldir=$destdir/`dirname \$dlpath`~
16913      test -d \$dldir || mkdir -p \$dldir~
16914      $install_prog $dir/$dlname \$dldir/$dlname'
16915    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916      dlpath=$dir/\$dldll~
16917       $RM \$dlpath'
16918    shlibpath_overrides_runpath=yes
16919    dynamic_linker='Win32 link.exe'
16920    ;;
16921
16922  *)
16923    # Assume MSVC wrapper
16924    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16925    dynamic_linker='Win32 ld.exe'
16926    ;;
16927  esac
16928  # FIXME: first we should search . and the directory the executable is in
16929  shlibpath_var=PATH
16930  ;;
16931
16932darwin* | rhapsody*)
16933  dynamic_linker="$host_os dyld"
16934  version_type=darwin
16935  need_lib_prefix=no
16936  need_version=no
16937  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16938  soname_spec='${libname}${release}${major}$shared_ext'
16939  shlibpath_overrides_runpath=yes
16940  shlibpath_var=DYLD_LIBRARY_PATH
16941  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16942
16943  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16944  ;;
16945
16946dgux*)
16947  version_type=linux # correct to gnu/linux during the next big refactor
16948  need_lib_prefix=no
16949  need_version=no
16950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16951  soname_spec='${libname}${release}${shared_ext}$major'
16952  shlibpath_var=LD_LIBRARY_PATH
16953  ;;
16954
16955freebsd* | dragonfly*)
16956  # DragonFly does not have aout.  When/if they implement a new
16957  # versioning mechanism, adjust this.
16958  if test -x /usr/bin/objformat; then
16959    objformat=`/usr/bin/objformat`
16960  else
16961    case $host_os in
16962    freebsd[23].*) objformat=aout ;;
16963    *) objformat=elf ;;
16964    esac
16965  fi
16966  version_type=freebsd-$objformat
16967  case $version_type in
16968    freebsd-elf*)
16969      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16970      need_version=no
16971      need_lib_prefix=no
16972      ;;
16973    freebsd-*)
16974      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16975      need_version=yes
16976      ;;
16977  esac
16978  shlibpath_var=LD_LIBRARY_PATH
16979  case $host_os in
16980  freebsd2.*)
16981    shlibpath_overrides_runpath=yes
16982    ;;
16983  freebsd3.[01]* | freebsdelf3.[01]*)
16984    shlibpath_overrides_runpath=yes
16985    hardcode_into_libs=yes
16986    ;;
16987  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16988  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16989    shlibpath_overrides_runpath=no
16990    hardcode_into_libs=yes
16991    ;;
16992  *) # from 4.6 on, and DragonFly
16993    shlibpath_overrides_runpath=yes
16994    hardcode_into_libs=yes
16995    ;;
16996  esac
16997  ;;
16998
16999gnu*)
17000  version_type=linux # correct to gnu/linux during the next big refactor
17001  need_lib_prefix=no
17002  need_version=no
17003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17004  soname_spec='${libname}${release}${shared_ext}$major'
17005  shlibpath_var=LD_LIBRARY_PATH
17006  shlibpath_overrides_runpath=no
17007  hardcode_into_libs=yes
17008  ;;
17009
17010haiku*)
17011  version_type=linux # correct to gnu/linux during the next big refactor
17012  need_lib_prefix=no
17013  need_version=no
17014  dynamic_linker="$host_os runtime_loader"
17015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016  soname_spec='${libname}${release}${shared_ext}$major'
17017  shlibpath_var=LIBRARY_PATH
17018  shlibpath_overrides_runpath=yes
17019  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17020  hardcode_into_libs=yes
17021  ;;
17022
17023hpux9* | hpux10* | hpux11*)
17024  # Give a soname corresponding to the major version so that dld.sl refuses to
17025  # link against other versions.
17026  version_type=sunos
17027  need_lib_prefix=no
17028  need_version=no
17029  case $host_cpu in
17030  ia64*)
17031    shrext_cmds='.so'
17032    hardcode_into_libs=yes
17033    dynamic_linker="$host_os dld.so"
17034    shlibpath_var=LD_LIBRARY_PATH
17035    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037    soname_spec='${libname}${release}${shared_ext}$major'
17038    if test "X$HPUX_IA64_MODE" = X32; then
17039      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17040    else
17041      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17042    fi
17043    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17044    ;;
17045  hppa*64*)
17046    shrext_cmds='.sl'
17047    hardcode_into_libs=yes
17048    dynamic_linker="$host_os dld.sl"
17049    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17050    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17051    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052    soname_spec='${libname}${release}${shared_ext}$major'
17053    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17054    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17055    ;;
17056  *)
17057    shrext_cmds='.sl'
17058    dynamic_linker="$host_os dld.sl"
17059    shlibpath_var=SHLIB_PATH
17060    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17061    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062    soname_spec='${libname}${release}${shared_ext}$major'
17063    ;;
17064  esac
17065  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17066  postinstall_cmds='chmod 555 $lib'
17067  # or fails outright, so override atomically:
17068  install_override_mode=555
17069  ;;
17070
17071interix[3-9]*)
17072  version_type=linux # correct to gnu/linux during the next big refactor
17073  need_lib_prefix=no
17074  need_version=no
17075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17076  soname_spec='${libname}${release}${shared_ext}$major'
17077  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17078  shlibpath_var=LD_LIBRARY_PATH
17079  shlibpath_overrides_runpath=no
17080  hardcode_into_libs=yes
17081  ;;
17082
17083irix5* | irix6* | nonstopux*)
17084  case $host_os in
17085    nonstopux*) version_type=nonstopux ;;
17086    *)
17087	if test "$lt_cv_prog_gnu_ld" = yes; then
17088		version_type=linux # correct to gnu/linux during the next big refactor
17089	else
17090		version_type=irix
17091	fi ;;
17092  esac
17093  need_lib_prefix=no
17094  need_version=no
17095  soname_spec='${libname}${release}${shared_ext}$major'
17096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17097  case $host_os in
17098  irix5* | nonstopux*)
17099    libsuff= shlibsuff=
17100    ;;
17101  *)
17102    case $LD in # libtool.m4 will add one of these switches to LD
17103    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17104      libsuff= shlibsuff= libmagic=32-bit;;
17105    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17106      libsuff=32 shlibsuff=N32 libmagic=N32;;
17107    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17108      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17109    *) libsuff= shlibsuff= libmagic=never-match;;
17110    esac
17111    ;;
17112  esac
17113  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17114  shlibpath_overrides_runpath=no
17115  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17116  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17117  hardcode_into_libs=yes
17118  ;;
17119
17120# No shared lib support for Linux oldld, aout, or coff.
17121linux*oldld* | linux*aout* | linux*coff*)
17122  dynamic_linker=no
17123  ;;
17124
17125# This must be glibc/ELF.
17126linux* | k*bsd*-gnu | kopensolaris*-gnu)
17127  version_type=linux # correct to gnu/linux during the next big refactor
17128  need_lib_prefix=no
17129  need_version=no
17130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131  soname_spec='${libname}${release}${shared_ext}$major'
17132  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17133  shlibpath_var=LD_LIBRARY_PATH
17134  shlibpath_overrides_runpath=no
17135
17136  # Some binutils ld are patched to set DT_RUNPATH
17137  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17138  $as_echo_n "(cached) " >&6
17139else
17140  lt_cv_shlibpath_overrides_runpath=no
17141    save_LDFLAGS=$LDFLAGS
17142    save_libdir=$libdir
17143    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17144	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17145    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146/* end confdefs.h.  */
17147
17148int
17149main ()
17150{
17151
17152  ;
17153  return 0;
17154}
17155_ACEOF
17156if ac_fn_cxx_try_link "$LINENO"; then :
17157  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17158  lt_cv_shlibpath_overrides_runpath=yes
17159fi
17160fi
17161rm -f core conftest.err conftest.$ac_objext \
17162    conftest$ac_exeext conftest.$ac_ext
17163    LDFLAGS=$save_LDFLAGS
17164    libdir=$save_libdir
17165
17166fi
17167
17168  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17169
17170  # This implies no fast_install, which is unacceptable.
17171  # Some rework will be needed to allow for fast_install
17172  # before this can be enabled.
17173  hardcode_into_libs=yes
17174
17175  # Append ld.so.conf contents to the search path
17176  if test -f /etc/ld.so.conf; then
17177    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17178    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17179  fi
17180
17181  # We used to test for /lib/ld.so.1 and disable shared libraries on
17182  # powerpc, because MkLinux only supported shared libraries with the
17183  # GNU dynamic linker.  Since this was broken with cross compilers,
17184  # most powerpc-linux boxes support dynamic linking these days and
17185  # people can always --disable-shared, the test was removed, and we
17186  # assume the GNU/Linux dynamic linker is in use.
17187  dynamic_linker='GNU/Linux ld.so'
17188  ;;
17189
17190netbsd*)
17191  version_type=sunos
17192  need_lib_prefix=no
17193  need_version=no
17194  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17195    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197    dynamic_linker='NetBSD (a.out) ld.so'
17198  else
17199    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200    soname_spec='${libname}${release}${shared_ext}$major'
17201    dynamic_linker='NetBSD ld.elf_so'
17202  fi
17203  shlibpath_var=LD_LIBRARY_PATH
17204  shlibpath_overrides_runpath=yes
17205  hardcode_into_libs=yes
17206  ;;
17207
17208newsos6)
17209  version_type=linux # correct to gnu/linux during the next big refactor
17210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211  shlibpath_var=LD_LIBRARY_PATH
17212  shlibpath_overrides_runpath=yes
17213  ;;
17214
17215*nto* | *qnx*)
17216  version_type=qnx
17217  need_lib_prefix=no
17218  need_version=no
17219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220  soname_spec='${libname}${release}${shared_ext}$major'
17221  shlibpath_var=LD_LIBRARY_PATH
17222  shlibpath_overrides_runpath=no
17223  hardcode_into_libs=yes
17224  dynamic_linker='ldqnx.so'
17225  ;;
17226
17227openbsd*)
17228  version_type=sunos
17229  sys_lib_dlsearch_path_spec="/usr/lib"
17230  need_lib_prefix=no
17231  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17232  case $host_os in
17233    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17234    *)				need_version=no  ;;
17235  esac
17236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17237  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17238  shlibpath_var=LD_LIBRARY_PATH
17239  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17240    case $host_os in
17241      openbsd2.[89] | openbsd2.[89].*)
17242	shlibpath_overrides_runpath=no
17243	;;
17244      *)
17245	shlibpath_overrides_runpath=yes
17246	;;
17247      esac
17248  else
17249    shlibpath_overrides_runpath=yes
17250  fi
17251  ;;
17252
17253os2*)
17254  libname_spec='$name'
17255  shrext_cmds=".dll"
17256  need_lib_prefix=no
17257  library_names_spec='$libname${shared_ext} $libname.a'
17258  dynamic_linker='OS/2 ld.exe'
17259  shlibpath_var=LIBPATH
17260  ;;
17261
17262osf3* | osf4* | osf5*)
17263  version_type=osf
17264  need_lib_prefix=no
17265  need_version=no
17266  soname_spec='${libname}${release}${shared_ext}$major'
17267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268  shlibpath_var=LD_LIBRARY_PATH
17269  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17270  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17271  ;;
17272
17273rdos*)
17274  dynamic_linker=no
17275  ;;
17276
17277solaris*)
17278  version_type=linux # correct to gnu/linux during the next big refactor
17279  need_lib_prefix=no
17280  need_version=no
17281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282  soname_spec='${libname}${release}${shared_ext}$major'
17283  shlibpath_var=LD_LIBRARY_PATH
17284  shlibpath_overrides_runpath=yes
17285  hardcode_into_libs=yes
17286  # ldd complains unless libraries are executable
17287  postinstall_cmds='chmod +x $lib'
17288  ;;
17289
17290sunos4*)
17291  version_type=sunos
17292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17293  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17294  shlibpath_var=LD_LIBRARY_PATH
17295  shlibpath_overrides_runpath=yes
17296  if test "$with_gnu_ld" = yes; then
17297    need_lib_prefix=no
17298  fi
17299  need_version=yes
17300  ;;
17301
17302sysv4 | sysv4.3*)
17303  version_type=linux # correct to gnu/linux during the next big refactor
17304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305  soname_spec='${libname}${release}${shared_ext}$major'
17306  shlibpath_var=LD_LIBRARY_PATH
17307  case $host_vendor in
17308    sni)
17309      shlibpath_overrides_runpath=no
17310      need_lib_prefix=no
17311      runpath_var=LD_RUN_PATH
17312      ;;
17313    siemens)
17314      need_lib_prefix=no
17315      ;;
17316    motorola)
17317      need_lib_prefix=no
17318      need_version=no
17319      shlibpath_overrides_runpath=no
17320      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17321      ;;
17322  esac
17323  ;;
17324
17325sysv4*MP*)
17326  if test -d /usr/nec ;then
17327    version_type=linux # correct to gnu/linux during the next big refactor
17328    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17329    soname_spec='$libname${shared_ext}.$major'
17330    shlibpath_var=LD_LIBRARY_PATH
17331  fi
17332  ;;
17333
17334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17335  version_type=freebsd-elf
17336  need_lib_prefix=no
17337  need_version=no
17338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17339  soname_spec='${libname}${release}${shared_ext}$major'
17340  shlibpath_var=LD_LIBRARY_PATH
17341  shlibpath_overrides_runpath=yes
17342  hardcode_into_libs=yes
17343  if test "$with_gnu_ld" = yes; then
17344    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17345  else
17346    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17347    case $host_os in
17348      sco3.2v5*)
17349        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17350	;;
17351    esac
17352  fi
17353  sys_lib_dlsearch_path_spec='/usr/lib'
17354  ;;
17355
17356tpf*)
17357  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17358  version_type=linux # correct to gnu/linux during the next big refactor
17359  need_lib_prefix=no
17360  need_version=no
17361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362  shlibpath_var=LD_LIBRARY_PATH
17363  shlibpath_overrides_runpath=no
17364  hardcode_into_libs=yes
17365  ;;
17366
17367uts4*)
17368  version_type=linux # correct to gnu/linux during the next big refactor
17369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370  soname_spec='${libname}${release}${shared_ext}$major'
17371  shlibpath_var=LD_LIBRARY_PATH
17372  ;;
17373
17374*)
17375  dynamic_linker=no
17376  ;;
17377esac
17378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17379$as_echo "$dynamic_linker" >&6; }
17380test "$dynamic_linker" = no && can_build_shared=no
17381
17382variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17383if test "$GCC" = yes; then
17384  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17385fi
17386
17387if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17388  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17389fi
17390if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17391  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17392fi
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17432$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17433hardcode_action_CXX=
17434if test -n "$hardcode_libdir_flag_spec_CXX" ||
17435   test -n "$runpath_var_CXX" ||
17436   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17437
17438  # We can hardcode non-existent directories.
17439  if test "$hardcode_direct_CXX" != no &&
17440     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17441     # have to relink, otherwise we might link with an installed library
17442     # when we should be linking with a yet-to-be-installed one
17443     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17444     test "$hardcode_minus_L_CXX" != no; then
17445    # Linking always hardcodes the temporary library directory.
17446    hardcode_action_CXX=relink
17447  else
17448    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17449    hardcode_action_CXX=immediate
17450  fi
17451else
17452  # We cannot hardcode anything, or else we can only hardcode existing
17453  # directories.
17454  hardcode_action_CXX=unsupported
17455fi
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17457$as_echo "$hardcode_action_CXX" >&6; }
17458
17459if test "$hardcode_action_CXX" = relink ||
17460   test "$inherit_rpath_CXX" = yes; then
17461  # Fast installation is not supported
17462  enable_fast_install=no
17463elif test "$shlibpath_overrides_runpath" = yes ||
17464     test "$enable_shared" = no; then
17465  # Fast installation is not necessary
17466  enable_fast_install=needless
17467fi
17468
17469
17470
17471
17472
17473
17474
17475  fi # test -n "$compiler"
17476
17477  CC=$lt_save_CC
17478  CFLAGS=$lt_save_CFLAGS
17479  LDCXX=$LD
17480  LD=$lt_save_LD
17481  GCC=$lt_save_GCC
17482  with_gnu_ld=$lt_save_with_gnu_ld
17483  lt_cv_path_LDCXX=$lt_cv_path_LD
17484  lt_cv_path_LD=$lt_save_path_LD
17485  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17486  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17487fi # test "$_lt_caught_CXX_error" != yes
17488
17489ac_ext=c
17490ac_cpp='$CPP $CPPFLAGS'
17491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493ac_compiler_gnu=$ac_cv_c_compiler_gnu
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509        ac_config_commands="$ac_config_commands libtool"
17510
17511
17512
17513
17514# Only expand once:
17515
17516
17517# Check whether --enable-experimental-libtool was given.
17518if test "${enable_experimental_libtool+set}" = set; then :
17519  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
17520else
17521  experimental_libtool=no
17522fi
17523
17524
17525if test "$experimental_libtool" = "yes"; then
17526  echo "using APR's libtool"
17527  sh_libtool="`$apr_config --apr-libtool`"
17528  LIBTOOL="$sh_libtool"
17529  SVN_LIBTOOL="$sh_libtool"
17530else
17531  sh_libtool="$abs_builddir/libtool"
17532  SVN_LIBTOOL="\$(SHELL) $sh_libtool"
17533fi
17534
17535
17536lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17537lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
17538lt_major_version=`echo $lt_version | cut -d'.' -f 1`
17539
17540svn_enable_static=yes
17541svn_enable_shared=yes
17542
17543# Check whether --enable-static was given.
17544if test "${enable_static+set}" = set; then :
17545  enableval=$enable_static; svn_enable_static="$enableval"
17546else
17547  svn_enable_static="yes"
17548fi
17549
17550
17551# Check whether --enable-shared was given.
17552if test "${enable_shared+set}" = set; then :
17553  enableval=$enable_shared; svn_enable_shared="$enableval"
17554else
17555  svn_enable_shared="yes"
17556fi
17557
17558
17559if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
17560  { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
17561$as_echo "$as_me: building both shared and static libraries" >&6;}
17562elif test "$svn_enable_static" = "yes" ; then
17563  { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
17564$as_echo "$as_me: building static libraries only" >&6;}
17565  LT_CFLAGS="-static $LT_CFLAGS"
17566  LT_LDFLAGS="-static $LT_LDFLAGS"
17567elif test "$svn_enable_shared" = "yes" ; then
17568  { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
17569$as_echo "$as_me: building shared libraries only" >&6;}
17570  if test "$lt_major_version" = "1" ; then
17571    LT_CFLAGS="-prefer-pic $LT_CFLAGS"
17572  elif test "$lt_major_version" = "2" ; then
17573    LT_CFLAGS="-shared $LT_CFLAGS"
17574  fi
17575  LT_LDFLAGS="-shared $LT_LDFLAGS"
17576else
17577  as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
17578fi
17579
17580# Check whether --enable-all-static was given.
17581if test "${enable_all_static+set}" = set; then :
17582  enableval=$enable_all_static;
17583    if test "$enableval" = "yes" ; then
17584      LT_LDFLAGS="-all-static $LT_LDFLAGS"
17585    elif test "$enableval" != "no" ; then
17586      as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
17587    fi
17588
17589fi
17590
17591
17592
17593
17594
17595# Check whether --enable-local-library-preloading was given.
17596if test "${enable_local_library_preloading+set}" = set; then :
17597  enableval=$enable_local_library_preloading;
17598  if test "$enableval" != "no"; then
17599    if test "$svn_enable_shared" = "yes"; then
17600      TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
17601    else
17602      as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
17603    fi
17604  else
17605    TRANSFORM_LIBTOOL_SCRIPTS=""
17606  fi
17607
17608else
17609
17610  TRANSFORM_LIBTOOL_SCRIPTS=""
17611
17612fi
17613
17614
17615
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
17617$as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
17618case $host in
17619  *-*-cygwin*)
17620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17621$as_echo "yes" >&6; }
17622    LT_NO_UNDEFINED="-no-undefined"
17623    ;;
17624  *)
17625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626$as_echo "no" >&6; }
17627    LT_NO_UNDEFINED=""
17628    ;;
17629esac
17630
17631
17632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5
17633$as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; }
17634case $host in
17635  *-*-cygwin*)
17636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17637$as_echo "yes" >&6; }
17638
17639$as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h
17640
17641    ;;
17642  *)
17643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17644$as_echo "no" >&6; }
17645    ;;
17646esac
17647
17648trang=yes
17649
17650# Check whether --with-trang was given.
17651if test "${with_trang+set}" = set; then :
17652  withval=$with_trang;
17653    trang="$withval"
17654
17655fi
17656
17657if test "$trang" = "yes"; then
17658    # Extract the first word of "trang", so it can be a program name with args.
17659set dummy trang; ac_word=$2
17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17661$as_echo_n "checking for $ac_word... " >&6; }
17662if ${ac_cv_path_TRANG+:} false; then :
17663  $as_echo_n "(cached) " >&6
17664else
17665  case $TRANG in
17666  [\\/]* | ?:[\\/]*)
17667  ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
17668  ;;
17669  *)
17670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17671for as_dir in $PATH
17672do
17673  IFS=$as_save_IFS
17674  test -z "$as_dir" && as_dir=.
17675    for ac_exec_ext in '' $ac_executable_extensions; do
17676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17677    ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
17678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17679    break 2
17680  fi
17681done
17682  done
17683IFS=$as_save_IFS
17684
17685  test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
17686  ;;
17687esac
17688fi
17689TRANG=$ac_cv_path_TRANG
17690if test -n "$TRANG"; then
17691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
17692$as_echo "$TRANG" >&6; }
17693else
17694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17695$as_echo "no" >&6; }
17696fi
17697
17698
17699else
17700    TRANG="$trang"
17701
17702fi
17703
17704doxygen=yes
17705
17706# Check whether --with-doxygen was given.
17707if test "${with_doxygen+set}" = set; then :
17708  withval=$with_doxygen;
17709    doxygen="$withval"
17710
17711fi
17712
17713if test "$doxygen" = "yes"; then
17714    # Extract the first word of "doxygen", so it can be a program name with args.
17715set dummy doxygen; ac_word=$2
17716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17717$as_echo_n "checking for $ac_word... " >&6; }
17718if ${ac_cv_path_DOXYGEN+:} false; then :
17719  $as_echo_n "(cached) " >&6
17720else
17721  case $DOXYGEN in
17722  [\\/]* | ?:[\\/]*)
17723  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17724  ;;
17725  *)
17726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17727for as_dir in $PATH
17728do
17729  IFS=$as_save_IFS
17730  test -z "$as_dir" && as_dir=.
17731    for ac_exec_ext in '' $ac_executable_extensions; do
17732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17733    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17735    break 2
17736  fi
17737done
17738  done
17739IFS=$as_save_IFS
17740
17741  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
17742  ;;
17743esac
17744fi
17745DOXYGEN=$ac_cv_path_DOXYGEN
17746if test -n "$DOXYGEN"; then
17747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17748$as_echo "$DOXYGEN" >&6; }
17749else
17750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751$as_echo "no" >&6; }
17752fi
17753
17754
17755else
17756    DOXYGEN="$doxygen"
17757
17758fi
17759
17760
17761
17762
17763
17764# Check whether --with-expat was given.
17765if test "${with_expat+set}" = set; then :
17766  withval=$with_expat; svn_lib_expat="$withval"
17767else
17768  svn_lib_expat="::expat"
17769fi
17770
17771
17772# APR-util accepts "builtin" as an argument to this option so if the user
17773# passed "builtin" pretend the user didn't specify the --with-expat option
17774# at all. Expat will (hopefully) be found in apr-util.
17775test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
17776
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
17778$as_echo_n "checking for Expat... " >&6; }
17779if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
17780  SVN_XML_INCLUDES=""
17781  for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
17782    SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
17783  done
17784  SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
17785  for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
17786    LDFLAGS="$LDFLAGS -L$l"
17787  done
17788  for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17789    SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
17790  done
17791  SVN_XML_LIBS="${SVN_XML_LIBS## }"
17792  old_CPPFLAGS="$CPPFLAGS"
17793  old_LIBS="$LIBS"
17794  CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
17795  LIBS="$LIBS $SVN_XML_LIBS"
17796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h.  */
17798
17799#include <expat.h>
17800int main()
17801{XML_ParserCreate(NULL);}
17802_ACEOF
17803if ac_fn_c_try_link "$LINENO"; then :
17804  svn_lib_expat="yes"
17805else
17806  svn_lib_expat="no"
17807fi
17808rm -f core conftest.err conftest.$ac_objext \
17809    conftest$ac_exeext conftest.$ac_ext
17810  LIBS="$old_LIBS"
17811  if test "$svn_lib_expat" = "yes"; then
17812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17813$as_echo "yes" >&6; }
17814  else
17815    SVN_XML_INCLUDES=""
17816    SVN_XML_LIBS=""
17817    CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
17818    if test "$enable_all_static" != "yes"; then
17819      SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
17820    fi
17821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822/* end confdefs.h.  */
17823
17824#include <expat.h>
17825int main()
17826{XML_ParserCreate(NULL);}
17827_ACEOF
17828if ac_fn_c_try_compile "$LINENO"; then :
17829  svn_lib_expat="yes"
17830else
17831  svn_lib_expat="no"
17832fi
17833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834    if test "$svn_lib_expat" = "yes"; then
17835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17836$as_echo "yes" >&6; }
17837      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&5
17838$as_echo "$as_me: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&2;}
17839    else
17840      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841$as_echo "no" >&6; }
17842      as_fn_error $? "Expat not found" "$LINENO" 5
17843    fi
17844  fi
17845  CPPFLAGS="$old_CPPFLAGS"
17846else
17847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848$as_echo "no" >&6; }
17849  if test "$svn_lib_expat" = "yes"; then
17850    as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
17851  elif test "$svn_lib_expat" = "no"; then
17852    as_fn_error $? "Expat is required" "$LINENO" 5
17853  else
17854    as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
17855  fi
17856fi
17857
17858
17859
17860
17861# Berkeley DB on SCO OpenServer needs -lsocket
17862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17863$as_echo_n "checking for socket in -lsocket... " >&6; }
17864if ${ac_cv_lib_socket_socket+:} false; then :
17865  $as_echo_n "(cached) " >&6
17866else
17867  ac_check_lib_save_LIBS=$LIBS
17868LIBS="-lsocket  $LIBS"
17869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870/* end confdefs.h.  */
17871
17872/* Override any GCC internal prototype to avoid an error.
17873   Use char because int might match the return type of a GCC
17874   builtin and then its argument prototype would still apply.  */
17875#ifdef __cplusplus
17876extern "C"
17877#endif
17878char socket ();
17879int
17880main ()
17881{
17882return socket ();
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887if ac_fn_c_try_link "$LINENO"; then :
17888  ac_cv_lib_socket_socket=yes
17889else
17890  ac_cv_lib_socket_socket=no
17891fi
17892rm -f core conftest.err conftest.$ac_objext \
17893    conftest$ac_exeext conftest.$ac_ext
17894LIBS=$ac_check_lib_save_LIBS
17895fi
17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17897$as_echo "$ac_cv_lib_socket_socket" >&6; }
17898if test "x$ac_cv_lib_socket_socket" = xyes; then :
17899  cat >>confdefs.h <<_ACEOF
17900#define HAVE_LIBSOCKET 1
17901_ACEOF
17902
17903  LIBS="-lsocket $LIBS"
17904
17905fi
17906
17907
17908# Build the BDB filesystem library only if we have an appropriate
17909# version of Berkeley DB.
17910case "$host" in
17911powerpc-apple-darwin*)
17912    # Berkeley DB 4.0 does not work on OS X.
17913    SVN_FS_WANT_DB_MAJOR=4
17914    SVN_FS_WANT_DB_MINOR=1
17915    SVN_FS_WANT_DB_PATCH=25
17916    ;;
17917*)
17918    SVN_FS_WANT_DB_MAJOR=4
17919    SVN_FS_WANT_DB_MINOR=0
17920    SVN_FS_WANT_DB_PATCH=14
17921    ;;
17922esac
17923db_alt_version="5.x"
17924# Look for libdb4.so first:
17925
17926  db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
17927
17928
17929# Check whether --with-berkeley-db was given.
17930if test "${with_berkeley_db+set}" = set; then :
17931  withval=$with_berkeley_db;
17932    if test "$withval" = "no"; then
17933      bdb_status=skip
17934    elif test "$withval" = "yes"; then
17935      apu_db_version="`$apu_config --db-version`"
17936      if test $? -ne 0; then
17937        as_fn_error $? "Can't determine whether apr-util is linked against a
17938                      proper version of Berkeley DB." "$LINENO" 5
17939      fi
17940
17941      if test "$withval" = "yes"; then
17942        if test "$apu_db_version" -lt "4"; then
17943          as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
17944                        while version 4 or higher is required.  Reinstall
17945                        APR-UTIL with the appropriate options." "$LINENO" 5
17946        fi
17947
17948        bdb_status=required
17949
17950      elif test "$apu_found" != "reconfig"; then
17951        if test "$apu_db_version" -lt 4; then
17952          as_fn_error $? "APR-UTIL was installed independently, it won't be
17953                        possible to use the specified Berkeley DB: $withval" "$LINENO" 5
17954        fi
17955
17956        bdb_status=required
17957      fi
17958    else
17959      if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
17960        svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
17961        SVN_DB_INCLUDES=""
17962        for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
17963          SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
17964        done
17965        SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
17966        for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
17967          LDFLAGS="$LDFLAGS -L$l"
17968        done
17969        SVN_DB_LIBS=""
17970        for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17971          SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
17972        done
17973        SVN_DB_LIBS="${SVN_DB_LIBS## }"
17974
17975        bdb_status=required
17976      else
17977        as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
17978      fi
17979    fi
17980
17981else
17982
17983    # No --with-berkeley-db option:
17984    #
17985    # Check if APR-UTIL is providing the correct Berkeley DB version
17986    # for us.
17987    #
17988    apu_db_version="`$apu_config --db-version`"
17989    if test $? -ne 0; then
17990      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
17991                   whether apr-util is linked against Berkeley DB
17992                   $db_version" >&5
17993$as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
17994                   whether apr-util is linked against Berkeley DB
17995                   $db_version" >&2;}
17996      bdb_status=try-link
17997    elif test "$apu_db_version" -lt "4"; then
17998      bdb_status=skip
17999    else
18000      bdb_status=try-link
18001    fi
18002
18003fi
18004
18005
18006  if test "$bdb_status" = "skip"; then
18007    svn_lib_berkeley_db=no
18008  else
18009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18010$as_echo_n "checking for availability of Berkeley DB... " >&6; }
18011    # Check whether --enable-bdb6 was given.
18012if test "${enable_bdb6+set}" = set; then :
18013  enableval=$enable_bdb6; enable_bdb6=$enableval
18014else
18015  enable_bdb6=unspecified
18016fi
18017
18018
18019
18020    svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18021    svn_lib_berkeley_db_try_save_libs="$LIBS"
18022
18023    svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18024    svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18025    svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18026    enable_bdb6=$enable_bdb6
18027
18028   if test -z "$SVN_DB_LIBS"; then
18029      # We pass --dbm-libs here since Debian has modified apu-config not
18030      # to return -ldb unless --dbm-libs is passed.  This may also produce
18031      # extra output beyond -ldb but since we're only filtering for -ldb
18032      # it won't matter to us.  However, --dbm-libs was added to apu-config
18033      # in 1.3.8 so it's possible the version we have doesn't support it
18034      # so fallback without it if we get an error.
18035      svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18036      if test $? -ne 0; then
18037        svn_db_libs_prefiltered="`$apu_config --libs`"
18038      fi
18039
18040      # Extract only the -ldb.* flag from the libs supplied by apu-config
18041      # Otherwise we get bit by the fact that expat might not be built yet
18042      # Or that it resides in a non-standard location which we would have
18043      # to compensate with using something like -R`$apu_config --prefix`/lib.
18044      #
18045      SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18046    fi
18047
18048    CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18049    LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18050
18051    if test -n "$svn_berkeley_db_header"; then
18052      SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18053      svn_db_header="#include <$svn_berkeley_db_header>"
18054    else
18055      SVN_DB_HEADER="#include <apu_want.h>"
18056      svn_db_header="#define APU_WANT_DB
18057#include <apu_want.h>"
18058    fi
18059
18060
18061
18062    if test "$cross_compiling" = yes; then :
18063  svn_have_berkeley_db=yes
18064
18065else
18066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067/* end confdefs.h.  */
18068
18069#include <string.h>
18070#include <stdlib.h>
18071$svn_db_header
18072
18073int main ()
18074{
18075  int major, minor, patch;
18076
18077  db_version (&major, &minor, &patch);
18078
18079  /* Sanity check: ensure that db.h constants actually match the db library */
18080  if (major != DB_VERSION_MAJOR
18081      || minor != DB_VERSION_MINOR
18082      || patch != DB_VERSION_PATCH)
18083    exit (1);
18084
18085  /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18086     and newer are under the AGPL, and we want use of AGPL dependencies to be
18087     opt-in. */
18088  if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18089    exit(2);
18090
18091  /* Run-time check:  ensure the library claims to be the correct version. */
18092
18093  if (major < $svn_check_berkeley_db_major)
18094    exit (1);
18095  if (major > $svn_check_berkeley_db_major)
18096    exit (0);
18097
18098  if (minor < $svn_check_berkeley_db_minor)
18099    exit (1);
18100  if (minor > $svn_check_berkeley_db_minor)
18101    exit (0);
18102
18103  if (patch >= $svn_check_berkeley_db_patch)
18104    exit (0);
18105  else
18106    exit (1);
18107}
18108
18109_ACEOF
18110if ac_fn_c_try_run "$LINENO"; then :
18111  svn_have_berkeley_db=yes
18112else
18113  rc=$?
18114       svn_have_berkeley_db=no
18115       if test $rc = 2; then
18116         svn_have_berkeley_db=no6
18117       fi
18118fi
18119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18120  conftest.$ac_objext conftest.beam conftest.$ac_ext
18121fi
18122
18123
18124  CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
18125  LIBS="$svn_lib_berkeley_db_try_save_libs"
18126
18127
18128    if test "$svn_have_berkeley_db" = "yes"; then
18129      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130$as_echo "yes" >&6; }
18131      svn_lib_berkeley_db=yes
18132    else
18133      if test "$svn_have_berkeley_db" = "no6"; then
18134        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
18135$as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
18136        # A warning will be printed at the end of configure.ac.
18137      else
18138        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139$as_echo "no" >&6; }
18140      fi
18141      svn_lib_berkeley_db=no
18142      if test "$bdb_status" = "required"; then
18143        as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
18144      fi
18145    fi
18146  fi
18147
18148
18149
18150cat >>confdefs.h <<_ACEOF
18151#define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
18152_ACEOF
18153
18154
18155cat >>confdefs.h <<_ACEOF
18156#define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
18157_ACEOF
18158
18159
18160cat >>confdefs.h <<_ACEOF
18161#define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
18162_ACEOF
18163
18164
18165
18166
18167
18168
18169
18170# Check whether --with-sasl was given.
18171if test "${with_sasl+set}" = set; then :
18172  withval=$with_sasl;
18173    with_sasl="$withval"
18174    required="yes"
18175
18176else
18177
18178    with_sasl="yes"
18179    required="no"
18180
18181fi
18182
18183
18184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
18185$as_echo_n "checking whether to look for SASL... " >&6; }
18186
18187  if test "${with_sasl}" = "no"; then
18188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189$as_echo "no" >&6; }
18190    svn_lib_sasl=no
18191  else
18192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193$as_echo "yes" >&6; }
18194    saved_LDFLAGS="$LDFLAGS"
18195    saved_CPPFLAGS="$CPPFLAGS"
18196
18197    if test "$with_sasl" = "yes"; then
18198      { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
18199$as_echo "$as_me: Looking in default locations" >&6;}
18200      ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18201if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18202  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18203if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18205$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18206if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18207  $as_echo_n "(cached) " >&6
18208else
18209  ac_check_lib_save_LIBS=$LIBS
18210LIBS="-lsasl2  $LIBS"
18211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212/* end confdefs.h.  */
18213
18214/* Override any GCC internal prototype to avoid an error.
18215   Use char because int might match the return type of a GCC
18216   builtin and then its argument prototype would still apply.  */
18217#ifdef __cplusplus
18218extern "C"
18219#endif
18220char prop_get ();
18221int
18222main ()
18223{
18224return prop_get ();
18225  ;
18226  return 0;
18227}
18228_ACEOF
18229if ac_fn_c_try_link "$LINENO"; then :
18230  ac_cv_lib_sasl2_prop_get=yes
18231else
18232  ac_cv_lib_sasl2_prop_get=no
18233fi
18234rm -f core conftest.err conftest.$ac_objext \
18235    conftest$ac_exeext conftest.$ac_ext
18236LIBS=$ac_check_lib_save_LIBS
18237fi
18238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18239$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18240if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18241  svn_lib_sasl=yes
18242else
18243  svn_lib_sasl=no
18244fi
18245
18246else
18247  svn_lib_sasl=no
18248fi
18249
18250
18251else
18252  svn_lib_sasl=no
18253fi
18254
18255
18256      if test "$svn_lib_sasl" = "no"; then
18257        with_sasl="/usr/local"
18258      fi
18259    else
18260      svn_lib_sasl=no
18261    fi
18262
18263    if test "$svn_lib_sasl" = "no"; then
18264      SVN_SASL_INCLUDES="-I${with_sasl}/include"
18265      CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
18266      LDFLAGS="$LDFLAGS `
18267  input_flags="-L${with_sasl}/lib"
18268  output_flags=""
18269  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18270  for flag in $input_flags; do
18271    filter="no"
18272    for dir in $filtered_dirs; do
18273      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18274        filter="yes"
18275        break
18276      fi
18277    done
18278    if test "$filter" = "no"; then
18279      output_flags="$output_flags $flag"
18280    fi
18281  done
18282  if test -n "$output_flags"; then
18283    printf "%s" "${output_flags# }"
18284  fi
18285`"
18286
18287      ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18288if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18289  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18290if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18292$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18293if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18294  $as_echo_n "(cached) " >&6
18295else
18296  ac_check_lib_save_LIBS=$LIBS
18297LIBS="-lsasl2  $LIBS"
18298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299/* end confdefs.h.  */
18300
18301/* Override any GCC internal prototype to avoid an error.
18302   Use char because int might match the return type of a GCC
18303   builtin and then its argument prototype would still apply.  */
18304#ifdef __cplusplus
18305extern "C"
18306#endif
18307char prop_get ();
18308int
18309main ()
18310{
18311return prop_get ();
18312  ;
18313  return 0;
18314}
18315_ACEOF
18316if ac_fn_c_try_link "$LINENO"; then :
18317  ac_cv_lib_sasl2_prop_get=yes
18318else
18319  ac_cv_lib_sasl2_prop_get=no
18320fi
18321rm -f core conftest.err conftest.$ac_objext \
18322    conftest$ac_exeext conftest.$ac_ext
18323LIBS=$ac_check_lib_save_LIBS
18324fi
18325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18326$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18327if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18328  svn_lib_sasl=yes
18329else
18330  svn_lib_sasl=no
18331fi
18332
18333else
18334  svn_lib_sasl=no
18335fi
18336
18337
18338else
18339  svn_lib_sasl=no
18340fi
18341
18342
18343    fi
18344
18345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
18346$as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
18347    if test "$svn_lib_sasl" = "yes"; then
18348      SVN_SASL_LIBS="-lsasl2"
18349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18350$as_echo "yes" >&6; }
18351    else
18352      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18353$as_echo "no" >&6; }
18354
18355      if test "$required" = "yes"; then
18356                        as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
18357      fi
18358
18359      SVN_SASL_INCLUDES=""
18360      LDFLAGS="$saved_LDFLAGS"
18361    fi
18362
18363    CPPFLAGS="$saved_CPPFLAGS"
18364  fi
18365
18366
18367
18368
18369
18370if test "$svn_lib_sasl" = "yes"; then
18371
18372$as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
18373
18374fi
18375
18376
18377
18378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
18379$as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
18380  if test "$cross_compiling" = yes; then :
18381  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18383as_fn_error $? "cannot run test program while cross compiling
18384See \`config.log' for more details" "$LINENO" 5; }
18385else
18386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387/* end confdefs.h.  */
18388
18389    #include <mach-o/dyld.h>
18390    #include <mach-o/loader.h>
18391
18392int
18393main ()
18394{
18395
18396    const struct mach_header *header = _dyld_get_image_header(0);
18397    const char *name = _dyld_get_image_name(0);
18398    if (name && header) return 0;
18399    return 1;
18400
18401  ;
18402  return 0;
18403}
18404_ACEOF
18405if ac_fn_c_try_run "$LINENO"; then :
18406
18407
18408$as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
18409
18410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411$as_echo "yes" >&6; }
18412
18413else
18414
18415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416$as_echo "no" >&6; }
18417
18418fi
18419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18420  conftest.$ac_objext conftest.beam conftest.$ac_ext
18421fi
18422
18423
18424
18425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
18426$as_echo_n "checking for Mac OS property list utilities... " >&6; }
18427
18428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h.  */
18430
18431    #include <AvailabilityMacros.h>
18432    #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18433     || !defined(MAC_OS_X_VERSION_10_0) \
18434     || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
18435    #error ProperyList API unavailable.
18436    #endif
18437
18438int
18439main ()
18440{
18441
18442  ;
18443  return 0;
18444}
18445_ACEOF
18446if ac_fn_c_try_compile "$LINENO"; then :
18447
18448
18449    LIBS="$LIBS -framework CoreFoundation"
18450
18451$as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
18452
18453    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18454$as_echo "yes" >&6; }
18455
18456else
18457
18458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459$as_echo "no" >&6; }
18460
18461fi
18462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18463
18464
18465  # Check whether --enable-keychain was given.
18466if test "${enable_keychain+set}" = set; then :
18467  enableval=$enable_keychain; enable_keychain=$enableval
18468else
18469  enable_keychain=yes
18470fi
18471
18472
18473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
18474$as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
18475
18476  if test "$enable_keychain" = "yes"; then
18477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478/* end confdefs.h.  */
18479
18480      #include <AvailabilityMacros.h>
18481      #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18482       || !defined(MAC_OS_X_VERSION_10_2) \
18483       || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
18484      #error KeyChain API unavailable.
18485      #endif
18486
18487int
18488main ()
18489{
18490
18491  ;
18492  return 0;
18493}
18494_ACEOF
18495if ac_fn_c_try_compile "$LINENO"; then :
18496
18497            LIBS="$LIBS -framework Security"
18498      LIBS="$LIBS -framework CoreServices"
18499
18500$as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
18501
18502      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18503$as_echo "yes" >&6; }
18504
18505else
18506
18507      enable_keychain=no
18508      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509$as_echo "no" >&6; }
18510
18511fi
18512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18513  fi
18514
18515
18516
18517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
18518$as_echo_n "checking whether APR has support for DSOs... " >&6; }
18519old_CPPFLAGS="$CPPFLAGS"
18520CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
18521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522/* end confdefs.h.  */
18523
18524#include <apr.h>
18525#if !APR_HAS_DSO
18526#error
18527#endif
18528_ACEOF
18529if ac_fn_c_try_cpp "$LINENO"; then :
18530  APR_HAS_DSO="yes"
18531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18532$as_echo "yes" >&6; }
18533else
18534  APR_HAS_DSO="no"
18535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18536$as_echo "no" >&6; }
18537fi
18538rm -f conftest.err conftest.i conftest.$ac_ext
18539CPPFLAGS="$old_CPPFLAGS"
18540
18541
18542
18543if test -n "$PKG_CONFIG"; then
18544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
18545$as_echo_n "checking for D-Bus .pc file... " >&6; }
18546  if $PKG_CONFIG --exists dbus-1; then
18547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18548$as_echo "yes" >&6; }
18549    old_CPPFLAGS="$CPPFLAGS"
18550    old_LIBS="$LIBS"
18551    DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
18552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
18553$as_echo_n "checking D-Bus version... " >&6; }
18554    DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
18555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
18556$as_echo "$DBUS_VERSION" >&6; }
18557    # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
18558    if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
18559      DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
18560    fi
18561    DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
18562    CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
18563    LIBS="$LIBS $DBUS_LIBS"
18564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
18565$as_echo_n "checking for D-Bus... " >&6; }
18566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567/* end confdefs.h.  */
18568
18569#include <dbus/dbus.h>
18570int main()
18571{dbus_bus_get(DBUS_BUS_SESSION, NULL);}
18572_ACEOF
18573if ac_fn_c_try_link "$LINENO"; then :
18574  HAVE_DBUS="yes"
18575else
18576  HAVE_DBUS="no"
18577fi
18578rm -f core conftest.err conftest.$ac_objext \
18579    conftest$ac_exeext conftest.$ac_ext
18580    if test "$HAVE_DBUS" = "yes"; then
18581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18582$as_echo "yes" >&6; }
18583    else
18584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18585$as_echo "no" >&6; }
18586    fi
18587    CPPFLAGS="$old_CPPFLAGS"
18588    LIBS="$old_LIBS"
18589  else
18590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591$as_echo "no" >&6; }
18592  fi
18593fi
18594
18595
18596
18597# Check whether --with-gpg_agent was given.
18598if test "${with_gpg_agent+set}" = set; then :
18599  withval=$with_gpg_agent;
18600else
18601  with_gpg_agent=yes
18602fi
18603
18604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
18605$as_echo_n "checking whether to support GPG-Agent... " >&6; }
18606if test "$with_gpg_agent" = "yes"; then
18607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18608$as_echo "yes" >&6; }
18609
18610$as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
18611
18612else
18613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614$as_echo "no" >&6; }
18615fi
18616
18617
18618
18619
18620
18621# Check whether --with-gnome_keyring was given.
18622if test "${with_gnome_keyring+set}" = set; then :
18623  withval=$with_gnome_keyring; with_gnome_keyring="$withval"
18624else
18625  with_gnome_keyring=auto
18626fi
18627
18628
18629found_gnome_keyring=no
18630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
18631$as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
18632if test "$with_gnome_keyring" != "no"; then
18633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634$as_echo "yes" >&6; }
18635  if test "$svn_enable_shared" = "yes"; then
18636    if test "$APR_HAS_DSO" = "yes"; then
18637      if test -n "$PKG_CONFIG"; then
18638        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
18639$as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
18640        if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
18641          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18642$as_echo "yes" >&6; }
18643          old_CPPFLAGS="$CPPFLAGS"
18644          SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
18645          CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
18646          ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
18647if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
18648  found_gnome_keyring=yes
18649else
18650  found_gnome_keyring=no
18651fi
18652
18653
18654          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
18655$as_echo_n "checking for GNOME Keyring... " >&6; }
18656          if test "$found_gnome_keyring" = "yes"; then
18657            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18658$as_echo "yes" >&6; }
18659
18660$as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
18661
18662            CPPFLAGS="$old_CPPFLAGS"
18663            SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
18664          else
18665            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18666$as_echo "no" >&6; }
18667            if test "$with_gnome_keyring" = "yes"; then
18668              as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
18669            fi
18670          fi
18671        else
18672          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673$as_echo "no" >&6; }
18674          if test "$with_gnome_keyring" = "yes"; then
18675            as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
18676          else
18677            with_gnome_keyring=no
18678          fi
18679        fi
18680      else
18681        if test "$with_gnome_keyring" = "yes"; then
18682          as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
18683        else
18684          with_gnome_keyring=no
18685        fi
18686      fi
18687    else
18688      if test "$with_gnome_keyring" = "yes"; then
18689        as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
18690      else
18691        with_gnome_keyring=no
18692      fi
18693    fi
18694  else
18695    if test "$with_gnome_keyring" = "yes"; then
18696      as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
18697    else
18698      with_gnome_keyring=no
18699    fi
18700  fi
18701else
18702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703$as_echo "no" >&6; }
18704fi
18705
18706
18707
18708
18709# Check whether --enable-ev2-impl was given.
18710if test "${enable_ev2_impl+set}" = set; then :
18711  enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
18712else
18713  enable_ev2_impl=no
18714fi
18715
18716if test "$enable_ev2_impl" = "yes"; then
18717
18718$as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
18719
18720fi
18721
18722
18723
18724# Check whether --enable-nls was given.
18725if test "${enable_nls+set}" = set; then :
18726  enableval=$enable_nls; enable_nls=$enableval
18727else
18728  enable_nls=yes
18729fi
18730
18731
18732USE_NLS="no"
18733if test "$enable_nls" = "yes"; then
18734    # Extract the first word of "msgfmt", so it can be a program name with args.
18735set dummy msgfmt; ac_word=$2
18736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18737$as_echo_n "checking for $ac_word... " >&6; }
18738if ${ac_cv_path_MSGFMT+:} false; then :
18739  $as_echo_n "(cached) " >&6
18740else
18741  case $MSGFMT in
18742  [\\/]* | ?:[\\/]*)
18743  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18744  ;;
18745  *)
18746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18747for as_dir in $PATH
18748do
18749  IFS=$as_save_IFS
18750  test -z "$as_dir" && as_dir=.
18751    for ac_exec_ext in '' $ac_executable_extensions; do
18752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18753    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18755    break 2
18756  fi
18757done
18758  done
18759IFS=$as_save_IFS
18760
18761  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
18762  ;;
18763esac
18764fi
18765MSGFMT=$ac_cv_path_MSGFMT
18766if test -n "$MSGFMT"; then
18767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18768$as_echo "$MSGFMT" >&6; }
18769else
18770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771$as_echo "no" >&6; }
18772fi
18773
18774
18775  # Extract the first word of "msgmerge", so it can be a program name with args.
18776set dummy msgmerge; ac_word=$2
18777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18778$as_echo_n "checking for $ac_word... " >&6; }
18779if ${ac_cv_path_MSGMERGE+:} false; then :
18780  $as_echo_n "(cached) " >&6
18781else
18782  case $MSGMERGE in
18783  [\\/]* | ?:[\\/]*)
18784  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18785  ;;
18786  *)
18787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788for as_dir in $PATH
18789do
18790  IFS=$as_save_IFS
18791  test -z "$as_dir" && as_dir=.
18792    for ac_exec_ext in '' $ac_executable_extensions; do
18793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18796    break 2
18797  fi
18798done
18799  done
18800IFS=$as_save_IFS
18801
18802  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
18803  ;;
18804esac
18805fi
18806MSGMERGE=$ac_cv_path_MSGMERGE
18807if test -n "$MSGMERGE"; then
18808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18809$as_echo "$MSGMERGE" >&6; }
18810else
18811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812$as_echo "no" >&6; }
18813fi
18814
18815
18816  # Extract the first word of "xgettext", so it can be a program name with args.
18817set dummy xgettext; ac_word=$2
18818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18819$as_echo_n "checking for $ac_word... " >&6; }
18820if ${ac_cv_path_XGETTEXT+:} false; then :
18821  $as_echo_n "(cached) " >&6
18822else
18823  case $XGETTEXT in
18824  [\\/]* | ?:[\\/]*)
18825  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18826  ;;
18827  *)
18828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829for as_dir in $PATH
18830do
18831  IFS=$as_save_IFS
18832  test -z "$as_dir" && as_dir=.
18833    for ac_exec_ext in '' $ac_executable_extensions; do
18834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18837    break 2
18838  fi
18839done
18840  done
18841IFS=$as_save_IFS
18842
18843  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
18844  ;;
18845esac
18846fi
18847XGETTEXT=$ac_cv_path_XGETTEXT
18848if test -n "$XGETTEXT"; then
18849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18850$as_echo "$XGETTEXT" >&6; }
18851else
18852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853$as_echo "no" >&6; }
18854fi
18855
18856
18857  if test "$MSGFMT" != "none"; then
18858    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18859$as_echo_n "checking for library containing bindtextdomain... " >&6; }
18860if ${ac_cv_search_bindtextdomain+:} false; then :
18861  $as_echo_n "(cached) " >&6
18862else
18863  ac_func_search_save_LIBS=$LIBS
18864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865/* end confdefs.h.  */
18866
18867/* Override any GCC internal prototype to avoid an error.
18868   Use char because int might match the return type of a GCC
18869   builtin and then its argument prototype would still apply.  */
18870#ifdef __cplusplus
18871extern "C"
18872#endif
18873char bindtextdomain ();
18874int
18875main ()
18876{
18877return bindtextdomain ();
18878  ;
18879  return 0;
18880}
18881_ACEOF
18882for ac_lib in '' intl; do
18883  if test -z "$ac_lib"; then
18884    ac_res="none required"
18885  else
18886    ac_res=-l$ac_lib
18887    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18888  fi
18889  if ac_fn_c_try_link "$LINENO"; then :
18890  ac_cv_search_bindtextdomain=$ac_res
18891fi
18892rm -f core conftest.err conftest.$ac_objext \
18893    conftest$ac_exeext
18894  if ${ac_cv_search_bindtextdomain+:} false; then :
18895  break
18896fi
18897done
18898if ${ac_cv_search_bindtextdomain+:} false; then :
18899
18900else
18901  ac_cv_search_bindtextdomain=no
18902fi
18903rm conftest.$ac_ext
18904LIBS=$ac_func_search_save_LIBS
18905fi
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18907$as_echo "$ac_cv_search_bindtextdomain" >&6; }
18908ac_res=$ac_cv_search_bindtextdomain
18909if test "$ac_res" != no; then :
18910  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18911
18912else
18913
18914                    enable_nls="no"
18915
18916fi
18917
18918    if test "$enable_nls" = "no"; then
18919      # Destroy the cached result so we can test again
18920      unset ac_cv_search_bindtextdomain
18921      # On some systems, libintl needs libiconv to link properly,
18922      # so try again with -liconv.
18923      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18924$as_echo_n "checking for library containing bindtextdomain... " >&6; }
18925if ${ac_cv_search_bindtextdomain+:} false; then :
18926  $as_echo_n "(cached) " >&6
18927else
18928  ac_func_search_save_LIBS=$LIBS
18929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930/* end confdefs.h.  */
18931
18932/* Override any GCC internal prototype to avoid an error.
18933   Use char because int might match the return type of a GCC
18934   builtin and then its argument prototype would still apply.  */
18935#ifdef __cplusplus
18936extern "C"
18937#endif
18938char bindtextdomain ();
18939int
18940main ()
18941{
18942return bindtextdomain ();
18943  ;
18944  return 0;
18945}
18946_ACEOF
18947for ac_lib in '' intl; do
18948  if test -z "$ac_lib"; then
18949    ac_res="none required"
18950  else
18951    ac_res=-l$ac_lib
18952    LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
18953  fi
18954  if ac_fn_c_try_link "$LINENO"; then :
18955  ac_cv_search_bindtextdomain=$ac_res
18956fi
18957rm -f core conftest.err conftest.$ac_objext \
18958    conftest$ac_exeext
18959  if ${ac_cv_search_bindtextdomain+:} false; then :
18960  break
18961fi
18962done
18963if ${ac_cv_search_bindtextdomain+:} false; then :
18964
18965else
18966  ac_cv_search_bindtextdomain=no
18967fi
18968rm conftest.$ac_ext
18969LIBS=$ac_func_search_save_LIBS
18970fi
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18972$as_echo "$ac_cv_search_bindtextdomain" >&6; }
18973ac_res=$ac_cv_search_bindtextdomain
18974if test "$ac_res" != no; then :
18975  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18976
18977                      enable_nls="yes"
18978                      # This is here so that -liconv ends up in LIBS
18979                      # if it worked with -liconv.
18980                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
18981$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
18982if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
18983  $as_echo_n "(cached) " >&6
18984else
18985  ac_check_lib_save_LIBS=$LIBS
18986LIBS="-liconv  $LIBS"
18987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988/* end confdefs.h.  */
18989
18990/* Override any GCC internal prototype to avoid an error.
18991   Use char because int might match the return type of a GCC
18992   builtin and then its argument prototype would still apply.  */
18993#ifdef __cplusplus
18994extern "C"
18995#endif
18996char libiconv_open ();
18997int
18998main ()
18999{
19000return libiconv_open ();
19001  ;
19002  return 0;
19003}
19004_ACEOF
19005if ac_fn_c_try_link "$LINENO"; then :
19006  ac_cv_lib_iconv_libiconv_open=yes
19007else
19008  ac_cv_lib_iconv_libiconv_open=no
19009fi
19010rm -f core conftest.err conftest.$ac_objext \
19011    conftest$ac_exeext conftest.$ac_ext
19012LIBS=$ac_check_lib_save_LIBS
19013fi
19014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19015$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19016if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19017  cat >>confdefs.h <<_ACEOF
19018#define HAVE_LIBICONV 1
19019_ACEOF
19020
19021  LIBS="-liconv $LIBS"
19022
19023fi
19024
19025
19026else
19027
19028                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
19029$as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
19030                      enable_nls="no"
19031
19032fi
19033
19034    fi
19035    if test "$enable_nls" = "yes"; then
19036
19037$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19038
19039      USE_NLS="yes"
19040    fi
19041  fi
19042fi
19043
19044
19045
19046GETTEXT_CODESET=\#
19047NO_GETTEXT_CODESET=\#
19048if test $USE_NLS = "yes"; then
19049   for ac_func in bind_textdomain_codeset
19050do :
19051  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19052if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19053  cat >>confdefs.h <<_ACEOF
19054#define HAVE_BIND_TEXTDOMAIN_CODESET 1
19055_ACEOF
19056  GETTEXT_CODESET=""
19057else
19058   NO_GETTEXT_CODESET=""
19059fi
19060done
19061
19062fi
19063
19064
19065
19066# Check if we are using GNU gettext.
19067GNU_GETTEXT=no
19068MSGFMTFLAGS=''
19069if test $USE_NLS = "yes"; then
19070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
19071$as_echo_n "checking if we are using GNU gettext... " >&6; }
19072   if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
19073      GNU_GETTEXT=yes
19074      MSGFMTFLAGS='-c'
19075   fi
19076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
19077$as_echo "$GNU_GETTEXT" >&6; }
19078fi
19079
19080
19081
19082libmagic_found=no
19083
19084
19085# Check whether --with-libmagic was given.
19086if test "${with_libmagic+set}" = set; then :
19087  withval=$with_libmagic;
19088  if test "$withval" = "yes" ; then
19089    ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19090if test "x$ac_cv_header_magic_h" = xyes; then :
19091
19092      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19093$as_echo_n "checking for magic_open in -lmagic... " >&6; }
19094if ${ac_cv_lib_magic_magic_open+:} false; then :
19095  $as_echo_n "(cached) " >&6
19096else
19097  ac_check_lib_save_LIBS=$LIBS
19098LIBS="-lmagic  $LIBS"
19099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100/* end confdefs.h.  */
19101
19102/* Override any GCC internal prototype to avoid an error.
19103   Use char because int might match the return type of a GCC
19104   builtin and then its argument prototype would still apply.  */
19105#ifdef __cplusplus
19106extern "C"
19107#endif
19108char magic_open ();
19109int
19110main ()
19111{
19112return magic_open ();
19113  ;
19114  return 0;
19115}
19116_ACEOF
19117if ac_fn_c_try_link "$LINENO"; then :
19118  ac_cv_lib_magic_magic_open=yes
19119else
19120  ac_cv_lib_magic_magic_open=no
19121fi
19122rm -f core conftest.err conftest.$ac_objext \
19123    conftest$ac_exeext conftest.$ac_ext
19124LIBS=$ac_check_lib_save_LIBS
19125fi
19126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19127$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19128if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19129  libmagic_found="builtin"
19130fi
19131
19132
19133fi
19134
19135
19136    libmagic_prefix="the default locations"
19137  elif test "$withval" != "no"; then
19138    libmagic_prefix=$withval
19139    save_cppflags="$CPPFLAGS"
19140    CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
19141    for ac_header in magic.h
19142do :
19143  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19144if test "x$ac_cv_header_magic_h" = xyes; then :
19145  cat >>confdefs.h <<_ACEOF
19146#define HAVE_MAGIC_H 1
19147_ACEOF
19148
19149      save_ldflags="$LDFLAGS"
19150      LDFLAGS="-L$libmagic_prefix/lib"
19151      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19152$as_echo_n "checking for magic_open in -lmagic... " >&6; }
19153if ${ac_cv_lib_magic_magic_open+:} false; then :
19154  $as_echo_n "(cached) " >&6
19155else
19156  ac_check_lib_save_LIBS=$LIBS
19157LIBS="-lmagic  $LIBS"
19158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159/* end confdefs.h.  */
19160
19161/* Override any GCC internal prototype to avoid an error.
19162   Use char because int might match the return type of a GCC
19163   builtin and then its argument prototype would still apply.  */
19164#ifdef __cplusplus
19165extern "C"
19166#endif
19167char magic_open ();
19168int
19169main ()
19170{
19171return magic_open ();
19172  ;
19173  return 0;
19174}
19175_ACEOF
19176if ac_fn_c_try_link "$LINENO"; then :
19177  ac_cv_lib_magic_magic_open=yes
19178else
19179  ac_cv_lib_magic_magic_open=no
19180fi
19181rm -f core conftest.err conftest.$ac_objext \
19182    conftest$ac_exeext conftest.$ac_ext
19183LIBS=$ac_check_lib_save_LIBS
19184fi
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19186$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19187if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19188  libmagic_found="yes"
19189fi
19190
19191      LDFLAGS="$save_ldflags"
19192
19193fi
19194
19195done
19196
19197    CPPFLAGS="$save_cppflags"
19198  fi
19199  if test "$withval" != "no" && test "$libmagic_found" = "no"; then
19200    as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
19201  fi
19202
19203else
19204
19205  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19206if test "x$ac_cv_header_magic_h" = xyes; then :
19207
19208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19209$as_echo_n "checking for magic_open in -lmagic... " >&6; }
19210if ${ac_cv_lib_magic_magic_open+:} false; then :
19211  $as_echo_n "(cached) " >&6
19212else
19213  ac_check_lib_save_LIBS=$LIBS
19214LIBS="-lmagic  $LIBS"
19215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216/* end confdefs.h.  */
19217
19218/* Override any GCC internal prototype to avoid an error.
19219   Use char because int might match the return type of a GCC
19220   builtin and then its argument prototype would still apply.  */
19221#ifdef __cplusplus
19222extern "C"
19223#endif
19224char magic_open ();
19225int
19226main ()
19227{
19228return magic_open ();
19229  ;
19230  return 0;
19231}
19232_ACEOF
19233if ac_fn_c_try_link "$LINENO"; then :
19234  ac_cv_lib_magic_magic_open=yes
19235else
19236  ac_cv_lib_magic_magic_open=no
19237fi
19238rm -f core conftest.err conftest.$ac_objext \
19239    conftest$ac_exeext conftest.$ac_ext
19240LIBS=$ac_check_lib_save_LIBS
19241fi
19242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19243$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19244if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19245  libmagic_found="builtin"
19246fi
19247
19248
19249fi
19250
19251
19252
19253fi
19254
19255
19256if test "$libmagic_found" != "no"; then
19257
19258$as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
19259
19260  SVN_MAGIC_LIBS="-lmagic"
19261fi
19262
19263if test "$libmagic_found" = "yes"; then
19264  SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
19265  LDFLAGS="$LDFLAGS `
19266  input_flags="-L$libmagic_prefix/lib"
19267  output_flags=""
19268  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19269  for flag in $input_flags; do
19270    filter="no"
19271    for dir in $filtered_dirs; do
19272      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19273        filter="yes"
19274        break
19275      fi
19276    done
19277    if test "$filter" = "no"; then
19278      output_flags="$output_flags $flag"
19279    fi
19280  done
19281  if test -n "$output_flags"; then
19282    printf "%s" "${output_flags# }"
19283  fi
19284`"
19285fi
19286
19287
19288
19289
19290
19291
19292# Check whether --with-kwallet was given.
19293if test "${with_kwallet+set}" = set; then :
19294  withval=$with_kwallet; svn_lib_kwallet="$withval"
19295else
19296  svn_lib_kwallet=no
19297fi
19298
19299
19300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
19301$as_echo_n "checking whether to look for KWallet... " >&6; }
19302  if test "$svn_lib_kwallet" != "no"; then
19303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19304$as_echo "yes" >&6; }
19305    if test "$svn_enable_shared" = "yes"; then
19306      if test "$APR_HAS_DSO" = "yes"; then
19307        if test -n "$PKG_CONFIG"; then
19308          if test "$HAVE_DBUS" = "yes"; then
19309            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
19310$as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
19311            if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
19312              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313$as_echo "yes" >&6; }
19314              if test "$svn_lib_kwallet" != "yes"; then
19315                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
19316$as_echo_n "checking for kde4-config... " >&6; }
19317                KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
19318                if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
19319                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19320$as_echo "yes" >&6; }
19321                else
19322                  KDE4_CONFIG=""
19323                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324$as_echo "no" >&6; }
19325                fi
19326              else
19327                # Extract the first word of "kde4-config", so it can be a program name with args.
19328set dummy kde4-config; ac_word=$2
19329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19330$as_echo_n "checking for $ac_word... " >&6; }
19331if ${ac_cv_path_KDE4_CONFIG+:} false; then :
19332  $as_echo_n "(cached) " >&6
19333else
19334  case $KDE4_CONFIG in
19335  [\\/]* | ?:[\\/]*)
19336  ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
19337  ;;
19338  *)
19339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19340for as_dir in $PATH
19341do
19342  IFS=$as_save_IFS
19343  test -z "$as_dir" && as_dir=.
19344    for ac_exec_ext in '' $ac_executable_extensions; do
19345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19346    ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19348    break 2
19349  fi
19350done
19351  done
19352IFS=$as_save_IFS
19353
19354  ;;
19355esac
19356fi
19357KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
19358if test -n "$KDE4_CONFIG"; then
19359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
19360$as_echo "$KDE4_CONFIG" >&6; }
19361else
19362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19363$as_echo "no" >&6; }
19364fi
19365
19366
19367              fi
19368              if test -n "$KDE4_CONFIG"; then
19369                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
19370$as_echo_n "checking for KWallet... " >&6; }
19371                old_CXXFLAGS="$CXXFLAGS"
19372                old_LDFLAGS="$LDFLAGS"
19373                old_LIBS="$LIBS"
19374                for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
19375                  if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
19376                    CPPFLAGS="$CPPFLAGS $d"
19377                  fi
19378                done
19379                qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
19380                kde_dir="`$KDE4_CONFIG --prefix`"
19381                SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
19382                qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
19383                SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
19384                CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
19385                LIBS="$LIBS $SVN_KWALLET_LIBS"
19386                qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
19387                kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
19388                LDFLAGS="$old_LDFLAGS `
19389  input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix"
19390  output_flags=""
19391  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19392  for flag in $input_flags; do
19393    filter="no"
19394    for dir in $filtered_dirs; do
19395      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19396        filter="yes"
19397        break
19398      fi
19399    done
19400    if test "$filter" = "no"; then
19401      output_flags="$output_flags $flag"
19402    fi
19403  done
19404  if test -n "$output_flags"; then
19405    printf "%s" "${output_flags# }"
19406  fi
19407`"
19408                ac_ext=cpp
19409ac_cpp='$CXXCPP $CPPFLAGS'
19410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19413
19414                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415/* end confdefs.h.  */
19416
19417#include <kwallet.h>
19418int main()
19419{KWallet::Wallet::walletList();}
19420_ACEOF
19421if ac_fn_cxx_try_link "$LINENO"; then :
19422  svn_lib_kwallet="yes"
19423else
19424  svn_lib_kwallet="no"
19425fi
19426rm -f core conftest.err conftest.$ac_objext \
19427    conftest$ac_exeext conftest.$ac_ext
19428                ac_ext=c
19429ac_cpp='$CPP $CPPFLAGS'
19430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432ac_compiler_gnu=$ac_cv_c_compiler_gnu
19433
19434                if test "$svn_lib_kwallet" = "yes"; then
19435                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436$as_echo "yes" >&6; }
19437                  CXXFLAGS="$old_CXXFLAGS"
19438                  LIBS="$old_LIBS"
19439                else
19440                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441$as_echo "no" >&6; }
19442                  as_fn_error $? "cannot find KWallet" "$LINENO" 5
19443                fi
19444              else
19445                as_fn_error $? "cannot find kde4-config" "$LINENO" 5
19446              fi
19447            else
19448              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449$as_echo "no" >&6; }
19450              as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
19451            fi
19452          else
19453            as_fn_error $? "cannot find D-Bus" "$LINENO" 5
19454          fi
19455        else
19456          as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19457        fi
19458      else
19459        as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
19460      fi
19461    else
19462      as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
19463    fi
19464  else
19465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19466$as_echo "no" >&6; }
19467  fi
19468
19469
19470
19471
19472if test "$svn_lib_kwallet" = "yes"; then
19473
19474$as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
19475
19476fi
19477
19478# Check whether --enable-plaintext-password-storage was given.
19479if test "${enable_plaintext_password_storage+set}" = set; then :
19480  enableval=$enable_plaintext_password_storage;
19481   if test "$enableval" = "no"; then
19482      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
19483$as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
19484
19485$as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
19486
19487   fi
19488
19489fi
19490
19491
19492
19493INSTALL_STATIC_RULES="install-bin install-docs"
19494INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
19495INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
19496BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
19497
19498if test "$svn_lib_berkeley_db" = "yes"; then
19499  BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
19500  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
19501  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
19502  BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
19503  BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
19504fi
19505
19506if test "$svn_lib_serf" = "yes"; then
19507  BUILD_RULES="$BUILD_RULES serf-lib"
19508  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
19509  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
19510fi
19511
19512if test "$svn_lib_kwallet" = "yes"; then
19513  BUILD_RULES="$BUILD_RULES kwallet-lib"
19514  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
19515  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
19516fi
19517
19518if test "$found_gnome_keyring" = "yes"; then
19519  BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
19520  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
19521  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
19522fi
19523
19524if test "$USE_NLS" = "yes"; then
19525  BUILD_RULES="$BUILD_RULES locale"
19526  INSTALL_RULES="$INSTALL_RULES install-locale"
19527fi
19528
19529
19530
19531
19532
19533
19534
19535
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19537$as_echo_n "checking for ANSI C header files... " >&6; }
19538if ${ac_cv_header_stdc+:} false; then :
19539  $as_echo_n "(cached) " >&6
19540else
19541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542/* end confdefs.h.  */
19543#include <stdlib.h>
19544#include <stdarg.h>
19545#include <string.h>
19546#include <float.h>
19547
19548int
19549main ()
19550{
19551
19552  ;
19553  return 0;
19554}
19555_ACEOF
19556if ac_fn_c_try_compile "$LINENO"; then :
19557  ac_cv_header_stdc=yes
19558else
19559  ac_cv_header_stdc=no
19560fi
19561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562
19563if test $ac_cv_header_stdc = yes; then
19564  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566/* end confdefs.h.  */
19567#include <string.h>
19568
19569_ACEOF
19570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19571  $EGREP "memchr" >/dev/null 2>&1; then :
19572
19573else
19574  ac_cv_header_stdc=no
19575fi
19576rm -f conftest*
19577
19578fi
19579
19580if test $ac_cv_header_stdc = yes; then
19581  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583/* end confdefs.h.  */
19584#include <stdlib.h>
19585
19586_ACEOF
19587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588  $EGREP "free" >/dev/null 2>&1; then :
19589
19590else
19591  ac_cv_header_stdc=no
19592fi
19593rm -f conftest*
19594
19595fi
19596
19597if test $ac_cv_header_stdc = yes; then
19598  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19599  if test "$cross_compiling" = yes; then :
19600  :
19601else
19602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603/* end confdefs.h.  */
19604#include <ctype.h>
19605#include <stdlib.h>
19606#if ((' ' & 0x0FF) == 0x020)
19607# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19608# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19609#else
19610# define ISLOWER(c) \
19611		   (('a' <= (c) && (c) <= 'i') \
19612		     || ('j' <= (c) && (c) <= 'r') \
19613		     || ('s' <= (c) && (c) <= 'z'))
19614# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19615#endif
19616
19617#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19618int
19619main ()
19620{
19621  int i;
19622  for (i = 0; i < 256; i++)
19623    if (XOR (islower (i), ISLOWER (i))
19624	|| toupper (i) != TOUPPER (i))
19625      return 2;
19626  return 0;
19627}
19628_ACEOF
19629if ac_fn_c_try_run "$LINENO"; then :
19630
19631else
19632  ac_cv_header_stdc=no
19633fi
19634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19635  conftest.$ac_objext conftest.beam conftest.$ac_ext
19636fi
19637
19638fi
19639fi
19640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19641$as_echo "$ac_cv_header_stdc" >&6; }
19642if test $ac_cv_header_stdc = yes; then
19643
19644$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19645
19646fi
19647
19648
19649
19650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19651$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19652if ${ac_cv_c_const+:} false; then :
19653  $as_echo_n "(cached) " >&6
19654else
19655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656/* end confdefs.h.  */
19657
19658int
19659main ()
19660{
19661
19662#ifndef __cplusplus
19663  /* Ultrix mips cc rejects this sort of thing.  */
19664  typedef int charset[2];
19665  const charset cs = { 0, 0 };
19666  /* SunOS 4.1.1 cc rejects this.  */
19667  char const *const *pcpcc;
19668  char **ppc;
19669  /* NEC SVR4.0.2 mips cc rejects this.  */
19670  struct point {int x, y;};
19671  static struct point const zero = {0,0};
19672  /* AIX XL C 1.02.0.0 rejects this.
19673     It does not let you subtract one const X* pointer from another in
19674     an arm of an if-expression whose if-part is not a constant
19675     expression */
19676  const char *g = "string";
19677  pcpcc = &g + (g ? g-g : 0);
19678  /* HPUX 7.0 cc rejects these. */
19679  ++pcpcc;
19680  ppc = (char**) pcpcc;
19681  pcpcc = (char const *const *) ppc;
19682  { /* SCO 3.2v4 cc rejects this sort of thing.  */
19683    char tx;
19684    char *t = &tx;
19685    char const *s = 0 ? (char *) 0 : (char const *) 0;
19686
19687    *t++ = 0;
19688    if (s) return 0;
19689  }
19690  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19691    int x[] = {25, 17};
19692    const int *foo = &x[0];
19693    ++foo;
19694  }
19695  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19696    typedef const int *iptr;
19697    iptr p = 0;
19698    ++p;
19699  }
19700  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19701       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19702    struct s { int j; const int *ap[3]; } bx;
19703    struct s *b = &bx; b->j = 5;
19704  }
19705  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19706    const int foo = 10;
19707    if (!foo) return 0;
19708  }
19709  return !cs[0] && !zero.x;
19710#endif
19711
19712  ;
19713  return 0;
19714}
19715_ACEOF
19716if ac_fn_c_try_compile "$LINENO"; then :
19717  ac_cv_c_const=yes
19718else
19719  ac_cv_c_const=no
19720fi
19721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722fi
19723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19724$as_echo "$ac_cv_c_const" >&6; }
19725if test $ac_cv_c_const = no; then
19726
19727$as_echo "#define const /**/" >>confdefs.h
19728
19729fi
19730
19731
19732ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19733if test "x$ac_cv_type_size_t" = xyes; then :
19734
19735else
19736
19737cat >>confdefs.h <<_ACEOF
19738#define size_t unsigned int
19739_ACEOF
19740
19741fi
19742
19743
19744
19745
19746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19747$as_echo_n "checking for working memcmp... " >&6; }
19748if ${ac_cv_func_memcmp_working+:} false; then :
19749  $as_echo_n "(cached) " >&6
19750else
19751  if test "$cross_compiling" = yes; then :
19752  ac_cv_func_memcmp_working=no
19753else
19754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755/* end confdefs.h.  */
19756$ac_includes_default
19757int
19758main ()
19759{
19760
19761  /* Some versions of memcmp are not 8-bit clean.  */
19762  char c0 = '\100', c1 = '\200', c2 = '\201';
19763  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19764    return 1;
19765
19766  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19767     or more and with at least one buffer not starting on a 4-byte boundary.
19768     William Lewis provided this test program.   */
19769  {
19770    char foo[21];
19771    char bar[21];
19772    int i;
19773    for (i = 0; i < 4; i++)
19774      {
19775	char *a = foo + i;
19776	char *b = bar + i;
19777	strcpy (a, "--------01111111");
19778	strcpy (b, "--------10000000");
19779	if (memcmp (a, b, 16) >= 0)
19780	  return 1;
19781      }
19782    return 0;
19783  }
19784
19785  ;
19786  return 0;
19787}
19788_ACEOF
19789if ac_fn_c_try_run "$LINENO"; then :
19790  ac_cv_func_memcmp_working=yes
19791else
19792  ac_cv_func_memcmp_working=no
19793fi
19794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19795  conftest.$ac_objext conftest.beam conftest.$ac_ext
19796fi
19797
19798fi
19799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19800$as_echo "$ac_cv_func_memcmp_working" >&6; }
19801test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19802  *" memcmp.$ac_objext "* ) ;;
19803  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19804 ;;
19805esac
19806
19807
19808
19809for ac_func in vprintf
19810do :
19811  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19812if test "x$ac_cv_func_vprintf" = xyes; then :
19813  cat >>confdefs.h <<_ACEOF
19814#define HAVE_VPRINTF 1
19815_ACEOF
19816
19817ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19818if test "x$ac_cv_func__doprnt" = xyes; then :
19819
19820$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19821
19822fi
19823
19824fi
19825done
19826
19827
19828
19829for ac_func in symlink readlink
19830do :
19831  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19832ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19833if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19834  cat >>confdefs.h <<_ACEOF
19835#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19836_ACEOF
19837
19838fi
19839done
19840
19841
19842for ac_header in sys/utsname.h
19843do :
19844  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19845if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
19846  cat >>confdefs.h <<_ACEOF
19847#define HAVE_SYS_UTSNAME_H 1
19848_ACEOF
19849 for ac_func in uname
19850do :
19851  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19852if test "x$ac_cv_func_uname" = xyes; then :
19853  cat >>confdefs.h <<_ACEOF
19854#define HAVE_UNAME 1
19855_ACEOF
19856
19857fi
19858done
19859
19860fi
19861
19862done
19863
19864
19865ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19866if test "x$ac_cv_header_termios_h" = xyes; then :
19867
19868  for ac_func in tcgetattr tcsetattr
19869do :
19870  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19871ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19872if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19873  cat >>confdefs.h <<_ACEOF
19874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875_ACEOF
19876
19877
19878$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
19879
19880
19881fi
19882done
19883
19884
19885fi
19886
19887
19888
19889
19890
19891# Check whether --with-openssl was given.
19892if test "${with_openssl+set}" = set; then :
19893  withval=$with_openssl;
19894fi
19895
19896
19897# Check whether --enable-debug was given.
19898if test "${enable_debug+set}" = set; then :
19899  enableval=$enable_debug;
19900    if test "$enableval" = "yes" ; then
19901      enable_debugging="yes"
19902    else
19903      enable_debugging="no"
19904    fi
19905
19906else
19907
19908    # Neither --enable-debug nor --disable-debug was passed.
19909    enable_debugging="maybe"
19910
19911fi
19912
19913
19914# Check whether --enable-optimize was given.
19915if test "${enable_optimize+set}" = set; then :
19916  enableval=$enable_optimize;
19917    if test "$enableval" = "yes" ; then
19918      enable_optimization="yes"
19919    else
19920      enable_optimization="no"
19921    fi
19922
19923else
19924
19925    # Neither --enable-optimize nor --disable-optimize was passed.
19926    enable_optimization="maybe"
19927
19928fi
19929
19930
19931# Check whether --enable-disallowing-of-undefined-references was given.
19932if test "${enable_disallowing_of_undefined_references+set}" = set; then :
19933  enableval=$enable_disallowing_of_undefined_references;
19934fi
19935
19936if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
19937  enable_disallowing_of_undefined_references="no"
19938fi
19939if test "$enable_disallowing_of_undefined_references" != "no"; then
19940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
19941$as_echo_n "checking for -Wl,--no-undefined... " >&6; }
19942  old_LDFLAGS="$LDFLAGS"
19943  LDFLAGS="$LDFLAGS -Wl,--no-undefined"
19944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945/* end confdefs.h.  */
19946int main(){;}
19947_ACEOF
19948if ac_fn_c_try_link "$LINENO"; then :
19949  svn_wl_no_undefined="yes"
19950else
19951  svn_wl_no_undefined="no"
19952fi
19953rm -f core conftest.err conftest.$ac_objext \
19954    conftest$ac_exeext conftest.$ac_ext
19955  LDFLAGS="$old_LDFLAGS"
19956  if test "$svn_wl_no_undefined" = "yes"; then
19957    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19958$as_echo "yes" >&6; }
19959    for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
19960      eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
19961    done
19962  else
19963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964$as_echo "no" >&6; }
19965    if test "$enable_disallowing_of_undefined_references" = "yes"; then
19966      as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
19967    fi
19968  fi
19969fi
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988# Check whether --enable-maintainer-mode was given.
19989if test "${enable_maintainer_mode+set}" = set; then :
19990  enableval=$enable_maintainer_mode;
19991    if test "$enableval" = "yes" ; then
19992      if test "$enable_debugging" = "no" ; then
19993        as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
19994      fi
19995      enable_debugging=yes
19996
19997                  if test "$GCC" = "yes"; then
19998        { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
19999$as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20000
20001
20002                CFLAGS_KEEP="$CFLAGS"
20003        CFLAGS=""
20004
20005
20006  _svn_xxflags__save="$CFLAGS"
20007  ac_ext=c
20008ac_cpp='$CPP $CPPFLAGS'
20009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011ac_compiler_gnu=$ac_cv_c_compiler_gnu
20012
20013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20014$as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20015  CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017/* end confdefs.h.  */
20018
20019_ACEOF
20020if ac_fn_c_try_compile "$LINENO"; then :
20021
20022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20023$as_echo "yes" >&6; }
20024
20025
20026else
20027
20028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029$as_echo "no" >&6; }
20030    CFLAGS="$_svn_xxflags__save"
20031
20032
20033fi
20034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035  ac_ext=c
20036ac_cpp='$CPP $CPPFLAGS'
20037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039ac_compiler_gnu=$ac_cv_c_compiler_gnu
20040
20041
20042
20043  _svn_xxflags__save="$CFLAGS"
20044  ac_ext=c
20045ac_cpp='$CPP $CPPFLAGS'
20046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20048ac_compiler_gnu=$ac_cv_c_compiler_gnu
20049
20050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20051$as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20052  CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054/* end confdefs.h.  */
20055
20056_ACEOF
20057if ac_fn_c_try_compile "$LINENO"; then :
20058
20059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20060$as_echo "yes" >&6; }
20061
20062
20063else
20064
20065    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20066$as_echo "no" >&6; }
20067    CFLAGS="$_svn_xxflags__save"
20068
20069
20070fi
20071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072  ac_ext=c
20073ac_cpp='$CPP $CPPFLAGS'
20074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20076ac_compiler_gnu=$ac_cv_c_compiler_gnu
20077
20078
20079
20080  _svn_xxflags__save="$CFLAGS"
20081  ac_ext=c
20082ac_cpp='$CPP $CPPFLAGS'
20083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086
20087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
20088$as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
20089  CFLAGS="-Wextra-tokens $CFLAGS"
20090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091/* end confdefs.h.  */
20092
20093_ACEOF
20094if ac_fn_c_try_compile "$LINENO"; then :
20095
20096    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20097$as_echo "yes" >&6; }
20098
20099
20100else
20101
20102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20103$as_echo "no" >&6; }
20104    CFLAGS="$_svn_xxflags__save"
20105
20106
20107fi
20108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109  ac_ext=c
20110ac_cpp='$CPP $CPPFLAGS'
20111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113ac_compiler_gnu=$ac_cv_c_compiler_gnu
20114
20115
20116
20117  _svn_xxflags__save="$CFLAGS"
20118  ac_ext=c
20119ac_cpp='$CPP $CPPFLAGS'
20120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122ac_compiler_gnu=$ac_cv_c_compiler_gnu
20123
20124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
20125$as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
20126  CFLAGS="-Wnewline-eof $CFLAGS"
20127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128/* end confdefs.h.  */
20129
20130_ACEOF
20131if ac_fn_c_try_compile "$LINENO"; then :
20132
20133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20134$as_echo "yes" >&6; }
20135
20136
20137else
20138
20139    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20140$as_echo "no" >&6; }
20141    CFLAGS="$_svn_xxflags__save"
20142
20143
20144fi
20145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146  ac_ext=c
20147ac_cpp='$CPP $CPPFLAGS'
20148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150ac_compiler_gnu=$ac_cv_c_compiler_gnu
20151
20152
20153
20154  _svn_xxflags__save="$CFLAGS"
20155  ac_ext=c
20156ac_cpp='$CPP $CPPFLAGS'
20157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159ac_compiler_gnu=$ac_cv_c_compiler_gnu
20160
20161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
20162$as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
20163  CFLAGS="-Wshorten-64-to-32 $CFLAGS"
20164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165/* end confdefs.h.  */
20166
20167_ACEOF
20168if ac_fn_c_try_compile "$LINENO"; then :
20169
20170    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20171$as_echo "yes" >&6; }
20172
20173
20174else
20175
20176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177$as_echo "no" >&6; }
20178    CFLAGS="$_svn_xxflags__save"
20179
20180
20181fi
20182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183  ac_ext=c
20184ac_cpp='$CPP $CPPFLAGS'
20185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187ac_compiler_gnu=$ac_cv_c_compiler_gnu
20188
20189
20190
20191  _svn_xxflags__save="$CFLAGS"
20192  ac_ext=c
20193ac_cpp='$CPP $CPPFLAGS'
20194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196ac_compiler_gnu=$ac_cv_c_compiler_gnu
20197
20198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
20199$as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
20200  CFLAGS="-Wold-style-definition $CFLAGS"
20201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202/* end confdefs.h.  */
20203
20204_ACEOF
20205if ac_fn_c_try_compile "$LINENO"; then :
20206
20207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20208$as_echo "yes" >&6; }
20209
20210
20211else
20212
20213    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20214$as_echo "no" >&6; }
20215    CFLAGS="$_svn_xxflags__save"
20216
20217
20218fi
20219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220  ac_ext=c
20221ac_cpp='$CPP $CPPFLAGS'
20222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20224ac_compiler_gnu=$ac_cv_c_compiler_gnu
20225
20226
20227
20228  _svn_xxflags__save="$CFLAGS"
20229  ac_ext=c
20230ac_cpp='$CPP $CPPFLAGS'
20231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233ac_compiler_gnu=$ac_cv_c_compiler_gnu
20234
20235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
20236$as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
20237  CFLAGS="-Wno-system-headers $CFLAGS"
20238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239/* end confdefs.h.  */
20240
20241_ACEOF
20242if ac_fn_c_try_compile "$LINENO"; then :
20243
20244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20245$as_echo "yes" >&6; }
20246
20247
20248else
20249
20250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20251$as_echo "no" >&6; }
20252    CFLAGS="$_svn_xxflags__save"
20253
20254
20255fi
20256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257  ac_ext=c
20258ac_cpp='$CPP $CPPFLAGS'
20259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20261ac_compiler_gnu=$ac_cv_c_compiler_gnu
20262
20263
20264
20265  _svn_xxflags__save="$CFLAGS"
20266  ac_ext=c
20267ac_cpp='$CPP $CPPFLAGS'
20268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270ac_compiler_gnu=$ac_cv_c_compiler_gnu
20271
20272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
20273$as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
20274  CFLAGS="-Wno-format-nonliteral $CFLAGS"
20275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276/* end confdefs.h.  */
20277
20278_ACEOF
20279if ac_fn_c_try_compile "$LINENO"; then :
20280
20281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20282$as_echo "yes" >&6; }
20283
20284
20285else
20286
20287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20288$as_echo "no" >&6; }
20289    CFLAGS="$_svn_xxflags__save"
20290
20291
20292fi
20293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294  ac_ext=c
20295ac_cpp='$CPP $CPPFLAGS'
20296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20298ac_compiler_gnu=$ac_cv_c_compiler_gnu
20299
20300
20301
20302        CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS"
20303        CFLAGS="$CFLAGS_KEEP"
20304
20305                CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long $CMAINTAINERFLAGS"
20306      fi
20307      if test "$GXX" = "yes"; then
20308        { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
20309$as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
20310
20311                CXXFLAGS_KEEP="$CXXFLAGS"
20312        CXXFLAGS=""
20313
20314
20315  _svn_xxflags__save="$CXXFLAGS"
20316  ac_ext=cpp
20317ac_cpp='$CXXCPP $CPPFLAGS'
20318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321
20322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
20323$as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
20324  CXXFLAGS="-Wextra-tokens $CXXFLAGS"
20325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326/* end confdefs.h.  */
20327
20328_ACEOF
20329if ac_fn_cxx_try_compile "$LINENO"; then :
20330
20331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20332$as_echo "yes" >&6; }
20333
20334
20335else
20336
20337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338$as_echo "no" >&6; }
20339    CXXFLAGS="$_svn_xxflags__save"
20340
20341
20342fi
20343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344  ac_ext=c
20345ac_cpp='$CPP $CPPFLAGS'
20346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20348ac_compiler_gnu=$ac_cv_c_compiler_gnu
20349
20350
20351
20352  _svn_xxflags__save="$CXXFLAGS"
20353  ac_ext=cpp
20354ac_cpp='$CXXCPP $CPPFLAGS'
20355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358
20359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
20360$as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
20361  CXXFLAGS="-Wnewline-eof $CXXFLAGS"
20362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363/* end confdefs.h.  */
20364
20365_ACEOF
20366if ac_fn_cxx_try_compile "$LINENO"; then :
20367
20368    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369$as_echo "yes" >&6; }
20370
20371
20372else
20373
20374    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375$as_echo "no" >&6; }
20376    CXXFLAGS="$_svn_xxflags__save"
20377
20378
20379fi
20380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20381  ac_ext=c
20382ac_cpp='$CPP $CPPFLAGS'
20383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20385ac_compiler_gnu=$ac_cv_c_compiler_gnu
20386
20387
20388
20389  _svn_xxflags__save="$CXXFLAGS"
20390  ac_ext=cpp
20391ac_cpp='$CXXCPP $CPPFLAGS'
20392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20395
20396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
20397$as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
20398  CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
20399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400/* end confdefs.h.  */
20401
20402_ACEOF
20403if ac_fn_cxx_try_compile "$LINENO"; then :
20404
20405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20406$as_echo "yes" >&6; }
20407
20408
20409else
20410
20411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20412$as_echo "no" >&6; }
20413    CXXFLAGS="$_svn_xxflags__save"
20414
20415
20416fi
20417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418  ac_ext=c
20419ac_cpp='$CPP $CPPFLAGS'
20420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20422ac_compiler_gnu=$ac_cv_c_compiler_gnu
20423
20424
20425
20426  _svn_xxflags__save="$CXXFLAGS"
20427  ac_ext=cpp
20428ac_cpp='$CXXCPP $CPPFLAGS'
20429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20432
20433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
20434$as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
20435  CXXFLAGS="-Wno-system-headers $CXXFLAGS"
20436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437/* end confdefs.h.  */
20438
20439_ACEOF
20440if ac_fn_cxx_try_compile "$LINENO"; then :
20441
20442    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20443$as_echo "yes" >&6; }
20444
20445
20446else
20447
20448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20449$as_echo "no" >&6; }
20450    CXXFLAGS="$_svn_xxflags__save"
20451
20452
20453fi
20454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455  ac_ext=c
20456ac_cpp='$CPP $CPPFLAGS'
20457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460
20461
20462
20463        CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS"
20464        CXXFLAGS="$CXXFLAGS_KEEP"
20465
20466                CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
20467      fi
20468    fi
20469
20470fi
20471
20472
20473if test "$enable_debugging" = "yes" ; then
20474      if test "$enable_optimization" != "yes"; then
20475    { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
20476$as_echo "$as_me: Disabling optimizations for debugging" >&6;}
20477    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20478    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20479  fi
20480    if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20481    { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
20482$as_echo "$as_me: Enabling debugging for C" >&6;}
20483    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20484
20485  _svn_xxflags__save="$CFLAGS"
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
20493$as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
20494  CFLAGS="-fno-inline $CFLAGS"
20495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496/* end confdefs.h.  */
20497
20498_ACEOF
20499if ac_fn_c_try_compile "$LINENO"; then :
20500
20501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20502$as_echo "yes" >&6; }
20503
20504
20505else
20506
20507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20508$as_echo "no" >&6; }
20509    CFLAGS="$_svn_xxflags__save"
20510
20511
20512fi
20513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514  ac_ext=c
20515ac_cpp='$CPP $CPPFLAGS'
20516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20518ac_compiler_gnu=$ac_cv_c_compiler_gnu
20519
20520
20521
20522  _svn_xxflags__save="$CFLAGS"
20523  ac_ext=c
20524ac_cpp='$CPP $CPPFLAGS'
20525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20527ac_compiler_gnu=$ac_cv_c_compiler_gnu
20528
20529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
20530$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
20531  CFLAGS="-fno-omit-frame-pointer $CFLAGS"
20532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533/* end confdefs.h.  */
20534
20535_ACEOF
20536if ac_fn_c_try_compile "$LINENO"; then :
20537
20538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20539$as_echo "yes" >&6; }
20540
20541
20542else
20543
20544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20545$as_echo "no" >&6; }
20546    CFLAGS="$_svn_xxflags__save"
20547
20548
20549fi
20550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551  ac_ext=c
20552ac_cpp='$CPP $CPPFLAGS'
20553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556
20557
20558
20559  _svn_xxflags__save="$CFLAGS"
20560  ac_ext=c
20561ac_cpp='$CPP $CPPFLAGS'
20562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565
20566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
20567$as_echo_n "checking if $CC accepts -g3... " >&6; }
20568  CFLAGS="-g3 $CFLAGS"
20569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570/* end confdefs.h.  */
20571
20572_ACEOF
20573if ac_fn_c_try_compile "$LINENO"; then :
20574
20575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20576$as_echo "yes" >&6; }
20577
20578
20579else
20580
20581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20582$as_echo "no" >&6; }
20583    CFLAGS="$_svn_xxflags__save"
20584
20585
20586  _svn_xxflags__save="$CFLAGS"
20587  ac_ext=c
20588ac_cpp='$CPP $CPPFLAGS'
20589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591ac_compiler_gnu=$ac_cv_c_compiler_gnu
20592
20593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
20594$as_echo_n "checking if $CC accepts -g2... " >&6; }
20595  CFLAGS="-g2 $CFLAGS"
20596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597/* end confdefs.h.  */
20598
20599_ACEOF
20600if ac_fn_c_try_compile "$LINENO"; then :
20601
20602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20603$as_echo "yes" >&6; }
20604
20605
20606else
20607
20608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609$as_echo "no" >&6; }
20610    CFLAGS="$_svn_xxflags__save"
20611
20612
20613  _svn_xxflags__save="$CFLAGS"
20614  ac_ext=c
20615ac_cpp='$CPP $CPPFLAGS'
20616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20618ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619
20620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
20621$as_echo_n "checking if $CC accepts -g... " >&6; }
20622  CFLAGS="-g $CFLAGS"
20623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624/* end confdefs.h.  */
20625
20626_ACEOF
20627if ac_fn_c_try_compile "$LINENO"; then :
20628
20629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20630$as_echo "yes" >&6; }
20631
20632
20633else
20634
20635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636$as_echo "no" >&6; }
20637    CFLAGS="$_svn_xxflags__save"
20638
20639
20640fi
20641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642  ac_ext=c
20643ac_cpp='$CPP $CPPFLAGS'
20644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20646ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647
20648
20649
20650fi
20651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652  ac_ext=c
20653ac_cpp='$CPP $CPPFLAGS'
20654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656ac_compiler_gnu=$ac_cv_c_compiler_gnu
20657
20658
20659
20660fi
20661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662  ac_ext=c
20663ac_cpp='$CPP $CPPFLAGS'
20664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669  fi
20670  if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20671    { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
20672$as_echo "$as_me: Enabling debugging for C++" >&6;}
20673    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20674
20675  _svn_xxflags__save="$CXXFLAGS"
20676  ac_ext=cpp
20677ac_cpp='$CXXCPP $CPPFLAGS'
20678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681
20682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
20683$as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
20684  CXXFLAGS="-fno-inline $CXXFLAGS"
20685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20686/* end confdefs.h.  */
20687
20688_ACEOF
20689if ac_fn_cxx_try_compile "$LINENO"; then :
20690
20691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20692$as_echo "yes" >&6; }
20693
20694
20695else
20696
20697    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20698$as_echo "no" >&6; }
20699    CXXFLAGS="$_svn_xxflags__save"
20700
20701
20702fi
20703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704  ac_ext=c
20705ac_cpp='$CPP $CPPFLAGS'
20706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710
20711
20712  _svn_xxflags__save="$CXXFLAGS"
20713  ac_ext=cpp
20714ac_cpp='$CXXCPP $CPPFLAGS'
20715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20718
20719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
20720$as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
20721  CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
20722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723/* end confdefs.h.  */
20724
20725_ACEOF
20726if ac_fn_cxx_try_compile "$LINENO"; then :
20727
20728    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20729$as_echo "yes" >&6; }
20730
20731
20732else
20733
20734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735$as_echo "no" >&6; }
20736    CXXFLAGS="$_svn_xxflags__save"
20737
20738
20739fi
20740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741  ac_ext=c
20742ac_cpp='$CPP $CPPFLAGS'
20743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745ac_compiler_gnu=$ac_cv_c_compiler_gnu
20746
20747
20748
20749  _svn_xxflags__save="$CXXFLAGS"
20750  ac_ext=cpp
20751ac_cpp='$CXXCPP $CPPFLAGS'
20752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20755
20756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
20757$as_echo_n "checking if $CXX accepts -g3... " >&6; }
20758  CXXFLAGS="-g3 $CXXFLAGS"
20759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760/* end confdefs.h.  */
20761
20762_ACEOF
20763if ac_fn_cxx_try_compile "$LINENO"; then :
20764
20765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20766$as_echo "yes" >&6; }
20767
20768
20769else
20770
20771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772$as_echo "no" >&6; }
20773    CXXFLAGS="$_svn_xxflags__save"
20774
20775
20776  _svn_xxflags__save="$CXXFLAGS"
20777  ac_ext=cpp
20778ac_cpp='$CXXCPP $CPPFLAGS'
20779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20782
20783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
20784$as_echo_n "checking if $CXX accepts -g2... " >&6; }
20785  CXXFLAGS="-g2 $CXXFLAGS"
20786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787/* end confdefs.h.  */
20788
20789_ACEOF
20790if ac_fn_cxx_try_compile "$LINENO"; then :
20791
20792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20793$as_echo "yes" >&6; }
20794
20795
20796else
20797
20798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799$as_echo "no" >&6; }
20800    CXXFLAGS="$_svn_xxflags__save"
20801
20802
20803  _svn_xxflags__save="$CXXFLAGS"
20804  ac_ext=cpp
20805ac_cpp='$CXXCPP $CPPFLAGS'
20806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809
20810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
20811$as_echo_n "checking if $CXX accepts -g... " >&6; }
20812  CXXFLAGS="-g $CXXFLAGS"
20813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814/* end confdefs.h.  */
20815
20816_ACEOF
20817if ac_fn_cxx_try_compile "$LINENO"; then :
20818
20819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20820$as_echo "yes" >&6; }
20821
20822
20823else
20824
20825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826$as_echo "no" >&6; }
20827    CXXFLAGS="$_svn_xxflags__save"
20828
20829
20830fi
20831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20832  ac_ext=cpp
20833ac_cpp='$CXXCPP $CPPFLAGS'
20834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20837
20838
20839
20840fi
20841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842  ac_ext=cpp
20843ac_cpp='$CXXCPP $CPPFLAGS'
20844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20847
20848
20849
20850fi
20851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852  ac_ext=c
20853ac_cpp='$CPP $CPPFLAGS'
20854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
20858
20859  fi
20860      CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
20861  CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
20862elif test "$enable_debugging" = "no" ; then
20863  { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
20864$as_echo "$as_me: Disabling debugging" >&6;}
20865  CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20866  CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20867    CFLAGS="$CFLAGS -DNDEBUG"
20868  CXXFLAGS="$CXXFLAGS -DNDEBUG"
20869# elif test "$enable_debugging" = "maybe" ; then
20870#   # do nothing
20871fi
20872
20873if test "$enable_optimization" = "yes"; then
20874    if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
20875    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20876    if test "$enable_debugging" = "yes"; then
20877      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
20878$as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
20879
20880  _svn_xxflags__save="$CFLAGS"
20881  ac_ext=c
20882ac_cpp='$CPP $CPPFLAGS'
20883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
20888$as_echo_n "checking if $CC accepts -O1... " >&6; }
20889  CFLAGS="-O1 $CFLAGS"
20890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891/* end confdefs.h.  */
20892
20893_ACEOF
20894if ac_fn_c_try_compile "$LINENO"; then :
20895
20896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20897$as_echo "yes" >&6; }
20898
20899
20900else
20901
20902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20903$as_echo "no" >&6; }
20904    CFLAGS="$_svn_xxflags__save"
20905
20906
20907  _svn_xxflags__save="$CFLAGS"
20908  ac_ext=c
20909ac_cpp='$CPP $CPPFLAGS'
20910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
20915$as_echo_n "checking if $CC accepts -O... " >&6; }
20916  CFLAGS="-O $CFLAGS"
20917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20918/* end confdefs.h.  */
20919
20920_ACEOF
20921if ac_fn_c_try_compile "$LINENO"; then :
20922
20923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924$as_echo "yes" >&6; }
20925
20926
20927else
20928
20929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20930$as_echo "no" >&6; }
20931    CFLAGS="$_svn_xxflags__save"
20932
20933
20934fi
20935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936  ac_ext=c
20937ac_cpp='$CPP $CPPFLAGS'
20938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941
20942
20943
20944fi
20945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946  ac_ext=c
20947ac_cpp='$CPP $CPPFLAGS'
20948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950ac_compiler_gnu=$ac_cv_c_compiler_gnu
20951
20952
20953    else
20954      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
20955$as_echo "$as_me: Enabling optimizations for C" >&6;}
20956
20957  _svn_xxflags__save="$CFLAGS"
20958  ac_ext=c
20959ac_cpp='$CPP $CPPFLAGS'
20960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962ac_compiler_gnu=$ac_cv_c_compiler_gnu
20963
20964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
20965$as_echo_n "checking if $CC accepts -O3... " >&6; }
20966  CFLAGS="-O3 $CFLAGS"
20967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968/* end confdefs.h.  */
20969
20970_ACEOF
20971if ac_fn_c_try_compile "$LINENO"; then :
20972
20973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20974$as_echo "yes" >&6; }
20975
20976
20977else
20978
20979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20980$as_echo "no" >&6; }
20981    CFLAGS="$_svn_xxflags__save"
20982
20983
20984  _svn_xxflags__save="$CFLAGS"
20985  ac_ext=c
20986ac_cpp='$CPP $CPPFLAGS'
20987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990
20991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
20992$as_echo_n "checking if $CC accepts -O2... " >&6; }
20993  CFLAGS="-O2 $CFLAGS"
20994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995/* end confdefs.h.  */
20996
20997_ACEOF
20998if ac_fn_c_try_compile "$LINENO"; then :
20999
21000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21001$as_echo "yes" >&6; }
21002
21003
21004else
21005
21006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21007$as_echo "no" >&6; }
21008    CFLAGS="$_svn_xxflags__save"
21009
21010
21011  _svn_xxflags__save="$CFLAGS"
21012  ac_ext=c
21013ac_cpp='$CPP $CPPFLAGS'
21014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017
21018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21019$as_echo_n "checking if $CC accepts -O1... " >&6; }
21020  CFLAGS="-O1 $CFLAGS"
21021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022/* end confdefs.h.  */
21023
21024_ACEOF
21025if ac_fn_c_try_compile "$LINENO"; then :
21026
21027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21028$as_echo "yes" >&6; }
21029
21030
21031else
21032
21033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21034$as_echo "no" >&6; }
21035    CFLAGS="$_svn_xxflags__save"
21036
21037
21038  _svn_xxflags__save="$CFLAGS"
21039  ac_ext=c
21040ac_cpp='$CPP $CPPFLAGS'
21041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043ac_compiler_gnu=$ac_cv_c_compiler_gnu
21044
21045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21046$as_echo_n "checking if $CC accepts -O... " >&6; }
21047  CFLAGS="-O $CFLAGS"
21048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049/* end confdefs.h.  */
21050
21051_ACEOF
21052if ac_fn_c_try_compile "$LINENO"; then :
21053
21054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21055$as_echo "yes" >&6; }
21056
21057
21058else
21059
21060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061$as_echo "no" >&6; }
21062    CFLAGS="$_svn_xxflags__save"
21063
21064
21065fi
21066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21067  ac_ext=c
21068ac_cpp='$CPP $CPPFLAGS'
21069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21071ac_compiler_gnu=$ac_cv_c_compiler_gnu
21072
21073
21074
21075fi
21076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
21084
21085fi
21086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087  ac_ext=c
21088ac_cpp='$CPP $CPPFLAGS'
21089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091ac_compiler_gnu=$ac_cv_c_compiler_gnu
21092
21093
21094
21095fi
21096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097  ac_ext=c
21098ac_cpp='$CPP $CPPFLAGS'
21099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21101ac_compiler_gnu=$ac_cv_c_compiler_gnu
21102
21103
21104
21105  _svn_xxflags__save="$CFLAGS"
21106  ac_ext=c
21107ac_cpp='$CPP $CPPFLAGS'
21108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
21113$as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
21114  CFLAGS="-Wno-clobbered $CFLAGS"
21115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116/* end confdefs.h.  */
21117
21118_ACEOF
21119if ac_fn_c_try_compile "$LINENO"; then :
21120
21121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21122$as_echo "yes" >&6; }
21123
21124
21125else
21126
21127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21128$as_echo "no" >&6; }
21129    CFLAGS="$_svn_xxflags__save"
21130
21131
21132fi
21133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134  ac_ext=c
21135ac_cpp='$CPP $CPPFLAGS'
21136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21138ac_compiler_gnu=$ac_cv_c_compiler_gnu
21139
21140
21141
21142  _svn_xxflags__save="$CFLAGS"
21143  ac_ext=c
21144ac_cpp='$CPP $CPPFLAGS'
21145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147ac_compiler_gnu=$ac_cv_c_compiler_gnu
21148
21149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
21150$as_echo_n "checking if $CC accepts -flto... " >&6; }
21151  CFLAGS="-flto $CFLAGS"
21152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153/* end confdefs.h.  */
21154
21155_ACEOF
21156if ac_fn_c_try_compile "$LINENO"; then :
21157
21158    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159$as_echo "yes" >&6; }
21160
21161
21162else
21163
21164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165$as_echo "no" >&6; }
21166    CFLAGS="$_svn_xxflags__save"
21167
21168
21169fi
21170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171  ac_ext=c
21172ac_cpp='$CPP $CPPFLAGS'
21173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176
21177
21178    fi
21179  fi
21180  if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21181    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21182    if test "$enable_debugging" = "yes"; then
21183      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
21184$as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
21185
21186  _svn_xxflags__save="$CXXFLAGS"
21187  ac_ext=cpp
21188ac_cpp='$CXXCPP $CPPFLAGS'
21189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21192
21193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21194$as_echo_n "checking if $CXX accepts -O1... " >&6; }
21195  CXXFLAGS="-O1 $CXXFLAGS"
21196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21197/* end confdefs.h.  */
21198
21199_ACEOF
21200if ac_fn_cxx_try_compile "$LINENO"; then :
21201
21202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21203$as_echo "yes" >&6; }
21204
21205
21206else
21207
21208    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21209$as_echo "no" >&6; }
21210    CXXFLAGS="$_svn_xxflags__save"
21211
21212
21213  _svn_xxflags__save="$CXXFLAGS"
21214  ac_ext=cpp
21215ac_cpp='$CXXCPP $CPPFLAGS'
21216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21219
21220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21221$as_echo_n "checking if $CXX accepts -O... " >&6; }
21222  CXXFLAGS="-O $CXXFLAGS"
21223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224/* end confdefs.h.  */
21225
21226_ACEOF
21227if ac_fn_cxx_try_compile "$LINENO"; then :
21228
21229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21230$as_echo "yes" >&6; }
21231
21232
21233else
21234
21235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21236$as_echo "no" >&6; }
21237    CXXFLAGS="$_svn_xxflags__save"
21238
21239
21240fi
21241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242  ac_ext=cpp
21243ac_cpp='$CXXCPP $CPPFLAGS'
21244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21247
21248
21249
21250fi
21251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252  ac_ext=c
21253ac_cpp='$CPP $CPPFLAGS'
21254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259    else
21260      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
21261$as_echo "$as_me: Enabling optimizations for C++" >&6;}
21262
21263  _svn_xxflags__save="$CXXFLAGS"
21264  ac_ext=cpp
21265ac_cpp='$CXXCPP $CPPFLAGS'
21266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21269
21270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
21271$as_echo_n "checking if $CXX accepts -O3... " >&6; }
21272  CXXFLAGS="-O3 $CXXFLAGS"
21273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274/* end confdefs.h.  */
21275
21276_ACEOF
21277if ac_fn_cxx_try_compile "$LINENO"; then :
21278
21279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21280$as_echo "yes" >&6; }
21281
21282
21283else
21284
21285    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286$as_echo "no" >&6; }
21287    CXXFLAGS="$_svn_xxflags__save"
21288
21289
21290  _svn_xxflags__save="$CXXFLAGS"
21291  ac_ext=cpp
21292ac_cpp='$CXXCPP $CPPFLAGS'
21293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21296
21297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
21298$as_echo_n "checking if $CXX accepts -O2... " >&6; }
21299  CXXFLAGS="-O2 $CXXFLAGS"
21300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301/* end confdefs.h.  */
21302
21303_ACEOF
21304if ac_fn_cxx_try_compile "$LINENO"; then :
21305
21306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21307$as_echo "yes" >&6; }
21308
21309
21310else
21311
21312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21313$as_echo "no" >&6; }
21314    CXXFLAGS="$_svn_xxflags__save"
21315
21316
21317  _svn_xxflags__save="$CXXFLAGS"
21318  ac_ext=cpp
21319ac_cpp='$CXXCPP $CPPFLAGS'
21320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21323
21324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21325$as_echo_n "checking if $CXX accepts -O1... " >&6; }
21326  CXXFLAGS="-O1 $CXXFLAGS"
21327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21328/* end confdefs.h.  */
21329
21330_ACEOF
21331if ac_fn_cxx_try_compile "$LINENO"; then :
21332
21333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21334$as_echo "yes" >&6; }
21335
21336
21337else
21338
21339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340$as_echo "no" >&6; }
21341    CXXFLAGS="$_svn_xxflags__save"
21342
21343
21344  _svn_xxflags__save="$CXXFLAGS"
21345  ac_ext=cpp
21346ac_cpp='$CXXCPP $CPPFLAGS'
21347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21350
21351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21352$as_echo_n "checking if $CXX accepts -O... " >&6; }
21353  CXXFLAGS="-O $CXXFLAGS"
21354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355/* end confdefs.h.  */
21356
21357_ACEOF
21358if ac_fn_cxx_try_compile "$LINENO"; then :
21359
21360    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21361$as_echo "yes" >&6; }
21362
21363
21364else
21365
21366    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21367$as_echo "no" >&6; }
21368    CXXFLAGS="$_svn_xxflags__save"
21369
21370
21371fi
21372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21373  ac_ext=cpp
21374ac_cpp='$CXXCPP $CPPFLAGS'
21375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21378
21379
21380
21381fi
21382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383  ac_ext=cpp
21384ac_cpp='$CXXCPP $CPPFLAGS'
21385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21388
21389
21390
21391fi
21392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393  ac_ext=cpp
21394ac_cpp='$CXXCPP $CPPFLAGS'
21395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21398
21399
21400
21401fi
21402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403  ac_ext=c
21404ac_cpp='$CPP $CPPFLAGS'
21405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407ac_compiler_gnu=$ac_cv_c_compiler_gnu
21408
21409
21410
21411  _svn_xxflags__save="$CXXFLAGS"
21412  ac_ext=cpp
21413ac_cpp='$CXXCPP $CPPFLAGS'
21414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21417
21418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
21419$as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
21420  CXXFLAGS="-Wno-clobbered $CXXFLAGS"
21421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422/* end confdefs.h.  */
21423
21424_ACEOF
21425if ac_fn_cxx_try_compile "$LINENO"; then :
21426
21427    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21428$as_echo "yes" >&6; }
21429
21430
21431else
21432
21433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434$as_echo "no" >&6; }
21435    CXXFLAGS="$_svn_xxflags__save"
21436
21437
21438fi
21439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440  ac_ext=c
21441ac_cpp='$CPP $CPPFLAGS'
21442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445
21446
21447
21448  _svn_xxflags__save="$CXXFLAGS"
21449  ac_ext=cpp
21450ac_cpp='$CXXCPP $CPPFLAGS'
21451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21454
21455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
21456$as_echo_n "checking if $CXX accepts -flto... " >&6; }
21457  CXXFLAGS="-flto $CXXFLAGS"
21458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459/* end confdefs.h.  */
21460
21461_ACEOF
21462if ac_fn_cxx_try_compile "$LINENO"; then :
21463
21464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21465$as_echo "yes" >&6; }
21466
21467
21468else
21469
21470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21471$as_echo "no" >&6; }
21472    CXXFLAGS="$_svn_xxflags__save"
21473
21474
21475fi
21476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477  ac_ext=c
21478ac_cpp='$CPP $CPPFLAGS'
21479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481ac_compiler_gnu=$ac_cv_c_compiler_gnu
21482
21483
21484    fi
21485  fi
21486elif test "$enable_optimization" = "no"; then
21487    { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
21488$as_echo "$as_me: Disabling optimizations" >&6;}
21489  CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21490  CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21491# elif test "$enable_optimization" = "maybe" ; then
21492#   # do nothing
21493fi
21494
21495{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
21496$as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
21497{ $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
21498$as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
21499{ $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
21500$as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
21501{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
21502$as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
21503{ $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
21504$as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
21505{ $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
21506$as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
21507
21508# Check whether --enable-full-version-match was given.
21509if test "${enable_full_version_match+set}" = set; then :
21510  enableval=$enable_full_version_match;
21511    if test "$enableval" = "no" ; then
21512      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
21513$as_echo "$as_me: Disabling svn full version matching" >&6;}
21514
21515$as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
21516
21517    fi
21518
21519fi
21520
21521
21522
21523# Check whether --with-editor was given.
21524if test "${with_editor+set}" = set; then :
21525  withval=$with_editor;
21526
21527    if test "$withval" = "yes" ; then
21528      as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
21529    else
21530      SVN_CLIENT_EDITOR=$withval
21531
21532cat >>confdefs.h <<_ACEOF
21533#define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
21534_ACEOF
21535
21536
21537    fi
21538
21539
21540fi
21541
21542
21543
21544  zlib_found=no
21545
21546
21547# Check whether --with-zlib was given.
21548if test "${with_zlib+set}" = set; then :
21549  withval=$with_zlib;
21550    if test "$withval" = "yes" ; then
21551      ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21552if test "x$ac_cv_header_zlib_h" = xyes; then :
21553
21554        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21555$as_echo_n "checking for inflate in -lz... " >&6; }
21556if ${ac_cv_lib_z_inflate+:} false; then :
21557  $as_echo_n "(cached) " >&6
21558else
21559  ac_check_lib_save_LIBS=$LIBS
21560LIBS="-lz  $LIBS"
21561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562/* end confdefs.h.  */
21563
21564/* Override any GCC internal prototype to avoid an error.
21565   Use char because int might match the return type of a GCC
21566   builtin and then its argument prototype would still apply.  */
21567#ifdef __cplusplus
21568extern "C"
21569#endif
21570char inflate ();
21571int
21572main ()
21573{
21574return inflate ();
21575  ;
21576  return 0;
21577}
21578_ACEOF
21579if ac_fn_c_try_link "$LINENO"; then :
21580  ac_cv_lib_z_inflate=yes
21581else
21582  ac_cv_lib_z_inflate=no
21583fi
21584rm -f core conftest.err conftest.$ac_objext \
21585    conftest$ac_exeext conftest.$ac_ext
21586LIBS=$ac_check_lib_save_LIBS
21587fi
21588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21589$as_echo "$ac_cv_lib_z_inflate" >&6; }
21590if test "x$ac_cv_lib_z_inflate" = xyes; then :
21591  zlib_found="builtin"
21592fi
21593
21594
21595fi
21596
21597
21598    elif test "$withval" = "no" ; then
21599      as_fn_error $? "cannot compile without zlib." "$LINENO" 5
21600    else
21601      { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
21602$as_echo "$as_me: zlib library configuration" >&6;}
21603      zlib_prefix=$withval
21604      save_cppflags="$CPPFLAGS"
21605      CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
21606      for ac_header in zlib.h
21607do :
21608  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21609if test "x$ac_cv_header_zlib_h" = xyes; then :
21610  cat >>confdefs.h <<_ACEOF
21611#define HAVE_ZLIB_H 1
21612_ACEOF
21613
21614        save_ldflags="$LDFLAGS"
21615        LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
21616        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21617$as_echo_n "checking for inflate in -lz... " >&6; }
21618if ${ac_cv_lib_z_inflate+:} false; then :
21619  $as_echo_n "(cached) " >&6
21620else
21621  ac_check_lib_save_LIBS=$LIBS
21622LIBS="-lz  $LIBS"
21623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21624/* end confdefs.h.  */
21625
21626/* Override any GCC internal prototype to avoid an error.
21627   Use char because int might match the return type of a GCC
21628   builtin and then its argument prototype would still apply.  */
21629#ifdef __cplusplus
21630extern "C"
21631#endif
21632char inflate ();
21633int
21634main ()
21635{
21636return inflate ();
21637  ;
21638  return 0;
21639}
21640_ACEOF
21641if ac_fn_c_try_link "$LINENO"; then :
21642  ac_cv_lib_z_inflate=yes
21643else
21644  ac_cv_lib_z_inflate=no
21645fi
21646rm -f core conftest.err conftest.$ac_objext \
21647    conftest$ac_exeext conftest.$ac_ext
21648LIBS=$ac_check_lib_save_LIBS
21649fi
21650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21651$as_echo "$ac_cv_lib_z_inflate" >&6; }
21652if test "x$ac_cv_lib_z_inflate" = xyes; then :
21653  zlib_found="yes"
21654fi
21655
21656        LDFLAGS="$save_ldflags"
21657
21658fi
21659
21660done
21661
21662      CPPFLAGS="$save_cppflags"
21663    fi
21664
21665else
21666
21667    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21668if test "x$ac_cv_header_zlib_h" = xyes; then :
21669
21670      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21671$as_echo_n "checking for inflate in -lz... " >&6; }
21672if ${ac_cv_lib_z_inflate+:} false; then :
21673  $as_echo_n "(cached) " >&6
21674else
21675  ac_check_lib_save_LIBS=$LIBS
21676LIBS="-lz  $LIBS"
21677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678/* end confdefs.h.  */
21679
21680/* Override any GCC internal prototype to avoid an error.
21681   Use char because int might match the return type of a GCC
21682   builtin and then its argument prototype would still apply.  */
21683#ifdef __cplusplus
21684extern "C"
21685#endif
21686char inflate ();
21687int
21688main ()
21689{
21690return inflate ();
21691  ;
21692  return 0;
21693}
21694_ACEOF
21695if ac_fn_c_try_link "$LINENO"; then :
21696  ac_cv_lib_z_inflate=yes
21697else
21698  ac_cv_lib_z_inflate=no
21699fi
21700rm -f core conftest.err conftest.$ac_objext \
21701    conftest$ac_exeext conftest.$ac_ext
21702LIBS=$ac_check_lib_save_LIBS
21703fi
21704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21705$as_echo "$ac_cv_lib_z_inflate" >&6; }
21706if test "x$ac_cv_lib_z_inflate" = xyes; then :
21707  zlib_found="builtin"
21708fi
21709
21710
21711fi
21712
21713
21714
21715fi
21716
21717
21718  if test "$zlib_found" = "no"; then
21719    as_fn_error $? "subversion requires zlib" "$LINENO" 5
21720  fi
21721
21722  if test "$zlib_found" = "yes"; then
21723    SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
21724    LDFLAGS="$LDFLAGS `
21725  input_flags="-L$zlib_prefix/lib"
21726  output_flags=""
21727  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
21728  for flag in $input_flags; do
21729    filter="no"
21730    for dir in $filtered_dirs; do
21731      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
21732        filter="yes"
21733        break
21734      fi
21735    done
21736    if test "$filter" = "no"; then
21737      output_flags="$output_flags $flag"
21738    fi
21739  done
21740  if test -n "$output_flags"; then
21741    printf "%s" "${output_flags# }"
21742  fi
21743`"
21744  fi
21745
21746  SVN_ZLIB_LIBS="-lz"
21747
21748
21749
21750
21751
21752MOD_ACTIVATION=""
21753# Check whether --enable-mod-activation was given.
21754if test "${enable_mod_activation+set}" = set; then :
21755  enableval=$enable_mod_activation;
21756    if test "$enableval" = "yes" ; then
21757      MOD_ACTIVATION="-a"
21758      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
21759$as_echo "$as_me: Enabling apache module activation" >&6;}
21760    else
21761      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
21762$as_echo "$as_me: Disabling apache module activation" >&6;}
21763    fi
21764
21765fi
21766
21767
21768
21769
21770
21771# Check whether --enable-gcov was given.
21772if test "${enable_gcov+set}" = set; then :
21773  enableval=$enable_gcov;
21774    if test "$enableval" = "yes" ; then
21775                  if test "$GCC" = "yes"; then
21776        if test "$svn_enable_shared" = "yes" ; then
21777          as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
21778                        recommend also using --enable-all-static)." "$LINENO" 5
21779        fi
21780        if test ! "$enable_all_static" = "yes" ; then
21781          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
21782$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
21783        fi
21784        { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
21785$as_echo "$as_me: Enabling gcov coverage testing." >&6;}
21786        CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21787        CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21788      else
21789        as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
21790      fi
21791    fi
21792
21793fi
21794
21795
21796# Check whether --enable-gprof was given.
21797if test "${enable_gprof+set}" = set; then :
21798  enableval=$enable_gprof;
21799    if test "$enableval" = "yes" ; then
21800                  if test "$GCC" = "yes"; then
21801        if test "$svn_enable_shared" = "yes" ; then
21802          as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
21803                        recommend also using --enable-all-static)." "$LINENO" 5
21804        fi
21805        if test ! "$enable_all_static" = "yes" ; then
21806          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
21807$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
21808        fi
21809        { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
21810$as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
21811        CFLAGS="$CFLAGS -pg"
21812        CXXFLAGS="$CXXFLAGS -pg"
21813        LT_LDFLAGS="$LT_LDFLAGS -pg"
21814      else
21815        as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
21816      fi
21817    fi
21818
21819fi
21820
21821
21822
21823# Scripting and Bindings languages
21824
21825# Python: Used for testsuite, and bindings
21826
21827
21828PYTHON="`$abs_srcdir/build/find_python.sh`"
21829if test -z "$PYTHON"; then
21830  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5
21831$as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;}
21832  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
21833$as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
21834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
21835$as_echo "$as_me: WARNING: " >&2;}
21836  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
21837$as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
21838  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
21839$as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
21840  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
21841$as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
21842fi
21843for ac_prog in "$PYTHON"
21844do
21845  # Extract the first word of "$ac_prog", so it can be a program name with args.
21846set dummy $ac_prog; ac_word=$2
21847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21848$as_echo_n "checking for $ac_word... " >&6; }
21849if ${ac_cv_path_PYTHON+:} false; then :
21850  $as_echo_n "(cached) " >&6
21851else
21852  case $PYTHON in
21853  [\\/]* | ?:[\\/]*)
21854  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21855  ;;
21856  *)
21857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21858for as_dir in $PATH
21859do
21860  IFS=$as_save_IFS
21861  test -z "$as_dir" && as_dir=.
21862    for ac_exec_ext in '' $ac_executable_extensions; do
21863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21864    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21866    break 2
21867  fi
21868done
21869  done
21870IFS=$as_save_IFS
21871
21872  ;;
21873esac
21874fi
21875PYTHON=$ac_cv_path_PYTHON
21876if test -n "$PYTHON"; then
21877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21878$as_echo "$PYTHON" >&6; }
21879else
21880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881$as_echo "no" >&6; }
21882fi
21883
21884
21885  test -n "$PYTHON" && break
21886done
21887test -n "$PYTHON" || PYTHON="none"
21888
21889
21890# The minimum version for the JVM runtime for our Java bytecode.
21891JAVA_OLDEST_WORKING_VER='1.5'
21892# SVN_CHECK_JDK sets $JAVA_CLASSPATH
21893
21894  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21895
21896# Check whether --with-jdk was given.
21897if test "${with_jdk+set}" = set; then :
21898  withval=$with_jdk;
21899    case "$withval" in
21900      "no")
21901        JDK_SUITABLE=no
21902      ;;
21903      "yes")
21904
21905  where=check
21906  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21907
21908  JDK=none
21909  JAVA_BIN=none
21910  JAVADOC=none
21911  JAVAC=none
21912  JAVAH=none
21913  JAR=none
21914  JNI_INCLUDES=none
21915
21916  JDK_SUITABLE=no
21917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
21918$as_echo_n "checking for JDK... " >&6; }
21919  if test $where = check; then
21920            if test -x "$JAVA_HOME/bin/java"; then
21921      JDK="$JAVA_HOME"
21922    elif test -x "/Library/Java/Home/bin/java"; then
21923      JDK="/Library/Java/Home"
21924    elif test -x "/usr/bin/java"; then
21925      JDK="/usr"
21926    elif test -x "/usr/local/bin/java"; then
21927      JDK="/usr/local"
21928    fi
21929  else
21930    JDK=$where
21931  fi
21932
21933          os_arch="`uname`"
21934  if test "$os_arch" = "Darwin"; then
21935    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
21936
21937    if test "$OSX_VER" = "10.4"; then
21938            OSX_VER="10.4u"
21939    fi
21940
21941    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
21942    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
21943    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
21944  fi
21945
21946  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
21947     test -d "/Library/Java/Home"; then
21948    JDK="/Library/Java/Home"
21949  fi
21950
21951  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
21952    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
21953  else
21954    JRE_LIB_DIR="$JDK/jre/lib"
21955  fi
21956
21957  if test -f "$JDK/include/jni.h"; then
21958        JNI_INCLUDEDIR="$JDK/include"
21959    JDK_SUITABLE=yes
21960  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
21961        JNI_INCLUDEDIR="$JDK/Headers"
21962    JDK_SUITABLE=yes
21963  elif test "$os_arch" = "Darwin" &&
21964       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
21965        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
21966    JDK_SUITABLE=yes
21967  elif test "$os_arch" = "Darwin" &&
21968       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
21969        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
21970    JDK_SUITABLE=yes
21971  else
21972    JDK_SUITABLE=no
21973  fi
21974  if test "$JDK_SUITABLE" = "yes"; then
21975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
21976$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
21977  else
21978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979$as_echo "no" >&6; }
21980    if test "$where" != "check"; then
21981      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
21982$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
21983      if test "$os_arch" = "Darwin"; then
21984        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
21985$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
21986      fi
21987    fi
21988  fi
21989
21990  if test "$JDK_SUITABLE" = "yes"; then
21991    JAVA_BIN='$(JDK)/bin'
21992
21993    JAVA="$JAVA_BIN/java"
21994    JAVAC="$JAVA_BIN/javac"
21995    JAVAH="$JAVA_BIN/javah"
21996    JAVADOC="$JAVA_BIN/javadoc"
21997    JAR="$JAVA_BIN/jar"
21998
21999        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22000
22001# Check whether --with-jikes was given.
22002if test "${with_jikes+set}" = set; then :
22003  withval=$with_jikes;
22004        if test "$withval" != "no" && test "$withval" != "yes"; then
22005                    jikes_options="$withval $jikes_options"
22006        fi
22007        requested_jikes="$withval"  # will be 'yes' if path unspecified
22008
22009fi
22010
22011    if test "$requested_jikes" != "no"; then
22012            for jikes in $jikes_options; do
22013        if test -z "$jikes_found" && test -x "$jikes"; then
22014          jikes_found="yes"
22015          JAVAC="$jikes"
22016          JAVA_CLASSPATH="$JRE_LIB_DIR"
22017          for jar in $JRE_LIB_DIR/*.jar; do
22018            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22019          done
22020        fi
22021      done
22022    fi
22023    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22024            if test -z "$jikes_found"; then
22025        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22026      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22027           test "$JAVAC" != "$requested_jikes"; then
22028        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22029$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22030      fi
22031    fi
22032
22033        # The release for "-source" could actually be greater than that
22034    # of "-target", if we want to cross-compile for lesser JVMs.
22035    if test -z "$JAVAC_FLAGS"; then
22036      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22037      if test "$enable_debugging" = "yes"; then
22038        JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22039      fi
22040    fi
22041
22042    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22043    list="`find "$JNI_INCLUDEDIR" -type d -print`"
22044    for dir in $list; do
22045      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22046    done
22047  fi
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058      ;;
22059      *)
22060
22061  where=$withval
22062  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22063
22064  JDK=none
22065  JAVA_BIN=none
22066  JAVADOC=none
22067  JAVAC=none
22068  JAVAH=none
22069  JAR=none
22070  JNI_INCLUDES=none
22071
22072  JDK_SUITABLE=no
22073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22074$as_echo_n "checking for JDK... " >&6; }
22075  if test $where = check; then
22076            if test -x "$JAVA_HOME/bin/java"; then
22077      JDK="$JAVA_HOME"
22078    elif test -x "/Library/Java/Home/bin/java"; then
22079      JDK="/Library/Java/Home"
22080    elif test -x "/usr/bin/java"; then
22081      JDK="/usr"
22082    elif test -x "/usr/local/bin/java"; then
22083      JDK="/usr/local"
22084    fi
22085  else
22086    JDK=$where
22087  fi
22088
22089          os_arch="`uname`"
22090  if test "$os_arch" = "Darwin"; then
22091    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22092
22093    if test "$OSX_VER" = "10.4"; then
22094            OSX_VER="10.4u"
22095    fi
22096
22097    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22098    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22099    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22100  fi
22101
22102  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22103     test -d "/Library/Java/Home"; then
22104    JDK="/Library/Java/Home"
22105  fi
22106
22107  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22108    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22109  else
22110    JRE_LIB_DIR="$JDK/jre/lib"
22111  fi
22112
22113  if test -f "$JDK/include/jni.h"; then
22114        JNI_INCLUDEDIR="$JDK/include"
22115    JDK_SUITABLE=yes
22116  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22117        JNI_INCLUDEDIR="$JDK/Headers"
22118    JDK_SUITABLE=yes
22119  elif test "$os_arch" = "Darwin" &&
22120       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22121        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22122    JDK_SUITABLE=yes
22123  elif test "$os_arch" = "Darwin" &&
22124       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22125        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22126    JDK_SUITABLE=yes
22127  else
22128    JDK_SUITABLE=no
22129  fi
22130  if test "$JDK_SUITABLE" = "yes"; then
22131    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22132$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22133  else
22134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22135$as_echo "no" >&6; }
22136    if test "$where" != "check"; then
22137      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22138$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22139      if test "$os_arch" = "Darwin"; then
22140        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
22141$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
22142      fi
22143    fi
22144  fi
22145
22146  if test "$JDK_SUITABLE" = "yes"; then
22147    JAVA_BIN='$(JDK)/bin'
22148
22149    JAVA="$JAVA_BIN/java"
22150    JAVAC="$JAVA_BIN/javac"
22151    JAVAH="$JAVA_BIN/javah"
22152    JAVADOC="$JAVA_BIN/javadoc"
22153    JAR="$JAVA_BIN/jar"
22154
22155        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22156
22157# Check whether --with-jikes was given.
22158if test "${with_jikes+set}" = set; then :
22159  withval=$with_jikes;
22160        if test "$withval" != "no" && test "$withval" != "yes"; then
22161                    jikes_options="$withval $jikes_options"
22162        fi
22163        requested_jikes="$withval"  # will be 'yes' if path unspecified
22164
22165fi
22166
22167    if test "$requested_jikes" != "no"; then
22168            for jikes in $jikes_options; do
22169        if test -z "$jikes_found" && test -x "$jikes"; then
22170          jikes_found="yes"
22171          JAVAC="$jikes"
22172          JAVA_CLASSPATH="$JRE_LIB_DIR"
22173          for jar in $JRE_LIB_DIR/*.jar; do
22174            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22175          done
22176        fi
22177      done
22178    fi
22179    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22180            if test -z "$jikes_found"; then
22181        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22182      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22183           test "$JAVAC" != "$requested_jikes"; then
22184        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22185$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22186      fi
22187    fi
22188
22189        # The release for "-source" could actually be greater than that
22190    # of "-target", if we want to cross-compile for lesser JVMs.
22191    if test -z "$JAVAC_FLAGS"; then
22192      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22193      if test "$enable_debugging" = "yes"; then
22194        JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22195      fi
22196    fi
22197
22198    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22199    list="`find "$JNI_INCLUDEDIR" -type d -print`"
22200    for dir in $list; do
22201      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22202    done
22203  fi
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214      ;;
22215    esac
22216
22217else
22218
22219
22220  where=check
22221  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22222
22223  JDK=none
22224  JAVA_BIN=none
22225  JAVADOC=none
22226  JAVAC=none
22227  JAVAH=none
22228  JAR=none
22229  JNI_INCLUDES=none
22230
22231  JDK_SUITABLE=no
22232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22233$as_echo_n "checking for JDK... " >&6; }
22234  if test $where = check; then
22235            if test -x "$JAVA_HOME/bin/java"; then
22236      JDK="$JAVA_HOME"
22237    elif test -x "/Library/Java/Home/bin/java"; then
22238      JDK="/Library/Java/Home"
22239    elif test -x "/usr/bin/java"; then
22240      JDK="/usr"
22241    elif test -x "/usr/local/bin/java"; then
22242      JDK="/usr/local"
22243    fi
22244  else
22245    JDK=$where
22246  fi
22247
22248          os_arch="`uname`"
22249  if test "$os_arch" = "Darwin"; then
22250    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22251
22252    if test "$OSX_VER" = "10.4"; then
22253            OSX_VER="10.4u"
22254    fi
22255
22256    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22257    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22258    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22259  fi
22260
22261  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22262     test -d "/Library/Java/Home"; then
22263    JDK="/Library/Java/Home"
22264  fi
22265
22266  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22267    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22268  else
22269    JRE_LIB_DIR="$JDK/jre/lib"
22270  fi
22271
22272  if test -f "$JDK/include/jni.h"; then
22273        JNI_INCLUDEDIR="$JDK/include"
22274    JDK_SUITABLE=yes
22275  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22276        JNI_INCLUDEDIR="$JDK/Headers"
22277    JDK_SUITABLE=yes
22278  elif test "$os_arch" = "Darwin" &&
22279       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22280        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22281    JDK_SUITABLE=yes
22282  elif test "$os_arch" = "Darwin" &&
22283       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22284        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22285    JDK_SUITABLE=yes
22286  else
22287    JDK_SUITABLE=no
22288  fi
22289  if test "$JDK_SUITABLE" = "yes"; then
22290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22291$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22292  else
22293    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22294$as_echo "no" >&6; }
22295    if test "$where" != "check"; then
22296      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22297$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22298      if test "$os_arch" = "Darwin"; then
22299        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
22300$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
22301      fi
22302    fi
22303  fi
22304
22305  if test "$JDK_SUITABLE" = "yes"; then
22306    JAVA_BIN='$(JDK)/bin'
22307
22308    JAVA="$JAVA_BIN/java"
22309    JAVAC="$JAVA_BIN/javac"
22310    JAVAH="$JAVA_BIN/javah"
22311    JAVADOC="$JAVA_BIN/javadoc"
22312    JAR="$JAVA_BIN/jar"
22313
22314        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22315
22316# Check whether --with-jikes was given.
22317if test "${with_jikes+set}" = set; then :
22318  withval=$with_jikes;
22319        if test "$withval" != "no" && test "$withval" != "yes"; then
22320                    jikes_options="$withval $jikes_options"
22321        fi
22322        requested_jikes="$withval"  # will be 'yes' if path unspecified
22323
22324fi
22325
22326    if test "$requested_jikes" != "no"; then
22327            for jikes in $jikes_options; do
22328        if test -z "$jikes_found" && test -x "$jikes"; then
22329          jikes_found="yes"
22330          JAVAC="$jikes"
22331          JAVA_CLASSPATH="$JRE_LIB_DIR"
22332          for jar in $JRE_LIB_DIR/*.jar; do
22333            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22334          done
22335        fi
22336      done
22337    fi
22338    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22339            if test -z "$jikes_found"; then
22340        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22341      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22342           test "$JAVAC" != "$requested_jikes"; then
22343        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22344$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22345      fi
22346    fi
22347
22348        # The release for "-source" could actually be greater than that
22349    # of "-target", if we want to cross-compile for lesser JVMs.
22350    if test -z "$JAVAC_FLAGS"; then
22351      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22352      if test "$enable_debugging" = "yes"; then
22353        JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22354      fi
22355    fi
22356
22357    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22358    list="`find "$JNI_INCLUDEDIR" -type d -print`"
22359    for dir in $list; do
22360      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22361    done
22362  fi
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374fi
22375
22376
22377
22378# Extract the first word of "perl", so it can be a program name with args.
22379set dummy perl; ac_word=$2
22380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22381$as_echo_n "checking for $ac_word... " >&6; }
22382if ${ac_cv_path_PERL+:} false; then :
22383  $as_echo_n "(cached) " >&6
22384else
22385  case $PERL in
22386  [\\/]* | ?:[\\/]*)
22387  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22388  ;;
22389  *)
22390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22391for as_dir in $PATH
22392do
22393  IFS=$as_save_IFS
22394  test -z "$as_dir" && as_dir=.
22395    for ac_exec_ext in '' $ac_executable_extensions; do
22396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22397    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22399    break 2
22400  fi
22401done
22402  done
22403IFS=$as_save_IFS
22404
22405  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22406  ;;
22407esac
22408fi
22409PERL=$ac_cv_path_PERL
22410if test -n "$PERL"; then
22411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22412$as_echo "$PERL" >&6; }
22413else
22414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22415$as_echo "no" >&6; }
22416fi
22417
22418
22419
22420if test -n "$RUBY"; then
22421  # Extract the first word of ""$RUBY"", so it can be a program name with args.
22422set dummy "$RUBY"; ac_word=$2
22423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22424$as_echo_n "checking for $ac_word... " >&6; }
22425if ${ac_cv_path_RUBY+:} false; then :
22426  $as_echo_n "(cached) " >&6
22427else
22428  case $RUBY in
22429  [\\/]* | ?:[\\/]*)
22430  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22431  ;;
22432  *)
22433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22434for as_dir in $PATH
22435do
22436  IFS=$as_save_IFS
22437  test -z "$as_dir" && as_dir=.
22438    for ac_exec_ext in '' $ac_executable_extensions; do
22439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22440    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22442    break 2
22443  fi
22444done
22445  done
22446IFS=$as_save_IFS
22447
22448  test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
22449  ;;
22450esac
22451fi
22452RUBY=$ac_cv_path_RUBY
22453if test -n "$RUBY"; then
22454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22455$as_echo "$RUBY" >&6; }
22456else
22457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458$as_echo "no" >&6; }
22459fi
22460
22461
22462else
22463  for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193
22464do
22465  # Extract the first word of "$ac_prog", so it can be a program name with args.
22466set dummy $ac_prog; ac_word=$2
22467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22468$as_echo_n "checking for $ac_word... " >&6; }
22469if ${ac_cv_path_RUBY+:} false; then :
22470  $as_echo_n "(cached) " >&6
22471else
22472  case $RUBY in
22473  [\\/]* | ?:[\\/]*)
22474  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22475  ;;
22476  *)
22477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22478for as_dir in $PATH
22479do
22480  IFS=$as_save_IFS
22481  test -z "$as_dir" && as_dir=.
22482    for ac_exec_ext in '' $ac_executable_extensions; do
22483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22484    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22486    break 2
22487  fi
22488done
22489  done
22490IFS=$as_save_IFS
22491
22492  ;;
22493esac
22494fi
22495RUBY=$ac_cv_path_RUBY
22496if test -n "$RUBY"; then
22497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22498$as_echo "$RUBY" >&6; }
22499else
22500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22501$as_echo "no" >&6; }
22502fi
22503
22504
22505  test -n "$RUBY" && break
22506done
22507test -n "$RUBY" || RUBY="none"
22508
22509fi
22510if test "$RUBY" != "none"; then
22511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
22512$as_echo_n "checking rb_hash_foreach... " >&6; }
22513  if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
22514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22515$as_echo "yes" >&6; }
22516    if test -n "$RDOC"; then
22517      # Extract the first word of ""$RDOC"", so it can be a program name with args.
22518set dummy "$RDOC"; ac_word=$2
22519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22520$as_echo_n "checking for $ac_word... " >&6; }
22521if ${ac_cv_path_RDOC+:} false; then :
22522  $as_echo_n "(cached) " >&6
22523else
22524  case $RDOC in
22525  [\\/]* | ?:[\\/]*)
22526  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22527  ;;
22528  *)
22529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22530for as_dir in $PATH
22531do
22532  IFS=$as_save_IFS
22533  test -z "$as_dir" && as_dir=.
22534    for ac_exec_ext in '' $ac_executable_extensions; do
22535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22536    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22538    break 2
22539  fi
22540done
22541  done
22542IFS=$as_save_IFS
22543
22544  test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
22545  ;;
22546esac
22547fi
22548RDOC=$ac_cv_path_RDOC
22549if test -n "$RDOC"; then
22550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22551$as_echo "$RDOC" >&6; }
22552else
22553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22554$as_echo "no" >&6; }
22555fi
22556
22557
22558    else
22559      for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193
22560do
22561  # Extract the first word of "$ac_prog", so it can be a program name with args.
22562set dummy $ac_prog; ac_word=$2
22563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22564$as_echo_n "checking for $ac_word... " >&6; }
22565if ${ac_cv_path_RDOC+:} false; then :
22566  $as_echo_n "(cached) " >&6
22567else
22568  case $RDOC in
22569  [\\/]* | ?:[\\/]*)
22570  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22571  ;;
22572  *)
22573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22574for as_dir in $PATH
22575do
22576  IFS=$as_save_IFS
22577  test -z "$as_dir" && as_dir=.
22578    for ac_exec_ext in '' $ac_executable_extensions; do
22579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22580    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22582    break 2
22583  fi
22584done
22585  done
22586IFS=$as_save_IFS
22587
22588  ;;
22589esac
22590fi
22591RDOC=$ac_cv_path_RDOC
22592if test -n "$RDOC"; then
22593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22594$as_echo "$RDOC" >&6; }
22595else
22596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22597$as_echo "no" >&6; }
22598fi
22599
22600
22601  test -n "$RDOC" && break
22602done
22603test -n "$RDOC" || RDOC="none"
22604
22605    fi
22606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
22607$as_echo_n "checking for Ruby major version... " >&6; }
22608if ${svn_cv_ruby_major+:} false; then :
22609  $as_echo_n "(cached) " >&6
22610else
22611
22612    svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
22613
22614fi
22615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
22616$as_echo "$svn_cv_ruby_major" >&6; }
22617    RUBY_MAJOR="$svn_cv_ruby_major"
22618
22619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
22620$as_echo_n "checking for Ruby minor version... " >&6; }
22621if ${svn_cv_ruby_minor+:} false; then :
22622  $as_echo_n "(cached) " >&6
22623else
22624
22625    svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
22626
22627fi
22628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
22629$as_echo "$svn_cv_ruby_minor" >&6; }
22630    RUBY_MINOR="$svn_cv_ruby_minor"
22631
22632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
22633$as_echo_n "checking for Ruby teeny version... " >&6; }
22634if ${svn_cv_ruby_teeny+:} false; then :
22635  $as_echo_n "(cached) " >&6
22636else
22637
22638    svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
22639
22640fi
22641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
22642$as_echo "$svn_cv_ruby_teeny" >&6; }
22643    RUBY_TEENY="$svn_cv_ruby_teeny"
22644
22645
22646
22647
22648    if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
22649      # Disallow Ruby between 1.8.7 and 1.9.3
22650      RUBY="none"
22651      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
22652$as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
22653      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
22654$as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
22655    elif test \(  "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -eq "9" -a "$RUBY_TEENY" -eq "3" \); then
22656      #Warn about 1.9.3 support
22657      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: The detected Ruby is 1.9.3" >&5
22658$as_echo "$as_me: WARNING: WARNING: The detected Ruby is 1.9.3" >&2;}
22659      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&5
22660$as_echo "$as_me: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&2;}
22661    fi
22662  else
22663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22664$as_echo "no" >&6; }
22665    RUBY="none"
22666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
22667$as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
22668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
22669$as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
22670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
22671$as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
22672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
22673$as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
22674  fi
22675fi
22676
22677
22678
22679# Check whether --with-swig was given.
22680if test "${with_swig+set}" = set; then :
22681  withval=$with_swig;
22682    case "$withval" in
22683      "no")
22684        SWIG_SUITABLE=no
22685
22686  where=no
22687
22688  if test $where = no; then
22689    SWIG=none
22690  elif test $where = check; then
22691    # Extract the first word of "swig", so it can be a program name with args.
22692set dummy swig; ac_word=$2
22693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22694$as_echo_n "checking for $ac_word... " >&6; }
22695if ${ac_cv_path_SWIG+:} false; then :
22696  $as_echo_n "(cached) " >&6
22697else
22698  case $SWIG in
22699  [\\/]* | ?:[\\/]*)
22700  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22701  ;;
22702  *)
22703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22704for as_dir in $PATH
22705do
22706  IFS=$as_save_IFS
22707  test -z "$as_dir" && as_dir=.
22708    for ac_exec_ext in '' $ac_executable_extensions; do
22709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22710    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22712    break 2
22713  fi
22714done
22715  done
22716IFS=$as_save_IFS
22717
22718  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
22719  ;;
22720esac
22721fi
22722SWIG=$ac_cv_path_SWIG
22723if test -n "$SWIG"; then
22724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22725$as_echo "$SWIG" >&6; }
22726else
22727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22728$as_echo "no" >&6; }
22729fi
22730
22731
22732  else
22733    if test -f "$where"; then
22734      SWIG="$where"
22735    else
22736      SWIG="$where/bin/swig"
22737    fi
22738    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
22739      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
22740    fi
22741  fi
22742
22743  if test "$SWIG" != "none"; then
22744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
22745$as_echo_n "checking swig version... " >&6; }
22746    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
22747                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
22748    # We want the version as an integer so we can test against
22749    # which version we're using.  SWIG doesn't provide this
22750    # to us so we have to come up with it on our own.
22751    # The major is passed straight through,
22752    # the minor is zero padded to two places,
22753    # and the patch level is zero padded to three places.
22754    # e.g. 1.3.24 becomes 103024
22755    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
22756                  $SED -e 's/[^0-9\.].*$//' \
22757                      -e 's/\.\([0-9]\)$/.0\1/' \
22758                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
22759                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
22760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
22761$as_echo "$SWIG_VERSION_RAW" >&6; }
22762    # If you change the required swig version number, don't forget to update:
22763    #   subversion/bindings/swig/INSTALL
22764    #   packages/rpm/redhat-8+/subversion.spec
22765    #   packages/rpm/redhat-7.x/subversion.spec
22766    #   packages/rpm/rhel-3/subversion.spec
22767    #   packages/rpm/rhel-4/subversion.spec
22768    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
22769      SWIG_SUITABLE=yes
22770    else
22771      SWIG_SUITABLE=no
22772      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
22773$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
22774      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
22775$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
22776    fi
22777  fi
22778
22779  SWIG_PY_COMPILE="none"
22780  SWIG_PY_LINK="none"
22781  if test "$PYTHON" != "none"; then
22782    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
22783$as_echo "$as_me: Configuring python swig binding" >&6;}
22784
22785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
22786$as_echo_n "checking for Python includes... " >&6; }
22787if ${ac_cv_python_includes+:} false; then :
22788  $as_echo_n "(cached) " >&6
22789else
22790
22791      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
22792
22793fi
22794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
22795$as_echo "$ac_cv_python_includes" >&6; }
22796    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
22797
22798    if test "$ac_cv_python_includes" = "none"; then
22799      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
22800$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
22801    fi
22802
22803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
22804$as_echo_n "checking for compiling Python extensions... " >&6; }
22805if ${ac_cv_python_compile+:} false; then :
22806  $as_echo_n "(cached) " >&6
22807else
22808
22809      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
22810
22811fi
22812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
22813$as_echo "$ac_cv_python_compile" >&6; }
22814    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
22815
22816    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
22817$as_echo_n "checking for linking Python extensions... " >&6; }
22818if ${ac_cv_python_link+:} false; then :
22819  $as_echo_n "(cached) " >&6
22820else
22821
22822      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
22823
22824fi
22825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
22826$as_echo "$ac_cv_python_link" >&6; }
22827    SWIG_PY_LINK="$ac_cv_python_link"
22828
22829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
22830$as_echo_n "checking for linking Python libraries... " >&6; }
22831if ${ac_cv_python_libs+:} false; then :
22832  $as_echo_n "(cached) " >&6
22833else
22834
22835      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
22836
22837fi
22838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
22839$as_echo "$ac_cv_python_libs" >&6; }
22840    SWIG_PY_LIBS="`
22841  input_flags="$ac_cv_python_libs"
22842  output_flags=""
22843  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22844  for flag in $input_flags; do
22845    filter="no"
22846    for dir in $filtered_dirs; do
22847      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22848        filter="yes"
22849        break
22850      fi
22851    done
22852    if test "$filter" = "no"; then
22853      output_flags="$output_flags $flag"
22854    fi
22855  done
22856  if test -n "$output_flags"; then
22857    printf "%s" "${output_flags# }"
22858  fi
22859`"
22860
22861                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
22862    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
22863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
22864$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
22865if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
22866  $as_echo_n "(cached) " >&6
22867else
22868
22869      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22870        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871/* end confdefs.h.  */
22872#include <apr.h>
22873                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
22874_ACEOF
22875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22876  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
22877  svn_cv_pycfmt_apr_int64_t="L"
22878fi
22879rm -f conftest*
22880
22881      fi
22882      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22883        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884/* end confdefs.h.  */
22885r
22886                     #include <apr.h>
22887                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
22888_ACEOF
22889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22890  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
22891  svn_cv_pycfmt_apr_int64_t="l"
22892fi
22893rm -f conftest*
22894
22895      fi
22896      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22897        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898/* end confdefs.h.  */
22899#include <apr.h>
22900                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
22901_ACEOF
22902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
22904  svn_cv_pycfmt_apr_int64_t="i"
22905fi
22906rm -f conftest*
22907
22908      fi
22909
22910fi
22911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
22912$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
22913    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
22914    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22915      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
22916    fi
22917
22918cat >>confdefs.h <<_ACEOF
22919#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
22920_ACEOF
22921
22922  fi
22923
22924  if test "$PERL" != "none"; then
22925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
22926$as_echo_n "checking perl version... " >&6; }
22927            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
22928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
22929$as_echo "$PERL_VERSION" >&6; }
22930    if test "$PERL_VERSION" -ge "5008000"; then
22931      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
22932    else
22933      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
22934$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
22935    fi
22936  fi
22937
22938  SWIG_RB_COMPILE="none"
22939  SWIG_RB_LINK="none"
22940  if test "$RUBY" != "none"; then
22941    rbconfig="$RUBY -rrbconfig -e "
22942
22943    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
22944                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
22945    do
22946      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
22947      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
22948    done
22949
22950    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
22951$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
22952
22953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
22954$as_echo_n "checking for Ruby include path... " >&6; }
22955if ${svn_cv_ruby_includes+:} false; then :
22956  $as_echo_n "(cached) " >&6
22957else
22958
22959    if test -d "$rbconfig_rubyhdrdir"; then
22960            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
22961    else
22962            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
22963    fi
22964
22965fi
22966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
22967$as_echo "$svn_cv_ruby_includes" >&6; }
22968    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
22969
22970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
22971$as_echo_n "checking how to compile Ruby extensions... " >&6; }
22972if ${svn_cv_ruby_compile+:} false; then :
22973  $as_echo_n "(cached) " >&6
22974else
22975
22976      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
22977
22978fi
22979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
22980$as_echo "$svn_cv_ruby_compile" >&6; }
22981    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
22982
22983  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
22984
22985
22986  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
22987
22988
22989  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
22990
22991        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
22992
22993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
22994$as_echo_n "checking how to link Ruby extensions... " >&6; }
22995if ${svn_cv_ruby_link+:} false; then :
22996  $as_echo_n "(cached) " >&6
22997else
22998
22999      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23000                           $rbconfig_LDSHARED`"
23001      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23002      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23003
23004fi
23005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23006$as_echo "$svn_cv_ruby_link" >&6; }
23007    SWIG_RB_LINK="$svn_cv_ruby_link"
23008
23009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23010$as_echo_n "checking how to link Ruby libraries... " >&6; }
23011if ${ac_cv_ruby_libs+:} false; then :
23012  $as_echo_n "(cached) " >&6
23013else
23014
23015      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23016
23017fi
23018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23019$as_echo "$ac_cv_ruby_libs" >&6; }
23020    SWIG_RB_LIBS="`
23021  input_flags="$ac_cv_ruby_libs"
23022  output_flags=""
23023  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23024  for flag in $input_flags; do
23025    filter="no"
23026    for dir in $filtered_dirs; do
23027      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23028        filter="yes"
23029        break
23030      fi
23031    done
23032    if test "$filter" = "no"; then
23033      output_flags="$output_flags $flag"
23034    fi
23035  done
23036  if test -n "$output_flags"; then
23037    printf "%s" "${output_flags# }"
23038  fi
23039`"
23040
23041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23042$as_echo_n "checking for rb_errinfo... " >&6; }
23043    old_CFLAGS="$CFLAGS"
23044    old_LIBS="$LIBS"
23045    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23046
23047  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23048
23049
23050  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23051
23052
23053  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23054
23055    LIBS="$SWIG_RB_LIBS"
23056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057/* end confdefs.h.  */
23058
23059#include <ruby.h>
23060int main()
23061{rb_errinfo();}
23062_ACEOF
23063if ac_fn_c_try_link "$LINENO"; then :
23064  have_rb_errinfo="yes"
23065else
23066  have_rb_errinfo="no"
23067fi
23068rm -f core conftest.err conftest.$ac_objext \
23069    conftest$ac_exeext conftest.$ac_ext
23070    if test "$have_rb_errinfo" = "yes"; then
23071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23072$as_echo "yes" >&6; }
23073
23074$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23075
23076    else
23077      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078$as_echo "no" >&6; }
23079    fi
23080    CFLAGS="$old_CFLAGS"
23081    LIBS="$old_LIBS"
23082
23083    if ${svn_cv_ruby_sitedir+:} false; then :
23084  $as_echo_n "(cached) " >&6
23085else
23086
23087      svn_cv_ruby_sitedir="$rbconfig_sitedir"
23088
23089fi
23090
23091
23092# Check whether --with-ruby-sitedir was given.
23093if test "${with_ruby_sitedir+set}" = set; then :
23094  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23095else
23096  svn_ruby_installdir="$svn_cv_ruby_sitedir"
23097fi
23098
23099
23100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23101$as_echo_n "checking where to install Ruby scripts... " >&6; }
23102    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23103  $as_echo_n "(cached) " >&6
23104else
23105
23106      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23107                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23108
23109fi
23110
23111    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23113$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23114
23115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23116$as_echo_n "checking where to install Ruby extensions... " >&6; }
23117    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23118  $as_echo_n "(cached) " >&6
23119else
23120
23121      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23122                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23123
23124fi
23125
23126    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23128$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23129
23130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23131$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23132    if ${svn_cv_ruby_test_verbose+:} false; then :
23133  $as_echo_n "(cached) " >&6
23134else
23135
23136      svn_cv_ruby_test_verbose="normal"
23137
23138fi
23139
23140
23141# Check whether --with-ruby-test-verbose was given.
23142if test "${with_ruby_test_verbose+set}" = set; then :
23143  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23144else
23145  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23146fi
23147
23148      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23149      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23150$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23151  fi
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166      ;;
23167      "yes")
23168
23169  where=check
23170
23171  if test $where = no; then
23172    SWIG=none
23173  elif test $where = check; then
23174    # Extract the first word of "swig", so it can be a program name with args.
23175set dummy swig; ac_word=$2
23176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23177$as_echo_n "checking for $ac_word... " >&6; }
23178if ${ac_cv_path_SWIG+:} false; then :
23179  $as_echo_n "(cached) " >&6
23180else
23181  case $SWIG in
23182  [\\/]* | ?:[\\/]*)
23183  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23184  ;;
23185  *)
23186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23187for as_dir in $PATH
23188do
23189  IFS=$as_save_IFS
23190  test -z "$as_dir" && as_dir=.
23191    for ac_exec_ext in '' $ac_executable_extensions; do
23192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23193    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23195    break 2
23196  fi
23197done
23198  done
23199IFS=$as_save_IFS
23200
23201  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23202  ;;
23203esac
23204fi
23205SWIG=$ac_cv_path_SWIG
23206if test -n "$SWIG"; then
23207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23208$as_echo "$SWIG" >&6; }
23209else
23210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23211$as_echo "no" >&6; }
23212fi
23213
23214
23215  else
23216    if test -f "$where"; then
23217      SWIG="$where"
23218    else
23219      SWIG="$where/bin/swig"
23220    fi
23221    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23222      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23223    fi
23224  fi
23225
23226  if test "$SWIG" != "none"; then
23227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23228$as_echo_n "checking swig version... " >&6; }
23229    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23230                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23231    # We want the version as an integer so we can test against
23232    # which version we're using.  SWIG doesn't provide this
23233    # to us so we have to come up with it on our own.
23234    # The major is passed straight through,
23235    # the minor is zero padded to two places,
23236    # and the patch level is zero padded to three places.
23237    # e.g. 1.3.24 becomes 103024
23238    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23239                  $SED -e 's/[^0-9\.].*$//' \
23240                      -e 's/\.\([0-9]\)$/.0\1/' \
23241                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23242                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23243    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23244$as_echo "$SWIG_VERSION_RAW" >&6; }
23245    # If you change the required swig version number, don't forget to update:
23246    #   subversion/bindings/swig/INSTALL
23247    #   packages/rpm/redhat-8+/subversion.spec
23248    #   packages/rpm/redhat-7.x/subversion.spec
23249    #   packages/rpm/rhel-3/subversion.spec
23250    #   packages/rpm/rhel-4/subversion.spec
23251    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23252      SWIG_SUITABLE=yes
23253    else
23254      SWIG_SUITABLE=no
23255      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23256$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23257      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23258$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23259    fi
23260  fi
23261
23262  SWIG_PY_COMPILE="none"
23263  SWIG_PY_LINK="none"
23264  if test "$PYTHON" != "none"; then
23265    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23266$as_echo "$as_me: Configuring python swig binding" >&6;}
23267
23268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23269$as_echo_n "checking for Python includes... " >&6; }
23270if ${ac_cv_python_includes+:} false; then :
23271  $as_echo_n "(cached) " >&6
23272else
23273
23274      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23275
23276fi
23277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23278$as_echo "$ac_cv_python_includes" >&6; }
23279    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23280
23281    if test "$ac_cv_python_includes" = "none"; then
23282      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23283$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23284    fi
23285
23286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23287$as_echo_n "checking for compiling Python extensions... " >&6; }
23288if ${ac_cv_python_compile+:} false; then :
23289  $as_echo_n "(cached) " >&6
23290else
23291
23292      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23293
23294fi
23295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23296$as_echo "$ac_cv_python_compile" >&6; }
23297    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23298
23299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23300$as_echo_n "checking for linking Python extensions... " >&6; }
23301if ${ac_cv_python_link+:} false; then :
23302  $as_echo_n "(cached) " >&6
23303else
23304
23305      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23306
23307fi
23308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23309$as_echo "$ac_cv_python_link" >&6; }
23310    SWIG_PY_LINK="$ac_cv_python_link"
23311
23312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23313$as_echo_n "checking for linking Python libraries... " >&6; }
23314if ${ac_cv_python_libs+:} false; then :
23315  $as_echo_n "(cached) " >&6
23316else
23317
23318      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23319
23320fi
23321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23322$as_echo "$ac_cv_python_libs" >&6; }
23323    SWIG_PY_LIBS="`
23324  input_flags="$ac_cv_python_libs"
23325  output_flags=""
23326  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23327  for flag in $input_flags; do
23328    filter="no"
23329    for dir in $filtered_dirs; do
23330      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23331        filter="yes"
23332        break
23333      fi
23334    done
23335    if test "$filter" = "no"; then
23336      output_flags="$output_flags $flag"
23337    fi
23338  done
23339  if test -n "$output_flags"; then
23340    printf "%s" "${output_flags# }"
23341  fi
23342`"
23343
23344                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23345    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23347$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23348if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23349  $as_echo_n "(cached) " >&6
23350else
23351
23352      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23353        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23354/* end confdefs.h.  */
23355#include <apr.h>
23356                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23357_ACEOF
23358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23359  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23360  svn_cv_pycfmt_apr_int64_t="L"
23361fi
23362rm -f conftest*
23363
23364      fi
23365      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23366        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367/* end confdefs.h.  */
23368r
23369                     #include <apr.h>
23370                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23371_ACEOF
23372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23373  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23374  svn_cv_pycfmt_apr_int64_t="l"
23375fi
23376rm -f conftest*
23377
23378      fi
23379      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23380        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381/* end confdefs.h.  */
23382#include <apr.h>
23383                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23384_ACEOF
23385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23386  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23387  svn_cv_pycfmt_apr_int64_t="i"
23388fi
23389rm -f conftest*
23390
23391      fi
23392
23393fi
23394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23395$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23396    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23397    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23398      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23399    fi
23400
23401cat >>confdefs.h <<_ACEOF
23402#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23403_ACEOF
23404
23405  fi
23406
23407  if test "$PERL" != "none"; then
23408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23409$as_echo_n "checking perl version... " >&6; }
23410            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23412$as_echo "$PERL_VERSION" >&6; }
23413    if test "$PERL_VERSION" -ge "5008000"; then
23414      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23415    else
23416      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23417$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23418    fi
23419  fi
23420
23421  SWIG_RB_COMPILE="none"
23422  SWIG_RB_LINK="none"
23423  if test "$RUBY" != "none"; then
23424    rbconfig="$RUBY -rrbconfig -e "
23425
23426    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23427                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
23428    do
23429      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23430      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23431    done
23432
23433    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23434$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23435
23436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23437$as_echo_n "checking for Ruby include path... " >&6; }
23438if ${svn_cv_ruby_includes+:} false; then :
23439  $as_echo_n "(cached) " >&6
23440else
23441
23442    if test -d "$rbconfig_rubyhdrdir"; then
23443            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23444    else
23445            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23446    fi
23447
23448fi
23449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23450$as_echo "$svn_cv_ruby_includes" >&6; }
23451    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23452
23453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23454$as_echo_n "checking how to compile Ruby extensions... " >&6; }
23455if ${svn_cv_ruby_compile+:} false; then :
23456  $as_echo_n "(cached) " >&6
23457else
23458
23459      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23460
23461fi
23462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23463$as_echo "$svn_cv_ruby_compile" >&6; }
23464    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23465
23466  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23467
23468
23469  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23470
23471
23472  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23473
23474        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23475
23476    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23477$as_echo_n "checking how to link Ruby extensions... " >&6; }
23478if ${svn_cv_ruby_link+:} false; then :
23479  $as_echo_n "(cached) " >&6
23480else
23481
23482      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23483                           $rbconfig_LDSHARED`"
23484      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23485      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23486
23487fi
23488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23489$as_echo "$svn_cv_ruby_link" >&6; }
23490    SWIG_RB_LINK="$svn_cv_ruby_link"
23491
23492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23493$as_echo_n "checking how to link Ruby libraries... " >&6; }
23494if ${ac_cv_ruby_libs+:} false; then :
23495  $as_echo_n "(cached) " >&6
23496else
23497
23498      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23499
23500fi
23501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23502$as_echo "$ac_cv_ruby_libs" >&6; }
23503    SWIG_RB_LIBS="`
23504  input_flags="$ac_cv_ruby_libs"
23505  output_flags=""
23506  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23507  for flag in $input_flags; do
23508    filter="no"
23509    for dir in $filtered_dirs; do
23510      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23511        filter="yes"
23512        break
23513      fi
23514    done
23515    if test "$filter" = "no"; then
23516      output_flags="$output_flags $flag"
23517    fi
23518  done
23519  if test -n "$output_flags"; then
23520    printf "%s" "${output_flags# }"
23521  fi
23522`"
23523
23524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23525$as_echo_n "checking for rb_errinfo... " >&6; }
23526    old_CFLAGS="$CFLAGS"
23527    old_LIBS="$LIBS"
23528    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23529
23530  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23531
23532
23533  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23534
23535
23536  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23537
23538    LIBS="$SWIG_RB_LIBS"
23539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540/* end confdefs.h.  */
23541
23542#include <ruby.h>
23543int main()
23544{rb_errinfo();}
23545_ACEOF
23546if ac_fn_c_try_link "$LINENO"; then :
23547  have_rb_errinfo="yes"
23548else
23549  have_rb_errinfo="no"
23550fi
23551rm -f core conftest.err conftest.$ac_objext \
23552    conftest$ac_exeext conftest.$ac_ext
23553    if test "$have_rb_errinfo" = "yes"; then
23554      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23555$as_echo "yes" >&6; }
23556
23557$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23558
23559    else
23560      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23561$as_echo "no" >&6; }
23562    fi
23563    CFLAGS="$old_CFLAGS"
23564    LIBS="$old_LIBS"
23565
23566    if ${svn_cv_ruby_sitedir+:} false; then :
23567  $as_echo_n "(cached) " >&6
23568else
23569
23570      svn_cv_ruby_sitedir="$rbconfig_sitedir"
23571
23572fi
23573
23574
23575# Check whether --with-ruby-sitedir was given.
23576if test "${with_ruby_sitedir+set}" = set; then :
23577  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23578else
23579  svn_ruby_installdir="$svn_cv_ruby_sitedir"
23580fi
23581
23582
23583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23584$as_echo_n "checking where to install Ruby scripts... " >&6; }
23585    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23586  $as_echo_n "(cached) " >&6
23587else
23588
23589      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23590                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23591
23592fi
23593
23594    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23595    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23596$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23597
23598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23599$as_echo_n "checking where to install Ruby extensions... " >&6; }
23600    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23601  $as_echo_n "(cached) " >&6
23602else
23603
23604      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23605                                        $SED -e "s,^$rbconfig_sitedir,,"`"
23606
23607fi
23608
23609    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23611$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23612
23613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23614$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23615    if ${svn_cv_ruby_test_verbose+:} false; then :
23616  $as_echo_n "(cached) " >&6
23617else
23618
23619      svn_cv_ruby_test_verbose="normal"
23620
23621fi
23622
23623
23624# Check whether --with-ruby-test-verbose was given.
23625if test "${with_ruby_test_verbose+set}" = set; then :
23626  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23627else
23628  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23629fi
23630
23631      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23632      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23633$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23634  fi
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649      ;;
23650      *)
23651
23652  where=$withval
23653
23654  if test $where = no; then
23655    SWIG=none
23656  elif test $where = check; then
23657    # Extract the first word of "swig", so it can be a program name with args.
23658set dummy swig; ac_word=$2
23659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23660$as_echo_n "checking for $ac_word... " >&6; }
23661if ${ac_cv_path_SWIG+:} false; then :
23662  $as_echo_n "(cached) " >&6
23663else
23664  case $SWIG in
23665  [\\/]* | ?:[\\/]*)
23666  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23667  ;;
23668  *)
23669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23670for as_dir in $PATH
23671do
23672  IFS=$as_save_IFS
23673  test -z "$as_dir" && as_dir=.
23674    for ac_exec_ext in '' $ac_executable_extensions; do
23675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23676    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23678    break 2
23679  fi
23680done
23681  done
23682IFS=$as_save_IFS
23683
23684  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23685  ;;
23686esac
23687fi
23688SWIG=$ac_cv_path_SWIG
23689if test -n "$SWIG"; then
23690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23691$as_echo "$SWIG" >&6; }
23692else
23693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23694$as_echo "no" >&6; }
23695fi
23696
23697
23698  else
23699    if test -f "$where"; then
23700      SWIG="$where"
23701    else
23702      SWIG="$where/bin/swig"
23703    fi
23704    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23705      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23706    fi
23707  fi
23708
23709  if test "$SWIG" != "none"; then
23710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23711$as_echo_n "checking swig version... " >&6; }
23712    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23713                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23714    # We want the version as an integer so we can test against
23715    # which version we're using.  SWIG doesn't provide this
23716    # to us so we have to come up with it on our own.
23717    # The major is passed straight through,
23718    # the minor is zero padded to two places,
23719    # and the patch level is zero padded to three places.
23720    # e.g. 1.3.24 becomes 103024
23721    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23722                  $SED -e 's/[^0-9\.].*$//' \
23723                      -e 's/\.\([0-9]\)$/.0\1/' \
23724                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23725                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23727$as_echo "$SWIG_VERSION_RAW" >&6; }
23728    # If you change the required swig version number, don't forget to update:
23729    #   subversion/bindings/swig/INSTALL
23730    #   packages/rpm/redhat-8+/subversion.spec
23731    #   packages/rpm/redhat-7.x/subversion.spec
23732    #   packages/rpm/rhel-3/subversion.spec
23733    #   packages/rpm/rhel-4/subversion.spec
23734    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23735      SWIG_SUITABLE=yes
23736    else
23737      SWIG_SUITABLE=no
23738      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23739$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23740      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23741$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23742    fi
23743  fi
23744
23745  SWIG_PY_COMPILE="none"
23746  SWIG_PY_LINK="none"
23747  if test "$PYTHON" != "none"; then
23748    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23749$as_echo "$as_me: Configuring python swig binding" >&6;}
23750
23751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23752$as_echo_n "checking for Python includes... " >&6; }
23753if ${ac_cv_python_includes+:} false; then :
23754  $as_echo_n "(cached) " >&6
23755else
23756
23757      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23758
23759fi
23760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23761$as_echo "$ac_cv_python_includes" >&6; }
23762    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23763
23764    if test "$ac_cv_python_includes" = "none"; then
23765      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23766$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23767    fi
23768
23769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23770$as_echo_n "checking for compiling Python extensions... " >&6; }
23771if ${ac_cv_python_compile+:} false; then :
23772  $as_echo_n "(cached) " >&6
23773else
23774
23775      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23776
23777fi
23778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23779$as_echo "$ac_cv_python_compile" >&6; }
23780    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23781
23782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23783$as_echo_n "checking for linking Python extensions... " >&6; }
23784if ${ac_cv_python_link+:} false; then :
23785  $as_echo_n "(cached) " >&6
23786else
23787
23788      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23789
23790fi
23791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23792$as_echo "$ac_cv_python_link" >&6; }
23793    SWIG_PY_LINK="$ac_cv_python_link"
23794
23795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23796$as_echo_n "checking for linking Python libraries... " >&6; }
23797if ${ac_cv_python_libs+:} false; then :
23798  $as_echo_n "(cached) " >&6
23799else
23800
23801      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23802
23803fi
23804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23805$as_echo "$ac_cv_python_libs" >&6; }
23806    SWIG_PY_LIBS="`
23807  input_flags="$ac_cv_python_libs"
23808  output_flags=""
23809  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23810  for flag in $input_flags; do
23811    filter="no"
23812    for dir in $filtered_dirs; do
23813      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23814        filter="yes"
23815        break
23816      fi
23817    done
23818    if test "$filter" = "no"; then
23819      output_flags="$output_flags $flag"
23820    fi
23821  done
23822  if test -n "$output_flags"; then
23823    printf "%s" "${output_flags# }"
23824  fi
23825`"
23826
23827                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23828    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23830$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23831if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23832  $as_echo_n "(cached) " >&6
23833else
23834
23835      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23836        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837/* end confdefs.h.  */
23838#include <apr.h>
23839                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23840_ACEOF
23841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23842  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23843  svn_cv_pycfmt_apr_int64_t="L"
23844fi
23845rm -f conftest*
23846
23847      fi
23848      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23849        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850/* end confdefs.h.  */
23851r
23852                     #include <apr.h>
23853                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23854_ACEOF
23855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23856  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23857  svn_cv_pycfmt_apr_int64_t="l"
23858fi
23859rm -f conftest*
23860
23861      fi
23862      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23863        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864/* end confdefs.h.  */
23865#include <apr.h>
23866                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23867_ACEOF
23868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23869  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23870  svn_cv_pycfmt_apr_int64_t="i"
23871fi
23872rm -f conftest*
23873
23874      fi
23875
23876fi
23877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23878$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23879    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23880    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23881      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23882    fi
23883
23884cat >>confdefs.h <<_ACEOF
23885#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23886_ACEOF
23887
23888  fi
23889
23890  if test "$PERL" != "none"; then
23891    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23892$as_echo_n "checking perl version... " >&6; }
23893            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23895$as_echo "$PERL_VERSION" >&6; }
23896    if test "$PERL_VERSION" -ge "5008000"; then
23897      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23898    else
23899      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23900$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23901    fi
23902  fi
23903
23904  SWIG_RB_COMPILE="none"
23905  SWIG_RB_LINK="none"
23906  if test "$RUBY" != "none"; then
23907    rbconfig="$RUBY -rrbconfig -e "
23908
23909    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23910                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
23911    do
23912      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23913      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23914    done
23915
23916    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23917$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23918
23919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23920$as_echo_n "checking for Ruby include path... " >&6; }
23921if ${svn_cv_ruby_includes+:} false; then :
23922  $as_echo_n "(cached) " >&6
23923else
23924
23925    if test -d "$rbconfig_rubyhdrdir"; then
23926            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23927    else
23928            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23929    fi
23930
23931fi
23932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23933$as_echo "$svn_cv_ruby_includes" >&6; }
23934    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23935
23936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23937$as_echo_n "checking how to compile Ruby extensions... " >&6; }
23938if ${svn_cv_ruby_compile+:} false; then :
23939  $as_echo_n "(cached) " >&6
23940else
23941
23942      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23943
23944fi
23945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23946$as_echo "$svn_cv_ruby_compile" >&6; }
23947    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23948
23949  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23950
23951
23952  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23953
23954
23955  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23956
23957        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23958
23959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23960$as_echo_n "checking how to link Ruby extensions... " >&6; }
23961if ${svn_cv_ruby_link+:} false; then :
23962  $as_echo_n "(cached) " >&6
23963else
23964
23965      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23966                           $rbconfig_LDSHARED`"
23967      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23968      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23969
23970fi
23971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23972$as_echo "$svn_cv_ruby_link" >&6; }
23973    SWIG_RB_LINK="$svn_cv_ruby_link"
23974
23975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23976$as_echo_n "checking how to link Ruby libraries... " >&6; }
23977if ${ac_cv_ruby_libs+:} false; then :
23978  $as_echo_n "(cached) " >&6
23979else
23980
23981      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23982
23983fi
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23985$as_echo "$ac_cv_ruby_libs" >&6; }
23986    SWIG_RB_LIBS="`
23987  input_flags="$ac_cv_ruby_libs"
23988  output_flags=""
23989  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23990  for flag in $input_flags; do
23991    filter="no"
23992    for dir in $filtered_dirs; do
23993      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23994        filter="yes"
23995        break
23996      fi
23997    done
23998    if test "$filter" = "no"; then
23999      output_flags="$output_flags $flag"
24000    fi
24001  done
24002  if test -n "$output_flags"; then
24003    printf "%s" "${output_flags# }"
24004  fi
24005`"
24006
24007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24008$as_echo_n "checking for rb_errinfo... " >&6; }
24009    old_CFLAGS="$CFLAGS"
24010    old_LIBS="$LIBS"
24011    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24012
24013  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24014
24015
24016  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24017
24018
24019  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24020
24021    LIBS="$SWIG_RB_LIBS"
24022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24023/* end confdefs.h.  */
24024
24025#include <ruby.h>
24026int main()
24027{rb_errinfo();}
24028_ACEOF
24029if ac_fn_c_try_link "$LINENO"; then :
24030  have_rb_errinfo="yes"
24031else
24032  have_rb_errinfo="no"
24033fi
24034rm -f core conftest.err conftest.$ac_objext \
24035    conftest$ac_exeext conftest.$ac_ext
24036    if test "$have_rb_errinfo" = "yes"; then
24037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24038$as_echo "yes" >&6; }
24039
24040$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24041
24042    else
24043      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24044$as_echo "no" >&6; }
24045    fi
24046    CFLAGS="$old_CFLAGS"
24047    LIBS="$old_LIBS"
24048
24049    if ${svn_cv_ruby_sitedir+:} false; then :
24050  $as_echo_n "(cached) " >&6
24051else
24052
24053      svn_cv_ruby_sitedir="$rbconfig_sitedir"
24054
24055fi
24056
24057
24058# Check whether --with-ruby-sitedir was given.
24059if test "${with_ruby_sitedir+set}" = set; then :
24060  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24061else
24062  svn_ruby_installdir="$svn_cv_ruby_sitedir"
24063fi
24064
24065
24066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24067$as_echo_n "checking where to install Ruby scripts... " >&6; }
24068    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24069  $as_echo_n "(cached) " >&6
24070else
24071
24072      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24073                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24074
24075fi
24076
24077    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24079$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24080
24081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24082$as_echo_n "checking where to install Ruby extensions... " >&6; }
24083    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24084  $as_echo_n "(cached) " >&6
24085else
24086
24087      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24088                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24089
24090fi
24091
24092    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24094$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24095
24096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24097$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24098    if ${svn_cv_ruby_test_verbose+:} false; then :
24099  $as_echo_n "(cached) " >&6
24100else
24101
24102      svn_cv_ruby_test_verbose="normal"
24103
24104fi
24105
24106
24107# Check whether --with-ruby-test-verbose was given.
24108if test "${with_ruby_test_verbose+set}" = set; then :
24109  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24110else
24111  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24112fi
24113
24114      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24115      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24116$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24117  fi
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132      ;;
24133    esac
24134
24135else
24136
24137
24138  where=check
24139
24140  if test $where = no; then
24141    SWIG=none
24142  elif test $where = check; then
24143    # Extract the first word of "swig", so it can be a program name with args.
24144set dummy swig; ac_word=$2
24145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24146$as_echo_n "checking for $ac_word... " >&6; }
24147if ${ac_cv_path_SWIG+:} false; then :
24148  $as_echo_n "(cached) " >&6
24149else
24150  case $SWIG in
24151  [\\/]* | ?:[\\/]*)
24152  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24153  ;;
24154  *)
24155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24156for as_dir in $PATH
24157do
24158  IFS=$as_save_IFS
24159  test -z "$as_dir" && as_dir=.
24160    for ac_exec_ext in '' $ac_executable_extensions; do
24161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24162    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24164    break 2
24165  fi
24166done
24167  done
24168IFS=$as_save_IFS
24169
24170  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24171  ;;
24172esac
24173fi
24174SWIG=$ac_cv_path_SWIG
24175if test -n "$SWIG"; then
24176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24177$as_echo "$SWIG" >&6; }
24178else
24179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24180$as_echo "no" >&6; }
24181fi
24182
24183
24184  else
24185    if test -f "$where"; then
24186      SWIG="$where"
24187    else
24188      SWIG="$where/bin/swig"
24189    fi
24190    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24191      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24192    fi
24193  fi
24194
24195  if test "$SWIG" != "none"; then
24196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24197$as_echo_n "checking swig version... " >&6; }
24198    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24199                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24200    # We want the version as an integer so we can test against
24201    # which version we're using.  SWIG doesn't provide this
24202    # to us so we have to come up with it on our own.
24203    # The major is passed straight through,
24204    # the minor is zero padded to two places,
24205    # and the patch level is zero padded to three places.
24206    # e.g. 1.3.24 becomes 103024
24207    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24208                  $SED -e 's/[^0-9\.].*$//' \
24209                      -e 's/\.\([0-9]\)$/.0\1/' \
24210                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24211                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24212    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24213$as_echo "$SWIG_VERSION_RAW" >&6; }
24214    # If you change the required swig version number, don't forget to update:
24215    #   subversion/bindings/swig/INSTALL
24216    #   packages/rpm/redhat-8+/subversion.spec
24217    #   packages/rpm/redhat-7.x/subversion.spec
24218    #   packages/rpm/rhel-3/subversion.spec
24219    #   packages/rpm/rhel-4/subversion.spec
24220    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24221      SWIG_SUITABLE=yes
24222    else
24223      SWIG_SUITABLE=no
24224      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24225$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24226      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24227$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24228    fi
24229  fi
24230
24231  SWIG_PY_COMPILE="none"
24232  SWIG_PY_LINK="none"
24233  if test "$PYTHON" != "none"; then
24234    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24235$as_echo "$as_me: Configuring python swig binding" >&6;}
24236
24237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24238$as_echo_n "checking for Python includes... " >&6; }
24239if ${ac_cv_python_includes+:} false; then :
24240  $as_echo_n "(cached) " >&6
24241else
24242
24243      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24244
24245fi
24246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24247$as_echo "$ac_cv_python_includes" >&6; }
24248    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24249
24250    if test "$ac_cv_python_includes" = "none"; then
24251      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24252$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24253    fi
24254
24255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24256$as_echo_n "checking for compiling Python extensions... " >&6; }
24257if ${ac_cv_python_compile+:} false; then :
24258  $as_echo_n "(cached) " >&6
24259else
24260
24261      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24262
24263fi
24264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24265$as_echo "$ac_cv_python_compile" >&6; }
24266    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24267
24268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24269$as_echo_n "checking for linking Python extensions... " >&6; }
24270if ${ac_cv_python_link+:} false; then :
24271  $as_echo_n "(cached) " >&6
24272else
24273
24274      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24275
24276fi
24277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24278$as_echo "$ac_cv_python_link" >&6; }
24279    SWIG_PY_LINK="$ac_cv_python_link"
24280
24281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24282$as_echo_n "checking for linking Python libraries... " >&6; }
24283if ${ac_cv_python_libs+:} false; then :
24284  $as_echo_n "(cached) " >&6
24285else
24286
24287      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24288
24289fi
24290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24291$as_echo "$ac_cv_python_libs" >&6; }
24292    SWIG_PY_LIBS="`
24293  input_flags="$ac_cv_python_libs"
24294  output_flags=""
24295  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24296  for flag in $input_flags; do
24297    filter="no"
24298    for dir in $filtered_dirs; do
24299      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24300        filter="yes"
24301        break
24302      fi
24303    done
24304    if test "$filter" = "no"; then
24305      output_flags="$output_flags $flag"
24306    fi
24307  done
24308  if test -n "$output_flags"; then
24309    printf "%s" "${output_flags# }"
24310  fi
24311`"
24312
24313                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24314    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24316$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24317if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24318  $as_echo_n "(cached) " >&6
24319else
24320
24321      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24322        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323/* end confdefs.h.  */
24324#include <apr.h>
24325                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24326_ACEOF
24327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24328  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24329  svn_cv_pycfmt_apr_int64_t="L"
24330fi
24331rm -f conftest*
24332
24333      fi
24334      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24335        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336/* end confdefs.h.  */
24337r
24338                     #include <apr.h>
24339                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24340_ACEOF
24341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24342  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24343  svn_cv_pycfmt_apr_int64_t="l"
24344fi
24345rm -f conftest*
24346
24347      fi
24348      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24349        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350/* end confdefs.h.  */
24351#include <apr.h>
24352                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24353_ACEOF
24354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24355  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24356  svn_cv_pycfmt_apr_int64_t="i"
24357fi
24358rm -f conftest*
24359
24360      fi
24361
24362fi
24363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24364$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24365    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24366    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24367      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24368    fi
24369
24370cat >>confdefs.h <<_ACEOF
24371#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24372_ACEOF
24373
24374  fi
24375
24376  if test "$PERL" != "none"; then
24377    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24378$as_echo_n "checking perl version... " >&6; }
24379            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24380    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24381$as_echo "$PERL_VERSION" >&6; }
24382    if test "$PERL_VERSION" -ge "5008000"; then
24383      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24384    else
24385      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24386$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24387    fi
24388  fi
24389
24390  SWIG_RB_COMPILE="none"
24391  SWIG_RB_LINK="none"
24392  if test "$RUBY" != "none"; then
24393    rbconfig="$RUBY -rrbconfig -e "
24394
24395    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24396                    rubyhdrdir sitedir sitelibdir sitearchdir libdir
24397    do
24398      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24399      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24400    done
24401
24402    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24403$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24404
24405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24406$as_echo_n "checking for Ruby include path... " >&6; }
24407if ${svn_cv_ruby_includes+:} false; then :
24408  $as_echo_n "(cached) " >&6
24409else
24410
24411    if test -d "$rbconfig_rubyhdrdir"; then
24412            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24413    else
24414            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24415    fi
24416
24417fi
24418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24419$as_echo "$svn_cv_ruby_includes" >&6; }
24420    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24421
24422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24423$as_echo_n "checking how to compile Ruby extensions... " >&6; }
24424if ${svn_cv_ruby_compile+:} false; then :
24425  $as_echo_n "(cached) " >&6
24426else
24427
24428      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24429
24430fi
24431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24432$as_echo "$svn_cv_ruby_compile" >&6; }
24433    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24434
24435  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24436
24437
24438  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24439
24440
24441  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24442
24443        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24444
24445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24446$as_echo_n "checking how to link Ruby extensions... " >&6; }
24447if ${svn_cv_ruby_link+:} false; then :
24448  $as_echo_n "(cached) " >&6
24449else
24450
24451      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24452                           $rbconfig_LDSHARED`"
24453      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24454      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24455
24456fi
24457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24458$as_echo "$svn_cv_ruby_link" >&6; }
24459    SWIG_RB_LINK="$svn_cv_ruby_link"
24460
24461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24462$as_echo_n "checking how to link Ruby libraries... " >&6; }
24463if ${ac_cv_ruby_libs+:} false; then :
24464  $as_echo_n "(cached) " >&6
24465else
24466
24467      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24468
24469fi
24470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24471$as_echo "$ac_cv_ruby_libs" >&6; }
24472    SWIG_RB_LIBS="`
24473  input_flags="$ac_cv_ruby_libs"
24474  output_flags=""
24475  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24476  for flag in $input_flags; do
24477    filter="no"
24478    for dir in $filtered_dirs; do
24479      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24480        filter="yes"
24481        break
24482      fi
24483    done
24484    if test "$filter" = "no"; then
24485      output_flags="$output_flags $flag"
24486    fi
24487  done
24488  if test -n "$output_flags"; then
24489    printf "%s" "${output_flags# }"
24490  fi
24491`"
24492
24493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24494$as_echo_n "checking for rb_errinfo... " >&6; }
24495    old_CFLAGS="$CFLAGS"
24496    old_LIBS="$LIBS"
24497    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24498
24499  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24500
24501
24502  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24503
24504
24505  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24506
24507    LIBS="$SWIG_RB_LIBS"
24508    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24509/* end confdefs.h.  */
24510
24511#include <ruby.h>
24512int main()
24513{rb_errinfo();}
24514_ACEOF
24515if ac_fn_c_try_link "$LINENO"; then :
24516  have_rb_errinfo="yes"
24517else
24518  have_rb_errinfo="no"
24519fi
24520rm -f core conftest.err conftest.$ac_objext \
24521    conftest$ac_exeext conftest.$ac_ext
24522    if test "$have_rb_errinfo" = "yes"; then
24523      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24524$as_echo "yes" >&6; }
24525
24526$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24527
24528    else
24529      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530$as_echo "no" >&6; }
24531    fi
24532    CFLAGS="$old_CFLAGS"
24533    LIBS="$old_LIBS"
24534
24535    if ${svn_cv_ruby_sitedir+:} false; then :
24536  $as_echo_n "(cached) " >&6
24537else
24538
24539      svn_cv_ruby_sitedir="$rbconfig_sitedir"
24540
24541fi
24542
24543
24544# Check whether --with-ruby-sitedir was given.
24545if test "${with_ruby_sitedir+set}" = set; then :
24546  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24547else
24548  svn_ruby_installdir="$svn_cv_ruby_sitedir"
24549fi
24550
24551
24552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24553$as_echo_n "checking where to install Ruby scripts... " >&6; }
24554    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24555  $as_echo_n "(cached) " >&6
24556else
24557
24558      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24559                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24560
24561fi
24562
24563    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24565$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24566
24567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24568$as_echo_n "checking where to install Ruby extensions... " >&6; }
24569    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24570  $as_echo_n "(cached) " >&6
24571else
24572
24573      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24574                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24575
24576fi
24577
24578    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24580$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24581
24582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24583$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24584    if ${svn_cv_ruby_test_verbose+:} false; then :
24585  $as_echo_n "(cached) " >&6
24586else
24587
24588      svn_cv_ruby_test_verbose="normal"
24589
24590fi
24591
24592
24593# Check whether --with-ruby-test-verbose was given.
24594if test "${with_ruby_test_verbose+set}" = set; then :
24595  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24596else
24597  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24598fi
24599
24600      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24601      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24602$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24603  fi
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619fi
24620
24621
24622
24623
24624
24625# Check whether --with-ctypesgen was given.
24626if test "${with_ctypesgen+set}" = set; then :
24627  withval=$with_ctypesgen;
24628    case "$withval" in
24629      "no")
24630
24631  where=no
24632
24633  CTYPESGEN=none
24634
24635  if test $where = check; then
24636    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24637set dummy "ctypesgen.py"; ac_word=$2
24638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24639$as_echo_n "checking for $ac_word... " >&6; }
24640if ${ac_cv_path_CTYPESGEN+:} false; then :
24641  $as_echo_n "(cached) " >&6
24642else
24643  case $CTYPESGEN in
24644  [\\/]* | ?:[\\/]*)
24645  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24646  ;;
24647  *)
24648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24649for as_dir in $PATH
24650do
24651  IFS=$as_save_IFS
24652  test -z "$as_dir" && as_dir=.
24653    for ac_exec_ext in '' $ac_executable_extensions; do
24654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24655    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24657    break 2
24658  fi
24659done
24660  done
24661IFS=$as_save_IFS
24662
24663  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24664  ;;
24665esac
24666fi
24667CTYPESGEN=$ac_cv_path_CTYPESGEN
24668if test -n "$CTYPESGEN"; then
24669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24670$as_echo "$CTYPESGEN" >&6; }
24671else
24672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673$as_echo "no" >&6; }
24674fi
24675
24676
24677  elif test $where != no; then
24678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24679$as_echo_n "checking for ctypesgen.py... " >&6; }
24680
24681    if test -f "$where"; then
24682      CTYPESGEN="$where"
24683    elif test -f "$where/bin/ctypesgen.py"; then
24684      CTYPESGEN="$where/bin/ctypesgen.py"
24685    else
24686      CTYPESGEN="$where/ctypesgen.py"
24687    fi
24688
24689    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24690      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24691                    $where/bin/ctypesgen.py" "$LINENO" 5
24692    else
24693      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24694$as_echo "$CTYPESGEN" >&6; }
24695    fi
24696  fi
24697
24698
24699
24700      ;;
24701      "yes")
24702
24703  where=check
24704
24705  CTYPESGEN=none
24706
24707  if test $where = check; then
24708    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24709set dummy "ctypesgen.py"; ac_word=$2
24710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24711$as_echo_n "checking for $ac_word... " >&6; }
24712if ${ac_cv_path_CTYPESGEN+:} false; then :
24713  $as_echo_n "(cached) " >&6
24714else
24715  case $CTYPESGEN in
24716  [\\/]* | ?:[\\/]*)
24717  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24718  ;;
24719  *)
24720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24721for as_dir in $PATH
24722do
24723  IFS=$as_save_IFS
24724  test -z "$as_dir" && as_dir=.
24725    for ac_exec_ext in '' $ac_executable_extensions; do
24726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24727    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24729    break 2
24730  fi
24731done
24732  done
24733IFS=$as_save_IFS
24734
24735  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24736  ;;
24737esac
24738fi
24739CTYPESGEN=$ac_cv_path_CTYPESGEN
24740if test -n "$CTYPESGEN"; then
24741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24742$as_echo "$CTYPESGEN" >&6; }
24743else
24744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24745$as_echo "no" >&6; }
24746fi
24747
24748
24749  elif test $where != no; then
24750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24751$as_echo_n "checking for ctypesgen.py... " >&6; }
24752
24753    if test -f "$where"; then
24754      CTYPESGEN="$where"
24755    elif test -f "$where/bin/ctypesgen.py"; then
24756      CTYPESGEN="$where/bin/ctypesgen.py"
24757    else
24758      CTYPESGEN="$where/ctypesgen.py"
24759    fi
24760
24761    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24762      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24763                    $where/bin/ctypesgen.py" "$LINENO" 5
24764    else
24765      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24766$as_echo "$CTYPESGEN" >&6; }
24767    fi
24768  fi
24769
24770
24771
24772      ;;
24773      *)
24774
24775  where=$withval
24776
24777  CTYPESGEN=none
24778
24779  if test $where = check; then
24780    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24781set dummy "ctypesgen.py"; ac_word=$2
24782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24783$as_echo_n "checking for $ac_word... " >&6; }
24784if ${ac_cv_path_CTYPESGEN+:} false; then :
24785  $as_echo_n "(cached) " >&6
24786else
24787  case $CTYPESGEN in
24788  [\\/]* | ?:[\\/]*)
24789  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24790  ;;
24791  *)
24792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24793for as_dir in $PATH
24794do
24795  IFS=$as_save_IFS
24796  test -z "$as_dir" && as_dir=.
24797    for ac_exec_ext in '' $ac_executable_extensions; do
24798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24799    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24801    break 2
24802  fi
24803done
24804  done
24805IFS=$as_save_IFS
24806
24807  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24808  ;;
24809esac
24810fi
24811CTYPESGEN=$ac_cv_path_CTYPESGEN
24812if test -n "$CTYPESGEN"; then
24813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24814$as_echo "$CTYPESGEN" >&6; }
24815else
24816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24817$as_echo "no" >&6; }
24818fi
24819
24820
24821  elif test $where != no; then
24822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24823$as_echo_n "checking for ctypesgen.py... " >&6; }
24824
24825    if test -f "$where"; then
24826      CTYPESGEN="$where"
24827    elif test -f "$where/bin/ctypesgen.py"; then
24828      CTYPESGEN="$where/bin/ctypesgen.py"
24829    else
24830      CTYPESGEN="$where/ctypesgen.py"
24831    fi
24832
24833    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24834      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24835                    $where/bin/ctypesgen.py" "$LINENO" 5
24836    else
24837      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24838$as_echo "$CTYPESGEN" >&6; }
24839    fi
24840  fi
24841
24842
24843
24844      ;;
24845    esac
24846
24847else
24848
24849
24850  where=check
24851
24852  CTYPESGEN=none
24853
24854  if test $where = check; then
24855    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24856set dummy "ctypesgen.py"; ac_word=$2
24857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24858$as_echo_n "checking for $ac_word... " >&6; }
24859if ${ac_cv_path_CTYPESGEN+:} false; then :
24860  $as_echo_n "(cached) " >&6
24861else
24862  case $CTYPESGEN in
24863  [\\/]* | ?:[\\/]*)
24864  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24865  ;;
24866  *)
24867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24868for as_dir in $PATH
24869do
24870  IFS=$as_save_IFS
24871  test -z "$as_dir" && as_dir=.
24872    for ac_exec_ext in '' $ac_executable_extensions; do
24873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24874    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24876    break 2
24877  fi
24878done
24879  done
24880IFS=$as_save_IFS
24881
24882  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24883  ;;
24884esac
24885fi
24886CTYPESGEN=$ac_cv_path_CTYPESGEN
24887if test -n "$CTYPESGEN"; then
24888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24889$as_echo "$CTYPESGEN" >&6; }
24890else
24891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24892$as_echo "no" >&6; }
24893fi
24894
24895
24896  elif test $where != no; then
24897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24898$as_echo_n "checking for ctypesgen.py... " >&6; }
24899
24900    if test -f "$where"; then
24901      CTYPESGEN="$where"
24902    elif test -f "$where/bin/ctypesgen.py"; then
24903      CTYPESGEN="$where/bin/ctypesgen.py"
24904    else
24905      CTYPESGEN="$where/ctypesgen.py"
24906    fi
24907
24908    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24909      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24910                    $where/bin/ctypesgen.py" "$LINENO" 5
24911    else
24912      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24913$as_echo "$CTYPESGEN" >&6; }
24914    fi
24915  fi
24916
24917
24918
24919
24920fi
24921
24922
24923
24924# Check whether --enable-runtime-module-search was given.
24925if test "${enable_runtime_module_search+set}" = set; then :
24926  enableval=$enable_runtime_module_search;
24927    if test "$enableval" = "yes"; then
24928      use_dso=yes
24929      if test "$svn_enable_shared" = "no"; then
24930        as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
24931      fi
24932
24933$as_echo "#define SVN_USE_DSO 1" >>confdefs.h
24934
24935    fi
24936
24937fi
24938
24939
24940if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
24941
24942$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
24943
24944  svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
24945  svn_ra_lib_install_deps="install-ramod-lib"
24946  svn_ra_lib_link="\$(RA_LOCAL_LINK)"
24947
24948
24949$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
24950
24951  svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
24952  svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
24953
24954  if test "$svn_lib_serf" = "yes"; then
24955
24956$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
24957
24958    svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
24959    svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
24960    svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
24961  fi
24962
24963  SVN_RA_LIB_DEPS=$svn_ra_lib_deps
24964  SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
24965  SVN_RA_LIB_LINK=$svn_ra_lib_link
24966
24967
24968$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
24969
24970  svn_fs_lib_deps="\$(FS_FS_DEPS)"
24971  svn_fs_lib_install_deps="install-fsmod-lib"
24972  svn_fs_lib_link="\$(FS_FS_LINK)"
24973
24974  if test "$svn_lib_berkeley_db" = "yes"; then
24975
24976$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
24977
24978    svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
24979    svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
24980    svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
24981  fi
24982
24983  SVN_FS_LIB_DEPS=$svn_fs_lib_deps
24984  SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
24985  SVN_FS_LIB_LINK=$svn_fs_lib_link
24986fi
24987
24988
24989
24990
24991
24992
24993
24994
24995# ==== JavaHL ================================================================
24996
24997do_javahl_build=no
24998# Check whether --enable-javahl was given.
24999if test "${enable_javahl+set}" = set; then :
25000  enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
25001        do_javahl_build="yes"
25002    fi
25003
25004fi
25005
25006
25007JAVAHL_OBJDIR=""
25008INSTALL_EXTRA_JAVAHL_LIB=""
25009FIX_JAVAHL_LIB=""
25010JAVAHL_TESTS_TARGET=""
25011JAVAHL_COMPAT_TESTS_TARGET=""
25012LT_CXX_LIBADD=""
25013if test "$do_javahl_build" = "yes"; then
25014    if test "$JDK_SUITABLE" = "no"; then
25015    as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
25016                  Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
25017  fi
25018
25019    JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
25020
25021  os_arch=`uname`
25022  if test "$os_arch" = "Darwin"; then
25023        INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
25024    FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
25025  fi
25026  # This segment (and the rest of r10800) is very likely unnecessary
25027  # with libtool 1.5, which automatically adds libstdc++ as a
25028  # dependency to the C++ libraries it builds.  So at some future time
25029  # when autogen.sh requires libtool 1.5 or higher, we can get rid of
25030  # it.
25031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
25032$as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
25033  if test "x$ac_compiler_gnu" = "xyes"; then
25034    LT_CXX_LIBADD="-lstdc++"
25035    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
25036$as_echo "$LT_CXX_LIBADD" >&6; }
25037  else
25038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
25039$as_echo "none needed" >&6; }
25040  fi
25041fi
25042
25043
25044
25045
25046
25047
25048# Check whether --with-junit was given.
25049if test "${with_junit+set}" = set; then :
25050  withval=$with_junit;
25051    if test "$withval" != "no"; then
25052      if test -n "$JAVA_CLASSPATH"; then
25053        JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
25054      else
25055        JAVA_CLASSPATH="$withval"
25056      fi
25057      JAVAHL_TESTS_TARGET="javahl-tests"
25058      JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
25059    fi
25060
25061fi
25062
25063
25064
25065
25066
25067# ==== Miscellaneous bits ====================================================
25068
25069# Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
25070### I think we get this flag from APR, so the fix probably belongs there
25071if test "$CC" = "clang"; then
25072
25073  CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25074
25075fi
25076
25077# Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
25078SWIG_CPPFLAGS="$CPPFLAGS"
25079
25080  SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25081
25082
25083
25084
25085cat >>confdefs.h <<_ACEOF
25086#define SVN_PATH_LOCAL_SEPARATOR '/'
25087_ACEOF
25088
25089
25090
25091cat >>confdefs.h <<_ACEOF
25092#define SVN_NULL_DEVICE_NAME "/dev/null"
25093_ACEOF
25094
25095
25096DEFAULT_FS_TYPE="fsfs"
25097
25098cat >>confdefs.h <<_ACEOF
25099#define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
25100_ACEOF
25101
25102
25103DEFAULT_HTTP_LIBRARY="serf"
25104
25105cat >>confdefs.h <<_ACEOF
25106#define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
25107_ACEOF
25108
25109
25110# BSD/OS (BSDi) needs to use a different include syntax in Makefile
25111INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
25112case "$host" in
25113  *bsdi*)
25114    # Check whether they've installed GNU make
25115    if ! make --version > /dev/null 2>&1; then
25116      # BSDi make
25117      INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
25118    fi
25119    ;;
25120esac
25121
25122
25123# ==== Detection complete - output and run config.status =====================
25124
25125ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
25126
25127ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
25128
25129ac_config_files="$ac_config_files Makefile"
25130
25131
25132
25133  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
25134  ac_config_files="$ac_config_files tools/backup/hot-backup.py"
25135
25136
25137  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
25138  ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
25139
25140
25141  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
25142  ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
25143
25144if test -e packages/solaris/pkginfo.in; then
25145
25146  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
25147  ac_config_files="$ac_config_files packages/solaris/pkginfo"
25148
25149fi
25150
25151
25152# Ensure that SWIG is checked after reconfiguration.
25153rm -f .swig_checked
25154
25155
25156cat >>confdefs.h <<_ACEOF
25157#define SVN_BUILD_HOST "${host}"
25158_ACEOF
25159
25160
25161
25162cat >>confdefs.h <<_ACEOF
25163#define SVN_BUILD_TARGET "${target}"
25164_ACEOF
25165
25166
25167cat >confcache <<\_ACEOF
25168# This file is a shell script that caches the results of configure
25169# tests run on this system so they can be shared between configure
25170# scripts and configure runs, see configure's option --config-cache.
25171# It is not useful on other systems.  If it contains results you don't
25172# want to keep, you may remove or edit it.
25173#
25174# config.status only pays attention to the cache file if you give it
25175# the --recheck option to rerun configure.
25176#
25177# `ac_cv_env_foo' variables (set or unset) will be overridden when
25178# loading this file, other *unset* `ac_cv_foo' will be assigned the
25179# following values.
25180
25181_ACEOF
25182
25183# The following way of writing the cache mishandles newlines in values,
25184# but we know of no workaround that is simple, portable, and efficient.
25185# So, we kill variables containing newlines.
25186# Ultrix sh set writes to stderr and can't be redirected directly,
25187# and sets the high bit in the cache file unless we assign to the vars.
25188(
25189  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25190    eval ac_val=\$$ac_var
25191    case $ac_val in #(
25192    *${as_nl}*)
25193      case $ac_var in #(
25194      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25196      esac
25197      case $ac_var in #(
25198      _ | IFS | as_nl) ;; #(
25199      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25200      *) { eval $ac_var=; unset $ac_var;} ;;
25201      esac ;;
25202    esac
25203  done
25204
25205  (set) 2>&1 |
25206    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25207    *${as_nl}ac_space=\ *)
25208      # `set' does not quote correctly, so add quotes: double-quote
25209      # substitution turns \\\\ into \\, and sed turns \\ into \.
25210      sed -n \
25211	"s/'/'\\\\''/g;
25212	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25213      ;; #(
25214    *)
25215      # `set' quotes correctly as required by POSIX, so do not add quotes.
25216      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25217      ;;
25218    esac |
25219    sort
25220) |
25221  sed '
25222     /^ac_cv_env_/b end
25223     t clear
25224     :clear
25225     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25226     t end
25227     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25228     :end' >>confcache
25229if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25230  if test -w "$cache_file"; then
25231    if test "x$cache_file" != "x/dev/null"; then
25232      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25233$as_echo "$as_me: updating cache $cache_file" >&6;}
25234      if test ! -f "$cache_file" || test -h "$cache_file"; then
25235	cat confcache >"$cache_file"
25236      else
25237        case $cache_file in #(
25238        */* | ?:*)
25239	  mv -f confcache "$cache_file"$$ &&
25240	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25241        *)
25242	  mv -f confcache "$cache_file" ;;
25243	esac
25244      fi
25245    fi
25246  else
25247    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25248$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25249  fi
25250fi
25251rm -f confcache
25252
25253test "x$prefix" = xNONE && prefix=$ac_default_prefix
25254# Let make expand exec_prefix.
25255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25256
25257DEFS=-DHAVE_CONFIG_H
25258
25259ac_libobjs=
25260ac_ltlibobjs=
25261U=
25262for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25263  # 1. Remove the extension, and $U if already installed.
25264  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25265  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25266  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25267  #    will be set to the directory where LIBOBJS objects are built.
25268  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25269  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25270done
25271LIBOBJS=$ac_libobjs
25272
25273LTLIBOBJS=$ac_ltlibobjs
25274
25275
25276
25277: "${CONFIG_STATUS=./config.status}"
25278ac_write_fail=0
25279ac_clean_files_save=$ac_clean_files
25280ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25281{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25282$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25283as_write_fail=0
25284cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25285#! $SHELL
25286# Generated by $as_me.
25287# Run this file to recreate the current configuration.
25288# Compiler output produced by configure, useful for debugging
25289# configure, is in config.log if it exists.
25290
25291debug=false
25292ac_cs_recheck=false
25293ac_cs_silent=false
25294
25295SHELL=\${CONFIG_SHELL-$SHELL}
25296export SHELL
25297_ASEOF
25298cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25299## -------------------- ##
25300## M4sh Initialization. ##
25301## -------------------- ##
25302
25303# Be more Bourne compatible
25304DUALCASE=1; export DUALCASE # for MKS sh
25305if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25306  emulate sh
25307  NULLCMD=:
25308  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25309  # is contrary to our usage.  Disable this feature.
25310  alias -g '${1+"$@"}'='"$@"'
25311  setopt NO_GLOB_SUBST
25312else
25313  case `(set -o) 2>/dev/null` in #(
25314  *posix*) :
25315    set -o posix ;; #(
25316  *) :
25317     ;;
25318esac
25319fi
25320
25321
25322as_nl='
25323'
25324export as_nl
25325# Printing a long string crashes Solaris 7 /usr/bin/printf.
25326as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25327as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25328as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25329# Prefer a ksh shell builtin over an external printf program on Solaris,
25330# but without wasting forks for bash or zsh.
25331if test -z "$BASH_VERSION$ZSH_VERSION" \
25332    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25333  as_echo='print -r --'
25334  as_echo_n='print -rn --'
25335elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25336  as_echo='printf %s\n'
25337  as_echo_n='printf %s'
25338else
25339  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25340    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25341    as_echo_n='/usr/ucb/echo -n'
25342  else
25343    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25344    as_echo_n_body='eval
25345      arg=$1;
25346      case $arg in #(
25347      *"$as_nl"*)
25348	expr "X$arg" : "X\\(.*\\)$as_nl";
25349	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25350      esac;
25351      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25352    '
25353    export as_echo_n_body
25354    as_echo_n='sh -c $as_echo_n_body as_echo'
25355  fi
25356  export as_echo_body
25357  as_echo='sh -c $as_echo_body as_echo'
25358fi
25359
25360# The user is always right.
25361if test "${PATH_SEPARATOR+set}" != set; then
25362  PATH_SEPARATOR=:
25363  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25364    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25365      PATH_SEPARATOR=';'
25366  }
25367fi
25368
25369
25370# IFS
25371# We need space, tab and new line, in precisely that order.  Quoting is
25372# there to prevent editors from complaining about space-tab.
25373# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25374# splitting by setting IFS to empty value.)
25375IFS=" ""	$as_nl"
25376
25377# Find who we are.  Look in the path if we contain no directory separator.
25378as_myself=
25379case $0 in #((
25380  *[\\/]* ) as_myself=$0 ;;
25381  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25382for as_dir in $PATH
25383do
25384  IFS=$as_save_IFS
25385  test -z "$as_dir" && as_dir=.
25386    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25387  done
25388IFS=$as_save_IFS
25389
25390     ;;
25391esac
25392# We did not find ourselves, most probably we were run as `sh COMMAND'
25393# in which case we are not to be found in the path.
25394if test "x$as_myself" = x; then
25395  as_myself=$0
25396fi
25397if test ! -f "$as_myself"; then
25398  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25399  exit 1
25400fi
25401
25402# Unset variables that we do not need and which cause bugs (e.g. in
25403# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25404# suppresses any "Segmentation fault" message there.  '((' could
25405# trigger a bug in pdksh 5.2.14.
25406for as_var in BASH_ENV ENV MAIL MAILPATH
25407do eval test x\${$as_var+set} = xset \
25408  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25409done
25410PS1='$ '
25411PS2='> '
25412PS4='+ '
25413
25414# NLS nuisances.
25415LC_ALL=C
25416export LC_ALL
25417LANGUAGE=C
25418export LANGUAGE
25419
25420# CDPATH.
25421(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25422
25423
25424# as_fn_error STATUS ERROR [LINENO LOG_FD]
25425# ----------------------------------------
25426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25428# script with STATUS, using 1 if that was 0.
25429as_fn_error ()
25430{
25431  as_status=$1; test $as_status -eq 0 && as_status=1
25432  if test "$4"; then
25433    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25434    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25435  fi
25436  $as_echo "$as_me: error: $2" >&2
25437  as_fn_exit $as_status
25438} # as_fn_error
25439
25440
25441# as_fn_set_status STATUS
25442# -----------------------
25443# Set $? to STATUS, without forking.
25444as_fn_set_status ()
25445{
25446  return $1
25447} # as_fn_set_status
25448
25449# as_fn_exit STATUS
25450# -----------------
25451# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25452as_fn_exit ()
25453{
25454  set +e
25455  as_fn_set_status $1
25456  exit $1
25457} # as_fn_exit
25458
25459# as_fn_unset VAR
25460# ---------------
25461# Portably unset VAR.
25462as_fn_unset ()
25463{
25464  { eval $1=; unset $1;}
25465}
25466as_unset=as_fn_unset
25467# as_fn_append VAR VALUE
25468# ----------------------
25469# Append the text in VALUE to the end of the definition contained in VAR. Take
25470# advantage of any shell optimizations that allow amortized linear growth over
25471# repeated appends, instead of the typical quadratic growth present in naive
25472# implementations.
25473if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25474  eval 'as_fn_append ()
25475  {
25476    eval $1+=\$2
25477  }'
25478else
25479  as_fn_append ()
25480  {
25481    eval $1=\$$1\$2
25482  }
25483fi # as_fn_append
25484
25485# as_fn_arith ARG...
25486# ------------------
25487# Perform arithmetic evaluation on the ARGs, and store the result in the
25488# global $as_val. Take advantage of shells that can avoid forks. The arguments
25489# must be portable across $(()) and expr.
25490if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25491  eval 'as_fn_arith ()
25492  {
25493    as_val=$(( $* ))
25494  }'
25495else
25496  as_fn_arith ()
25497  {
25498    as_val=`expr "$@" || test $? -eq 1`
25499  }
25500fi # as_fn_arith
25501
25502
25503if expr a : '\(a\)' >/dev/null 2>&1 &&
25504   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25505  as_expr=expr
25506else
25507  as_expr=false
25508fi
25509
25510if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25511  as_basename=basename
25512else
25513  as_basename=false
25514fi
25515
25516if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25517  as_dirname=dirname
25518else
25519  as_dirname=false
25520fi
25521
25522as_me=`$as_basename -- "$0" ||
25523$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25524	 X"$0" : 'X\(//\)$' \| \
25525	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25526$as_echo X/"$0" |
25527    sed '/^.*\/\([^/][^/]*\)\/*$/{
25528	    s//\1/
25529	    q
25530	  }
25531	  /^X\/\(\/\/\)$/{
25532	    s//\1/
25533	    q
25534	  }
25535	  /^X\/\(\/\).*/{
25536	    s//\1/
25537	    q
25538	  }
25539	  s/.*/./; q'`
25540
25541# Avoid depending upon Character Ranges.
25542as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25543as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25544as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25545as_cr_digits='0123456789'
25546as_cr_alnum=$as_cr_Letters$as_cr_digits
25547
25548ECHO_C= ECHO_N= ECHO_T=
25549case `echo -n x` in #(((((
25550-n*)
25551  case `echo 'xy\c'` in
25552  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25553  xy)  ECHO_C='\c';;
25554  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25555       ECHO_T='	';;
25556  esac;;
25557*)
25558  ECHO_N='-n';;
25559esac
25560
25561rm -f conf$$ conf$$.exe conf$$.file
25562if test -d conf$$.dir; then
25563  rm -f conf$$.dir/conf$$.file
25564else
25565  rm -f conf$$.dir
25566  mkdir conf$$.dir 2>/dev/null
25567fi
25568if (echo >conf$$.file) 2>/dev/null; then
25569  if ln -s conf$$.file conf$$ 2>/dev/null; then
25570    as_ln_s='ln -s'
25571    # ... but there are two gotchas:
25572    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25573    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25574    # In both cases, we have to default to `cp -pR'.
25575    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25576      as_ln_s='cp -pR'
25577  elif ln conf$$.file conf$$ 2>/dev/null; then
25578    as_ln_s=ln
25579  else
25580    as_ln_s='cp -pR'
25581  fi
25582else
25583  as_ln_s='cp -pR'
25584fi
25585rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25586rmdir conf$$.dir 2>/dev/null
25587
25588
25589# as_fn_mkdir_p
25590# -------------
25591# Create "$as_dir" as a directory, including parents if necessary.
25592as_fn_mkdir_p ()
25593{
25594
25595  case $as_dir in #(
25596  -*) as_dir=./$as_dir;;
25597  esac
25598  test -d "$as_dir" || eval $as_mkdir_p || {
25599    as_dirs=
25600    while :; do
25601      case $as_dir in #(
25602      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25603      *) as_qdir=$as_dir;;
25604      esac
25605      as_dirs="'$as_qdir' $as_dirs"
25606      as_dir=`$as_dirname -- "$as_dir" ||
25607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25608	 X"$as_dir" : 'X\(//\)[^/]' \| \
25609	 X"$as_dir" : 'X\(//\)$' \| \
25610	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25611$as_echo X"$as_dir" |
25612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25613	    s//\1/
25614	    q
25615	  }
25616	  /^X\(\/\/\)[^/].*/{
25617	    s//\1/
25618	    q
25619	  }
25620	  /^X\(\/\/\)$/{
25621	    s//\1/
25622	    q
25623	  }
25624	  /^X\(\/\).*/{
25625	    s//\1/
25626	    q
25627	  }
25628	  s/.*/./; q'`
25629      test -d "$as_dir" && break
25630    done
25631    test -z "$as_dirs" || eval "mkdir $as_dirs"
25632  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25633
25634
25635} # as_fn_mkdir_p
25636if mkdir -p . 2>/dev/null; then
25637  as_mkdir_p='mkdir -p "$as_dir"'
25638else
25639  test -d ./-p && rmdir ./-p
25640  as_mkdir_p=false
25641fi
25642
25643
25644# as_fn_executable_p FILE
25645# -----------------------
25646# Test if FILE is an executable regular file.
25647as_fn_executable_p ()
25648{
25649  test -f "$1" && test -x "$1"
25650} # as_fn_executable_p
25651as_test_x='test -x'
25652as_executable_p=as_fn_executable_p
25653
25654# Sed expression to map a string onto a valid CPP name.
25655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25656
25657# Sed expression to map a string onto a valid variable name.
25658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25659
25660
25661exec 6>&1
25662## ----------------------------------- ##
25663## Main body of $CONFIG_STATUS script. ##
25664## ----------------------------------- ##
25665_ASEOF
25666test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25667
25668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25669# Save the log message, to keep $0 and so on meaningful, and to
25670# report actual input values of CONFIG_FILES etc. instead of their
25671# values after options handling.
25672ac_log="
25673This file was extended by subversion $as_me 1.8.8, which was
25674generated by GNU Autoconf 2.69.  Invocation command line was
25675
25676  CONFIG_FILES    = $CONFIG_FILES
25677  CONFIG_HEADERS  = $CONFIG_HEADERS
25678  CONFIG_LINKS    = $CONFIG_LINKS
25679  CONFIG_COMMANDS = $CONFIG_COMMANDS
25680  $ $0 $@
25681
25682on `(hostname || uname -n) 2>/dev/null | sed 1q`
25683"
25684
25685_ACEOF
25686
25687case $ac_config_files in *"
25688"*) set x $ac_config_files; shift; ac_config_files=$*;;
25689esac
25690
25691case $ac_config_headers in *"
25692"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25693esac
25694
25695
25696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25697# Files that config.status was made for.
25698config_files="$ac_config_files"
25699config_headers="$ac_config_headers"
25700config_commands="$ac_config_commands"
25701
25702_ACEOF
25703
25704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25705ac_cs_usage="\
25706\`$as_me' instantiates files and other configuration actions
25707from templates according to the current configuration.  Unless the files
25708and actions are specified as TAGs, all are instantiated by default.
25709
25710Usage: $0 [OPTION]... [TAG]...
25711
25712  -h, --help       print this help, then exit
25713  -V, --version    print version number and configuration settings, then exit
25714      --config     print configuration, then exit
25715  -q, --quiet, --silent
25716                   do not print progress messages
25717  -d, --debug      don't remove temporary files
25718      --recheck    update $as_me by reconfiguring in the same conditions
25719      --file=FILE[:TEMPLATE]
25720                   instantiate the configuration file FILE
25721      --header=FILE[:TEMPLATE]
25722                   instantiate the configuration header FILE
25723
25724Configuration files:
25725$config_files
25726
25727Configuration headers:
25728$config_headers
25729
25730Configuration commands:
25731$config_commands
25732
25733Report bugs to <http://subversion.apache.org/>."
25734
25735_ACEOF
25736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25737ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25738ac_cs_version="\\
25739subversion config.status 1.8.8
25740configured by $0, generated by GNU Autoconf 2.69,
25741  with options \\"\$ac_cs_config\\"
25742
25743Copyright (C) 2012 Free Software Foundation, Inc.
25744This config.status script is free software; the Free Software Foundation
25745gives unlimited permission to copy, distribute and modify it."
25746
25747ac_pwd='$ac_pwd'
25748srcdir='$srcdir'
25749INSTALL='$INSTALL'
25750AWK='$AWK'
25751test -n "\$AWK" || AWK=awk
25752_ACEOF
25753
25754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25755# The default lists apply if the user does not specify any file.
25756ac_need_defaults=:
25757while test $# != 0
25758do
25759  case $1 in
25760  --*=?*)
25761    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25762    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25763    ac_shift=:
25764    ;;
25765  --*=)
25766    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25767    ac_optarg=
25768    ac_shift=:
25769    ;;
25770  *)
25771    ac_option=$1
25772    ac_optarg=$2
25773    ac_shift=shift
25774    ;;
25775  esac
25776
25777  case $ac_option in
25778  # Handling of the options.
25779  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25780    ac_cs_recheck=: ;;
25781  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25782    $as_echo "$ac_cs_version"; exit ;;
25783  --config | --confi | --conf | --con | --co | --c )
25784    $as_echo "$ac_cs_config"; exit ;;
25785  --debug | --debu | --deb | --de | --d | -d )
25786    debug=: ;;
25787  --file | --fil | --fi | --f )
25788    $ac_shift
25789    case $ac_optarg in
25790    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25791    '') as_fn_error $? "missing file argument" ;;
25792    esac
25793    as_fn_append CONFIG_FILES " '$ac_optarg'"
25794    ac_need_defaults=false;;
25795  --header | --heade | --head | --hea )
25796    $ac_shift
25797    case $ac_optarg in
25798    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25799    esac
25800    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25801    ac_need_defaults=false;;
25802  --he | --h)
25803    # Conflict between --help and --header
25804    as_fn_error $? "ambiguous option: \`$1'
25805Try \`$0 --help' for more information.";;
25806  --help | --hel | -h )
25807    $as_echo "$ac_cs_usage"; exit ;;
25808  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25809  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25810    ac_cs_silent=: ;;
25811
25812  # This is an error.
25813  -*) as_fn_error $? "unrecognized option: \`$1'
25814Try \`$0 --help' for more information." ;;
25815
25816  *) as_fn_append ac_config_targets " $1"
25817     ac_need_defaults=false ;;
25818
25819  esac
25820  shift
25821done
25822
25823ac_configure_extra_args=
25824
25825if $ac_cs_silent; then
25826  exec 6>/dev/null
25827  ac_configure_extra_args="$ac_configure_extra_args --silent"
25828fi
25829
25830_ACEOF
25831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25832if \$ac_cs_recheck; then
25833  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25834  shift
25835  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25836  CONFIG_SHELL='$SHELL'
25837  export CONFIG_SHELL
25838  exec "\$@"
25839fi
25840
25841_ACEOF
25842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25843exec 5>>config.log
25844{
25845  echo
25846  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25847## Running $as_me. ##
25848_ASBOX
25849  $as_echo "$ac_log"
25850} >&5
25851
25852_ACEOF
25853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25854#
25855# INIT-COMMANDS
25856#
25857
25858
25859# The HP-UX ksh and POSIX shell print the target directory to stdout
25860# if CDPATH is set.
25861(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25862
25863sed_quote_subst='$sed_quote_subst'
25864double_quote_subst='$double_quote_subst'
25865delay_variable_subst='$delay_variable_subst'
25866macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25867macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25868enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25869enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25870pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25871enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25872SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25873ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25874PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25875host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25876host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25877host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25878build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25879build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25880build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25881SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25882Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25883GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25884EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25885FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25886LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25887NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25888LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25889max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25890ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25891exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25892lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25893lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25894lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25895lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25896lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25897reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25898reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25899OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25900deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25901file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25902file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25903want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25904DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25905sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25906AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25907AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25908archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25909STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25910RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25911old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25912old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25913old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25914lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25915CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25916CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25917compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25918GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25919lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25920lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25921lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25922lt_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"`'
25923nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25924lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25925objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25926MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25927lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25928lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25929lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25930lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25931lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25932need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25933MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25934DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25935NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25936LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25937OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25938OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25939libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25940shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25941extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25942archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25943enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25944export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25945whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25946compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25947old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25948old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25949archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25950archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25951module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25952module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25953with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25954allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25955no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25956hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25957hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25958hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25959hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25960hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25961hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25962hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25963inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25964link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25965always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25966export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25967exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25968include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25969prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25970postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25971file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25972variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25973need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25974need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25975version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25976runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25977shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25978shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25979libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25980library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25981soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25982install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25983postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25984postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25985finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25986finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25987hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25988sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25989sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25990hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25991enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25992enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25993enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25994old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25995striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25996compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25997predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25998postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25999predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26000postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26001compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26002LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26003reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26004reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26005old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26006compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26007GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26008lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26009lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26010lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26011lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26012lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26013archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26014enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26015export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26016whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26017compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26018old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26019old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26020archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26021archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26022module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26023module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26024with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26025allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26026no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26027hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26028hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26029hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26030hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26031hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26032hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26033hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26034inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26035link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26036always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26037export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26038exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26039include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26040prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26041postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26042file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26043hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26044compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26045predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26046postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26047predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26048postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26049compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26050
26051LTCC='$LTCC'
26052LTCFLAGS='$LTCFLAGS'
26053compiler='$compiler_DEFAULT'
26054
26055# A function that is used when there is no print builtin or printf.
26056func_fallback_echo ()
26057{
26058  eval 'cat <<_LTECHO_EOF
26059\$1
26060_LTECHO_EOF'
26061}
26062
26063# Quote evaled strings.
26064for var in SHELL \
26065ECHO \
26066PATH_SEPARATOR \
26067SED \
26068GREP \
26069EGREP \
26070FGREP \
26071LD \
26072NM \
26073LN_S \
26074lt_SP2NL \
26075lt_NL2SP \
26076reload_flag \
26077OBJDUMP \
26078deplibs_check_method \
26079file_magic_cmd \
26080file_magic_glob \
26081want_nocaseglob \
26082DLLTOOL \
26083sharedlib_from_linklib_cmd \
26084AR \
26085AR_FLAGS \
26086archiver_list_spec \
26087STRIP \
26088RANLIB \
26089CC \
26090CFLAGS \
26091compiler \
26092lt_cv_sys_global_symbol_pipe \
26093lt_cv_sys_global_symbol_to_cdecl \
26094lt_cv_sys_global_symbol_to_c_name_address \
26095lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26096nm_file_list_spec \
26097lt_prog_compiler_no_builtin_flag \
26098lt_prog_compiler_pic \
26099lt_prog_compiler_wl \
26100lt_prog_compiler_static \
26101lt_cv_prog_compiler_c_o \
26102need_locks \
26103MANIFEST_TOOL \
26104DSYMUTIL \
26105NMEDIT \
26106LIPO \
26107OTOOL \
26108OTOOL64 \
26109shrext_cmds \
26110export_dynamic_flag_spec \
26111whole_archive_flag_spec \
26112compiler_needs_object \
26113with_gnu_ld \
26114allow_undefined_flag \
26115no_undefined_flag \
26116hardcode_libdir_flag_spec \
26117hardcode_libdir_separator \
26118exclude_expsyms \
26119include_expsyms \
26120file_list_spec \
26121variables_saved_for_relink \
26122libname_spec \
26123library_names_spec \
26124soname_spec \
26125install_override_mode \
26126finish_eval \
26127old_striplib \
26128striplib \
26129compiler_lib_search_dirs \
26130predep_objects \
26131postdep_objects \
26132predeps \
26133postdeps \
26134compiler_lib_search_path \
26135LD_CXX \
26136reload_flag_CXX \
26137compiler_CXX \
26138lt_prog_compiler_no_builtin_flag_CXX \
26139lt_prog_compiler_pic_CXX \
26140lt_prog_compiler_wl_CXX \
26141lt_prog_compiler_static_CXX \
26142lt_cv_prog_compiler_c_o_CXX \
26143export_dynamic_flag_spec_CXX \
26144whole_archive_flag_spec_CXX \
26145compiler_needs_object_CXX \
26146with_gnu_ld_CXX \
26147allow_undefined_flag_CXX \
26148no_undefined_flag_CXX \
26149hardcode_libdir_flag_spec_CXX \
26150hardcode_libdir_separator_CXX \
26151exclude_expsyms_CXX \
26152include_expsyms_CXX \
26153file_list_spec_CXX \
26154compiler_lib_search_dirs_CXX \
26155predep_objects_CXX \
26156postdep_objects_CXX \
26157predeps_CXX \
26158postdeps_CXX \
26159compiler_lib_search_path_CXX; do
26160    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26161    *[\\\\\\\`\\"\\\$]*)
26162      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26163      ;;
26164    *)
26165      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26166      ;;
26167    esac
26168done
26169
26170# Double-quote double-evaled strings.
26171for var in reload_cmds \
26172old_postinstall_cmds \
26173old_postuninstall_cmds \
26174old_archive_cmds \
26175extract_expsyms_cmds \
26176old_archive_from_new_cmds \
26177old_archive_from_expsyms_cmds \
26178archive_cmds \
26179archive_expsym_cmds \
26180module_cmds \
26181module_expsym_cmds \
26182export_symbols_cmds \
26183prelink_cmds \
26184postlink_cmds \
26185postinstall_cmds \
26186postuninstall_cmds \
26187finish_cmds \
26188sys_lib_search_path_spec \
26189sys_lib_dlsearch_path_spec \
26190reload_cmds_CXX \
26191old_archive_cmds_CXX \
26192old_archive_from_new_cmds_CXX \
26193old_archive_from_expsyms_cmds_CXX \
26194archive_cmds_CXX \
26195archive_expsym_cmds_CXX \
26196module_cmds_CXX \
26197module_expsym_cmds_CXX \
26198export_symbols_cmds_CXX \
26199prelink_cmds_CXX \
26200postlink_cmds_CXX; do
26201    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26202    *[\\\\\\\`\\"\\\$]*)
26203      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26204      ;;
26205    *)
26206      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26207      ;;
26208    esac
26209done
26210
26211ac_aux_dir='$ac_aux_dir'
26212xsi_shell='$xsi_shell'
26213lt_shell_append='$lt_shell_append'
26214
26215# See if we are running on zsh, and set the options which allow our
26216# commands through without removal of \ escapes INIT.
26217if test -n "\${ZSH_VERSION+set}" ; then
26218   setopt NO_GLOB_SUBST
26219fi
26220
26221
26222    PACKAGE='$PACKAGE'
26223    VERSION='$VERSION'
26224    TIMESTAMP='$TIMESTAMP'
26225    RM='$RM'
26226    ofile='$ofile'
26227
26228
26229
26230
26231
26232SED="$SED"
26233                    SVN_DB_HEADER="$SVN_DB_HEADER"
26234
26235_ACEOF
26236
26237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26238
26239# Handling of arguments.
26240for ac_config_target in $ac_config_targets
26241do
26242  case $ac_config_target in
26243    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26244    "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
26245    "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
26246    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26247    "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
26248    "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
26249    "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
26250    "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
26251
26252  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26253  esac
26254done
26255
26256
26257# If the user did not use the arguments to specify the items to instantiate,
26258# then the envvar interface is used.  Set only those that are not.
26259# We use the long form for the default assignment because of an extremely
26260# bizarre bug on SunOS 4.1.3.
26261if $ac_need_defaults; then
26262  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26263  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26264  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26265fi
26266
26267# Have a temporary directory for convenience.  Make it in the build tree
26268# simply because there is no reason against having it here, and in addition,
26269# creating and moving files from /tmp can sometimes cause problems.
26270# Hook for its removal unless debugging.
26271# Note that there is a small window in which the directory will not be cleaned:
26272# after its creation but before its name has been assigned to `$tmp'.
26273$debug ||
26274{
26275  tmp= ac_tmp=
26276  trap 'exit_status=$?
26277  : "${ac_tmp:=$tmp}"
26278  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26279' 0
26280  trap 'as_fn_exit 1' 1 2 13 15
26281}
26282# Create a (secure) tmp directory for tmp files.
26283
26284{
26285  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26286  test -d "$tmp"
26287}  ||
26288{
26289  tmp=./conf$$-$RANDOM
26290  (umask 077 && mkdir "$tmp")
26291} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26292ac_tmp=$tmp
26293
26294# Set up the scripts for CONFIG_FILES section.
26295# No need to generate them if there are no CONFIG_FILES.
26296# This happens for instance with `./config.status config.h'.
26297if test -n "$CONFIG_FILES"; then
26298
26299
26300ac_cr=`echo X | tr X '\015'`
26301# On cygwin, bash can eat \r inside `` if the user requested igncr.
26302# But we know of no other shell where ac_cr would be empty at this
26303# point, so we can use a bashism as a fallback.
26304if test "x$ac_cr" = x; then
26305  eval ac_cr=\$\'\\r\'
26306fi
26307ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26308if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26309  ac_cs_awk_cr='\\r'
26310else
26311  ac_cs_awk_cr=$ac_cr
26312fi
26313
26314echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26315_ACEOF
26316
26317
26318{
26319  echo "cat >conf$$subs.awk <<_ACEOF" &&
26320  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26321  echo "_ACEOF"
26322} >conf$$subs.sh ||
26323  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26324ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26325ac_delim='%!_!# '
26326for ac_last_try in false false false false false :; do
26327  . ./conf$$subs.sh ||
26328    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26329
26330  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26331  if test $ac_delim_n = $ac_delim_num; then
26332    break
26333  elif $ac_last_try; then
26334    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26335  else
26336    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26337  fi
26338done
26339rm -f conf$$subs.sh
26340
26341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26342cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26343_ACEOF
26344sed -n '
26345h
26346s/^/S["/; s/!.*/"]=/
26347p
26348g
26349s/^[^!]*!//
26350:repl
26351t repl
26352s/'"$ac_delim"'$//
26353t delim
26354:nl
26355h
26356s/\(.\{148\}\)..*/\1/
26357t more1
26358s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26359p
26360n
26361b repl
26362:more1
26363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26364p
26365g
26366s/.\{148\}//
26367t nl
26368:delim
26369h
26370s/\(.\{148\}\)..*/\1/
26371t more2
26372s/["\\]/\\&/g; s/^/"/; s/$/"/
26373p
26374b
26375:more2
26376s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26377p
26378g
26379s/.\{148\}//
26380t delim
26381' <conf$$subs.awk | sed '
26382/^[^""]/{
26383  N
26384  s/\n//
26385}
26386' >>$CONFIG_STATUS || ac_write_fail=1
26387rm -f conf$$subs.awk
26388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26389_ACAWK
26390cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26391  for (key in S) S_is_set[key] = 1
26392  FS = ""
26393
26394}
26395{
26396  line = $ 0
26397  nfields = split(line, field, "@")
26398  substed = 0
26399  len = length(field[1])
26400  for (i = 2; i < nfields; i++) {
26401    key = field[i]
26402    keylen = length(key)
26403    if (S_is_set[key]) {
26404      value = S[key]
26405      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26406      len += length(value) + length(field[++i])
26407      substed = 1
26408    } else
26409      len += 1 + keylen
26410  }
26411
26412  print line
26413}
26414
26415_ACAWK
26416_ACEOF
26417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26418if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26419  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26420else
26421  cat
26422fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26423  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26424_ACEOF
26425
26426# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26427# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26428# trailing colons and then remove the whole line if VPATH becomes empty
26429# (actually we leave an empty line to preserve line numbers).
26430if test "x$srcdir" = x.; then
26431  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26432h
26433s///
26434s/^/:/
26435s/[	 ]*$/:/
26436s/:\$(srcdir):/:/g
26437s/:\${srcdir}:/:/g
26438s/:@srcdir@:/:/g
26439s/^:*//
26440s/:*$//
26441x
26442s/\(=[	 ]*\).*/\1/
26443G
26444s/\n//
26445s/^[^=]*=[	 ]*$//
26446}'
26447fi
26448
26449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26450fi # test -n "$CONFIG_FILES"
26451
26452# Set up the scripts for CONFIG_HEADERS section.
26453# No need to generate them if there are no CONFIG_HEADERS.
26454# This happens for instance with `./config.status Makefile'.
26455if test -n "$CONFIG_HEADERS"; then
26456cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26457BEGIN {
26458_ACEOF
26459
26460# Transform confdefs.h into an awk script `defines.awk', embedded as
26461# here-document in config.status, that substitutes the proper values into
26462# config.h.in to produce config.h.
26463
26464# Create a delimiter string that does not exist in confdefs.h, to ease
26465# handling of long lines.
26466ac_delim='%!_!# '
26467for ac_last_try in false false :; do
26468  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26469  if test -z "$ac_tt"; then
26470    break
26471  elif $ac_last_try; then
26472    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26473  else
26474    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26475  fi
26476done
26477
26478# For the awk script, D is an array of macro values keyed by name,
26479# likewise P contains macro parameters if any.  Preserve backslash
26480# newline sequences.
26481
26482ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26483sed -n '
26484s/.\{148\}/&'"$ac_delim"'/g
26485t rset
26486:rset
26487s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26488t def
26489d
26490:def
26491s/\\$//
26492t bsnl
26493s/["\\]/\\&/g
26494s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26495D["\1"]=" \3"/p
26496s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26497d
26498:bsnl
26499s/["\\]/\\&/g
26500s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26501D["\1"]=" \3\\\\\\n"\\/p
26502t cont
26503s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26504t cont
26505d
26506:cont
26507n
26508s/.\{148\}/&'"$ac_delim"'/g
26509t clear
26510:clear
26511s/\\$//
26512t bsnlc
26513s/["\\]/\\&/g; s/^/"/; s/$/"/p
26514d
26515:bsnlc
26516s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26517b cont
26518' <confdefs.h | sed '
26519s/'"$ac_delim"'/"\\\
26520"/g' >>$CONFIG_STATUS || ac_write_fail=1
26521
26522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26523  for (key in D) D_is_set[key] = 1
26524  FS = ""
26525}
26526/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26527  line = \$ 0
26528  split(line, arg, " ")
26529  if (arg[1] == "#") {
26530    defundef = arg[2]
26531    mac1 = arg[3]
26532  } else {
26533    defundef = substr(arg[1], 2)
26534    mac1 = arg[2]
26535  }
26536  split(mac1, mac2, "(") #)
26537  macro = mac2[1]
26538  prefix = substr(line, 1, index(line, defundef) - 1)
26539  if (D_is_set[macro]) {
26540    # Preserve the white space surrounding the "#".
26541    print prefix "define", macro P[macro] D[macro]
26542    next
26543  } else {
26544    # Replace #undef with comments.  This is necessary, for example,
26545    # in the case of _POSIX_SOURCE, which is predefined and required
26546    # on some systems where configure will not decide to define it.
26547    if (defundef == "undef") {
26548      print "/*", prefix defundef, macro, "*/"
26549      next
26550    }
26551  }
26552}
26553{ print }
26554_ACAWK
26555_ACEOF
26556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26557  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26558fi # test -n "$CONFIG_HEADERS"
26559
26560
26561eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26562shift
26563for ac_tag
26564do
26565  case $ac_tag in
26566  :[FHLC]) ac_mode=$ac_tag; continue;;
26567  esac
26568  case $ac_mode$ac_tag in
26569  :[FHL]*:*);;
26570  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26571  :[FH]-) ac_tag=-:-;;
26572  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26573  esac
26574  ac_save_IFS=$IFS
26575  IFS=:
26576  set x $ac_tag
26577  IFS=$ac_save_IFS
26578  shift
26579  ac_file=$1
26580  shift
26581
26582  case $ac_mode in
26583  :L) ac_source=$1;;
26584  :[FH])
26585    ac_file_inputs=
26586    for ac_f
26587    do
26588      case $ac_f in
26589      -) ac_f="$ac_tmp/stdin";;
26590      *) # Look for the file first in the build tree, then in the source tree
26591	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26592	 # because $ac_f cannot contain `:'.
26593	 test -f "$ac_f" ||
26594	   case $ac_f in
26595	   [\\/$]*) false;;
26596	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26597	   esac ||
26598	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26599      esac
26600      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26601      as_fn_append ac_file_inputs " '$ac_f'"
26602    done
26603
26604    # Let's still pretend it is `configure' which instantiates (i.e., don't
26605    # use $as_me), people would be surprised to read:
26606    #    /* config.h.  Generated by config.status.  */
26607    configure_input='Generated from '`
26608	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26609	`' by configure.'
26610    if test x"$ac_file" != x-; then
26611      configure_input="$ac_file.  $configure_input"
26612      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26613$as_echo "$as_me: creating $ac_file" >&6;}
26614    fi
26615    # Neutralize special characters interpreted by sed in replacement strings.
26616    case $configure_input in #(
26617    *\&* | *\|* | *\\* )
26618       ac_sed_conf_input=`$as_echo "$configure_input" |
26619       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26620    *) ac_sed_conf_input=$configure_input;;
26621    esac
26622
26623    case $ac_tag in
26624    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26625      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26626    esac
26627    ;;
26628  esac
26629
26630  ac_dir=`$as_dirname -- "$ac_file" ||
26631$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26632	 X"$ac_file" : 'X\(//\)[^/]' \| \
26633	 X"$ac_file" : 'X\(//\)$' \| \
26634	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26635$as_echo X"$ac_file" |
26636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26637	    s//\1/
26638	    q
26639	  }
26640	  /^X\(\/\/\)[^/].*/{
26641	    s//\1/
26642	    q
26643	  }
26644	  /^X\(\/\/\)$/{
26645	    s//\1/
26646	    q
26647	  }
26648	  /^X\(\/\).*/{
26649	    s//\1/
26650	    q
26651	  }
26652	  s/.*/./; q'`
26653  as_dir="$ac_dir"; as_fn_mkdir_p
26654  ac_builddir=.
26655
26656case "$ac_dir" in
26657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26658*)
26659  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26660  # A ".." for each directory in $ac_dir_suffix.
26661  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26662  case $ac_top_builddir_sub in
26663  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26664  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26665  esac ;;
26666esac
26667ac_abs_top_builddir=$ac_pwd
26668ac_abs_builddir=$ac_pwd$ac_dir_suffix
26669# for backward compatibility:
26670ac_top_builddir=$ac_top_build_prefix
26671
26672case $srcdir in
26673  .)  # We are building in place.
26674    ac_srcdir=.
26675    ac_top_srcdir=$ac_top_builddir_sub
26676    ac_abs_top_srcdir=$ac_pwd ;;
26677  [\\/]* | ?:[\\/]* )  # Absolute name.
26678    ac_srcdir=$srcdir$ac_dir_suffix;
26679    ac_top_srcdir=$srcdir
26680    ac_abs_top_srcdir=$srcdir ;;
26681  *) # Relative name.
26682    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26683    ac_top_srcdir=$ac_top_build_prefix$srcdir
26684    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26685esac
26686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26687
26688
26689  case $ac_mode in
26690  :F)
26691  #
26692  # CONFIG_FILE
26693  #
26694
26695  case $INSTALL in
26696  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26697  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26698  esac
26699_ACEOF
26700
26701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26702# If the template does not know about datarootdir, expand it.
26703# FIXME: This hack should be removed a few years after 2.60.
26704ac_datarootdir_hack=; ac_datarootdir_seen=
26705ac_sed_dataroot='
26706/datarootdir/ {
26707  p
26708  q
26709}
26710/@datadir@/p
26711/@docdir@/p
26712/@infodir@/p
26713/@localedir@/p
26714/@mandir@/p'
26715case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26716*datarootdir*) ac_datarootdir_seen=yes;;
26717*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26718  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26719$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26720_ACEOF
26721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26722  ac_datarootdir_hack='
26723  s&@datadir@&$datadir&g
26724  s&@docdir@&$docdir&g
26725  s&@infodir@&$infodir&g
26726  s&@localedir@&$localedir&g
26727  s&@mandir@&$mandir&g
26728  s&\\\${datarootdir}&$datarootdir&g' ;;
26729esac
26730_ACEOF
26731
26732# Neutralize VPATH when `$srcdir' = `.'.
26733# Shell code in configure.ac might set extrasub.
26734# FIXME: do we really want to maintain this feature?
26735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26736ac_sed_extra="$ac_vpsub
26737$extrasub
26738_ACEOF
26739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26740:t
26741/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26742s|@configure_input@|$ac_sed_conf_input|;t t
26743s&@top_builddir@&$ac_top_builddir_sub&;t t
26744s&@top_build_prefix@&$ac_top_build_prefix&;t t
26745s&@srcdir@&$ac_srcdir&;t t
26746s&@abs_srcdir@&$ac_abs_srcdir&;t t
26747s&@top_srcdir@&$ac_top_srcdir&;t t
26748s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26749s&@builddir@&$ac_builddir&;t t
26750s&@abs_builddir@&$ac_abs_builddir&;t t
26751s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26752s&@INSTALL@&$ac_INSTALL&;t t
26753$ac_datarootdir_hack
26754"
26755eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26756  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26757
26758test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26759  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26760  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
26761      "$ac_tmp/out"`; test -z "$ac_out"; } &&
26762  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26763which seems to be undefined.  Please make sure it is defined" >&5
26764$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26765which seems to be undefined.  Please make sure it is defined" >&2;}
26766
26767  rm -f "$ac_tmp/stdin"
26768  case $ac_file in
26769  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26770  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26771  esac \
26772  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26773 ;;
26774  :H)
26775  #
26776  # CONFIG_HEADER
26777  #
26778  if test x"$ac_file" != x-; then
26779    {
26780      $as_echo "/* $configure_input  */" \
26781      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26782    } >"$ac_tmp/config.h" \
26783      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26784    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26785      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26786$as_echo "$as_me: $ac_file is unchanged" >&6;}
26787    else
26788      rm -f "$ac_file"
26789      mv "$ac_tmp/config.h" "$ac_file" \
26790	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
26791    fi
26792  else
26793    $as_echo "/* $configure_input  */" \
26794      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26795      || as_fn_error $? "could not create -" "$LINENO" 5
26796  fi
26797 ;;
26798
26799  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26800$as_echo "$as_me: executing $ac_file commands" >&6;}
26801 ;;
26802  esac
26803
26804
26805  case $ac_file$ac_mode in
26806    "libtool":C)
26807
26808    # See if we are running on zsh, and set the options which allow our
26809    # commands through without removal of \ escapes.
26810    if test -n "${ZSH_VERSION+set}" ; then
26811      setopt NO_GLOB_SUBST
26812    fi
26813
26814    cfgfile="${ofile}T"
26815    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26816    $RM "$cfgfile"
26817
26818    cat <<_LT_EOF >> "$cfgfile"
26819#! $SHELL
26820
26821# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26822# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26824# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26825#
26826#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26827#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26828#                 Foundation, Inc.
26829#   Written by Gordon Matzigkeit, 1996
26830#
26831#   This file is part of GNU Libtool.
26832#
26833# GNU Libtool is free software; you can redistribute it and/or
26834# modify it under the terms of the GNU General Public License as
26835# published by the Free Software Foundation; either version 2 of
26836# the License, or (at your option) any later version.
26837#
26838# As a special exception to the GNU General Public License,
26839# if you distribute this file as part of a program or library that
26840# is built using GNU Libtool, you may include this file under the
26841# same distribution terms that you use for the rest of that program.
26842#
26843# GNU Libtool is distributed in the hope that it will be useful,
26844# but WITHOUT ANY WARRANTY; without even the implied warranty of
26845# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26846# GNU General Public License for more details.
26847#
26848# You should have received a copy of the GNU General Public License
26849# along with GNU Libtool; see the file COPYING.  If not, a copy
26850# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26851# obtained by writing to the Free Software Foundation, Inc.,
26852# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26853
26854
26855# The names of the tagged configurations supported by this script.
26856available_tags="CXX "
26857
26858# ### BEGIN LIBTOOL CONFIG
26859
26860# Which release of libtool.m4 was used?
26861macro_version=$macro_version
26862macro_revision=$macro_revision
26863
26864# Whether or not to build shared libraries.
26865build_libtool_libs=$enable_shared
26866
26867# Whether or not to build static libraries.
26868build_old_libs=$enable_static
26869
26870# What type of objects to build.
26871pic_mode=$pic_mode
26872
26873# Whether or not to optimize for fast installation.
26874fast_install=$enable_fast_install
26875
26876# Shell to use when invoking shell scripts.
26877SHELL=$lt_SHELL
26878
26879# An echo program that protects backslashes.
26880ECHO=$lt_ECHO
26881
26882# The PATH separator for the build system.
26883PATH_SEPARATOR=$lt_PATH_SEPARATOR
26884
26885# The host system.
26886host_alias=$host_alias
26887host=$host
26888host_os=$host_os
26889
26890# The build system.
26891build_alias=$build_alias
26892build=$build
26893build_os=$build_os
26894
26895# A sed program that does not truncate output.
26896SED=$lt_SED
26897
26898# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26899Xsed="\$SED -e 1s/^X//"
26900
26901# A grep program that handles long lines.
26902GREP=$lt_GREP
26903
26904# An ERE matcher.
26905EGREP=$lt_EGREP
26906
26907# A literal string matcher.
26908FGREP=$lt_FGREP
26909
26910# A BSD- or MS-compatible name lister.
26911NM=$lt_NM
26912
26913# Whether we need soft or hard links.
26914LN_S=$lt_LN_S
26915
26916# What is the maximum length of a command?
26917max_cmd_len=$max_cmd_len
26918
26919# Object file suffix (normally "o").
26920objext=$ac_objext
26921
26922# Executable file suffix (normally "").
26923exeext=$exeext
26924
26925# whether the shell understands "unset".
26926lt_unset=$lt_unset
26927
26928# turn spaces into newlines.
26929SP2NL=$lt_lt_SP2NL
26930
26931# turn newlines into spaces.
26932NL2SP=$lt_lt_NL2SP
26933
26934# convert \$build file names to \$host format.
26935to_host_file_cmd=$lt_cv_to_host_file_cmd
26936
26937# convert \$build files to toolchain format.
26938to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26939
26940# An object symbol dumper.
26941OBJDUMP=$lt_OBJDUMP
26942
26943# Method to check whether dependent libraries are shared objects.
26944deplibs_check_method=$lt_deplibs_check_method
26945
26946# Command to use when deplibs_check_method = "file_magic".
26947file_magic_cmd=$lt_file_magic_cmd
26948
26949# How to find potential files when deplibs_check_method = "file_magic".
26950file_magic_glob=$lt_file_magic_glob
26951
26952# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26953want_nocaseglob=$lt_want_nocaseglob
26954
26955# DLL creation program.
26956DLLTOOL=$lt_DLLTOOL
26957
26958# Command to associate shared and link libraries.
26959sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26960
26961# The archiver.
26962AR=$lt_AR
26963
26964# Flags to create an archive.
26965AR_FLAGS=$lt_AR_FLAGS
26966
26967# How to feed a file listing to the archiver.
26968archiver_list_spec=$lt_archiver_list_spec
26969
26970# A symbol stripping program.
26971STRIP=$lt_STRIP
26972
26973# Commands used to install an old-style archive.
26974RANLIB=$lt_RANLIB
26975old_postinstall_cmds=$lt_old_postinstall_cmds
26976old_postuninstall_cmds=$lt_old_postuninstall_cmds
26977
26978# Whether to use a lock for old archive extraction.
26979lock_old_archive_extraction=$lock_old_archive_extraction
26980
26981# A C compiler.
26982LTCC=$lt_CC
26983
26984# LTCC compiler flags.
26985LTCFLAGS=$lt_CFLAGS
26986
26987# Take the output of nm and produce a listing of raw symbols and C names.
26988global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26989
26990# Transform the output of nm in a proper C declaration.
26991global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26992
26993# Transform the output of nm in a C name address pair.
26994global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26995
26996# Transform the output of nm in a C name address pair when lib prefix is needed.
26997global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26998
26999# Specify filename containing input files for \$NM.
27000nm_file_list_spec=$lt_nm_file_list_spec
27001
27002# The root where to search for dependent libraries,and in which our libraries should be installed.
27003lt_sysroot=$lt_sysroot
27004
27005# The name of the directory that contains temporary libtool files.
27006objdir=$objdir
27007
27008# Used to examine libraries when file_magic_cmd begins with "file".
27009MAGIC_CMD=$MAGIC_CMD
27010
27011# Must we lock files when doing compilation?
27012need_locks=$lt_need_locks
27013
27014# Manifest tool.
27015MANIFEST_TOOL=$lt_MANIFEST_TOOL
27016
27017# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27018DSYMUTIL=$lt_DSYMUTIL
27019
27020# Tool to change global to local symbols on Mac OS X.
27021NMEDIT=$lt_NMEDIT
27022
27023# Tool to manipulate fat objects and archives on Mac OS X.
27024LIPO=$lt_LIPO
27025
27026# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27027OTOOL=$lt_OTOOL
27028
27029# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27030OTOOL64=$lt_OTOOL64
27031
27032# Old archive suffix (normally "a").
27033libext=$libext
27034
27035# Shared library suffix (normally ".so").
27036shrext_cmds=$lt_shrext_cmds
27037
27038# The commands to extract the exported symbol list from a shared archive.
27039extract_expsyms_cmds=$lt_extract_expsyms_cmds
27040
27041# Variables whose values should be saved in libtool wrapper scripts and
27042# restored at link time.
27043variables_saved_for_relink=$lt_variables_saved_for_relink
27044
27045# Do we need the "lib" prefix for modules?
27046need_lib_prefix=$need_lib_prefix
27047
27048# Do we need a version for libraries?
27049need_version=$need_version
27050
27051# Library versioning type.
27052version_type=$version_type
27053
27054# Shared library runtime path variable.
27055runpath_var=$runpath_var
27056
27057# Shared library path variable.
27058shlibpath_var=$shlibpath_var
27059
27060# Is shlibpath searched before the hard-coded library search path?
27061shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27062
27063# Format of library name prefix.
27064libname_spec=$lt_libname_spec
27065
27066# List of archive names.  First name is the real one, the rest are links.
27067# The last name is the one that the linker finds with -lNAME
27068library_names_spec=$lt_library_names_spec
27069
27070# The coded name of the library, if different from the real name.
27071soname_spec=$lt_soname_spec
27072
27073# Permission mode override for installation of shared libraries.
27074install_override_mode=$lt_install_override_mode
27075
27076# Command to use after installation of a shared archive.
27077postinstall_cmds=$lt_postinstall_cmds
27078
27079# Command to use after uninstallation of a shared archive.
27080postuninstall_cmds=$lt_postuninstall_cmds
27081
27082# Commands used to finish a libtool library installation in a directory.
27083finish_cmds=$lt_finish_cmds
27084
27085# As "finish_cmds", except a single script fragment to be evaled but
27086# not shown.
27087finish_eval=$lt_finish_eval
27088
27089# Whether we should hardcode library paths into libraries.
27090hardcode_into_libs=$hardcode_into_libs
27091
27092# Compile-time system search path for libraries.
27093sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27094
27095# Run-time system search path for libraries.
27096sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27097
27098# Whether dlopen is supported.
27099dlopen_support=$enable_dlopen
27100
27101# Whether dlopen of programs is supported.
27102dlopen_self=$enable_dlopen_self
27103
27104# Whether dlopen of statically linked programs is supported.
27105dlopen_self_static=$enable_dlopen_self_static
27106
27107# Commands to strip libraries.
27108old_striplib=$lt_old_striplib
27109striplib=$lt_striplib
27110
27111
27112# The linker used to build libraries.
27113LD=$lt_LD
27114
27115# How to create reloadable object files.
27116reload_flag=$lt_reload_flag
27117reload_cmds=$lt_reload_cmds
27118
27119# Commands used to build an old-style archive.
27120old_archive_cmds=$lt_old_archive_cmds
27121
27122# A language specific compiler.
27123CC=$lt_compiler
27124
27125# Is the compiler the GNU compiler?
27126with_gcc=$GCC
27127
27128# Compiler flag to turn off builtin functions.
27129no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27130
27131# Additional compiler flags for building library objects.
27132pic_flag=$lt_lt_prog_compiler_pic
27133
27134# How to pass a linker flag through the compiler.
27135wl=$lt_lt_prog_compiler_wl
27136
27137# Compiler flag to prevent dynamic linking.
27138link_static_flag=$lt_lt_prog_compiler_static
27139
27140# Does compiler simultaneously support -c and -o options?
27141compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27142
27143# Whether or not to add -lc for building shared libraries.
27144build_libtool_need_lc=$archive_cmds_need_lc
27145
27146# Whether or not to disallow shared libs when runtime libs are static.
27147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27148
27149# Compiler flag to allow reflexive dlopens.
27150export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27151
27152# Compiler flag to generate shared objects directly from archives.
27153whole_archive_flag_spec=$lt_whole_archive_flag_spec
27154
27155# Whether the compiler copes with passing no objects directly.
27156compiler_needs_object=$lt_compiler_needs_object
27157
27158# Create an old-style archive from a shared archive.
27159old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27160
27161# Create a temporary old-style archive to link instead of a shared archive.
27162old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27163
27164# Commands used to build a shared archive.
27165archive_cmds=$lt_archive_cmds
27166archive_expsym_cmds=$lt_archive_expsym_cmds
27167
27168# Commands used to build a loadable module if different from building
27169# a shared archive.
27170module_cmds=$lt_module_cmds
27171module_expsym_cmds=$lt_module_expsym_cmds
27172
27173# Whether we are building with GNU ld or not.
27174with_gnu_ld=$lt_with_gnu_ld
27175
27176# Flag that allows shared libraries with undefined symbols to be built.
27177allow_undefined_flag=$lt_allow_undefined_flag
27178
27179# Flag that enforces no undefined symbols.
27180no_undefined_flag=$lt_no_undefined_flag
27181
27182# Flag to hardcode \$libdir into a binary during linking.
27183# This must work even if \$libdir does not exist
27184hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27185
27186# Whether we need a single "-rpath" flag with a separated argument.
27187hardcode_libdir_separator=$lt_hardcode_libdir_separator
27188
27189# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27190# DIR into the resulting binary.
27191hardcode_direct=$hardcode_direct
27192
27193# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27194# DIR into the resulting binary and the resulting library dependency is
27195# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27196# library is relocated.
27197hardcode_direct_absolute=$hardcode_direct_absolute
27198
27199# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27200# into the resulting binary.
27201hardcode_minus_L=$hardcode_minus_L
27202
27203# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27204# into the resulting binary.
27205hardcode_shlibpath_var=$hardcode_shlibpath_var
27206
27207# Set to "yes" if building a shared library automatically hardcodes DIR
27208# into the library and all subsequent libraries and executables linked
27209# against it.
27210hardcode_automatic=$hardcode_automatic
27211
27212# Set to yes if linker adds runtime paths of dependent libraries
27213# to runtime path list.
27214inherit_rpath=$inherit_rpath
27215
27216# Whether libtool must link a program against all its dependency libraries.
27217link_all_deplibs=$link_all_deplibs
27218
27219# Set to "yes" if exported symbols are required.
27220always_export_symbols=$always_export_symbols
27221
27222# The commands to list exported symbols.
27223export_symbols_cmds=$lt_export_symbols_cmds
27224
27225# Symbols that should not be listed in the preloaded symbols.
27226exclude_expsyms=$lt_exclude_expsyms
27227
27228# Symbols that must always be exported.
27229include_expsyms=$lt_include_expsyms
27230
27231# Commands necessary for linking programs (against libraries) with templates.
27232prelink_cmds=$lt_prelink_cmds
27233
27234# Commands necessary for finishing linking programs.
27235postlink_cmds=$lt_postlink_cmds
27236
27237# Specify filename containing input files.
27238file_list_spec=$lt_file_list_spec
27239
27240# How to hardcode a shared library path into an executable.
27241hardcode_action=$hardcode_action
27242
27243# The directories searched by this compiler when creating a shared library.
27244compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27245
27246# Dependencies to place before and after the objects being linked to
27247# create a shared library.
27248predep_objects=$lt_predep_objects
27249postdep_objects=$lt_postdep_objects
27250predeps=$lt_predeps
27251postdeps=$lt_postdeps
27252
27253# The library search path used internally by the compiler when linking
27254# a shared library.
27255compiler_lib_search_path=$lt_compiler_lib_search_path
27256
27257# ### END LIBTOOL CONFIG
27258
27259_LT_EOF
27260
27261  case $host_os in
27262  aix3*)
27263    cat <<\_LT_EOF >> "$cfgfile"
27264# AIX sometimes has problems with the GCC collect2 program.  For some
27265# reason, if we set the COLLECT_NAMES environment variable, the problems
27266# vanish in a puff of smoke.
27267if test "X${COLLECT_NAMES+set}" != Xset; then
27268  COLLECT_NAMES=
27269  export COLLECT_NAMES
27270fi
27271_LT_EOF
27272    ;;
27273  esac
27274
27275
27276ltmain="$ac_aux_dir/ltmain.sh"
27277
27278
27279  # We use sed instead of cat because bash on DJGPP gets confused if
27280  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27281  # text mode, it properly converts lines to CR/LF.  This bash problem
27282  # is reportedly fixed, but why not run on old versions too?
27283  sed '$q' "$ltmain" >> "$cfgfile" \
27284     || (rm -f "$cfgfile"; exit 1)
27285
27286  if test x"$xsi_shell" = xyes; then
27287  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27288func_dirname ()\
27289{\
27290\    case ${1} in\
27291\      */*) func_dirname_result="${1%/*}${2}" ;;\
27292\      *  ) func_dirname_result="${3}" ;;\
27293\    esac\
27294} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27295  && mv -f "$cfgfile.tmp" "$cfgfile" \
27296    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27297test 0 -eq $? || _lt_function_replace_fail=:
27298
27299
27300  sed -e '/^func_basename ()$/,/^} # func_basename /c\
27301func_basename ()\
27302{\
27303\    func_basename_result="${1##*/}"\
27304} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27305  && mv -f "$cfgfile.tmp" "$cfgfile" \
27306    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27307test 0 -eq $? || _lt_function_replace_fail=:
27308
27309
27310  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27311func_dirname_and_basename ()\
27312{\
27313\    case ${1} in\
27314\      */*) func_dirname_result="${1%/*}${2}" ;;\
27315\      *  ) func_dirname_result="${3}" ;;\
27316\    esac\
27317\    func_basename_result="${1##*/}"\
27318} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27319  && mv -f "$cfgfile.tmp" "$cfgfile" \
27320    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27321test 0 -eq $? || _lt_function_replace_fail=:
27322
27323
27324  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27325func_stripname ()\
27326{\
27327\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27328\    # positional parameters, so assign one to ordinary parameter first.\
27329\    func_stripname_result=${3}\
27330\    func_stripname_result=${func_stripname_result#"${1}"}\
27331\    func_stripname_result=${func_stripname_result%"${2}"}\
27332} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27333  && mv -f "$cfgfile.tmp" "$cfgfile" \
27334    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27335test 0 -eq $? || _lt_function_replace_fail=:
27336
27337
27338  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27339func_split_long_opt ()\
27340{\
27341\    func_split_long_opt_name=${1%%=*}\
27342\    func_split_long_opt_arg=${1#*=}\
27343} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27344  && mv -f "$cfgfile.tmp" "$cfgfile" \
27345    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27346test 0 -eq $? || _lt_function_replace_fail=:
27347
27348
27349  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27350func_split_short_opt ()\
27351{\
27352\    func_split_short_opt_arg=${1#??}\
27353\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27354} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27355  && mv -f "$cfgfile.tmp" "$cfgfile" \
27356    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27357test 0 -eq $? || _lt_function_replace_fail=:
27358
27359
27360  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27361func_lo2o ()\
27362{\
27363\    case ${1} in\
27364\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27365\      *)    func_lo2o_result=${1} ;;\
27366\    esac\
27367} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27368  && mv -f "$cfgfile.tmp" "$cfgfile" \
27369    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27370test 0 -eq $? || _lt_function_replace_fail=:
27371
27372
27373  sed -e '/^func_xform ()$/,/^} # func_xform /c\
27374func_xform ()\
27375{\
27376    func_xform_result=${1%.*}.lo\
27377} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27378  && mv -f "$cfgfile.tmp" "$cfgfile" \
27379    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27380test 0 -eq $? || _lt_function_replace_fail=:
27381
27382
27383  sed -e '/^func_arith ()$/,/^} # func_arith /c\
27384func_arith ()\
27385{\
27386    func_arith_result=$(( $* ))\
27387} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27388  && mv -f "$cfgfile.tmp" "$cfgfile" \
27389    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27390test 0 -eq $? || _lt_function_replace_fail=:
27391
27392
27393  sed -e '/^func_len ()$/,/^} # func_len /c\
27394func_len ()\
27395{\
27396    func_len_result=${#1}\
27397} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27398  && mv -f "$cfgfile.tmp" "$cfgfile" \
27399    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27400test 0 -eq $? || _lt_function_replace_fail=:
27401
27402fi
27403
27404if test x"$lt_shell_append" = xyes; then
27405  sed -e '/^func_append ()$/,/^} # func_append /c\
27406func_append ()\
27407{\
27408    eval "${1}+=\\${2}"\
27409} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27410  && mv -f "$cfgfile.tmp" "$cfgfile" \
27411    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27412test 0 -eq $? || _lt_function_replace_fail=:
27413
27414
27415  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27416func_append_quoted ()\
27417{\
27418\    func_quote_for_eval "${2}"\
27419\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27420} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27421  && mv -f "$cfgfile.tmp" "$cfgfile" \
27422    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27423test 0 -eq $? || _lt_function_replace_fail=:
27424
27425
27426  # Save a `func_append' function call where possible by direct use of '+='
27427  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27428    && mv -f "$cfgfile.tmp" "$cfgfile" \
27429      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27430  test 0 -eq $? || _lt_function_replace_fail=:
27431else
27432  # Save a `func_append' function call even when '+=' is not available
27433  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27434    && mv -f "$cfgfile.tmp" "$cfgfile" \
27435      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27436  test 0 -eq $? || _lt_function_replace_fail=:
27437fi
27438
27439if test x"$_lt_function_replace_fail" = x":"; then
27440  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27441$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27442fi
27443
27444
27445   mv -f "$cfgfile" "$ofile" ||
27446    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27447  chmod +x "$ofile"
27448
27449
27450    cat <<_LT_EOF >> "$ofile"
27451
27452# ### BEGIN LIBTOOL TAG CONFIG: CXX
27453
27454# The linker used to build libraries.
27455LD=$lt_LD_CXX
27456
27457# How to create reloadable object files.
27458reload_flag=$lt_reload_flag_CXX
27459reload_cmds=$lt_reload_cmds_CXX
27460
27461# Commands used to build an old-style archive.
27462old_archive_cmds=$lt_old_archive_cmds_CXX
27463
27464# A language specific compiler.
27465CC=$lt_compiler_CXX
27466
27467# Is the compiler the GNU compiler?
27468with_gcc=$GCC_CXX
27469
27470# Compiler flag to turn off builtin functions.
27471no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27472
27473# Additional compiler flags for building library objects.
27474pic_flag=$lt_lt_prog_compiler_pic_CXX
27475
27476# How to pass a linker flag through the compiler.
27477wl=$lt_lt_prog_compiler_wl_CXX
27478
27479# Compiler flag to prevent dynamic linking.
27480link_static_flag=$lt_lt_prog_compiler_static_CXX
27481
27482# Does compiler simultaneously support -c and -o options?
27483compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27484
27485# Whether or not to add -lc for building shared libraries.
27486build_libtool_need_lc=$archive_cmds_need_lc_CXX
27487
27488# Whether or not to disallow shared libs when runtime libs are static.
27489allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27490
27491# Compiler flag to allow reflexive dlopens.
27492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27493
27494# Compiler flag to generate shared objects directly from archives.
27495whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27496
27497# Whether the compiler copes with passing no objects directly.
27498compiler_needs_object=$lt_compiler_needs_object_CXX
27499
27500# Create an old-style archive from a shared archive.
27501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27502
27503# Create a temporary old-style archive to link instead of a shared archive.
27504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27505
27506# Commands used to build a shared archive.
27507archive_cmds=$lt_archive_cmds_CXX
27508archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27509
27510# Commands used to build a loadable module if different from building
27511# a shared archive.
27512module_cmds=$lt_module_cmds_CXX
27513module_expsym_cmds=$lt_module_expsym_cmds_CXX
27514
27515# Whether we are building with GNU ld or not.
27516with_gnu_ld=$lt_with_gnu_ld_CXX
27517
27518# Flag that allows shared libraries with undefined symbols to be built.
27519allow_undefined_flag=$lt_allow_undefined_flag_CXX
27520
27521# Flag that enforces no undefined symbols.
27522no_undefined_flag=$lt_no_undefined_flag_CXX
27523
27524# Flag to hardcode \$libdir into a binary during linking.
27525# This must work even if \$libdir does not exist
27526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27527
27528# Whether we need a single "-rpath" flag with a separated argument.
27529hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27530
27531# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27532# DIR into the resulting binary.
27533hardcode_direct=$hardcode_direct_CXX
27534
27535# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27536# DIR into the resulting binary and the resulting library dependency is
27537# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27538# library is relocated.
27539hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27540
27541# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27542# into the resulting binary.
27543hardcode_minus_L=$hardcode_minus_L_CXX
27544
27545# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27546# into the resulting binary.
27547hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27548
27549# Set to "yes" if building a shared library automatically hardcodes DIR
27550# into the library and all subsequent libraries and executables linked
27551# against it.
27552hardcode_automatic=$hardcode_automatic_CXX
27553
27554# Set to yes if linker adds runtime paths of dependent libraries
27555# to runtime path list.
27556inherit_rpath=$inherit_rpath_CXX
27557
27558# Whether libtool must link a program against all its dependency libraries.
27559link_all_deplibs=$link_all_deplibs_CXX
27560
27561# Set to "yes" if exported symbols are required.
27562always_export_symbols=$always_export_symbols_CXX
27563
27564# The commands to list exported symbols.
27565export_symbols_cmds=$lt_export_symbols_cmds_CXX
27566
27567# Symbols that should not be listed in the preloaded symbols.
27568exclude_expsyms=$lt_exclude_expsyms_CXX
27569
27570# Symbols that must always be exported.
27571include_expsyms=$lt_include_expsyms_CXX
27572
27573# Commands necessary for linking programs (against libraries) with templates.
27574prelink_cmds=$lt_prelink_cmds_CXX
27575
27576# Commands necessary for finishing linking programs.
27577postlink_cmds=$lt_postlink_cmds_CXX
27578
27579# Specify filename containing input files.
27580file_list_spec=$lt_file_list_spec_CXX
27581
27582# How to hardcode a shared library path into an executable.
27583hardcode_action=$hardcode_action_CXX
27584
27585# The directories searched by this compiler when creating a shared library.
27586compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27587
27588# Dependencies to place before and after the objects being linked to
27589# create a shared library.
27590predep_objects=$lt_predep_objects_CXX
27591postdep_objects=$lt_postdep_objects_CXX
27592predeps=$lt_predeps_CXX
27593postdeps=$lt_postdeps_CXX
27594
27595# The library search path used internally by the compiler when linking
27596# a shared library.
27597compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27598
27599# ### END LIBTOOL TAG CONFIG: CXX
27600_LT_EOF
27601
27602 ;;
27603    "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
27604                    $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
27605                    cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
27606                    rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
27607    "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
27608    "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
27609    "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
27610    "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
27611
27612  esac
27613done # for ac_tag
27614
27615
27616as_fn_exit 0
27617_ACEOF
27618ac_clean_files=$ac_clean_files_save
27619
27620test $ac_write_fail = 0 ||
27621  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27622
27623
27624# configure is writing to config.log, and then calls config.status.
27625# config.status does its own redirection, appending to config.log.
27626# Unfortunately, on DOS this fails, as config.log is still kept open
27627# by configure, so config.status won't be able to write to it; its
27628# output is simply discarded.  So we exec the FD to /dev/null,
27629# effectively closing config.log, so it can be properly (re)opened and
27630# appended to by config.status.  When coming back to configure, we
27631# need to make the FD available again.
27632if test "$no_create" != yes; then
27633  ac_cs_success=:
27634  ac_config_status_args=
27635  test "$silent" = yes &&
27636    ac_config_status_args="$ac_config_status_args --quiet"
27637  exec 5>/dev/null
27638  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27639  exec 5>>config.log
27640  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27641  # would make configure fail if this is the last instruction.
27642  $ac_cs_success || as_fn_exit 1
27643fi
27644if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27645  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27646$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27647fi
27648
27649
27650# ==== Print final messages to user ==========================================
27651
27652
27653if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
27654  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
27655
27656
27657Berkeley DB 6 was found, but not used.  Please re-run configure (see
27658./config.nice) with the '--enable-bdb6' flag to use it,
27659or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27660to silence this warning.
27661
27662Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27663General Public License, version 3:
27664https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27665
27666The AGPL-3.0 licence may impose special requirements for making available
27667source code of server-side software.  The text of the licence is:
27668https://www.gnu.org/licenses/agpl-3.0.html
27669http://opensource.org/licenses/AGPL-3.0
27670
27671The Berkeley DB backend to Subversion is deprecated; see
27672http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27673
27674The Subversion developers have not tested Subversion with Berkeley DB 6 for
27675technical problems or bugs.
27676" >&5
27677$as_echo "$as_me: WARNING: We have configured without BDB filesystem support
27678
27679
27680Berkeley DB 6 was found, but not used.  Please re-run configure (see
27681./config.nice) with the '--enable-bdb6' flag to use it,
27682or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27683to silence this warning.
27684
27685Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27686General Public License, version 3:
27687https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27688
27689The AGPL-3.0 licence may impose special requirements for making available
27690source code of server-side software.  The text of the licence is:
27691https://www.gnu.org/licenses/agpl-3.0.html
27692http://opensource.org/licenses/AGPL-3.0
27693
27694The Berkeley DB backend to Subversion is deprecated; see
27695http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27696
27697The Subversion developers have not tested Subversion with Berkeley DB 6 for
27698technical problems or bugs.
27699" >&2;}
27700fi
27701