1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xapian-bindings 1.4.18.
4#
5# Report bugs to <https://xapian.org/bugs>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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: https://xapian.org/bugs about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: 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='xapian-bindings'
592PACKAGE_TARNAME='xapian-bindings'
593PACKAGE_VERSION='1.4.18'
594PACKAGE_STRING='xapian-bindings 1.4.18'
595PACKAGE_BUGREPORT='https://xapian.org/bugs'
596PACKAGE_URL=''
597
598ac_unique_file="xapian-headers.i"
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='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639AUTOM4TE
640SWIG_CXXFLAGS
641THREAD_LOCAL
642BINDINGS
643LUA_CPPFLAGS
644LUA_INC
645LUA_SO
646LUA_LIB
647LUA
648PERL_XAPIAN_VERSION
649PERL_SO
650PERL_LIB
651PERL_ARCH
652PERL_INC
653RUBY_DLEXT
654RDOC
655RUBY_LIBS
656RUBY_LIB_ARCH
657RUBY_LIB
658RUBY_INC_ARCH
659RUBY_INC
660RUBY
661JAVA_CHECK_JNI_OPTION
662JAVA_PATHSEP
663JAVA_CPPFLAGS
664JNI_INCLUDE_DIR
665JDK_HOME
666JAVA_HOME
667JAR
668JAVAC
669JAVA
670GACUTIL_FLAGS
671RUN_CSHARP
672CLI
673SN
674GACUTIL
675CSC
676TCL_LIBS
677TCL_CPPFLAGS
678TCL_INC
679TCL_LIB
680TCLSH
681PHP7_LIBS
682PHP7_PATH_SEPARATOR
683PHP7_INC
684PHP7_EXTENSION_DIR
685PHP7_MAJOR_VERSION
686PHP7
687PHP_CONFIG7
688PHP_LIBS
689PHP_PATH_SEPARATOR
690PHP_INC
691PHP_EXTENSION_DIR
692PHP_MAJOR_VERSION
693PHP
694PHP_CONFIG
695PYTHON
696PYTHON3_CACHE_OPT1_EXT
697PYTHON3_CACHE_TAG
698PYTHON3_SO
699PYTHON3_LIBS
700PYTHON3_LIB
701PYTHON3_INC
702PYTHON3
703PYTHON2_SO
704PYTHON2_LIBS
705PYTHON2_LIB
706PYTHON2_INC
707PYTHON2
708DOXYGEN
709PERL
710XAPIAN_HEADERS
711XAPIAN_HEADER_DIRS
712SWIG_FLAGS
713SWIG
714RST2HTML
715MAINTAINER_NO_DOCS_FALSE
716MAINTAINER_NO_DOCS_TRUE
717DOCUMENTATION_RULES_FALSE
718DOCUMENTATION_RULES_TRUE
719MAINT
720MAINTAINER_MODE_FALSE
721MAINTAINER_MODE_TRUE
722VERSION_NO_SNAPSHOT
723COMPAT_VERSION
724NEED_INTREE_DYLD_FALSE
725NEED_INTREE_DYLD_TRUE
726NEED_JNILIB_EXT_FALSE
727NEED_JNILIB_EXT_TRUE
728INTREE_DYLD_PATH
729XAPIAN_VERSION
730XAPIAN_LIBS
731XAPIAN_CXXFLAGS
732XAPIAN_CONFIG
733HAVE_CXX11
734CXXCPP
735am__fastdepCXX_FALSE
736am__fastdepCXX_TRUE
737CXXDEPMODE
738ac_ct_CXX
739CXXFLAGS
740CXX
741NO_UNDEFINED
742CPP
743LT_SYS_LIBRARY_PATH
744OTOOL64
745OTOOL
746LIPO
747NMEDIT
748DSYMUTIL
749MANIFEST_TOOL
750RANLIB
751ac_ct_AR
752AR
753DLLTOOL
754OBJDUMP
755LN_S
756NM
757ac_ct_DUMPBIN
758DUMPBIN
759LD
760FGREP
761EGREP
762GREP
763SED
764am__fastdepCC_FALSE
765am__fastdepCC_TRUE
766CCDEPMODE
767am__nodep
768AMDEPBACKSLASH
769AMDEP_FALSE
770AMDEP_TRUE
771am__quote
772am__include
773DEPDIR
774OBJEXT
775EXEEXT
776ac_ct_CC
777CPPFLAGS
778LDFLAGS
779CFLAGS
780CC
781LIBTOOL
782OVERRIDE_MACOSX_DEPLOYMENT_TARGET
783OVERRIDE_MACOSX_DEPLOYMENT_TARGET_FALSE
784OVERRIDE_MACOSX_DEPLOYMENT_TARGET_TRUE
785host_os
786host_vendor
787host_cpu
788host
789build_os
790build_vendor
791build_cpu
792build
793AM_BACKSLASH
794AM_DEFAULT_VERBOSITY
795AM_DEFAULT_V
796AM_V
797am__untar
798am__tar
799AMTAR
800am__leading_dot
801SET_MAKE
802AWK
803mkdir_p
804MKDIR_P
805INSTALL_STRIP_PROGRAM
806STRIP
807install_sh
808MAKEINFO
809AUTOHEADER
810AUTOMAKE
811AUTOCONF
812ACLOCAL
813VERSION
814PACKAGE
815CYGPATH_W
816am__isrc
817INSTALL_DATA
818INSTALL_SCRIPT
819INSTALL_PROGRAM
820target_alias
821host_alias
822build_alias
823LIBS
824ECHO_T
825ECHO_N
826ECHO_C
827DEFS
828mandir
829localedir
830libdir
831psdir
832pdfdir
833dvidir
834htmldir
835infodir
836docdir
837oldincludedir
838includedir
839localstatedir
840sharedstatedir
841sysconfdir
842datadir
843datarootdir
844libexecdir
845sbindir
846bindir
847program_transform_name
848prefix
849exec_prefix
850PACKAGE_URL
851PACKAGE_BUGREPORT
852PACKAGE_STRING
853PACKAGE_VERSION
854PACKAGE_TARNAME
855PACKAGE_NAME
856PATH_SEPARATOR
857SHELL'
858ac_subst_files=''
859ac_user_opts='
860enable_option_checking
861enable_silent_rules
862enable_static
863enable_shared
864with_pic
865enable_fast_install
866with_aix_soname
867enable_dependency_tracking
868with_gnu_ld
869with_sysroot
870enable_libtool_lock
871enable_visibility
872enable_maintainer_mode
873enable_documentation
874with_python
875with_python3
876with_php
877with_php7
878with_ruby
879with_tcl
880with_csharp
881with_java
882with_perl
883with_lua
884'
885      ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893LT_SYS_LIBRARY_PATH
894CPP
895CXX
896CXXFLAGS
897CCC
898CXXCPP
899XAPIAN_CONFIG
900SWIG
901PYTHON2
902PYTHON2_LIB
903PYTHON3
904PYTHON3_LIB
905PHP_CONFIG
906PHP
907PHP_EXTENSION_DIR
908PHP_CONFIG7
909PHP7
910PHP7_EXTENSION_DIR
911TCLSH
912TCL_LIB
913TCL_INC
914CSC
915GACUTIL
916SN
917CLI
918JAVA
919JAVAC
920JAR
921JAVA_HOME
922JDK_HOME
923JNI_INCLUDE_DIR
924RUBY
925RUBY_INC
926RUBY_INC_ARCH
927RUBY_LIB
928RUBY_LIB_ARCH
929PERL
930PERL_ARCH
931PERL_LIB
932PERL_SO
933LUA
934LUA_LIB
935LUA_SO
936LUA_INC
937THREAD_LOCAL'
938
939
940# Initialize some variables set by options.
941ac_init_help=
942ac_init_version=false
943ac_unrecognized_opts=
944ac_unrecognized_sep=
945# The variables have the same names as the options, with
946# dashes changed to underlines.
947cache_file=/dev/null
948exec_prefix=NONE
949no_create=
950no_recursion=
951prefix=NONE
952program_prefix=NONE
953program_suffix=NONE
954program_transform_name=s,x,x,
955silent=
956site=
957srcdir=
958verbose=
959x_includes=NONE
960x_libraries=NONE
961
962# Installation directory options.
963# These are left unexpanded so users can "make install exec_prefix=/foo"
964# and all the variables that are supposed to be based on exec_prefix
965# by default will actually change.
966# Use braces instead of parens because sh, perl, etc. also accept them.
967# (The list follows the same order as the GNU Coding Standards.)
968bindir='${exec_prefix}/bin'
969sbindir='${exec_prefix}/sbin'
970libexecdir='${exec_prefix}/libexec'
971datarootdir='${prefix}/share'
972datadir='${datarootdir}'
973sysconfdir='${prefix}/etc'
974sharedstatedir='${prefix}/com'
975localstatedir='${prefix}/var'
976includedir='${prefix}/include'
977oldincludedir='/usr/include'
978docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979infodir='${datarootdir}/info'
980htmldir='${docdir}'
981dvidir='${docdir}'
982pdfdir='${docdir}'
983psdir='${docdir}'
984libdir='${exec_prefix}/lib'
985localedir='${datarootdir}/locale'
986mandir='${datarootdir}/man'
987
988ac_prev=
989ac_dashdash=
990for ac_option
991do
992  # If the previous option needs an argument, assign it.
993  if test -n "$ac_prev"; then
994    eval $ac_prev=\$ac_option
995    ac_prev=
996    continue
997  fi
998
999  case $ac_option in
1000  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001  *=)   ac_optarg= ;;
1002  *)    ac_optarg=yes ;;
1003  esac
1004
1005  # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      as_fn_error $? "invalid feature name: $ac_useropt"
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: $ac_useropt"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087  | --exec | --exe | --ex)
1088    ac_prev=exec_prefix ;;
1089  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091  | --exec=* | --exe=* | --ex=*)
1092    exec_prefix=$ac_optarg ;;
1093
1094  -gas | --gas | --ga | --g)
1095    # Obsolete; use --with-gas.
1096    with_gas=yes ;;
1097
1098  -help | --help | --hel | --he | -h)
1099    ac_init_help=long ;;
1100  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101    ac_init_help=recursive ;;
1102  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103    ac_init_help=short ;;
1104
1105  -host | --host | --hos | --ho)
1106    ac_prev=host_alias ;;
1107  -host=* | --host=* | --hos=* | --ho=*)
1108    host_alias=$ac_optarg ;;
1109
1110  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111    ac_prev=htmldir ;;
1112  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113  | --ht=*)
1114    htmldir=$ac_optarg ;;
1115
1116  -includedir | --includedir | --includedi | --included | --include \
1117  | --includ | --inclu | --incl | --inc)
1118    ac_prev=includedir ;;
1119  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121    includedir=$ac_optarg ;;
1122
1123  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124    ac_prev=infodir ;;
1125  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126    infodir=$ac_optarg ;;
1127
1128  -libdir | --libdir | --libdi | --libd)
1129    ac_prev=libdir ;;
1130  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131    libdir=$ac_optarg ;;
1132
1133  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134  | --libexe | --libex | --libe)
1135    ac_prev=libexecdir ;;
1136  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137  | --libexe=* | --libex=* | --libe=*)
1138    libexecdir=$ac_optarg ;;
1139
1140  -localedir | --localedir | --localedi | --localed | --locale)
1141    ac_prev=localedir ;;
1142  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143    localedir=$ac_optarg ;;
1144
1145  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146  | --localstate | --localstat | --localsta | --localst | --locals)
1147    ac_prev=localstatedir ;;
1148  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150    localstatedir=$ac_optarg ;;
1151
1152  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153    ac_prev=mandir ;;
1154  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155    mandir=$ac_optarg ;;
1156
1157  -nfp | --nfp | --nf)
1158    # Obsolete; use --without-fp.
1159    with_fp=no ;;
1160
1161  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162  | --no-cr | --no-c | -n)
1163    no_create=yes ;;
1164
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    no_recursion=yes ;;
1168
1169  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171  | --oldin | --oldi | --old | --ol | --o)
1172    ac_prev=oldincludedir ;;
1173  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176    oldincludedir=$ac_optarg ;;
1177
1178  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179    ac_prev=prefix ;;
1180  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181    prefix=$ac_optarg ;;
1182
1183  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184  | --program-pre | --program-pr | --program-p)
1185    ac_prev=program_prefix ;;
1186  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188    program_prefix=$ac_optarg ;;
1189
1190  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191  | --program-suf | --program-su | --program-s)
1192    ac_prev=program_suffix ;;
1193  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195    program_suffix=$ac_optarg ;;
1196
1197  -program-transform-name | --program-transform-name \
1198  | --program-transform-nam | --program-transform-na \
1199  | --program-transform-n | --program-transform- \
1200  | --program-transform | --program-transfor \
1201  | --program-transfo | --program-transf \
1202  | --program-trans | --program-tran \
1203  | --progr-tra | --program-tr | --program-t)
1204    ac_prev=program_transform_name ;;
1205  -program-transform-name=* | --program-transform-name=* \
1206  | --program-transform-nam=* | --program-transform-na=* \
1207  | --program-transform-n=* | --program-transform-=* \
1208  | --program-transform=* | --program-transfor=* \
1209  | --program-transfo=* | --program-transf=* \
1210  | --program-trans=* | --program-tran=* \
1211  | --progr-tra=* | --program-tr=* | --program-t=*)
1212    program_transform_name=$ac_optarg ;;
1213
1214  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215    ac_prev=pdfdir ;;
1216  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217    pdfdir=$ac_optarg ;;
1218
1219  -psdir | --psdir | --psdi | --psd | --ps)
1220    ac_prev=psdir ;;
1221  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222    psdir=$ac_optarg ;;
1223
1224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225  | -silent | --silent | --silen | --sile | --sil)
1226    silent=yes ;;
1227
1228  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229    ac_prev=sbindir ;;
1230  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231  | --sbi=* | --sb=*)
1232    sbindir=$ac_optarg ;;
1233
1234  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236  | --sharedst | --shareds | --shared | --share | --shar \
1237  | --sha | --sh)
1238    ac_prev=sharedstatedir ;;
1239  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242  | --sha=* | --sh=*)
1243    sharedstatedir=$ac_optarg ;;
1244
1245  -site | --site | --sit)
1246    ac_prev=site ;;
1247  -site=* | --site=* | --sit=*)
1248    site=$ac_optarg ;;
1249
1250  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251    ac_prev=srcdir ;;
1252  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253    srcdir=$ac_optarg ;;
1254
1255  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256  | --syscon | --sysco | --sysc | --sys | --sy)
1257    ac_prev=sysconfdir ;;
1258  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260    sysconfdir=$ac_optarg ;;
1261
1262  -target | --target | --targe | --targ | --tar | --ta | --t)
1263    ac_prev=target_alias ;;
1264  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265    target_alias=$ac_optarg ;;
1266
1267  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268    verbose=yes ;;
1269
1270  -version | --version | --versio | --versi | --vers | -V)
1271    ac_init_version=: ;;
1272
1273  -with-* | --with-*)
1274    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277      as_fn_error $? "invalid package name: $ac_useropt"
1278    ac_useropt_orig=$ac_useropt
1279    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280    case $ac_user_opts in
1281      *"
1282"with_$ac_useropt"
1283"*) ;;
1284      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285	 ac_unrecognized_sep=', ';;
1286    esac
1287    eval with_$ac_useropt=\$ac_optarg ;;
1288
1289  -without-* | --without-*)
1290    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291    # Reject names that are not valid shell variable names.
1292    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293      as_fn_error $? "invalid package name: $ac_useropt"
1294    ac_useropt_orig=$ac_useropt
1295    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296    case $ac_user_opts in
1297      *"
1298"with_$ac_useropt"
1299"*) ;;
1300      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301	 ac_unrecognized_sep=', ';;
1302    esac
1303    eval with_$ac_useropt=no ;;
1304
1305  --x)
1306    # Obsolete; use --with-x.
1307    with_x=yes ;;
1308
1309  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310  | --x-incl | --x-inc | --x-in | --x-i)
1311    ac_prev=x_includes ;;
1312  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314    x_includes=$ac_optarg ;;
1315
1316  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318    ac_prev=x_libraries ;;
1319  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321    x_libraries=$ac_optarg ;;
1322
1323  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1324Try \`$0 --help' for more information"
1325    ;;
1326
1327  *=*)
1328    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329    # Reject names that are not valid shell variable names.
1330    case $ac_envvar in #(
1331      '' | [0-9]* | *[!_$as_cr_alnum]* )
1332      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1333    esac
1334    eval $ac_envvar=\$ac_optarg
1335    export $ac_envvar ;;
1336
1337  *)
1338    # FIXME: should be removed in autoconf 3.0.
1339    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1343    ;;
1344
1345  esac
1346done
1347
1348if test -n "$ac_prev"; then
1349  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350  as_fn_error $? "missing argument to $ac_option"
1351fi
1352
1353if test -n "$ac_unrecognized_opts"; then
1354  case $enable_option_checking in
1355    no) ;;
1356    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1357    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358  esac
1359fi
1360
1361# Check all directory arguments for consistency.
1362for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363		datadir sysconfdir sharedstatedir localstatedir includedir \
1364		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365		libdir localedir mandir
1366do
1367  eval ac_val=\$$ac_var
1368  # Remove trailing slashes.
1369  case $ac_val in
1370    */ )
1371      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372      eval $ac_var=\$ac_val;;
1373  esac
1374  # Be sure to have absolute directory names.
1375  case $ac_val in
1376    [\\/$]* | ?:[\\/]* )  continue;;
1377    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378  esac
1379  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1380done
1381
1382# There might be people who depend on the old broken behavior: `$host'
1383# used to hold the argument of --host etc.
1384# FIXME: To remove some day.
1385build=$build_alias
1386host=$host_alias
1387target=$target_alias
1388
1389# FIXME: To remove some day.
1390if test "x$host_alias" != x; then
1391  if test "x$build_alias" = x; then
1392    cross_compiling=maybe
1393  elif test "x$build_alias" != "x$host_alias"; then
1394    cross_compiling=yes
1395  fi
1396fi
1397
1398ac_tool_prefix=
1399test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401test "$silent" = yes && exec 6>/dev/null
1402
1403
1404ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405ac_ls_di=`ls -di .` &&
1406ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407  as_fn_error $? "working directory cannot be determined"
1408test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409  as_fn_error $? "pwd does not report name of working directory"
1410
1411
1412# Find the source files, if location was not specified.
1413if test -z "$srcdir"; then
1414  ac_srcdir_defaulted=yes
1415  # Try the directory containing this script, then the parent directory.
1416  ac_confdir=`$as_dirname -- "$as_myself" ||
1417$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418	 X"$as_myself" : 'X\(//\)[^/]' \| \
1419	 X"$as_myself" : 'X\(//\)$' \| \
1420	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421$as_echo X"$as_myself" |
1422    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423	    s//\1/
1424	    q
1425	  }
1426	  /^X\(\/\/\)[^/].*/{
1427	    s//\1/
1428	    q
1429	  }
1430	  /^X\(\/\/\)$/{
1431	    s//\1/
1432	    q
1433	  }
1434	  /^X\(\/\).*/{
1435	    s//\1/
1436	    q
1437	  }
1438	  s/.*/./; q'`
1439  srcdir=$ac_confdir
1440  if test ! -r "$srcdir/$ac_unique_file"; then
1441    srcdir=..
1442  fi
1443else
1444  ac_srcdir_defaulted=no
1445fi
1446if test ! -r "$srcdir/$ac_unique_file"; then
1447  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1449fi
1450ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451ac_abs_confdir=`(
1452	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1453	pwd)`
1454# When building in place, set srcdir=.
1455if test "$ac_abs_confdir" = "$ac_pwd"; then
1456  srcdir=.
1457fi
1458# Remove unnecessary trailing slashes from srcdir.
1459# Double slashes in file names in object file debugging info
1460# mess up M-x gdb in Emacs.
1461case $srcdir in
1462*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463esac
1464for ac_var in $ac_precious_vars; do
1465  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466  eval ac_env_${ac_var}_value=\$${ac_var}
1467  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469done
1470
1471#
1472# Report the --help message.
1473#
1474if test "$ac_init_help" = "long"; then
1475  # Omit some internal or obsolete options to make the list less imposing.
1476  # This message is too long to be a string in the A/UX 3.1 sh.
1477  cat <<_ACEOF
1478\`configure' configures xapian-bindings 1.4.18 to adapt to many kinds of systems.
1479
1480Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483VAR=VALUE.  See below for descriptions of some of the useful variables.
1484
1485Defaults for the options are specified in brackets.
1486
1487Configuration:
1488  -h, --help              display this help and exit
1489      --help=short        display options specific to this package
1490      --help=recursive    display the short help of all the included packages
1491  -V, --version           display version information and exit
1492  -q, --quiet, --silent   do not print \`checking ...' messages
1493      --cache-file=FILE   cache test results in FILE [disabled]
1494  -C, --config-cache      alias for \`--cache-file=config.cache'
1495  -n, --no-create         do not create output files
1496      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1497
1498Installation directories:
1499  --prefix=PREFIX         install architecture-independent files in PREFIX
1500                          [$ac_default_prefix]
1501  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1502                          [PREFIX]
1503
1504By default, \`make install' will install all the files in
1505\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1506an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507for instance \`--prefix=\$HOME'.
1508
1509For better control, use the options below.
1510
1511Fine tuning of the installation directories:
1512  --bindir=DIR            user executables [EPREFIX/bin]
1513  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1514  --libexecdir=DIR        program executables [EPREFIX/libexec]
1515  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1516  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1517  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1518  --libdir=DIR            object code libraries [EPREFIX/lib]
1519  --includedir=DIR        C header files [PREFIX/include]
1520  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1521  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1522  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1523  --infodir=DIR           info documentation [DATAROOTDIR/info]
1524  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1525  --mandir=DIR            man documentation [DATAROOTDIR/man]
1526  --docdir=DIR            documentation root [DATAROOTDIR/doc/xapian-bindings]
1527  --htmldir=DIR           html documentation [DOCDIR]
1528  --dvidir=DIR            dvi documentation [DOCDIR]
1529  --pdfdir=DIR            pdf documentation [DOCDIR]
1530  --psdir=DIR             ps documentation [DOCDIR]
1531_ACEOF
1532
1533  cat <<\_ACEOF
1534
1535Program names:
1536  --program-prefix=PREFIX            prepend PREFIX to installed program names
1537  --program-suffix=SUFFIX            append SUFFIX to installed program names
1538  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1539
1540System types:
1541  --build=BUILD     configure for building on BUILD [guessed]
1542  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1543_ACEOF
1544fi
1545
1546if test -n "$ac_init_help"; then
1547  case $ac_init_help in
1548     short | recursive ) echo "Configuration of xapian-bindings 1.4.18:";;
1549   esac
1550  cat <<\_ACEOF
1551
1552Optional Features:
1553  --disable-option-checking  ignore unrecognized --enable/--with options
1554  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1555  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1556  --enable-silent-rules   less verbose build output (undo: "make V=1")
1557  --disable-silent-rules  verbose build output (undo: "make V=0")
1558  --enable-static[=PKGS]  build static libraries [default=no]
1559  --enable-shared[=PKGS]  build shared libraries [default=yes]
1560  --enable-fast-install[=PKGS]
1561                          optimize for fast installation [default=yes]
1562  --enable-dependency-tracking
1563                          do not reject slow dependency extractors
1564  --disable-dependency-tracking
1565                          speeds up one-time build
1566  --disable-libtool-lock  avoid locking (might break parallel builds)
1567  --disable-visibility    disable use of GCC visibility
1568  --enable-maintainer-mode
1569                          enable make rules and dependencies not useful (and
1570                          sometimes confusing) to the casual installer
1571  --enable-documentation  enable make rules to rebuild shipped documentation
1572                          [default=maintainer-mode]
1573
1574Optional Packages:
1575  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1578                          both]
1579  --with-aix-soname=aix|svr4|both
1580                          shared library versioning (aka "SONAME") variant to
1581                          provide on AIX, [default=aix].
1582  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1583  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1584                          compiler's sysroot if not specified).
1585  --with-python           enable Python 2 bindings
1586  --with-python3          enable Python 3 bindings
1587  --with-php              enable PHP 5 bindings
1588  --with-php7             enable PHP 7 bindings
1589  --with-ruby             enable Ruby bindings
1590  --with-tcl              enable Tcl bindings
1591  --with-csharp           enable CSharp bindings
1592  --with-java             enable Java bindings
1593  --with-perl             enable Perl bindings
1594  --with-lua              enable Lua bindings
1595
1596Some influential environment variables:
1597  CC          C compiler command
1598  CFLAGS      C compiler flags
1599  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600              nonstandard directory <lib dir>
1601  LIBS        libraries to pass to the linker, e.g. -l<library>
1602  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603              you have headers in a nonstandard directory <include dir>
1604  LT_SYS_LIBRARY_PATH
1605              User-defined run-time library search path.
1606  CPP         C preprocessor
1607  CXX         C++ compiler command
1608  CXXFLAGS    C++ compiler flags
1609  CXXCPP      C++ preprocessor
1610  XAPIAN_CONFIG
1611              Location of xapian-config (default: xapian-config on PATH)
1612  SWIG        SWIG interface generator (only needed by Xapian developers)
1613  PYTHON2     Python 2 interpreter
1614  PYTHON2_LIB Directory to install python2 bindings in
1615  PYTHON3     Python 3 interpreter
1616  PYTHON3_LIB Directory to install python3 bindings in
1617  PHP_CONFIG  php-config utility for PHP5
1618  PHP         PHP5 interpreter (optional - only needed to run PHP5 testsuite
1619              with)
1620  PHP_EXTENSION_DIR
1621              Directory to install PHP5 extensions in
1622  PHP_CONFIG7 php-config utility for PHP7
1623  PHP7        PHP7 interpreter (optional - only needed to run PHP7 testsuite
1624              with)
1625  PHP7_EXTENSION_DIR
1626              Directory to install PHP7 extensions in
1627  TCLSH       Tcl interpreter
1628  TCL_LIB     Directory to install Tcl files into
1629  TCL_INC     Directory to include for Tcl headers
1630  CSC         CSharp compiler command
1631  GACUTIL     gacutil utility to use for CSharp bindings
1632  SN          sn utility to use for CSharp bindings
1633  CLI         CSharp bytecode interpreter (optional - only needed to run
1634              CSharp testsuite with)
1635  JAVA        Java interpreter command
1636  JAVAC       Java compiler command
1637  JAR         java jar utility
1638  JAVA_HOME   Pathname of the directory where the JDK is installed
1639  JDK_HOME    Pathname of the directory where the JDK is installed
1640  JNI_INCLUDE_DIR
1641              Pathname of the directory where jni.h is installed
1642  RUBY        Ruby interpreter
1643  RUBY_INC    Directory where ruby.h can be found
1644  RUBY_INC_ARCH
1645              Directory where ruby/config.h can be found
1646  RUBY_LIB    Directory to install ruby files into
1647  RUBY_LIB_ARCH
1648              Directory to install ruby binary modules into
1649  PERL        perl interpreter
1650  PERL_ARCH   Directory to install architecture-dependent perl files into
1651  PERL_LIB    Directory to install architecture-independent perl files into
1652  PERL_SO     Extension for compiled Perl modules
1653  LUA         lua interpreter
1654  LUA_LIB     Directory to install compiled Lua modules into
1655  LUA_SO      Extension for compiled Lua modules (e.g. LUA_SO=.so)
1656  LUA_INC     Directory to include for lua headers
1657  THREAD_LOCAL
1658              thread-local storage qualifier
1659
1660Use these variables to override the choices made by `configure' or to help
1661it to find libraries and programs with nonstandard names/locations.
1662
1663Report bugs to <https://xapian.org/bugs>.
1664_ACEOF
1665ac_status=$?
1666fi
1667
1668if test "$ac_init_help" = "recursive"; then
1669  # If there are subdirs, report their specific --help.
1670  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1671    test -d "$ac_dir" ||
1672      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1673      continue
1674    ac_builddir=.
1675
1676case "$ac_dir" in
1677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678*)
1679  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1680  # A ".." for each directory in $ac_dir_suffix.
1681  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1682  case $ac_top_builddir_sub in
1683  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1685  esac ;;
1686esac
1687ac_abs_top_builddir=$ac_pwd
1688ac_abs_builddir=$ac_pwd$ac_dir_suffix
1689# for backward compatibility:
1690ac_top_builddir=$ac_top_build_prefix
1691
1692case $srcdir in
1693  .)  # We are building in place.
1694    ac_srcdir=.
1695    ac_top_srcdir=$ac_top_builddir_sub
1696    ac_abs_top_srcdir=$ac_pwd ;;
1697  [\\/]* | ?:[\\/]* )  # Absolute name.
1698    ac_srcdir=$srcdir$ac_dir_suffix;
1699    ac_top_srcdir=$srcdir
1700    ac_abs_top_srcdir=$srcdir ;;
1701  *) # Relative name.
1702    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1703    ac_top_srcdir=$ac_top_build_prefix$srcdir
1704    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1705esac
1706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1707
1708    cd "$ac_dir" || { ac_status=$?; continue; }
1709    # Check for guested configure.
1710    if test -f "$ac_srcdir/configure.gnu"; then
1711      echo &&
1712      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1713    elif test -f "$ac_srcdir/configure"; then
1714      echo &&
1715      $SHELL "$ac_srcdir/configure" --help=recursive
1716    else
1717      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1718    fi || ac_status=$?
1719    cd "$ac_pwd" || { ac_status=$?; break; }
1720  done
1721fi
1722
1723test -n "$ac_init_help" && exit $ac_status
1724if $ac_init_version; then
1725  cat <<\_ACEOF
1726xapian-bindings configure 1.4.18
1727generated by GNU Autoconf 2.69
1728
1729Copyright (C) 2012 Free Software Foundation, Inc.
1730This configure script is free software; the Free Software Foundation
1731gives unlimited permission to copy, distribute and modify it.
1732_ACEOF
1733  exit
1734fi
1735
1736## ------------------------ ##
1737## Autoconf initialization. ##
1738## ------------------------ ##
1739
1740# ac_fn_c_try_compile LINENO
1741# --------------------------
1742# Try to compile conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_compile ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  rm -f conftest.$ac_objext
1747  if { { ac_try="$ac_compile"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754  (eval "$ac_compile") 2>conftest.err
1755  ac_status=$?
1756  if test -s conftest.err; then
1757    grep -v '^ *+' conftest.err >conftest.er1
1758    cat conftest.er1 >&5
1759    mv -f conftest.er1 conftest.err
1760  fi
1761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; } && {
1763	 test -z "$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       } && test -s conftest.$ac_objext; then :
1766  ac_retval=0
1767else
1768  $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771	ac_retval=1
1772fi
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_compile
1777
1778# ac_fn_c_try_link LINENO
1779# -----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_link ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  rm -f conftest.$ac_objext conftest$ac_exeext
1785  if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_link") 2>conftest.err
1793  ac_status=$?
1794  if test -s conftest.err; then
1795    grep -v '^ *+' conftest.err >conftest.er1
1796    cat conftest.er1 >&5
1797    mv -f conftest.er1 conftest.err
1798  fi
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; } && {
1801	 test -z "$ac_c_werror_flag" ||
1802	 test ! -s conftest.err
1803       } && test -s conftest$ac_exeext && {
1804	 test "$cross_compiling" = yes ||
1805	 test -x conftest$ac_exeext
1806       }; then :
1807  ac_retval=0
1808else
1809  $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812	ac_retval=1
1813fi
1814  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816  # interfere with the next link command; also delete a directory that is
1817  # left behind by Apple's compiler.  We do this before executing the actions.
1818  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820  as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_link
1823
1824# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825# -------------------------------------------------------
1826# Tests whether HEADER exists and can be compiled using the include files in
1827# INCLUDES, setting the cache variable VAR accordingly.
1828ac_fn_c_check_header_compile ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if eval \${$3+:} false; then :
1834  $as_echo_n "(cached) " >&6
1835else
1836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h.  */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842  eval "$3=yes"
1843else
1844  eval "$3=no"
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853} # ac_fn_c_check_header_compile
1854
1855# ac_fn_c_try_cpp LINENO
1856# ----------------------
1857# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_c_try_cpp ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  if { { ac_try="$ac_cpp conftest.$ac_ext"
1862case "(($ac_try" in
1863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864  *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869  ac_status=$?
1870  if test -s conftest.err; then
1871    grep -v '^ *+' conftest.err >conftest.er1
1872    cat conftest.er1 >&5
1873    mv -f conftest.er1 conftest.err
1874  fi
1875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876  test $ac_status = 0; } > conftest.i && {
1877	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1878	 test ! -s conftest.err
1879       }; then :
1880  ac_retval=0
1881else
1882  $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885    ac_retval=1
1886fi
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_cpp
1891
1892# ac_fn_c_try_run LINENO
1893# ----------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895# that executables *can* be run.
1896ac_fn_c_try_run ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902  *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906  (eval "$ac_link") 2>&5
1907  ac_status=$?
1908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910  { { case "(($ac_try" in
1911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912  *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916  (eval "$ac_try") 2>&5
1917  ac_status=$?
1918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919  test $ac_status = 0; }; }; then :
1920  ac_retval=0
1921else
1922  $as_echo "$as_me: program exited with status $ac_status" >&5
1923       $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926       ac_retval=$ac_status
1927fi
1928  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930  as_fn_set_status $ac_retval
1931
1932} # ac_fn_c_try_run
1933
1934# ac_fn_c_check_func LINENO FUNC VAR
1935# ----------------------------------
1936# Tests whether FUNC exists, setting the cache variable VAR accordingly
1937ac_fn_c_check_func ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1949#define $2 innocuous_$2
1950
1951/* System header to define __stub macros and hopefully few prototypes,
1952    which can conflict with char $2 (); below.
1953    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954    <limits.h> exists even on freestanding compilers.  */
1955
1956#ifdef __STDC__
1957# include <limits.h>
1958#else
1959# include <assert.h>
1960#endif
1961
1962#undef $2
1963
1964/* Override any GCC internal prototype to avoid an error.
1965   Use char because int might match the return type of a GCC
1966   builtin and then its argument prototype would still apply.  */
1967#ifdef __cplusplus
1968extern "C"
1969#endif
1970char $2 ();
1971/* The GNU C library defines this for functions which it implements
1972    to always fail with ENOSYS.  Some functions are actually named
1973    something starting with __ and the normal name is an alias.  */
1974#if defined __stub_$2 || defined __stub___$2
1975choke me
1976#endif
1977
1978int
1979main ()
1980{
1981return $2 ();
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_link "$LINENO"; then :
1987  eval "$3=yes"
1988else
1989  eval "$3=no"
1990fi
1991rm -f core conftest.err conftest.$ac_objext \
1992    conftest$ac_exeext conftest.$ac_ext
1993fi
1994eval ac_res=\$$3
1995	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999} # ac_fn_c_check_func
2000
2001# ac_fn_cxx_try_compile LINENO
2002# ----------------------------
2003# Try to compile conftest.$ac_ext, and return whether this succeeded.
2004ac_fn_cxx_try_compile ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  rm -f conftest.$ac_objext
2008  if { { ac_try="$ac_compile"
2009case "(($ac_try" in
2010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011  *) ac_try_echo=$ac_try;;
2012esac
2013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014$as_echo "$ac_try_echo"; } >&5
2015  (eval "$ac_compile") 2>conftest.err
2016  ac_status=$?
2017  if test -s conftest.err; then
2018    grep -v '^ *+' conftest.err >conftest.er1
2019    cat conftest.er1 >&5
2020    mv -f conftest.er1 conftest.err
2021  fi
2022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023  test $ac_status = 0; } && {
2024	 test -z "$ac_cxx_werror_flag" ||
2025	 test ! -s conftest.err
2026       } && test -s conftest.$ac_objext; then :
2027  ac_retval=0
2028else
2029  $as_echo "$as_me: failed program was:" >&5
2030sed 's/^/| /' conftest.$ac_ext >&5
2031
2032	ac_retval=1
2033fi
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035  as_fn_set_status $ac_retval
2036
2037} # ac_fn_cxx_try_compile
2038
2039# ac_fn_cxx_try_cpp LINENO
2040# ------------------------
2041# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2042ac_fn_cxx_try_cpp ()
2043{
2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045  if { { ac_try="$ac_cpp conftest.$ac_ext"
2046case "(($ac_try" in
2047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048  *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2053  ac_status=$?
2054  if test -s conftest.err; then
2055    grep -v '^ *+' conftest.err >conftest.er1
2056    cat conftest.er1 >&5
2057    mv -f conftest.er1 conftest.err
2058  fi
2059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060  test $ac_status = 0; } > conftest.i && {
2061	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2062	 test ! -s conftest.err
2063       }; then :
2064  ac_retval=0
2065else
2066  $as_echo "$as_me: failed program was:" >&5
2067sed 's/^/| /' conftest.$ac_ext >&5
2068
2069    ac_retval=1
2070fi
2071  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072  as_fn_set_status $ac_retval
2073
2074} # ac_fn_cxx_try_cpp
2075
2076# ac_fn_cxx_try_link LINENO
2077# -------------------------
2078# Try to link conftest.$ac_ext, and return whether this succeeded.
2079ac_fn_cxx_try_link ()
2080{
2081  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082  rm -f conftest.$ac_objext conftest$ac_exeext
2083  if { { ac_try="$ac_link"
2084case "(($ac_try" in
2085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086  *) ac_try_echo=$ac_try;;
2087esac
2088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089$as_echo "$ac_try_echo"; } >&5
2090  (eval "$ac_link") 2>conftest.err
2091  ac_status=$?
2092  if test -s conftest.err; then
2093    grep -v '^ *+' conftest.err >conftest.er1
2094    cat conftest.er1 >&5
2095    mv -f conftest.er1 conftest.err
2096  fi
2097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098  test $ac_status = 0; } && {
2099	 test -z "$ac_cxx_werror_flag" ||
2100	 test ! -s conftest.err
2101       } && test -s conftest$ac_exeext && {
2102	 test "$cross_compiling" = yes ||
2103	 test -x conftest$ac_exeext
2104       }; then :
2105  ac_retval=0
2106else
2107  $as_echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110	ac_retval=1
2111fi
2112  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114  # interfere with the next link command; also delete a directory that is
2115  # left behind by Apple's compiler.  We do this before executing the actions.
2116  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118  as_fn_set_status $ac_retval
2119
2120} # ac_fn_cxx_try_link
2121
2122# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2123# ---------------------------------------------------------
2124# Tests whether HEADER exists and can be compiled using the include files in
2125# INCLUDES, setting the cache variable VAR accordingly.
2126ac_fn_cxx_check_header_compile ()
2127{
2128  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
2131if eval \${$3+:} false; then :
2132  $as_echo_n "(cached) " >&6
2133else
2134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h.  */
2136$4
2137#include <$2>
2138_ACEOF
2139if ac_fn_cxx_try_compile "$LINENO"; then :
2140  eval "$3=yes"
2141else
2142  eval "$3=no"
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145fi
2146eval ac_res=\$$3
2147	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151} # ac_fn_cxx_check_header_compile
2152cat >config.log <<_ACEOF
2153This file contains any messages produced by compilers while
2154running configure, to aid debugging if configure makes a mistake.
2155
2156It was created by xapian-bindings $as_me 1.4.18, which was
2157generated by GNU Autoconf 2.69.  Invocation command line was
2158
2159  $ $0 $@
2160
2161_ACEOF
2162exec 5>>config.log
2163{
2164cat <<_ASUNAME
2165## --------- ##
2166## Platform. ##
2167## --------- ##
2168
2169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173uname -v = `(uname -v) 2>/dev/null || echo unknown`
2174
2175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2177
2178/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2179/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2182/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2183/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2184/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2185
2186_ASUNAME
2187
2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2190do
2191  IFS=$as_save_IFS
2192  test -z "$as_dir" && as_dir=.
2193    $as_echo "PATH: $as_dir"
2194  done
2195IFS=$as_save_IFS
2196
2197} >&5
2198
2199cat >&5 <<_ACEOF
2200
2201
2202## ----------- ##
2203## Core tests. ##
2204## ----------- ##
2205
2206_ACEOF
2207
2208
2209# Keep a trace of the command line.
2210# Strip out --no-create and --no-recursion so they do not pile up.
2211# Strip out --silent because we don't want to record it for future runs.
2212# Also quote any args containing shell meta-characters.
2213# Make two passes to allow for proper duplicate-argument suppression.
2214ac_configure_args=
2215ac_configure_args0=
2216ac_configure_args1=
2217ac_must_keep_next=false
2218for ac_pass in 1 2
2219do
2220  for ac_arg
2221  do
2222    case $ac_arg in
2223    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225    | -silent | --silent | --silen | --sile | --sil)
2226      continue ;;
2227    *\'*)
2228      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229    esac
2230    case $ac_pass in
2231    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2232    2)
2233      as_fn_append ac_configure_args1 " '$ac_arg'"
2234      if test $ac_must_keep_next = true; then
2235	ac_must_keep_next=false # Got value, back to normal.
2236      else
2237	case $ac_arg in
2238	  *=* | --config-cache | -C | -disable-* | --disable-* \
2239	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241	  | -with-* | --with-* | -without-* | --without-* | --x)
2242	    case "$ac_configure_args0 " in
2243	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244	    esac
2245	    ;;
2246	  -* ) ac_must_keep_next=true ;;
2247	esac
2248      fi
2249      as_fn_append ac_configure_args " '$ac_arg'"
2250      ;;
2251    esac
2252  done
2253done
2254{ ac_configure_args0=; unset ac_configure_args0;}
2255{ ac_configure_args1=; unset ac_configure_args1;}
2256
2257# When interrupted or exit'd, cleanup temporary files, and complete
2258# config.log.  We remove comments because anyway the quotes in there
2259# would cause problems or look ugly.
2260# WARNING: Use '\'' to represent an apostrophe within the trap.
2261# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262trap 'exit_status=$?
2263  # Save into config.log some information that might help in debugging.
2264  {
2265    echo
2266
2267    $as_echo "## ---------------- ##
2268## Cache variables. ##
2269## ---------------- ##"
2270    echo
2271    # The following way of writing the cache mishandles newlines in values,
2272(
2273  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2274    eval ac_val=\$$ac_var
2275    case $ac_val in #(
2276    *${as_nl}*)
2277      case $ac_var in #(
2278      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2279$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2280      esac
2281      case $ac_var in #(
2282      _ | IFS | as_nl) ;; #(
2283      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2284      *) { eval $ac_var=; unset $ac_var;} ;;
2285      esac ;;
2286    esac
2287  done
2288  (set) 2>&1 |
2289    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2290    *${as_nl}ac_space=\ *)
2291      sed -n \
2292	"s/'\''/'\''\\\\'\'''\''/g;
2293	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2294      ;; #(
2295    *)
2296      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2297      ;;
2298    esac |
2299    sort
2300)
2301    echo
2302
2303    $as_echo "## ----------------- ##
2304## Output variables. ##
2305## ----------------- ##"
2306    echo
2307    for ac_var in $ac_subst_vars
2308    do
2309      eval ac_val=\$$ac_var
2310      case $ac_val in
2311      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312      esac
2313      $as_echo "$ac_var='\''$ac_val'\''"
2314    done | sort
2315    echo
2316
2317    if test -n "$ac_subst_files"; then
2318      $as_echo "## ------------------- ##
2319## File substitutions. ##
2320## ------------------- ##"
2321      echo
2322      for ac_var in $ac_subst_files
2323      do
2324	eval ac_val=\$$ac_var
2325	case $ac_val in
2326	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327	esac
2328	$as_echo "$ac_var='\''$ac_val'\''"
2329      done | sort
2330      echo
2331    fi
2332
2333    if test -s confdefs.h; then
2334      $as_echo "## ----------- ##
2335## confdefs.h. ##
2336## ----------- ##"
2337      echo
2338      cat confdefs.h
2339      echo
2340    fi
2341    test "$ac_signal" != 0 &&
2342      $as_echo "$as_me: caught signal $ac_signal"
2343    $as_echo "$as_me: exit $exit_status"
2344  } >&5
2345  rm -f core *.core core.conftest.* &&
2346    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2347    exit $exit_status
2348' 0
2349for ac_signal in 1 2 13 15; do
2350  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2351done
2352ac_signal=0
2353
2354# confdefs.h avoids OS command line length limits that DEFS can exceed.
2355rm -f -r conftest* confdefs.h
2356
2357$as_echo "/* confdefs.h */" > confdefs.h
2358
2359# Predefined preprocessor variables.
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_NAME "$PACKAGE_NAME"
2363_ACEOF
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_VERSION "$PACKAGE_VERSION"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_STRING "$PACKAGE_STRING"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_URL "$PACKAGE_URL"
2383_ACEOF
2384
2385
2386# Let the site file select an alternate cache file if it wants to.
2387# Prefer an explicitly selected file to automatically selected ones.
2388ac_site_file1=NONE
2389ac_site_file2=NONE
2390if test -n "$CONFIG_SITE"; then
2391  # We do not want a PATH search for config.site.
2392  case $CONFIG_SITE in #((
2393    -*)  ac_site_file1=./$CONFIG_SITE;;
2394    */*) ac_site_file1=$CONFIG_SITE;;
2395    *)   ac_site_file1=./$CONFIG_SITE;;
2396  esac
2397elif test "x$prefix" != xNONE; then
2398  ac_site_file1=$prefix/share/config.site
2399  ac_site_file2=$prefix/etc/config.site
2400else
2401  ac_site_file1=$ac_default_prefix/share/config.site
2402  ac_site_file2=$ac_default_prefix/etc/config.site
2403fi
2404for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2405do
2406  test "x$ac_site_file" = xNONE && continue
2407  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2408    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2409$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2410    sed 's/^/| /' "$ac_site_file" >&5
2411    . "$ac_site_file" \
2412      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414as_fn_error $? "failed to load site script $ac_site_file
2415See \`config.log' for more details" "$LINENO" 5; }
2416  fi
2417done
2418
2419if test -r "$cache_file"; then
2420  # Some versions of bash will fail to source /dev/null (special files
2421  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2422  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2423    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424$as_echo "$as_me: loading cache $cache_file" >&6;}
2425    case $cache_file in
2426      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427      *)                      . "./$cache_file";;
2428    esac
2429  fi
2430else
2431  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432$as_echo "$as_me: creating cache $cache_file" >&6;}
2433  >$cache_file
2434fi
2435
2436# Check that the precious variables saved in the cache have kept the same
2437# value.
2438ac_cache_corrupted=false
2439for ac_var in $ac_precious_vars; do
2440  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441  eval ac_new_set=\$ac_env_${ac_var}_set
2442  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443  eval ac_new_val=\$ac_env_${ac_var}_value
2444  case $ac_old_set,$ac_new_set in
2445    set,)
2446      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448      ac_cache_corrupted=: ;;
2449    ,set)
2450      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452      ac_cache_corrupted=: ;;
2453    ,);;
2454    *)
2455      if test "x$ac_old_val" != "x$ac_new_val"; then
2456	# differences in whitespace do not lead to failure.
2457	ac_old_val_w=`echo x $ac_old_val`
2458	ac_new_val_w=`echo x $ac_new_val`
2459	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462	  ac_cache_corrupted=:
2463	else
2464	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466	  eval $ac_var=\$ac_old_val
2467	fi
2468	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2469$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2470	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2471$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2472      fi;;
2473  esac
2474  # Pass precious variables to config.status.
2475  if test "$ac_new_set" = set; then
2476    case $ac_new_val in
2477    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478    *) ac_arg=$ac_var=$ac_new_val ;;
2479    esac
2480    case " $ac_configure_args " in
2481      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2482      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483    esac
2484  fi
2485done
2486if $ac_cache_corrupted; then
2487  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2492fi
2493## -------------------- ##
2494## Main body of script. ##
2495## -------------------- ##
2496
2497ac_ext=c
2498ac_cpp='$CPP $CPPFLAGS'
2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504
2505am__api_version='1.15'
2506
2507ac_aux_dir=
2508for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2509  if test -f "$ac_dir/install-sh"; then
2510    ac_aux_dir=$ac_dir
2511    ac_install_sh="$ac_aux_dir/install-sh -c"
2512    break
2513  elif test -f "$ac_dir/install.sh"; then
2514    ac_aux_dir=$ac_dir
2515    ac_install_sh="$ac_aux_dir/install.sh -c"
2516    break
2517  elif test -f "$ac_dir/shtool"; then
2518    ac_aux_dir=$ac_dir
2519    ac_install_sh="$ac_aux_dir/shtool install -c"
2520    break
2521  fi
2522done
2523if test -z "$ac_aux_dir"; then
2524  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2525fi
2526
2527# These three variables are undocumented and unsupported,
2528# and are intended to be withdrawn in a future Autoconf release.
2529# They can cause serious problems if a builder's source tree is in a directory
2530# whose full name contains unusual characters.
2531ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2532ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2533ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2534
2535
2536# Find a good install program.  We prefer a C program (faster),
2537# so one script is as good as another.  But avoid the broken or
2538# incompatible versions:
2539# SysV /etc/install, /usr/sbin/install
2540# SunOS /usr/etc/install
2541# IRIX /sbin/install
2542# AIX /bin/install
2543# AmigaOS /C/install, which installs bootblocks on floppy discs
2544# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2545# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2546# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2547# OS/2's system install, which has a completely different semantic
2548# ./install, which can be erroneously created by make from ./install.sh.
2549# Reject install programs that cannot install multiple files.
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2551$as_echo_n "checking for a BSD-compatible install... " >&6; }
2552if test -z "$INSTALL"; then
2553if ${ac_cv_path_install+:} false; then :
2554  $as_echo_n "(cached) " >&6
2555else
2556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559  IFS=$as_save_IFS
2560  test -z "$as_dir" && as_dir=.
2561    # Account for people who put trailing slashes in PATH elements.
2562case $as_dir/ in #((
2563  ./ | .// | /[cC]/* | \
2564  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2565  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2566  /usr/ucb/* ) ;;
2567  *)
2568    # OSF1 and SCO ODT 3.0 have their own names for install.
2569    # Don't use installbsd from OSF since it installs stuff as root
2570    # by default.
2571    for ac_prog in ginstall scoinst install; do
2572      for ac_exec_ext in '' $ac_executable_extensions; do
2573	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2574	  if test $ac_prog = install &&
2575	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576	    # AIX install.  It has an incompatible calling convention.
2577	    :
2578	  elif test $ac_prog = install &&
2579	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2580	    # program-specific install script used by HP pwplus--don't use.
2581	    :
2582	  else
2583	    rm -rf conftest.one conftest.two conftest.dir
2584	    echo one > conftest.one
2585	    echo two > conftest.two
2586	    mkdir conftest.dir
2587	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2588	      test -s conftest.one && test -s conftest.two &&
2589	      test -s conftest.dir/conftest.one &&
2590	      test -s conftest.dir/conftest.two
2591	    then
2592	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2593	      break 3
2594	    fi
2595	  fi
2596	fi
2597      done
2598    done
2599    ;;
2600esac
2601
2602  done
2603IFS=$as_save_IFS
2604
2605rm -rf conftest.one conftest.two conftest.dir
2606
2607fi
2608  if test "${ac_cv_path_install+set}" = set; then
2609    INSTALL=$ac_cv_path_install
2610  else
2611    # As a last resort, use the slow shell script.  Don't cache a
2612    # value for INSTALL within a source directory, because that will
2613    # break other packages using the cache if that directory is
2614    # removed, or if the value is a relative name.
2615    INSTALL=$ac_install_sh
2616  fi
2617fi
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2619$as_echo "$INSTALL" >&6; }
2620
2621# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2622# It thinks the first close brace ends the variable substitution.
2623test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2624
2625test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2626
2627test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2630$as_echo_n "checking whether build environment is sane... " >&6; }
2631# Reject unsafe characters in $srcdir or the absolute working directory
2632# name.  Accept space and tab only in the latter.
2633am_lf='
2634'
2635case `pwd` in
2636  *[\\\"\#\$\&\'\`$am_lf]*)
2637    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2638esac
2639case $srcdir in
2640  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2641    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2642esac
2643
2644# Do 'set' in a subshell so we don't clobber the current shell's
2645# arguments.  Must try -L first in case configure is actually a
2646# symlink; some systems play weird games with the mod time of symlinks
2647# (eg FreeBSD returns the mod time of the symlink's containing
2648# directory).
2649if (
2650   am_has_slept=no
2651   for am_try in 1 2; do
2652     echo "timestamp, slept: $am_has_slept" > conftest.file
2653     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2654     if test "$*" = "X"; then
2655	# -L didn't work.
2656	set X `ls -t "$srcdir/configure" conftest.file`
2657     fi
2658     if test "$*" != "X $srcdir/configure conftest.file" \
2659	&& test "$*" != "X conftest.file $srcdir/configure"; then
2660
2661	# If neither matched, then we have a broken ls.  This can happen
2662	# if, for instance, CONFIG_SHELL is bash and it inherits a
2663	# broken ls alias from the environment.  This has actually
2664	# happened.  Such a system could not be considered "sane".
2665	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2666  alias in your environment" "$LINENO" 5
2667     fi
2668     if test "$2" = conftest.file || test $am_try -eq 2; then
2669       break
2670     fi
2671     # Just in case.
2672     sleep 1
2673     am_has_slept=yes
2674   done
2675   test "$2" = conftest.file
2676   )
2677then
2678   # Ok.
2679   :
2680else
2681   as_fn_error $? "newly created file is older than distributed files!
2682Check your system clock" "$LINENO" 5
2683fi
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2685$as_echo "yes" >&6; }
2686# If we didn't sleep, we still need to ensure time stamps of config.status and
2687# generated files are strictly newer.
2688am_sleep_pid=
2689if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2690  ( sleep 1 ) &
2691  am_sleep_pid=$!
2692fi
2693
2694rm -f conftest.file
2695
2696test "$program_prefix" != NONE &&
2697  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2698# Use a double $ so make ignores it.
2699test "$program_suffix" != NONE &&
2700  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2701# Double any \ or $.
2702# By default was `s,x,x', remove it if useless.
2703ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2704program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2705
2706# Expand $ac_aux_dir to an absolute path.
2707am_aux_dir=`cd "$ac_aux_dir" && pwd`
2708
2709if test x"${MISSING+set}" != xset; then
2710  case $am_aux_dir in
2711  *\ * | *\	*)
2712    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2713  *)
2714    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2715  esac
2716fi
2717# Use eval to expand $SHELL
2718if eval "$MISSING --is-lightweight"; then
2719  am_missing_run="$MISSING "
2720else
2721  am_missing_run=
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2723$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2724fi
2725
2726if test x"${install_sh+set}" != xset; then
2727  case $am_aux_dir in
2728  *\ * | *\	*)
2729    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2730  *)
2731    install_sh="\${SHELL} $am_aux_dir/install-sh"
2732  esac
2733fi
2734
2735# Installed binaries are usually stripped using 'strip' when the user
2736# run "make install-strip".  However 'strip' might not be the right
2737# tool to use in cross-compilation environments, therefore Automake
2738# will honor the 'STRIP' environment variable to overrule this program.
2739if test "$cross_compiling" != no; then
2740  if test -n "$ac_tool_prefix"; then
2741  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2742set dummy ${ac_tool_prefix}strip; ac_word=$2
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if ${ac_cv_prog_STRIP+:} false; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  if test -n "$STRIP"; then
2749  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756    for ac_exec_ext in '' $ac_executable_extensions; do
2757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760    break 2
2761  fi
2762done
2763  done
2764IFS=$as_save_IFS
2765
2766fi
2767fi
2768STRIP=$ac_cv_prog_STRIP
2769if test -n "$STRIP"; then
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2771$as_echo "$STRIP" >&6; }
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775fi
2776
2777
2778fi
2779if test -z "$ac_cv_prog_STRIP"; then
2780  ac_ct_STRIP=$STRIP
2781  # Extract the first word of "strip", so it can be a program name with args.
2782set dummy strip; ac_word=$2
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784$as_echo_n "checking for $ac_word... " >&6; }
2785if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2786  $as_echo_n "(cached) " >&6
2787else
2788  if test -n "$ac_ct_STRIP"; then
2789  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2790else
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794  IFS=$as_save_IFS
2795  test -z "$as_dir" && as_dir=.
2796    for ac_exec_ext in '' $ac_executable_extensions; do
2797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798    ac_cv_prog_ac_ct_STRIP="strip"
2799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800    break 2
2801  fi
2802done
2803  done
2804IFS=$as_save_IFS
2805
2806fi
2807fi
2808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2809if test -n "$ac_ct_STRIP"; then
2810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2811$as_echo "$ac_ct_STRIP" >&6; }
2812else
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814$as_echo "no" >&6; }
2815fi
2816
2817  if test "x$ac_ct_STRIP" = x; then
2818    STRIP=":"
2819  else
2820    case $cross_compiling:$ac_tool_warned in
2821yes:)
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2824ac_tool_warned=yes ;;
2825esac
2826    STRIP=$ac_ct_STRIP
2827  fi
2828else
2829  STRIP="$ac_cv_prog_STRIP"
2830fi
2831
2832fi
2833INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2836$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2837if test -z "$MKDIR_P"; then
2838  if ${ac_cv_path_mkdir+:} false; then :
2839  $as_echo_n "(cached) " >&6
2840else
2841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_prog in mkdir gmkdir; do
2847	 for ac_exec_ext in '' $ac_executable_extensions; do
2848	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2849	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2850	     'mkdir (GNU coreutils) '* | \
2851	     'mkdir (coreutils) '* | \
2852	     'mkdir (fileutils) '4.1*)
2853	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2854	       break 3;;
2855	   esac
2856	 done
2857       done
2858  done
2859IFS=$as_save_IFS
2860
2861fi
2862
2863  test -d ./--version && rmdir ./--version
2864  if test "${ac_cv_path_mkdir+set}" = set; then
2865    MKDIR_P="$ac_cv_path_mkdir -p"
2866  else
2867    # As a last resort, use the slow shell script.  Don't cache a
2868    # value for MKDIR_P within a source directory, because that will
2869    # break other packages using the cache if that directory is
2870    # removed, or if the value is a relative name.
2871    MKDIR_P="$ac_install_sh -d"
2872  fi
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2875$as_echo "$MKDIR_P" >&6; }
2876
2877for ac_prog in gawk mawk nawk awk
2878do
2879  # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_AWK+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$AWK"; then
2887  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896    ac_cv_prog_AWK="$ac_prog"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906AWK=$ac_cv_prog_AWK
2907if test -n "$AWK"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2909$as_echo "$AWK" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916  test -n "$AWK" && break
2917done
2918
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2920$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2921set x ${MAKE-make}
2922ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2923if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  cat >conftest.make <<\_ACEOF
2927SHELL = /bin/sh
2928all:
2929	@echo '@@@%%%=$(MAKE)=@@@%%%'
2930_ACEOF
2931# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2932case `${MAKE-make} -f conftest.make 2>/dev/null` in
2933  *@@@%%%=?*=@@@%%%*)
2934    eval ac_cv_prog_make_${ac_make}_set=yes;;
2935  *)
2936    eval ac_cv_prog_make_${ac_make}_set=no;;
2937esac
2938rm -f conftest.make
2939fi
2940if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2942$as_echo "yes" >&6; }
2943  SET_MAKE=
2944else
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947  SET_MAKE="MAKE=${MAKE-make}"
2948fi
2949
2950rm -rf .tst 2>/dev/null
2951mkdir .tst 2>/dev/null
2952if test -d .tst; then
2953  am__leading_dot=.
2954else
2955  am__leading_dot=_
2956fi
2957rmdir .tst 2>/dev/null
2958
2959# Check whether --enable-silent-rules was given.
2960if test "${enable_silent_rules+set}" = set; then :
2961  enableval=$enable_silent_rules;
2962fi
2963
2964case $enable_silent_rules in # (((
2965  yes) AM_DEFAULT_VERBOSITY=0;;
2966   no) AM_DEFAULT_VERBOSITY=1;;
2967    *) AM_DEFAULT_VERBOSITY=1;;
2968esac
2969am_make=${MAKE-make}
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2971$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2972if ${am_cv_make_support_nested_variables+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if $as_echo 'TRUE=$(BAR$(V))
2976BAR0=false
2977BAR1=true
2978V=1
2979am__doit:
2980	@$(TRUE)
2981.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2982  am_cv_make_support_nested_variables=yes
2983else
2984  am_cv_make_support_nested_variables=no
2985fi
2986fi
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2988$as_echo "$am_cv_make_support_nested_variables" >&6; }
2989if test $am_cv_make_support_nested_variables = yes; then
2990    AM_V='$(V)'
2991  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2992else
2993  AM_V=$AM_DEFAULT_VERBOSITY
2994  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2995fi
2996AM_BACKSLASH='\'
2997
2998if test "`cd $srcdir && pwd`" != "`pwd`"; then
2999  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3000  # is not polluted with repeated "-I."
3001  am__isrc=' -I$(srcdir)'
3002  # test to see if srcdir already configured
3003  if test -f $srcdir/config.status; then
3004    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3005  fi
3006fi
3007
3008# test whether we have cygpath
3009if test -z "$CYGPATH_W"; then
3010  if (cygpath --version) >/dev/null 2>/dev/null; then
3011    CYGPATH_W='cygpath -w'
3012  else
3013    CYGPATH_W=echo
3014  fi
3015fi
3016
3017
3018# Define the identity of the package.
3019 PACKAGE='xapian-bindings'
3020 VERSION='1.4.18'
3021
3022
3023cat >>confdefs.h <<_ACEOF
3024#define PACKAGE "$PACKAGE"
3025_ACEOF
3026
3027
3028cat >>confdefs.h <<_ACEOF
3029#define VERSION "$VERSION"
3030_ACEOF
3031
3032# Some tools Automake needs.
3033
3034ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3035
3036
3037AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3038
3039
3040AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3041
3042
3043AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3044
3045
3046MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3047
3048# For better backward compatibility.  To be removed once Automake 1.9.x
3049# dies out for good.  For more background, see:
3050# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3051# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3052mkdir_p='$(MKDIR_P)'
3053
3054# We need awk for the "check" target (and possibly the TAP driver).  The
3055# system "awk" is bad on some platforms.
3056# Always define AMTAR for backward compatibility.  Yes, it's still used
3057# in the wild :-(  We should find a proper way to deprecate it ...
3058AMTAR='$${TAR-tar}'
3059
3060
3061# We'll loop over all known methods to create a tar archive until one works.
3062_am_tools='gnutar plaintar pax cpio none'
3063
3064# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3065      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3066      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3067      # and bug#13588).
3068      am_max_uid=2097151 # 2^21 - 1
3069      am_max_gid=$am_max_uid
3070      # The $UID and $GID variables are not portable, so we need to resort
3071      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3072      # below are definitely unexpected, so allow the users to see them
3073      # (that is, avoid stderr redirection).
3074      am_uid=`id -u || echo unknown`
3075      am_gid=`id -g || echo unknown`
3076      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3077$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3078      if test $am_uid -le $am_max_uid; then
3079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080$as_echo "yes" >&6; }
3081      else
3082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084         _am_tools=none
3085      fi
3086      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3087$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3088      if test $am_gid -le $am_max_gid; then
3089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090$as_echo "yes" >&6; }
3091      else
3092        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093$as_echo "no" >&6; }
3094        _am_tools=none
3095      fi
3096
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3098$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3099
3100  # Go ahead even if we have the value already cached.  We do so because we
3101  # need to set the values for the 'am__tar' and 'am__untar' variables.
3102  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3103
3104  for _am_tool in $_am_tools; do
3105    case $_am_tool in
3106    gnutar)
3107      for _am_tar in tar gnutar gtar; do
3108        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3109   ($_am_tar --version) >&5 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && break
3113      done
3114      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3115      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3116      am__untar="$_am_tar -xf -"
3117      ;;
3118    plaintar)
3119      # Must skip GNU tar: if it does not support --format= it doesn't create
3120      # ustar tarball either.
3121      (tar --version) >/dev/null 2>&1 && continue
3122      am__tar='tar chf - "$$tardir"'
3123      am__tar_='tar chf - "$tardir"'
3124      am__untar='tar xf -'
3125      ;;
3126    pax)
3127      am__tar='pax -L -x ustar -w "$$tardir"'
3128      am__tar_='pax -L -x ustar -w "$tardir"'
3129      am__untar='pax -r'
3130      ;;
3131    cpio)
3132      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3133      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3134      am__untar='cpio -i -H ustar -d'
3135      ;;
3136    none)
3137      am__tar=false
3138      am__tar_=false
3139      am__untar=false
3140      ;;
3141    esac
3142
3143    # If the value was cached, stop now.  We just wanted to have am__tar
3144    # and am__untar set.
3145    test -n "${am_cv_prog_tar_ustar}" && break
3146
3147    # tar/untar a dummy directory, and stop if the command works.
3148    rm -rf conftest.dir
3149    mkdir conftest.dir
3150    echo GrepMe > conftest.dir/file
3151    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3152   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }
3156    rm -rf conftest.dir
3157    if test -s conftest.tar; then
3158      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3159   ($am__untar <conftest.tar) >&5 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }
3163      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3164   (cat conftest.dir/file) >&5 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }
3168      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3169    fi
3170  done
3171  rm -rf conftest.dir
3172
3173  if ${am_cv_prog_tar_ustar+:} false; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  am_cv_prog_tar_ustar=$_am_tool
3177fi
3178
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3180$as_echo "$am_cv_prog_tar_ustar" >&6; }
3181
3182
3183
3184
3185
3186
3187# POSIX will say in a future version that running "rm -f" with no argument
3188# is OK; and we want to be able to make that assumption in our Makefile
3189# recipes.  So use an aggressive probe to check that the usage we want is
3190# actually supported "in the wild" to an acceptable degree.
3191# See automake bug#10828.
3192# To make any issue more visible, cause the running configure to be aborted
3193# by default if the 'rm' program in use doesn't match our expectations; the
3194# user can still override this though.
3195if rm -f && rm -fr && rm -rf; then : OK; else
3196  cat >&2 <<'END'
3197Oops!
3198
3199Your 'rm' program seems unable to run without file operands specified
3200on the command line, even when the '-f' option is present.  This is contrary
3201to the behaviour of most rm programs out there, and not conforming with
3202the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3203
3204Please tell bug-automake@gnu.org about your system, including the value
3205of your $PATH and any error possibly output before this message.  This
3206can help us improve future automake versions.
3207
3208END
3209  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3210    echo 'Configuration will proceed anyway, since you have set the' >&2
3211    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3212    echo >&2
3213  else
3214    cat >&2 <<'END'
3215Aborting the configuration process, to ensure you take notice of the issue.
3216
3217You can download and install GNU coreutils to get an 'rm' implementation
3218that behaves properly: <http://www.gnu.org/software/coreutils/>.
3219
3220If you want to complete the configuration process using your problematic
3221'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3222to "yes", and re-run configure.
3223
3224END
3225    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3226  fi
3227fi
3228
3229
3230
3231ac_config_headers="$ac_config_headers config.h"
3232
3233
3234
3235
3236# Make sure we can run config.sub.
3237$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3238  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3239
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3241$as_echo_n "checking build system type... " >&6; }
3242if ${ac_cv_build+:} false; then :
3243  $as_echo_n "(cached) " >&6
3244else
3245  ac_build_alias=$build_alias
3246test "x$ac_build_alias" = x &&
3247  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3248test "x$ac_build_alias" = x &&
3249  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3250ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3251  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3252
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3255$as_echo "$ac_cv_build" >&6; }
3256case $ac_cv_build in
3257*-*-*) ;;
3258*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3259esac
3260build=$ac_cv_build
3261ac_save_IFS=$IFS; IFS='-'
3262set x $ac_cv_build
3263shift
3264build_cpu=$1
3265build_vendor=$2
3266shift; shift
3267# Remember, the first character of IFS is used to create $*,
3268# except with old shells:
3269build_os=$*
3270IFS=$ac_save_IFS
3271case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3272
3273
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3275$as_echo_n "checking host system type... " >&6; }
3276if ${ac_cv_host+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test "x$host_alias" = x; then
3280  ac_cv_host=$ac_cv_build
3281else
3282  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3283    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3284fi
3285
3286fi
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3288$as_echo "$ac_cv_host" >&6; }
3289case $ac_cv_host in
3290*-*-*) ;;
3291*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3292esac
3293host=$ac_cv_host
3294ac_save_IFS=$IFS; IFS='-'
3295set x $ac_cv_host
3296shift
3297host_cpu=$1
3298host_vendor=$2
3299shift; shift
3300# Remember, the first character of IFS is used to create $*,
3301# except with old shells:
3302host_os=$*
3303IFS=$ac_save_IFS
3304case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3305
3306
3307OVERRIDE_MACOSX_DEPLOYMENT_TARGET=
3308case $host in
3309*86*-darwin8*|*-darwin[912]*)
3310      ;;
3311*-darwin*)
3312  case $MACOSX_DEPLOYMENT_TARGET in
3313  "")
3314    OVERRIDE_MACOSX_DEPLOYMENT_TARGET=10.3 ;;
3315  10.[012])
3316    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding MACOSX_DEPLOYMENT_TARGET from $MACOSX_DEPLOYMENT_TARGET to 10.3" >&5
3317$as_echo "$as_me: WARNING: Overriding MACOSX_DEPLOYMENT_TARGET from $MACOSX_DEPLOYMENT_TARGET to 10.3" >&2;}
3318    OVERRIDE_MACOSX_DEPLOYMENT_TARGET=10.3 ;;
3319  esac
3320  ;;
3321esac
3322 if test -n "$OVERRIDE_MACOSX_DEPLOYMENT_TARGET"; then
3323  OVERRIDE_MACOSX_DEPLOYMENT_TARGET_TRUE=
3324  OVERRIDE_MACOSX_DEPLOYMENT_TARGET_FALSE='#'
3325else
3326  OVERRIDE_MACOSX_DEPLOYMENT_TARGET_TRUE='#'
3327  OVERRIDE_MACOSX_DEPLOYMENT_TARGET_FALSE=
3328fi
3329
3330
3331if test -n "$OVERRIDE_MACOSX_DEPLOYMENT_TARGET" ; then
3332  MACOSX_DEPLOYMENT_TARGET=$OVERRIDE_MACOSX_DEPLOYMENT_TARGET
3333fi
3334
3335
3336case `pwd` in
3337  *\ * | *\	*)
3338    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3339$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3340esac
3341
3342
3343
3344macro_version='2.4.6'
3345macro_revision='2.4.6'
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359ltmain=$ac_aux_dir/ltmain.sh
3360
3361# Backslashify metacharacters that are still active within
3362# double-quoted strings.
3363sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3364
3365# Same as above, but do not quote variable references.
3366double_quote_subst='s/\(["`\\]\)/\\\1/g'
3367
3368# Sed substitution to delay expansion of an escaped shell variable in a
3369# double_quote_subst'ed string.
3370delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3371
3372# Sed substitution to delay expansion of an escaped single quote.
3373delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3374
3375# Sed substitution to avoid accidental globbing in evaled expressions
3376no_glob_subst='s/\*/\\\*/g'
3377
3378ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3379ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3380ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3381
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3383$as_echo_n "checking how to print strings... " >&6; }
3384# Test print first, because it will be a builtin if present.
3385if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3386   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3387  ECHO='print -r --'
3388elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3389  ECHO='printf %s\n'
3390else
3391  # Use this function as a fallback that always works.
3392  func_fallback_echo ()
3393  {
3394    eval 'cat <<_LTECHO_EOF
3395$1
3396_LTECHO_EOF'
3397  }
3398  ECHO='func_fallback_echo'
3399fi
3400
3401# func_echo_all arg...
3402# Invoke $ECHO with all args, space-separated.
3403func_echo_all ()
3404{
3405    $ECHO ""
3406}
3407
3408case $ECHO in
3409  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3410$as_echo "printf" >&6; } ;;
3411  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3412$as_echo "print -r" >&6; } ;;
3413  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3414$as_echo "cat" >&6; } ;;
3415esac
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430DEPDIR="${am__leading_dot}deps"
3431
3432ac_config_commands="$ac_config_commands depfiles"
3433
3434
3435am_make=${MAKE-make}
3436cat > confinc << 'END'
3437am__doit:
3438	@echo this is the am__doit target
3439.PHONY: am__doit
3440END
3441# If we don't find an include directive, just comment out the code.
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3443$as_echo_n "checking for style of include used by $am_make... " >&6; }
3444am__include="#"
3445am__quote=
3446_am_result=none
3447# First try GNU make style include.
3448echo "include confinc" > confmf
3449# Ignore all kinds of additional output from 'make'.
3450case `$am_make -s -f confmf 2> /dev/null` in #(
3451*the\ am__doit\ target*)
3452  am__include=include
3453  am__quote=
3454  _am_result=GNU
3455  ;;
3456esac
3457# Now try BSD make style include.
3458if test "$am__include" = "#"; then
3459   echo '.include "confinc"' > confmf
3460   case `$am_make -s -f confmf 2> /dev/null` in #(
3461   *the\ am__doit\ target*)
3462     am__include=.include
3463     am__quote="\""
3464     _am_result=BSD
3465     ;;
3466   esac
3467fi
3468
3469
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3471$as_echo "$_am_result" >&6; }
3472rm -f confinc confmf
3473
3474# Check whether --enable-dependency-tracking was given.
3475if test "${enable_dependency_tracking+set}" = set; then :
3476  enableval=$enable_dependency_tracking;
3477fi
3478
3479if test "x$enable_dependency_tracking" != xno; then
3480  am_depcomp="$ac_aux_dir/depcomp"
3481  AMDEPBACKSLASH='\'
3482  am__nodep='_no'
3483fi
3484 if test "x$enable_dependency_tracking" != xno; then
3485  AMDEP_TRUE=
3486  AMDEP_FALSE='#'
3487else
3488  AMDEP_TRUE='#'
3489  AMDEP_FALSE=
3490fi
3491
3492
3493ac_ext=c
3494ac_cpp='$CPP $CPPFLAGS'
3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498if test -n "$ac_tool_prefix"; then
3499  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3500set dummy ${ac_tool_prefix}gcc; ac_word=$2
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502$as_echo_n "checking for $ac_word... " >&6; }
3503if ${ac_cv_prog_CC+:} false; then :
3504  $as_echo_n "(cached) " >&6
3505else
3506  if test -n "$CC"; then
3507  ac_cv_prog_CC="$CC" # Let the user override the test.
3508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512  IFS=$as_save_IFS
3513  test -z "$as_dir" && as_dir=.
3514    for ac_exec_ext in '' $ac_executable_extensions; do
3515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518    break 2
3519  fi
3520done
3521  done
3522IFS=$as_save_IFS
3523
3524fi
3525fi
3526CC=$ac_cv_prog_CC
3527if test -n "$CC"; then
3528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529$as_echo "$CC" >&6; }
3530else
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532$as_echo "no" >&6; }
3533fi
3534
3535
3536fi
3537if test -z "$ac_cv_prog_CC"; then
3538  ac_ct_CC=$CC
3539  # Extract the first word of "gcc", so it can be a program name with args.
3540set dummy gcc; ac_word=$2
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542$as_echo_n "checking for $ac_word... " >&6; }
3543if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544  $as_echo_n "(cached) " >&6
3545else
3546  if test -n "$ac_ct_CC"; then
3547  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552  IFS=$as_save_IFS
3553  test -z "$as_dir" && as_dir=.
3554    for ac_exec_ext in '' $ac_executable_extensions; do
3555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556    ac_cv_prog_ac_ct_CC="gcc"
3557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558    break 2
3559  fi
3560done
3561  done
3562IFS=$as_save_IFS
3563
3564fi
3565fi
3566ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567if test -n "$ac_ct_CC"; then
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569$as_echo "$ac_ct_CC" >&6; }
3570else
3571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572$as_echo "no" >&6; }
3573fi
3574
3575  if test "x$ac_ct_CC" = x; then
3576    CC=""
3577  else
3578    case $cross_compiling:$ac_tool_warned in
3579yes:)
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582ac_tool_warned=yes ;;
3583esac
3584    CC=$ac_ct_CC
3585  fi
3586else
3587  CC="$ac_cv_prog_CC"
3588fi
3589
3590if test -z "$CC"; then
3591          if test -n "$ac_tool_prefix"; then
3592    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3593set dummy ${ac_tool_prefix}cc; ac_word=$2
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595$as_echo_n "checking for $ac_word... " >&6; }
3596if ${ac_cv_prog_CC+:} false; then :
3597  $as_echo_n "(cached) " >&6
3598else
3599  if test -n "$CC"; then
3600  ac_cv_prog_CC="$CC" # Let the user override the test.
3601else
3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605  IFS=$as_save_IFS
3606  test -z "$as_dir" && as_dir=.
3607    for ac_exec_ext in '' $ac_executable_extensions; do
3608  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609    ac_cv_prog_CC="${ac_tool_prefix}cc"
3610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611    break 2
3612  fi
3613done
3614  done
3615IFS=$as_save_IFS
3616
3617fi
3618fi
3619CC=$ac_cv_prog_CC
3620if test -n "$CC"; then
3621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622$as_echo "$CC" >&6; }
3623else
3624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625$as_echo "no" >&6; }
3626fi
3627
3628
3629  fi
3630fi
3631if test -z "$CC"; then
3632  # Extract the first word of "cc", so it can be a program name with args.
3633set dummy cc; ac_word=$2
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }
3636if ${ac_cv_prog_CC+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  if test -n "$CC"; then
3640  ac_cv_prog_CC="$CC" # Let the user override the test.
3641else
3642  ac_prog_rejected=no
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648    for ac_exec_ext in '' $ac_executable_extensions; do
3649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651       ac_prog_rejected=yes
3652       continue
3653     fi
3654    ac_cv_prog_CC="cc"
3655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656    break 2
3657  fi
3658done
3659  done
3660IFS=$as_save_IFS
3661
3662if test $ac_prog_rejected = yes; then
3663  # We found a bogon in the path, so make sure we never use it.
3664  set dummy $ac_cv_prog_CC
3665  shift
3666  if test $# != 0; then
3667    # We chose a different compiler from the bogus one.
3668    # However, it has the same basename, so the bogon will be chosen
3669    # first if we set CC to just the basename; use the full file name.
3670    shift
3671    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672  fi
3673fi
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679$as_echo "$CC" >&6; }
3680else
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682$as_echo "no" >&6; }
3683fi
3684
3685
3686fi
3687if test -z "$CC"; then
3688  if test -n "$ac_tool_prefix"; then
3689  for ac_prog in cl.exe
3690  do
3691    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694$as_echo_n "checking for $ac_word... " >&6; }
3695if ${ac_cv_prog_CC+:} false; then :
3696  $as_echo_n "(cached) " >&6
3697else
3698  if test -n "$CC"; then
3699  ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704  IFS=$as_save_IFS
3705  test -z "$as_dir" && as_dir=.
3706    for ac_exec_ext in '' $ac_executable_extensions; do
3707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710    break 2
3711  fi
3712done
3713  done
3714IFS=$as_save_IFS
3715
3716fi
3717fi
3718CC=$ac_cv_prog_CC
3719if test -n "$CC"; then
3720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721$as_echo "$CC" >&6; }
3722else
3723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724$as_echo "no" >&6; }
3725fi
3726
3727
3728    test -n "$CC" && break
3729  done
3730fi
3731if test -z "$CC"; then
3732  ac_ct_CC=$CC
3733  for ac_prog in cl.exe
3734do
3735  # Extract the first word of "$ac_prog", so it can be a program name with args.
3736set dummy $ac_prog; ac_word=$2
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738$as_echo_n "checking for $ac_word... " >&6; }
3739if ${ac_cv_prog_ac_ct_CC+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  if test -n "$ac_ct_CC"; then
3743  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748  IFS=$as_save_IFS
3749  test -z "$as_dir" && as_dir=.
3750    for ac_exec_ext in '' $ac_executable_extensions; do
3751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752    ac_cv_prog_ac_ct_CC="$ac_prog"
3753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754    break 2
3755  fi
3756done
3757  done
3758IFS=$as_save_IFS
3759
3760fi
3761fi
3762ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763if test -n "$ac_ct_CC"; then
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765$as_echo "$ac_ct_CC" >&6; }
3766else
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768$as_echo "no" >&6; }
3769fi
3770
3771
3772  test -n "$ac_ct_CC" && break
3773done
3774
3775  if test "x$ac_ct_CC" = x; then
3776    CC=""
3777  else
3778    case $cross_compiling:$ac_tool_warned in
3779yes:)
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782ac_tool_warned=yes ;;
3783esac
3784    CC=$ac_ct_CC
3785  fi
3786fi
3787
3788fi
3789
3790
3791test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793as_fn_error $? "no acceptable C compiler found in \$PATH
3794See \`config.log' for more details" "$LINENO" 5; }
3795
3796# Provide some information about the compiler.
3797$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3798set X $ac_compile
3799ac_compiler=$2
3800for ac_option in --version -v -V -qversion; do
3801  { { ac_try="$ac_compiler $ac_option >&5"
3802case "(($ac_try" in
3803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804  *) ac_try_echo=$ac_try;;
3805esac
3806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807$as_echo "$ac_try_echo"; } >&5
3808  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809  ac_status=$?
3810  if test -s conftest.err; then
3811    sed '10a\
3812... rest of stderr output deleted ...
3813         10q' conftest.err >conftest.er1
3814    cat conftest.er1 >&5
3815  fi
3816  rm -f conftest.er1 conftest.err
3817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818  test $ac_status = 0; }
3819done
3820
3821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823
3824int
3825main ()
3826{
3827
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832ac_clean_files_save=$ac_clean_files
3833ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3834# Try to create an executable without -o first, disregard a.out.
3835# It will help us diagnose broken compilers, and finding out an intuition
3836# of exeext.
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3838$as_echo_n "checking whether the C compiler works... " >&6; }
3839ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3840
3841# The possible output files:
3842ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843
3844ac_rmfiles=
3845for ac_file in $ac_files
3846do
3847  case $ac_file in
3848    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850  esac
3851done
3852rm -f $ac_rmfiles
3853
3854if { { ac_try="$ac_link_default"
3855case "(($ac_try" in
3856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857  *) ac_try_echo=$ac_try;;
3858esac
3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860$as_echo "$ac_try_echo"; } >&5
3861  (eval "$ac_link_default") 2>&5
3862  ac_status=$?
3863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864  test $ac_status = 0; }; then :
3865  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3866# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3867# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3868# so that the user can short-circuit this test for compilers unknown to
3869# Autoconf.
3870for ac_file in $ac_files ''
3871do
3872  test -f "$ac_file" || continue
3873  case $ac_file in
3874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3875	;;
3876    [ab].out )
3877	# We found the default executable, but exeext='' is most
3878	# certainly right.
3879	break;;
3880    *.* )
3881	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3882	then :; else
3883	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884	fi
3885	# We set ac_cv_exeext here because the later test for it is not
3886	# safe: cross compilers may not add the suffix if given an `-o'
3887	# argument, so we may need to know it at that point already.
3888	# Even if this section looks crufty: it has the advantage of
3889	# actually working.
3890	break;;
3891    * )
3892	break;;
3893  esac
3894done
3895test "$ac_cv_exeext" = no && ac_cv_exeext=
3896
3897else
3898  ac_file=''
3899fi
3900if test -z "$ac_file"; then :
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903$as_echo "$as_me: failed program was:" >&5
3904sed 's/^/| /' conftest.$ac_ext >&5
3905
3906{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908as_fn_error 77 "C compiler cannot create executables
3909See \`config.log' for more details" "$LINENO" 5; }
3910else
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912$as_echo "yes" >&6; }
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3915$as_echo_n "checking for C compiler default output file name... " >&6; }
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917$as_echo "$ac_file" >&6; }
3918ac_exeext=$ac_cv_exeext
3919
3920rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3921ac_clean_files=$ac_clean_files_save
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3923$as_echo_n "checking for suffix of executables... " >&6; }
3924if { { ac_try="$ac_link"
3925case "(($ac_try" in
3926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927  *) ac_try_echo=$ac_try;;
3928esac
3929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930$as_echo "$ac_try_echo"; } >&5
3931  (eval "$ac_link") 2>&5
3932  ac_status=$?
3933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934  test $ac_status = 0; }; then :
3935  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3936# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3937# work properly (i.e., refer to `conftest.exe'), while it won't with
3938# `rm'.
3939for ac_file in conftest.exe conftest conftest.*; do
3940  test -f "$ac_file" || continue
3941  case $ac_file in
3942    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3943    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3944	  break;;
3945    * ) break;;
3946  esac
3947done
3948else
3949  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3952See \`config.log' for more details" "$LINENO" 5; }
3953fi
3954rm -f conftest conftest$ac_cv_exeext
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3956$as_echo "$ac_cv_exeext" >&6; }
3957
3958rm -f conftest.$ac_ext
3959EXEEXT=$ac_cv_exeext
3960ac_exeext=$EXEEXT
3961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963#include <stdio.h>
3964int
3965main ()
3966{
3967FILE *f = fopen ("conftest.out", "w");
3968 return ferror (f) || fclose (f) != 0;
3969
3970  ;
3971  return 0;
3972}
3973_ACEOF
3974ac_clean_files="$ac_clean_files conftest.out"
3975# Check that the compiler produces executables we can run.  If not, either
3976# the compiler is broken, or we cross compile.
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3978$as_echo_n "checking whether we are cross compiling... " >&6; }
3979if test "$cross_compiling" != yes; then
3980  { { ac_try="$ac_link"
3981case "(($ac_try" in
3982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983  *) ac_try_echo=$ac_try;;
3984esac
3985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986$as_echo "$ac_try_echo"; } >&5
3987  (eval "$ac_link") 2>&5
3988  ac_status=$?
3989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990  test $ac_status = 0; }
3991  if { ac_try='./conftest$ac_cv_exeext'
3992  { { case "(($ac_try" in
3993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994  *) ac_try_echo=$ac_try;;
3995esac
3996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997$as_echo "$ac_try_echo"; } >&5
3998  (eval "$ac_try") 2>&5
3999  ac_status=$?
4000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001  test $ac_status = 0; }; }; then
4002    cross_compiling=no
4003  else
4004    if test "$cross_compiling" = maybe; then
4005	cross_compiling=yes
4006    else
4007	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009as_fn_error $? "cannot run C compiled programs.
4010If you meant to cross compile, use \`--host'.
4011See \`config.log' for more details" "$LINENO" 5; }
4012    fi
4013  fi
4014fi
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4016$as_echo "$cross_compiling" >&6; }
4017
4018rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4019ac_clean_files=$ac_clean_files_save
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4021$as_echo_n "checking for suffix of object files... " >&6; }
4022if ${ac_cv_objext+:} false; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h.  */
4027
4028int
4029main ()
4030{
4031
4032  ;
4033  return 0;
4034}
4035_ACEOF
4036rm -f conftest.o conftest.obj
4037if { { ac_try="$ac_compile"
4038case "(($ac_try" in
4039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040  *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044  (eval "$ac_compile") 2>&5
4045  ac_status=$?
4046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047  test $ac_status = 0; }; then :
4048  for ac_file in conftest.o conftest.obj conftest.*; do
4049  test -f "$ac_file" || continue;
4050  case $ac_file in
4051    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4052    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4053       break;;
4054  esac
4055done
4056else
4057  $as_echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062as_fn_error $? "cannot compute suffix of object files: cannot compile
4063See \`config.log' for more details" "$LINENO" 5; }
4064fi
4065rm -f conftest.$ac_cv_objext conftest.$ac_ext
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4068$as_echo "$ac_cv_objext" >&6; }
4069OBJEXT=$ac_cv_objext
4070ac_objext=$OBJEXT
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4072$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4073if ${ac_cv_c_compiler_gnu+:} false; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h.  */
4078
4079int
4080main ()
4081{
4082#ifndef __GNUC__
4083       choke me
4084#endif
4085
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090if ac_fn_c_try_compile "$LINENO"; then :
4091  ac_compiler_gnu=yes
4092else
4093  ac_compiler_gnu=no
4094fi
4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4101if test $ac_compiler_gnu = yes; then
4102  GCC=yes
4103else
4104  GCC=
4105fi
4106ac_test_CFLAGS=${CFLAGS+set}
4107ac_save_CFLAGS=$CFLAGS
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4109$as_echo_n "checking whether $CC accepts -g... " >&6; }
4110if ${ac_cv_prog_cc_g+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  ac_save_c_werror_flag=$ac_c_werror_flag
4114   ac_c_werror_flag=yes
4115   ac_cv_prog_cc_g=no
4116   CFLAGS="-g"
4117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120int
4121main ()
4122{
4123
4124  ;
4125  return 0;
4126}
4127_ACEOF
4128if ac_fn_c_try_compile "$LINENO"; then :
4129  ac_cv_prog_cc_g=yes
4130else
4131  CFLAGS=""
4132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h.  */
4134
4135int
4136main ()
4137{
4138
4139  ;
4140  return 0;
4141}
4142_ACEOF
4143if ac_fn_c_try_compile "$LINENO"; then :
4144
4145else
4146  ac_c_werror_flag=$ac_save_c_werror_flag
4147	 CFLAGS="-g"
4148	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h.  */
4150
4151int
4152main ()
4153{
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_compile "$LINENO"; then :
4160  ac_cv_prog_cc_g=yes
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165fi
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167   ac_c_werror_flag=$ac_save_c_werror_flag
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170$as_echo "$ac_cv_prog_cc_g" >&6; }
4171if test "$ac_test_CFLAGS" = set; then
4172  CFLAGS=$ac_save_CFLAGS
4173elif test $ac_cv_prog_cc_g = yes; then
4174  if test "$GCC" = yes; then
4175    CFLAGS="-g -O2"
4176  else
4177    CFLAGS="-g"
4178  fi
4179else
4180  if test "$GCC" = yes; then
4181    CFLAGS="-O2"
4182  else
4183    CFLAGS=
4184  fi
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188if ${ac_cv_prog_cc_c89+:} false; then :
4189  $as_echo_n "(cached) " >&6
4190else
4191  ac_cv_prog_cc_c89=no
4192ac_save_CC=$CC
4193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195#include <stdarg.h>
4196#include <stdio.h>
4197struct stat;
4198/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4199struct buf { int x; };
4200FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201static char *e (p, i)
4202     char **p;
4203     int i;
4204{
4205  return p[i];
4206}
4207static char *f (char * (*g) (char **, int), char **p, ...)
4208{
4209  char *s;
4210  va_list v;
4211  va_start (v,p);
4212  s = g (p, va_arg (v,int));
4213  va_end (v);
4214  return s;
4215}
4216
4217/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4218   function prototypes and stuff, but not '\xHH' hex character constants.
4219   These don't provoke an error unfortunately, instead are silently treated
4220   as 'x'.  The following induces an error, until -std is added to get
4221   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4222   array size at least.  It's necessary to write '\x00'==0 to get something
4223   that's true only with -std.  */
4224int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4225
4226/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227   inside strings and character constants.  */
4228#define FOO(x) 'x'
4229int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4230
4231int test (int i, double x);
4232struct s1 {int (*f) (int a);};
4233struct s2 {int (*f) (double a);};
4234int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235int argc;
4236char **argv;
4237int
4238main ()
4239{
4240return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4241  ;
4242  return 0;
4243}
4244_ACEOF
4245for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4246	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4247do
4248  CC="$ac_save_CC $ac_arg"
4249  if ac_fn_c_try_compile "$LINENO"; then :
4250  ac_cv_prog_cc_c89=$ac_arg
4251fi
4252rm -f core conftest.err conftest.$ac_objext
4253  test "x$ac_cv_prog_cc_c89" != "xno" && break
4254done
4255rm -f conftest.$ac_ext
4256CC=$ac_save_CC
4257
4258fi
4259# AC_CACHE_VAL
4260case "x$ac_cv_prog_cc_c89" in
4261  x)
4262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263$as_echo "none needed" >&6; } ;;
4264  xno)
4265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266$as_echo "unsupported" >&6; } ;;
4267  *)
4268    CC="$CC $ac_cv_prog_cc_c89"
4269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4271esac
4272if test "x$ac_cv_prog_cc_c89" != xno; then :
4273
4274fi
4275
4276ac_ext=c
4277ac_cpp='$CPP $CPPFLAGS'
4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282ac_ext=c
4283ac_cpp='$CPP $CPPFLAGS'
4284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4288$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4289if ${am_cv_prog_cc_c_o+:} false; then :
4290  $as_echo_n "(cached) " >&6
4291else
4292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294
4295int
4296main ()
4297{
4298
4299  ;
4300  return 0;
4301}
4302_ACEOF
4303  # Make sure it works both with $CC and with simple cc.
4304  # Following AC_PROG_CC_C_O, we do the test twice because some
4305  # compilers refuse to overwrite an existing .o file with -o,
4306  # though they will create one.
4307  am_cv_prog_cc_c_o=yes
4308  for am_i in 1 2; do
4309    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4310   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } \
4314         && test -f conftest2.$ac_objext; then
4315      : OK
4316    else
4317      am_cv_prog_cc_c_o=no
4318      break
4319    fi
4320  done
4321  rm -f core conftest*
4322  unset am_i
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4325$as_echo "$am_cv_prog_cc_c_o" >&6; }
4326if test "$am_cv_prog_cc_c_o" != yes; then
4327   # Losing compiler, so override with the script.
4328   # FIXME: It is wrong to rewrite CC.
4329   # But if we don't then we get into trouble of one sort or another.
4330   # A longer-term fix would be to have automake use am__CC in this case,
4331   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4332   CC="$am_aux_dir/compile $CC"
4333fi
4334ac_ext=c
4335ac_cpp='$CPP $CPPFLAGS'
4336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340
4341depcc="$CC"   am_compiler_list=
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344$as_echo_n "checking dependency style of $depcc... " >&6; }
4345if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349  # We make a subdir and do the tests there.  Otherwise we can end up
4350  # making bogus files that we don't know about and never remove.  For
4351  # instance it was reported that on HP-UX the gcc test will end up
4352  # making a dummy file named 'D' -- because '-MD' means "put the output
4353  # in D".
4354  rm -rf conftest.dir
4355  mkdir conftest.dir
4356  # Copy depcomp to subdir because otherwise we won't find it if we're
4357  # using a relative directory.
4358  cp "$am_depcomp" conftest.dir
4359  cd conftest.dir
4360  # We will build objects and dependencies in a subdirectory because
4361  # it helps to detect inapplicable dependency modes.  For instance
4362  # both Tru64's cc and ICC support -MD to output dependencies as a
4363  # side effect of compilation, but ICC will put the dependencies in
4364  # the current directory while Tru64 will put them in the object
4365  # directory.
4366  mkdir sub
4367
4368  am_cv_CC_dependencies_compiler_type=none
4369  if test "$am_compiler_list" = ""; then
4370     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371  fi
4372  am__universal=false
4373  case " $depcc " in #(
4374     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4375     esac
4376
4377  for depmode in $am_compiler_list; do
4378    # Setup a source with many dependencies, because some compilers
4379    # like to wrap large dependency lists on column 80 (with \), and
4380    # we should not choose a depcomp mode which is confused by this.
4381    #
4382    # We need to recreate these files for each test, as the compiler may
4383    # overwrite some of them when testing with obscure command lines.
4384    # This happens at least with the AIX C compiler.
4385    : > sub/conftest.c
4386    for i in 1 2 3 4 5 6; do
4387      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4389      # Solaris 10 /bin/sh.
4390      echo '/* dummy */' > sub/conftst$i.h
4391    done
4392    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4393
4394    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4395    # mode.  It turns out that the SunPro C++ compiler does not properly
4396    # handle '-M -o', and we need to detect this.  Also, some Intel
4397    # versions had trouble with output in subdirs.
4398    am__obj=sub/conftest.${OBJEXT-o}
4399    am__minus_obj="-o $am__obj"
4400    case $depmode in
4401    gcc)
4402      # This depmode causes a compiler race in universal mode.
4403      test "$am__universal" = false || continue
4404      ;;
4405    nosideeffect)
4406      # After this tag, mechanisms are not by side-effect, so they'll
4407      # only be used when explicitly requested.
4408      if test "x$enable_dependency_tracking" = xyes; then
4409	continue
4410      else
4411	break
4412      fi
4413      ;;
4414    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4415      # This compiler won't grok '-c -o', but also, the minuso test has
4416      # not run yet.  These depmodes are late enough in the game, and
4417      # so weak that their functioning should not be impacted.
4418      am__obj=conftest.${OBJEXT-o}
4419      am__minus_obj=
4420      ;;
4421    none) break ;;
4422    esac
4423    if depmode=$depmode \
4424       source=sub/conftest.c object=$am__obj \
4425       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4426       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4427         >/dev/null 2>conftest.err &&
4428       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4429       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4430       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4431       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4432      # icc doesn't choke on unknown options, it will just issue warnings
4433      # or remarks (even with -Werror).  So we grep stderr for any message
4434      # that says an option was ignored or not supported.
4435      # When given -MP, icc 7.0 and 7.1 complain thusly:
4436      #   icc: Command line warning: ignoring option '-M'; no argument required
4437      # The diagnosis changed in icc 8.0:
4438      #   icc: Command line remark: option '-MP' not supported
4439      if (grep 'ignoring option' conftest.err ||
4440          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4441        am_cv_CC_dependencies_compiler_type=$depmode
4442        break
4443      fi
4444    fi
4445  done
4446
4447  cd ..
4448  rm -rf conftest.dir
4449else
4450  am_cv_CC_dependencies_compiler_type=none
4451fi
4452
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4455$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4456CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457
4458 if
4459  test "x$enable_dependency_tracking" != xno \
4460  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4461  am__fastdepCC_TRUE=
4462  am__fastdepCC_FALSE='#'
4463else
4464  am__fastdepCC_TRUE='#'
4465  am__fastdepCC_FALSE=
4466fi
4467
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4470$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4471if ${ac_cv_path_SED+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4475     for ac_i in 1 2 3 4 5 6 7; do
4476       ac_script="$ac_script$as_nl$ac_script"
4477     done
4478     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4479     { ac_script=; unset ac_script;}
4480     if test -z "$SED"; then
4481  ac_path_SED_found=false
4482  # Loop through the user's path and test for each of PROGNAME-LIST
4483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486  IFS=$as_save_IFS
4487  test -z "$as_dir" && as_dir=.
4488    for ac_prog in sed gsed; do
4489    for ac_exec_ext in '' $ac_executable_extensions; do
4490      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4491      as_fn_executable_p "$ac_path_SED" || continue
4492# Check for GNU ac_path_SED and select it if it is found.
4493  # Check for GNU $ac_path_SED
4494case `"$ac_path_SED" --version 2>&1` in
4495*GNU*)
4496  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4497*)
4498  ac_count=0
4499  $as_echo_n 0123456789 >"conftest.in"
4500  while :
4501  do
4502    cat "conftest.in" "conftest.in" >"conftest.tmp"
4503    mv "conftest.tmp" "conftest.in"
4504    cp "conftest.in" "conftest.nl"
4505    $as_echo '' >> "conftest.nl"
4506    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508    as_fn_arith $ac_count + 1 && ac_count=$as_val
4509    if test $ac_count -gt ${ac_path_SED_max-0}; then
4510      # Best one so far, save it but keep looking for a better one
4511      ac_cv_path_SED="$ac_path_SED"
4512      ac_path_SED_max=$ac_count
4513    fi
4514    # 10*(2^10) chars as input seems more than enough
4515    test $ac_count -gt 10 && break
4516  done
4517  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4518esac
4519
4520      $ac_path_SED_found && break 3
4521    done
4522  done
4523  done
4524IFS=$as_save_IFS
4525  if test -z "$ac_cv_path_SED"; then
4526    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4527  fi
4528else
4529  ac_cv_path_SED=$SED
4530fi
4531
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4534$as_echo "$ac_cv_path_SED" >&6; }
4535 SED="$ac_cv_path_SED"
4536  rm -f conftest.sed
4537
4538test -z "$SED" && SED=sed
4539Xsed="$SED -e 1s/^X//"
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4552$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4553if ${ac_cv_path_GREP+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  if test -z "$GREP"; then
4557  ac_path_GREP_found=false
4558  # Loop through the user's path and test for each of PROGNAME-LIST
4559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561do
4562  IFS=$as_save_IFS
4563  test -z "$as_dir" && as_dir=.
4564    for ac_prog in grep ggrep; do
4565    for ac_exec_ext in '' $ac_executable_extensions; do
4566      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4567      as_fn_executable_p "$ac_path_GREP" || continue
4568# Check for GNU ac_path_GREP and select it if it is found.
4569  # Check for GNU $ac_path_GREP
4570case `"$ac_path_GREP" --version 2>&1` in
4571*GNU*)
4572  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4573*)
4574  ac_count=0
4575  $as_echo_n 0123456789 >"conftest.in"
4576  while :
4577  do
4578    cat "conftest.in" "conftest.in" >"conftest.tmp"
4579    mv "conftest.tmp" "conftest.in"
4580    cp "conftest.in" "conftest.nl"
4581    $as_echo 'GREP' >> "conftest.nl"
4582    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584    as_fn_arith $ac_count + 1 && ac_count=$as_val
4585    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4586      # Best one so far, save it but keep looking for a better one
4587      ac_cv_path_GREP="$ac_path_GREP"
4588      ac_path_GREP_max=$ac_count
4589    fi
4590    # 10*(2^10) chars as input seems more than enough
4591    test $ac_count -gt 10 && break
4592  done
4593  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4594esac
4595
4596      $ac_path_GREP_found && break 3
4597    done
4598  done
4599  done
4600IFS=$as_save_IFS
4601  if test -z "$ac_cv_path_GREP"; then
4602    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603  fi
4604else
4605  ac_cv_path_GREP=$GREP
4606fi
4607
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4610$as_echo "$ac_cv_path_GREP" >&6; }
4611 GREP="$ac_cv_path_GREP"
4612
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4615$as_echo_n "checking for egrep... " >&6; }
4616if ${ac_cv_path_EGREP+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4620   then ac_cv_path_EGREP="$GREP -E"
4621   else
4622     if test -z "$EGREP"; then
4623  ac_path_EGREP_found=false
4624  # Loop through the user's path and test for each of PROGNAME-LIST
4625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627do
4628  IFS=$as_save_IFS
4629  test -z "$as_dir" && as_dir=.
4630    for ac_prog in egrep; do
4631    for ac_exec_ext in '' $ac_executable_extensions; do
4632      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4633      as_fn_executable_p "$ac_path_EGREP" || continue
4634# Check for GNU ac_path_EGREP and select it if it is found.
4635  # Check for GNU $ac_path_EGREP
4636case `"$ac_path_EGREP" --version 2>&1` in
4637*GNU*)
4638  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4639*)
4640  ac_count=0
4641  $as_echo_n 0123456789 >"conftest.in"
4642  while :
4643  do
4644    cat "conftest.in" "conftest.in" >"conftest.tmp"
4645    mv "conftest.tmp" "conftest.in"
4646    cp "conftest.in" "conftest.nl"
4647    $as_echo 'EGREP' >> "conftest.nl"
4648    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650    as_fn_arith $ac_count + 1 && ac_count=$as_val
4651    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4652      # Best one so far, save it but keep looking for a better one
4653      ac_cv_path_EGREP="$ac_path_EGREP"
4654      ac_path_EGREP_max=$ac_count
4655    fi
4656    # 10*(2^10) chars as input seems more than enough
4657    test $ac_count -gt 10 && break
4658  done
4659  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660esac
4661
4662      $ac_path_EGREP_found && break 3
4663    done
4664  done
4665  done
4666IFS=$as_save_IFS
4667  if test -z "$ac_cv_path_EGREP"; then
4668    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669  fi
4670else
4671  ac_cv_path_EGREP=$EGREP
4672fi
4673
4674   fi
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4677$as_echo "$ac_cv_path_EGREP" >&6; }
4678 EGREP="$ac_cv_path_EGREP"
4679
4680
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4682$as_echo_n "checking for fgrep... " >&6; }
4683if ${ac_cv_path_FGREP+:} false; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4687   then ac_cv_path_FGREP="$GREP -F"
4688   else
4689     if test -z "$FGREP"; then
4690  ac_path_FGREP_found=false
4691  # Loop through the user's path and test for each of PROGNAME-LIST
4692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_prog in fgrep; do
4698    for ac_exec_ext in '' $ac_executable_extensions; do
4699      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4700      as_fn_executable_p "$ac_path_FGREP" || continue
4701# Check for GNU ac_path_FGREP and select it if it is found.
4702  # Check for GNU $ac_path_FGREP
4703case `"$ac_path_FGREP" --version 2>&1` in
4704*GNU*)
4705  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4706*)
4707  ac_count=0
4708  $as_echo_n 0123456789 >"conftest.in"
4709  while :
4710  do
4711    cat "conftest.in" "conftest.in" >"conftest.tmp"
4712    mv "conftest.tmp" "conftest.in"
4713    cp "conftest.in" "conftest.nl"
4714    $as_echo 'FGREP' >> "conftest.nl"
4715    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717    as_fn_arith $ac_count + 1 && ac_count=$as_val
4718    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4719      # Best one so far, save it but keep looking for a better one
4720      ac_cv_path_FGREP="$ac_path_FGREP"
4721      ac_path_FGREP_max=$ac_count
4722    fi
4723    # 10*(2^10) chars as input seems more than enough
4724    test $ac_count -gt 10 && break
4725  done
4726  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727esac
4728
4729      $ac_path_FGREP_found && break 3
4730    done
4731  done
4732  done
4733IFS=$as_save_IFS
4734  if test -z "$ac_cv_path_FGREP"; then
4735    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736  fi
4737else
4738  ac_cv_path_FGREP=$FGREP
4739fi
4740
4741   fi
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4744$as_echo "$ac_cv_path_FGREP" >&6; }
4745 FGREP="$ac_cv_path_FGREP"
4746
4747
4748test -z "$GREP" && GREP=grep
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768# Check whether --with-gnu-ld was given.
4769if test "${with_gnu_ld+set}" = set; then :
4770  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4771else
4772  with_gnu_ld=no
4773fi
4774
4775ac_prog=ld
4776if test yes = "$GCC"; then
4777  # Check if gcc -print-prog-name=ld gives a path.
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4779$as_echo_n "checking for ld used by $CC... " >&6; }
4780  case $host in
4781  *-*-mingw*)
4782    # gcc leaves a trailing carriage return, which upsets mingw
4783    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4784  *)
4785    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4786  esac
4787  case $ac_prog in
4788    # Accept absolute paths.
4789    [\\/]* | ?:[\\/]*)
4790      re_direlt='/[^/][^/]*/\.\./'
4791      # Canonicalize the pathname of ld
4792      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4793      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4794	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4795      done
4796      test -z "$LD" && LD=$ac_prog
4797      ;;
4798  "")
4799    # If it fails, then pretend we aren't using GCC.
4800    ac_prog=ld
4801    ;;
4802  *)
4803    # If it is relative, then search for the first ld in PATH.
4804    with_gnu_ld=unknown
4805    ;;
4806  esac
4807elif test yes = "$with_gnu_ld"; then
4808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4809$as_echo_n "checking for GNU ld... " >&6; }
4810else
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4812$as_echo_n "checking for non-GNU ld... " >&6; }
4813fi
4814if ${lt_cv_path_LD+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  if test -z "$LD"; then
4818  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4819  for ac_dir in $PATH; do
4820    IFS=$lt_save_ifs
4821    test -z "$ac_dir" && ac_dir=.
4822    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4823      lt_cv_path_LD=$ac_dir/$ac_prog
4824      # Check to see if the program is GNU ld.  I'd rather use --version,
4825      # but apparently some variants of GNU ld only accept -v.
4826      # Break only if it was the GNU/non-GNU ld that we prefer.
4827      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4828      *GNU* | *'with BFD'*)
4829	test no != "$with_gnu_ld" && break
4830	;;
4831      *)
4832	test yes != "$with_gnu_ld" && break
4833	;;
4834      esac
4835    fi
4836  done
4837  IFS=$lt_save_ifs
4838else
4839  lt_cv_path_LD=$LD # Let the user override the test with a path.
4840fi
4841fi
4842
4843LD=$lt_cv_path_LD
4844if test -n "$LD"; then
4845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4846$as_echo "$LD" >&6; }
4847else
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849$as_echo "no" >&6; }
4850fi
4851test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4853$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4854if ${lt_cv_prog_gnu_ld+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4858case `$LD -v 2>&1 </dev/null` in
4859*GNU* | *'with BFD'*)
4860  lt_cv_prog_gnu_ld=yes
4861  ;;
4862*)
4863  lt_cv_prog_gnu_ld=no
4864  ;;
4865esac
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4868$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4869with_gnu_ld=$lt_cv_prog_gnu_ld
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4880$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4881if ${lt_cv_path_NM+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  if test -n "$NM"; then
4885  # Let the user override the test.
4886  lt_cv_path_NM=$NM
4887else
4888  lt_nm_to_check=${ac_tool_prefix}nm
4889  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4890    lt_nm_to_check="$lt_nm_to_check nm"
4891  fi
4892  for lt_tmp_nm in $lt_nm_to_check; do
4893    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4894    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4895      IFS=$lt_save_ifs
4896      test -z "$ac_dir" && ac_dir=.
4897      tmp_nm=$ac_dir/$lt_tmp_nm
4898      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4899	# Check to see if the nm accepts a BSD-compat flag.
4900	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4901	#   nm: unknown option "B" ignored
4902	# Tru64's nm complains that /dev/null is an invalid object file
4903	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4904	case $build_os in
4905	mingw*) lt_bad_file=conftest.nm/nofile ;;
4906	*) lt_bad_file=/dev/null ;;
4907	esac
4908	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4909	*$lt_bad_file* | *'Invalid file or object type'*)
4910	  lt_cv_path_NM="$tmp_nm -B"
4911	  break 2
4912	  ;;
4913	*)
4914	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4915	  */dev/null*)
4916	    lt_cv_path_NM="$tmp_nm -p"
4917	    break 2
4918	    ;;
4919	  *)
4920	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4921	    continue # so that we can try to find one that supports BSD flags
4922	    ;;
4923	  esac
4924	  ;;
4925	esac
4926      fi
4927    done
4928    IFS=$lt_save_ifs
4929  done
4930  : ${lt_cv_path_NM=no}
4931fi
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4934$as_echo "$lt_cv_path_NM" >&6; }
4935if test no != "$lt_cv_path_NM"; then
4936  NM=$lt_cv_path_NM
4937else
4938  # Didn't find any BSD compatible name lister, look for dumpbin.
4939  if test -n "$DUMPBIN"; then :
4940    # Let the user override the test.
4941  else
4942    if test -n "$ac_tool_prefix"; then
4943  for ac_prog in dumpbin "link -dump"
4944  do
4945    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948$as_echo_n "checking for $ac_word... " >&6; }
4949if ${ac_cv_prog_DUMPBIN+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  if test -n "$DUMPBIN"; then
4953  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958  IFS=$as_save_IFS
4959  test -z "$as_dir" && as_dir=.
4960    for ac_exec_ext in '' $ac_executable_extensions; do
4961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964    break 2
4965  fi
4966done
4967  done
4968IFS=$as_save_IFS
4969
4970fi
4971fi
4972DUMPBIN=$ac_cv_prog_DUMPBIN
4973if test -n "$DUMPBIN"; then
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4975$as_echo "$DUMPBIN" >&6; }
4976else
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980
4981
4982    test -n "$DUMPBIN" && break
4983  done
4984fi
4985if test -z "$DUMPBIN"; then
4986  ac_ct_DUMPBIN=$DUMPBIN
4987  for ac_prog in dumpbin "link -dump"
4988do
4989  # Extract the first word of "$ac_prog", so it can be a program name with args.
4990set dummy $ac_prog; ac_word=$2
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992$as_echo_n "checking for $ac_word... " >&6; }
4993if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if test -n "$ac_ct_DUMPBIN"; then
4997  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004    for ac_exec_ext in '' $ac_executable_extensions; do
5005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008    break 2
5009  fi
5010done
5011  done
5012IFS=$as_save_IFS
5013
5014fi
5015fi
5016ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5017if test -n "$ac_ct_DUMPBIN"; then
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5019$as_echo "$ac_ct_DUMPBIN" >&6; }
5020else
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023fi
5024
5025
5026  test -n "$ac_ct_DUMPBIN" && break
5027done
5028
5029  if test "x$ac_ct_DUMPBIN" = x; then
5030    DUMPBIN=":"
5031  else
5032    case $cross_compiling:$ac_tool_warned in
5033yes:)
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036ac_tool_warned=yes ;;
5037esac
5038    DUMPBIN=$ac_ct_DUMPBIN
5039  fi
5040fi
5041
5042    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5043    *COFF*)
5044      DUMPBIN="$DUMPBIN -symbols -headers"
5045      ;;
5046    *)
5047      DUMPBIN=:
5048      ;;
5049    esac
5050  fi
5051
5052  if test : != "$DUMPBIN"; then
5053    NM=$DUMPBIN
5054  fi
5055fi
5056test -z "$NM" && NM=nm
5057
5058
5059
5060
5061
5062
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5064$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5065if ${lt_cv_nm_interface+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  lt_cv_nm_interface="BSD nm"
5069  echo "int some_variable = 0;" > conftest.$ac_ext
5070  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5071  (eval "$ac_compile" 2>conftest.err)
5072  cat conftest.err >&5
5073  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5074  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5075  cat conftest.err >&5
5076  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5077  cat conftest.out >&5
5078  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5079    lt_cv_nm_interface="MS dumpbin"
5080  fi
5081  rm -f conftest*
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5084$as_echo "$lt_cv_nm_interface" >&6; }
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5087$as_echo_n "checking whether ln -s works... " >&6; }
5088LN_S=$as_ln_s
5089if test "$LN_S" = "ln -s"; then
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091$as_echo "yes" >&6; }
5092else
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5094$as_echo "no, using $LN_S" >&6; }
5095fi
5096
5097# find the maximum length of command line arguments
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5099$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5100if ${lt_cv_sys_max_cmd_len+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103    i=0
5104  teststring=ABCD
5105
5106  case $build_os in
5107  msdosdjgpp*)
5108    # On DJGPP, this test can blow up pretty badly due to problems in libc
5109    # (any single argument exceeding 2000 bytes causes a buffer overrun
5110    # during glob expansion).  Even if it were fixed, the result of this
5111    # check would be larger than it should be.
5112    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5113    ;;
5114
5115  gnu*)
5116    # Under GNU Hurd, this test is not required because there is
5117    # no limit to the length of command line arguments.
5118    # Libtool will interpret -1 as no limit whatsoever
5119    lt_cv_sys_max_cmd_len=-1;
5120    ;;
5121
5122  cygwin* | mingw* | cegcc*)
5123    # On Win9x/ME, this test blows up -- it succeeds, but takes
5124    # about 5 minutes as the teststring grows exponentially.
5125    # Worse, since 9x/ME are not pre-emptively multitasking,
5126    # you end up with a "frozen" computer, even though with patience
5127    # the test eventually succeeds (with a max line length of 256k).
5128    # Instead, let's just punt: use the minimum linelength reported by
5129    # all of the supported platforms: 8192 (on NT/2K/XP).
5130    lt_cv_sys_max_cmd_len=8192;
5131    ;;
5132
5133  mint*)
5134    # On MiNT this can take a long time and run out of memory.
5135    lt_cv_sys_max_cmd_len=8192;
5136    ;;
5137
5138  amigaos*)
5139    # On AmigaOS with pdksh, this test takes hours, literally.
5140    # So we just punt and use a minimum line length of 8192.
5141    lt_cv_sys_max_cmd_len=8192;
5142    ;;
5143
5144  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5145    # This has been around since 386BSD, at least.  Likely further.
5146    if test -x /sbin/sysctl; then
5147      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5148    elif test -x /usr/sbin/sysctl; then
5149      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5150    else
5151      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5152    fi
5153    # And add a safety zone
5154    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156    ;;
5157
5158  interix*)
5159    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5160    lt_cv_sys_max_cmd_len=196608
5161    ;;
5162
5163  os2*)
5164    # The test takes a long time on OS/2.
5165    lt_cv_sys_max_cmd_len=8192
5166    ;;
5167
5168  osf*)
5169    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5170    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5171    # nice to cause kernel panics so lets avoid the loop below.
5172    # First set a reasonable default.
5173    lt_cv_sys_max_cmd_len=16384
5174    #
5175    if test -x /sbin/sysconfig; then
5176      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5177        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5178      esac
5179    fi
5180    ;;
5181  sco3.2v5*)
5182    lt_cv_sys_max_cmd_len=102400
5183    ;;
5184  sysv5* | sco5v6* | sysv4.2uw2*)
5185    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5186    if test -n "$kargmax"; then
5187      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5188    else
5189      lt_cv_sys_max_cmd_len=32768
5190    fi
5191    ;;
5192  *)
5193    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5194    if test -n "$lt_cv_sys_max_cmd_len" && \
5195       test undefined != "$lt_cv_sys_max_cmd_len"; then
5196      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5197      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5198    else
5199      # Make teststring a little bigger before we do anything with it.
5200      # a 1K string should be a reasonable start.
5201      for i in 1 2 3 4 5 6 7 8; do
5202        teststring=$teststring$teststring
5203      done
5204      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5205      # If test is not a shell built-in, we'll probably end up computing a
5206      # maximum length that is only half of the actual maximum length, but
5207      # we can't tell.
5208      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5209	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5210	      test 17 != "$i" # 1/2 MB should be enough
5211      do
5212        i=`expr $i + 1`
5213        teststring=$teststring$teststring
5214      done
5215      # Only check the string length outside the loop.
5216      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5217      teststring=
5218      # Add a significant safety factor because C++ compilers can tack on
5219      # massive amounts of additional arguments before passing them to the
5220      # linker.  It appears as though 1/2 is a usable value.
5221      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5222    fi
5223    ;;
5224  esac
5225
5226fi
5227
5228if test -n "$lt_cv_sys_max_cmd_len"; then
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5230$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5231else
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5233$as_echo "none" >&6; }
5234fi
5235max_cmd_len=$lt_cv_sys_max_cmd_len
5236
5237
5238
5239
5240
5241
5242: ${CP="cp -f"}
5243: ${MV="mv -f"}
5244: ${RM="rm -f"}
5245
5246if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5247  lt_unset=unset
5248else
5249  lt_unset=false
5250fi
5251
5252
5253
5254
5255
5256# test EBCDIC or ASCII
5257case `echo X|tr X '\101'` in
5258 A) # ASCII based system
5259    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5260  lt_SP2NL='tr \040 \012'
5261  lt_NL2SP='tr \015\012 \040\040'
5262  ;;
5263 *) # EBCDIC based system
5264  lt_SP2NL='tr \100 \n'
5265  lt_NL2SP='tr \r\n \100\100'
5266  ;;
5267esac
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5278$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5279if ${lt_cv_to_host_file_cmd+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  case $host in
5283  *-*-mingw* )
5284    case $build in
5285      *-*-mingw* ) # actually msys
5286        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5287        ;;
5288      *-*-cygwin* )
5289        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5290        ;;
5291      * ) # otherwise, assume *nix
5292        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5293        ;;
5294    esac
5295    ;;
5296  *-*-cygwin* )
5297    case $build in
5298      *-*-mingw* ) # actually msys
5299        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5300        ;;
5301      *-*-cygwin* )
5302        lt_cv_to_host_file_cmd=func_convert_file_noop
5303        ;;
5304      * ) # otherwise, assume *nix
5305        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5306        ;;
5307    esac
5308    ;;
5309  * ) # unhandled hosts (and "normal" native builds)
5310    lt_cv_to_host_file_cmd=func_convert_file_noop
5311    ;;
5312esac
5313
5314fi
5315
5316to_host_file_cmd=$lt_cv_to_host_file_cmd
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5318$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5319
5320
5321
5322
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5325$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5326if ${lt_cv_to_tool_file_cmd+:} false; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  #assume ordinary cross tools, or native build.
5330lt_cv_to_tool_file_cmd=func_convert_file_noop
5331case $host in
5332  *-*-mingw* )
5333    case $build in
5334      *-*-mingw* ) # actually msys
5335        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5336        ;;
5337    esac
5338    ;;
5339esac
5340
5341fi
5342
5343to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5345$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5346
5347
5348
5349
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5352$as_echo_n "checking for $LD option to reload object files... " >&6; }
5353if ${lt_cv_ld_reload_flag+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  lt_cv_ld_reload_flag='-r'
5357fi
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5359$as_echo "$lt_cv_ld_reload_flag" >&6; }
5360reload_flag=$lt_cv_ld_reload_flag
5361case $reload_flag in
5362"" | " "*) ;;
5363*) reload_flag=" $reload_flag" ;;
5364esac
5365reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366case $host_os in
5367  cygwin* | mingw* | pw32* | cegcc*)
5368    if test yes != "$GCC"; then
5369      reload_cmds=false
5370    fi
5371    ;;
5372  darwin*)
5373    if test yes = "$GCC"; then
5374      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5375    else
5376      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5377    fi
5378    ;;
5379esac
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389if test -n "$ac_tool_prefix"; then
5390  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5391set dummy ${ac_tool_prefix}objdump; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if ${ac_cv_prog_OBJDUMP+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  if test -n "$OBJDUMP"; then
5398  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405    for ac_exec_ext in '' $ac_executable_extensions; do
5406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412  done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417OBJDUMP=$ac_cv_prog_OBJDUMP
5418if test -n "$OBJDUMP"; then
5419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5420$as_echo "$OBJDUMP" >&6; }
5421else
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427fi
5428if test -z "$ac_cv_prog_OBJDUMP"; then
5429  ac_ct_OBJDUMP=$OBJDUMP
5430  # Extract the first word of "objdump", so it can be a program name with args.
5431set dummy objdump; ac_word=$2
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433$as_echo_n "checking for $ac_word... " >&6; }
5434if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  if test -n "$ac_ct_OBJDUMP"; then
5438  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5439else
5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443  IFS=$as_save_IFS
5444  test -z "$as_dir" && as_dir=.
5445    for ac_exec_ext in '' $ac_executable_extensions; do
5446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449    break 2
5450  fi
5451done
5452  done
5453IFS=$as_save_IFS
5454
5455fi
5456fi
5457ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5458if test -n "$ac_ct_OBJDUMP"; then
5459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5460$as_echo "$ac_ct_OBJDUMP" >&6; }
5461else
5462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463$as_echo "no" >&6; }
5464fi
5465
5466  if test "x$ac_ct_OBJDUMP" = x; then
5467    OBJDUMP="false"
5468  else
5469    case $cross_compiling:$ac_tool_warned in
5470yes:)
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473ac_tool_warned=yes ;;
5474esac
5475    OBJDUMP=$ac_ct_OBJDUMP
5476  fi
5477else
5478  OBJDUMP="$ac_cv_prog_OBJDUMP"
5479fi
5480
5481test -z "$OBJDUMP" && OBJDUMP=objdump
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5492$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5493if ${lt_cv_deplibs_check_method+:} false; then :
5494  $as_echo_n "(cached) " >&6
5495else
5496  lt_cv_file_magic_cmd='$MAGIC_CMD'
5497lt_cv_file_magic_test_file=
5498lt_cv_deplibs_check_method='unknown'
5499# Need to set the preceding variable on all platforms that support
5500# interlibrary dependencies.
5501# 'none' -- dependencies not supported.
5502# 'unknown' -- same as none, but documents that we really don't know.
5503# 'pass_all' -- all dependencies passed with no checks.
5504# 'test_compile' -- check by making test program.
5505# 'file_magic [[regex]]' -- check by looking for files in library path
5506# that responds to the $file_magic_cmd with a given extended regex.
5507# If you have 'file' or equivalent on your system and you're not sure
5508# whether 'pass_all' will *always* work, you probably want this one.
5509
5510case $host_os in
5511aix[4-9]*)
5512  lt_cv_deplibs_check_method=pass_all
5513  ;;
5514
5515beos*)
5516  lt_cv_deplibs_check_method=pass_all
5517  ;;
5518
5519bsdi[45]*)
5520  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5521  lt_cv_file_magic_cmd='/usr/bin/file -L'
5522  lt_cv_file_magic_test_file=/shlib/libc.so
5523  ;;
5524
5525cygwin*)
5526  # func_win32_libid is a shell function defined in ltmain.sh
5527  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5528  lt_cv_file_magic_cmd='func_win32_libid'
5529  ;;
5530
5531mingw* | pw32*)
5532  # Base MSYS/MinGW do not provide the 'file' command needed by
5533  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5534  # unless we find 'file', for example because we are cross-compiling.
5535  if ( file / ) >/dev/null 2>&1; then
5536    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5537    lt_cv_file_magic_cmd='func_win32_libid'
5538  else
5539    # Keep this pattern in sync with the one in func_win32_libid.
5540    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5541    lt_cv_file_magic_cmd='$OBJDUMP -f'
5542  fi
5543  ;;
5544
5545cegcc*)
5546  # use the weaker test based on 'objdump'. See mingw*.
5547  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5548  lt_cv_file_magic_cmd='$OBJDUMP -f'
5549  ;;
5550
5551darwin* | rhapsody*)
5552  lt_cv_deplibs_check_method=pass_all
5553  ;;
5554
5555freebsd* | dragonfly*)
5556  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5557    case $host_cpu in
5558    i*86 )
5559      # Not sure whether the presence of OpenBSD here was a mistake.
5560      # Let's accept both of them until this is cleared up.
5561      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5562      lt_cv_file_magic_cmd=/usr/bin/file
5563      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5564      ;;
5565    esac
5566  else
5567    lt_cv_deplibs_check_method=pass_all
5568  fi
5569  ;;
5570
5571haiku*)
5572  lt_cv_deplibs_check_method=pass_all
5573  ;;
5574
5575hpux10.20* | hpux11*)
5576  lt_cv_file_magic_cmd=/usr/bin/file
5577  case $host_cpu in
5578  ia64*)
5579    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5580    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5581    ;;
5582  hppa*64*)
5583    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]'
5584    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5585    ;;
5586  *)
5587    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5588    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5589    ;;
5590  esac
5591  ;;
5592
5593interix[3-9]*)
5594  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5595  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5596  ;;
5597
5598irix5* | irix6* | nonstopux*)
5599  case $LD in
5600  *-32|*"-32 ") libmagic=32-bit;;
5601  *-n32|*"-n32 ") libmagic=N32;;
5602  *-64|*"-64 ") libmagic=64-bit;;
5603  *) libmagic=never-match;;
5604  esac
5605  lt_cv_deplibs_check_method=pass_all
5606  ;;
5607
5608# This must be glibc/ELF.
5609linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5610  lt_cv_deplibs_check_method=pass_all
5611  ;;
5612
5613netbsd*)
5614  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5615    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5616  else
5617    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5618  fi
5619  ;;
5620
5621newos6*)
5622  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5623  lt_cv_file_magic_cmd=/usr/bin/file
5624  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5625  ;;
5626
5627*nto* | *qnx*)
5628  lt_cv_deplibs_check_method=pass_all
5629  ;;
5630
5631openbsd* | bitrig*)
5632  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5634  else
5635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636  fi
5637  ;;
5638
5639osf3* | osf4* | osf5*)
5640  lt_cv_deplibs_check_method=pass_all
5641  ;;
5642
5643rdos*)
5644  lt_cv_deplibs_check_method=pass_all
5645  ;;
5646
5647solaris*)
5648  lt_cv_deplibs_check_method=pass_all
5649  ;;
5650
5651sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5652  lt_cv_deplibs_check_method=pass_all
5653  ;;
5654
5655sysv4 | sysv4.3*)
5656  case $host_vendor in
5657  motorola)
5658    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]'
5659    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5660    ;;
5661  ncr)
5662    lt_cv_deplibs_check_method=pass_all
5663    ;;
5664  sequent)
5665    lt_cv_file_magic_cmd='/bin/file'
5666    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5667    ;;
5668  sni)
5669    lt_cv_file_magic_cmd='/bin/file'
5670    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671    lt_cv_file_magic_test_file=/lib/libc.so
5672    ;;
5673  siemens)
5674    lt_cv_deplibs_check_method=pass_all
5675    ;;
5676  pc)
5677    lt_cv_deplibs_check_method=pass_all
5678    ;;
5679  esac
5680  ;;
5681
5682tpf*)
5683  lt_cv_deplibs_check_method=pass_all
5684  ;;
5685os2*)
5686  lt_cv_deplibs_check_method=pass_all
5687  ;;
5688esac
5689
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5692$as_echo "$lt_cv_deplibs_check_method" >&6; }
5693
5694file_magic_glob=
5695want_nocaseglob=no
5696if test "$build" = "$host"; then
5697  case $host_os in
5698  mingw* | pw32*)
5699    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5700      want_nocaseglob=yes
5701    else
5702      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5703    fi
5704    ;;
5705  esac
5706fi
5707
5708file_magic_cmd=$lt_cv_file_magic_cmd
5709deplibs_check_method=$lt_cv_deplibs_check_method
5710test -z "$deplibs_check_method" && deplibs_check_method=unknown
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733if test -n "$ac_tool_prefix"; then
5734  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5735set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
5738if ${ac_cv_prog_DLLTOOL+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741  if test -n "$DLLTOOL"; then
5742  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747  IFS=$as_save_IFS
5748  test -z "$as_dir" && as_dir=.
5749    for ac_exec_ext in '' $ac_executable_extensions; do
5750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753    break 2
5754  fi
5755done
5756  done
5757IFS=$as_save_IFS
5758
5759fi
5760fi
5761DLLTOOL=$ac_cv_prog_DLLTOOL
5762if test -n "$DLLTOOL"; then
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5764$as_echo "$DLLTOOL" >&6; }
5765else
5766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768fi
5769
5770
5771fi
5772if test -z "$ac_cv_prog_DLLTOOL"; then
5773  ac_ct_DLLTOOL=$DLLTOOL
5774  # Extract the first word of "dlltool", so it can be a program name with args.
5775set dummy dlltool; ac_word=$2
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
5778if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5779  $as_echo_n "(cached) " >&6
5780else
5781  if test -n "$ac_ct_DLLTOOL"; then
5782  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789    for ac_exec_ext in '' $ac_executable_extensions; do
5790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796  done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5802if test -n "$ac_ct_DLLTOOL"; then
5803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5804$as_echo "$ac_ct_DLLTOOL" >&6; }
5805else
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810  if test "x$ac_ct_DLLTOOL" = x; then
5811    DLLTOOL="false"
5812  else
5813    case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817ac_tool_warned=yes ;;
5818esac
5819    DLLTOOL=$ac_ct_DLLTOOL
5820  fi
5821else
5822  DLLTOOL="$ac_cv_prog_DLLTOOL"
5823fi
5824
5825test -z "$DLLTOOL" && DLLTOOL=dlltool
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5837$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5838if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841  lt_cv_sharedlib_from_linklib_cmd='unknown'
5842
5843case $host_os in
5844cygwin* | mingw* | pw32* | cegcc*)
5845  # two different shell functions defined in ltmain.sh;
5846  # decide which one to use based on capabilities of $DLLTOOL
5847  case `$DLLTOOL --help 2>&1` in
5848  *--identify-strict*)
5849    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5850    ;;
5851  *)
5852    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5853    ;;
5854  esac
5855  ;;
5856*)
5857  # fallback: assume linklib IS sharedlib
5858  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5859  ;;
5860esac
5861
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5864$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5865sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5866test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5867
5868
5869
5870
5871
5872
5873
5874
5875if test -n "$ac_tool_prefix"; then
5876  for ac_prog in ar
5877  do
5878    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881$as_echo_n "checking for $ac_word... " >&6; }
5882if ${ac_cv_prog_AR+:} false; then :
5883  $as_echo_n "(cached) " >&6
5884else
5885  if test -n "$AR"; then
5886  ac_cv_prog_AR="$AR" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891  IFS=$as_save_IFS
5892  test -z "$as_dir" && as_dir=.
5893    for ac_exec_ext in '' $ac_executable_extensions; do
5894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897    break 2
5898  fi
5899done
5900  done
5901IFS=$as_save_IFS
5902
5903fi
5904fi
5905AR=$ac_cv_prog_AR
5906if test -n "$AR"; then
5907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5908$as_echo "$AR" >&6; }
5909else
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913
5914
5915    test -n "$AR" && break
5916  done
5917fi
5918if test -z "$AR"; then
5919  ac_ct_AR=$AR
5920  for ac_prog in ar
5921do
5922  # Extract the first word of "$ac_prog", so it can be a program name with args.
5923set dummy $ac_prog; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if ${ac_cv_prog_ac_ct_AR+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  if test -n "$ac_ct_AR"; then
5930  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937    for ac_exec_ext in '' $ac_executable_extensions; do
5938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939    ac_cv_prog_ac_ct_AR="$ac_prog"
5940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944  done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_AR=$ac_cv_prog_ac_ct_AR
5950if test -n "$ac_ct_AR"; then
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5952$as_echo "$ac_ct_AR" >&6; }
5953else
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958
5959  test -n "$ac_ct_AR" && break
5960done
5961
5962  if test "x$ac_ct_AR" = x; then
5963    AR="false"
5964  else
5965    case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971    AR=$ac_ct_AR
5972  fi
5973fi
5974
5975: ${AR=ar}
5976: ${AR_FLAGS=cru}
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5989$as_echo_n "checking for archiver @FILE support... " >&6; }
5990if ${lt_cv_ar_at_file+:} false; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  lt_cv_ar_at_file=no
5994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995/* end confdefs.h.  */
5996
5997int
5998main ()
5999{
6000
6001  ;
6002  return 0;
6003}
6004_ACEOF
6005if ac_fn_c_try_compile "$LINENO"; then :
6006  echo conftest.$ac_objext > conftest.lst
6007      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6008      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6009  (eval $lt_ar_try) 2>&5
6010  ac_status=$?
6011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012  test $ac_status = 0; }
6013      if test 0 -eq "$ac_status"; then
6014	# Ensure the archiver fails upon bogus file names.
6015	rm -f conftest.$ac_objext libconftest.a
6016	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6017  (eval $lt_ar_try) 2>&5
6018  ac_status=$?
6019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020  test $ac_status = 0; }
6021	if test 0 -ne "$ac_status"; then
6022          lt_cv_ar_at_file=@
6023        fi
6024      fi
6025      rm -f conftest.* libconftest.a
6026
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029
6030fi
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6032$as_echo "$lt_cv_ar_at_file" >&6; }
6033
6034if test no = "$lt_cv_ar_at_file"; then
6035  archiver_list_spec=
6036else
6037  archiver_list_spec=$lt_cv_ar_at_file
6038fi
6039
6040
6041
6042
6043
6044
6045
6046if test -n "$ac_tool_prefix"; then
6047  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6048set dummy ${ac_tool_prefix}strip; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if ${ac_cv_prog_STRIP+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  if test -n "$STRIP"; then
6055  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060  IFS=$as_save_IFS
6061  test -z "$as_dir" && as_dir=.
6062    for ac_exec_ext in '' $ac_executable_extensions; do
6063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069  done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074STRIP=$ac_cv_prog_STRIP
6075if test -n "$STRIP"; then
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6077$as_echo "$STRIP" >&6; }
6078else
6079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084fi
6085if test -z "$ac_cv_prog_STRIP"; then
6086  ac_ct_STRIP=$STRIP
6087  # Extract the first word of "strip", so it can be a program name with args.
6088set dummy strip; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
6091if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  if test -n "$ac_ct_STRIP"; then
6095  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102    for ac_exec_ext in '' $ac_executable_extensions; do
6103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104    ac_cv_prog_ac_ct_STRIP="strip"
6105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109  done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6115if test -n "$ac_ct_STRIP"; then
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6117$as_echo "$ac_ct_STRIP" >&6; }
6118else
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123  if test "x$ac_ct_STRIP" = x; then
6124    STRIP=":"
6125  else
6126    case $cross_compiling:$ac_tool_warned in
6127yes:)
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130ac_tool_warned=yes ;;
6131esac
6132    STRIP=$ac_ct_STRIP
6133  fi
6134else
6135  STRIP="$ac_cv_prog_STRIP"
6136fi
6137
6138test -z "$STRIP" && STRIP=:
6139
6140
6141
6142
6143
6144
6145if test -n "$ac_tool_prefix"; then
6146  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6147set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149$as_echo_n "checking for $ac_word... " >&6; }
6150if ${ac_cv_prog_RANLIB+:} false; then :
6151  $as_echo_n "(cached) " >&6
6152else
6153  if test -n "$RANLIB"; then
6154  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6155else
6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159  IFS=$as_save_IFS
6160  test -z "$as_dir" && as_dir=.
6161    for ac_exec_ext in '' $ac_executable_extensions; do
6162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165    break 2
6166  fi
6167done
6168  done
6169IFS=$as_save_IFS
6170
6171fi
6172fi
6173RANLIB=$ac_cv_prog_RANLIB
6174if test -n "$RANLIB"; then
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6176$as_echo "$RANLIB" >&6; }
6177else
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180fi
6181
6182
6183fi
6184if test -z "$ac_cv_prog_RANLIB"; then
6185  ac_ct_RANLIB=$RANLIB
6186  # Extract the first word of "ranlib", so it can be a program name with args.
6187set dummy ranlib; ac_word=$2
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189$as_echo_n "checking for $ac_word... " >&6; }
6190if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  if test -n "$ac_ct_RANLIB"; then
6194  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199  IFS=$as_save_IFS
6200  test -z "$as_dir" && as_dir=.
6201    for ac_exec_ext in '' $ac_executable_extensions; do
6202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203    ac_cv_prog_ac_ct_RANLIB="ranlib"
6204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205    break 2
6206  fi
6207done
6208  done
6209IFS=$as_save_IFS
6210
6211fi
6212fi
6213ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6214if test -n "$ac_ct_RANLIB"; then
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6216$as_echo "$ac_ct_RANLIB" >&6; }
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219$as_echo "no" >&6; }
6220fi
6221
6222  if test "x$ac_ct_RANLIB" = x; then
6223    RANLIB=":"
6224  else
6225    case $cross_compiling:$ac_tool_warned in
6226yes:)
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6229ac_tool_warned=yes ;;
6230esac
6231    RANLIB=$ac_ct_RANLIB
6232  fi
6233else
6234  RANLIB="$ac_cv_prog_RANLIB"
6235fi
6236
6237test -z "$RANLIB" && RANLIB=:
6238
6239
6240
6241
6242
6243
6244# Determine commands to create old-style static archives.
6245old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6246old_postinstall_cmds='chmod 644 $oldlib'
6247old_postuninstall_cmds=
6248
6249if test -n "$RANLIB"; then
6250  case $host_os in
6251  bitrig* | openbsd*)
6252    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6253    ;;
6254  *)
6255    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6256    ;;
6257  esac
6258  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6259fi
6260
6261case $host_os in
6262  darwin*)
6263    lock_old_archive_extraction=yes ;;
6264  *)
6265    lock_old_archive_extraction=no ;;
6266esac
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306# If no C compiler was specified, use CC.
6307LTCC=${LTCC-"$CC"}
6308
6309# If no C compiler flags were specified, use CFLAGS.
6310LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6311
6312# Allow CC to be a program name with arguments.
6313compiler=$CC
6314
6315
6316# Check for command to grab the raw symbol name followed by C symbol from nm.
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6318$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6319if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322
6323# These are sane defaults that work on at least a few old systems.
6324# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6325
6326# Character class describing NM global symbol codes.
6327symcode='[BCDEGRST]'
6328
6329# Regexp to match symbols that can be accessed directly from C.
6330sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6331
6332# Define system-specific variables.
6333case $host_os in
6334aix*)
6335  symcode='[BCDT]'
6336  ;;
6337cygwin* | mingw* | pw32* | cegcc*)
6338  symcode='[ABCDGISTW]'
6339  ;;
6340hpux*)
6341  if test ia64 = "$host_cpu"; then
6342    symcode='[ABCDEGRST]'
6343  fi
6344  ;;
6345irix* | nonstopux*)
6346  symcode='[BCDEGRST]'
6347  ;;
6348osf*)
6349  symcode='[BCDEGQRST]'
6350  ;;
6351solaris*)
6352  symcode='[BDRT]'
6353  ;;
6354sco3.2v5*)
6355  symcode='[DT]'
6356  ;;
6357sysv4.2uw2*)
6358  symcode='[DT]'
6359  ;;
6360sysv5* | sco5v6* | unixware* | OpenUNIX*)
6361  symcode='[ABDT]'
6362  ;;
6363sysv4)
6364  symcode='[DFNSTU]'
6365  ;;
6366esac
6367
6368# If we're using GNU nm, then use its standard symbol codes.
6369case `$NM -V 2>&1` in
6370*GNU* | *'with BFD'*)
6371  symcode='[ABCDGIRSTW]' ;;
6372esac
6373
6374if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6375  # Gets list of data symbols to import.
6376  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6377  # Adjust the below global symbol transforms to fixup imported variables.
6378  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6379  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6380  lt_c_name_lib_hook="\
6381  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6382  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6383else
6384  # Disable hooks by default.
6385  lt_cv_sys_global_symbol_to_import=
6386  lt_cdecl_hook=
6387  lt_c_name_hook=
6388  lt_c_name_lib_hook=
6389fi
6390
6391# Transform an extracted symbol line into a proper C declaration.
6392# Some systems (esp. on ia64) link data and code symbols differently,
6393# so use this general approach.
6394lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6395$lt_cdecl_hook\
6396" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6397" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6398
6399# Transform an extracted symbol line into symbol name and symbol address
6400lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6401$lt_c_name_hook\
6402" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6403" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6404
6405# Transform an extracted symbol line into symbol name with lib prefix and
6406# symbol address.
6407lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6408$lt_c_name_lib_hook\
6409" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6410" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6411" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6412
6413# Handle CRLF in mingw tool chain
6414opt_cr=
6415case $build_os in
6416mingw*)
6417  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6418  ;;
6419esac
6420
6421# Try without a prefix underscore, then with it.
6422for ac_symprfx in "" "_"; do
6423
6424  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6425  symxfrm="\\1 $ac_symprfx\\2 \\2"
6426
6427  # Write the raw and C identifiers.
6428  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6429    # Fake it for dumpbin and say T for any non-static function,
6430    # D for any global variable and I for any imported variable.
6431    # Also find C++ and __fastcall symbols from MSVC++,
6432    # which start with @ or ?.
6433    lt_cv_sys_global_symbol_pipe="$AWK '"\
6434"     {last_section=section; section=\$ 3};"\
6435"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6436"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6437"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6438"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6439"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6440"     \$ 0!~/External *\|/{next};"\
6441"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6442"     {if(hide[section]) next};"\
6443"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6444"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6445"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6446"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6447"     ' prfx=^$ac_symprfx"
6448  else
6449    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6450  fi
6451  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6452
6453  # Check to see that the pipe works correctly.
6454  pipe_works=no
6455
6456  rm -f conftest*
6457  cat > conftest.$ac_ext <<_LT_EOF
6458#ifdef __cplusplus
6459extern "C" {
6460#endif
6461char nm_test_var;
6462void nm_test_func(void);
6463void nm_test_func(void){}
6464#ifdef __cplusplus
6465}
6466#endif
6467int main(){nm_test_var='a';nm_test_func();return(0);}
6468_LT_EOF
6469
6470  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471  (eval $ac_compile) 2>&5
6472  ac_status=$?
6473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474  test $ac_status = 0; }; then
6475    # Now try to grab the symbols.
6476    nlist=conftest.nm
6477    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6478  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6479  ac_status=$?
6480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481  test $ac_status = 0; } && test -s "$nlist"; then
6482      # Try sorting and uniquifying the output.
6483      if sort "$nlist" | uniq > "$nlist"T; then
6484	mv -f "$nlist"T "$nlist"
6485      else
6486	rm -f "$nlist"T
6487      fi
6488
6489      # Make sure that we snagged all the symbols we need.
6490      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6491	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6492	  cat <<_LT_EOF > conftest.$ac_ext
6493/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6494#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6495/* DATA imports from DLLs on WIN32 can't be const, because runtime
6496   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6497# define LT_DLSYM_CONST
6498#elif defined __osf__
6499/* This system does not cope well with relocations in const data.  */
6500# define LT_DLSYM_CONST
6501#else
6502# define LT_DLSYM_CONST const
6503#endif
6504
6505#ifdef __cplusplus
6506extern "C" {
6507#endif
6508
6509_LT_EOF
6510	  # Now generate the symbol file.
6511	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6512
6513	  cat <<_LT_EOF >> conftest.$ac_ext
6514
6515/* The mapping between symbol names and symbols.  */
6516LT_DLSYM_CONST struct {
6517  const char *name;
6518  void       *address;
6519}
6520lt__PROGRAM__LTX_preloaded_symbols[] =
6521{
6522  { "@PROGRAM@", (void *) 0 },
6523_LT_EOF
6524	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6525	  cat <<\_LT_EOF >> conftest.$ac_ext
6526  {0, (void *) 0}
6527};
6528
6529/* This works around a problem in FreeBSD linker */
6530#ifdef FREEBSD_WORKAROUND
6531static const void *lt_preloaded_setup() {
6532  return lt__PROGRAM__LTX_preloaded_symbols;
6533}
6534#endif
6535
6536#ifdef __cplusplus
6537}
6538#endif
6539_LT_EOF
6540	  # Now try linking the two files.
6541	  mv conftest.$ac_objext conftstm.$ac_objext
6542	  lt_globsym_save_LIBS=$LIBS
6543	  lt_globsym_save_CFLAGS=$CFLAGS
6544	  LIBS=conftstm.$ac_objext
6545	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6546	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6547  (eval $ac_link) 2>&5
6548  ac_status=$?
6549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6551	    pipe_works=yes
6552	  fi
6553	  LIBS=$lt_globsym_save_LIBS
6554	  CFLAGS=$lt_globsym_save_CFLAGS
6555	else
6556	  echo "cannot find nm_test_func in $nlist" >&5
6557	fi
6558      else
6559	echo "cannot find nm_test_var in $nlist" >&5
6560      fi
6561    else
6562      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6563    fi
6564  else
6565    echo "$progname: failed program was:" >&5
6566    cat conftest.$ac_ext >&5
6567  fi
6568  rm -rf conftest* conftst*
6569
6570  # Do not use the global_symbol_pipe unless it works.
6571  if test yes = "$pipe_works"; then
6572    break
6573  else
6574    lt_cv_sys_global_symbol_pipe=
6575  fi
6576done
6577
6578fi
6579
6580if test -z "$lt_cv_sys_global_symbol_pipe"; then
6581  lt_cv_sys_global_symbol_to_cdecl=
6582fi
6583if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6585$as_echo "failed" >&6; }
6586else
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6588$as_echo "ok" >&6; }
6589fi
6590
6591# Response file support.
6592if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6593  nm_file_list_spec='@'
6594elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6595  nm_file_list_spec='@'
6596fi
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6635$as_echo_n "checking for sysroot... " >&6; }
6636
6637# Check whether --with-sysroot was given.
6638if test "${with_sysroot+set}" = set; then :
6639  withval=$with_sysroot;
6640else
6641  with_sysroot=no
6642fi
6643
6644
6645lt_sysroot=
6646case $with_sysroot in #(
6647 yes)
6648   if test yes = "$GCC"; then
6649     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6650   fi
6651   ;; #(
6652 /*)
6653   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6654   ;; #(
6655 no|'')
6656   ;; #(
6657 *)
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6659$as_echo "$with_sysroot" >&6; }
6660   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6661   ;;
6662esac
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6665$as_echo "${lt_sysroot:-no}" >&6; }
6666
6667
6668
6669
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6672$as_echo_n "checking for a working dd... " >&6; }
6673if ${ac_cv_path_lt_DD+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  printf 0123456789abcdef0123456789abcdef >conftest.i
6677cat conftest.i conftest.i >conftest2.i
6678: ${lt_DD:=$DD}
6679if test -z "$lt_DD"; then
6680  ac_path_lt_DD_found=false
6681  # Loop through the user's path and test for each of PROGNAME-LIST
6682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685  IFS=$as_save_IFS
6686  test -z "$as_dir" && as_dir=.
6687    for ac_prog in dd; do
6688    for ac_exec_ext in '' $ac_executable_extensions; do
6689      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6690      as_fn_executable_p "$ac_path_lt_DD" || continue
6691if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6692  cmp -s conftest.i conftest.out \
6693  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6694fi
6695      $ac_path_lt_DD_found && break 3
6696    done
6697  done
6698  done
6699IFS=$as_save_IFS
6700  if test -z "$ac_cv_path_lt_DD"; then
6701    :
6702  fi
6703else
6704  ac_cv_path_lt_DD=$lt_DD
6705fi
6706
6707rm -f conftest.i conftest2.i conftest.out
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6710$as_echo "$ac_cv_path_lt_DD" >&6; }
6711
6712
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6714$as_echo_n "checking how to truncate binary pipes... " >&6; }
6715if ${lt_cv_truncate_bin+:} false; then :
6716  $as_echo_n "(cached) " >&6
6717else
6718  printf 0123456789abcdef0123456789abcdef >conftest.i
6719cat conftest.i conftest.i >conftest2.i
6720lt_cv_truncate_bin=
6721if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6722  cmp -s conftest.i conftest.out \
6723  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6724fi
6725rm -f conftest.i conftest2.i conftest.out
6726test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6727fi
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6729$as_echo "$lt_cv_truncate_bin" >&6; }
6730
6731
6732
6733
6734
6735
6736
6737# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6738func_cc_basename ()
6739{
6740    for cc_temp in $*""; do
6741      case $cc_temp in
6742        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6743        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6744        \-*) ;;
6745        *) break;;
6746      esac
6747    done
6748    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6749}
6750
6751# Check whether --enable-libtool-lock was given.
6752if test "${enable_libtool_lock+set}" = set; then :
6753  enableval=$enable_libtool_lock;
6754fi
6755
6756test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6757
6758# Some flags need to be propagated to the compiler or linker for good
6759# libtool support.
6760case $host in
6761ia64-*-hpux*)
6762  # Find out what ABI is being produced by ac_compile, and set mode
6763  # options accordingly.
6764  echo 'int i;' > conftest.$ac_ext
6765  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6766  (eval $ac_compile) 2>&5
6767  ac_status=$?
6768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6769  test $ac_status = 0; }; then
6770    case `/usr/bin/file conftest.$ac_objext` in
6771      *ELF-32*)
6772	HPUX_IA64_MODE=32
6773	;;
6774      *ELF-64*)
6775	HPUX_IA64_MODE=64
6776	;;
6777    esac
6778  fi
6779  rm -rf conftest*
6780  ;;
6781*-*-irix6*)
6782  # Find out what ABI is being produced by ac_compile, and set linker
6783  # options accordingly.
6784  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6785  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6786  (eval $ac_compile) 2>&5
6787  ac_status=$?
6788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6789  test $ac_status = 0; }; then
6790    if test yes = "$lt_cv_prog_gnu_ld"; then
6791      case `/usr/bin/file conftest.$ac_objext` in
6792	*32-bit*)
6793	  LD="${LD-ld} -melf32bsmip"
6794	  ;;
6795	*N32*)
6796	  LD="${LD-ld} -melf32bmipn32"
6797	  ;;
6798	*64-bit*)
6799	  LD="${LD-ld} -melf64bmip"
6800	;;
6801      esac
6802    else
6803      case `/usr/bin/file conftest.$ac_objext` in
6804	*32-bit*)
6805	  LD="${LD-ld} -32"
6806	  ;;
6807	*N32*)
6808	  LD="${LD-ld} -n32"
6809	  ;;
6810	*64-bit*)
6811	  LD="${LD-ld} -64"
6812	  ;;
6813      esac
6814    fi
6815  fi
6816  rm -rf conftest*
6817  ;;
6818
6819mips64*-*linux*)
6820  # Find out what ABI is being produced by ac_compile, and set linker
6821  # options accordingly.
6822  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6823  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6824  (eval $ac_compile) 2>&5
6825  ac_status=$?
6826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827  test $ac_status = 0; }; then
6828    emul=elf
6829    case `/usr/bin/file conftest.$ac_objext` in
6830      *32-bit*)
6831	emul="${emul}32"
6832	;;
6833      *64-bit*)
6834	emul="${emul}64"
6835	;;
6836    esac
6837    case `/usr/bin/file conftest.$ac_objext` in
6838      *MSB*)
6839	emul="${emul}btsmip"
6840	;;
6841      *LSB*)
6842	emul="${emul}ltsmip"
6843	;;
6844    esac
6845    case `/usr/bin/file conftest.$ac_objext` in
6846      *N32*)
6847	emul="${emul}n32"
6848	;;
6849    esac
6850    LD="${LD-ld} -m $emul"
6851  fi
6852  rm -rf conftest*
6853  ;;
6854
6855x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6856s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6857  # Find out what ABI is being produced by ac_compile, and set linker
6858  # options accordingly.  Note that the listed cases only cover the
6859  # situations where additional linker options are needed (such as when
6860  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6861  # vice versa); the common cases where no linker options are needed do
6862  # not appear in the list.
6863  echo 'int i;' > conftest.$ac_ext
6864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865  (eval $ac_compile) 2>&5
6866  ac_status=$?
6867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868  test $ac_status = 0; }; then
6869    case `/usr/bin/file conftest.o` in
6870      *32-bit*)
6871	case $host in
6872	  x86_64-*kfreebsd*-gnu)
6873	    LD="${LD-ld} -m elf_i386_fbsd"
6874	    ;;
6875	  x86_64-*linux*)
6876	    case `/usr/bin/file conftest.o` in
6877	      *x86-64*)
6878		LD="${LD-ld} -m elf32_x86_64"
6879		;;
6880	      *)
6881		LD="${LD-ld} -m elf_i386"
6882		;;
6883	    esac
6884	    ;;
6885	  powerpc64le-*linux*)
6886	    LD="${LD-ld} -m elf32lppclinux"
6887	    ;;
6888	  powerpc64-*linux*)
6889	    LD="${LD-ld} -m elf32ppclinux"
6890	    ;;
6891	  s390x-*linux*)
6892	    LD="${LD-ld} -m elf_s390"
6893	    ;;
6894	  sparc64-*linux*)
6895	    LD="${LD-ld} -m elf32_sparc"
6896	    ;;
6897	esac
6898	;;
6899      *64-bit*)
6900	case $host in
6901	  x86_64-*kfreebsd*-gnu)
6902	    LD="${LD-ld} -m elf_x86_64_fbsd"
6903	    ;;
6904	  x86_64-*linux*)
6905	    LD="${LD-ld} -m elf_x86_64"
6906	    ;;
6907	  powerpcle-*linux*)
6908	    LD="${LD-ld} -m elf64lppc"
6909	    ;;
6910	  powerpc-*linux*)
6911	    LD="${LD-ld} -m elf64ppc"
6912	    ;;
6913	  s390*-*linux*|s390*-*tpf*)
6914	    LD="${LD-ld} -m elf64_s390"
6915	    ;;
6916	  sparc*-*linux*)
6917	    LD="${LD-ld} -m elf64_sparc"
6918	    ;;
6919	esac
6920	;;
6921    esac
6922  fi
6923  rm -rf conftest*
6924  ;;
6925
6926*-*-sco3.2v5*)
6927  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6928  SAVE_CFLAGS=$CFLAGS
6929  CFLAGS="$CFLAGS -belf"
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6931$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6932if ${lt_cv_cc_needs_belf+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  ac_ext=c
6936ac_cpp='$CPP $CPPFLAGS'
6937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940
6941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942/* end confdefs.h.  */
6943
6944int
6945main ()
6946{
6947
6948  ;
6949  return 0;
6950}
6951_ACEOF
6952if ac_fn_c_try_link "$LINENO"; then :
6953  lt_cv_cc_needs_belf=yes
6954else
6955  lt_cv_cc_needs_belf=no
6956fi
6957rm -f core conftest.err conftest.$ac_objext \
6958    conftest$ac_exeext conftest.$ac_ext
6959     ac_ext=c
6960ac_cpp='$CPP $CPPFLAGS'
6961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964
6965fi
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6967$as_echo "$lt_cv_cc_needs_belf" >&6; }
6968  if test yes != "$lt_cv_cc_needs_belf"; then
6969    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6970    CFLAGS=$SAVE_CFLAGS
6971  fi
6972  ;;
6973*-*solaris*)
6974  # Find out what ABI is being produced by ac_compile, and set linker
6975  # options accordingly.
6976  echo 'int i;' > conftest.$ac_ext
6977  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6978  (eval $ac_compile) 2>&5
6979  ac_status=$?
6980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981  test $ac_status = 0; }; then
6982    case `/usr/bin/file conftest.o` in
6983    *64-bit*)
6984      case $lt_cv_prog_gnu_ld in
6985      yes*)
6986        case $host in
6987        i?86-*-solaris*|x86_64-*-solaris*)
6988          LD="${LD-ld} -m elf_x86_64"
6989          ;;
6990        sparc*-*-solaris*)
6991          LD="${LD-ld} -m elf64_sparc"
6992          ;;
6993        esac
6994        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6995        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6996          LD=${LD-ld}_sol2
6997        fi
6998        ;;
6999      *)
7000	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7001	  LD="${LD-ld} -64"
7002	fi
7003	;;
7004      esac
7005      ;;
7006    esac
7007  fi
7008  rm -rf conftest*
7009  ;;
7010esac
7011
7012need_locks=$enable_libtool_lock
7013
7014if test -n "$ac_tool_prefix"; then
7015  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7016set dummy ${ac_tool_prefix}mt; ac_word=$2
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018$as_echo_n "checking for $ac_word... " >&6; }
7019if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7020  $as_echo_n "(cached) " >&6
7021else
7022  if test -n "$MANIFEST_TOOL"; then
7023  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028  IFS=$as_save_IFS
7029  test -z "$as_dir" && as_dir=.
7030    for ac_exec_ext in '' $ac_executable_extensions; do
7031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034    break 2
7035  fi
7036done
7037  done
7038IFS=$as_save_IFS
7039
7040fi
7041fi
7042MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7043if test -n "$MANIFEST_TOOL"; then
7044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7045$as_echo "$MANIFEST_TOOL" >&6; }
7046else
7047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048$as_echo "no" >&6; }
7049fi
7050
7051
7052fi
7053if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7054  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7055  # Extract the first word of "mt", so it can be a program name with args.
7056set dummy mt; ac_word=$2
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058$as_echo_n "checking for $ac_word... " >&6; }
7059if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7060  $as_echo_n "(cached) " >&6
7061else
7062  if test -n "$ac_ct_MANIFEST_TOOL"; then
7063  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  test -z "$as_dir" && as_dir=.
7070    for ac_exec_ext in '' $ac_executable_extensions; do
7071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074    break 2
7075  fi
7076done
7077  done
7078IFS=$as_save_IFS
7079
7080fi
7081fi
7082ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7083if test -n "$ac_ct_MANIFEST_TOOL"; then
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7085$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7086else
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090
7091  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7092    MANIFEST_TOOL=":"
7093  else
7094    case $cross_compiling:$ac_tool_warned in
7095yes:)
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098ac_tool_warned=yes ;;
7099esac
7100    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7101  fi
7102else
7103  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7104fi
7105
7106test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7108$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7109if ${lt_cv_path_mainfest_tool+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  lt_cv_path_mainfest_tool=no
7113  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7114  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7115  cat conftest.err >&5
7116  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7117    lt_cv_path_mainfest_tool=yes
7118  fi
7119  rm -f conftest*
7120fi
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7122$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7123if test yes != "$lt_cv_path_mainfest_tool"; then
7124  MANIFEST_TOOL=:
7125fi
7126
7127
7128
7129
7130
7131
7132  case $host_os in
7133    rhapsody* | darwin*)
7134    if test -n "$ac_tool_prefix"; then
7135  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7136set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if ${ac_cv_prog_DSYMUTIL+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$DSYMUTIL"; then
7143  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162DSYMUTIL=$ac_cv_prog_DSYMUTIL
7163if test -n "$DSYMUTIL"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7165$as_echo "$DSYMUTIL" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172fi
7173if test -z "$ac_cv_prog_DSYMUTIL"; then
7174  ac_ct_DSYMUTIL=$DSYMUTIL
7175  # Extract the first word of "dsymutil", so it can be a program name with args.
7176set dummy dsymutil; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$ac_ct_DSYMUTIL"; then
7183  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190    for ac_exec_ext in '' $ac_executable_extensions; do
7191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197  done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7203if test -n "$ac_ct_DSYMUTIL"; then
7204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7205$as_echo "$ac_ct_DSYMUTIL" >&6; }
7206else
7207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211  if test "x$ac_ct_DSYMUTIL" = x; then
7212    DSYMUTIL=":"
7213  else
7214    case $cross_compiling:$ac_tool_warned in
7215yes:)
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218ac_tool_warned=yes ;;
7219esac
7220    DSYMUTIL=$ac_ct_DSYMUTIL
7221  fi
7222else
7223  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7224fi
7225
7226    if test -n "$ac_tool_prefix"; then
7227  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7228set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230$as_echo_n "checking for $ac_word... " >&6; }
7231if ${ac_cv_prog_NMEDIT+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  if test -n "$NMEDIT"; then
7235  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7236else
7237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240  IFS=$as_save_IFS
7241  test -z "$as_dir" && as_dir=.
7242    for ac_exec_ext in '' $ac_executable_extensions; do
7243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246    break 2
7247  fi
7248done
7249  done
7250IFS=$as_save_IFS
7251
7252fi
7253fi
7254NMEDIT=$ac_cv_prog_NMEDIT
7255if test -n "$NMEDIT"; then
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7257$as_echo "$NMEDIT" >&6; }
7258else
7259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260$as_echo "no" >&6; }
7261fi
7262
7263
7264fi
7265if test -z "$ac_cv_prog_NMEDIT"; then
7266  ac_ct_NMEDIT=$NMEDIT
7267  # Extract the first word of "nmedit", so it can be a program name with args.
7268set dummy nmedit; ac_word=$2
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270$as_echo_n "checking for $ac_word... " >&6; }
7271if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  if test -n "$ac_ct_NMEDIT"; then
7275  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282    for ac_exec_ext in '' $ac_executable_extensions; do
7283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289  done
7290IFS=$as_save_IFS
7291
7292fi
7293fi
7294ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7295if test -n "$ac_ct_NMEDIT"; then
7296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7297$as_echo "$ac_ct_NMEDIT" >&6; }
7298else
7299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300$as_echo "no" >&6; }
7301fi
7302
7303  if test "x$ac_ct_NMEDIT" = x; then
7304    NMEDIT=":"
7305  else
7306    case $cross_compiling:$ac_tool_warned in
7307yes:)
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310ac_tool_warned=yes ;;
7311esac
7312    NMEDIT=$ac_ct_NMEDIT
7313  fi
7314else
7315  NMEDIT="$ac_cv_prog_NMEDIT"
7316fi
7317
7318    if test -n "$ac_tool_prefix"; then
7319  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7320set dummy ${ac_tool_prefix}lipo; ac_word=$2
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322$as_echo_n "checking for $ac_word... " >&6; }
7323if ${ac_cv_prog_LIPO+:} false; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326  if test -n "$LIPO"; then
7327  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7328else
7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332  IFS=$as_save_IFS
7333  test -z "$as_dir" && as_dir=.
7334    for ac_exec_ext in '' $ac_executable_extensions; do
7335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338    break 2
7339  fi
7340done
7341  done
7342IFS=$as_save_IFS
7343
7344fi
7345fi
7346LIPO=$ac_cv_prog_LIPO
7347if test -n "$LIPO"; then
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7349$as_echo "$LIPO" >&6; }
7350else
7351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352$as_echo "no" >&6; }
7353fi
7354
7355
7356fi
7357if test -z "$ac_cv_prog_LIPO"; then
7358  ac_ct_LIPO=$LIPO
7359  # Extract the first word of "lipo", so it can be a program name with args.
7360set dummy lipo; ac_word=$2
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362$as_echo_n "checking for $ac_word... " >&6; }
7363if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  if test -n "$ac_ct_LIPO"; then
7367  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374    for ac_exec_ext in '' $ac_executable_extensions; do
7375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_ac_ct_LIPO="lipo"
7377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381  done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7387if test -n "$ac_ct_LIPO"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7389$as_echo "$ac_ct_LIPO" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395  if test "x$ac_ct_LIPO" = x; then
7396    LIPO=":"
7397  else
7398    case $cross_compiling:$ac_tool_warned in
7399yes:)
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402ac_tool_warned=yes ;;
7403esac
7404    LIPO=$ac_ct_LIPO
7405  fi
7406else
7407  LIPO="$ac_cv_prog_LIPO"
7408fi
7409
7410    if test -n "$ac_tool_prefix"; then
7411  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7412set dummy ${ac_tool_prefix}otool; ac_word=$2
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414$as_echo_n "checking for $ac_word... " >&6; }
7415if ${ac_cv_prog_OTOOL+:} false; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418  if test -n "$OTOOL"; then
7419  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7420else
7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424  IFS=$as_save_IFS
7425  test -z "$as_dir" && as_dir=.
7426    for ac_exec_ext in '' $ac_executable_extensions; do
7427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430    break 2
7431  fi
7432done
7433  done
7434IFS=$as_save_IFS
7435
7436fi
7437fi
7438OTOOL=$ac_cv_prog_OTOOL
7439if test -n "$OTOOL"; then
7440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7441$as_echo "$OTOOL" >&6; }
7442else
7443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444$as_echo "no" >&6; }
7445fi
7446
7447
7448fi
7449if test -z "$ac_cv_prog_OTOOL"; then
7450  ac_ct_OTOOL=$OTOOL
7451  # Extract the first word of "otool", so it can be a program name with args.
7452set dummy otool; ac_word=$2
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454$as_echo_n "checking for $ac_word... " >&6; }
7455if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  if test -n "$ac_ct_OTOOL"; then
7459  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466    for ac_exec_ext in '' $ac_executable_extensions; do
7467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468    ac_cv_prog_ac_ct_OTOOL="otool"
7469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473  done
7474IFS=$as_save_IFS
7475
7476fi
7477fi
7478ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7479if test -n "$ac_ct_OTOOL"; then
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7481$as_echo "$ac_ct_OTOOL" >&6; }
7482else
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487  if test "x$ac_ct_OTOOL" = x; then
7488    OTOOL=":"
7489  else
7490    case $cross_compiling:$ac_tool_warned in
7491yes:)
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494ac_tool_warned=yes ;;
7495esac
7496    OTOOL=$ac_ct_OTOOL
7497  fi
7498else
7499  OTOOL="$ac_cv_prog_OTOOL"
7500fi
7501
7502    if test -n "$ac_tool_prefix"; then
7503  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7504set dummy ${ac_tool_prefix}otool64; ac_word=$2
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
7507if ${ac_cv_prog_OTOOL64+:} false; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  if test -n "$OTOOL64"; then
7511  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516  IFS=$as_save_IFS
7517  test -z "$as_dir" && as_dir=.
7518    for ac_exec_ext in '' $ac_executable_extensions; do
7519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522    break 2
7523  fi
7524done
7525  done
7526IFS=$as_save_IFS
7527
7528fi
7529fi
7530OTOOL64=$ac_cv_prog_OTOOL64
7531if test -n "$OTOOL64"; then
7532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7533$as_echo "$OTOOL64" >&6; }
7534else
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539
7540fi
7541if test -z "$ac_cv_prog_OTOOL64"; then
7542  ac_ct_OTOOL64=$OTOOL64
7543  # Extract the first word of "otool64", so it can be a program name with args.
7544set dummy otool64; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
7547if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  if test -n "$ac_ct_OTOOL64"; then
7551  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556  IFS=$as_save_IFS
7557  test -z "$as_dir" && as_dir=.
7558    for ac_exec_ext in '' $ac_executable_extensions; do
7559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560    ac_cv_prog_ac_ct_OTOOL64="otool64"
7561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562    break 2
7563  fi
7564done
7565  done
7566IFS=$as_save_IFS
7567
7568fi
7569fi
7570ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7571if test -n "$ac_ct_OTOOL64"; then
7572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7573$as_echo "$ac_ct_OTOOL64" >&6; }
7574else
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579  if test "x$ac_ct_OTOOL64" = x; then
7580    OTOOL64=":"
7581  else
7582    case $cross_compiling:$ac_tool_warned in
7583yes:)
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588    OTOOL64=$ac_ct_OTOOL64
7589  fi
7590else
7591  OTOOL64="$ac_cv_prog_OTOOL64"
7592fi
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7621$as_echo_n "checking for -single_module linker flag... " >&6; }
7622if ${lt_cv_apple_cc_single_mod+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  lt_cv_apple_cc_single_mod=no
7626      if test -z "$LT_MULTI_MODULE"; then
7627	# By default we will add the -single_module flag. You can override
7628	# by either setting the environment variable LT_MULTI_MODULE
7629	# non-empty at configure time, or by adding -multi_module to the
7630	# link flags.
7631	rm -rf libconftest.dylib*
7632	echo "int foo(void){return 1;}" > conftest.c
7633	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7634-dynamiclib -Wl,-single_module conftest.c" >&5
7635	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7636	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7637        _lt_result=$?
7638	# If there is a non-empty error log, and "single_module"
7639	# appears in it, assume the flag caused a linker warning
7640        if test -s conftest.err && $GREP single_module conftest.err; then
7641	  cat conftest.err >&5
7642	# Otherwise, if the output was created with a 0 exit code from
7643	# the compiler, it worked.
7644	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7645	  lt_cv_apple_cc_single_mod=yes
7646	else
7647	  cat conftest.err >&5
7648	fi
7649	rm -rf libconftest.dylib*
7650	rm -f conftest.*
7651      fi
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7654$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7655
7656    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7657$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7658if ${lt_cv_ld_exported_symbols_list+:} false; then :
7659  $as_echo_n "(cached) " >&6
7660else
7661  lt_cv_ld_exported_symbols_list=no
7662      save_LDFLAGS=$LDFLAGS
7663      echo "_main" > conftest.sym
7664      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7665      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667
7668int
7669main ()
7670{
7671
7672  ;
7673  return 0;
7674}
7675_ACEOF
7676if ac_fn_c_try_link "$LINENO"; then :
7677  lt_cv_ld_exported_symbols_list=yes
7678else
7679  lt_cv_ld_exported_symbols_list=no
7680fi
7681rm -f core conftest.err conftest.$ac_objext \
7682    conftest$ac_exeext conftest.$ac_ext
7683	LDFLAGS=$save_LDFLAGS
7684
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7687$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7688
7689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7690$as_echo_n "checking for -force_load linker flag... " >&6; }
7691if ${lt_cv_ld_force_load+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  lt_cv_ld_force_load=no
7695      cat > conftest.c << _LT_EOF
7696int forced_loaded() { return 2;}
7697_LT_EOF
7698      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7699      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7700      echo "$AR cru libconftest.a conftest.o" >&5
7701      $AR cru libconftest.a conftest.o 2>&5
7702      echo "$RANLIB libconftest.a" >&5
7703      $RANLIB libconftest.a 2>&5
7704      cat > conftest.c << _LT_EOF
7705int main() { return 0;}
7706_LT_EOF
7707      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7708      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7709      _lt_result=$?
7710      if test -s conftest.err && $GREP force_load conftest.err; then
7711	cat conftest.err >&5
7712      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7713	lt_cv_ld_force_load=yes
7714      else
7715	cat conftest.err >&5
7716      fi
7717        rm -f conftest.err libconftest.a conftest conftest.c
7718        rm -rf conftest.dSYM
7719
7720fi
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7722$as_echo "$lt_cv_ld_force_load" >&6; }
7723    case $host_os in
7724    rhapsody* | darwin1.[012])
7725      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7726    darwin1.*)
7727      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7728    darwin*) # darwin 5.x on
7729      # if running on 10.5 or later, the deployment target defaults
7730      # to the OS version, if on x86, and 10.4, the deployment
7731      # target defaults to 10.4. Don't you love it?
7732      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7733	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7734	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7735	10.[012][,.]*)
7736	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7737	10.*)
7738	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7739      esac
7740    ;;
7741  esac
7742    if test yes = "$lt_cv_apple_cc_single_mod"; then
7743      _lt_dar_single_mod='$single_module'
7744    fi
7745    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7746      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7747    else
7748      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7749    fi
7750    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7751      _lt_dsymutil='~$DSYMUTIL $lib || :'
7752    else
7753      _lt_dsymutil=
7754    fi
7755    ;;
7756  esac
7757
7758# func_munge_path_list VARIABLE PATH
7759# -----------------------------------
7760# VARIABLE is name of variable containing _space_ separated list of
7761# directories to be munged by the contents of PATH, which is string
7762# having a format:
7763# "DIR[:DIR]:"
7764#       string "DIR[ DIR]" will be prepended to VARIABLE
7765# ":DIR[:DIR]"
7766#       string "DIR[ DIR]" will be appended to VARIABLE
7767# "DIRP[:DIRP]::[DIRA:]DIRA"
7768#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7769#       "DIRA[ DIRA]" will be appended to VARIABLE
7770# "DIR[:DIR]"
7771#       VARIABLE will be replaced by "DIR[ DIR]"
7772func_munge_path_list ()
7773{
7774    case x$2 in
7775    x)
7776        ;;
7777    *:)
7778        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7779        ;;
7780    x:*)
7781        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7782        ;;
7783    *::*)
7784        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7785        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7786        ;;
7787    *)
7788        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7789        ;;
7790    esac
7791}
7792
7793ac_ext=c
7794ac_cpp='$CPP $CPPFLAGS'
7795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7799$as_echo_n "checking how to run the C preprocessor... " >&6; }
7800# On Suns, sometimes $CPP names a directory.
7801if test -n "$CPP" && test -d "$CPP"; then
7802  CPP=
7803fi
7804if test -z "$CPP"; then
7805  if ${ac_cv_prog_CPP+:} false; then :
7806  $as_echo_n "(cached) " >&6
7807else
7808      # Double quotes because CPP needs to be expanded
7809    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7810    do
7811      ac_preproc_ok=false
7812for ac_c_preproc_warn_flag in '' yes
7813do
7814  # Use a header file that comes with gcc, so configuring glibc
7815  # with a fresh cross-compiler works.
7816  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817  # <limits.h> exists even on freestanding compilers.
7818  # On the NeXT, cc -E runs the code through the compiler's parser,
7819  # not just through cpp. "Syntax error" is here to catch this case.
7820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821/* end confdefs.h.  */
7822#ifdef __STDC__
7823# include <limits.h>
7824#else
7825# include <assert.h>
7826#endif
7827		     Syntax error
7828_ACEOF
7829if ac_fn_c_try_cpp "$LINENO"; then :
7830
7831else
7832  # Broken: fails on valid input.
7833continue
7834fi
7835rm -f conftest.err conftest.i conftest.$ac_ext
7836
7837  # OK, works on sane cases.  Now check whether nonexistent headers
7838  # can be detected and how.
7839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841#include <ac_nonexistent.h>
7842_ACEOF
7843if ac_fn_c_try_cpp "$LINENO"; then :
7844  # Broken: success on invalid input.
7845continue
7846else
7847  # Passes both tests.
7848ac_preproc_ok=:
7849break
7850fi
7851rm -f conftest.err conftest.i conftest.$ac_ext
7852
7853done
7854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7855rm -f conftest.i conftest.err conftest.$ac_ext
7856if $ac_preproc_ok; then :
7857  break
7858fi
7859
7860    done
7861    ac_cv_prog_CPP=$CPP
7862
7863fi
7864  CPP=$ac_cv_prog_CPP
7865else
7866  ac_cv_prog_CPP=$CPP
7867fi
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7869$as_echo "$CPP" >&6; }
7870ac_preproc_ok=false
7871for ac_c_preproc_warn_flag in '' yes
7872do
7873  # Use a header file that comes with gcc, so configuring glibc
7874  # with a fresh cross-compiler works.
7875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7876  # <limits.h> exists even on freestanding compilers.
7877  # On the NeXT, cc -E runs the code through the compiler's parser,
7878  # not just through cpp. "Syntax error" is here to catch this case.
7879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880/* end confdefs.h.  */
7881#ifdef __STDC__
7882# include <limits.h>
7883#else
7884# include <assert.h>
7885#endif
7886		     Syntax error
7887_ACEOF
7888if ac_fn_c_try_cpp "$LINENO"; then :
7889
7890else
7891  # Broken: fails on valid input.
7892continue
7893fi
7894rm -f conftest.err conftest.i conftest.$ac_ext
7895
7896  # OK, works on sane cases.  Now check whether nonexistent headers
7897  # can be detected and how.
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900#include <ac_nonexistent.h>
7901_ACEOF
7902if ac_fn_c_try_cpp "$LINENO"; then :
7903  # Broken: success on invalid input.
7904continue
7905else
7906  # Passes both tests.
7907ac_preproc_ok=:
7908break
7909fi
7910rm -f conftest.err conftest.i conftest.$ac_ext
7911
7912done
7913# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7914rm -f conftest.i conftest.err conftest.$ac_ext
7915if $ac_preproc_ok; then :
7916
7917else
7918  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7920as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7921See \`config.log' for more details" "$LINENO" 5; }
7922fi
7923
7924ac_ext=c
7925ac_cpp='$CPP $CPPFLAGS'
7926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929
7930
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7932$as_echo_n "checking for ANSI C header files... " >&6; }
7933if ${ac_cv_header_stdc+:} false; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h.  */
7938#include <stdlib.h>
7939#include <stdarg.h>
7940#include <string.h>
7941#include <float.h>
7942
7943int
7944main ()
7945{
7946
7947  ;
7948  return 0;
7949}
7950_ACEOF
7951if ac_fn_c_try_compile "$LINENO"; then :
7952  ac_cv_header_stdc=yes
7953else
7954  ac_cv_header_stdc=no
7955fi
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957
7958if test $ac_cv_header_stdc = yes; then
7959  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h.  */
7962#include <string.h>
7963
7964_ACEOF
7965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7966  $EGREP "memchr" >/dev/null 2>&1; then :
7967
7968else
7969  ac_cv_header_stdc=no
7970fi
7971rm -f conftest*
7972
7973fi
7974
7975if test $ac_cv_header_stdc = yes; then
7976  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979#include <stdlib.h>
7980
7981_ACEOF
7982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7983  $EGREP "free" >/dev/null 2>&1; then :
7984
7985else
7986  ac_cv_header_stdc=no
7987fi
7988rm -f conftest*
7989
7990fi
7991
7992if test $ac_cv_header_stdc = yes; then
7993  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7994  if test "$cross_compiling" = yes; then :
7995  :
7996else
7997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998/* end confdefs.h.  */
7999#include <ctype.h>
8000#include <stdlib.h>
8001#if ((' ' & 0x0FF) == 0x020)
8002# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8003# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8004#else
8005# define ISLOWER(c) \
8006		   (('a' <= (c) && (c) <= 'i') \
8007		     || ('j' <= (c) && (c) <= 'r') \
8008		     || ('s' <= (c) && (c) <= 'z'))
8009# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8010#endif
8011
8012#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8013int
8014main ()
8015{
8016  int i;
8017  for (i = 0; i < 256; i++)
8018    if (XOR (islower (i), ISLOWER (i))
8019	|| toupper (i) != TOUPPER (i))
8020      return 2;
8021  return 0;
8022}
8023_ACEOF
8024if ac_fn_c_try_run "$LINENO"; then :
8025
8026else
8027  ac_cv_header_stdc=no
8028fi
8029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8030  conftest.$ac_objext conftest.beam conftest.$ac_ext
8031fi
8032
8033fi
8034fi
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8036$as_echo "$ac_cv_header_stdc" >&6; }
8037if test $ac_cv_header_stdc = yes; then
8038
8039$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8040
8041fi
8042
8043# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8044for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8045		  inttypes.h stdint.h unistd.h
8046do :
8047  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8048ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8049"
8050if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8051  cat >>confdefs.h <<_ACEOF
8052#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8053_ACEOF
8054
8055fi
8056
8057done
8058
8059
8060for ac_header in dlfcn.h
8061do :
8062  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8063"
8064if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8065  cat >>confdefs.h <<_ACEOF
8066#define HAVE_DLFCN_H 1
8067_ACEOF
8068
8069fi
8070
8071done
8072
8073
8074
8075
8076
8077# Set options
8078# Check whether --enable-static was given.
8079if test "${enable_static+set}" = set; then :
8080  enableval=$enable_static; p=${PACKAGE-default}
8081    case $enableval in
8082    yes) enable_static=yes ;;
8083    no) enable_static=no ;;
8084    *)
8085     enable_static=no
8086      # Look at the argument we got.  We use all the common list separators.
8087      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8088      for pkg in $enableval; do
8089	IFS=$lt_save_ifs
8090	if test "X$pkg" = "X$p"; then
8091	  enable_static=yes
8092	fi
8093      done
8094      IFS=$lt_save_ifs
8095      ;;
8096    esac
8097else
8098  enable_static=no
8099fi
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110        enable_dlopen=no
8111
8112
8113  enable_win32_dll=no
8114
8115
8116            # Check whether --enable-shared was given.
8117if test "${enable_shared+set}" = set; then :
8118  enableval=$enable_shared; p=${PACKAGE-default}
8119    case $enableval in
8120    yes) enable_shared=yes ;;
8121    no) enable_shared=no ;;
8122    *)
8123      enable_shared=no
8124      # Look at the argument we got.  We use all the common list separators.
8125      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8126      for pkg in $enableval; do
8127	IFS=$lt_save_ifs
8128	if test "X$pkg" = "X$p"; then
8129	  enable_shared=yes
8130	fi
8131      done
8132      IFS=$lt_save_ifs
8133      ;;
8134    esac
8135else
8136  enable_shared=yes
8137fi
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149# Check whether --with-pic was given.
8150if test "${with_pic+set}" = set; then :
8151  withval=$with_pic; lt_p=${PACKAGE-default}
8152    case $withval in
8153    yes|no) pic_mode=$withval ;;
8154    *)
8155      pic_mode=default
8156      # Look at the argument we got.  We use all the common list separators.
8157      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8158      for lt_pkg in $withval; do
8159	IFS=$lt_save_ifs
8160	if test "X$lt_pkg" = "X$lt_p"; then
8161	  pic_mode=yes
8162	fi
8163      done
8164      IFS=$lt_save_ifs
8165      ;;
8166    esac
8167else
8168  pic_mode=default
8169fi
8170
8171
8172
8173
8174
8175
8176
8177
8178  # Check whether --enable-fast-install was given.
8179if test "${enable_fast_install+set}" = set; then :
8180  enableval=$enable_fast_install; p=${PACKAGE-default}
8181    case $enableval in
8182    yes) enable_fast_install=yes ;;
8183    no) enable_fast_install=no ;;
8184    *)
8185      enable_fast_install=no
8186      # Look at the argument we got.  We use all the common list separators.
8187      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8188      for pkg in $enableval; do
8189	IFS=$lt_save_ifs
8190	if test "X$pkg" = "X$p"; then
8191	  enable_fast_install=yes
8192	fi
8193      done
8194      IFS=$lt_save_ifs
8195      ;;
8196    esac
8197else
8198  enable_fast_install=yes
8199fi
8200
8201
8202
8203
8204
8205
8206
8207
8208  shared_archive_member_spec=
8209case $host,$enable_shared in
8210power*-*-aix[5-9]*,yes)
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8212$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8213
8214# Check whether --with-aix-soname was given.
8215if test "${with_aix_soname+set}" = set; then :
8216  withval=$with_aix_soname; case $withval in
8217    aix|svr4|both)
8218      ;;
8219    *)
8220      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8221      ;;
8222    esac
8223    lt_cv_with_aix_soname=$with_aix_soname
8224else
8225  if ${lt_cv_with_aix_soname+:} false; then :
8226  $as_echo_n "(cached) " >&6
8227else
8228  lt_cv_with_aix_soname=aix
8229fi
8230
8231    with_aix_soname=$lt_cv_with_aix_soname
8232fi
8233
8234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8235$as_echo "$with_aix_soname" >&6; }
8236  if test aix != "$with_aix_soname"; then
8237    # For the AIX way of multilib, we name the shared archive member
8238    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8239    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8240    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8241    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8242    if test 64 = "${OBJECT_MODE-32}"; then
8243      shared_archive_member_spec=shr_64
8244    else
8245      shared_archive_member_spec=shr
8246    fi
8247  fi
8248  ;;
8249*)
8250  with_aix_soname=aix
8251  ;;
8252esac
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263# This can be used to rebuild libtool when needed
8264LIBTOOL_DEPS=$ltmain
8265
8266# Always use our own libtool.
8267LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298test -z "$LN_S" && LN_S="ln -s"
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313if test -n "${ZSH_VERSION+set}"; then
8314   setopt NO_GLOB_SUBST
8315fi
8316
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8318$as_echo_n "checking for objdir... " >&6; }
8319if ${lt_cv_objdir+:} false; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322  rm -f .libs 2>/dev/null
8323mkdir .libs 2>/dev/null
8324if test -d .libs; then
8325  lt_cv_objdir=.libs
8326else
8327  # MS-DOS does not allow filenames that begin with a dot.
8328  lt_cv_objdir=_libs
8329fi
8330rmdir .libs 2>/dev/null
8331fi
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8333$as_echo "$lt_cv_objdir" >&6; }
8334objdir=$lt_cv_objdir
8335
8336
8337
8338
8339
8340cat >>confdefs.h <<_ACEOF
8341#define LT_OBJDIR "$lt_cv_objdir/"
8342_ACEOF
8343
8344
8345
8346
8347case $host_os in
8348aix3*)
8349  # AIX sometimes has problems with the GCC collect2 program.  For some
8350  # reason, if we set the COLLECT_NAMES environment variable, the problems
8351  # vanish in a puff of smoke.
8352  if test set != "${COLLECT_NAMES+set}"; then
8353    COLLECT_NAMES=
8354    export COLLECT_NAMES
8355  fi
8356  ;;
8357esac
8358
8359# Global variables:
8360ofile=libtool
8361can_build_shared=yes
8362
8363# All known linkers require a '.a' archive for static linking (except MSVC,
8364# which needs '.lib').
8365libext=a
8366
8367with_gnu_ld=$lt_cv_prog_gnu_ld
8368
8369old_CC=$CC
8370old_CFLAGS=$CFLAGS
8371
8372# Set sane defaults for various variables
8373test -z "$CC" && CC=cc
8374test -z "$LTCC" && LTCC=$CC
8375test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8376test -z "$LD" && LD=ld
8377test -z "$ac_objext" && ac_objext=o
8378
8379func_cc_basename $compiler
8380cc_basename=$func_cc_basename_result
8381
8382
8383# Only perform the check for file, if the check method requires it
8384test -z "$MAGIC_CMD" && MAGIC_CMD=file
8385case $deplibs_check_method in
8386file_magic*)
8387  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8389$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8390if ${lt_cv_path_MAGIC_CMD+:} false; then :
8391  $as_echo_n "(cached) " >&6
8392else
8393  case $MAGIC_CMD in
8394[\\/*] |  ?:[\\/]*)
8395  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8396  ;;
8397*)
8398  lt_save_MAGIC_CMD=$MAGIC_CMD
8399  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8400  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8401  for ac_dir in $ac_dummy; do
8402    IFS=$lt_save_ifs
8403    test -z "$ac_dir" && ac_dir=.
8404    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8405      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8406      if test -n "$file_magic_test_file"; then
8407	case $deplibs_check_method in
8408	"file_magic "*)
8409	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8410	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8411	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8412	    $EGREP "$file_magic_regex" > /dev/null; then
8413	    :
8414	  else
8415	    cat <<_LT_EOF 1>&2
8416
8417*** Warning: the command libtool uses to detect shared libraries,
8418*** $file_magic_cmd, produces output that libtool cannot recognize.
8419*** The result is that libtool may fail to recognize shared libraries
8420*** as such.  This will affect the creation of libtool libraries that
8421*** depend on shared libraries, but programs linked with such libtool
8422*** libraries will work regardless of this problem.  Nevertheless, you
8423*** may want to report the problem to your system manager and/or to
8424*** bug-libtool@gnu.org
8425
8426_LT_EOF
8427	  fi ;;
8428	esac
8429      fi
8430      break
8431    fi
8432  done
8433  IFS=$lt_save_ifs
8434  MAGIC_CMD=$lt_save_MAGIC_CMD
8435  ;;
8436esac
8437fi
8438
8439MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8440if test -n "$MAGIC_CMD"; then
8441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8442$as_echo "$MAGIC_CMD" >&6; }
8443else
8444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446fi
8447
8448
8449
8450
8451
8452if test -z "$lt_cv_path_MAGIC_CMD"; then
8453  if test -n "$ac_tool_prefix"; then
8454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8455$as_echo_n "checking for file... " >&6; }
8456if ${lt_cv_path_MAGIC_CMD+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  case $MAGIC_CMD in
8460[\\/*] |  ?:[\\/]*)
8461  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8462  ;;
8463*)
8464  lt_save_MAGIC_CMD=$MAGIC_CMD
8465  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8466  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8467  for ac_dir in $ac_dummy; do
8468    IFS=$lt_save_ifs
8469    test -z "$ac_dir" && ac_dir=.
8470    if test -f "$ac_dir/file"; then
8471      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8472      if test -n "$file_magic_test_file"; then
8473	case $deplibs_check_method in
8474	"file_magic "*)
8475	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8476	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8477	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8478	    $EGREP "$file_magic_regex" > /dev/null; then
8479	    :
8480	  else
8481	    cat <<_LT_EOF 1>&2
8482
8483*** Warning: the command libtool uses to detect shared libraries,
8484*** $file_magic_cmd, produces output that libtool cannot recognize.
8485*** The result is that libtool may fail to recognize shared libraries
8486*** as such.  This will affect the creation of libtool libraries that
8487*** depend on shared libraries, but programs linked with such libtool
8488*** libraries will work regardless of this problem.  Nevertheless, you
8489*** may want to report the problem to your system manager and/or to
8490*** bug-libtool@gnu.org
8491
8492_LT_EOF
8493	  fi ;;
8494	esac
8495      fi
8496      break
8497    fi
8498  done
8499  IFS=$lt_save_ifs
8500  MAGIC_CMD=$lt_save_MAGIC_CMD
8501  ;;
8502esac
8503fi
8504
8505MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8506if test -n "$MAGIC_CMD"; then
8507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8508$as_echo "$MAGIC_CMD" >&6; }
8509else
8510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511$as_echo "no" >&6; }
8512fi
8513
8514
8515  else
8516    MAGIC_CMD=:
8517  fi
8518fi
8519
8520  fi
8521  ;;
8522esac
8523
8524# Use C for the default configuration in the libtool script
8525
8526lt_save_CC=$CC
8527ac_ext=c
8528ac_cpp='$CPP $CPPFLAGS'
8529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8531ac_compiler_gnu=$ac_cv_c_compiler_gnu
8532
8533
8534# Source file extension for C test sources.
8535ac_ext=c
8536
8537# Object file extension for compiled C test sources.
8538objext=o
8539objext=$objext
8540
8541# Code to be used in simple compile tests
8542lt_simple_compile_test_code="int some_variable = 0;"
8543
8544# Code to be used in simple link tests
8545lt_simple_link_test_code='int main(){return(0);}'
8546
8547
8548
8549
8550
8551
8552
8553# If no C compiler was specified, use CC.
8554LTCC=${LTCC-"$CC"}
8555
8556# If no C compiler flags were specified, use CFLAGS.
8557LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8558
8559# Allow CC to be a program name with arguments.
8560compiler=$CC
8561
8562# Save the default compiler, since it gets overwritten when the other
8563# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8564compiler_DEFAULT=$CC
8565
8566# save warnings/boilerplate of simple test code
8567ac_outfile=conftest.$ac_objext
8568echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8569eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8570_lt_compiler_boilerplate=`cat conftest.err`
8571$RM conftest*
8572
8573ac_outfile=conftest.$ac_objext
8574echo "$lt_simple_link_test_code" >conftest.$ac_ext
8575eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8576_lt_linker_boilerplate=`cat conftest.err`
8577$RM -r conftest*
8578
8579
8580## CAVEAT EMPTOR:
8581## There is no encapsulation within the following macros, do not change
8582## the running order or otherwise move them around unless you know exactly
8583## what you are doing...
8584if test -n "$compiler"; then
8585
8586lt_prog_compiler_no_builtin_flag=
8587
8588if test yes = "$GCC"; then
8589  case $cc_basename in
8590  nvcc*)
8591    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8592  *)
8593    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8594  esac
8595
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8597$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8598if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  lt_cv_prog_compiler_rtti_exceptions=no
8602   ac_outfile=conftest.$ac_objext
8603   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8605   # Insert the option either (1) after the last *FLAGS variable, or
8606   # (2) before a word containing "conftest.", or (3) at the end.
8607   # Note that $ac_compile itself does not contain backslashes and begins
8608   # with a dollar sign (not a hyphen), so the echo should work correctly.
8609   # The option is referenced via a variable to avoid confusing sed.
8610   lt_compile=`echo "$ac_compile" | $SED \
8611   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613   -e 's:$: $lt_compiler_flag:'`
8614   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8615   (eval "$lt_compile" 2>conftest.err)
8616   ac_status=$?
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   if (exit $ac_status) && test -s "$ac_outfile"; then
8620     # The compiler can only warn and ignore the option if not recognized
8621     # So say no if there are warnings other than the usual output.
8622     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8623     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8624     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8625       lt_cv_prog_compiler_rtti_exceptions=yes
8626     fi
8627   fi
8628   $RM conftest*
8629
8630fi
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8632$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8633
8634if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8635    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8636else
8637    :
8638fi
8639
8640fi
8641
8642
8643
8644
8645
8646
8647  lt_prog_compiler_wl=
8648lt_prog_compiler_pic=
8649lt_prog_compiler_static=
8650
8651
8652  if test yes = "$GCC"; then
8653    lt_prog_compiler_wl='-Wl,'
8654    lt_prog_compiler_static='-static'
8655
8656    case $host_os in
8657      aix*)
8658      # All AIX code is PIC.
8659      if test ia64 = "$host_cpu"; then
8660	# AIX 5 now supports IA64 processor
8661	lt_prog_compiler_static='-Bstatic'
8662      fi
8663      lt_prog_compiler_pic='-fPIC'
8664      ;;
8665
8666    amigaos*)
8667      case $host_cpu in
8668      powerpc)
8669            # see comment about AmigaOS4 .so support
8670            lt_prog_compiler_pic='-fPIC'
8671        ;;
8672      m68k)
8673            # FIXME: we need at least 68020 code to build shared libraries, but
8674            # adding the '-m68020' flag to GCC prevents building anything better,
8675            # like '-m68040'.
8676            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8677        ;;
8678      esac
8679      ;;
8680
8681    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8682      # PIC is the default for these OSes.
8683      ;;
8684
8685    mingw* | cygwin* | pw32* | os2* | cegcc*)
8686      # This hack is so that the source file can tell whether it is being
8687      # built for inclusion in a dll (and should export symbols for example).
8688      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8689      # (--disable-auto-import) libraries
8690      lt_prog_compiler_pic='-DDLL_EXPORT'
8691      case $host_os in
8692      os2*)
8693	lt_prog_compiler_static='$wl-static'
8694	;;
8695      esac
8696      ;;
8697
8698    darwin* | rhapsody*)
8699      # PIC is the default on this platform
8700      # Common symbols not allowed in MH_DYLIB files
8701      lt_prog_compiler_pic='-fno-common'
8702      ;;
8703
8704    haiku*)
8705      # PIC is the default for Haiku.
8706      # The "-static" flag exists, but is broken.
8707      lt_prog_compiler_static=
8708      ;;
8709
8710    hpux*)
8711      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8712      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8713      # sets the default TLS model and affects inlining.
8714      case $host_cpu in
8715      hppa*64*)
8716	# +Z the default
8717	;;
8718      *)
8719	lt_prog_compiler_pic='-fPIC'
8720	;;
8721      esac
8722      ;;
8723
8724    interix[3-9]*)
8725      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8726      # Instead, we relocate shared libraries at runtime.
8727      ;;
8728
8729    msdosdjgpp*)
8730      # Just because we use GCC doesn't mean we suddenly get shared libraries
8731      # on systems that don't support them.
8732      lt_prog_compiler_can_build_shared=no
8733      enable_shared=no
8734      ;;
8735
8736    *nto* | *qnx*)
8737      # QNX uses GNU C++, but need to define -shared option too, otherwise
8738      # it will coredump.
8739      lt_prog_compiler_pic='-fPIC -shared'
8740      ;;
8741
8742    sysv4*MP*)
8743      if test -d /usr/nec; then
8744	lt_prog_compiler_pic=-Kconform_pic
8745      fi
8746      ;;
8747
8748    *)
8749      lt_prog_compiler_pic='-fPIC'
8750      ;;
8751    esac
8752
8753    case $cc_basename in
8754    nvcc*) # Cuda Compiler Driver 2.2
8755      lt_prog_compiler_wl='-Xlinker '
8756      if test -n "$lt_prog_compiler_pic"; then
8757        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8758      fi
8759      ;;
8760    esac
8761  else
8762    # PORTME Check for flag to pass linker flags through the system compiler.
8763    case $host_os in
8764    aix*)
8765      lt_prog_compiler_wl='-Wl,'
8766      if test ia64 = "$host_cpu"; then
8767	# AIX 5 now supports IA64 processor
8768	lt_prog_compiler_static='-Bstatic'
8769      else
8770	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8771      fi
8772      ;;
8773
8774    darwin* | rhapsody*)
8775      # PIC is the default on this platform
8776      # Common symbols not allowed in MH_DYLIB files
8777      lt_prog_compiler_pic='-fno-common'
8778      case $cc_basename in
8779      nagfor*)
8780        # NAG Fortran compiler
8781        lt_prog_compiler_wl='-Wl,-Wl,,'
8782        lt_prog_compiler_pic='-PIC'
8783        lt_prog_compiler_static='-Bstatic'
8784        ;;
8785      esac
8786      ;;
8787
8788    mingw* | cygwin* | pw32* | os2* | cegcc*)
8789      # This hack is so that the source file can tell whether it is being
8790      # built for inclusion in a dll (and should export symbols for example).
8791      lt_prog_compiler_pic='-DDLL_EXPORT'
8792      case $host_os in
8793      os2*)
8794	lt_prog_compiler_static='$wl-static'
8795	;;
8796      esac
8797      ;;
8798
8799    hpux9* | hpux10* | hpux11*)
8800      lt_prog_compiler_wl='-Wl,'
8801      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8802      # not for PA HP-UX.
8803      case $host_cpu in
8804      hppa*64*|ia64*)
8805	# +Z the default
8806	;;
8807      *)
8808	lt_prog_compiler_pic='+Z'
8809	;;
8810      esac
8811      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8812      lt_prog_compiler_static='$wl-a ${wl}archive'
8813      ;;
8814
8815    irix5* | irix6* | nonstopux*)
8816      lt_prog_compiler_wl='-Wl,'
8817      # PIC (with -KPIC) is the default.
8818      lt_prog_compiler_static='-non_shared'
8819      ;;
8820
8821    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8822      case $cc_basename in
8823      # old Intel for x86_64, which still supported -KPIC.
8824      ecc*)
8825	lt_prog_compiler_wl='-Wl,'
8826	lt_prog_compiler_pic='-KPIC'
8827	lt_prog_compiler_static='-static'
8828        ;;
8829      # icc used to be incompatible with GCC.
8830      # ICC 10 doesn't accept -KPIC any more.
8831      icc* | ifort*)
8832	lt_prog_compiler_wl='-Wl,'
8833	lt_prog_compiler_pic='-fPIC'
8834	lt_prog_compiler_static='-static'
8835        ;;
8836      # Lahey Fortran 8.1.
8837      lf95*)
8838	lt_prog_compiler_wl='-Wl,'
8839	lt_prog_compiler_pic='--shared'
8840	lt_prog_compiler_static='--static'
8841	;;
8842      nagfor*)
8843	# NAG Fortran compiler
8844	lt_prog_compiler_wl='-Wl,-Wl,,'
8845	lt_prog_compiler_pic='-PIC'
8846	lt_prog_compiler_static='-Bstatic'
8847	;;
8848      tcc*)
8849	# Fabrice Bellard et al's Tiny C Compiler
8850	lt_prog_compiler_wl='-Wl,'
8851	lt_prog_compiler_pic='-fPIC'
8852	lt_prog_compiler_static='-static'
8853	;;
8854      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8855        # Portland Group compilers (*not* the Pentium gcc compiler,
8856	# which looks to be a dead project)
8857	lt_prog_compiler_wl='-Wl,'
8858	lt_prog_compiler_pic='-fpic'
8859	lt_prog_compiler_static='-Bstatic'
8860        ;;
8861      ccc*)
8862        lt_prog_compiler_wl='-Wl,'
8863        # All Alpha code is PIC.
8864        lt_prog_compiler_static='-non_shared'
8865        ;;
8866      xl* | bgxl* | bgf* | mpixl*)
8867	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8868	lt_prog_compiler_wl='-Wl,'
8869	lt_prog_compiler_pic='-qpic'
8870	lt_prog_compiler_static='-qstaticlink'
8871	;;
8872      *)
8873	case `$CC -V 2>&1 | sed 5q` in
8874	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8875	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8876	  lt_prog_compiler_pic='-KPIC'
8877	  lt_prog_compiler_static='-Bstatic'
8878	  lt_prog_compiler_wl=''
8879	  ;;
8880	*Sun\ F* | *Sun*Fortran*)
8881	  lt_prog_compiler_pic='-KPIC'
8882	  lt_prog_compiler_static='-Bstatic'
8883	  lt_prog_compiler_wl='-Qoption ld '
8884	  ;;
8885	*Sun\ C*)
8886	  # Sun C 5.9
8887	  lt_prog_compiler_pic='-KPIC'
8888	  lt_prog_compiler_static='-Bstatic'
8889	  lt_prog_compiler_wl='-Wl,'
8890	  ;;
8891        *Intel*\ [CF]*Compiler*)
8892	  lt_prog_compiler_wl='-Wl,'
8893	  lt_prog_compiler_pic='-fPIC'
8894	  lt_prog_compiler_static='-static'
8895	  ;;
8896	*Portland\ Group*)
8897	  lt_prog_compiler_wl='-Wl,'
8898	  lt_prog_compiler_pic='-fpic'
8899	  lt_prog_compiler_static='-Bstatic'
8900	  ;;
8901	esac
8902	;;
8903      esac
8904      ;;
8905
8906    newsos6)
8907      lt_prog_compiler_pic='-KPIC'
8908      lt_prog_compiler_static='-Bstatic'
8909      ;;
8910
8911    *nto* | *qnx*)
8912      # QNX uses GNU C++, but need to define -shared option too, otherwise
8913      # it will coredump.
8914      lt_prog_compiler_pic='-fPIC -shared'
8915      ;;
8916
8917    osf3* | osf4* | osf5*)
8918      lt_prog_compiler_wl='-Wl,'
8919      # All OSF/1 code is PIC.
8920      lt_prog_compiler_static='-non_shared'
8921      ;;
8922
8923    rdos*)
8924      lt_prog_compiler_static='-non_shared'
8925      ;;
8926
8927    solaris*)
8928      lt_prog_compiler_pic='-KPIC'
8929      lt_prog_compiler_static='-Bstatic'
8930      case $cc_basename in
8931      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8932	lt_prog_compiler_wl='-Qoption ld ';;
8933      *)
8934	lt_prog_compiler_wl='-Wl,';;
8935      esac
8936      ;;
8937
8938    sunos4*)
8939      lt_prog_compiler_wl='-Qoption ld '
8940      lt_prog_compiler_pic='-PIC'
8941      lt_prog_compiler_static='-Bstatic'
8942      ;;
8943
8944    sysv4 | sysv4.2uw2* | sysv4.3*)
8945      lt_prog_compiler_wl='-Wl,'
8946      lt_prog_compiler_pic='-KPIC'
8947      lt_prog_compiler_static='-Bstatic'
8948      ;;
8949
8950    sysv4*MP*)
8951      if test -d /usr/nec; then
8952	lt_prog_compiler_pic='-Kconform_pic'
8953	lt_prog_compiler_static='-Bstatic'
8954      fi
8955      ;;
8956
8957    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8958      lt_prog_compiler_wl='-Wl,'
8959      lt_prog_compiler_pic='-KPIC'
8960      lt_prog_compiler_static='-Bstatic'
8961      ;;
8962
8963    unicos*)
8964      lt_prog_compiler_wl='-Wl,'
8965      lt_prog_compiler_can_build_shared=no
8966      ;;
8967
8968    uts4*)
8969      lt_prog_compiler_pic='-pic'
8970      lt_prog_compiler_static='-Bstatic'
8971      ;;
8972
8973    *)
8974      lt_prog_compiler_can_build_shared=no
8975      ;;
8976    esac
8977  fi
8978
8979case $host_os in
8980  # For platforms that do not support PIC, -DPIC is meaningless:
8981  *djgpp*)
8982    lt_prog_compiler_pic=
8983    ;;
8984  *)
8985    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8986    ;;
8987esac
8988
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8990$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8991if ${lt_cv_prog_compiler_pic+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8997$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8998lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8999
9000#
9001# Check to make sure the PIC flag actually works.
9002#
9003if test -n "$lt_prog_compiler_pic"; then
9004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9005$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9006if ${lt_cv_prog_compiler_pic_works+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  lt_cv_prog_compiler_pic_works=no
9010   ac_outfile=conftest.$ac_objext
9011   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9012   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9013   # Insert the option either (1) after the last *FLAGS variable, or
9014   # (2) before a word containing "conftest.", or (3) at the end.
9015   # Note that $ac_compile itself does not contain backslashes and begins
9016   # with a dollar sign (not a hyphen), so the echo should work correctly.
9017   # The option is referenced via a variable to avoid confusing sed.
9018   lt_compile=`echo "$ac_compile" | $SED \
9019   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9021   -e 's:$: $lt_compiler_flag:'`
9022   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9023   (eval "$lt_compile" 2>conftest.err)
9024   ac_status=$?
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   if (exit $ac_status) && test -s "$ac_outfile"; then
9028     # The compiler can only warn and ignore the option if not recognized
9029     # So say no if there are warnings other than the usual output.
9030     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9031     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9032     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9033       lt_cv_prog_compiler_pic_works=yes
9034     fi
9035   fi
9036   $RM conftest*
9037
9038fi
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9040$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9041
9042if test yes = "$lt_cv_prog_compiler_pic_works"; then
9043    case $lt_prog_compiler_pic in
9044     "" | " "*) ;;
9045     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9046     esac
9047else
9048    lt_prog_compiler_pic=
9049     lt_prog_compiler_can_build_shared=no
9050fi
9051
9052fi
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064#
9065# Check to make sure the static flag actually works.
9066#
9067wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9069$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9070if ${lt_cv_prog_compiler_static_works+:} false; then :
9071  $as_echo_n "(cached) " >&6
9072else
9073  lt_cv_prog_compiler_static_works=no
9074   save_LDFLAGS=$LDFLAGS
9075   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9076   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078     # The linker can only warn and ignore the option if not recognized
9079     # So say no if there are warnings
9080     if test -s conftest.err; then
9081       # Append any errors to the config.log.
9082       cat conftest.err 1>&5
9083       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9084       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085       if diff conftest.exp conftest.er2 >/dev/null; then
9086         lt_cv_prog_compiler_static_works=yes
9087       fi
9088     else
9089       lt_cv_prog_compiler_static_works=yes
9090     fi
9091   fi
9092   $RM -r conftest*
9093   LDFLAGS=$save_LDFLAGS
9094
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9097$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9098
9099if test yes = "$lt_cv_prog_compiler_static_works"; then
9100    :
9101else
9102    lt_prog_compiler_static=
9103fi
9104
9105
9106
9107
9108
9109
9110
9111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9112$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9113if ${lt_cv_prog_compiler_c_o+:} false; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  lt_cv_prog_compiler_c_o=no
9117   $RM -r conftest 2>/dev/null
9118   mkdir conftest
9119   cd conftest
9120   mkdir out
9121   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9122
9123   lt_compiler_flag="-o out/conftest2.$ac_objext"
9124   # Insert the option either (1) after the last *FLAGS variable, or
9125   # (2) before a word containing "conftest.", or (3) at the end.
9126   # Note that $ac_compile itself does not contain backslashes and begins
9127   # with a dollar sign (not a hyphen), so the echo should work correctly.
9128   lt_compile=`echo "$ac_compile" | $SED \
9129   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9130   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9131   -e 's:$: $lt_compiler_flag:'`
9132   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9133   (eval "$lt_compile" 2>out/conftest.err)
9134   ac_status=$?
9135   cat out/conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9138   then
9139     # The compiler can only warn and ignore the option if not recognized
9140     # So say no if there are warnings
9141     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9142     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9143     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9144       lt_cv_prog_compiler_c_o=yes
9145     fi
9146   fi
9147   chmod u+w . 2>&5
9148   $RM conftest*
9149   # SGI C++ compiler will create directory out/ii_files/ for
9150   # template instantiation
9151   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9152   $RM out/* && rmdir out
9153   cd ..
9154   $RM -r conftest
9155   $RM conftest*
9156
9157fi
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9159$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9160
9161
9162
9163
9164
9165
9166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9167$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9168if ${lt_cv_prog_compiler_c_o+:} false; then :
9169  $as_echo_n "(cached) " >&6
9170else
9171  lt_cv_prog_compiler_c_o=no
9172   $RM -r conftest 2>/dev/null
9173   mkdir conftest
9174   cd conftest
9175   mkdir out
9176   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9177
9178   lt_compiler_flag="-o out/conftest2.$ac_objext"
9179   # Insert the option either (1) after the last *FLAGS variable, or
9180   # (2) before a word containing "conftest.", or (3) at the end.
9181   # Note that $ac_compile itself does not contain backslashes and begins
9182   # with a dollar sign (not a hyphen), so the echo should work correctly.
9183   lt_compile=`echo "$ac_compile" | $SED \
9184   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9186   -e 's:$: $lt_compiler_flag:'`
9187   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9188   (eval "$lt_compile" 2>out/conftest.err)
9189   ac_status=$?
9190   cat out/conftest.err >&5
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9193   then
9194     # The compiler can only warn and ignore the option if not recognized
9195     # So say no if there are warnings
9196     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9197     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9198     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9199       lt_cv_prog_compiler_c_o=yes
9200     fi
9201   fi
9202   chmod u+w . 2>&5
9203   $RM conftest*
9204   # SGI C++ compiler will create directory out/ii_files/ for
9205   # template instantiation
9206   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9207   $RM out/* && rmdir out
9208   cd ..
9209   $RM -r conftest
9210   $RM conftest*
9211
9212fi
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9214$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9215
9216
9217
9218
9219hard_links=nottested
9220if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9221  # do not overwrite the value of need_locks provided by the user
9222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9223$as_echo_n "checking if we can lock with hard links... " >&6; }
9224  hard_links=yes
9225  $RM conftest*
9226  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9227  touch conftest.a
9228  ln conftest.a conftest.b 2>&5 || hard_links=no
9229  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9231$as_echo "$hard_links" >&6; }
9232  if test no = "$hard_links"; then
9233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9234$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9235    need_locks=warn
9236  fi
9237else
9238  need_locks=no
9239fi
9240
9241
9242
9243
9244
9245
9246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9247$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9248
9249  runpath_var=
9250  allow_undefined_flag=
9251  always_export_symbols=no
9252  archive_cmds=
9253  archive_expsym_cmds=
9254  compiler_needs_object=no
9255  enable_shared_with_static_runtimes=no
9256  export_dynamic_flag_spec=
9257  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9258  hardcode_automatic=no
9259  hardcode_direct=no
9260  hardcode_direct_absolute=no
9261  hardcode_libdir_flag_spec=
9262  hardcode_libdir_separator=
9263  hardcode_minus_L=no
9264  hardcode_shlibpath_var=unsupported
9265  inherit_rpath=no
9266  link_all_deplibs=unknown
9267  module_cmds=
9268  module_expsym_cmds=
9269  old_archive_from_new_cmds=
9270  old_archive_from_expsyms_cmds=
9271  thread_safe_flag_spec=
9272  whole_archive_flag_spec=
9273  # include_expsyms should be a list of space-separated symbols to be *always*
9274  # included in the symbol list
9275  include_expsyms=
9276  # exclude_expsyms can be an extended regexp of symbols to exclude
9277  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9278  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9279  # as well as any symbol that contains 'd'.
9280  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9281  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9282  # platforms (ab)use it in PIC code, but their linkers get confused if
9283  # the symbol is explicitly referenced.  Since portable code cannot
9284  # rely on this symbol name, it's probably fine to never include it in
9285  # preloaded symbol tables.
9286  # Exclude shared library initialization/finalization symbols.
9287  extract_expsyms_cmds=
9288
9289  case $host_os in
9290  cygwin* | mingw* | pw32* | cegcc*)
9291    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9292    # When not using gcc, we currently assume that we are using
9293    # Microsoft Visual C++.
9294    if test yes != "$GCC"; then
9295      with_gnu_ld=no
9296    fi
9297    ;;
9298  interix*)
9299    # we just hope/assume this is gcc and not c89 (= MSVC++)
9300    with_gnu_ld=yes
9301    ;;
9302  openbsd* | bitrig*)
9303    with_gnu_ld=no
9304    ;;
9305  esac
9306
9307  ld_shlibs=yes
9308
9309  # On some targets, GNU ld is compatible enough with the native linker
9310  # that we're better off using the native interface for both.
9311  lt_use_gnu_ld_interface=no
9312  if test yes = "$with_gnu_ld"; then
9313    case $host_os in
9314      aix*)
9315	# The AIX port of GNU ld has always aspired to compatibility
9316	# with the native linker.  However, as the warning in the GNU ld
9317	# block says, versions before 2.19.5* couldn't really create working
9318	# shared libraries, regardless of the interface used.
9319	case `$LD -v 2>&1` in
9320	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9321	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9322	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9323	  *)
9324	    lt_use_gnu_ld_interface=yes
9325	    ;;
9326	esac
9327	;;
9328      *)
9329	lt_use_gnu_ld_interface=yes
9330	;;
9331    esac
9332  fi
9333
9334  if test yes = "$lt_use_gnu_ld_interface"; then
9335    # If archive_cmds runs LD, not CC, wlarc should be empty
9336    wlarc='$wl'
9337
9338    # Set some defaults for GNU ld with shared library support. These
9339    # are reset later if shared libraries are not supported. Putting them
9340    # here allows them to be overridden if necessary.
9341    runpath_var=LD_RUN_PATH
9342    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9343    export_dynamic_flag_spec='$wl--export-dynamic'
9344    # ancient GNU ld didn't support --whole-archive et. al.
9345    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9346      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9347    else
9348      whole_archive_flag_spec=
9349    fi
9350    supports_anon_versioning=no
9351    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9352      *GNU\ gold*) supports_anon_versioning=yes ;;
9353      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9354      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9355      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9356      *\ 2.11.*) ;; # other 2.11 versions
9357      *) supports_anon_versioning=yes ;;
9358    esac
9359
9360    # See if GNU ld supports shared libraries.
9361    case $host_os in
9362    aix[3-9]*)
9363      # On AIX/PPC, the GNU linker is very broken
9364      if test ia64 != "$host_cpu"; then
9365	ld_shlibs=no
9366	cat <<_LT_EOF 1>&2
9367
9368*** Warning: the GNU linker, at least up to release 2.19, is reported
9369*** to be unable to reliably create shared libraries on AIX.
9370*** Therefore, libtool is disabling shared libraries support.  If you
9371*** really care for shared libraries, you may want to install binutils
9372*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9373*** You will then need to restart the configuration process.
9374
9375_LT_EOF
9376      fi
9377      ;;
9378
9379    amigaos*)
9380      case $host_cpu in
9381      powerpc)
9382            # see comment about AmigaOS4 .so support
9383            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9384            archive_expsym_cmds=''
9385        ;;
9386      m68k)
9387            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)'
9388            hardcode_libdir_flag_spec='-L$libdir'
9389            hardcode_minus_L=yes
9390        ;;
9391      esac
9392      ;;
9393
9394    beos*)
9395      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396	allow_undefined_flag=unsupported
9397	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9398	# support --undefined.  This deserves some investigation.  FIXME
9399	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9400      else
9401	ld_shlibs=no
9402      fi
9403      ;;
9404
9405    cygwin* | mingw* | pw32* | cegcc*)
9406      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9407      # as there is no search path for DLLs.
9408      hardcode_libdir_flag_spec='-L$libdir'
9409      export_dynamic_flag_spec='$wl--export-all-symbols'
9410      allow_undefined_flag=unsupported
9411      always_export_symbols=no
9412      enable_shared_with_static_runtimes=yes
9413      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'
9414      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9415
9416      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9417        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9418	# If the export-symbols file already is a .def file, use it as
9419	# is; otherwise, prepend EXPORTS...
9420	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9421          cp $export_symbols $output_objdir/$soname.def;
9422        else
9423          echo EXPORTS > $output_objdir/$soname.def;
9424          cat $export_symbols >> $output_objdir/$soname.def;
9425        fi~
9426        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9427      else
9428	ld_shlibs=no
9429      fi
9430      ;;
9431
9432    haiku*)
9433      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9434      link_all_deplibs=yes
9435      ;;
9436
9437    os2*)
9438      hardcode_libdir_flag_spec='-L$libdir'
9439      hardcode_minus_L=yes
9440      allow_undefined_flag=unsupported
9441      shrext_cmds=.dll
9442      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9443	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9444	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9445	$ECHO EXPORTS >> $output_objdir/$libname.def~
9446	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9447	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9448	emximp -o $lib $output_objdir/$libname.def'
9449      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9450	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9451	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9452	$ECHO EXPORTS >> $output_objdir/$libname.def~
9453	prefix_cmds="$SED"~
9454	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9455	  prefix_cmds="$prefix_cmds -e 1d";
9456	fi~
9457	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9458	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9459	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9460	emximp -o $lib $output_objdir/$libname.def'
9461      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9462      enable_shared_with_static_runtimes=yes
9463      ;;
9464
9465    interix[3-9]*)
9466      hardcode_direct=no
9467      hardcode_shlibpath_var=no
9468      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9469      export_dynamic_flag_spec='$wl-E'
9470      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9471      # Instead, shared libraries are loaded at an image base (0x10000000 by
9472      # default) and relocated if they conflict, which is a slow very memory
9473      # consuming and fragmenting process.  To avoid this, we pick a random,
9474      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9475      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9476      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9477      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'
9478      ;;
9479
9480    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9481      tmp_diet=no
9482      if test linux-dietlibc = "$host_os"; then
9483	case $cc_basename in
9484	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9485	esac
9486      fi
9487      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9488	 && test no = "$tmp_diet"
9489      then
9490	tmp_addflag=' $pic_flag'
9491	tmp_sharedflag='-shared'
9492	case $cc_basename,$host_cpu in
9493        pgcc*)				# Portland Group C compiler
9494	  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'
9495	  tmp_addflag=' $pic_flag'
9496	  ;;
9497	pgf77* | pgf90* | pgf95* | pgfortran*)
9498					# Portland Group f77 and f90 compilers
9499	  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'
9500	  tmp_addflag=' $pic_flag -Mnomain' ;;
9501	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9502	  tmp_addflag=' -i_dynamic' ;;
9503	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9504	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9505	ifc* | ifort*)			# Intel Fortran compiler
9506	  tmp_addflag=' -nofor_main' ;;
9507	lf95*)				# Lahey Fortran 8.1
9508	  whole_archive_flag_spec=
9509	  tmp_sharedflag='--shared' ;;
9510        nagfor*)                        # NAGFOR 5.3
9511          tmp_sharedflag='-Wl,-shared' ;;
9512	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9513	  tmp_sharedflag='-qmkshrobj'
9514	  tmp_addflag= ;;
9515	nvcc*)	# Cuda Compiler Driver 2.2
9516	  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'
9517	  compiler_needs_object=yes
9518	  ;;
9519	esac
9520	case `$CC -V 2>&1 | sed 5q` in
9521	*Sun\ C*)			# Sun C 5.9
9522	  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'
9523	  compiler_needs_object=yes
9524	  tmp_sharedflag='-G' ;;
9525	*Sun\ F*)			# Sun Fortran 8.3
9526	  tmp_sharedflag='-G' ;;
9527	esac
9528	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9529
9530        if test yes = "$supports_anon_versioning"; then
9531          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9532            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9533            echo "local: *; };" >> $output_objdir/$libname.ver~
9534            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9535        fi
9536
9537	case $cc_basename in
9538	tcc*)
9539	  export_dynamic_flag_spec='-rdynamic'
9540	  ;;
9541	xlf* | bgf* | bgxlf* | mpixlf*)
9542	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9543	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9544	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9545	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9546	  if test yes = "$supports_anon_versioning"; then
9547	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549              echo "local: *; };" >> $output_objdir/$libname.ver~
9550              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9551	  fi
9552	  ;;
9553	esac
9554      else
9555        ld_shlibs=no
9556      fi
9557      ;;
9558
9559    netbsd*)
9560      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9561	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9562	wlarc=
9563      else
9564	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9565	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9566      fi
9567      ;;
9568
9569    solaris*)
9570      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9571	ld_shlibs=no
9572	cat <<_LT_EOF 1>&2
9573
9574*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9575*** create shared libraries on Solaris systems.  Therefore, libtool
9576*** is disabling shared libraries support.  We urge you to upgrade GNU
9577*** binutils to release 2.9.1 or newer.  Another option is to modify
9578*** your PATH or compiler configuration so that the native linker is
9579*** used, and then restart.
9580
9581_LT_EOF
9582      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9583	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9585      else
9586	ld_shlibs=no
9587      fi
9588      ;;
9589
9590    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9591      case `$LD -v 2>&1` in
9592        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9593	ld_shlibs=no
9594	cat <<_LT_EOF 1>&2
9595
9596*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9597*** reliably create shared libraries on SCO systems.  Therefore, libtool
9598*** is disabling shared libraries support.  We urge you to upgrade GNU
9599*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9600*** your PATH or compiler configuration so that the native linker is
9601*** used, and then restart.
9602
9603_LT_EOF
9604	;;
9605	*)
9606	  # For security reasons, it is highly recommended that you always
9607	  # use absolute paths for naming shared libraries, and exclude the
9608	  # DT_RUNPATH tag from executables and libraries.  But doing so
9609	  # requires that you compile everything twice, which is a pain.
9610	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9611	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9612	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9613	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9614	  else
9615	    ld_shlibs=no
9616	  fi
9617	;;
9618      esac
9619      ;;
9620
9621    sunos4*)
9622      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9623      wlarc=
9624      hardcode_direct=yes
9625      hardcode_shlibpath_var=no
9626      ;;
9627
9628    *)
9629      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9630	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9631	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9632      else
9633	ld_shlibs=no
9634      fi
9635      ;;
9636    esac
9637
9638    if test no = "$ld_shlibs"; then
9639      runpath_var=
9640      hardcode_libdir_flag_spec=
9641      export_dynamic_flag_spec=
9642      whole_archive_flag_spec=
9643    fi
9644  else
9645    # PORTME fill in a description of your system's linker (not GNU ld)
9646    case $host_os in
9647    aix3*)
9648      allow_undefined_flag=unsupported
9649      always_export_symbols=yes
9650      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'
9651      # Note: this linker hardcodes the directories in LIBPATH if there
9652      # are no directories specified by -L.
9653      hardcode_minus_L=yes
9654      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9655	# Neither direct hardcoding nor static linking is supported with a
9656	# broken collect2.
9657	hardcode_direct=unsupported
9658      fi
9659      ;;
9660
9661    aix[4-9]*)
9662      if test ia64 = "$host_cpu"; then
9663	# On IA64, the linker does run time linking by default, so we don't
9664	# have to do anything special.
9665	aix_use_runtimelinking=no
9666	exp_sym_flag='-Bexport'
9667	no_entry_flag=
9668      else
9669	# If we're using GNU nm, then we don't want the "-C" option.
9670	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9671	# Without the "-l" option, or with the "-B" option, AIX nm treats
9672	# weak defined symbols like other global defined symbols, whereas
9673	# GNU nm marks them as "W".
9674	# While the 'weak' keyword is ignored in the Export File, we need
9675	# it in the Import File for the 'aix-soname' feature, so we have
9676	# to replace the "-B" option with "-P" for AIX nm.
9677	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9678	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9679	else
9680	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9681	fi
9682	aix_use_runtimelinking=no
9683
9684	# Test if we are trying to use run time linking or normal
9685	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9686	# have runtime linking enabled, and use it for executables.
9687	# For shared libraries, we enable/disable runtime linking
9688	# depending on the kind of the shared library created -
9689	# when "with_aix_soname,aix_use_runtimelinking" is:
9690	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9691	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9692	#            lib.a           static archive
9693	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9694	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9695	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9696	#            lib.a(lib.so.V) shared, rtl:no
9697	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9698	#            lib.a           static archive
9699	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9700	  for ld_flag in $LDFLAGS; do
9701	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9702	    aix_use_runtimelinking=yes
9703	    break
9704	  fi
9705	  done
9706	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9707	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9708	    # so we don't have lib.a shared libs to link our executables.
9709	    # We have to force runtime linking in this case.
9710	    aix_use_runtimelinking=yes
9711	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9712	  fi
9713	  ;;
9714	esac
9715
9716	exp_sym_flag='-bexport'
9717	no_entry_flag='-bnoentry'
9718      fi
9719
9720      # When large executables or shared objects are built, AIX ld can
9721      # have problems creating the table of contents.  If linking a library
9722      # or program results in "error TOC overflow" add -mminimal-toc to
9723      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9724      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9725
9726      archive_cmds=''
9727      hardcode_direct=yes
9728      hardcode_direct_absolute=yes
9729      hardcode_libdir_separator=':'
9730      link_all_deplibs=yes
9731      file_list_spec='$wl-f,'
9732      case $with_aix_soname,$aix_use_runtimelinking in
9733      aix,*) ;; # traditional, no import file
9734      svr4,* | *,yes) # use import file
9735	# The Import File defines what to hardcode.
9736	hardcode_direct=no
9737	hardcode_direct_absolute=no
9738	;;
9739      esac
9740
9741      if test yes = "$GCC"; then
9742	case $host_os in aix4.[012]|aix4.[012].*)
9743	# We only want to do this on AIX 4.2 and lower, the check
9744	# below for broken collect2 doesn't work under 4.3+
9745	  collect2name=`$CC -print-prog-name=collect2`
9746	  if test -f "$collect2name" &&
9747	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9748	  then
9749	  # We have reworked collect2
9750	  :
9751	  else
9752	  # We have old collect2
9753	  hardcode_direct=unsupported
9754	  # It fails to find uninstalled libraries when the uninstalled
9755	  # path is not listed in the libpath.  Setting hardcode_minus_L
9756	  # to unsupported forces relinking
9757	  hardcode_minus_L=yes
9758	  hardcode_libdir_flag_spec='-L$libdir'
9759	  hardcode_libdir_separator=
9760	  fi
9761	  ;;
9762	esac
9763	shared_flag='-shared'
9764	if test yes = "$aix_use_runtimelinking"; then
9765	  shared_flag="$shared_flag "'$wl-G'
9766	fi
9767	# Need to ensure runtime linking is disabled for the traditional
9768	# shared library, or the linker may eventually find shared libraries
9769	# /with/ Import File - we do not want to mix them.
9770	shared_flag_aix='-shared'
9771	shared_flag_svr4='-shared $wl-G'
9772      else
9773	# not using gcc
9774	if test ia64 = "$host_cpu"; then
9775	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9776	# chokes on -Wl,-G. The following line is correct:
9777	  shared_flag='-G'
9778	else
9779	  if test yes = "$aix_use_runtimelinking"; then
9780	    shared_flag='$wl-G'
9781	  else
9782	    shared_flag='$wl-bM:SRE'
9783	  fi
9784	  shared_flag_aix='$wl-bM:SRE'
9785	  shared_flag_svr4='$wl-G'
9786	fi
9787      fi
9788
9789      export_dynamic_flag_spec='$wl-bexpall'
9790      # It seems that -bexpall does not export symbols beginning with
9791      # underscore (_), so it is better to generate a list of symbols to export.
9792      always_export_symbols=yes
9793      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9794	# Warning - without using the other runtime loading flags (-brtl),
9795	# -berok will link without error, but may produce a broken library.
9796	allow_undefined_flag='-berok'
9797        # Determine the default libpath from the value encoded in an
9798        # empty executable.
9799        if test set = "${lt_cv_aix_libpath+set}"; then
9800  aix_libpath=$lt_cv_aix_libpath
9801else
9802  if ${lt_cv_aix_libpath_+:} false; then :
9803  $as_echo_n "(cached) " >&6
9804else
9805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h.  */
9807
9808int
9809main ()
9810{
9811
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816if ac_fn_c_try_link "$LINENO"; then :
9817
9818  lt_aix_libpath_sed='
9819      /Import File Strings/,/^$/ {
9820	  /^0/ {
9821	      s/^0  *\([^ ]*\) *$/\1/
9822	      p
9823	  }
9824      }'
9825  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9826  # Check for a 64-bit object if we didn't find anything.
9827  if test -z "$lt_cv_aix_libpath_"; then
9828    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9829  fi
9830fi
9831rm -f core conftest.err conftest.$ac_objext \
9832    conftest$ac_exeext conftest.$ac_ext
9833  if test -z "$lt_cv_aix_libpath_"; then
9834    lt_cv_aix_libpath_=/usr/lib:/lib
9835  fi
9836
9837fi
9838
9839  aix_libpath=$lt_cv_aix_libpath_
9840fi
9841
9842        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9843        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9844      else
9845	if test ia64 = "$host_cpu"; then
9846	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9847	  allow_undefined_flag="-z nodefs"
9848	  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"
9849	else
9850	 # Determine the default libpath from the value encoded in an
9851	 # empty executable.
9852	 if test set = "${lt_cv_aix_libpath+set}"; then
9853  aix_libpath=$lt_cv_aix_libpath
9854else
9855  if ${lt_cv_aix_libpath_+:} false; then :
9856  $as_echo_n "(cached) " >&6
9857else
9858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h.  */
9860
9861int
9862main ()
9863{
9864
9865  ;
9866  return 0;
9867}
9868_ACEOF
9869if ac_fn_c_try_link "$LINENO"; then :
9870
9871  lt_aix_libpath_sed='
9872      /Import File Strings/,/^$/ {
9873	  /^0/ {
9874	      s/^0  *\([^ ]*\) *$/\1/
9875	      p
9876	  }
9877      }'
9878  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879  # Check for a 64-bit object if we didn't find anything.
9880  if test -z "$lt_cv_aix_libpath_"; then
9881    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882  fi
9883fi
9884rm -f core conftest.err conftest.$ac_objext \
9885    conftest$ac_exeext conftest.$ac_ext
9886  if test -z "$lt_cv_aix_libpath_"; then
9887    lt_cv_aix_libpath_=/usr/lib:/lib
9888  fi
9889
9890fi
9891
9892  aix_libpath=$lt_cv_aix_libpath_
9893fi
9894
9895	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9896	  # Warning - without using the other run time loading flags,
9897	  # -berok will link without error, but may produce a broken library.
9898	  no_undefined_flag=' $wl-bernotok'
9899	  allow_undefined_flag=' $wl-berok'
9900	  if test yes = "$with_gnu_ld"; then
9901	    # We only use this code for GNU lds that support --whole-archive.
9902	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9903	  else
9904	    # Exported symbols can be pulled into shared objects from archives
9905	    whole_archive_flag_spec='$convenience'
9906	  fi
9907	  archive_cmds_need_lc=yes
9908	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9909	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9910	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9911	  if test svr4 != "$with_aix_soname"; then
9912	    # This is similar to how AIX traditionally builds its shared libraries.
9913	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9914	  fi
9915	  if test aix != "$with_aix_soname"; then
9916	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9917	  else
9918	    # used by -dlpreopen to get the symbols
9919	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9920	  fi
9921	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9922	fi
9923      fi
9924      ;;
9925
9926    amigaos*)
9927      case $host_cpu in
9928      powerpc)
9929            # see comment about AmigaOS4 .so support
9930            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9931            archive_expsym_cmds=''
9932        ;;
9933      m68k)
9934            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)'
9935            hardcode_libdir_flag_spec='-L$libdir'
9936            hardcode_minus_L=yes
9937        ;;
9938      esac
9939      ;;
9940
9941    bsdi[45]*)
9942      export_dynamic_flag_spec=-rdynamic
9943      ;;
9944
9945    cygwin* | mingw* | pw32* | cegcc*)
9946      # When not using gcc, we currently assume that we are using
9947      # Microsoft Visual C++.
9948      # hardcode_libdir_flag_spec is actually meaningless, as there is
9949      # no search path for DLLs.
9950      case $cc_basename in
9951      cl*)
9952	# Native MSVC
9953	hardcode_libdir_flag_spec=' '
9954	allow_undefined_flag=unsupported
9955	always_export_symbols=yes
9956	file_list_spec='@'
9957	# Tell ltmain to make .lib files, not .a files.
9958	libext=lib
9959	# Tell ltmain to make .dll files, not .so files.
9960	shrext_cmds=.dll
9961	# FIXME: Setting linknames here is a bad hack.
9962	archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9963	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9964            cp "$export_symbols" "$output_objdir/$soname.def";
9965            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9966          else
9967            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9968          fi~
9969          $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9970          linknames='
9971	# The linker will not automatically build a static lib if we build a DLL.
9972	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9973	enable_shared_with_static_runtimes=yes
9974	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9975	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9976	# Don't use ranlib
9977	old_postinstall_cmds='chmod 644 $oldlib'
9978	postlink_cmds='lt_outputfile="@OUTPUT@"~
9979          lt_tool_outputfile="@TOOL_OUTPUT@"~
9980          case $lt_outputfile in
9981            *.exe|*.EXE) ;;
9982            *)
9983              lt_outputfile=$lt_outputfile.exe
9984              lt_tool_outputfile=$lt_tool_outputfile.exe
9985              ;;
9986          esac~
9987          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9988            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9989            $RM "$lt_outputfile.manifest";
9990          fi'
9991	;;
9992      *)
9993	# Assume MSVC wrapper
9994	hardcode_libdir_flag_spec=' '
9995	allow_undefined_flag=unsupported
9996	# Tell ltmain to make .lib files, not .a files.
9997	libext=lib
9998	# Tell ltmain to make .dll files, not .so files.
9999	shrext_cmds=.dll
10000	# FIXME: Setting linknames here is a bad hack.
10001	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10002	# The linker will automatically build a .lib file if we build a DLL.
10003	old_archive_from_new_cmds='true'
10004	# FIXME: Should let the user specify the lib program.
10005	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10006	enable_shared_with_static_runtimes=yes
10007	;;
10008      esac
10009      ;;
10010
10011    darwin* | rhapsody*)
10012
10013
10014  archive_cmds_need_lc=no
10015  hardcode_direct=no
10016  hardcode_automatic=yes
10017  hardcode_shlibpath_var=unsupported
10018  if test yes = "$lt_cv_ld_force_load"; then
10019    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\"`'
10020
10021  else
10022    whole_archive_flag_spec=''
10023  fi
10024  link_all_deplibs=yes
10025  allow_undefined_flag=$_lt_dar_allow_undefined
10026  case $cc_basename in
10027     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10028     *) _lt_dar_can_shared=$GCC ;;
10029  esac
10030  if test yes = "$_lt_dar_can_shared"; then
10031    output_verbose_link_cmd=func_echo_all
10032    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10033    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10034    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"
10035    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"
10036
10037  else
10038  ld_shlibs=no
10039  fi
10040
10041      ;;
10042
10043    dgux*)
10044      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045      hardcode_libdir_flag_spec='-L$libdir'
10046      hardcode_shlibpath_var=no
10047      ;;
10048
10049    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10050    # support.  Future versions do this automatically, but an explicit c++rt0.o
10051    # does not break anything, and helps significantly (at the cost of a little
10052    # extra space).
10053    freebsd2.2*)
10054      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10055      hardcode_libdir_flag_spec='-R$libdir'
10056      hardcode_direct=yes
10057      hardcode_shlibpath_var=no
10058      ;;
10059
10060    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10061    freebsd2.*)
10062      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10063      hardcode_direct=yes
10064      hardcode_minus_L=yes
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10069    freebsd* | dragonfly*)
10070      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10071      hardcode_libdir_flag_spec='-R$libdir'
10072      hardcode_direct=yes
10073      hardcode_shlibpath_var=no
10074      ;;
10075
10076    hpux9*)
10077      if test yes = "$GCC"; then
10078	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10079      else
10080	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10081      fi
10082      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10083      hardcode_libdir_separator=:
10084      hardcode_direct=yes
10085
10086      # hardcode_minus_L: Not really in the search PATH,
10087      # but as the default location of the library.
10088      hardcode_minus_L=yes
10089      export_dynamic_flag_spec='$wl-E'
10090      ;;
10091
10092    hpux10*)
10093      if test yes,no = "$GCC,$with_gnu_ld"; then
10094	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10095      else
10096	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10097      fi
10098      if test no = "$with_gnu_ld"; then
10099	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10100	hardcode_libdir_separator=:
10101	hardcode_direct=yes
10102	hardcode_direct_absolute=yes
10103	export_dynamic_flag_spec='$wl-E'
10104	# hardcode_minus_L: Not really in the search PATH,
10105	# but as the default location of the library.
10106	hardcode_minus_L=yes
10107      fi
10108      ;;
10109
10110    hpux11*)
10111      if test yes,no = "$GCC,$with_gnu_ld"; then
10112	case $host_cpu in
10113	hppa*64*)
10114	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10115	  ;;
10116	ia64*)
10117	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10118	  ;;
10119	*)
10120	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10121	  ;;
10122	esac
10123      else
10124	case $host_cpu in
10125	hppa*64*)
10126	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10127	  ;;
10128	ia64*)
10129	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10130	  ;;
10131	*)
10132
10133	  # Older versions of the 11.00 compiler do not understand -b yet
10134	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10135	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10136$as_echo_n "checking if $CC understands -b... " >&6; }
10137if ${lt_cv_prog_compiler__b+:} false; then :
10138  $as_echo_n "(cached) " >&6
10139else
10140  lt_cv_prog_compiler__b=no
10141   save_LDFLAGS=$LDFLAGS
10142   LDFLAGS="$LDFLAGS -b"
10143   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10144   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10145     # The linker can only warn and ignore the option if not recognized
10146     # So say no if there are warnings
10147     if test -s conftest.err; then
10148       # Append any errors to the config.log.
10149       cat conftest.err 1>&5
10150       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10151       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10152       if diff conftest.exp conftest.er2 >/dev/null; then
10153         lt_cv_prog_compiler__b=yes
10154       fi
10155     else
10156       lt_cv_prog_compiler__b=yes
10157     fi
10158   fi
10159   $RM -r conftest*
10160   LDFLAGS=$save_LDFLAGS
10161
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10164$as_echo "$lt_cv_prog_compiler__b" >&6; }
10165
10166if test yes = "$lt_cv_prog_compiler__b"; then
10167    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10168else
10169    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10170fi
10171
10172	  ;;
10173	esac
10174      fi
10175      if test no = "$with_gnu_ld"; then
10176	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10177	hardcode_libdir_separator=:
10178
10179	case $host_cpu in
10180	hppa*64*|ia64*)
10181	  hardcode_direct=no
10182	  hardcode_shlibpath_var=no
10183	  ;;
10184	*)
10185	  hardcode_direct=yes
10186	  hardcode_direct_absolute=yes
10187	  export_dynamic_flag_spec='$wl-E'
10188
10189	  # hardcode_minus_L: Not really in the search PATH,
10190	  # but as the default location of the library.
10191	  hardcode_minus_L=yes
10192	  ;;
10193	esac
10194      fi
10195      ;;
10196
10197    irix5* | irix6* | nonstopux*)
10198      if test yes = "$GCC"; then
10199	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'
10200	# Try to use the -exported_symbol ld option, if it does not
10201	# work, assume that -exports_file does not work either and
10202	# implicitly export all symbols.
10203	# This should be the same for all languages, so no per-tag cache variable.
10204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10205$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10206if ${lt_cv_irix_exported_symbol+:} false; then :
10207  $as_echo_n "(cached) " >&6
10208else
10209  save_LDFLAGS=$LDFLAGS
10210	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10211	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h.  */
10213int foo (void) { return 0; }
10214_ACEOF
10215if ac_fn_c_try_link "$LINENO"; then :
10216  lt_cv_irix_exported_symbol=yes
10217else
10218  lt_cv_irix_exported_symbol=no
10219fi
10220rm -f core conftest.err conftest.$ac_objext \
10221    conftest$ac_exeext conftest.$ac_ext
10222           LDFLAGS=$save_LDFLAGS
10223fi
10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10225$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10226	if test yes = "$lt_cv_irix_exported_symbol"; then
10227          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'
10228	fi
10229      else
10230	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'
10231	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'
10232      fi
10233      archive_cmds_need_lc='no'
10234      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10235      hardcode_libdir_separator=:
10236      inherit_rpath=yes
10237      link_all_deplibs=yes
10238      ;;
10239
10240    linux*)
10241      case $cc_basename in
10242      tcc*)
10243	# Fabrice Bellard et al's Tiny C Compiler
10244	ld_shlibs=yes
10245	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10246	;;
10247      esac
10248      ;;
10249
10250    netbsd*)
10251      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10252	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10253      else
10254	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10255      fi
10256      hardcode_libdir_flag_spec='-R$libdir'
10257      hardcode_direct=yes
10258      hardcode_shlibpath_var=no
10259      ;;
10260
10261    newsos6)
10262      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10263      hardcode_direct=yes
10264      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10265      hardcode_libdir_separator=:
10266      hardcode_shlibpath_var=no
10267      ;;
10268
10269    *nto* | *qnx*)
10270      ;;
10271
10272    openbsd* | bitrig*)
10273      if test -f /usr/libexec/ld.so; then
10274	hardcode_direct=yes
10275	hardcode_shlibpath_var=no
10276	hardcode_direct_absolute=yes
10277	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10278	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10279	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10280	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10281	  export_dynamic_flag_spec='$wl-E'
10282	else
10283	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10284	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10285	fi
10286      else
10287	ld_shlibs=no
10288      fi
10289      ;;
10290
10291    os2*)
10292      hardcode_libdir_flag_spec='-L$libdir'
10293      hardcode_minus_L=yes
10294      allow_undefined_flag=unsupported
10295      shrext_cmds=.dll
10296      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10297	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10298	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10299	$ECHO EXPORTS >> $output_objdir/$libname.def~
10300	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10301	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10302	emximp -o $lib $output_objdir/$libname.def'
10303      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10304	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10305	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10306	$ECHO EXPORTS >> $output_objdir/$libname.def~
10307	prefix_cmds="$SED"~
10308	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10309	  prefix_cmds="$prefix_cmds -e 1d";
10310	fi~
10311	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10312	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10313	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10314	emximp -o $lib $output_objdir/$libname.def'
10315      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10316      enable_shared_with_static_runtimes=yes
10317      ;;
10318
10319    osf3*)
10320      if test yes = "$GCC"; then
10321	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10322	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'
10323      else
10324	allow_undefined_flag=' -expect_unresolved \*'
10325	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'
10326      fi
10327      archive_cmds_need_lc='no'
10328      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10329      hardcode_libdir_separator=:
10330      ;;
10331
10332    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10333      if test yes = "$GCC"; then
10334	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10335	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'
10336	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10337      else
10338	allow_undefined_flag=' -expect_unresolved \*'
10339	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'
10340	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~
10341          $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'
10342
10343	# Both c and cxx compiler support -rpath directly
10344	hardcode_libdir_flag_spec='-rpath $libdir'
10345      fi
10346      archive_cmds_need_lc='no'
10347      hardcode_libdir_separator=:
10348      ;;
10349
10350    solaris*)
10351      no_undefined_flag=' -z defs'
10352      if test yes = "$GCC"; then
10353	wlarc='$wl'
10354	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10355	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10356          $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'
10357      else
10358	case `$CC -V 2>&1` in
10359	*"Compilers 5.0"*)
10360	  wlarc=''
10361	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10363            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10364	  ;;
10365	*)
10366	  wlarc='$wl'
10367	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10368	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10369            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10370	  ;;
10371	esac
10372      fi
10373      hardcode_libdir_flag_spec='-R$libdir'
10374      hardcode_shlibpath_var=no
10375      case $host_os in
10376      solaris2.[0-5] | solaris2.[0-5].*) ;;
10377      *)
10378	# The compiler driver will combine and reorder linker options,
10379	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10380	# but is careful enough not to reorder.
10381	# Supported since Solaris 2.6 (maybe 2.5.1?)
10382	if test yes = "$GCC"; then
10383	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10384	else
10385	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10386	fi
10387	;;
10388      esac
10389      link_all_deplibs=yes
10390      ;;
10391
10392    sunos4*)
10393      if test sequent = "$host_vendor"; then
10394	# Use $CC to link under sequent, because it throws in some extra .o
10395	# files that make .init and .fini sections work.
10396	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10397      else
10398	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10399      fi
10400      hardcode_libdir_flag_spec='-L$libdir'
10401      hardcode_direct=yes
10402      hardcode_minus_L=yes
10403      hardcode_shlibpath_var=no
10404      ;;
10405
10406    sysv4)
10407      case $host_vendor in
10408	sni)
10409	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410	  hardcode_direct=yes # is this really true???
10411	;;
10412	siemens)
10413	  ## LD is ld it makes a PLAMLIB
10414	  ## CC just makes a GrossModule.
10415	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10416	  reload_cmds='$CC -r -o $output$reload_objs'
10417	  hardcode_direct=no
10418        ;;
10419	motorola)
10420	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10422	;;
10423      esac
10424      runpath_var='LD_RUN_PATH'
10425      hardcode_shlibpath_var=no
10426      ;;
10427
10428    sysv4.3*)
10429      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430      hardcode_shlibpath_var=no
10431      export_dynamic_flag_spec='-Bexport'
10432      ;;
10433
10434    sysv4*MP*)
10435      if test -d /usr/nec; then
10436	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10437	hardcode_shlibpath_var=no
10438	runpath_var=LD_RUN_PATH
10439	hardcode_runpath_var=yes
10440	ld_shlibs=yes
10441      fi
10442      ;;
10443
10444    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10445      no_undefined_flag='$wl-z,text'
10446      archive_cmds_need_lc=no
10447      hardcode_shlibpath_var=no
10448      runpath_var='LD_RUN_PATH'
10449
10450      if test yes = "$GCC"; then
10451	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10452	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453      else
10454	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456      fi
10457      ;;
10458
10459    sysv5* | sco3.2v5* | sco5v6*)
10460      # Note: We CANNOT use -z defs as we might desire, because we do not
10461      # link with -lc, and that would cause any symbols used from libc to
10462      # always be unresolved, which means just about no library would
10463      # ever link correctly.  If we're not using GNU ld we use -z text
10464      # though, which does catch some bad symbols but isn't as heavy-handed
10465      # as -z defs.
10466      no_undefined_flag='$wl-z,text'
10467      allow_undefined_flag='$wl-z,nodefs'
10468      archive_cmds_need_lc=no
10469      hardcode_shlibpath_var=no
10470      hardcode_libdir_flag_spec='$wl-R,$libdir'
10471      hardcode_libdir_separator=':'
10472      link_all_deplibs=yes
10473      export_dynamic_flag_spec='$wl-Bexport'
10474      runpath_var='LD_RUN_PATH'
10475
10476      if test yes = "$GCC"; then
10477	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479      else
10480	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482      fi
10483      ;;
10484
10485    uts4*)
10486      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487      hardcode_libdir_flag_spec='-L$libdir'
10488      hardcode_shlibpath_var=no
10489      ;;
10490
10491    *)
10492      ld_shlibs=no
10493      ;;
10494    esac
10495
10496    if test sni = "$host_vendor"; then
10497      case $host in
10498      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10499	export_dynamic_flag_spec='$wl-Blargedynsym'
10500	;;
10501      esac
10502    fi
10503  fi
10504
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10506$as_echo "$ld_shlibs" >&6; }
10507test no = "$ld_shlibs" && can_build_shared=no
10508
10509with_gnu_ld=$with_gnu_ld
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525#
10526# Do we need to explicitly link libc?
10527#
10528case "x$archive_cmds_need_lc" in
10529x|xyes)
10530  # Assume -lc should be added
10531  archive_cmds_need_lc=yes
10532
10533  if test yes,yes = "$GCC,$enable_shared"; then
10534    case $archive_cmds in
10535    *'~'*)
10536      # FIXME: we may have to deal with multi-command sequences.
10537      ;;
10538    '$CC '*)
10539      # Test whether the compiler implicitly links with -lc since on some
10540      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10541      # to ld, don't add -lc before -lgcc.
10542      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10543$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10544if ${lt_cv_archive_cmds_need_lc+:} false; then :
10545  $as_echo_n "(cached) " >&6
10546else
10547  $RM conftest*
10548	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10549
10550	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10551  (eval $ac_compile) 2>&5
10552  ac_status=$?
10553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10554  test $ac_status = 0; } 2>conftest.err; then
10555	  soname=conftest
10556	  lib=conftest
10557	  libobjs=conftest.$ac_objext
10558	  deplibs=
10559	  wl=$lt_prog_compiler_wl
10560	  pic_flag=$lt_prog_compiler_pic
10561	  compiler_flags=-v
10562	  linker_flags=-v
10563	  verstring=
10564	  output_objdir=.
10565	  libname=conftest
10566	  lt_save_allow_undefined_flag=$allow_undefined_flag
10567	  allow_undefined_flag=
10568	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10569  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10570  ac_status=$?
10571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10572  test $ac_status = 0; }
10573	  then
10574	    lt_cv_archive_cmds_need_lc=no
10575	  else
10576	    lt_cv_archive_cmds_need_lc=yes
10577	  fi
10578	  allow_undefined_flag=$lt_save_allow_undefined_flag
10579	else
10580	  cat conftest.err 1>&5
10581	fi
10582	$RM conftest*
10583
10584fi
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10586$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10587      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10588      ;;
10589    esac
10590  fi
10591  ;;
10592esac
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10746$as_echo_n "checking dynamic linker characteristics... " >&6; }
10747
10748if test yes = "$GCC"; then
10749  case $host_os in
10750    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10751    *) lt_awk_arg='/^libraries:/' ;;
10752  esac
10753  case $host_os in
10754    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10755    *) lt_sed_strip_eq='s|=/|/|g' ;;
10756  esac
10757  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10758  case $lt_search_path_spec in
10759  *\;*)
10760    # if the path contains ";" then we assume it to be the separator
10761    # otherwise default to the standard path separator (i.e. ":") - it is
10762    # assumed that no part of a normal pathname contains ";" but that should
10763    # okay in the real world where ";" in dirpaths is itself problematic.
10764    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10765    ;;
10766  *)
10767    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10768    ;;
10769  esac
10770  # Ok, now we have the path, separated by spaces, we can step through it
10771  # and add multilib dir if necessary...
10772  lt_tmp_lt_search_path_spec=
10773  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10774  # ...but if some path component already ends with the multilib dir we assume
10775  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10776  case "$lt_multi_os_dir; $lt_search_path_spec " in
10777  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10778    lt_multi_os_dir=
10779    ;;
10780  esac
10781  for lt_sys_path in $lt_search_path_spec; do
10782    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10783      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10784    elif test -n "$lt_multi_os_dir"; then
10785      test -d "$lt_sys_path" && \
10786	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10787    fi
10788  done
10789  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10790BEGIN {RS = " "; FS = "/|\n";} {
10791  lt_foo = "";
10792  lt_count = 0;
10793  for (lt_i = NF; lt_i > 0; lt_i--) {
10794    if ($lt_i != "" && $lt_i != ".") {
10795      if ($lt_i == "..") {
10796        lt_count++;
10797      } else {
10798        if (lt_count == 0) {
10799          lt_foo = "/" $lt_i lt_foo;
10800        } else {
10801          lt_count--;
10802        }
10803      }
10804    }
10805  }
10806  if (lt_foo != "") { lt_freq[lt_foo]++; }
10807  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10808}'`
10809  # AWK program above erroneously prepends '/' to C:/dos/paths
10810  # for these hosts.
10811  case $host_os in
10812    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10813      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10814  esac
10815  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10816else
10817  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10818fi
10819library_names_spec=
10820libname_spec='lib$name'
10821soname_spec=
10822shrext_cmds=.so
10823postinstall_cmds=
10824postuninstall_cmds=
10825finish_cmds=
10826finish_eval=
10827shlibpath_var=
10828shlibpath_overrides_runpath=unknown
10829version_type=none
10830dynamic_linker="$host_os ld.so"
10831sys_lib_dlsearch_path_spec="/lib /usr/lib"
10832need_lib_prefix=unknown
10833hardcode_into_libs=no
10834
10835# when you set need_version to no, make sure it does not cause -set_version
10836# flags to be left without arguments
10837need_version=unknown
10838
10839
10840
10841case $host_os in
10842aix3*)
10843  version_type=linux # correct to gnu/linux during the next big refactor
10844  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10845  shlibpath_var=LIBPATH
10846
10847  # AIX 3 has no versioning support, so we append a major version to the name.
10848  soname_spec='$libname$release$shared_ext$major'
10849  ;;
10850
10851aix[4-9]*)
10852  version_type=linux # correct to gnu/linux during the next big refactor
10853  need_lib_prefix=no
10854  need_version=no
10855  hardcode_into_libs=yes
10856  if test ia64 = "$host_cpu"; then
10857    # AIX 5 supports IA64
10858    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10859    shlibpath_var=LD_LIBRARY_PATH
10860  else
10861    # With GCC up to 2.95.x, collect2 would create an import file
10862    # for dependence libraries.  The import file would start with
10863    # the line '#! .'.  This would cause the generated library to
10864    # depend on '.', always an invalid library.  This was fixed in
10865    # development snapshots of GCC prior to 3.0.
10866    case $host_os in
10867      aix4 | aix4.[01] | aix4.[01].*)
10868      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10869	   echo ' yes '
10870	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10871	:
10872      else
10873	can_build_shared=no
10874      fi
10875      ;;
10876    esac
10877    # Using Import Files as archive members, it is possible to support
10878    # filename-based versioning of shared library archives on AIX. While
10879    # this would work for both with and without runtime linking, it will
10880    # prevent static linking of such archives. So we do filename-based
10881    # shared library versioning with .so extension only, which is used
10882    # when both runtime linking and shared linking is enabled.
10883    # Unfortunately, runtime linking may impact performance, so we do
10884    # not want this to be the default eventually. Also, we use the
10885    # versioned .so libs for executables only if there is the -brtl
10886    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10887    # To allow for filename-based versioning support, we need to create
10888    # libNAME.so.V as an archive file, containing:
10889    # *) an Import File, referring to the versioned filename of the
10890    #    archive as well as the shared archive member, telling the
10891    #    bitwidth (32 or 64) of that shared object, and providing the
10892    #    list of exported symbols of that shared object, eventually
10893    #    decorated with the 'weak' keyword
10894    # *) the shared object with the F_LOADONLY flag set, to really avoid
10895    #    it being seen by the linker.
10896    # At run time we better use the real file rather than another symlink,
10897    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10898
10899    case $with_aix_soname,$aix_use_runtimelinking in
10900    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10901    # soname into executable. Probably we can add versioning support to
10902    # collect2, so additional links can be useful in future.
10903    aix,yes) # traditional libtool
10904      dynamic_linker='AIX unversionable lib.so'
10905      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10906      # instead of lib<name>.a to let people know that these are not
10907      # typical AIX shared libraries.
10908      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909      ;;
10910    aix,no) # traditional AIX only
10911      dynamic_linker='AIX lib.a(lib.so.V)'
10912      # We preserve .a as extension for shared libraries through AIX4.2
10913      # and later when we are not doing run time linking.
10914      library_names_spec='$libname$release.a $libname.a'
10915      soname_spec='$libname$release$shared_ext$major'
10916      ;;
10917    svr4,*) # full svr4 only
10918      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10919      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10920      # We do not specify a path in Import Files, so LIBPATH fires.
10921      shlibpath_overrides_runpath=yes
10922      ;;
10923    *,yes) # both, prefer svr4
10924      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10925      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10926      # unpreferred sharedlib libNAME.a needs extra handling
10927      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10928      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10929      # We do not specify a path in Import Files, so LIBPATH fires.
10930      shlibpath_overrides_runpath=yes
10931      ;;
10932    *,no) # both, prefer aix
10933      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10934      library_names_spec='$libname$release.a $libname.a'
10935      soname_spec='$libname$release$shared_ext$major'
10936      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10937      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10938      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10939      ;;
10940    esac
10941    shlibpath_var=LIBPATH
10942  fi
10943  ;;
10944
10945amigaos*)
10946  case $host_cpu in
10947  powerpc)
10948    # Since July 2007 AmigaOS4 officially supports .so libraries.
10949    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10950    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10951    ;;
10952  m68k)
10953    library_names_spec='$libname.ixlibrary $libname.a'
10954    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10955    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10956    ;;
10957  esac
10958  ;;
10959
10960beos*)
10961  library_names_spec='$libname$shared_ext'
10962  dynamic_linker="$host_os ld.so"
10963  shlibpath_var=LIBRARY_PATH
10964  ;;
10965
10966bsdi[45]*)
10967  version_type=linux # correct to gnu/linux during the next big refactor
10968  need_version=no
10969  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10970  soname_spec='$libname$release$shared_ext$major'
10971  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10972  shlibpath_var=LD_LIBRARY_PATH
10973  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10974  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10975  # the default ld.so.conf also contains /usr/contrib/lib and
10976  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10977  # libtool to hard-code these into programs
10978  ;;
10979
10980cygwin* | mingw* | pw32* | cegcc*)
10981  version_type=windows
10982  shrext_cmds=.dll
10983  need_version=no
10984  need_lib_prefix=no
10985
10986  case $GCC,$cc_basename in
10987  yes,*)
10988    # gcc
10989    library_names_spec='$libname.dll.a'
10990    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10991    postinstall_cmds='base_file=`basename \$file`~
10992      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10993      dldir=$destdir/`dirname \$dlpath`~
10994      test -d \$dldir || mkdir -p \$dldir~
10995      $install_prog $dir/$dlname \$dldir/$dlname~
10996      chmod a+x \$dldir/$dlname~
10997      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10998        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10999      fi'
11000    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11001      dlpath=$dir/\$dldll~
11002       $RM \$dlpath'
11003    shlibpath_overrides_runpath=yes
11004
11005    case $host_os in
11006    cygwin*)
11007      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11008      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11009
11010      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11011      ;;
11012    mingw* | cegcc*)
11013      # MinGW DLLs use traditional 'lib' prefix
11014      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11015      ;;
11016    pw32*)
11017      # pw32 DLLs use 'pw' prefix rather than 'lib'
11018      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11019      ;;
11020    esac
11021    dynamic_linker='Win32 ld.exe'
11022    ;;
11023
11024  *,cl*)
11025    # Native MSVC
11026    libname_spec='$name'
11027    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11028    library_names_spec='$libname.dll.lib'
11029
11030    case $build_os in
11031    mingw*)
11032      sys_lib_search_path_spec=
11033      lt_save_ifs=$IFS
11034      IFS=';'
11035      for lt_path in $LIB
11036      do
11037        IFS=$lt_save_ifs
11038        # Let DOS variable expansion print the short 8.3 style file name.
11039        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11040        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11041      done
11042      IFS=$lt_save_ifs
11043      # Convert to MSYS style.
11044      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11045      ;;
11046    cygwin*)
11047      # Convert to unix form, then to dos form, then back to unix form
11048      # but this time dos style (no spaces!) so that the unix form looks
11049      # like /cygdrive/c/PROGRA~1:/cygdr...
11050      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11051      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11052      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11053      ;;
11054    *)
11055      sys_lib_search_path_spec=$LIB
11056      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11057        # It is most probably a Windows format PATH.
11058        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11059      else
11060        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11061      fi
11062      # FIXME: find the short name or the path components, as spaces are
11063      # common. (e.g. "Program Files" -> "PROGRA~1")
11064      ;;
11065    esac
11066
11067    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11068    postinstall_cmds='base_file=`basename \$file`~
11069      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11070      dldir=$destdir/`dirname \$dlpath`~
11071      test -d \$dldir || mkdir -p \$dldir~
11072      $install_prog $dir/$dlname \$dldir/$dlname'
11073    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11074      dlpath=$dir/\$dldll~
11075       $RM \$dlpath'
11076    shlibpath_overrides_runpath=yes
11077    dynamic_linker='Win32 link.exe'
11078    ;;
11079
11080  *)
11081    # Assume MSVC wrapper
11082    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11083    dynamic_linker='Win32 ld.exe'
11084    ;;
11085  esac
11086  # FIXME: first we should search . and the directory the executable is in
11087  shlibpath_var=PATH
11088  ;;
11089
11090darwin* | rhapsody*)
11091  dynamic_linker="$host_os dyld"
11092  version_type=darwin
11093  need_lib_prefix=no
11094  need_version=no
11095  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11096  soname_spec='$libname$release$major$shared_ext'
11097  shlibpath_overrides_runpath=yes
11098  shlibpath_var=DYLD_LIBRARY_PATH
11099  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11100
11101  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11102  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11103  ;;
11104
11105dgux*)
11106  version_type=linux # correct to gnu/linux during the next big refactor
11107  need_lib_prefix=no
11108  need_version=no
11109  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11110  soname_spec='$libname$release$shared_ext$major'
11111  shlibpath_var=LD_LIBRARY_PATH
11112  ;;
11113
11114freebsd* | dragonfly*)
11115  # DragonFly does not have aout.  When/if they implement a new
11116  # versioning mechanism, adjust this.
11117  if test -x /usr/bin/objformat; then
11118    objformat=`/usr/bin/objformat`
11119  else
11120    case $host_os in
11121    freebsd[23].*) objformat=aout ;;
11122    *) objformat=elf ;;
11123    esac
11124  fi
11125  version_type=freebsd-$objformat
11126  case $version_type in
11127    freebsd-elf*)
11128      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129      soname_spec='$libname$release$shared_ext$major'
11130      need_version=no
11131      need_lib_prefix=no
11132      ;;
11133    freebsd-*)
11134      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11135      need_version=yes
11136      ;;
11137  esac
11138  shlibpath_var=LD_LIBRARY_PATH
11139  case $host_os in
11140  freebsd2.*)
11141    shlibpath_overrides_runpath=yes
11142    ;;
11143  freebsd3.[01]* | freebsdelf3.[01]*)
11144    shlibpath_overrides_runpath=yes
11145    hardcode_into_libs=yes
11146    ;;
11147  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11148  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11149    shlibpath_overrides_runpath=no
11150    hardcode_into_libs=yes
11151    ;;
11152  *) # from 4.6 on, and DragonFly
11153    shlibpath_overrides_runpath=yes
11154    hardcode_into_libs=yes
11155    ;;
11156  esac
11157  ;;
11158
11159haiku*)
11160  version_type=linux # correct to gnu/linux during the next big refactor
11161  need_lib_prefix=no
11162  need_version=no
11163  dynamic_linker="$host_os runtime_loader"
11164  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165  soname_spec='$libname$release$shared_ext$major'
11166  shlibpath_var=LIBRARY_PATH
11167  shlibpath_overrides_runpath=no
11168  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11169  hardcode_into_libs=yes
11170  ;;
11171
11172hpux9* | hpux10* | hpux11*)
11173  # Give a soname corresponding to the major version so that dld.sl refuses to
11174  # link against other versions.
11175  version_type=sunos
11176  need_lib_prefix=no
11177  need_version=no
11178  case $host_cpu in
11179  ia64*)
11180    shrext_cmds='.so'
11181    hardcode_into_libs=yes
11182    dynamic_linker="$host_os dld.so"
11183    shlibpath_var=LD_LIBRARY_PATH
11184    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11185    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11186    soname_spec='$libname$release$shared_ext$major'
11187    if test 32 = "$HPUX_IA64_MODE"; then
11188      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11189      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11190    else
11191      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11192      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11193    fi
11194    ;;
11195  hppa*64*)
11196    shrext_cmds='.sl'
11197    hardcode_into_libs=yes
11198    dynamic_linker="$host_os dld.sl"
11199    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11200    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11201    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202    soname_spec='$libname$release$shared_ext$major'
11203    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11204    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11205    ;;
11206  *)
11207    shrext_cmds='.sl'
11208    dynamic_linker="$host_os dld.sl"
11209    shlibpath_var=SHLIB_PATH
11210    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11211    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11212    soname_spec='$libname$release$shared_ext$major'
11213    ;;
11214  esac
11215  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11216  postinstall_cmds='chmod 555 $lib'
11217  # or fails outright, so override atomically:
11218  install_override_mode=555
11219  ;;
11220
11221interix[3-9]*)
11222  version_type=linux # correct to gnu/linux during the next big refactor
11223  need_lib_prefix=no
11224  need_version=no
11225  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226  soname_spec='$libname$release$shared_ext$major'
11227  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11228  shlibpath_var=LD_LIBRARY_PATH
11229  shlibpath_overrides_runpath=no
11230  hardcode_into_libs=yes
11231  ;;
11232
11233irix5* | irix6* | nonstopux*)
11234  case $host_os in
11235    nonstopux*) version_type=nonstopux ;;
11236    *)
11237	if test yes = "$lt_cv_prog_gnu_ld"; then
11238		version_type=linux # correct to gnu/linux during the next big refactor
11239	else
11240		version_type=irix
11241	fi ;;
11242  esac
11243  need_lib_prefix=no
11244  need_version=no
11245  soname_spec='$libname$release$shared_ext$major'
11246  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11247  case $host_os in
11248  irix5* | nonstopux*)
11249    libsuff= shlibsuff=
11250    ;;
11251  *)
11252    case $LD in # libtool.m4 will add one of these switches to LD
11253    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11254      libsuff= shlibsuff= libmagic=32-bit;;
11255    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11256      libsuff=32 shlibsuff=N32 libmagic=N32;;
11257    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11258      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11259    *) libsuff= shlibsuff= libmagic=never-match;;
11260    esac
11261    ;;
11262  esac
11263  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11264  shlibpath_overrides_runpath=no
11265  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11266  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11267  hardcode_into_libs=yes
11268  ;;
11269
11270# No shared lib support for Linux oldld, aout, or coff.
11271linux*oldld* | linux*aout* | linux*coff*)
11272  dynamic_linker=no
11273  ;;
11274
11275linux*android*)
11276  version_type=none # Android doesn't support versioned libraries.
11277  need_lib_prefix=no
11278  need_version=no
11279  library_names_spec='$libname$release$shared_ext'
11280  soname_spec='$libname$release$shared_ext'
11281  finish_cmds=
11282  shlibpath_var=LD_LIBRARY_PATH
11283  shlibpath_overrides_runpath=yes
11284
11285  # This implies no fast_install, which is unacceptable.
11286  # Some rework will be needed to allow for fast_install
11287  # before this can be enabled.
11288  hardcode_into_libs=yes
11289
11290  dynamic_linker='Android linker'
11291  # Don't embed -rpath directories since the linker doesn't support them.
11292  hardcode_libdir_flag_spec='-L$libdir'
11293  ;;
11294
11295# This must be glibc/ELF.
11296linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11297  version_type=linux # correct to gnu/linux during the next big refactor
11298  need_lib_prefix=no
11299  need_version=no
11300  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11301  soname_spec='$libname$release$shared_ext$major'
11302  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11303  shlibpath_var=LD_LIBRARY_PATH
11304  shlibpath_overrides_runpath=no
11305
11306  # Some binutils ld are patched to set DT_RUNPATH
11307  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11308  $as_echo_n "(cached) " >&6
11309else
11310  lt_cv_shlibpath_overrides_runpath=no
11311    save_LDFLAGS=$LDFLAGS
11312    save_libdir=$libdir
11313    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11314	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316/* end confdefs.h.  */
11317
11318int
11319main ()
11320{
11321
11322  ;
11323  return 0;
11324}
11325_ACEOF
11326if ac_fn_c_try_link "$LINENO"; then :
11327  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11328  lt_cv_shlibpath_overrides_runpath=yes
11329fi
11330fi
11331rm -f core conftest.err conftest.$ac_objext \
11332    conftest$ac_exeext conftest.$ac_ext
11333    LDFLAGS=$save_LDFLAGS
11334    libdir=$save_libdir
11335
11336fi
11337
11338  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11339
11340  # This implies no fast_install, which is unacceptable.
11341  # Some rework will be needed to allow for fast_install
11342  # before this can be enabled.
11343  hardcode_into_libs=yes
11344
11345  # Ideally, we could use ldconfig to report *all* directores which are
11346  # searched for libraries, however this is still not possible.  Aside from not
11347  # being certain /sbin/ldconfig is available, command
11348  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11349  # even though it is searched at run-time.  Try to do the best guess by
11350  # appending ld.so.conf contents (and includes) to the search path.
11351  if test -f /etc/ld.so.conf; then
11352    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' ' '`
11353    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11354  fi
11355
11356  # We used to test for /lib/ld.so.1 and disable shared libraries on
11357  # powerpc, because MkLinux only supported shared libraries with the
11358  # GNU dynamic linker.  Since this was broken with cross compilers,
11359  # most powerpc-linux boxes support dynamic linking these days and
11360  # people can always --disable-shared, the test was removed, and we
11361  # assume the GNU/Linux dynamic linker is in use.
11362  dynamic_linker='GNU/Linux ld.so'
11363  ;;
11364
11365netbsd*)
11366  version_type=sunos
11367  need_lib_prefix=no
11368  need_version=no
11369  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11370    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11371    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11372    dynamic_linker='NetBSD (a.out) ld.so'
11373  else
11374    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375    soname_spec='$libname$release$shared_ext$major'
11376    dynamic_linker='NetBSD ld.elf_so'
11377  fi
11378  shlibpath_var=LD_LIBRARY_PATH
11379  shlibpath_overrides_runpath=yes
11380  hardcode_into_libs=yes
11381  ;;
11382
11383newsos6)
11384  version_type=linux # correct to gnu/linux during the next big refactor
11385  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386  shlibpath_var=LD_LIBRARY_PATH
11387  shlibpath_overrides_runpath=yes
11388  ;;
11389
11390*nto* | *qnx*)
11391  version_type=qnx
11392  need_lib_prefix=no
11393  need_version=no
11394  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11395  soname_spec='$libname$release$shared_ext$major'
11396  shlibpath_var=LD_LIBRARY_PATH
11397  shlibpath_overrides_runpath=no
11398  hardcode_into_libs=yes
11399  dynamic_linker='ldqnx.so'
11400  ;;
11401
11402openbsd* | bitrig*)
11403  version_type=sunos
11404  sys_lib_dlsearch_path_spec=/usr/lib
11405  need_lib_prefix=no
11406  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11407    need_version=no
11408  else
11409    need_version=yes
11410  fi
11411  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11412  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11413  shlibpath_var=LD_LIBRARY_PATH
11414  shlibpath_overrides_runpath=yes
11415  ;;
11416
11417os2*)
11418  libname_spec='$name'
11419  version_type=windows
11420  shrext_cmds=.dll
11421  need_version=no
11422  need_lib_prefix=no
11423  # OS/2 can only load a DLL with a base name of 8 characters or less.
11424  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11425    v=$($ECHO $release$versuffix | tr -d .-);
11426    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11427    $ECHO $n$v`$shared_ext'
11428  library_names_spec='${libname}_dll.$libext'
11429  dynamic_linker='OS/2 ld.exe'
11430  shlibpath_var=BEGINLIBPATH
11431  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11432  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11433  postinstall_cmds='base_file=`basename \$file`~
11434    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11435    dldir=$destdir/`dirname \$dlpath`~
11436    test -d \$dldir || mkdir -p \$dldir~
11437    $install_prog $dir/$dlname \$dldir/$dlname~
11438    chmod a+x \$dldir/$dlname~
11439    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11440      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11441    fi'
11442  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11443    dlpath=$dir/\$dldll~
11444    $RM \$dlpath'
11445  ;;
11446
11447osf3* | osf4* | osf5*)
11448  version_type=osf
11449  need_lib_prefix=no
11450  need_version=no
11451  soname_spec='$libname$release$shared_ext$major'
11452  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11453  shlibpath_var=LD_LIBRARY_PATH
11454  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11455  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11456  ;;
11457
11458rdos*)
11459  dynamic_linker=no
11460  ;;
11461
11462solaris*)
11463  version_type=linux # correct to gnu/linux during the next big refactor
11464  need_lib_prefix=no
11465  need_version=no
11466  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11467  soname_spec='$libname$release$shared_ext$major'
11468  shlibpath_var=LD_LIBRARY_PATH
11469  shlibpath_overrides_runpath=yes
11470  hardcode_into_libs=yes
11471  # ldd complains unless libraries are executable
11472  postinstall_cmds='chmod +x $lib'
11473  ;;
11474
11475sunos4*)
11476  version_type=sunos
11477  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11478  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11479  shlibpath_var=LD_LIBRARY_PATH
11480  shlibpath_overrides_runpath=yes
11481  if test yes = "$with_gnu_ld"; then
11482    need_lib_prefix=no
11483  fi
11484  need_version=yes
11485  ;;
11486
11487sysv4 | sysv4.3*)
11488  version_type=linux # correct to gnu/linux during the next big refactor
11489  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11490  soname_spec='$libname$release$shared_ext$major'
11491  shlibpath_var=LD_LIBRARY_PATH
11492  case $host_vendor in
11493    sni)
11494      shlibpath_overrides_runpath=no
11495      need_lib_prefix=no
11496      runpath_var=LD_RUN_PATH
11497      ;;
11498    siemens)
11499      need_lib_prefix=no
11500      ;;
11501    motorola)
11502      need_lib_prefix=no
11503      need_version=no
11504      shlibpath_overrides_runpath=no
11505      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11506      ;;
11507  esac
11508  ;;
11509
11510sysv4*MP*)
11511  if test -d /usr/nec; then
11512    version_type=linux # correct to gnu/linux during the next big refactor
11513    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11514    soname_spec='$libname$shared_ext.$major'
11515    shlibpath_var=LD_LIBRARY_PATH
11516  fi
11517  ;;
11518
11519sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11520  version_type=sco
11521  need_lib_prefix=no
11522  need_version=no
11523  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11524  soname_spec='$libname$release$shared_ext$major'
11525  shlibpath_var=LD_LIBRARY_PATH
11526  shlibpath_overrides_runpath=yes
11527  hardcode_into_libs=yes
11528  if test yes = "$with_gnu_ld"; then
11529    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11530  else
11531    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11532    case $host_os in
11533      sco3.2v5*)
11534        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11535	;;
11536    esac
11537  fi
11538  sys_lib_dlsearch_path_spec='/usr/lib'
11539  ;;
11540
11541tpf*)
11542  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11543  version_type=linux # correct to gnu/linux during the next big refactor
11544  need_lib_prefix=no
11545  need_version=no
11546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11547  shlibpath_var=LD_LIBRARY_PATH
11548  shlibpath_overrides_runpath=no
11549  hardcode_into_libs=yes
11550  ;;
11551
11552uts4*)
11553  version_type=linux # correct to gnu/linux during the next big refactor
11554  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11555  soname_spec='$libname$release$shared_ext$major'
11556  shlibpath_var=LD_LIBRARY_PATH
11557  ;;
11558
11559*)
11560  dynamic_linker=no
11561  ;;
11562esac
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11564$as_echo "$dynamic_linker" >&6; }
11565test no = "$dynamic_linker" && can_build_shared=no
11566
11567variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11568if test yes = "$GCC"; then
11569  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11570fi
11571
11572if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11573  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11574fi
11575
11576if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11577  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11578fi
11579
11580# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11581configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11582
11583# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11584func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11585
11586# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11587configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11686$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11687hardcode_action=
11688if test -n "$hardcode_libdir_flag_spec" ||
11689   test -n "$runpath_var" ||
11690   test yes = "$hardcode_automatic"; then
11691
11692  # We can hardcode non-existent directories.
11693  if test no != "$hardcode_direct" &&
11694     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11695     # have to relink, otherwise we might link with an installed library
11696     # when we should be linking with a yet-to-be-installed one
11697     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11698     test no != "$hardcode_minus_L"; then
11699    # Linking always hardcodes the temporary library directory.
11700    hardcode_action=relink
11701  else
11702    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11703    hardcode_action=immediate
11704  fi
11705else
11706  # We cannot hardcode anything, or else we can only hardcode existing
11707  # directories.
11708  hardcode_action=unsupported
11709fi
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11711$as_echo "$hardcode_action" >&6; }
11712
11713if test relink = "$hardcode_action" ||
11714   test yes = "$inherit_rpath"; then
11715  # Fast installation is not supported
11716  enable_fast_install=no
11717elif test yes = "$shlibpath_overrides_runpath" ||
11718     test no = "$enable_shared"; then
11719  # Fast installation is not necessary
11720  enable_fast_install=needless
11721fi
11722
11723
11724
11725
11726
11727
11728  if test yes != "$enable_dlopen"; then
11729  enable_dlopen=unknown
11730  enable_dlopen_self=unknown
11731  enable_dlopen_self_static=unknown
11732else
11733  lt_cv_dlopen=no
11734  lt_cv_dlopen_libs=
11735
11736  case $host_os in
11737  beos*)
11738    lt_cv_dlopen=load_add_on
11739    lt_cv_dlopen_libs=
11740    lt_cv_dlopen_self=yes
11741    ;;
11742
11743  mingw* | pw32* | cegcc*)
11744    lt_cv_dlopen=LoadLibrary
11745    lt_cv_dlopen_libs=
11746    ;;
11747
11748  cygwin*)
11749    lt_cv_dlopen=dlopen
11750    lt_cv_dlopen_libs=
11751    ;;
11752
11753  darwin*)
11754    # if libdl is installed we need to link against it
11755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11756$as_echo_n "checking for dlopen in -ldl... " >&6; }
11757if ${ac_cv_lib_dl_dlopen+:} false; then :
11758  $as_echo_n "(cached) " >&6
11759else
11760  ac_check_lib_save_LIBS=$LIBS
11761LIBS="-ldl  $LIBS"
11762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763/* end confdefs.h.  */
11764
11765/* Override any GCC internal prototype to avoid an error.
11766   Use char because int might match the return type of a GCC
11767   builtin and then its argument prototype would still apply.  */
11768#ifdef __cplusplus
11769extern "C"
11770#endif
11771char dlopen ();
11772int
11773main ()
11774{
11775return dlopen ();
11776  ;
11777  return 0;
11778}
11779_ACEOF
11780if ac_fn_c_try_link "$LINENO"; then :
11781  ac_cv_lib_dl_dlopen=yes
11782else
11783  ac_cv_lib_dl_dlopen=no
11784fi
11785rm -f core conftest.err conftest.$ac_objext \
11786    conftest$ac_exeext conftest.$ac_ext
11787LIBS=$ac_check_lib_save_LIBS
11788fi
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11790$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11791if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11792  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11793else
11794
11795    lt_cv_dlopen=dyld
11796    lt_cv_dlopen_libs=
11797    lt_cv_dlopen_self=yes
11798
11799fi
11800
11801    ;;
11802
11803  tpf*)
11804    # Don't try to run any link tests for TPF.  We know it's impossible
11805    # because TPF is a cross-compiler, and we know how we open DSOs.
11806    lt_cv_dlopen=dlopen
11807    lt_cv_dlopen_libs=
11808    lt_cv_dlopen_self=no
11809    ;;
11810
11811  *)
11812    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11813if test "x$ac_cv_func_shl_load" = xyes; then :
11814  lt_cv_dlopen=shl_load
11815else
11816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11817$as_echo_n "checking for shl_load in -ldld... " >&6; }
11818if ${ac_cv_lib_dld_shl_load+:} false; then :
11819  $as_echo_n "(cached) " >&6
11820else
11821  ac_check_lib_save_LIBS=$LIBS
11822LIBS="-ldld  $LIBS"
11823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824/* end confdefs.h.  */
11825
11826/* Override any GCC internal prototype to avoid an error.
11827   Use char because int might match the return type of a GCC
11828   builtin and then its argument prototype would still apply.  */
11829#ifdef __cplusplus
11830extern "C"
11831#endif
11832char shl_load ();
11833int
11834main ()
11835{
11836return shl_load ();
11837  ;
11838  return 0;
11839}
11840_ACEOF
11841if ac_fn_c_try_link "$LINENO"; then :
11842  ac_cv_lib_dld_shl_load=yes
11843else
11844  ac_cv_lib_dld_shl_load=no
11845fi
11846rm -f core conftest.err conftest.$ac_objext \
11847    conftest$ac_exeext conftest.$ac_ext
11848LIBS=$ac_check_lib_save_LIBS
11849fi
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11851$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11852if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11853  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11854else
11855  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11856if test "x$ac_cv_func_dlopen" = xyes; then :
11857  lt_cv_dlopen=dlopen
11858else
11859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11860$as_echo_n "checking for dlopen in -ldl... " >&6; }
11861if ${ac_cv_lib_dl_dlopen+:} false; then :
11862  $as_echo_n "(cached) " >&6
11863else
11864  ac_check_lib_save_LIBS=$LIBS
11865LIBS="-ldl  $LIBS"
11866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867/* end confdefs.h.  */
11868
11869/* Override any GCC internal prototype to avoid an error.
11870   Use char because int might match the return type of a GCC
11871   builtin and then its argument prototype would still apply.  */
11872#ifdef __cplusplus
11873extern "C"
11874#endif
11875char dlopen ();
11876int
11877main ()
11878{
11879return dlopen ();
11880  ;
11881  return 0;
11882}
11883_ACEOF
11884if ac_fn_c_try_link "$LINENO"; then :
11885  ac_cv_lib_dl_dlopen=yes
11886else
11887  ac_cv_lib_dl_dlopen=no
11888fi
11889rm -f core conftest.err conftest.$ac_objext \
11890    conftest$ac_exeext conftest.$ac_ext
11891LIBS=$ac_check_lib_save_LIBS
11892fi
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11894$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11895if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11896  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11897else
11898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11899$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11900if ${ac_cv_lib_svld_dlopen+:} false; then :
11901  $as_echo_n "(cached) " >&6
11902else
11903  ac_check_lib_save_LIBS=$LIBS
11904LIBS="-lsvld  $LIBS"
11905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906/* end confdefs.h.  */
11907
11908/* Override any GCC internal prototype to avoid an error.
11909   Use char because int might match the return type of a GCC
11910   builtin and then its argument prototype would still apply.  */
11911#ifdef __cplusplus
11912extern "C"
11913#endif
11914char dlopen ();
11915int
11916main ()
11917{
11918return dlopen ();
11919  ;
11920  return 0;
11921}
11922_ACEOF
11923if ac_fn_c_try_link "$LINENO"; then :
11924  ac_cv_lib_svld_dlopen=yes
11925else
11926  ac_cv_lib_svld_dlopen=no
11927fi
11928rm -f core conftest.err conftest.$ac_objext \
11929    conftest$ac_exeext conftest.$ac_ext
11930LIBS=$ac_check_lib_save_LIBS
11931fi
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11933$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11934if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11935  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11936else
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11938$as_echo_n "checking for dld_link in -ldld... " >&6; }
11939if ${ac_cv_lib_dld_dld_link+:} false; then :
11940  $as_echo_n "(cached) " >&6
11941else
11942  ac_check_lib_save_LIBS=$LIBS
11943LIBS="-ldld  $LIBS"
11944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945/* end confdefs.h.  */
11946
11947/* Override any GCC internal prototype to avoid an error.
11948   Use char because int might match the return type of a GCC
11949   builtin and then its argument prototype would still apply.  */
11950#ifdef __cplusplus
11951extern "C"
11952#endif
11953char dld_link ();
11954int
11955main ()
11956{
11957return dld_link ();
11958  ;
11959  return 0;
11960}
11961_ACEOF
11962if ac_fn_c_try_link "$LINENO"; then :
11963  ac_cv_lib_dld_dld_link=yes
11964else
11965  ac_cv_lib_dld_dld_link=no
11966fi
11967rm -f core conftest.err conftest.$ac_objext \
11968    conftest$ac_exeext conftest.$ac_ext
11969LIBS=$ac_check_lib_save_LIBS
11970fi
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11972$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11973if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11974  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11975fi
11976
11977
11978fi
11979
11980
11981fi
11982
11983
11984fi
11985
11986
11987fi
11988
11989
11990fi
11991
11992    ;;
11993  esac
11994
11995  if test no = "$lt_cv_dlopen"; then
11996    enable_dlopen=no
11997  else
11998    enable_dlopen=yes
11999  fi
12000
12001  case $lt_cv_dlopen in
12002  dlopen)
12003    save_CPPFLAGS=$CPPFLAGS
12004    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12005
12006    save_LDFLAGS=$LDFLAGS
12007    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12008
12009    save_LIBS=$LIBS
12010    LIBS="$lt_cv_dlopen_libs $LIBS"
12011
12012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12013$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12014if ${lt_cv_dlopen_self+:} false; then :
12015  $as_echo_n "(cached) " >&6
12016else
12017  	  if test yes = "$cross_compiling"; then :
12018  lt_cv_dlopen_self=cross
12019else
12020  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12021  lt_status=$lt_dlunknown
12022  cat > conftest.$ac_ext <<_LT_EOF
12023#line $LINENO "configure"
12024#include "confdefs.h"
12025
12026#if HAVE_DLFCN_H
12027#include <dlfcn.h>
12028#endif
12029
12030#include <stdio.h>
12031
12032#ifdef RTLD_GLOBAL
12033#  define LT_DLGLOBAL		RTLD_GLOBAL
12034#else
12035#  ifdef DL_GLOBAL
12036#    define LT_DLGLOBAL		DL_GLOBAL
12037#  else
12038#    define LT_DLGLOBAL		0
12039#  endif
12040#endif
12041
12042/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12043   find out it does not work in some platform. */
12044#ifndef LT_DLLAZY_OR_NOW
12045#  ifdef RTLD_LAZY
12046#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12047#  else
12048#    ifdef DL_LAZY
12049#      define LT_DLLAZY_OR_NOW		DL_LAZY
12050#    else
12051#      ifdef RTLD_NOW
12052#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12053#      else
12054#        ifdef DL_NOW
12055#          define LT_DLLAZY_OR_NOW	DL_NOW
12056#        else
12057#          define LT_DLLAZY_OR_NOW	0
12058#        endif
12059#      endif
12060#    endif
12061#  endif
12062#endif
12063
12064/* When -fvisibility=hidden is used, assume the code has been annotated
12065   correspondingly for the symbols needed.  */
12066#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12067int fnord () __attribute__((visibility("default")));
12068#endif
12069
12070int fnord () { return 42; }
12071int main ()
12072{
12073  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12074  int status = $lt_dlunknown;
12075
12076  if (self)
12077    {
12078      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12079      else
12080        {
12081	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12082          else puts (dlerror ());
12083	}
12084      /* dlclose (self); */
12085    }
12086  else
12087    puts (dlerror ());
12088
12089  return status;
12090}
12091_LT_EOF
12092  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12093  (eval $ac_link) 2>&5
12094  ac_status=$?
12095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12096  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12097    (./conftest; exit; ) >&5 2>/dev/null
12098    lt_status=$?
12099    case x$lt_status in
12100      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12101      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12102      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12103    esac
12104  else :
12105    # compilation failed
12106    lt_cv_dlopen_self=no
12107  fi
12108fi
12109rm -fr conftest*
12110
12111
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12114$as_echo "$lt_cv_dlopen_self" >&6; }
12115
12116    if test yes = "$lt_cv_dlopen_self"; then
12117      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12118      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12119$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12120if ${lt_cv_dlopen_self_static+:} false; then :
12121  $as_echo_n "(cached) " >&6
12122else
12123  	  if test yes = "$cross_compiling"; then :
12124  lt_cv_dlopen_self_static=cross
12125else
12126  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12127  lt_status=$lt_dlunknown
12128  cat > conftest.$ac_ext <<_LT_EOF
12129#line $LINENO "configure"
12130#include "confdefs.h"
12131
12132#if HAVE_DLFCN_H
12133#include <dlfcn.h>
12134#endif
12135
12136#include <stdio.h>
12137
12138#ifdef RTLD_GLOBAL
12139#  define LT_DLGLOBAL		RTLD_GLOBAL
12140#else
12141#  ifdef DL_GLOBAL
12142#    define LT_DLGLOBAL		DL_GLOBAL
12143#  else
12144#    define LT_DLGLOBAL		0
12145#  endif
12146#endif
12147
12148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12149   find out it does not work in some platform. */
12150#ifndef LT_DLLAZY_OR_NOW
12151#  ifdef RTLD_LAZY
12152#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12153#  else
12154#    ifdef DL_LAZY
12155#      define LT_DLLAZY_OR_NOW		DL_LAZY
12156#    else
12157#      ifdef RTLD_NOW
12158#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12159#      else
12160#        ifdef DL_NOW
12161#          define LT_DLLAZY_OR_NOW	DL_NOW
12162#        else
12163#          define LT_DLLAZY_OR_NOW	0
12164#        endif
12165#      endif
12166#    endif
12167#  endif
12168#endif
12169
12170/* When -fvisibility=hidden is used, assume the code has been annotated
12171   correspondingly for the symbols needed.  */
12172#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12173int fnord () __attribute__((visibility("default")));
12174#endif
12175
12176int fnord () { return 42; }
12177int main ()
12178{
12179  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180  int status = $lt_dlunknown;
12181
12182  if (self)
12183    {
12184      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12185      else
12186        {
12187	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12188          else puts (dlerror ());
12189	}
12190      /* dlclose (self); */
12191    }
12192  else
12193    puts (dlerror ());
12194
12195  return status;
12196}
12197_LT_EOF
12198  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12199  (eval $ac_link) 2>&5
12200  ac_status=$?
12201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12203    (./conftest; exit; ) >&5 2>/dev/null
12204    lt_status=$?
12205    case x$lt_status in
12206      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12207      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12208      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12209    esac
12210  else :
12211    # compilation failed
12212    lt_cv_dlopen_self_static=no
12213  fi
12214fi
12215rm -fr conftest*
12216
12217
12218fi
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12220$as_echo "$lt_cv_dlopen_self_static" >&6; }
12221    fi
12222
12223    CPPFLAGS=$save_CPPFLAGS
12224    LDFLAGS=$save_LDFLAGS
12225    LIBS=$save_LIBS
12226    ;;
12227  esac
12228
12229  case $lt_cv_dlopen_self in
12230  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12231  *) enable_dlopen_self=unknown ;;
12232  esac
12233
12234  case $lt_cv_dlopen_self_static in
12235  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12236  *) enable_dlopen_self_static=unknown ;;
12237  esac
12238fi
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256striplib=
12257old_striplib=
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12259$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12260if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12261  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12262  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12264$as_echo "yes" >&6; }
12265else
12266# FIXME - insert some real tests, host_os isn't really good enough
12267  case $host_os in
12268  darwin*)
12269    if test -n "$STRIP"; then
12270      striplib="$STRIP -x"
12271      old_striplib="$STRIP -S"
12272      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273$as_echo "yes" >&6; }
12274    else
12275      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277    fi
12278    ;;
12279  *)
12280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282    ;;
12283  esac
12284fi
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297  # Report what library types will actually be built
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12299$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12301$as_echo "$can_build_shared" >&6; }
12302
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12304$as_echo_n "checking whether to build shared libraries... " >&6; }
12305  test no = "$can_build_shared" && enable_shared=no
12306
12307  # On AIX, shared libraries and static libraries use the same namespace, and
12308  # are all built from PIC.
12309  case $host_os in
12310  aix3*)
12311    test yes = "$enable_shared" && enable_static=no
12312    if test -n "$RANLIB"; then
12313      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12314      postinstall_cmds='$RANLIB $lib'
12315    fi
12316    ;;
12317
12318  aix[4-9]*)
12319    if test ia64 != "$host_cpu"; then
12320      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12321      yes,aix,yes) ;;			# shared object as lib.so file only
12322      yes,svr4,*) ;;			# shared object as lib.so archive member only
12323      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12324      esac
12325    fi
12326    ;;
12327  esac
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12329$as_echo "$enable_shared" >&6; }
12330
12331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12332$as_echo_n "checking whether to build static libraries... " >&6; }
12333  # Make sure either enable_shared or enable_static is yes.
12334  test yes = "$enable_shared" || enable_static=yes
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12336$as_echo "$enable_static" >&6; }
12337
12338
12339
12340
12341fi
12342ac_ext=c
12343ac_cpp='$CPP $CPPFLAGS'
12344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12346ac_compiler_gnu=$ac_cv_c_compiler_gnu
12347
12348CC=$lt_save_CC
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364        ac_config_commands="$ac_config_commands libtool"
12365
12366
12367
12368
12369# Only expand once:
12370
12371
12372
12373NO_UNDEFINED=
12374if test unsupported = "$allow_undefined_flag" ; then
12375  NO_UNDEFINED=-no-undefined
12376fi
12377
12378
12379ac_ext=cpp
12380ac_cpp='$CXXCPP $CPPFLAGS'
12381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12384if test -z "$CXX"; then
12385  if test -n "$CCC"; then
12386    CXX=$CCC
12387  else
12388    if test -n "$ac_tool_prefix"; then
12389  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12390  do
12391    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394$as_echo_n "checking for $ac_word... " >&6; }
12395if ${ac_cv_prog_CXX+:} false; then :
12396  $as_echo_n "(cached) " >&6
12397else
12398  if test -n "$CXX"; then
12399  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12400else
12401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402for as_dir in $PATH
12403do
12404  IFS=$as_save_IFS
12405  test -z "$as_dir" && as_dir=.
12406    for ac_exec_ext in '' $ac_executable_extensions; do
12407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12408    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410    break 2
12411  fi
12412done
12413  done
12414IFS=$as_save_IFS
12415
12416fi
12417fi
12418CXX=$ac_cv_prog_CXX
12419if test -n "$CXX"; then
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12421$as_echo "$CXX" >&6; }
12422else
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424$as_echo "no" >&6; }
12425fi
12426
12427
12428    test -n "$CXX" && break
12429  done
12430fi
12431if test -z "$CXX"; then
12432  ac_ct_CXX=$CXX
12433  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12434do
12435  # Extract the first word of "$ac_prog", so it can be a program name with args.
12436set dummy $ac_prog; ac_word=$2
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438$as_echo_n "checking for $ac_word... " >&6; }
12439if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12440  $as_echo_n "(cached) " >&6
12441else
12442  if test -n "$ac_ct_CXX"; then
12443  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12444else
12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $PATH
12447do
12448  IFS=$as_save_IFS
12449  test -z "$as_dir" && as_dir=.
12450    for ac_exec_ext in '' $ac_executable_extensions; do
12451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452    ac_cv_prog_ac_ct_CXX="$ac_prog"
12453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454    break 2
12455  fi
12456done
12457  done
12458IFS=$as_save_IFS
12459
12460fi
12461fi
12462ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12463if test -n "$ac_ct_CXX"; then
12464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12465$as_echo "$ac_ct_CXX" >&6; }
12466else
12467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468$as_echo "no" >&6; }
12469fi
12470
12471
12472  test -n "$ac_ct_CXX" && break
12473done
12474
12475  if test "x$ac_ct_CXX" = x; then
12476    CXX="g++"
12477  else
12478    case $cross_compiling:$ac_tool_warned in
12479yes:)
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482ac_tool_warned=yes ;;
12483esac
12484    CXX=$ac_ct_CXX
12485  fi
12486fi
12487
12488  fi
12489fi
12490# Provide some information about the compiler.
12491$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12492set X $ac_compile
12493ac_compiler=$2
12494for ac_option in --version -v -V -qversion; do
12495  { { ac_try="$ac_compiler $ac_option >&5"
12496case "(($ac_try" in
12497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498  *) ac_try_echo=$ac_try;;
12499esac
12500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12501$as_echo "$ac_try_echo"; } >&5
12502  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12503  ac_status=$?
12504  if test -s conftest.err; then
12505    sed '10a\
12506... rest of stderr output deleted ...
12507         10q' conftest.err >conftest.er1
12508    cat conftest.er1 >&5
12509  fi
12510  rm -f conftest.er1 conftest.err
12511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12512  test $ac_status = 0; }
12513done
12514
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12516$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12517if ${ac_cv_cxx_compiler_gnu+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h.  */
12522
12523int
12524main ()
12525{
12526#ifndef __GNUC__
12527       choke me
12528#endif
12529
12530  ;
12531  return 0;
12532}
12533_ACEOF
12534if ac_fn_cxx_try_compile "$LINENO"; then :
12535  ac_compiler_gnu=yes
12536else
12537  ac_compiler_gnu=no
12538fi
12539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12541
12542fi
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12544$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12545if test $ac_compiler_gnu = yes; then
12546  GXX=yes
12547else
12548  GXX=
12549fi
12550ac_test_CXXFLAGS=${CXXFLAGS+set}
12551ac_save_CXXFLAGS=$CXXFLAGS
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12553$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12554if ${ac_cv_prog_cxx_g+:} false; then :
12555  $as_echo_n "(cached) " >&6
12556else
12557  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12558   ac_cxx_werror_flag=yes
12559   ac_cv_prog_cxx_g=no
12560   CXXFLAGS="-g"
12561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h.  */
12563
12564int
12565main ()
12566{
12567
12568  ;
12569  return 0;
12570}
12571_ACEOF
12572if ac_fn_cxx_try_compile "$LINENO"; then :
12573  ac_cv_prog_cxx_g=yes
12574else
12575  CXXFLAGS=""
12576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577/* end confdefs.h.  */
12578
12579int
12580main ()
12581{
12582
12583  ;
12584  return 0;
12585}
12586_ACEOF
12587if ac_fn_cxx_try_compile "$LINENO"; then :
12588
12589else
12590  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12591	 CXXFLAGS="-g"
12592	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593/* end confdefs.h.  */
12594
12595int
12596main ()
12597{
12598
12599  ;
12600  return 0;
12601}
12602_ACEOF
12603if ac_fn_cxx_try_compile "$LINENO"; then :
12604  ac_cv_prog_cxx_g=yes
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607fi
12608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609fi
12610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12612fi
12613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12614$as_echo "$ac_cv_prog_cxx_g" >&6; }
12615if test "$ac_test_CXXFLAGS" = set; then
12616  CXXFLAGS=$ac_save_CXXFLAGS
12617elif test $ac_cv_prog_cxx_g = yes; then
12618  if test "$GXX" = yes; then
12619    CXXFLAGS="-g -O2"
12620  else
12621    CXXFLAGS="-g"
12622  fi
12623else
12624  if test "$GXX" = yes; then
12625    CXXFLAGS="-O2"
12626  else
12627    CXXFLAGS=
12628  fi
12629fi
12630ac_ext=c
12631ac_cpp='$CPP $CPPFLAGS'
12632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634ac_compiler_gnu=$ac_cv_c_compiler_gnu
12635
12636depcc="$CXX"  am_compiler_list=
12637
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12639$as_echo_n "checking dependency style of $depcc... " >&6; }
12640if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12641  $as_echo_n "(cached) " >&6
12642else
12643  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12644  # We make a subdir and do the tests there.  Otherwise we can end up
12645  # making bogus files that we don't know about and never remove.  For
12646  # instance it was reported that on HP-UX the gcc test will end up
12647  # making a dummy file named 'D' -- because '-MD' means "put the output
12648  # in D".
12649  rm -rf conftest.dir
12650  mkdir conftest.dir
12651  # Copy depcomp to subdir because otherwise we won't find it if we're
12652  # using a relative directory.
12653  cp "$am_depcomp" conftest.dir
12654  cd conftest.dir
12655  # We will build objects and dependencies in a subdirectory because
12656  # it helps to detect inapplicable dependency modes.  For instance
12657  # both Tru64's cc and ICC support -MD to output dependencies as a
12658  # side effect of compilation, but ICC will put the dependencies in
12659  # the current directory while Tru64 will put them in the object
12660  # directory.
12661  mkdir sub
12662
12663  am_cv_CXX_dependencies_compiler_type=none
12664  if test "$am_compiler_list" = ""; then
12665     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12666  fi
12667  am__universal=false
12668  case " $depcc " in #(
12669     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12670     esac
12671
12672  for depmode in $am_compiler_list; do
12673    # Setup a source with many dependencies, because some compilers
12674    # like to wrap large dependency lists on column 80 (with \), and
12675    # we should not choose a depcomp mode which is confused by this.
12676    #
12677    # We need to recreate these files for each test, as the compiler may
12678    # overwrite some of them when testing with obscure command lines.
12679    # This happens at least with the AIX C compiler.
12680    : > sub/conftest.c
12681    for i in 1 2 3 4 5 6; do
12682      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12683      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12684      # Solaris 10 /bin/sh.
12685      echo '/* dummy */' > sub/conftst$i.h
12686    done
12687    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12688
12689    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12690    # mode.  It turns out that the SunPro C++ compiler does not properly
12691    # handle '-M -o', and we need to detect this.  Also, some Intel
12692    # versions had trouble with output in subdirs.
12693    am__obj=sub/conftest.${OBJEXT-o}
12694    am__minus_obj="-o $am__obj"
12695    case $depmode in
12696    gcc)
12697      # This depmode causes a compiler race in universal mode.
12698      test "$am__universal" = false || continue
12699      ;;
12700    nosideeffect)
12701      # After this tag, mechanisms are not by side-effect, so they'll
12702      # only be used when explicitly requested.
12703      if test "x$enable_dependency_tracking" = xyes; then
12704	continue
12705      else
12706	break
12707      fi
12708      ;;
12709    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12710      # This compiler won't grok '-c -o', but also, the minuso test has
12711      # not run yet.  These depmodes are late enough in the game, and
12712      # so weak that their functioning should not be impacted.
12713      am__obj=conftest.${OBJEXT-o}
12714      am__minus_obj=
12715      ;;
12716    none) break ;;
12717    esac
12718    if depmode=$depmode \
12719       source=sub/conftest.c object=$am__obj \
12720       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12721       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12722         >/dev/null 2>conftest.err &&
12723       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12724       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12725       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12726       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12727      # icc doesn't choke on unknown options, it will just issue warnings
12728      # or remarks (even with -Werror).  So we grep stderr for any message
12729      # that says an option was ignored or not supported.
12730      # When given -MP, icc 7.0 and 7.1 complain thusly:
12731      #   icc: Command line warning: ignoring option '-M'; no argument required
12732      # The diagnosis changed in icc 8.0:
12733      #   icc: Command line remark: option '-MP' not supported
12734      if (grep 'ignoring option' conftest.err ||
12735          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12736        am_cv_CXX_dependencies_compiler_type=$depmode
12737        break
12738      fi
12739    fi
12740  done
12741
12742  cd ..
12743  rm -rf conftest.dir
12744else
12745  am_cv_CXX_dependencies_compiler_type=none
12746fi
12747
12748fi
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12750$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12751CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12752
12753 if
12754  test "x$enable_dependency_tracking" != xno \
12755  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12756  am__fastdepCXX_TRUE=
12757  am__fastdepCXX_FALSE='#'
12758else
12759  am__fastdepCXX_TRUE='#'
12760  am__fastdepCXX_FALSE=
12761fi
12762
12763
12764
12765
12766func_stripname_cnf ()
12767{
12768  case $2 in
12769  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12770  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12771  esac
12772} # func_stripname_cnf
12773
12774      if test -n "$CXX" && ( test no != "$CXX" &&
12775    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12776    (test g++ != "$CXX"))); then
12777  ac_ext=cpp
12778ac_cpp='$CXXCPP $CPPFLAGS'
12779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12783$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12784if test -z "$CXXCPP"; then
12785  if ${ac_cv_prog_CXXCPP+:} false; then :
12786  $as_echo_n "(cached) " >&6
12787else
12788      # Double quotes because CXXCPP needs to be expanded
12789    for CXXCPP in "$CXX -E" "/lib/cpp"
12790    do
12791      ac_preproc_ok=false
12792for ac_cxx_preproc_warn_flag in '' yes
12793do
12794  # Use a header file that comes with gcc, so configuring glibc
12795  # with a fresh cross-compiler works.
12796  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12797  # <limits.h> exists even on freestanding compilers.
12798  # On the NeXT, cc -E runs the code through the compiler's parser,
12799  # not just through cpp. "Syntax error" is here to catch this case.
12800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801/* end confdefs.h.  */
12802#ifdef __STDC__
12803# include <limits.h>
12804#else
12805# include <assert.h>
12806#endif
12807		     Syntax error
12808_ACEOF
12809if ac_fn_cxx_try_cpp "$LINENO"; then :
12810
12811else
12812  # Broken: fails on valid input.
12813continue
12814fi
12815rm -f conftest.err conftest.i conftest.$ac_ext
12816
12817  # OK, works on sane cases.  Now check whether nonexistent headers
12818  # can be detected and how.
12819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820/* end confdefs.h.  */
12821#include <ac_nonexistent.h>
12822_ACEOF
12823if ac_fn_cxx_try_cpp "$LINENO"; then :
12824  # Broken: success on invalid input.
12825continue
12826else
12827  # Passes both tests.
12828ac_preproc_ok=:
12829break
12830fi
12831rm -f conftest.err conftest.i conftest.$ac_ext
12832
12833done
12834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12835rm -f conftest.i conftest.err conftest.$ac_ext
12836if $ac_preproc_ok; then :
12837  break
12838fi
12839
12840    done
12841    ac_cv_prog_CXXCPP=$CXXCPP
12842
12843fi
12844  CXXCPP=$ac_cv_prog_CXXCPP
12845else
12846  ac_cv_prog_CXXCPP=$CXXCPP
12847fi
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12849$as_echo "$CXXCPP" >&6; }
12850ac_preproc_ok=false
12851for ac_cxx_preproc_warn_flag in '' yes
12852do
12853  # Use a header file that comes with gcc, so configuring glibc
12854  # with a fresh cross-compiler works.
12855  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12856  # <limits.h> exists even on freestanding compilers.
12857  # On the NeXT, cc -E runs the code through the compiler's parser,
12858  # not just through cpp. "Syntax error" is here to catch this case.
12859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h.  */
12861#ifdef __STDC__
12862# include <limits.h>
12863#else
12864# include <assert.h>
12865#endif
12866		     Syntax error
12867_ACEOF
12868if ac_fn_cxx_try_cpp "$LINENO"; then :
12869
12870else
12871  # Broken: fails on valid input.
12872continue
12873fi
12874rm -f conftest.err conftest.i conftest.$ac_ext
12875
12876  # OK, works on sane cases.  Now check whether nonexistent headers
12877  # can be detected and how.
12878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879/* end confdefs.h.  */
12880#include <ac_nonexistent.h>
12881_ACEOF
12882if ac_fn_cxx_try_cpp "$LINENO"; then :
12883  # Broken: success on invalid input.
12884continue
12885else
12886  # Passes both tests.
12887ac_preproc_ok=:
12888break
12889fi
12890rm -f conftest.err conftest.i conftest.$ac_ext
12891
12892done
12893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12894rm -f conftest.i conftest.err conftest.$ac_ext
12895if $ac_preproc_ok; then :
12896
12897else
12898  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12900as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12901See \`config.log' for more details" "$LINENO" 5; }
12902fi
12903
12904ac_ext=c
12905ac_cpp='$CPP $CPPFLAGS'
12906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12908ac_compiler_gnu=$ac_cv_c_compiler_gnu
12909
12910else
12911  _lt_caught_CXX_error=yes
12912fi
12913
12914ac_ext=cpp
12915ac_cpp='$CXXCPP $CPPFLAGS'
12916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12919
12920archive_cmds_need_lc_CXX=no
12921allow_undefined_flag_CXX=
12922always_export_symbols_CXX=no
12923archive_expsym_cmds_CXX=
12924compiler_needs_object_CXX=no
12925export_dynamic_flag_spec_CXX=
12926hardcode_direct_CXX=no
12927hardcode_direct_absolute_CXX=no
12928hardcode_libdir_flag_spec_CXX=
12929hardcode_libdir_separator_CXX=
12930hardcode_minus_L_CXX=no
12931hardcode_shlibpath_var_CXX=unsupported
12932hardcode_automatic_CXX=no
12933inherit_rpath_CXX=no
12934module_cmds_CXX=
12935module_expsym_cmds_CXX=
12936link_all_deplibs_CXX=unknown
12937old_archive_cmds_CXX=$old_archive_cmds
12938reload_flag_CXX=$reload_flag
12939reload_cmds_CXX=$reload_cmds
12940no_undefined_flag_CXX=
12941whole_archive_flag_spec_CXX=
12942enable_shared_with_static_runtimes_CXX=no
12943
12944# Source file extension for C++ test sources.
12945ac_ext=cpp
12946
12947# Object file extension for compiled C++ test sources.
12948objext=o
12949objext_CXX=$objext
12950
12951# No sense in running all these tests if we already determined that
12952# the CXX compiler isn't working.  Some variables (like enable_shared)
12953# are currently assumed to apply to all compilers on this platform,
12954# and will be corrupted by setting them based on a non-working compiler.
12955if test yes != "$_lt_caught_CXX_error"; then
12956  # Code to be used in simple compile tests
12957  lt_simple_compile_test_code="int some_variable = 0;"
12958
12959  # Code to be used in simple link tests
12960  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12961
12962  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12963
12964
12965
12966
12967
12968
12969# If no C compiler was specified, use CC.
12970LTCC=${LTCC-"$CC"}
12971
12972# If no C compiler flags were specified, use CFLAGS.
12973LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12974
12975# Allow CC to be a program name with arguments.
12976compiler=$CC
12977
12978
12979  # save warnings/boilerplate of simple test code
12980  ac_outfile=conftest.$ac_objext
12981echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12982eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12983_lt_compiler_boilerplate=`cat conftest.err`
12984$RM conftest*
12985
12986  ac_outfile=conftest.$ac_objext
12987echo "$lt_simple_link_test_code" >conftest.$ac_ext
12988eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12989_lt_linker_boilerplate=`cat conftest.err`
12990$RM -r conftest*
12991
12992
12993  # Allow CC to be a program name with arguments.
12994  lt_save_CC=$CC
12995  lt_save_CFLAGS=$CFLAGS
12996  lt_save_LD=$LD
12997  lt_save_GCC=$GCC
12998  GCC=$GXX
12999  lt_save_with_gnu_ld=$with_gnu_ld
13000  lt_save_path_LD=$lt_cv_path_LD
13001  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13002    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13003  else
13004    $as_unset lt_cv_prog_gnu_ld
13005  fi
13006  if test -n "${lt_cv_path_LDCXX+set}"; then
13007    lt_cv_path_LD=$lt_cv_path_LDCXX
13008  else
13009    $as_unset lt_cv_path_LD
13010  fi
13011  test -z "${LDCXX+set}" || LD=$LDCXX
13012  CC=${CXX-"c++"}
13013  CFLAGS=$CXXFLAGS
13014  compiler=$CC
13015  compiler_CXX=$CC
13016  func_cc_basename $compiler
13017cc_basename=$func_cc_basename_result
13018
13019
13020  if test -n "$compiler"; then
13021    # We don't want -fno-exception when compiling C++ code, so set the
13022    # no_builtin_flag separately
13023    if test yes = "$GXX"; then
13024      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13025    else
13026      lt_prog_compiler_no_builtin_flag_CXX=
13027    fi
13028
13029    if test yes = "$GXX"; then
13030      # Set up default GNU C++ configuration
13031
13032
13033
13034# Check whether --with-gnu-ld was given.
13035if test "${with_gnu_ld+set}" = set; then :
13036  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13037else
13038  with_gnu_ld=no
13039fi
13040
13041ac_prog=ld
13042if test yes = "$GCC"; then
13043  # Check if gcc -print-prog-name=ld gives a path.
13044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13045$as_echo_n "checking for ld used by $CC... " >&6; }
13046  case $host in
13047  *-*-mingw*)
13048    # gcc leaves a trailing carriage return, which upsets mingw
13049    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13050  *)
13051    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13052  esac
13053  case $ac_prog in
13054    # Accept absolute paths.
13055    [\\/]* | ?:[\\/]*)
13056      re_direlt='/[^/][^/]*/\.\./'
13057      # Canonicalize the pathname of ld
13058      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13059      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13060	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13061      done
13062      test -z "$LD" && LD=$ac_prog
13063      ;;
13064  "")
13065    # If it fails, then pretend we aren't using GCC.
13066    ac_prog=ld
13067    ;;
13068  *)
13069    # If it is relative, then search for the first ld in PATH.
13070    with_gnu_ld=unknown
13071    ;;
13072  esac
13073elif test yes = "$with_gnu_ld"; then
13074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13075$as_echo_n "checking for GNU ld... " >&6; }
13076else
13077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13078$as_echo_n "checking for non-GNU ld... " >&6; }
13079fi
13080if ${lt_cv_path_LD+:} false; then :
13081  $as_echo_n "(cached) " >&6
13082else
13083  if test -z "$LD"; then
13084  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13085  for ac_dir in $PATH; do
13086    IFS=$lt_save_ifs
13087    test -z "$ac_dir" && ac_dir=.
13088    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13089      lt_cv_path_LD=$ac_dir/$ac_prog
13090      # Check to see if the program is GNU ld.  I'd rather use --version,
13091      # but apparently some variants of GNU ld only accept -v.
13092      # Break only if it was the GNU/non-GNU ld that we prefer.
13093      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13094      *GNU* | *'with BFD'*)
13095	test no != "$with_gnu_ld" && break
13096	;;
13097      *)
13098	test yes != "$with_gnu_ld" && break
13099	;;
13100      esac
13101    fi
13102  done
13103  IFS=$lt_save_ifs
13104else
13105  lt_cv_path_LD=$LD # Let the user override the test with a path.
13106fi
13107fi
13108
13109LD=$lt_cv_path_LD
13110if test -n "$LD"; then
13111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13112$as_echo "$LD" >&6; }
13113else
13114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115$as_echo "no" >&6; }
13116fi
13117test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13119$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13120if ${lt_cv_prog_gnu_ld+:} false; then :
13121  $as_echo_n "(cached) " >&6
13122else
13123  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13124case `$LD -v 2>&1 </dev/null` in
13125*GNU* | *'with BFD'*)
13126  lt_cv_prog_gnu_ld=yes
13127  ;;
13128*)
13129  lt_cv_prog_gnu_ld=no
13130  ;;
13131esac
13132fi
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13134$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13135with_gnu_ld=$lt_cv_prog_gnu_ld
13136
13137
13138
13139
13140
13141
13142
13143      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13144      # archiving commands below assume that GNU ld is being used.
13145      if test yes = "$with_gnu_ld"; then
13146        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13147        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'
13148
13149        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13150        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13151
13152        # If archive_cmds runs LD, not CC, wlarc should be empty
13153        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13154        #     investigate it a little bit more. (MM)
13155        wlarc='$wl'
13156
13157        # ancient GNU ld didn't support --whole-archive et. al.
13158        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13159	  $GREP 'no-whole-archive' > /dev/null; then
13160          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13161        else
13162          whole_archive_flag_spec_CXX=
13163        fi
13164      else
13165        with_gnu_ld=no
13166        wlarc=
13167
13168        # A generic and very simple default shared library creation
13169        # command for GNU C++ for the case where it uses the native
13170        # linker, instead of GNU ld.  If possible, this setting should
13171        # overridden to take advantage of the native linker features on
13172        # the platform it is being used on.
13173        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13174      fi
13175
13176      # Commands to make compiler produce verbose output that lists
13177      # what "hidden" libraries, object files and flags are used when
13178      # linking a shared library.
13179      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13180
13181    else
13182      GXX=no
13183      with_gnu_ld=no
13184      wlarc=
13185    fi
13186
13187    # PORTME: fill in a description of your system's C++ link characteristics
13188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13189$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13190    ld_shlibs_CXX=yes
13191    case $host_os in
13192      aix3*)
13193        # FIXME: insert proper C++ library support
13194        ld_shlibs_CXX=no
13195        ;;
13196      aix[4-9]*)
13197        if test ia64 = "$host_cpu"; then
13198          # On IA64, the linker does run time linking by default, so we don't
13199          # have to do anything special.
13200          aix_use_runtimelinking=no
13201          exp_sym_flag='-Bexport'
13202          no_entry_flag=
13203        else
13204          aix_use_runtimelinking=no
13205
13206          # Test if we are trying to use run time linking or normal
13207          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13208          # have runtime linking enabled, and use it for executables.
13209          # For shared libraries, we enable/disable runtime linking
13210          # depending on the kind of the shared library created -
13211          # when "with_aix_soname,aix_use_runtimelinking" is:
13212          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13213          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13214          #            lib.a           static archive
13215          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13216          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13217          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13218          #            lib.a(lib.so.V) shared, rtl:no
13219          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13220          #            lib.a           static archive
13221          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13222	    for ld_flag in $LDFLAGS; do
13223	      case $ld_flag in
13224	      *-brtl*)
13225	        aix_use_runtimelinking=yes
13226	        break
13227	        ;;
13228	      esac
13229	    done
13230	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13231	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13232	      # so we don't have lib.a shared libs to link our executables.
13233	      # We have to force runtime linking in this case.
13234	      aix_use_runtimelinking=yes
13235	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13236	    fi
13237	    ;;
13238          esac
13239
13240          exp_sym_flag='-bexport'
13241          no_entry_flag='-bnoentry'
13242        fi
13243
13244        # When large executables or shared objects are built, AIX ld can
13245        # have problems creating the table of contents.  If linking a library
13246        # or program results in "error TOC overflow" add -mminimal-toc to
13247        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13248        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13249
13250        archive_cmds_CXX=''
13251        hardcode_direct_CXX=yes
13252        hardcode_direct_absolute_CXX=yes
13253        hardcode_libdir_separator_CXX=':'
13254        link_all_deplibs_CXX=yes
13255        file_list_spec_CXX='$wl-f,'
13256        case $with_aix_soname,$aix_use_runtimelinking in
13257        aix,*) ;;	# no import file
13258        svr4,* | *,yes) # use import file
13259          # The Import File defines what to hardcode.
13260          hardcode_direct_CXX=no
13261          hardcode_direct_absolute_CXX=no
13262          ;;
13263        esac
13264
13265        if test yes = "$GXX"; then
13266          case $host_os in aix4.[012]|aix4.[012].*)
13267          # We only want to do this on AIX 4.2 and lower, the check
13268          # below for broken collect2 doesn't work under 4.3+
13269	  collect2name=`$CC -print-prog-name=collect2`
13270	  if test -f "$collect2name" &&
13271	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13272	  then
13273	    # We have reworked collect2
13274	    :
13275	  else
13276	    # We have old collect2
13277	    hardcode_direct_CXX=unsupported
13278	    # It fails to find uninstalled libraries when the uninstalled
13279	    # path is not listed in the libpath.  Setting hardcode_minus_L
13280	    # to unsupported forces relinking
13281	    hardcode_minus_L_CXX=yes
13282	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13283	    hardcode_libdir_separator_CXX=
13284	  fi
13285          esac
13286          shared_flag='-shared'
13287	  if test yes = "$aix_use_runtimelinking"; then
13288	    shared_flag=$shared_flag' $wl-G'
13289	  fi
13290	  # Need to ensure runtime linking is disabled for the traditional
13291	  # shared library, or the linker may eventually find shared libraries
13292	  # /with/ Import File - we do not want to mix them.
13293	  shared_flag_aix='-shared'
13294	  shared_flag_svr4='-shared $wl-G'
13295        else
13296          # not using gcc
13297          if test ia64 = "$host_cpu"; then
13298	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299	  # chokes on -Wl,-G. The following line is correct:
13300	  shared_flag='-G'
13301          else
13302	    if test yes = "$aix_use_runtimelinking"; then
13303	      shared_flag='$wl-G'
13304	    else
13305	      shared_flag='$wl-bM:SRE'
13306	    fi
13307	    shared_flag_aix='$wl-bM:SRE'
13308	    shared_flag_svr4='$wl-G'
13309          fi
13310        fi
13311
13312        export_dynamic_flag_spec_CXX='$wl-bexpall'
13313        # It seems that -bexpall does not export symbols beginning with
13314        # underscore (_), so it is better to generate a list of symbols to
13315	# export.
13316        always_export_symbols_CXX=yes
13317	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13318          # Warning - without using the other runtime loading flags (-brtl),
13319          # -berok will link without error, but may produce a broken library.
13320          # The "-G" linker flag allows undefined symbols.
13321          no_undefined_flag_CXX='-bernotok'
13322          # Determine the default libpath from the value encoded in an empty
13323          # executable.
13324          if test set = "${lt_cv_aix_libpath+set}"; then
13325  aix_libpath=$lt_cv_aix_libpath
13326else
13327  if ${lt_cv_aix_libpath__CXX+:} false; then :
13328  $as_echo_n "(cached) " >&6
13329else
13330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331/* end confdefs.h.  */
13332
13333int
13334main ()
13335{
13336
13337  ;
13338  return 0;
13339}
13340_ACEOF
13341if ac_fn_cxx_try_link "$LINENO"; then :
13342
13343  lt_aix_libpath_sed='
13344      /Import File Strings/,/^$/ {
13345	  /^0/ {
13346	      s/^0  *\([^ ]*\) *$/\1/
13347	      p
13348	  }
13349      }'
13350  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351  # Check for a 64-bit object if we didn't find anything.
13352  if test -z "$lt_cv_aix_libpath__CXX"; then
13353    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13354  fi
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext conftest.$ac_ext
13358  if test -z "$lt_cv_aix_libpath__CXX"; then
13359    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13360  fi
13361
13362fi
13363
13364  aix_libpath=$lt_cv_aix_libpath__CXX
13365fi
13366
13367          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13368
13369          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13370        else
13371          if test ia64 = "$host_cpu"; then
13372	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13373	    allow_undefined_flag_CXX="-z nodefs"
13374	    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"
13375          else
13376	    # Determine the default libpath from the value encoded in an
13377	    # empty executable.
13378	    if test set = "${lt_cv_aix_libpath+set}"; then
13379  aix_libpath=$lt_cv_aix_libpath
13380else
13381  if ${lt_cv_aix_libpath__CXX+:} false; then :
13382  $as_echo_n "(cached) " >&6
13383else
13384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385/* end confdefs.h.  */
13386
13387int
13388main ()
13389{
13390
13391  ;
13392  return 0;
13393}
13394_ACEOF
13395if ac_fn_cxx_try_link "$LINENO"; then :
13396
13397  lt_aix_libpath_sed='
13398      /Import File Strings/,/^$/ {
13399	  /^0/ {
13400	      s/^0  *\([^ ]*\) *$/\1/
13401	      p
13402	  }
13403      }'
13404  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13405  # Check for a 64-bit object if we didn't find anything.
13406  if test -z "$lt_cv_aix_libpath__CXX"; then
13407    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13408  fi
13409fi
13410rm -f core conftest.err conftest.$ac_objext \
13411    conftest$ac_exeext conftest.$ac_ext
13412  if test -z "$lt_cv_aix_libpath__CXX"; then
13413    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13414  fi
13415
13416fi
13417
13418  aix_libpath=$lt_cv_aix_libpath__CXX
13419fi
13420
13421	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13422	    # Warning - without using the other run time loading flags,
13423	    # -berok will link without error, but may produce a broken library.
13424	    no_undefined_flag_CXX=' $wl-bernotok'
13425	    allow_undefined_flag_CXX=' $wl-berok'
13426	    if test yes = "$with_gnu_ld"; then
13427	      # We only use this code for GNU lds that support --whole-archive.
13428	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13429	    else
13430	      # Exported symbols can be pulled into shared objects from archives
13431	      whole_archive_flag_spec_CXX='$convenience'
13432	    fi
13433	    archive_cmds_need_lc_CXX=yes
13434	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13435	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13436	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13437	    if test svr4 != "$with_aix_soname"; then
13438	      # This is similar to how AIX traditionally builds its shared
13439	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13440	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13441	    fi
13442	    if test aix != "$with_aix_soname"; then
13443	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13444	    else
13445	      # used by -dlpreopen to get the symbols
13446	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13447	    fi
13448	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13449          fi
13450        fi
13451        ;;
13452
13453      beos*)
13454	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13455	  allow_undefined_flag_CXX=unsupported
13456	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13457	  # support --undefined.  This deserves some investigation.  FIXME
13458	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13459	else
13460	  ld_shlibs_CXX=no
13461	fi
13462	;;
13463
13464      chorus*)
13465        case $cc_basename in
13466          *)
13467	  # FIXME: insert proper C++ library support
13468	  ld_shlibs_CXX=no
13469	  ;;
13470        esac
13471        ;;
13472
13473      cygwin* | mingw* | pw32* | cegcc*)
13474	case $GXX,$cc_basename in
13475	,cl* | no,cl*)
13476	  # Native MSVC
13477	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13478	  # no search path for DLLs.
13479	  hardcode_libdir_flag_spec_CXX=' '
13480	  allow_undefined_flag_CXX=unsupported
13481	  always_export_symbols_CXX=yes
13482	  file_list_spec_CXX='@'
13483	  # Tell ltmain to make .lib files, not .a files.
13484	  libext=lib
13485	  # Tell ltmain to make .dll files, not .so files.
13486	  shrext_cmds=.dll
13487	  # FIXME: Setting linknames here is a bad hack.
13488	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13489	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13490              cp "$export_symbols" "$output_objdir/$soname.def";
13491              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13492            else
13493              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13494            fi~
13495            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13496            linknames='
13497	  # The linker will not automatically build a static lib if we build a DLL.
13498	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13499	  enable_shared_with_static_runtimes_CXX=yes
13500	  # Don't use ranlib
13501	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13502	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13503            lt_tool_outputfile="@TOOL_OUTPUT@"~
13504            case $lt_outputfile in
13505              *.exe|*.EXE) ;;
13506              *)
13507                lt_outputfile=$lt_outputfile.exe
13508                lt_tool_outputfile=$lt_tool_outputfile.exe
13509                ;;
13510            esac~
13511            func_to_tool_file "$lt_outputfile"~
13512            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13513              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13514              $RM "$lt_outputfile.manifest";
13515            fi'
13516	  ;;
13517	*)
13518	  # g++
13519	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13520	  # as there is no search path for DLLs.
13521	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13522	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13523	  allow_undefined_flag_CXX=unsupported
13524	  always_export_symbols_CXX=no
13525	  enable_shared_with_static_runtimes_CXX=yes
13526
13527	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13528	    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'
13529	    # If the export-symbols file already is a .def file, use it as
13530	    # is; otherwise, prepend EXPORTS...
13531	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13532              cp $export_symbols $output_objdir/$soname.def;
13533            else
13534              echo EXPORTS > $output_objdir/$soname.def;
13535              cat $export_symbols >> $output_objdir/$soname.def;
13536            fi~
13537            $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'
13538	  else
13539	    ld_shlibs_CXX=no
13540	  fi
13541	  ;;
13542	esac
13543	;;
13544      darwin* | rhapsody*)
13545
13546
13547  archive_cmds_need_lc_CXX=no
13548  hardcode_direct_CXX=no
13549  hardcode_automatic_CXX=yes
13550  hardcode_shlibpath_var_CXX=unsupported
13551  if test yes = "$lt_cv_ld_force_load"; then
13552    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\"`'
13553
13554  else
13555    whole_archive_flag_spec_CXX=''
13556  fi
13557  link_all_deplibs_CXX=yes
13558  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13559  case $cc_basename in
13560     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13561     *) _lt_dar_can_shared=$GCC ;;
13562  esac
13563  if test yes = "$_lt_dar_can_shared"; then
13564    output_verbose_link_cmd=func_echo_all
13565    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"
13566    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13567    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"
13568    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"
13569       if test yes != "$lt_cv_apple_cc_single_mod"; then
13570      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"
13571      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"
13572    fi
13573
13574  else
13575  ld_shlibs_CXX=no
13576  fi
13577
13578	;;
13579
13580      os2*)
13581	hardcode_libdir_flag_spec_CXX='-L$libdir'
13582	hardcode_minus_L_CXX=yes
13583	allow_undefined_flag_CXX=unsupported
13584	shrext_cmds=.dll
13585	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13586	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13587	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13588	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13589	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13590	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13591	  emximp -o $lib $output_objdir/$libname.def'
13592	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13593	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13594	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13595	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13596	  prefix_cmds="$SED"~
13597	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13598	    prefix_cmds="$prefix_cmds -e 1d";
13599	  fi~
13600	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13601	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13602	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13603	  emximp -o $lib $output_objdir/$libname.def'
13604	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13605	enable_shared_with_static_runtimes_CXX=yes
13606	;;
13607
13608      dgux*)
13609        case $cc_basename in
13610          ec++*)
13611	    # FIXME: insert proper C++ library support
13612	    ld_shlibs_CXX=no
13613	    ;;
13614          ghcx*)
13615	    # Green Hills C++ Compiler
13616	    # FIXME: insert proper C++ library support
13617	    ld_shlibs_CXX=no
13618	    ;;
13619          *)
13620	    # FIXME: insert proper C++ library support
13621	    ld_shlibs_CXX=no
13622	    ;;
13623        esac
13624        ;;
13625
13626      freebsd2.*)
13627        # C++ shared libraries reported to be fairly broken before
13628	# switch to ELF
13629        ld_shlibs_CXX=no
13630        ;;
13631
13632      freebsd-elf*)
13633        archive_cmds_need_lc_CXX=no
13634        ;;
13635
13636      freebsd* | dragonfly*)
13637        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13638        # conventions
13639        ld_shlibs_CXX=yes
13640        ;;
13641
13642      haiku*)
13643        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13644        link_all_deplibs_CXX=yes
13645        ;;
13646
13647      hpux9*)
13648        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13649        hardcode_libdir_separator_CXX=:
13650        export_dynamic_flag_spec_CXX='$wl-E'
13651        hardcode_direct_CXX=yes
13652        hardcode_minus_L_CXX=yes # Not in the search PATH,
13653				             # but as the default
13654				             # location of the library.
13655
13656        case $cc_basename in
13657          CC*)
13658            # FIXME: insert proper C++ library support
13659            ld_shlibs_CXX=no
13660            ;;
13661          aCC*)
13662            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13663            # Commands to make compiler produce verbose output that lists
13664            # what "hidden" libraries, object files and flags are used when
13665            # linking a shared library.
13666            #
13667            # There doesn't appear to be a way to prevent this compiler from
13668            # explicitly linking system object files so we need to strip them
13669            # from the output so that they don't get included in the library
13670            # dependencies.
13671            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"'
13672            ;;
13673          *)
13674            if test yes = "$GXX"; then
13675              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13676            else
13677              # FIXME: insert proper C++ library support
13678              ld_shlibs_CXX=no
13679            fi
13680            ;;
13681        esac
13682        ;;
13683
13684      hpux10*|hpux11*)
13685        if test no = "$with_gnu_ld"; then
13686	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13687	  hardcode_libdir_separator_CXX=:
13688
13689          case $host_cpu in
13690            hppa*64*|ia64*)
13691              ;;
13692            *)
13693	      export_dynamic_flag_spec_CXX='$wl-E'
13694              ;;
13695          esac
13696        fi
13697        case $host_cpu in
13698          hppa*64*|ia64*)
13699            hardcode_direct_CXX=no
13700            hardcode_shlibpath_var_CXX=no
13701            ;;
13702          *)
13703            hardcode_direct_CXX=yes
13704            hardcode_direct_absolute_CXX=yes
13705            hardcode_minus_L_CXX=yes # Not in the search PATH,
13706					         # but as the default
13707					         # location of the library.
13708            ;;
13709        esac
13710
13711        case $cc_basename in
13712          CC*)
13713	    # FIXME: insert proper C++ library support
13714	    ld_shlibs_CXX=no
13715	    ;;
13716          aCC*)
13717	    case $host_cpu in
13718	      hppa*64*)
13719	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13720	        ;;
13721	      ia64*)
13722	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13723	        ;;
13724	      *)
13725	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726	        ;;
13727	    esac
13728	    # Commands to make compiler produce verbose output that lists
13729	    # what "hidden" libraries, object files and flags are used when
13730	    # linking a shared library.
13731	    #
13732	    # There doesn't appear to be a way to prevent this compiler from
13733	    # explicitly linking system object files so we need to strip them
13734	    # from the output so that they don't get included in the library
13735	    # dependencies.
13736	    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"'
13737	    ;;
13738          *)
13739	    if test yes = "$GXX"; then
13740	      if test no = "$with_gnu_ld"; then
13741	        case $host_cpu in
13742	          hppa*64*)
13743	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13744	            ;;
13745	          ia64*)
13746	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13747	            ;;
13748	          *)
13749	            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'
13750	            ;;
13751	        esac
13752	      fi
13753	    else
13754	      # FIXME: insert proper C++ library support
13755	      ld_shlibs_CXX=no
13756	    fi
13757	    ;;
13758        esac
13759        ;;
13760
13761      interix[3-9]*)
13762	hardcode_direct_CXX=no
13763	hardcode_shlibpath_var_CXX=no
13764	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13765	export_dynamic_flag_spec_CXX='$wl-E'
13766	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13767	# Instead, shared libraries are loaded at an image base (0x10000000 by
13768	# default) and relocated if they conflict, which is a slow very memory
13769	# consuming and fragmenting process.  To avoid this, we pick a random,
13770	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13771	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13772	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'
13773	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'
13774	;;
13775      irix5* | irix6*)
13776        case $cc_basename in
13777          CC*)
13778	    # SGI C++
13779	    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'
13780
13781	    # Archives containing C++ object files must be created using
13782	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13783	    # necessary to make sure instantiated templates are included
13784	    # in the archive.
13785	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13786	    ;;
13787          *)
13788	    if test yes = "$GXX"; then
13789	      if test no = "$with_gnu_ld"; then
13790	        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'
13791	      else
13792	        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'
13793	      fi
13794	    fi
13795	    link_all_deplibs_CXX=yes
13796	    ;;
13797        esac
13798        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13799        hardcode_libdir_separator_CXX=:
13800        inherit_rpath_CXX=yes
13801        ;;
13802
13803      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13804        case $cc_basename in
13805          KCC*)
13806	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13807
13808	    # KCC will only create a shared library if the output file
13809	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13810	    # to its proper name (with version) after linking.
13811	    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'
13812	    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'
13813	    # Commands to make compiler produce verbose output that lists
13814	    # what "hidden" libraries, object files and flags are used when
13815	    # linking a shared library.
13816	    #
13817	    # There doesn't appear to be a way to prevent this compiler from
13818	    # explicitly linking system object files so we need to strip them
13819	    # from the output so that they don't get included in the library
13820	    # dependencies.
13821	    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"'
13822
13823	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13824	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13825
13826	    # Archives containing C++ object files must be created using
13827	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13828	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13829	    ;;
13830	  icpc* | ecpc* )
13831	    # Intel C++
13832	    with_gnu_ld=yes
13833	    # version 8.0 and above of icpc choke on multiply defined symbols
13834	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13835	    # earlier do not add the objects themselves.
13836	    case `$CC -V 2>&1` in
13837	      *"Version 7."*)
13838	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13839		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'
13840		;;
13841	      *)  # Version 8.0 or newer
13842	        tmp_idyn=
13843	        case $host_cpu in
13844		  ia64*) tmp_idyn=' -i_dynamic';;
13845		esac
13846	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13847		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'
13848		;;
13849	    esac
13850	    archive_cmds_need_lc_CXX=no
13851	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13852	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13853	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13854	    ;;
13855          pgCC* | pgcpp*)
13856            # Portland Group C++ compiler
13857	    case `$CC -V` in
13858	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13859	      prelink_cmds_CXX='tpldir=Template.dir~
13860               rm -rf $tpldir~
13861               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13862               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13863	      old_archive_cmds_CXX='tpldir=Template.dir~
13864                rm -rf $tpldir~
13865                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13866                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13867                $RANLIB $oldlib'
13868	      archive_cmds_CXX='tpldir=Template.dir~
13869                rm -rf $tpldir~
13870                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13871                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13872	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13873                rm -rf $tpldir~
13874                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13875                $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'
13876	      ;;
13877	    *) # Version 6 and above use weak symbols
13878	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13879	      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'
13880	      ;;
13881	    esac
13882
13883	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13884	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13885	    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'
13886            ;;
13887	  cxx*)
13888	    # Compaq C++
13889	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13890	    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'
13891
13892	    runpath_var=LD_RUN_PATH
13893	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13894	    hardcode_libdir_separator_CXX=:
13895
13896	    # Commands to make compiler produce verbose output that lists
13897	    # what "hidden" libraries, object files and flags are used when
13898	    # linking a shared library.
13899	    #
13900	    # There doesn't appear to be a way to prevent this compiler from
13901	    # explicitly linking system object files so we need to strip them
13902	    # from the output so that they don't get included in the library
13903	    # dependencies.
13904	    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'
13905	    ;;
13906	  xl* | mpixl* | bgxl*)
13907	    # IBM XL 8.0 on PPC, with GNU ld
13908	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13909	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13910	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13911	    if test yes = "$supports_anon_versioning"; then
13912	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13913                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13914                echo "local: *; };" >> $output_objdir/$libname.ver~
13915                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13916	    fi
13917	    ;;
13918	  *)
13919	    case `$CC -V 2>&1 | sed 5q` in
13920	    *Sun\ C*)
13921	      # Sun C++ 5.9
13922	      no_undefined_flag_CXX=' -zdefs'
13923	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13924	      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'
13925	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13926	      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'
13927	      compiler_needs_object_CXX=yes
13928
13929	      # Not sure whether something based on
13930	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13931	      # would be better.
13932	      output_verbose_link_cmd='func_echo_all'
13933
13934	      # Archives containing C++ object files must be created using
13935	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13936	      # necessary to make sure instantiated templates are included
13937	      # in the archive.
13938	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13939	      ;;
13940	    esac
13941	    ;;
13942	esac
13943	;;
13944
13945      lynxos*)
13946        # FIXME: insert proper C++ library support
13947	ld_shlibs_CXX=no
13948	;;
13949
13950      m88k*)
13951        # FIXME: insert proper C++ library support
13952        ld_shlibs_CXX=no
13953	;;
13954
13955      mvs*)
13956        case $cc_basename in
13957          cxx*)
13958	    # FIXME: insert proper C++ library support
13959	    ld_shlibs_CXX=no
13960	    ;;
13961	  *)
13962	    # FIXME: insert proper C++ library support
13963	    ld_shlibs_CXX=no
13964	    ;;
13965	esac
13966	;;
13967
13968      netbsd*)
13969        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13970	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13971	  wlarc=
13972	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13973	  hardcode_direct_CXX=yes
13974	  hardcode_shlibpath_var_CXX=no
13975	fi
13976	# Workaround some broken pre-1.5 toolchains
13977	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13978	;;
13979
13980      *nto* | *qnx*)
13981        ld_shlibs_CXX=yes
13982	;;
13983
13984      openbsd* | bitrig*)
13985	if test -f /usr/libexec/ld.so; then
13986	  hardcode_direct_CXX=yes
13987	  hardcode_shlibpath_var_CXX=no
13988	  hardcode_direct_absolute_CXX=yes
13989	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13990	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13991	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13992	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13993	    export_dynamic_flag_spec_CXX='$wl-E'
13994	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13995	  fi
13996	  output_verbose_link_cmd=func_echo_all
13997	else
13998	  ld_shlibs_CXX=no
13999	fi
14000	;;
14001
14002      osf3* | osf4* | osf5*)
14003        case $cc_basename in
14004          KCC*)
14005	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14006
14007	    # KCC will only create a shared library if the output file
14008	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14009	    # to its proper name (with version) after linking.
14010	    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'
14011
14012	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14013	    hardcode_libdir_separator_CXX=:
14014
14015	    # Archives containing C++ object files must be created using
14016	    # the KAI C++ compiler.
14017	    case $host in
14018	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14019	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14020	    esac
14021	    ;;
14022          RCC*)
14023	    # Rational C++ 2.4.1
14024	    # FIXME: insert proper C++ library support
14025	    ld_shlibs_CXX=no
14026	    ;;
14027          cxx*)
14028	    case $host in
14029	      osf3*)
14030	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14031	        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'
14032	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14033		;;
14034	      *)
14035	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14036	        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'
14037	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14038                  echo "-hidden">> $lib.exp~
14039                  $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~
14040                  $RM $lib.exp'
14041	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14042		;;
14043	    esac
14044
14045	    hardcode_libdir_separator_CXX=:
14046
14047	    # Commands to make compiler produce verbose output that lists
14048	    # what "hidden" libraries, object files and flags are used when
14049	    # linking a shared library.
14050	    #
14051	    # There doesn't appear to be a way to prevent this compiler from
14052	    # explicitly linking system object files so we need to strip them
14053	    # from the output so that they don't get included in the library
14054	    # dependencies.
14055	    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"'
14056	    ;;
14057	  *)
14058	    if test yes,no = "$GXX,$with_gnu_ld"; then
14059	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14060	      case $host in
14061	        osf3*)
14062	          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'
14063		  ;;
14064	        *)
14065	          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'
14066		  ;;
14067	      esac
14068
14069	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14070	      hardcode_libdir_separator_CXX=:
14071
14072	      # Commands to make compiler produce verbose output that lists
14073	      # what "hidden" libraries, object files and flags are used when
14074	      # linking a shared library.
14075	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14076
14077	    else
14078	      # FIXME: insert proper C++ library support
14079	      ld_shlibs_CXX=no
14080	    fi
14081	    ;;
14082        esac
14083        ;;
14084
14085      psos*)
14086        # FIXME: insert proper C++ library support
14087        ld_shlibs_CXX=no
14088        ;;
14089
14090      sunos4*)
14091        case $cc_basename in
14092          CC*)
14093	    # Sun C++ 4.x
14094	    # FIXME: insert proper C++ library support
14095	    ld_shlibs_CXX=no
14096	    ;;
14097          lcc*)
14098	    # Lucid
14099	    # FIXME: insert proper C++ library support
14100	    ld_shlibs_CXX=no
14101	    ;;
14102          *)
14103	    # FIXME: insert proper C++ library support
14104	    ld_shlibs_CXX=no
14105	    ;;
14106        esac
14107        ;;
14108
14109      solaris*)
14110        case $cc_basename in
14111          CC* | sunCC*)
14112	    # Sun C++ 4.2, 5.x and Centerline C++
14113            archive_cmds_need_lc_CXX=yes
14114	    no_undefined_flag_CXX=' -zdefs'
14115	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14116	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14117              $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'
14118
14119	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14120	    hardcode_shlibpath_var_CXX=no
14121	    case $host_os in
14122	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14123	      *)
14124		# The compiler driver will combine and reorder linker options,
14125		# but understands '-z linker_flag'.
14126	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14127		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14128	        ;;
14129	    esac
14130	    link_all_deplibs_CXX=yes
14131
14132	    output_verbose_link_cmd='func_echo_all'
14133
14134	    # Archives containing C++ object files must be created using
14135	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14136	    # necessary to make sure instantiated templates are included
14137	    # in the archive.
14138	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14139	    ;;
14140          gcx*)
14141	    # Green Hills C++ Compiler
14142	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14143
14144	    # The C++ compiler must be used to create the archive.
14145	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14146	    ;;
14147          *)
14148	    # GNU C++ compiler with Solaris linker
14149	    if test yes,no = "$GXX,$with_gnu_ld"; then
14150	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14151	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14152	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14153	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14154                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14155
14156	        # Commands to make compiler produce verbose output that lists
14157	        # what "hidden" libraries, object files and flags are used when
14158	        # linking a shared library.
14159	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14160	      else
14161	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14162	        # platform.
14163	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14164	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14165                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14166
14167	        # Commands to make compiler produce verbose output that lists
14168	        # what "hidden" libraries, object files and flags are used when
14169	        # linking a shared library.
14170	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14171	      fi
14172
14173	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14174	      case $host_os in
14175		solaris2.[0-5] | solaris2.[0-5].*) ;;
14176		*)
14177		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14178		  ;;
14179	      esac
14180	    fi
14181	    ;;
14182        esac
14183        ;;
14184
14185    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14186      no_undefined_flag_CXX='$wl-z,text'
14187      archive_cmds_need_lc_CXX=no
14188      hardcode_shlibpath_var_CXX=no
14189      runpath_var='LD_RUN_PATH'
14190
14191      case $cc_basename in
14192        CC*)
14193	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14194	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195	  ;;
14196	*)
14197	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14198	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14199	  ;;
14200      esac
14201      ;;
14202
14203      sysv5* | sco3.2v5* | sco5v6*)
14204	# Note: We CANNOT use -z defs as we might desire, because we do not
14205	# link with -lc, and that would cause any symbols used from libc to
14206	# always be unresolved, which means just about no library would
14207	# ever link correctly.  If we're not using GNU ld we use -z text
14208	# though, which does catch some bad symbols but isn't as heavy-handed
14209	# as -z defs.
14210	no_undefined_flag_CXX='$wl-z,text'
14211	allow_undefined_flag_CXX='$wl-z,nodefs'
14212	archive_cmds_need_lc_CXX=no
14213	hardcode_shlibpath_var_CXX=no
14214	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14215	hardcode_libdir_separator_CXX=':'
14216	link_all_deplibs_CXX=yes
14217	export_dynamic_flag_spec_CXX='$wl-Bexport'
14218	runpath_var='LD_RUN_PATH'
14219
14220	case $cc_basename in
14221          CC*)
14222	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14223	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14224	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14225              '"$old_archive_cmds_CXX"
14226	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14227              '"$reload_cmds_CXX"
14228	    ;;
14229	  *)
14230	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14231	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14232	    ;;
14233	esac
14234      ;;
14235
14236      tandem*)
14237        case $cc_basename in
14238          NCC*)
14239	    # NonStop-UX NCC 3.20
14240	    # FIXME: insert proper C++ library support
14241	    ld_shlibs_CXX=no
14242	    ;;
14243          *)
14244	    # FIXME: insert proper C++ library support
14245	    ld_shlibs_CXX=no
14246	    ;;
14247        esac
14248        ;;
14249
14250      vxworks*)
14251        # FIXME: insert proper C++ library support
14252        ld_shlibs_CXX=no
14253        ;;
14254
14255      *)
14256        # FIXME: insert proper C++ library support
14257        ld_shlibs_CXX=no
14258        ;;
14259    esac
14260
14261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14262$as_echo "$ld_shlibs_CXX" >&6; }
14263    test no = "$ld_shlibs_CXX" && can_build_shared=no
14264
14265    GCC_CXX=$GXX
14266    LD_CXX=$LD
14267
14268    ## CAVEAT EMPTOR:
14269    ## There is no encapsulation within the following macros, do not change
14270    ## the running order or otherwise move them around unless you know exactly
14271    ## what you are doing...
14272    # Dependencies to place before and after the object being linked:
14273predep_objects_CXX=
14274postdep_objects_CXX=
14275predeps_CXX=
14276postdeps_CXX=
14277compiler_lib_search_path_CXX=
14278
14279cat > conftest.$ac_ext <<_LT_EOF
14280class Foo
14281{
14282public:
14283  Foo (void) { a = 0; }
14284private:
14285  int a;
14286};
14287_LT_EOF
14288
14289
14290_lt_libdeps_save_CFLAGS=$CFLAGS
14291case "$CC $CFLAGS " in #(
14292*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14293*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14294*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14295esac
14296
14297if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14298  (eval $ac_compile) 2>&5
14299  ac_status=$?
14300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301  test $ac_status = 0; }; then
14302  # Parse the compiler output and extract the necessary
14303  # objects, libraries and library flags.
14304
14305  # Sentinel used to keep track of whether or not we are before
14306  # the conftest object file.
14307  pre_test_object_deps_done=no
14308
14309  for p in `eval "$output_verbose_link_cmd"`; do
14310    case $prev$p in
14311
14312    -L* | -R* | -l*)
14313       # Some compilers place space between "-{L,R}" and the path.
14314       # Remove the space.
14315       if test x-L = "$p" ||
14316          test x-R = "$p"; then
14317	 prev=$p
14318	 continue
14319       fi
14320
14321       # Expand the sysroot to ease extracting the directories later.
14322       if test -z "$prev"; then
14323         case $p in
14324         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14325         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14326         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14327         esac
14328       fi
14329       case $p in
14330       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14331       esac
14332       if test no = "$pre_test_object_deps_done"; then
14333	 case $prev in
14334	 -L | -R)
14335	   # Internal compiler library paths should come after those
14336	   # provided the user.  The postdeps already come after the
14337	   # user supplied libs so there is no need to process them.
14338	   if test -z "$compiler_lib_search_path_CXX"; then
14339	     compiler_lib_search_path_CXX=$prev$p
14340	   else
14341	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14342	   fi
14343	   ;;
14344	 # The "-l" case would never come before the object being
14345	 # linked, so don't bother handling this case.
14346	 esac
14347       else
14348	 if test -z "$postdeps_CXX"; then
14349	   postdeps_CXX=$prev$p
14350	 else
14351	   postdeps_CXX="${postdeps_CXX} $prev$p"
14352	 fi
14353       fi
14354       prev=
14355       ;;
14356
14357    *.lto.$objext) ;; # Ignore GCC LTO objects
14358    *.$objext)
14359       # This assumes that the test object file only shows up
14360       # once in the compiler output.
14361       if test "$p" = "conftest.$objext"; then
14362	 pre_test_object_deps_done=yes
14363	 continue
14364       fi
14365
14366       if test no = "$pre_test_object_deps_done"; then
14367	 if test -z "$predep_objects_CXX"; then
14368	   predep_objects_CXX=$p
14369	 else
14370	   predep_objects_CXX="$predep_objects_CXX $p"
14371	 fi
14372       else
14373	 if test -z "$postdep_objects_CXX"; then
14374	   postdep_objects_CXX=$p
14375	 else
14376	   postdep_objects_CXX="$postdep_objects_CXX $p"
14377	 fi
14378       fi
14379       ;;
14380
14381    *) ;; # Ignore the rest.
14382
14383    esac
14384  done
14385
14386  # Clean up.
14387  rm -f a.out a.exe
14388else
14389  echo "libtool.m4: error: problem compiling CXX test program"
14390fi
14391
14392$RM -f confest.$objext
14393CFLAGS=$_lt_libdeps_save_CFLAGS
14394
14395# PORTME: override above test on systems where it is broken
14396case $host_os in
14397interix[3-9]*)
14398  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14399  # hack all around it, let's just trust "g++" to DTRT.
14400  predep_objects_CXX=
14401  postdep_objects_CXX=
14402  postdeps_CXX=
14403  ;;
14404esac
14405
14406
14407case " $postdeps_CXX " in
14408*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14409esac
14410 compiler_lib_search_dirs_CXX=
14411if test -n "${compiler_lib_search_path_CXX}"; then
14412 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14413fi
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445    lt_prog_compiler_wl_CXX=
14446lt_prog_compiler_pic_CXX=
14447lt_prog_compiler_static_CXX=
14448
14449
14450  # C++ specific cases for pic, static, wl, etc.
14451  if test yes = "$GXX"; then
14452    lt_prog_compiler_wl_CXX='-Wl,'
14453    lt_prog_compiler_static_CXX='-static'
14454
14455    case $host_os in
14456    aix*)
14457      # All AIX code is PIC.
14458      if test ia64 = "$host_cpu"; then
14459	# AIX 5 now supports IA64 processor
14460	lt_prog_compiler_static_CXX='-Bstatic'
14461      fi
14462      lt_prog_compiler_pic_CXX='-fPIC'
14463      ;;
14464
14465    amigaos*)
14466      case $host_cpu in
14467      powerpc)
14468            # see comment about AmigaOS4 .so support
14469            lt_prog_compiler_pic_CXX='-fPIC'
14470        ;;
14471      m68k)
14472            # FIXME: we need at least 68020 code to build shared libraries, but
14473            # adding the '-m68020' flag to GCC prevents building anything better,
14474            # like '-m68040'.
14475            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14476        ;;
14477      esac
14478      ;;
14479
14480    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14481      # PIC is the default for these OSes.
14482      ;;
14483    mingw* | cygwin* | os2* | pw32* | cegcc*)
14484      # This hack is so that the source file can tell whether it is being
14485      # built for inclusion in a dll (and should export symbols for example).
14486      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14487      # (--disable-auto-import) libraries
14488      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14489      case $host_os in
14490      os2*)
14491	lt_prog_compiler_static_CXX='$wl-static'
14492	;;
14493      esac
14494      ;;
14495    darwin* | rhapsody*)
14496      # PIC is the default on this platform
14497      # Common symbols not allowed in MH_DYLIB files
14498      lt_prog_compiler_pic_CXX='-fno-common'
14499      ;;
14500    *djgpp*)
14501      # DJGPP does not support shared libraries at all
14502      lt_prog_compiler_pic_CXX=
14503      ;;
14504    haiku*)
14505      # PIC is the default for Haiku.
14506      # The "-static" flag exists, but is broken.
14507      lt_prog_compiler_static_CXX=
14508      ;;
14509    interix[3-9]*)
14510      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14511      # Instead, we relocate shared libraries at runtime.
14512      ;;
14513    sysv4*MP*)
14514      if test -d /usr/nec; then
14515	lt_prog_compiler_pic_CXX=-Kconform_pic
14516      fi
14517      ;;
14518    hpux*)
14519      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14520      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14521      # sets the default TLS model and affects inlining.
14522      case $host_cpu in
14523      hppa*64*)
14524	;;
14525      *)
14526	lt_prog_compiler_pic_CXX='-fPIC'
14527	;;
14528      esac
14529      ;;
14530    *qnx* | *nto*)
14531      # QNX uses GNU C++, but need to define -shared option too, otherwise
14532      # it will coredump.
14533      lt_prog_compiler_pic_CXX='-fPIC -shared'
14534      ;;
14535    *)
14536      lt_prog_compiler_pic_CXX='-fPIC'
14537      ;;
14538    esac
14539  else
14540    case $host_os in
14541      aix[4-9]*)
14542	# All AIX code is PIC.
14543	if test ia64 = "$host_cpu"; then
14544	  # AIX 5 now supports IA64 processor
14545	  lt_prog_compiler_static_CXX='-Bstatic'
14546	else
14547	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14548	fi
14549	;;
14550      chorus*)
14551	case $cc_basename in
14552	cxch68*)
14553	  # Green Hills C++ Compiler
14554	  # _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"
14555	  ;;
14556	esac
14557	;;
14558      mingw* | cygwin* | os2* | pw32* | cegcc*)
14559	# This hack is so that the source file can tell whether it is being
14560	# built for inclusion in a dll (and should export symbols for example).
14561	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14562	;;
14563      dgux*)
14564	case $cc_basename in
14565	  ec++*)
14566	    lt_prog_compiler_pic_CXX='-KPIC'
14567	    ;;
14568	  ghcx*)
14569	    # Green Hills C++ Compiler
14570	    lt_prog_compiler_pic_CXX='-pic'
14571	    ;;
14572	  *)
14573	    ;;
14574	esac
14575	;;
14576      freebsd* | dragonfly*)
14577	# FreeBSD uses GNU C++
14578	;;
14579      hpux9* | hpux10* | hpux11*)
14580	case $cc_basename in
14581	  CC*)
14582	    lt_prog_compiler_wl_CXX='-Wl,'
14583	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14584	    if test ia64 != "$host_cpu"; then
14585	      lt_prog_compiler_pic_CXX='+Z'
14586	    fi
14587	    ;;
14588	  aCC*)
14589	    lt_prog_compiler_wl_CXX='-Wl,'
14590	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14591	    case $host_cpu in
14592	    hppa*64*|ia64*)
14593	      # +Z the default
14594	      ;;
14595	    *)
14596	      lt_prog_compiler_pic_CXX='+Z'
14597	      ;;
14598	    esac
14599	    ;;
14600	  *)
14601	    ;;
14602	esac
14603	;;
14604      interix*)
14605	# This is c89, which is MS Visual C++ (no shared libs)
14606	# Anyone wants to do a port?
14607	;;
14608      irix5* | irix6* | nonstopux*)
14609	case $cc_basename in
14610	  CC*)
14611	    lt_prog_compiler_wl_CXX='-Wl,'
14612	    lt_prog_compiler_static_CXX='-non_shared'
14613	    # CC pic flag -KPIC is the default.
14614	    ;;
14615	  *)
14616	    ;;
14617	esac
14618	;;
14619      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14620	case $cc_basename in
14621	  KCC*)
14622	    # KAI C++ Compiler
14623	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14624	    lt_prog_compiler_pic_CXX='-fPIC'
14625	    ;;
14626	  ecpc* )
14627	    # old Intel C++ for x86_64, which still supported -KPIC.
14628	    lt_prog_compiler_wl_CXX='-Wl,'
14629	    lt_prog_compiler_pic_CXX='-KPIC'
14630	    lt_prog_compiler_static_CXX='-static'
14631	    ;;
14632	  icpc* )
14633	    # Intel C++, used to be incompatible with GCC.
14634	    # ICC 10 doesn't accept -KPIC any more.
14635	    lt_prog_compiler_wl_CXX='-Wl,'
14636	    lt_prog_compiler_pic_CXX='-fPIC'
14637	    lt_prog_compiler_static_CXX='-static'
14638	    ;;
14639	  pgCC* | pgcpp*)
14640	    # Portland Group C++ compiler
14641	    lt_prog_compiler_wl_CXX='-Wl,'
14642	    lt_prog_compiler_pic_CXX='-fpic'
14643	    lt_prog_compiler_static_CXX='-Bstatic'
14644	    ;;
14645	  cxx*)
14646	    # Compaq C++
14647	    # Make sure the PIC flag is empty.  It appears that all Alpha
14648	    # Linux and Compaq Tru64 Unix objects are PIC.
14649	    lt_prog_compiler_pic_CXX=
14650	    lt_prog_compiler_static_CXX='-non_shared'
14651	    ;;
14652	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14653	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14654	    lt_prog_compiler_wl_CXX='-Wl,'
14655	    lt_prog_compiler_pic_CXX='-qpic'
14656	    lt_prog_compiler_static_CXX='-qstaticlink'
14657	    ;;
14658	  *)
14659	    case `$CC -V 2>&1 | sed 5q` in
14660	    *Sun\ C*)
14661	      # Sun C++ 5.9
14662	      lt_prog_compiler_pic_CXX='-KPIC'
14663	      lt_prog_compiler_static_CXX='-Bstatic'
14664	      lt_prog_compiler_wl_CXX='-Qoption ld '
14665	      ;;
14666	    esac
14667	    ;;
14668	esac
14669	;;
14670      lynxos*)
14671	;;
14672      m88k*)
14673	;;
14674      mvs*)
14675	case $cc_basename in
14676	  cxx*)
14677	    lt_prog_compiler_pic_CXX='-W c,exportall'
14678	    ;;
14679	  *)
14680	    ;;
14681	esac
14682	;;
14683      netbsd*)
14684	;;
14685      *qnx* | *nto*)
14686        # QNX uses GNU C++, but need to define -shared option too, otherwise
14687        # it will coredump.
14688        lt_prog_compiler_pic_CXX='-fPIC -shared'
14689        ;;
14690      osf3* | osf4* | osf5*)
14691	case $cc_basename in
14692	  KCC*)
14693	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14694	    ;;
14695	  RCC*)
14696	    # Rational C++ 2.4.1
14697	    lt_prog_compiler_pic_CXX='-pic'
14698	    ;;
14699	  cxx*)
14700	    # Digital/Compaq C++
14701	    lt_prog_compiler_wl_CXX='-Wl,'
14702	    # Make sure the PIC flag is empty.  It appears that all Alpha
14703	    # Linux and Compaq Tru64 Unix objects are PIC.
14704	    lt_prog_compiler_pic_CXX=
14705	    lt_prog_compiler_static_CXX='-non_shared'
14706	    ;;
14707	  *)
14708	    ;;
14709	esac
14710	;;
14711      psos*)
14712	;;
14713      solaris*)
14714	case $cc_basename in
14715	  CC* | sunCC*)
14716	    # Sun C++ 4.2, 5.x and Centerline C++
14717	    lt_prog_compiler_pic_CXX='-KPIC'
14718	    lt_prog_compiler_static_CXX='-Bstatic'
14719	    lt_prog_compiler_wl_CXX='-Qoption ld '
14720	    ;;
14721	  gcx*)
14722	    # Green Hills C++ Compiler
14723	    lt_prog_compiler_pic_CXX='-PIC'
14724	    ;;
14725	  *)
14726	    ;;
14727	esac
14728	;;
14729      sunos4*)
14730	case $cc_basename in
14731	  CC*)
14732	    # Sun C++ 4.x
14733	    lt_prog_compiler_pic_CXX='-pic'
14734	    lt_prog_compiler_static_CXX='-Bstatic'
14735	    ;;
14736	  lcc*)
14737	    # Lucid
14738	    lt_prog_compiler_pic_CXX='-pic'
14739	    ;;
14740	  *)
14741	    ;;
14742	esac
14743	;;
14744      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14745	case $cc_basename in
14746	  CC*)
14747	    lt_prog_compiler_wl_CXX='-Wl,'
14748	    lt_prog_compiler_pic_CXX='-KPIC'
14749	    lt_prog_compiler_static_CXX='-Bstatic'
14750	    ;;
14751	esac
14752	;;
14753      tandem*)
14754	case $cc_basename in
14755	  NCC*)
14756	    # NonStop-UX NCC 3.20
14757	    lt_prog_compiler_pic_CXX='-KPIC'
14758	    ;;
14759	  *)
14760	    ;;
14761	esac
14762	;;
14763      vxworks*)
14764	;;
14765      *)
14766	lt_prog_compiler_can_build_shared_CXX=no
14767	;;
14768    esac
14769  fi
14770
14771case $host_os in
14772  # For platforms that do not support PIC, -DPIC is meaningless:
14773  *djgpp*)
14774    lt_prog_compiler_pic_CXX=
14775    ;;
14776  *)
14777    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14778    ;;
14779esac
14780
14781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14782$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14783if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14784  $as_echo_n "(cached) " >&6
14785else
14786  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14787fi
14788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14789$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14790lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14791
14792#
14793# Check to make sure the PIC flag actually works.
14794#
14795if test -n "$lt_prog_compiler_pic_CXX"; then
14796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14797$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14798if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14799  $as_echo_n "(cached) " >&6
14800else
14801  lt_cv_prog_compiler_pic_works_CXX=no
14802   ac_outfile=conftest.$ac_objext
14803   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14804   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14805   # Insert the option either (1) after the last *FLAGS variable, or
14806   # (2) before a word containing "conftest.", or (3) at the end.
14807   # Note that $ac_compile itself does not contain backslashes and begins
14808   # with a dollar sign (not a hyphen), so the echo should work correctly.
14809   # The option is referenced via a variable to avoid confusing sed.
14810   lt_compile=`echo "$ac_compile" | $SED \
14811   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14812   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813   -e 's:$: $lt_compiler_flag:'`
14814   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14815   (eval "$lt_compile" 2>conftest.err)
14816   ac_status=$?
14817   cat conftest.err >&5
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   if (exit $ac_status) && test -s "$ac_outfile"; then
14820     # The compiler can only warn and ignore the option if not recognized
14821     # So say no if there are warnings other than the usual output.
14822     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14823     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14824     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14825       lt_cv_prog_compiler_pic_works_CXX=yes
14826     fi
14827   fi
14828   $RM conftest*
14829
14830fi
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14832$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14833
14834if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14835    case $lt_prog_compiler_pic_CXX in
14836     "" | " "*) ;;
14837     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14838     esac
14839else
14840    lt_prog_compiler_pic_CXX=
14841     lt_prog_compiler_can_build_shared_CXX=no
14842fi
14843
14844fi
14845
14846
14847
14848
14849
14850#
14851# Check to make sure the static flag actually works.
14852#
14853wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14855$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14856if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14857  $as_echo_n "(cached) " >&6
14858else
14859  lt_cv_prog_compiler_static_works_CXX=no
14860   save_LDFLAGS=$LDFLAGS
14861   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14862   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14863   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14864     # The linker can only warn and ignore the option if not recognized
14865     # So say no if there are warnings
14866     if test -s conftest.err; then
14867       # Append any errors to the config.log.
14868       cat conftest.err 1>&5
14869       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14870       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14871       if diff conftest.exp conftest.er2 >/dev/null; then
14872         lt_cv_prog_compiler_static_works_CXX=yes
14873       fi
14874     else
14875       lt_cv_prog_compiler_static_works_CXX=yes
14876     fi
14877   fi
14878   $RM -r conftest*
14879   LDFLAGS=$save_LDFLAGS
14880
14881fi
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14883$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14884
14885if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14886    :
14887else
14888    lt_prog_compiler_static_CXX=
14889fi
14890
14891
14892
14893
14894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14895$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14896if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14897  $as_echo_n "(cached) " >&6
14898else
14899  lt_cv_prog_compiler_c_o_CXX=no
14900   $RM -r conftest 2>/dev/null
14901   mkdir conftest
14902   cd conftest
14903   mkdir out
14904   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14905
14906   lt_compiler_flag="-o out/conftest2.$ac_objext"
14907   # Insert the option either (1) after the last *FLAGS variable, or
14908   # (2) before a word containing "conftest.", or (3) at the end.
14909   # Note that $ac_compile itself does not contain backslashes and begins
14910   # with a dollar sign (not a hyphen), so the echo should work correctly.
14911   lt_compile=`echo "$ac_compile" | $SED \
14912   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14914   -e 's:$: $lt_compiler_flag:'`
14915   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14916   (eval "$lt_compile" 2>out/conftest.err)
14917   ac_status=$?
14918   cat out/conftest.err >&5
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14921   then
14922     # The compiler can only warn and ignore the option if not recognized
14923     # So say no if there are warnings
14924     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14925     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14926     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14927       lt_cv_prog_compiler_c_o_CXX=yes
14928     fi
14929   fi
14930   chmod u+w . 2>&5
14931   $RM conftest*
14932   # SGI C++ compiler will create directory out/ii_files/ for
14933   # template instantiation
14934   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14935   $RM out/* && rmdir out
14936   cd ..
14937   $RM -r conftest
14938   $RM conftest*
14939
14940fi
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14942$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14943
14944
14945
14946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14948if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14949  $as_echo_n "(cached) " >&6
14950else
14951  lt_cv_prog_compiler_c_o_CXX=no
14952   $RM -r conftest 2>/dev/null
14953   mkdir conftest
14954   cd conftest
14955   mkdir out
14956   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14957
14958   lt_compiler_flag="-o out/conftest2.$ac_objext"
14959   # Insert the option either (1) after the last *FLAGS variable, or
14960   # (2) before a word containing "conftest.", or (3) at the end.
14961   # Note that $ac_compile itself does not contain backslashes and begins
14962   # with a dollar sign (not a hyphen), so the echo should work correctly.
14963   lt_compile=`echo "$ac_compile" | $SED \
14964   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966   -e 's:$: $lt_compiler_flag:'`
14967   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14968   (eval "$lt_compile" 2>out/conftest.err)
14969   ac_status=$?
14970   cat out/conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973   then
14974     # The compiler can only warn and ignore the option if not recognized
14975     # So say no if there are warnings
14976     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14977     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14978     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14979       lt_cv_prog_compiler_c_o_CXX=yes
14980     fi
14981   fi
14982   chmod u+w . 2>&5
14983   $RM conftest*
14984   # SGI C++ compiler will create directory out/ii_files/ for
14985   # template instantiation
14986   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14987   $RM out/* && rmdir out
14988   cd ..
14989   $RM -r conftest
14990   $RM conftest*
14991
14992fi
14993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14994$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14995
14996
14997
14998
14999hard_links=nottested
15000if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15001  # do not overwrite the value of need_locks provided by the user
15002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15003$as_echo_n "checking if we can lock with hard links... " >&6; }
15004  hard_links=yes
15005  $RM conftest*
15006  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007  touch conftest.a
15008  ln conftest.a conftest.b 2>&5 || hard_links=no
15009  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15011$as_echo "$hard_links" >&6; }
15012  if test no = "$hard_links"; then
15013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15014$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15015    need_locks=warn
15016  fi
15017else
15018  need_locks=no
15019fi
15020
15021
15022
15023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15024$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15025
15026  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15027  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15028  case $host_os in
15029  aix[4-9]*)
15030    # If we're using GNU nm, then we don't want the "-C" option.
15031    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15032    # Without the "-l" option, or with the "-B" option, AIX nm treats
15033    # weak defined symbols like other global defined symbols, whereas
15034    # GNU nm marks them as "W".
15035    # While the 'weak' keyword is ignored in the Export File, we need
15036    # it in the Import File for the 'aix-soname' feature, so we have
15037    # to replace the "-B" option with "-P" for AIX nm.
15038    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15039      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15040    else
15041      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15042    fi
15043    ;;
15044  pw32*)
15045    export_symbols_cmds_CXX=$ltdll_cmds
15046    ;;
15047  cygwin* | mingw* | cegcc*)
15048    case $cc_basename in
15049    cl*)
15050      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15051      ;;
15052    *)
15053      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'
15054      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15055      ;;
15056    esac
15057    ;;
15058  *)
15059    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15060    ;;
15061  esac
15062
15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15064$as_echo "$ld_shlibs_CXX" >&6; }
15065test no = "$ld_shlibs_CXX" && can_build_shared=no
15066
15067with_gnu_ld_CXX=$with_gnu_ld
15068
15069
15070
15071
15072
15073
15074#
15075# Do we need to explicitly link libc?
15076#
15077case "x$archive_cmds_need_lc_CXX" in
15078x|xyes)
15079  # Assume -lc should be added
15080  archive_cmds_need_lc_CXX=yes
15081
15082  if test yes,yes = "$GCC,$enable_shared"; then
15083    case $archive_cmds_CXX in
15084    *'~'*)
15085      # FIXME: we may have to deal with multi-command sequences.
15086      ;;
15087    '$CC '*)
15088      # Test whether the compiler implicitly links with -lc since on some
15089      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15090      # to ld, don't add -lc before -lgcc.
15091      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15092$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15093if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15094  $as_echo_n "(cached) " >&6
15095else
15096  $RM conftest*
15097	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15098
15099	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15100  (eval $ac_compile) 2>&5
15101  ac_status=$?
15102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15103  test $ac_status = 0; } 2>conftest.err; then
15104	  soname=conftest
15105	  lib=conftest
15106	  libobjs=conftest.$ac_objext
15107	  deplibs=
15108	  wl=$lt_prog_compiler_wl_CXX
15109	  pic_flag=$lt_prog_compiler_pic_CXX
15110	  compiler_flags=-v
15111	  linker_flags=-v
15112	  verstring=
15113	  output_objdir=.
15114	  libname=conftest
15115	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15116	  allow_undefined_flag_CXX=
15117	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15118  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15119  ac_status=$?
15120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15121  test $ac_status = 0; }
15122	  then
15123	    lt_cv_archive_cmds_need_lc_CXX=no
15124	  else
15125	    lt_cv_archive_cmds_need_lc_CXX=yes
15126	  fi
15127	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15128	else
15129	  cat conftest.err 1>&5
15130	fi
15131	$RM conftest*
15132
15133fi
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15135$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15136      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15137      ;;
15138    esac
15139  fi
15140  ;;
15141esac
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15205$as_echo_n "checking dynamic linker characteristics... " >&6; }
15206
15207library_names_spec=
15208libname_spec='lib$name'
15209soname_spec=
15210shrext_cmds=.so
15211postinstall_cmds=
15212postuninstall_cmds=
15213finish_cmds=
15214finish_eval=
15215shlibpath_var=
15216shlibpath_overrides_runpath=unknown
15217version_type=none
15218dynamic_linker="$host_os ld.so"
15219sys_lib_dlsearch_path_spec="/lib /usr/lib"
15220need_lib_prefix=unknown
15221hardcode_into_libs=no
15222
15223# when you set need_version to no, make sure it does not cause -set_version
15224# flags to be left without arguments
15225need_version=unknown
15226
15227
15228
15229case $host_os in
15230aix3*)
15231  version_type=linux # correct to gnu/linux during the next big refactor
15232  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15233  shlibpath_var=LIBPATH
15234
15235  # AIX 3 has no versioning support, so we append a major version to the name.
15236  soname_spec='$libname$release$shared_ext$major'
15237  ;;
15238
15239aix[4-9]*)
15240  version_type=linux # correct to gnu/linux during the next big refactor
15241  need_lib_prefix=no
15242  need_version=no
15243  hardcode_into_libs=yes
15244  if test ia64 = "$host_cpu"; then
15245    # AIX 5 supports IA64
15246    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15247    shlibpath_var=LD_LIBRARY_PATH
15248  else
15249    # With GCC up to 2.95.x, collect2 would create an import file
15250    # for dependence libraries.  The import file would start with
15251    # the line '#! .'.  This would cause the generated library to
15252    # depend on '.', always an invalid library.  This was fixed in
15253    # development snapshots of GCC prior to 3.0.
15254    case $host_os in
15255      aix4 | aix4.[01] | aix4.[01].*)
15256      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15257	   echo ' yes '
15258	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15259	:
15260      else
15261	can_build_shared=no
15262      fi
15263      ;;
15264    esac
15265    # Using Import Files as archive members, it is possible to support
15266    # filename-based versioning of shared library archives on AIX. While
15267    # this would work for both with and without runtime linking, it will
15268    # prevent static linking of such archives. So we do filename-based
15269    # shared library versioning with .so extension only, which is used
15270    # when both runtime linking and shared linking is enabled.
15271    # Unfortunately, runtime linking may impact performance, so we do
15272    # not want this to be the default eventually. Also, we use the
15273    # versioned .so libs for executables only if there is the -brtl
15274    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15275    # To allow for filename-based versioning support, we need to create
15276    # libNAME.so.V as an archive file, containing:
15277    # *) an Import File, referring to the versioned filename of the
15278    #    archive as well as the shared archive member, telling the
15279    #    bitwidth (32 or 64) of that shared object, and providing the
15280    #    list of exported symbols of that shared object, eventually
15281    #    decorated with the 'weak' keyword
15282    # *) the shared object with the F_LOADONLY flag set, to really avoid
15283    #    it being seen by the linker.
15284    # At run time we better use the real file rather than another symlink,
15285    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15286
15287    case $with_aix_soname,$aix_use_runtimelinking in
15288    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15289    # soname into executable. Probably we can add versioning support to
15290    # collect2, so additional links can be useful in future.
15291    aix,yes) # traditional libtool
15292      dynamic_linker='AIX unversionable lib.so'
15293      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15294      # instead of lib<name>.a to let people know that these are not
15295      # typical AIX shared libraries.
15296      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15297      ;;
15298    aix,no) # traditional AIX only
15299      dynamic_linker='AIX lib.a(lib.so.V)'
15300      # We preserve .a as extension for shared libraries through AIX4.2
15301      # and later when we are not doing run time linking.
15302      library_names_spec='$libname$release.a $libname.a'
15303      soname_spec='$libname$release$shared_ext$major'
15304      ;;
15305    svr4,*) # full svr4 only
15306      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15307      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15308      # We do not specify a path in Import Files, so LIBPATH fires.
15309      shlibpath_overrides_runpath=yes
15310      ;;
15311    *,yes) # both, prefer svr4
15312      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15313      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15314      # unpreferred sharedlib libNAME.a needs extra handling
15315      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15316      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15317      # We do not specify a path in Import Files, so LIBPATH fires.
15318      shlibpath_overrides_runpath=yes
15319      ;;
15320    *,no) # both, prefer aix
15321      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15322      library_names_spec='$libname$release.a $libname.a'
15323      soname_spec='$libname$release$shared_ext$major'
15324      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15325      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15326      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15327      ;;
15328    esac
15329    shlibpath_var=LIBPATH
15330  fi
15331  ;;
15332
15333amigaos*)
15334  case $host_cpu in
15335  powerpc)
15336    # Since July 2007 AmigaOS4 officially supports .so libraries.
15337    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15338    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15339    ;;
15340  m68k)
15341    library_names_spec='$libname.ixlibrary $libname.a'
15342    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15343    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15344    ;;
15345  esac
15346  ;;
15347
15348beos*)
15349  library_names_spec='$libname$shared_ext'
15350  dynamic_linker="$host_os ld.so"
15351  shlibpath_var=LIBRARY_PATH
15352  ;;
15353
15354bsdi[45]*)
15355  version_type=linux # correct to gnu/linux during the next big refactor
15356  need_version=no
15357  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15358  soname_spec='$libname$release$shared_ext$major'
15359  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15360  shlibpath_var=LD_LIBRARY_PATH
15361  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15362  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15363  # the default ld.so.conf also contains /usr/contrib/lib and
15364  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15365  # libtool to hard-code these into programs
15366  ;;
15367
15368cygwin* | mingw* | pw32* | cegcc*)
15369  version_type=windows
15370  shrext_cmds=.dll
15371  need_version=no
15372  need_lib_prefix=no
15373
15374  case $GCC,$cc_basename in
15375  yes,*)
15376    # gcc
15377    library_names_spec='$libname.dll.a'
15378    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379    postinstall_cmds='base_file=`basename \$file`~
15380      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15381      dldir=$destdir/`dirname \$dlpath`~
15382      test -d \$dldir || mkdir -p \$dldir~
15383      $install_prog $dir/$dlname \$dldir/$dlname~
15384      chmod a+x \$dldir/$dlname~
15385      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15386        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15387      fi'
15388    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15389      dlpath=$dir/\$dldll~
15390       $RM \$dlpath'
15391    shlibpath_overrides_runpath=yes
15392
15393    case $host_os in
15394    cygwin*)
15395      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15396      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15397
15398      ;;
15399    mingw* | cegcc*)
15400      # MinGW DLLs use traditional 'lib' prefix
15401      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15402      ;;
15403    pw32*)
15404      # pw32 DLLs use 'pw' prefix rather than 'lib'
15405      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15406      ;;
15407    esac
15408    dynamic_linker='Win32 ld.exe'
15409    ;;
15410
15411  *,cl*)
15412    # Native MSVC
15413    libname_spec='$name'
15414    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15415    library_names_spec='$libname.dll.lib'
15416
15417    case $build_os in
15418    mingw*)
15419      sys_lib_search_path_spec=
15420      lt_save_ifs=$IFS
15421      IFS=';'
15422      for lt_path in $LIB
15423      do
15424        IFS=$lt_save_ifs
15425        # Let DOS variable expansion print the short 8.3 style file name.
15426        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15427        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15428      done
15429      IFS=$lt_save_ifs
15430      # Convert to MSYS style.
15431      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15432      ;;
15433    cygwin*)
15434      # Convert to unix form, then to dos form, then back to unix form
15435      # but this time dos style (no spaces!) so that the unix form looks
15436      # like /cygdrive/c/PROGRA~1:/cygdr...
15437      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15438      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15439      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15440      ;;
15441    *)
15442      sys_lib_search_path_spec=$LIB
15443      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15444        # It is most probably a Windows format PATH.
15445        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15446      else
15447        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15448      fi
15449      # FIXME: find the short name or the path components, as spaces are
15450      # common. (e.g. "Program Files" -> "PROGRA~1")
15451      ;;
15452    esac
15453
15454    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15455    postinstall_cmds='base_file=`basename \$file`~
15456      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15457      dldir=$destdir/`dirname \$dlpath`~
15458      test -d \$dldir || mkdir -p \$dldir~
15459      $install_prog $dir/$dlname \$dldir/$dlname'
15460    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15461      dlpath=$dir/\$dldll~
15462       $RM \$dlpath'
15463    shlibpath_overrides_runpath=yes
15464    dynamic_linker='Win32 link.exe'
15465    ;;
15466
15467  *)
15468    # Assume MSVC wrapper
15469    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15470    dynamic_linker='Win32 ld.exe'
15471    ;;
15472  esac
15473  # FIXME: first we should search . and the directory the executable is in
15474  shlibpath_var=PATH
15475  ;;
15476
15477darwin* | rhapsody*)
15478  dynamic_linker="$host_os dyld"
15479  version_type=darwin
15480  need_lib_prefix=no
15481  need_version=no
15482  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15483  soname_spec='$libname$release$major$shared_ext'
15484  shlibpath_overrides_runpath=yes
15485  shlibpath_var=DYLD_LIBRARY_PATH
15486  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15487
15488  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15489  ;;
15490
15491dgux*)
15492  version_type=linux # correct to gnu/linux during the next big refactor
15493  need_lib_prefix=no
15494  need_version=no
15495  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15496  soname_spec='$libname$release$shared_ext$major'
15497  shlibpath_var=LD_LIBRARY_PATH
15498  ;;
15499
15500freebsd* | dragonfly*)
15501  # DragonFly does not have aout.  When/if they implement a new
15502  # versioning mechanism, adjust this.
15503  if test -x /usr/bin/objformat; then
15504    objformat=`/usr/bin/objformat`
15505  else
15506    case $host_os in
15507    freebsd[23].*) objformat=aout ;;
15508    *) objformat=elf ;;
15509    esac
15510  fi
15511  version_type=freebsd-$objformat
15512  case $version_type in
15513    freebsd-elf*)
15514      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15515      soname_spec='$libname$release$shared_ext$major'
15516      need_version=no
15517      need_lib_prefix=no
15518      ;;
15519    freebsd-*)
15520      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15521      need_version=yes
15522      ;;
15523  esac
15524  shlibpath_var=LD_LIBRARY_PATH
15525  case $host_os in
15526  freebsd2.*)
15527    shlibpath_overrides_runpath=yes
15528    ;;
15529  freebsd3.[01]* | freebsdelf3.[01]*)
15530    shlibpath_overrides_runpath=yes
15531    hardcode_into_libs=yes
15532    ;;
15533  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15534  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15535    shlibpath_overrides_runpath=no
15536    hardcode_into_libs=yes
15537    ;;
15538  *) # from 4.6 on, and DragonFly
15539    shlibpath_overrides_runpath=yes
15540    hardcode_into_libs=yes
15541    ;;
15542  esac
15543  ;;
15544
15545haiku*)
15546  version_type=linux # correct to gnu/linux during the next big refactor
15547  need_lib_prefix=no
15548  need_version=no
15549  dynamic_linker="$host_os runtime_loader"
15550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15551  soname_spec='$libname$release$shared_ext$major'
15552  shlibpath_var=LIBRARY_PATH
15553  shlibpath_overrides_runpath=no
15554  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15555  hardcode_into_libs=yes
15556  ;;
15557
15558hpux9* | hpux10* | hpux11*)
15559  # Give a soname corresponding to the major version so that dld.sl refuses to
15560  # link against other versions.
15561  version_type=sunos
15562  need_lib_prefix=no
15563  need_version=no
15564  case $host_cpu in
15565  ia64*)
15566    shrext_cmds='.so'
15567    hardcode_into_libs=yes
15568    dynamic_linker="$host_os dld.so"
15569    shlibpath_var=LD_LIBRARY_PATH
15570    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15571    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15572    soname_spec='$libname$release$shared_ext$major'
15573    if test 32 = "$HPUX_IA64_MODE"; then
15574      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15575      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15576    else
15577      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15578      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15579    fi
15580    ;;
15581  hppa*64*)
15582    shrext_cmds='.sl'
15583    hardcode_into_libs=yes
15584    dynamic_linker="$host_os dld.sl"
15585    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15586    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15587    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15588    soname_spec='$libname$release$shared_ext$major'
15589    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15590    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15591    ;;
15592  *)
15593    shrext_cmds='.sl'
15594    dynamic_linker="$host_os dld.sl"
15595    shlibpath_var=SHLIB_PATH
15596    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15597    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15598    soname_spec='$libname$release$shared_ext$major'
15599    ;;
15600  esac
15601  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15602  postinstall_cmds='chmod 555 $lib'
15603  # or fails outright, so override atomically:
15604  install_override_mode=555
15605  ;;
15606
15607interix[3-9]*)
15608  version_type=linux # correct to gnu/linux during the next big refactor
15609  need_lib_prefix=no
15610  need_version=no
15611  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15612  soname_spec='$libname$release$shared_ext$major'
15613  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15614  shlibpath_var=LD_LIBRARY_PATH
15615  shlibpath_overrides_runpath=no
15616  hardcode_into_libs=yes
15617  ;;
15618
15619irix5* | irix6* | nonstopux*)
15620  case $host_os in
15621    nonstopux*) version_type=nonstopux ;;
15622    *)
15623	if test yes = "$lt_cv_prog_gnu_ld"; then
15624		version_type=linux # correct to gnu/linux during the next big refactor
15625	else
15626		version_type=irix
15627	fi ;;
15628  esac
15629  need_lib_prefix=no
15630  need_version=no
15631  soname_spec='$libname$release$shared_ext$major'
15632  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15633  case $host_os in
15634  irix5* | nonstopux*)
15635    libsuff= shlibsuff=
15636    ;;
15637  *)
15638    case $LD in # libtool.m4 will add one of these switches to LD
15639    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15640      libsuff= shlibsuff= libmagic=32-bit;;
15641    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15642      libsuff=32 shlibsuff=N32 libmagic=N32;;
15643    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15644      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15645    *) libsuff= shlibsuff= libmagic=never-match;;
15646    esac
15647    ;;
15648  esac
15649  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15650  shlibpath_overrides_runpath=no
15651  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15652  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15653  hardcode_into_libs=yes
15654  ;;
15655
15656# No shared lib support for Linux oldld, aout, or coff.
15657linux*oldld* | linux*aout* | linux*coff*)
15658  dynamic_linker=no
15659  ;;
15660
15661linux*android*)
15662  version_type=none # Android doesn't support versioned libraries.
15663  need_lib_prefix=no
15664  need_version=no
15665  library_names_spec='$libname$release$shared_ext'
15666  soname_spec='$libname$release$shared_ext'
15667  finish_cmds=
15668  shlibpath_var=LD_LIBRARY_PATH
15669  shlibpath_overrides_runpath=yes
15670
15671  # This implies no fast_install, which is unacceptable.
15672  # Some rework will be needed to allow for fast_install
15673  # before this can be enabled.
15674  hardcode_into_libs=yes
15675
15676  dynamic_linker='Android linker'
15677  # Don't embed -rpath directories since the linker doesn't support them.
15678  hardcode_libdir_flag_spec_CXX='-L$libdir'
15679  ;;
15680
15681# This must be glibc/ELF.
15682linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15683  version_type=linux # correct to gnu/linux during the next big refactor
15684  need_lib_prefix=no
15685  need_version=no
15686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15687  soname_spec='$libname$release$shared_ext$major'
15688  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15689  shlibpath_var=LD_LIBRARY_PATH
15690  shlibpath_overrides_runpath=no
15691
15692  # Some binutils ld are patched to set DT_RUNPATH
15693  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15694  $as_echo_n "(cached) " >&6
15695else
15696  lt_cv_shlibpath_overrides_runpath=no
15697    save_LDFLAGS=$LDFLAGS
15698    save_libdir=$libdir
15699    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15700	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15701    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702/* end confdefs.h.  */
15703
15704int
15705main ()
15706{
15707
15708  ;
15709  return 0;
15710}
15711_ACEOF
15712if ac_fn_cxx_try_link "$LINENO"; then :
15713  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15714  lt_cv_shlibpath_overrides_runpath=yes
15715fi
15716fi
15717rm -f core conftest.err conftest.$ac_objext \
15718    conftest$ac_exeext conftest.$ac_ext
15719    LDFLAGS=$save_LDFLAGS
15720    libdir=$save_libdir
15721
15722fi
15723
15724  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15725
15726  # This implies no fast_install, which is unacceptable.
15727  # Some rework will be needed to allow for fast_install
15728  # before this can be enabled.
15729  hardcode_into_libs=yes
15730
15731  # Ideally, we could use ldconfig to report *all* directores which are
15732  # searched for libraries, however this is still not possible.  Aside from not
15733  # being certain /sbin/ldconfig is available, command
15734  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15735  # even though it is searched at run-time.  Try to do the best guess by
15736  # appending ld.so.conf contents (and includes) to the search path.
15737  if test -f /etc/ld.so.conf; then
15738    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' ' '`
15739    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15740  fi
15741
15742  # We used to test for /lib/ld.so.1 and disable shared libraries on
15743  # powerpc, because MkLinux only supported shared libraries with the
15744  # GNU dynamic linker.  Since this was broken with cross compilers,
15745  # most powerpc-linux boxes support dynamic linking these days and
15746  # people can always --disable-shared, the test was removed, and we
15747  # assume the GNU/Linux dynamic linker is in use.
15748  dynamic_linker='GNU/Linux ld.so'
15749  ;;
15750
15751netbsd*)
15752  version_type=sunos
15753  need_lib_prefix=no
15754  need_version=no
15755  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15756    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15757    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15758    dynamic_linker='NetBSD (a.out) ld.so'
15759  else
15760    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15761    soname_spec='$libname$release$shared_ext$major'
15762    dynamic_linker='NetBSD ld.elf_so'
15763  fi
15764  shlibpath_var=LD_LIBRARY_PATH
15765  shlibpath_overrides_runpath=yes
15766  hardcode_into_libs=yes
15767  ;;
15768
15769newsos6)
15770  version_type=linux # correct to gnu/linux during the next big refactor
15771  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15772  shlibpath_var=LD_LIBRARY_PATH
15773  shlibpath_overrides_runpath=yes
15774  ;;
15775
15776*nto* | *qnx*)
15777  version_type=qnx
15778  need_lib_prefix=no
15779  need_version=no
15780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15781  soname_spec='$libname$release$shared_ext$major'
15782  shlibpath_var=LD_LIBRARY_PATH
15783  shlibpath_overrides_runpath=no
15784  hardcode_into_libs=yes
15785  dynamic_linker='ldqnx.so'
15786  ;;
15787
15788openbsd* | bitrig*)
15789  version_type=sunos
15790  sys_lib_dlsearch_path_spec=/usr/lib
15791  need_lib_prefix=no
15792  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15793    need_version=no
15794  else
15795    need_version=yes
15796  fi
15797  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15798  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15799  shlibpath_var=LD_LIBRARY_PATH
15800  shlibpath_overrides_runpath=yes
15801  ;;
15802
15803os2*)
15804  libname_spec='$name'
15805  version_type=windows
15806  shrext_cmds=.dll
15807  need_version=no
15808  need_lib_prefix=no
15809  # OS/2 can only load a DLL with a base name of 8 characters or less.
15810  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15811    v=$($ECHO $release$versuffix | tr -d .-);
15812    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15813    $ECHO $n$v`$shared_ext'
15814  library_names_spec='${libname}_dll.$libext'
15815  dynamic_linker='OS/2 ld.exe'
15816  shlibpath_var=BEGINLIBPATH
15817  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15818  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15819  postinstall_cmds='base_file=`basename \$file`~
15820    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15821    dldir=$destdir/`dirname \$dlpath`~
15822    test -d \$dldir || mkdir -p \$dldir~
15823    $install_prog $dir/$dlname \$dldir/$dlname~
15824    chmod a+x \$dldir/$dlname~
15825    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15826      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15827    fi'
15828  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15829    dlpath=$dir/\$dldll~
15830    $RM \$dlpath'
15831  ;;
15832
15833osf3* | osf4* | osf5*)
15834  version_type=osf
15835  need_lib_prefix=no
15836  need_version=no
15837  soname_spec='$libname$release$shared_ext$major'
15838  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15839  shlibpath_var=LD_LIBRARY_PATH
15840  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15841  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15842  ;;
15843
15844rdos*)
15845  dynamic_linker=no
15846  ;;
15847
15848solaris*)
15849  version_type=linux # correct to gnu/linux during the next big refactor
15850  need_lib_prefix=no
15851  need_version=no
15852  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15853  soname_spec='$libname$release$shared_ext$major'
15854  shlibpath_var=LD_LIBRARY_PATH
15855  shlibpath_overrides_runpath=yes
15856  hardcode_into_libs=yes
15857  # ldd complains unless libraries are executable
15858  postinstall_cmds='chmod +x $lib'
15859  ;;
15860
15861sunos4*)
15862  version_type=sunos
15863  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15864  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15865  shlibpath_var=LD_LIBRARY_PATH
15866  shlibpath_overrides_runpath=yes
15867  if test yes = "$with_gnu_ld"; then
15868    need_lib_prefix=no
15869  fi
15870  need_version=yes
15871  ;;
15872
15873sysv4 | sysv4.3*)
15874  version_type=linux # correct to gnu/linux during the next big refactor
15875  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15876  soname_spec='$libname$release$shared_ext$major'
15877  shlibpath_var=LD_LIBRARY_PATH
15878  case $host_vendor in
15879    sni)
15880      shlibpath_overrides_runpath=no
15881      need_lib_prefix=no
15882      runpath_var=LD_RUN_PATH
15883      ;;
15884    siemens)
15885      need_lib_prefix=no
15886      ;;
15887    motorola)
15888      need_lib_prefix=no
15889      need_version=no
15890      shlibpath_overrides_runpath=no
15891      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15892      ;;
15893  esac
15894  ;;
15895
15896sysv4*MP*)
15897  if test -d /usr/nec; then
15898    version_type=linux # correct to gnu/linux during the next big refactor
15899    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15900    soname_spec='$libname$shared_ext.$major'
15901    shlibpath_var=LD_LIBRARY_PATH
15902  fi
15903  ;;
15904
15905sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15906  version_type=sco
15907  need_lib_prefix=no
15908  need_version=no
15909  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15910  soname_spec='$libname$release$shared_ext$major'
15911  shlibpath_var=LD_LIBRARY_PATH
15912  shlibpath_overrides_runpath=yes
15913  hardcode_into_libs=yes
15914  if test yes = "$with_gnu_ld"; then
15915    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15916  else
15917    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15918    case $host_os in
15919      sco3.2v5*)
15920        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15921	;;
15922    esac
15923  fi
15924  sys_lib_dlsearch_path_spec='/usr/lib'
15925  ;;
15926
15927tpf*)
15928  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15929  version_type=linux # correct to gnu/linux during the next big refactor
15930  need_lib_prefix=no
15931  need_version=no
15932  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15933  shlibpath_var=LD_LIBRARY_PATH
15934  shlibpath_overrides_runpath=no
15935  hardcode_into_libs=yes
15936  ;;
15937
15938uts4*)
15939  version_type=linux # correct to gnu/linux during the next big refactor
15940  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15941  soname_spec='$libname$release$shared_ext$major'
15942  shlibpath_var=LD_LIBRARY_PATH
15943  ;;
15944
15945*)
15946  dynamic_linker=no
15947  ;;
15948esac
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15950$as_echo "$dynamic_linker" >&6; }
15951test no = "$dynamic_linker" && can_build_shared=no
15952
15953variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15954if test yes = "$GCC"; then
15955  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15956fi
15957
15958if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15959  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15960fi
15961
15962if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15963  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15964fi
15965
15966# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15967configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15968
15969# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15970func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15971
15972# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15973configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16015$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16016hardcode_action_CXX=
16017if test -n "$hardcode_libdir_flag_spec_CXX" ||
16018   test -n "$runpath_var_CXX" ||
16019   test yes = "$hardcode_automatic_CXX"; then
16020
16021  # We can hardcode non-existent directories.
16022  if test no != "$hardcode_direct_CXX" &&
16023     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16024     # have to relink, otherwise we might link with an installed library
16025     # when we should be linking with a yet-to-be-installed one
16026     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16027     test no != "$hardcode_minus_L_CXX"; then
16028    # Linking always hardcodes the temporary library directory.
16029    hardcode_action_CXX=relink
16030  else
16031    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16032    hardcode_action_CXX=immediate
16033  fi
16034else
16035  # We cannot hardcode anything, or else we can only hardcode existing
16036  # directories.
16037  hardcode_action_CXX=unsupported
16038fi
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16040$as_echo "$hardcode_action_CXX" >&6; }
16041
16042if test relink = "$hardcode_action_CXX" ||
16043   test yes = "$inherit_rpath_CXX"; then
16044  # Fast installation is not supported
16045  enable_fast_install=no
16046elif test yes = "$shlibpath_overrides_runpath" ||
16047     test no = "$enable_shared"; then
16048  # Fast installation is not necessary
16049  enable_fast_install=needless
16050fi
16051
16052
16053
16054
16055
16056
16057
16058  fi # test -n "$compiler"
16059
16060  CC=$lt_save_CC
16061  CFLAGS=$lt_save_CFLAGS
16062  LDCXX=$LD
16063  LD=$lt_save_LD
16064  GCC=$lt_save_GCC
16065  with_gnu_ld=$lt_save_with_gnu_ld
16066  lt_cv_path_LDCXX=$lt_cv_path_LD
16067  lt_cv_path_LD=$lt_save_path_LD
16068  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16069  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16070fi # test yes != "$_lt_caught_CXX_error"
16071
16072ac_ext=c
16073ac_cpp='$CPP $CPPFLAGS'
16074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16076ac_compiler_gnu=$ac_cv_c_compiler_gnu
16077
16078
16079
16080# Checked: freebsd8.0 openbsd4.6 solaris2.9 solaris2.10
16081case $host_os in
16082  linux* | k*bsd*-gnu | freebsd* | openbsd* | solaris*)
16083        link_all_deplibs_CXX=no
16084    ;;
16085esac
16086
16087case $host_os in
16088  linux*)
16089            d=`/sbin/ldconfig -N -X -v 2>&5|$SED 's,^\(/.*\):\( (.*)\)\?$,\1,p;d'|tr '\n' ' '`
16090    test -z "$d" || sys_lib_dlsearch_path_spec=$d
16091    ;;
16092esac
16093
16094ac_ext=cpp
16095ac_cpp='$CXXCPP $CPPFLAGS'
16096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16099
16100
16101    ax_cxx_compile_cxx11_required=true
16102  ac_ext=cpp
16103ac_cpp='$CXXCPP $CPPFLAGS'
16104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16107  ac_success=no
16108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16109$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16110if ${ax_cv_cxx_compile_cxx11+:} false; then :
16111  $as_echo_n "(cached) " >&6
16112else
16113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114/* end confdefs.h.  */
16115
16116  template <typename T>
16117    struct check
16118    {
16119      static_assert(sizeof(int) <= sizeof(T), "not big enough");
16120    };
16121
16122    struct Base {
16123    virtual void f() {}
16124    };
16125    struct Child : public Base {
16126    virtual void f() override {}
16127    };
16128
16129    typedef check<check<bool>> right_angle_brackets;
16130
16131    int a;
16132    decltype(a) b;
16133
16134    typedef check<int> check_type;
16135    check_type c;
16136    check_type&& cr = static_cast<check_type&&>(c);
16137
16138    auto d = a;
16139    auto l = [](){};
16140    // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
16141    struct use_l { use_l() { l(); } };
16142
16143    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16144    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
16145    namespace test_template_alias_sfinae {
16146        struct foo {};
16147
16148        template<typename T>
16149        using member = typename T::member_type;
16150
16151        template<typename T>
16152        void func(...) {}
16153
16154        template<typename T>
16155        void func(member<T>*) {}
16156
16157        void test();
16158
16159        void test() {
16160            func<foo>(0);
16161        }
16162    }
16163
16164_ACEOF
16165if ac_fn_cxx_try_compile "$LINENO"; then :
16166  ax_cv_cxx_compile_cxx11=yes
16167else
16168  ax_cv_cxx_compile_cxx11=no
16169fi
16170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171fi
16172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16173$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16174  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16175    ac_success=yes
16176  fi
16177
16178    if test x$ac_success = xno; then
16179    for switch in -std=gnu++11 -std=gnu++0x; do
16180      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16181      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16182$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16183if eval \${$cachevar+:} false; then :
16184  $as_echo_n "(cached) " >&6
16185else
16186  ac_save_CXXFLAGS="$CXXFLAGS"
16187         CXXFLAGS="$CXXFLAGS $switch"
16188         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189/* end confdefs.h.  */
16190
16191  template <typename T>
16192    struct check
16193    {
16194      static_assert(sizeof(int) <= sizeof(T), "not big enough");
16195    };
16196
16197    struct Base {
16198    virtual void f() {}
16199    };
16200    struct Child : public Base {
16201    virtual void f() override {}
16202    };
16203
16204    typedef check<check<bool>> right_angle_brackets;
16205
16206    int a;
16207    decltype(a) b;
16208
16209    typedef check<int> check_type;
16210    check_type c;
16211    check_type&& cr = static_cast<check_type&&>(c);
16212
16213    auto d = a;
16214    auto l = [](){};
16215    // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
16216    struct use_l { use_l() { l(); } };
16217
16218    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16219    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
16220    namespace test_template_alias_sfinae {
16221        struct foo {};
16222
16223        template<typename T>
16224        using member = typename T::member_type;
16225
16226        template<typename T>
16227        void func(...) {}
16228
16229        template<typename T>
16230        void func(member<T>*) {}
16231
16232        void test();
16233
16234        void test() {
16235            func<foo>(0);
16236        }
16237    }
16238
16239_ACEOF
16240if ac_fn_cxx_try_compile "$LINENO"; then :
16241  eval $cachevar=yes
16242else
16243  eval $cachevar=no
16244fi
16245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246         CXXFLAGS="$ac_save_CXXFLAGS"
16247fi
16248eval ac_res=\$$cachevar
16249	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16250$as_echo "$ac_res" >&6; }
16251      if eval test x\$$cachevar = xyes; then
16252        CXXFLAGS="$CXXFLAGS $switch"
16253        ac_success=yes
16254        break
16255      fi
16256    done
16257  fi
16258
16259    if test x$ac_success = xno; then
16260            for switch in -std=c++11 -std=c++0x +std=c++11; do
16261      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16262      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16263$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16264if eval \${$cachevar+:} false; then :
16265  $as_echo_n "(cached) " >&6
16266else
16267  ac_save_CXXFLAGS="$CXXFLAGS"
16268         CXXFLAGS="$CXXFLAGS $switch"
16269         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270/* end confdefs.h.  */
16271
16272  template <typename T>
16273    struct check
16274    {
16275      static_assert(sizeof(int) <= sizeof(T), "not big enough");
16276    };
16277
16278    struct Base {
16279    virtual void f() {}
16280    };
16281    struct Child : public Base {
16282    virtual void f() override {}
16283    };
16284
16285    typedef check<check<bool>> right_angle_brackets;
16286
16287    int a;
16288    decltype(a) b;
16289
16290    typedef check<int> check_type;
16291    check_type c;
16292    check_type&& cr = static_cast<check_type&&>(c);
16293
16294    auto d = a;
16295    auto l = [](){};
16296    // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
16297    struct use_l { use_l() { l(); } };
16298
16299    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16300    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
16301    namespace test_template_alias_sfinae {
16302        struct foo {};
16303
16304        template<typename T>
16305        using member = typename T::member_type;
16306
16307        template<typename T>
16308        void func(...) {}
16309
16310        template<typename T>
16311        void func(member<T>*) {}
16312
16313        void test();
16314
16315        void test() {
16316            func<foo>(0);
16317        }
16318    }
16319
16320_ACEOF
16321if ac_fn_cxx_try_compile "$LINENO"; then :
16322  eval $cachevar=yes
16323else
16324  eval $cachevar=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327         CXXFLAGS="$ac_save_CXXFLAGS"
16328fi
16329eval ac_res=\$$cachevar
16330	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16331$as_echo "$ac_res" >&6; }
16332      if eval test x\$$cachevar = xyes; then
16333        CXXFLAGS="$CXXFLAGS $switch"
16334        ac_success=yes
16335        break
16336      fi
16337    done
16338  fi
16339  ac_ext=cpp
16340ac_cpp='$CXXCPP $CPPFLAGS'
16341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16344
16345  if test x$ax_cxx_compile_cxx11_required = xtrue; then
16346    if test x$ac_success = xno; then
16347      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16348    fi
16349  else
16350    if test x$ac_success = xno; then
16351      HAVE_CXX11=0
16352      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16353$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16354    else
16355      HAVE_CXX11=1
16356
16357$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16358
16359    fi
16360
16361
16362  fi
16363
16364
16365
16366
16367      xapian_config_to_check_for="xapian-config"
16368  case $XAPIAN_CONFIG in
16369  "") ;;
16370  */configure)
16371    as_fn_error $? "XAPIAN_CONFIG should point to a xapian-config script, not a configure script." "$LINENO" 5
16372    ;;
16373  [\\/]* | ?:[\\/]*)
16374    # XAPIAN_CONFIG has an absolute path, so AC_PATH_PROG can handle it.
16375    ;;
16376  *[\\/]?*)
16377    # Convert a relative path to an absolute one.
16378    XAPIAN_CONFIG=`pwd`/$XAPIAN_CONFIG
16379    ;;
16380  *)
16381    # If there's no path on XAPIAN_CONFIG, use it as the name of the tool to
16382    # search PATH for, so that things like this work:
16383    #   ./configure XAPIAN_CONFIG=xapian-config-1.3
16384    xapian_config_to_check_for=$XAPIAN_CONFIG
16385    XAPIAN_CONFIG=
16386    ;;
16387  esac
16388  # Extract the first word of ""$xapian_config_to_check_for"", so it can be a program name with args.
16389set dummy "$xapian_config_to_check_for"; ac_word=$2
16390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16391$as_echo_n "checking for $ac_word... " >&6; }
16392if ${ac_cv_path_XAPIAN_CONFIG+:} false; then :
16393  $as_echo_n "(cached) " >&6
16394else
16395  case $XAPIAN_CONFIG in
16396  [\\/]* | ?:[\\/]*)
16397  ac_cv_path_XAPIAN_CONFIG="$XAPIAN_CONFIG" # Let the user override the test with a path.
16398  ;;
16399  *)
16400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16401for as_dir in $PATH
16402do
16403  IFS=$as_save_IFS
16404  test -z "$as_dir" && as_dir=.
16405    for ac_exec_ext in '' $ac_executable_extensions; do
16406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16407    ac_cv_path_XAPIAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16409    break 2
16410  fi
16411done
16412  done
16413IFS=$as_save_IFS
16414
16415  ;;
16416esac
16417fi
16418XAPIAN_CONFIG=$ac_cv_path_XAPIAN_CONFIG
16419if test -n "$XAPIAN_CONFIG"; then
16420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG" >&5
16421$as_echo "$XAPIAN_CONFIG" >&6; }
16422else
16423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16424$as_echo "no" >&6; }
16425fi
16426
16427
16428  if test -z "$XAPIAN_CONFIG"; then
16429
16430				for sfx in '' 32 64 ; do
16431	  set /usr/lib$sfx/libxapian.so.*
16432	  if test "/usr/lib$sfx/libxapian.so.*" != "" ; then
16433	    if test -r /etc/debian_version ; then
16434	      pkg="libxapian-dev"
16435	    else
16436	      pkg="xapian-core-devel"
16437	    fi
16438	    as_fn_error $? "Can't find xapian-config, although the xapian-core runtime library seems to be installed.  If you've installed xapian-core from a package, you probably need to install an extra package called something like $pkg in order to be able to build code using the Xapian library." "$LINENO" 5
16439	  fi
16440	done
16441	as_fn_error $? "Can't find xapian-config.  If you have installed the Xapian library, you need to add XAPIAN_CONFIG=/path/to/xapian-config to your configure command." "$LINENO" 5
16442  else
16443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $XAPIAN_CONFIG works" >&5
16444$as_echo_n "checking $XAPIAN_CONFIG works... " >&6; }
16445
16446        if (exec >&5 2>&5 ; $XAPIAN_CONFIG --ltlibs --cxxflags; exit $?) then
16447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448$as_echo "yes" >&6; }
16449    else
16450      case $? in
16451      127)
16452	as_fn_error $? "'$XAPIAN_CONFIG' not found, aborting" "$LINENO" 5
16453	;;
16454      126)
16455	if test -d "$XAPIAN_CONFIG" ; then
16456	  as_fn_error $? "'$XAPIAN_CONFIG' is a directory; it should be the filename of the xapian-config script" "$LINENO" 5
16457	fi
16458	as_fn_error $? "'$XAPIAN_CONFIG' not executable, aborting" "$LINENO" 5
16459	;;
16460      esac
16461      as_fn_error $? "'$XAPIAN_CONFIG --ltlibs --cxxflags' doesn't work, aborting" "$LINENO" 5
16462    fi
16463
16464    XAPIAN_VERSION=`$XAPIAN_CONFIG --version|sed 's/.* //;s/_.*$//'`
16465    XAPIAN_CXXFLAGS=`$XAPIAN_CONFIG --cxxflags`
16466    XAPIAN_LIBS=`$XAPIAN_CONFIG --ltlibs`
16467    :
16468  fi
16469
16470
16471
16472
16473
16474
16475
16476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $XAPIAN_CONFIG version >= 1.4.0" >&5
16477$as_echo_n "checking if $XAPIAN_CONFIG version >= 1.4.0... " >&6; }
16478  old_IFS=$IFS
16479  IFS=.
16480  set x `echo "$XAPIAN_VERSION"|sed 's/_.*//'`
16481  IFS=$old_IFS
16482  res=
16483
16484  if test -z "$res" ; then
16485    shift
16486    if test "$1" -gt '1' ; then
16487      res=1
16488    elif test "$1" -lt '1' ; then
16489      res=0
16490    fi
16491  fi
16492  if test -z "$res" ; then
16493    shift
16494    if test "$1" -gt '4' ; then
16495      res=1
16496    elif test "$1" -lt '4' ; then
16497      res=0
16498    fi
16499  fi
16500  if test -z "$res" ; then
16501    shift
16502    if test "$1" -gt '0' ; then
16503      res=1
16504    elif test "$1" -lt '0' ; then
16505      res=0
16506    fi
16507  fi
16508  if test "$res" = 0 ; then
16509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($XAPIAN_VERSION)" >&5
16510$as_echo "no ($XAPIAN_VERSION)" >&6; }
16511    as_fn_error $? "XAPIAN_VERSION is $XAPIAN_VERSION, but >= 1.4.0 required" "$LINENO" 5
16512  else
16513    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($XAPIAN_VERSION)" >&5
16514$as_echo "yes ($XAPIAN_VERSION)" >&6; }
16515
16516  fi
16517
16518
16519NEED_JNILIB_EXT=no
16520NEED_INTREE_DYLD=no
16521INTREE_DYLD_PATH=
16522case $host_os in
16523darwin*)
16524  NEED_JNILIB_EXT=yes
16525      if $XAPIAN_CONFIG --libs >/dev/null 2>/dev/null ; then
16526    :
16527  else
16528    NEED_INTREE_DYLD=yes
16529            set x $XAPIAN_LIBS
16530    as_fn_arith $# - 1
16531    shift $as_val
16532    INTREE_DYLD_PATH=$1
16533        case $INTREE_DYLD_PATH in
16534      /*) ;;
16535      *) INTREE_DYLD_PATH=`pwd`/$INTREE_DYLD_PATH ;;
16536    esac
16537        INTREE_DYLD_PATH=`echo "$INTREE_DYLD_PATH"|sed 's,\(.*/\).*,\1,'`$lt_cv_objdir
16538
16539  fi
16540  ;;
16541esac
16542 if test yes = "$NEED_JNILIB_EXT"; then
16543  NEED_JNILIB_EXT_TRUE=
16544  NEED_JNILIB_EXT_FALSE='#'
16545else
16546  NEED_JNILIB_EXT_TRUE='#'
16547  NEED_JNILIB_EXT_FALSE=
16548fi
16549
16550 if test yes = "$NEED_INTREE_DYLD"; then
16551  NEED_INTREE_DYLD_TRUE=
16552  NEED_INTREE_DYLD_FALSE='#'
16553else
16554  NEED_INTREE_DYLD_TRUE='#'
16555  NEED_INTREE_DYLD_FALSE=
16556fi
16557
16558
16559save_CXXFLAGS=$CXXFLAGS
16560CXXFLAGS="$CXXFLAGS $XAPIAN_CXXFLAGS"
16561
16562COMPAT_VERSION=`echo "$PACKAGE_VERSION"|sed 's/^\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/'`
16563
16564
16565VERSION_NO_SNAPSHOT=`echo "$PACKAGE_VERSION"|sed 's/_.*$//'`
16566
16567
16568test -n "$docdir" || docdir='${datadir}/doc/${PACKAGE_TARNAME}'
16569
16570
16571# Check whether --enable-visibility was given.
16572if test "${enable_visibility+set}" = set; then :
16573  enableval=$enable_visibility; case ${enableval} in
16574    yes|no) ;;
16575    *) as_fn_error $? "bad value ${enableval} for --disable-visibility" "$LINENO" 5 ;;
16576  esac
16577fi
16578
16579
16580
16581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16582$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16583    # Check whether --enable-maintainer-mode was given.
16584if test "${enable_maintainer_mode+set}" = set; then :
16585  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16586else
16587  USE_MAINTAINER_MODE=no
16588fi
16589
16590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16591$as_echo "$USE_MAINTAINER_MODE" >&6; }
16592   if test $USE_MAINTAINER_MODE = yes; then
16593  MAINTAINER_MODE_TRUE=
16594  MAINTAINER_MODE_FALSE='#'
16595else
16596  MAINTAINER_MODE_TRUE='#'
16597  MAINTAINER_MODE_FALSE=
16598fi
16599
16600  MAINT=$MAINTAINER_MODE_TRUE
16601
16602
16603
16604# Check whether --enable-documentation was given.
16605if test "${enable_documentation+set}" = set; then :
16606  enableval=$enable_documentation; case ${enableval} in
16607    yes|no) ;;
16608    *) as_fn_error $? "bad value ${enableval} for --enable-documentation" "$LINENO" 5 ;;
16609  esac
16610fi
16611
16612test -z "$enable_documentation" && enable_documentation=$USE_MAINTAINER_MODE
16613 if test x"$enable_documentation" = xyes; then
16614  DOCUMENTATION_RULES_TRUE=
16615  DOCUMENTATION_RULES_FALSE='#'
16616else
16617  DOCUMENTATION_RULES_TRUE='#'
16618  DOCUMENTATION_RULES_FALSE=
16619fi
16620
16621 if test x"$USE_MAINTAINER_MODE$enable_documentation" = xyesno; then
16622  MAINTAINER_NO_DOCS_TRUE=
16623  MAINTAINER_NO_DOCS_FALSE='#'
16624else
16625  MAINTAINER_NO_DOCS_TRUE='#'
16626  MAINTAINER_NO_DOCS_FALSE=
16627fi
16628
16629
16630if test yes = "$enable_documentation" ; then
16631      for ac_prog in rst2html rst2html.py
16632do
16633  # Extract the first word of "$ac_prog", so it can be a program name with args.
16634set dummy $ac_prog; ac_word=$2
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16636$as_echo_n "checking for $ac_word... " >&6; }
16637if ${ac_cv_path_RST2HTML+:} false; then :
16638  $as_echo_n "(cached) " >&6
16639else
16640  case $RST2HTML in
16641  [\\/]* | ?:[\\/]*)
16642  ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
16643  ;;
16644  *)
16645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16646for as_dir in $PATH
16647do
16648  IFS=$as_save_IFS
16649  test -z "$as_dir" && as_dir=.
16650    for ac_exec_ext in '' $ac_executable_extensions; do
16651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16652    ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
16653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16654    break 2
16655  fi
16656done
16657  done
16658IFS=$as_save_IFS
16659
16660  ;;
16661esac
16662fi
16663RST2HTML=$ac_cv_path_RST2HTML
16664if test -n "$RST2HTML"; then
16665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
16666$as_echo "$RST2HTML" >&6; }
16667else
16668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669$as_echo "no" >&6; }
16670fi
16671
16672
16673  test -n "$RST2HTML" && break
16674done
16675
16676  test -z "$RST2HTML" && as_fn_error $? "rst2html is required to build documentation (try package python-docutils)" "$LINENO" 5
16677fi
16678
16679if test x$USE_MAINTAINER_MODE = xyes; then
16680          swigoverridden=${SWIG+yes}
16681  for ac_prog in "${SWIG-swig}"
16682do
16683  # Extract the first word of "$ac_prog", so it can be a program name with args.
16684set dummy $ac_prog; ac_word=$2
16685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16686$as_echo_n "checking for $ac_word... " >&6; }
16687if ${ac_cv_path_SWIG+:} false; then :
16688  $as_echo_n "(cached) " >&6
16689else
16690  case $SWIG in
16691  [\\/]* | ?:[\\/]*)
16692  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16693  ;;
16694  *)
16695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696for as_dir in $PATH
16697do
16698  IFS=$as_save_IFS
16699  test -z "$as_dir" && as_dir=.
16700    for ac_exec_ext in '' $ac_executable_extensions; do
16701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16702    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16704    break 2
16705  fi
16706done
16707  done
16708IFS=$as_save_IFS
16709
16710  ;;
16711esac
16712fi
16713SWIG=$ac_cv_path_SWIG
16714if test -n "$SWIG"; then
16715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16716$as_echo "$SWIG" >&6; }
16717else
16718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16719$as_echo "no" >&6; }
16720fi
16721
16722
16723  test -n "$SWIG" && break
16724done
16725
16726
16727  if test -z "$SWIG" ; then
16728    as_fn_error $? "Can't find SWIG utility" "$LINENO" 5
16729  fi
16730              v=`$SWIG -version 2>&1|sed 's/^SWIG Version \([0-9\.]*\).*/\1/p;d'`
16731  case $v in
16732    [012].*|3.0.?|3.0.1[01]|"")
16733      msg="SWIG >= 3.0.12 required (you have ${v:-an unknown version})"
16734      if test -n "$swigoverridden" ; then
16735		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16736$as_echo "$as_me: WARNING: $msg" >&2;}
16737      else
16738	as_fn_error $? "$msg" "$LINENO" 5
16739      fi ;;
16740  esac
16741  SWIG_FLAGS=`$XAPIAN_CONFIG --swigflags`
16742
16743  XAPIAN_HEADER_DIRS=
16744  XAPIAN_HEADERS=
16745  for a in $SWIG_FLAGS ; do
16746    case $a in
16747    -I*)
16748      d=`echo "x$a"|sed 's/^x-I//'`
16749            XAPIAN_HEADER_DIRS=$XAPIAN_HEADER_DIRS' "'$d'"'
16750      for f in "$d/"*.h "$d/xapian/*.h" ; do
16751	if test -f "$f" ; then
16752	  XAPIAN_HEADERS="$XAPIAN_HEADERS $f"
16753	fi
16754      done
16755      ;;
16756    esac
16757  done
16758
16759
16760
16761    for ac_prog in "${PERL-perl}"
16762do
16763  # Extract the first word of "$ac_prog", so it can be a program name with args.
16764set dummy $ac_prog; ac_word=$2
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16766$as_echo_n "checking for $ac_word... " >&6; }
16767if ${ac_cv_path_PERL+:} false; then :
16768  $as_echo_n "(cached) " >&6
16769else
16770  case $PERL in
16771  [\\/]* | ?:[\\/]*)
16772  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16773  ;;
16774  *)
16775  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16776for as_dir in $PATH
16777do
16778  IFS=$as_save_IFS
16779  test -z "$as_dir" && as_dir=.
16780    for ac_exec_ext in '' $ac_executable_extensions; do
16781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16782    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16784    break 2
16785  fi
16786done
16787  done
16788IFS=$as_save_IFS
16789
16790  ;;
16791esac
16792fi
16793PERL=$ac_cv_path_PERL
16794if test -n "$PERL"; then
16795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16796$as_echo "$PERL" >&6; }
16797else
16798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16799$as_echo "no" >&6; }
16800fi
16801
16802
16803  test -n "$PERL" && break
16804done
16805
16806  test -z "$PERL" && as_fn_error $? "perl is required in maintainer mode" "$LINENO" 5
16807      # Extract the first word of "doxygen", so it can be a program name with args.
16808set dummy doxygen; ac_word=$2
16809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16810$as_echo_n "checking for $ac_word... " >&6; }
16811if ${ac_cv_path_DOXYGEN+:} false; then :
16812  $as_echo_n "(cached) " >&6
16813else
16814  case $DOXYGEN in
16815  [\\/]* | ?:[\\/]*)
16816  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16817  ;;
16818  *)
16819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820for as_dir in $PATH
16821do
16822  IFS=$as_save_IFS
16823  test -z "$as_dir" && as_dir=.
16824    for ac_exec_ext in '' $ac_executable_extensions; do
16825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16828    break 2
16829  fi
16830done
16831  done
16832IFS=$as_save_IFS
16833
16834  ;;
16835esac
16836fi
16837DOXYGEN=$ac_cv_path_DOXYGEN
16838if test -n "$DOXYGEN"; then
16839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16840$as_echo "$DOXYGEN" >&6; }
16841else
16842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843$as_echo "no" >&6; }
16844fi
16845
16846
16847  test -z "$DOXYGEN" && as_fn_error $? "doxygen is required to build documentation" "$LINENO" 5
16848fi
16849
16850
16851# Check whether --with-python was given.
16852if test "${with_python+set}" = set; then :
16853  withval=$with_python;
16854else
16855  with_python=
16856fi
16857
16858
16859
16860# Check whether --with-python3 was given.
16861if test "${with_python3+set}" = set; then :
16862  withval=$with_python3;
16863else
16864  with_python3=
16865fi
16866
16867
16868
16869# Check whether --with-php was given.
16870if test "${with_php+set}" = set; then :
16871  withval=$with_php;
16872else
16873  with_php=
16874fi
16875
16876
16877
16878# Check whether --with-php7 was given.
16879if test "${with_php7+set}" = set; then :
16880  withval=$with_php7;
16881else
16882  with_php7=
16883fi
16884
16885
16886
16887# Check whether --with-ruby was given.
16888if test "${with_ruby+set}" = set; then :
16889  withval=$with_ruby;
16890else
16891  with_ruby=
16892fi
16893
16894
16895
16896# Check whether --with-tcl was given.
16897if test "${with_tcl+set}" = set; then :
16898  withval=$with_tcl;
16899else
16900  with_tcl=
16901fi
16902
16903
16904
16905# Check whether --with-csharp was given.
16906if test "${with_csharp+set}" = set; then :
16907  withval=$with_csharp;
16908else
16909  with_csharp=
16910fi
16911
16912
16913
16914# Check whether --with-java was given.
16915if test "${with_java+set}" = set; then :
16916  withval=$with_java;
16917else
16918  with_java=
16919fi
16920
16921
16922
16923# Check whether --with-perl was given.
16924if test "${with_perl+set}" = set; then :
16925  withval=$with_perl;
16926else
16927  with_perl=
16928fi
16929
16930
16931
16932# Check whether --with-lua was given.
16933if test "${with_lua+set}" = set; then :
16934  withval=$with_lua;
16935else
16936  with_lua=
16937fi
16938
16939
16940case $with_python$with_python3$with_php$with_php7$with_ruby$with_tcl$with_csharp$with_java$with_perl$with_lua in
16941*yes*)
16942    test -z "$with_python" && with_python=no
16943  test -z "$with_python3" && with_python3=no
16944  test -z "$with_php" && with_php=no
16945  test -z "$with_php7" && with_php7=no
16946  test -z "$with_tcl" && with_tcl=no
16947  test -z "$with_csharp" && with_csharp=no
16948  test -z "$with_java" && with_java=no
16949  test -z "$with_ruby" && with_ruby=no
16950  test -z "$with_perl" && with_perl=no
16951  test -z "$with_lua" && with_lua=no
16952  ;;
16953esac
16954
16955BINDINGS=
16956
16957if test no != "$with_python" ; then
16958    : ${PYTHON2="$PYTHON"}
16959  : ${PYTHON2_INC="$PYTHON_INC"}
16960  : ${PYTHON2_LIB="$PYTHON_LIB"}
16961  : ${PYTHON2_LIBS="$PYTHON_LIBS"}
16962  : ${PYTHON2_SO="$PYTHON_SO"}
16963    if test -n "$PYTHON2" ; then
16964    for ac_prog in "$PYTHON2"
16965do
16966  # Extract the first word of "$ac_prog", so it can be a program name with args.
16967set dummy $ac_prog; ac_word=$2
16968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16969$as_echo_n "checking for $ac_word... " >&6; }
16970if ${ac_cv_path_PYTHON2+:} false; then :
16971  $as_echo_n "(cached) " >&6
16972else
16973  case $PYTHON2 in
16974  [\\/]* | ?:[\\/]*)
16975  ac_cv_path_PYTHON2="$PYTHON2" # Let the user override the test with a path.
16976  ;;
16977  *)
16978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16979for as_dir in $PATH
16980do
16981  IFS=$as_save_IFS
16982  test -z "$as_dir" && as_dir=.
16983    for ac_exec_ext in '' $ac_executable_extensions; do
16984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16985    ac_cv_path_PYTHON2="$as_dir/$ac_word$ac_exec_ext"
16986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16987    break 2
16988  fi
16989done
16990  done
16991IFS=$as_save_IFS
16992
16993  ;;
16994esac
16995fi
16996PYTHON2=$ac_cv_path_PYTHON2
16997if test -n "$PYTHON2"; then
16998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
16999$as_echo "$PYTHON2" >&6; }
17000else
17001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17002$as_echo "no" >&6; }
17003fi
17004
17005
17006  test -n "$PYTHON2" && break
17007done
17008
17009  else
17010    for ac_prog in python2 python
17011do
17012  # Extract the first word of "$ac_prog", so it can be a program name with args.
17013set dummy $ac_prog; ac_word=$2
17014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17015$as_echo_n "checking for $ac_word... " >&6; }
17016if ${ac_cv_path_PYTHON2+:} false; then :
17017  $as_echo_n "(cached) " >&6
17018else
17019  case $PYTHON2 in
17020  [\\/]* | ?:[\\/]*)
17021  ac_cv_path_PYTHON2="$PYTHON2" # Let the user override the test with a path.
17022  ;;
17023  *)
17024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17025for as_dir in $PATH
17026do
17027  IFS=$as_save_IFS
17028  test -z "$as_dir" && as_dir=.
17029    for ac_exec_ext in '' $ac_executable_extensions; do
17030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17031    ac_cv_path_PYTHON2="$as_dir/$ac_word$ac_exec_ext"
17032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17033    break 2
17034  fi
17035done
17036  done
17037IFS=$as_save_IFS
17038
17039  ;;
17040esac
17041fi
17042PYTHON2=$ac_cv_path_PYTHON2
17043if test -n "$PYTHON2"; then
17044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
17045$as_echo "$PYTHON2" >&6; }
17046else
17047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17048$as_echo "no" >&6; }
17049fi
17050
17051
17052  test -n "$PYTHON2" && break
17053done
17054
17055  fi
17056
17057  if test -n "$PYTHON2" ; then
17058            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON2 version" >&5
17059$as_echo_n "checking $PYTHON2 version... " >&6; }
17060    version=`$PYTHON2 -c 'import sys;print("%d.%d" % sys.version_info[:2])' 2>/dev/null`
17061    case $version in
17062    2.[6-9]*|2.[1-5][0-9]*)
17063      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
17064$as_echo "$version" >&6; }
17065      ;;
17066    [3-9].*)
17067      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version (too new - use --with-python3 for Python 3 support)" >&5
17068$as_echo "$version (too new - use --with-python3 for Python 3 support)" >&6; }
17069      if test yes = "$with_python" ; then
17070	as_fn_error $? "Use --with-python3 for Python 3 support ($PYTHON2 is $version)" "$LINENO" 5
17071      fi
17072      PYTHON2=
17073      ;;
17074    *)
17075      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version (too old)" >&5
17076$as_echo "$version (too old)" >&6; }
17077      if test yes = "$with_python" ; then
17078	as_fn_error $? "Only Python 2.6 or newer is supported ($PYTHON2 is $version)" "$LINENO" 5
17079      fi
17080      PYTHON2=
17081      ;;
17082    esac
17083    if test -n "$PYTHON2" ; then
17084      if $PYTHON2 -c 'import distutils.sysconfig' 2>/dev/null ; then
17085	PYTHON2_INC=`$PYTHON2 -c 'import os,distutils.sysconfig;print(distutils.sysconfig.get_python_inc().replace(os.sep,"/"))'`
17086
17087      else
17088	if test yes = "$with_python" ; then
17089	  as_fn_error $? "Couldn't import Python module distutils.sysconfig - you probably need to install a python-dev or python-devel package" "$LINENO" 5
17090	else
17091	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't import Python module distutils.sysconfig - you probably don't have a python-dev or python-devel package installed" >&5
17092$as_echo "$as_me: WARNING: Couldn't import Python module distutils.sysconfig - you probably don't have a python-dev or python-devel package installed" >&2;}
17093	  PYTHON2=
17094	fi
17095      fi
17096    fi
17097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python2 sphinx module" >&5
17098$as_echo_n "checking for python2 sphinx module... " >&6; }
17099    if $PYTHON2 -c 'import sphinx;print(repr(sphinx.main))' >&5 2>&5 ; then
17100      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17101$as_echo "yes" >&6; }
17102    else
17103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104$as_echo "no" >&6; }
17105    fi
17106    if test -n "$PYTHON2" ; then
17107                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON2_INC/Python.h" >&5
17108$as_echo_n "checking for $PYTHON2_INC/Python.h... " >&6; }
17109      if test -f "$PYTHON2_INC/Python.h" ; then
17110	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17111$as_echo "yes" >&6; }
17112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory to install python2 bindings in" >&5
17113$as_echo_n "checking for directory to install python2 bindings in... " >&6; }
17114	if test -z "$PYTHON2_LIB" ; then
17115	  PYTHON2_LIB=`$PYTHON2 -c 'import os,distutils.sysconfig;print(distutils.sysconfig.get_python_lib(1).replace(os.sep,"/"))'`
17116	fi
17117	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_LIB" >&5
17118$as_echo "$PYTHON2_LIB" >&6; }
17119
17120
17121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python2 libraries to link against" >&5
17122$as_echo_n "checking for python2 libraries to link against... " >&6; }
17123	case $host_os in
17124	mingw* | pw32*)
17125	  PYTHON2_LIBS=`$PYTHON2 -c 'import os,sys;print("-L"+os.path.join(sys.prefix,"libs").replace(os.sep,"/")+" -lpython"+sys.version[:3].replace(".",""))'` ;;
17126	cygwin*)
17127	  PYTHON2_LIBS=`$PYTHON2 -c 'import os,sys;print("-L"+os.path.join(sys.path[3],"config")+" -lpython"+sys.version[:3])'` ;;
17128	*)
17129	  PYTHON2_LIBS= ;;
17130	esac
17131
17132	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_LIBS" >&5
17133$as_echo "$PYTHON2_LIBS" >&6; }
17134
17135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python2 module extension" >&5
17136$as_echo_n "checking for python2 module extension... " >&6; }
17137		PYTHON2_SO=`$PYTHON2 -c 'import distutils.sysconfig;print(distutils.sysconfig.get_config_vars("SO")[0])'`
17138
17139	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_SO" >&5
17140$as_echo "$PYTHON2_SO" >&6; }
17141	BINDINGS="$BINDINGS python"
17142      else
17143	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (install python-dev or python-devel package or similar)" >&5
17144$as_echo "no (install python-dev or python-devel package or similar)" >&6; }
17145	if test yes = "$with_python" ; then
17146	  as_fn_error $? "Python.h not found" "$LINENO" 5
17147	fi
17148      fi
17149    fi
17150  fi
17151fi
17152
17153if test no != "$with_python3" ; then
17154    if test -n "$PYTHON3" ; then
17155    for ac_prog in "$PYTHON3"
17156do
17157  # Extract the first word of "$ac_prog", so it can be a program name with args.
17158set dummy $ac_prog; ac_word=$2
17159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17160$as_echo_n "checking for $ac_word... " >&6; }
17161if ${ac_cv_path_PYTHON3+:} false; then :
17162  $as_echo_n "(cached) " >&6
17163else
17164  case $PYTHON3 in
17165  [\\/]* | ?:[\\/]*)
17166  ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
17167  ;;
17168  *)
17169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17170for as_dir in $PATH
17171do
17172  IFS=$as_save_IFS
17173  test -z "$as_dir" && as_dir=.
17174    for ac_exec_ext in '' $ac_executable_extensions; do
17175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17176    ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
17177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17178    break 2
17179  fi
17180done
17181  done
17182IFS=$as_save_IFS
17183
17184  ;;
17185esac
17186fi
17187PYTHON3=$ac_cv_path_PYTHON3
17188if test -n "$PYTHON3"; then
17189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
17190$as_echo "$PYTHON3" >&6; }
17191else
17192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193$as_echo "no" >&6; }
17194fi
17195
17196
17197  test -n "$PYTHON3" && break
17198done
17199
17200  else
17201    for ac_prog in python3 python
17202do
17203  # Extract the first word of "$ac_prog", so it can be a program name with args.
17204set dummy $ac_prog; ac_word=$2
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206$as_echo_n "checking for $ac_word... " >&6; }
17207if ${ac_cv_path_PYTHON3+:} false; then :
17208  $as_echo_n "(cached) " >&6
17209else
17210  case $PYTHON3 in
17211  [\\/]* | ?:[\\/]*)
17212  ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
17213  ;;
17214  *)
17215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17216for as_dir in $PATH
17217do
17218  IFS=$as_save_IFS
17219  test -z "$as_dir" && as_dir=.
17220    for ac_exec_ext in '' $ac_executable_extensions; do
17221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17222    ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
17223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17224    break 2
17225  fi
17226done
17227  done
17228IFS=$as_save_IFS
17229
17230  ;;
17231esac
17232fi
17233PYTHON3=$ac_cv_path_PYTHON3
17234if test -n "$PYTHON3"; then
17235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
17236$as_echo "$PYTHON3" >&6; }
17237else
17238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239$as_echo "no" >&6; }
17240fi
17241
17242
17243  test -n "$PYTHON3" && break
17244done
17245
17246  fi
17247
17248  if test -n "$PYTHON3" ; then
17249                { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON3 version" >&5
17250$as_echo_n "checking $PYTHON3 version... " >&6; }
17251    version=`$PYTHON3 -c 'import sys;print("%d.%d" % sys.version_info[:2])' 2>/dev/null`
17252    case $version in
17253    3.[2-9]*|3.1[0-9]*|[4-9].*)
17254      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
17255$as_echo "$version" >&6; }
17256      ;;
17257    *)
17258      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version (too old)" >&5
17259$as_echo "$version (too old)" >&6; }
17260      if test yes = "$with_python3" ; then
17261	as_fn_error $? "Only Python 3.2 or newer is supported ($python3 is $version)" "$LINENO" 5
17262      fi
17263      PYTHON3=
17264      ;;
17265    esac
17266    if test -n "$PYTHON3" ; then
17267      if $PYTHON3 -c 'import distutils.sysconfig' 2>/dev/null ; then
17268	PYTHON3_INC=`$PYTHON3 -c 'import os,distutils.sysconfig;print(distutils.sysconfig.get_python_inc().replace(os.sep,"/"))'`
17269
17270      else
17271	if test yes = "$with_python3" ; then
17272	  as_fn_error $? "Couldn't import Python module distutils.sysconfig - you probably need to install a python3-dev or python3-devel package" "$LINENO" 5
17273	else
17274	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't import Python module distutils.sysconfig - you probably don't have a python3-dev or python3-devel package installed" >&5
17275$as_echo "$as_me: WARNING: Couldn't import Python module distutils.sysconfig - you probably don't have a python3-dev or python3-devel package installed" >&2;}
17276	  PYTHON3=
17277	fi
17278      fi
17279    fi
17280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 sphinx module" >&5
17281$as_echo_n "checking for python3 sphinx module... " >&6; }
17282    if $PYTHON3 -c 'import sphinx' >&5 2>&5 ; then
17283      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17284$as_echo "yes" >&6; }
17285    else
17286      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287$as_echo "no" >&6; }
17288    fi
17289    if test -n "$PYTHON3" ; then
17290                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON3_INC/Python.h" >&5
17291$as_echo_n "checking for $PYTHON3_INC/Python.h... " >&6; }
17292      if test -f "$PYTHON3_INC/Python.h" ; then
17293	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17294$as_echo "yes" >&6; }
17295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory to install python3 bindings in" >&5
17296$as_echo_n "checking for directory to install python3 bindings in... " >&6; }
17297	if test -z "$PYTHON3_LIB" ; then
17298	  PYTHON3_LIB=`$PYTHON3 -c 'import os,distutils.sysconfig;print(distutils.sysconfig.get_python_lib(1).replace(os.sep,"/"))'`
17299	fi
17300	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_LIB" >&5
17301$as_echo "$PYTHON3_LIB" >&6; }
17302
17303
17304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 libraries to link against" >&5
17305$as_echo_n "checking for python3 libraries to link against... " >&6; }
17306	case $host_os in
17307	mingw* | pw32*)
17308	  PYTHON3_LIBS=`$PYTHON3 -c 'import os,sys;print("-L"+os.path.join(sys.prefix,"libs").replace(os.sep,"/")+" -lpython"+sys.version[:3].replace(".",""))'` ;;
17309	cygwin*)
17310	  PYTHON3_LIBS=`$PYTHON3 -c 'import os,sys;print("-L"+os.path.join(sys.path[3],"config")+" -lpython"+sys.version[:3])'` ;;
17311	*)
17312	  PYTHON3_LIBS= ;;
17313	esac
17314
17315	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_LIBS" >&5
17316$as_echo "$PYTHON3_LIBS" >&6; }
17317
17318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 module extension" >&5
17319$as_echo_n "checking for python3 module extension... " >&6; }
17320		PYTHON3_SO=`$PYTHON3 -c 'import distutils.sysconfig;print(distutils.sysconfig.get_config_vars("SO")[0])'`
17321
17322	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_SO" >&5
17323$as_echo "$PYTHON3_SO" >&6; }
17324
17325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tag for cached compiled scripts" >&5
17326$as_echo_n "checking for tag for cached compiled scripts... " >&6; }
17327	PYTHON3_CACHE_TAG=`$PYTHON3 -c 'import imp;print(imp.get_tag())'`
17328
17329	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CACHE_TAG" >&5
17330$as_echo "$PYTHON3_CACHE_TAG" >&6; }
17331
17332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension of cached and optimized python3 bytecode" >&5
17333$as_echo_n "checking for extension of cached and optimized python3 bytecode... " >&6; }
17334	PYTHON3_CACHE_OPT1_EXT=`$PYTHON3 -c 'import imp,sys;print("%s.pyo"%imp.get_tag()) if sys.version_info.minor<5 else print("{1}{2}".format(*imp.util.cache_from_source("",optimization=1).rpartition(imp.get_tag())))'`
17335
17336	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CACHE_OPT1_EXT" >&5
17337$as_echo "$PYTHON3_CACHE_OPT1_EXT" >&6; }
17338
17339	BINDINGS="$BINDINGS python3"
17340      else
17341	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (install python3-dev or python3-devel package or similar)" >&5
17342$as_echo "no (install python3-dev or python3-devel package or similar)" >&6; }
17343	if test yes = "$with_python3" ; then
17344	  as_fn_error $? "Python.h not found" "$LINENO" 5
17345	fi
17346      fi
17347    fi
17348  fi
17349fi
17350
17351if test x$USE_MAINTAINER_MODE = xyes; then
17352      if test -n "$PYTHON2" ; then
17353    PYTHON=$PYTHON2
17354  elif test -n "$PYTHON3" ; then
17355    PYTHON=$PYTHON3
17356  else
17357    for ac_prog in python2 python python3
17358do
17359  # Extract the first word of "$ac_prog", so it can be a program name with args.
17360set dummy $ac_prog; ac_word=$2
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17362$as_echo_n "checking for $ac_word... " >&6; }
17363if ${ac_cv_path_PYTHON+:} false; then :
17364  $as_echo_n "(cached) " >&6
17365else
17366  case $PYTHON in
17367  [\\/]* | ?:[\\/]*)
17368  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17369  ;;
17370  *)
17371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17372for as_dir in $PATH
17373do
17374  IFS=$as_save_IFS
17375  test -z "$as_dir" && as_dir=.
17376    for ac_exec_ext in '' $ac_executable_extensions; do
17377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17378    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17380    break 2
17381  fi
17382done
17383  done
17384IFS=$as_save_IFS
17385
17386  ;;
17387esac
17388fi
17389PYTHON=$ac_cv_path_PYTHON
17390if test -n "$PYTHON"; then
17391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17392$as_echo "$PYTHON" >&6; }
17393else
17394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395$as_echo "no" >&6; }
17396fi
17397
17398
17399  test -n "$PYTHON" && break
17400done
17401
17402  fi
17403  test -z "$PYTHON" && as_fn_error $? "python is required in maintainer mode" "$LINENO" 5
17404fi
17405
17406if test no != "$with_php" ; then
17407    if test -n "$PHP_CONFIG" ; then
17408    for ac_prog in "$PHP_CONFIG"
17409do
17410  # Extract the first word of "$ac_prog", so it can be a program name with args.
17411set dummy $ac_prog; ac_word=$2
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17413$as_echo_n "checking for $ac_word... " >&6; }
17414if ${ac_cv_path_PHP_CONFIG+:} false; then :
17415  $as_echo_n "(cached) " >&6
17416else
17417  case $PHP_CONFIG in
17418  [\\/]* | ?:[\\/]*)
17419  ac_cv_path_PHP_CONFIG="$PHP_CONFIG" # Let the user override the test with a path.
17420  ;;
17421  *)
17422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17423for as_dir in $PATH
17424do
17425  IFS=$as_save_IFS
17426  test -z "$as_dir" && as_dir=.
17427    for ac_exec_ext in '' $ac_executable_extensions; do
17428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17429    ac_cv_path_PHP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17431    break 2
17432  fi
17433done
17434  done
17435IFS=$as_save_IFS
17436
17437  ;;
17438esac
17439fi
17440PHP_CONFIG=$ac_cv_path_PHP_CONFIG
17441if test -n "$PHP_CONFIG"; then
17442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG" >&5
17443$as_echo "$PHP_CONFIG" >&6; }
17444else
17445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17446$as_echo "no" >&6; }
17447fi
17448
17449
17450  test -n "$PHP_CONFIG" && break
17451done
17452
17453  fi
17454  if test -z "$PHP_CONFIG" ; then
17455    for ac_prog in php-config5 php-config5.6 php-config5.5 php-config
17456do
17457  # Extract the first word of "$ac_prog", so it can be a program name with args.
17458set dummy $ac_prog; ac_word=$2
17459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17460$as_echo_n "checking for $ac_word... " >&6; }
17461if ${ac_cv_path_PHP_CONFIG+:} false; then :
17462  $as_echo_n "(cached) " >&6
17463else
17464  case $PHP_CONFIG in
17465  [\\/]* | ?:[\\/]*)
17466  ac_cv_path_PHP_CONFIG="$PHP_CONFIG" # Let the user override the test with a path.
17467  ;;
17468  *)
17469  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17470for as_dir in $PATH
17471do
17472  IFS=$as_save_IFS
17473  test -z "$as_dir" && as_dir=.
17474    for ac_exec_ext in '' $ac_executable_extensions; do
17475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17476    ac_cv_path_PHP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17478    break 2
17479  fi
17480done
17481  done
17482IFS=$as_save_IFS
17483
17484  ;;
17485esac
17486fi
17487PHP_CONFIG=$ac_cv_path_PHP_CONFIG
17488if test -n "$PHP_CONFIG"; then
17489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG" >&5
17490$as_echo "$PHP_CONFIG" >&6; }
17491else
17492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17493$as_echo "no" >&6; }
17494fi
17495
17496
17497  test -n "$PHP_CONFIG" && break
17498done
17499
17500  fi
17501
17502
17503  if test -n "$PHP_CONFIG" ; then
17504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PHP_CONFIG version" >&5
17505$as_echo_n "checking $PHP_CONFIG version... " >&6; }
17506    version=`$PHP_CONFIG --version 2>/dev/null`
17507    case $version in
17508    [01234].*|5.[01234].*|[6789].*)
17509      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version (not supported, PHP5 bindings need PHP 5.x where x >= 5)" >&5
17510$as_echo "$version (not supported, PHP5 bindings need PHP 5.x where x >= 5)" >&6; }
17511      if test yes = "$with_php" ; then
17512	as_fn_error $? "$PHP_CONFIG reports version $version - PHP5 bindings need PHP 5.x where x >= 5" "$LINENO" 5
17513      fi
17514      with_php=no
17515      ;;
17516    *)
17517      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
17518$as_echo "$version" >&6; }
17519      PHP_MAJOR_VERSION=`echo "$version"|cut -d. -f1`
17520      ;;
17521    esac
17522
17523
17524    if test no != "$with_php" ; then
17525      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP5 extension directory" >&5
17526$as_echo_n "checking for PHP5 extension directory... " >&6; }
17527      if test -z "$PHP_EXTENSION_DIR" ; then
17528	PHP_EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
17529      fi
17530      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_EXTENSION_DIR" >&5
17531$as_echo "$PHP_EXTENSION_DIR" >&6; }
17532
17533    fi
17534
17535    if test no != "$with_php" ; then
17536      PHP_INC=`$PHP_CONFIG --includes`
17537
17538      save_CPPFLAGS=$CPPFLAGS
17539      CPPFLAGS="$CPPFLAGS $PHP_INC"
17540            ac_fn_cxx_check_header_compile "$LINENO" "zend.h" "ac_cv_header_zend_h" "
17541"
17542if test "x$ac_cv_header_zend_h" = xyes; then :
17543
17544else
17545
17546	if test yes = "$with_php" ; then
17547	  as_fn_error $? "'$PHP_CONFIG --includes' reports '$PHP_INC' but zend.h can't be included from there" "$LINENO" 5
17548	fi
17549	with_php=no
17550fi
17551
17552
17553      CPPFLAGS=$save_CPPFLAGS
17554    fi
17555
17556    if test no != "$with_php" ; then
17557      if test x"$PHP" = x ; then
17558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP5 interpreter" >&5
17559$as_echo_n "checking for PHP5 interpreter... " >&6; }
17560		PHP=`$PHP_CONFIG --php-binary 2>/dev/null`
17561	if test x"$PHP" != x ; then
17562	  if $PHP -r 'exit(0);' 2> /dev/null ; then
17563	    if $PHP -r 'exit(PHP_MAJOR_VERSION==5?0:1);' 2> /dev/null ; then
17564	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
17565$as_echo "$PHP" >&6; }
17566	    else
17567	      	      	      if ${PHP}5 -r 'exit(PHP_MAJOR_VERSION==5?0:1);' 2> /dev/null ; then
17568		PHP=${PHP}5
17569		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
17570$as_echo "$PHP" >&6; }
17571	      else
17572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($PHP isn't PHP5)" >&5
17573$as_echo "no ($PHP isn't PHP5)" >&6; }
17574		PHP=
17575	      fi
17576	    fi
17577	  else
17578	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($PHP does not work)" >&5
17579$as_echo "no ($PHP does not work)" >&6; }
17580	    PHP=
17581	  fi
17582	else
17583	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17584$as_echo "not found" >&6; }
17585	fi
17586      else
17587	for ac_prog in "$PHP"
17588do
17589  # Extract the first word of "$ac_prog", so it can be a program name with args.
17590set dummy $ac_prog; ac_word=$2
17591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17592$as_echo_n "checking for $ac_word... " >&6; }
17593if ${ac_cv_path_PHP+:} false; then :
17594  $as_echo_n "(cached) " >&6
17595else
17596  case $PHP in
17597  [\\/]* | ?:[\\/]*)
17598  ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
17599  ;;
17600  *)
17601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17602for as_dir in $PATH
17603do
17604  IFS=$as_save_IFS
17605  test -z "$as_dir" && as_dir=.
17606    for ac_exec_ext in '' $ac_executable_extensions; do
17607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17608    ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
17609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17610    break 2
17611  fi
17612done
17613  done
17614IFS=$as_save_IFS
17615
17616  ;;
17617esac
17618fi
17619PHP=$ac_cv_path_PHP
17620if test -n "$PHP"; then
17621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
17622$as_echo "$PHP" >&6; }
17623else
17624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625$as_echo "no" >&6; }
17626fi
17627
17628
17629  test -n "$PHP" && break
17630done
17631
17632      fi
17633      if test x"$PHP" = x ; then
17634	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No PHP5 interpreter found - PHP5 bindings tests will be skipped" >&5
17635$as_echo "$as_me: WARNING: No PHP5 interpreter found - PHP5 bindings tests will be skipped" >&2;}
17636		PHP='$(top_srcdir)/skiptest'
17637      else
17638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP5 path separator" >&5
17639$as_echo_n "checking for PHP5 path separator... " >&6; }
17640	PHP_PATH_SEPARATOR=`$PHP -r 'echo PATH_SEPARATOR;'`
17641
17642	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PATH_SEPARATOR" >&5
17643$as_echo "$PHP_PATH_SEPARATOR" >&6; }
17644      fi
17645
17646      case $host_os in
17647      mingw* | pw32*)
17648				PHP_LIBS="-L`$PHP_CONFIG --prefix` -lphp${PHP_MAJOR_VERSION}ts" ;;
17649      cygwin*)
17650	PHP_LIBS="-lphp${PHP_MAJOR_VERSION}lib" ;;
17651      *)
17652	PHP_LIBS= ;;
17653      esac
17654
17655      BINDINGS="$BINDINGS php"
17656    fi
17657  fi
17658fi
17659
17660if test no != "$with_php7" ; then
17661    if test -n "$PHP_CONFIG7" ; then
17662    for ac_prog in "$PHP_CONFIG7"
17663do
17664  # Extract the first word of "$ac_prog", so it can be a program name with args.
17665set dummy $ac_prog; ac_word=$2
17666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17667$as_echo_n "checking for $ac_word... " >&6; }
17668if ${ac_cv_path_PHP_CONFIG7+:} false; then :
17669  $as_echo_n "(cached) " >&6
17670else
17671  case $PHP_CONFIG7 in
17672  [\\/]* | ?:[\\/]*)
17673  ac_cv_path_PHP_CONFIG7="$PHP_CONFIG7" # Let the user override the test with a path.
17674  ;;
17675  *)
17676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17677for as_dir in $PATH
17678do
17679  IFS=$as_save_IFS
17680  test -z "$as_dir" && as_dir=.
17681    for ac_exec_ext in '' $ac_executable_extensions; do
17682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17683    ac_cv_path_PHP_CONFIG7="$as_dir/$ac_word$ac_exec_ext"
17684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17685    break 2
17686  fi
17687done
17688  done
17689IFS=$as_save_IFS
17690
17691  ;;
17692esac
17693fi
17694PHP_CONFIG7=$ac_cv_path_PHP_CONFIG7
17695if test -n "$PHP_CONFIG7"; then
17696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG7" >&5
17697$as_echo "$PHP_CONFIG7" >&6; }
17698else
17699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17700$as_echo "no" >&6; }
17701fi
17702
17703
17704  test -n "$PHP_CONFIG7" && break
17705done
17706
17707  fi
17708  if test -z "$PHP_CONFIG7" ; then
17709    for ac_prog in php-config7.3 php-config7.2 php-config7.1 php-config7.0 php-config
17710do
17711  # Extract the first word of "$ac_prog", so it can be a program name with args.
17712set dummy $ac_prog; ac_word=$2
17713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17714$as_echo_n "checking for $ac_word... " >&6; }
17715if ${ac_cv_path_PHP_CONFIG7+:} false; then :
17716  $as_echo_n "(cached) " >&6
17717else
17718  case $PHP_CONFIG7 in
17719  [\\/]* | ?:[\\/]*)
17720  ac_cv_path_PHP_CONFIG7="$PHP_CONFIG7" # Let the user override the test with a path.
17721  ;;
17722  *)
17723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17724for as_dir in $PATH
17725do
17726  IFS=$as_save_IFS
17727  test -z "$as_dir" && as_dir=.
17728    for ac_exec_ext in '' $ac_executable_extensions; do
17729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17730    ac_cv_path_PHP_CONFIG7="$as_dir/$ac_word$ac_exec_ext"
17731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17732    break 2
17733  fi
17734done
17735  done
17736IFS=$as_save_IFS
17737
17738  ;;
17739esac
17740fi
17741PHP_CONFIG7=$ac_cv_path_PHP_CONFIG7
17742if test -n "$PHP_CONFIG7"; then
17743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG7" >&5
17744$as_echo "$PHP_CONFIG7" >&6; }
17745else
17746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17747$as_echo "no" >&6; }
17748fi
17749
17750
17751  test -n "$PHP_CONFIG7" && break
17752done
17753
17754  fi
17755
17756
17757  if test -n "$PHP_CONFIG7" ; then
17758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PHP_CONFIG7 version" >&5
17759$as_echo_n "checking $PHP_CONFIG7 version... " >&6; }
17760    version=`$PHP_CONFIG7 --version 2>/dev/null`
17761    case $version in
17762    [0123456].*)
17763      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version (not supported, PHP7 bindings need PHP >= 7.0)" >&5
17764$as_echo "$version (not supported, PHP7 bindings need PHP >= 7.0)" >&6; }
17765      if test yes = "$with_php7" ; then
17766	as_fn_error $? "$PHP_CONFIG7 reports version $version - PHP7 bindings need >= 7.0" "$LINENO" 5
17767      fi
17768      with_php7=no
17769      ;;
17770    *)
17771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
17772$as_echo "$version" >&6; }
17773      PHP7_MAJOR_VERSION=`echo "$version"|cut -d. -f1`
17774      ;;
17775    esac
17776
17777
17778    if test no != "$with_php7" ; then
17779      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP7 extension directory" >&5
17780$as_echo_n "checking for PHP7 extension directory... " >&6; }
17781      if test -z "$PHP7_EXTENSION_DIR" ; then
17782	PHP7_EXTENSION_DIR=`$PHP_CONFIG7 --extension-dir`
17783      fi
17784      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP7_EXTENSION_DIR" >&5
17785$as_echo "$PHP7_EXTENSION_DIR" >&6; }
17786
17787    fi
17788
17789    if test no != "$with_php7" ; then
17790      PHP7_INC=`$PHP_CONFIG7 --includes`
17791
17792    fi
17793
17794    if test no != "$with_php7" ; then
17795      if test x"$PHP7" = x ; then
17796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP7 interpreter" >&5
17797$as_echo_n "checking for PHP7 interpreter... " >&6; }
17798		PHP7=`$PHP_CONFIG7 --php-binary 2>/dev/null`
17799	if test x"$PHP7" != x ; then
17800	  if $PHP7 -r 'exit(0);' 2> /dev/null ; then
17801	    if $PHP7 -r 'exit(PHP_MAJOR_VERSION==7?0:1);' 2> /dev/null ; then
17802	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP7" >&5
17803$as_echo "$PHP7" >&6; }
17804	    else
17805	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($PHP7 isn't PHP7)" >&5
17806$as_echo "no ($PHP7 isn't PHP7)" >&6; }
17807	      PHP7=
17808	    fi
17809	  else
17810	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($PHP7 does not work)" >&5
17811$as_echo "no ($PHP7 does not work)" >&6; }
17812	    PHP7=
17813	  fi
17814	else
17815	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17816$as_echo "not found" >&6; }
17817	fi
17818      else
17819	for ac_prog in "$PHP7"
17820do
17821  # Extract the first word of "$ac_prog", so it can be a program name with args.
17822set dummy $ac_prog; ac_word=$2
17823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17824$as_echo_n "checking for $ac_word... " >&6; }
17825if ${ac_cv_path_PHP7+:} false; then :
17826  $as_echo_n "(cached) " >&6
17827else
17828  case $PHP7 in
17829  [\\/]* | ?:[\\/]*)
17830  ac_cv_path_PHP7="$PHP7" # Let the user override the test with a path.
17831  ;;
17832  *)
17833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17834for as_dir in $PATH
17835do
17836  IFS=$as_save_IFS
17837  test -z "$as_dir" && as_dir=.
17838    for ac_exec_ext in '' $ac_executable_extensions; do
17839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17840    ac_cv_path_PHP7="$as_dir/$ac_word$ac_exec_ext"
17841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17842    break 2
17843  fi
17844done
17845  done
17846IFS=$as_save_IFS
17847
17848  ;;
17849esac
17850fi
17851PHP7=$ac_cv_path_PHP7
17852if test -n "$PHP7"; then
17853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP7" >&5
17854$as_echo "$PHP7" >&6; }
17855else
17856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17857$as_echo "no" >&6; }
17858fi
17859
17860
17861  test -n "$PHP7" && break
17862done
17863
17864      fi
17865      if test x"$PHP7" = x ; then
17866	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No PHP7 interpreter found - PHP7 bindings tests will be skipped" >&5
17867$as_echo "$as_me: WARNING: No PHP7 interpreter found - PHP7 bindings tests will be skipped" >&2;}
17868		PHP7='$(top_srcdir)/skiptest'
17869      else
17870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP7 path separator" >&5
17871$as_echo_n "checking for PHP7 path separator... " >&6; }
17872	PHP7_PATH_SEPARATOR=`$PHP7 -r 'echo PATH_SEPARATOR;'`
17873
17874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP7_PATH_SEPARATOR" >&5
17875$as_echo "$PHP7_PATH_SEPARATOR" >&6; }
17876      fi
17877
17878      case $host_os in
17879      mingw* | pw32*)
17880				PHP7_LIBS="-L`$PHP_CONFIG7 --prefix` -lphp${PHP7_MAJOR_VERSION}ts" ;;
17881      cygwin*)
17882	PHP7_LIBS="-lphp${PHP7_MAJOR_VERSION}lib" ;;
17883      *)
17884	PHP7_LIBS= ;;
17885      esac
17886
17887      BINDINGS="$BINDINGS php7"
17888    fi
17889  fi
17890fi
17891
17892if test no != "$with_tcl" ; then
17893                        : ${tcl_min=8.5}
17894  for ac_prog in "${TCLSH-tclsh}"
17895do
17896  # Extract the first word of "$ac_prog", so it can be a program name with args.
17897set dummy $ac_prog; ac_word=$2
17898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17899$as_echo_n "checking for $ac_word... " >&6; }
17900if ${ac_cv_path_TCLSH+:} false; then :
17901  $as_echo_n "(cached) " >&6
17902else
17903  case $TCLSH in
17904  [\\/]* | ?:[\\/]*)
17905  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17906  ;;
17907  *)
17908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909for as_dir in $PATH
17910do
17911  IFS=$as_save_IFS
17912  test -z "$as_dir" && as_dir=.
17913    for ac_exec_ext in '' $ac_executable_extensions; do
17914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17915    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17917    break 2
17918  fi
17919done
17920  done
17921IFS=$as_save_IFS
17922
17923  ;;
17924esac
17925fi
17926TCLSH=$ac_cv_path_TCLSH
17927if test -n "$TCLSH"; then
17928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
17929$as_echo "$TCLSH" >&6; }
17930else
17931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17932$as_echo "no" >&6; }
17933fi
17934
17935
17936  test -n "$TCLSH" && break
17937done
17938
17939
17940  if test -n "$TCLSH" ; then
17941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $TCLSH version" >&5
17942$as_echo_n "checking $TCLSH version... " >&6; }
17943    if echo 'if {$tcl_version < '"$tcl_min"' } { exit 1 }'|$TCLSH 2> /dev/null ; then
17944      tcl_version=`echo 'puts "$tcl_version"'|$TCLSH`
17945      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_version" >&5
17946$as_echo "$tcl_version" >&6; }
17947
17948
17949      if test -z "$TCL_LIB" ; then
17950	TCL_LIB=`echo 'foreach d $tcl_pkgPath {if {![regexp {/share(/|$)} $d]} {break}};puts $d'|$TCLSH`
17951      fi
17952
17953
17954
17955      if test -z "$TCL_INC" ; then
17956		TCL_INC=`echo 'puts [::tcl::pkgconfig get includedir,runtime]'|$TCLSH 2> /dev/null`
17957      fi
17958
17959                  TCL_CPPFLAGS=
17960      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcl.h from Tcl $tcl_version" >&5
17961$as_echo_n "checking for tcl.h from Tcl $tcl_version... " >&6; }
17962      if test x"$TCL_INC" != x && test -f "$TCL_INC/tcl.h" ; then
17963	tcl_hdr_version=`awk '($1 == "#define" && $2 == "TCL_VERSION") {print $3}' "$TCL_INC/tcl.h"|sed 's/"//g'`
17964	if test x"$tcl_hdr_version" = x"$tcl_version" ; then
17965	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_INC/tcl.h" >&5
17966$as_echo "$TCL_INC/tcl.h" >&6; }
17967	  BINDINGS="$BINDINGS tcl8"
17968	  if test x"$TCL_INC" != x"/usr/include" ; then
17969	    TCL_CPPFLAGS="-I$TCL_INC"
17970	  fi
17971	else
17972	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17973$as_echo "not found" >&6; }
17974	  if test yes = "$with_tcl" ; then
17975	    as_fn_error $? "Found tcl.h from version $tcl_hdr_version, not $tcl_version - specify TCL_INC on configure command line" "$LINENO" 5
17976	  fi
17977	  TCLSH=
17978	fi
17979      else
17980	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17981$as_echo "not found" >&6; }
17982	if test yes = "$with_tcl" ; then
17983	  as_fn_error $? "Can't find tcl.h" "$LINENO" 5
17984	fi
17985	TCLSH=
17986      fi
17987
17988      if test -n "$TCLSH" ; then
17989		TCL_LIBS=
17990	case $host_os in
17991	cygwin*)
17992	  as_ac_Lib=`$as_echo "ac_cv_lib_tcl$tcl_version''_Tcl_Init" | $as_tr_sh`
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Init in -ltcl$tcl_version" >&5
17994$as_echo_n "checking for Tcl_Init in -ltcl$tcl_version... " >&6; }
17995if eval \${$as_ac_Lib+:} false; then :
17996  $as_echo_n "(cached) " >&6
17997else
17998  ac_check_lib_save_LIBS=$LIBS
17999LIBS="-ltcl$tcl_version  $LIBS"
18000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001/* end confdefs.h.  */
18002
18003/* Override any GCC internal prototype to avoid an error.
18004   Use char because int might match the return type of a GCC
18005   builtin and then its argument prototype would still apply.  */
18006#ifdef __cplusplus
18007extern "C"
18008#endif
18009char Tcl_Init ();
18010int
18011main ()
18012{
18013return Tcl_Init ();
18014  ;
18015  return 0;
18016}
18017_ACEOF
18018if ac_fn_cxx_try_link "$LINENO"; then :
18019  eval "$as_ac_Lib=yes"
18020else
18021  eval "$as_ac_Lib=no"
18022fi
18023rm -f core conftest.err conftest.$ac_objext \
18024    conftest$ac_exeext conftest.$ac_ext
18025LIBS=$ac_check_lib_save_LIBS
18026fi
18027eval ac_res=\$$as_ac_Lib
18028	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18029$as_echo "$ac_res" >&6; }
18030if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18031  TCL_LIBS="-ltcl$tcl_version"
18032else
18033  as_fn_error $? "libtcl$tcl_version not found" "$LINENO" 5
18034fi
18035
18036	  ;;
18037	*)
18038	  	  	  tcl_libdir_runtime=`echo 'puts [::tcl::pkgconfig get libdir,runtime]'|$TCLSH 2> /dev/null`
18039	  if test -n "$tcl_libdir_runtime" ; then
18040	    for x in "/tcl$tcl_version" "" ; do
18041	      TCLCONFIG_SH=$tcl_libdir_runtime$x/tclConfig.sh
18042	      if test -r "$TCLCONFIG_SH" ; then
18043		eval "`sed 's/^TCL_STUB_LIB_SPEC=/TCL_LIBS=/p;d' $TCLCONFIG_SH`"
18044		break
18045	      fi
18046	    done
18047	  fi
18048	  TCL_CPPFLAGS="$TCL_CPPFLAGS -DUSE_TCL_STUBS" ;;
18049	esac
18050      fi
18051
18052
18053
18054    else
18055      { $as_echo "$as_me:${as_lineno-$LINENO}: result: < $tcl_min (too old)" >&5
18056$as_echo "< $tcl_min (too old)" >&6; }
18057      if test yes = "$with_tcl" ; then
18058	as_fn_error $? "$TCLSH too old (Tcl $tcl_min or newer required)" "$LINENO" 5
18059      fi
18060    fi
18061  else
18062    if test yes = "$with_tcl" ; then
18063      as_fn_error $? "tclsh not found" "$LINENO" 5
18064    fi
18065  fi
18066fi
18067
18068if test no != "$with_csharp" ; then
18069  csc_note=
18070
18071  if test -n "$CSC" ; then
18072    for ac_prog in "$CSC"
18073do
18074  # Extract the first word of "$ac_prog", so it can be a program name with args.
18075set dummy $ac_prog; ac_word=$2
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18077$as_echo_n "checking for $ac_word... " >&6; }
18078if ${ac_cv_path_CSC+:} false; then :
18079  $as_echo_n "(cached) " >&6
18080else
18081  case $CSC in
18082  [\\/]* | ?:[\\/]*)
18083  ac_cv_path_CSC="$CSC" # Let the user override the test with a path.
18084  ;;
18085  *)
18086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18087for as_dir in $PATH
18088do
18089  IFS=$as_save_IFS
18090  test -z "$as_dir" && as_dir=.
18091    for ac_exec_ext in '' $ac_executable_extensions; do
18092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18093    ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext"
18094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18095    break 2
18096  fi
18097done
18098  done
18099IFS=$as_save_IFS
18100
18101  ;;
18102esac
18103fi
18104CSC=$ac_cv_path_CSC
18105if test -n "$CSC"; then
18106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5
18107$as_echo "$CSC" >&6; }
18108else
18109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18110$as_echo "no" >&6; }
18111fi
18112
18113
18114  test -n "$CSC" && break
18115done
18116
18117  fi
18118  if test -z "$CSC" ; then
18119                for ac_prog in cli-csc mono-csc
18120do
18121  # Extract the first word of "$ac_prog", so it can be a program name with args.
18122set dummy $ac_prog; ac_word=$2
18123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18124$as_echo_n "checking for $ac_word... " >&6; }
18125if ${ac_cv_path_CSC+:} false; then :
18126  $as_echo_n "(cached) " >&6
18127else
18128  case $CSC in
18129  [\\/]* | ?:[\\/]*)
18130  ac_cv_path_CSC="$CSC" # Let the user override the test with a path.
18131  ;;
18132  *)
18133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18134for as_dir in $PATH
18135do
18136  IFS=$as_save_IFS
18137  test -z "$as_dir" && as_dir=.
18138    for ac_exec_ext in '' $ac_executable_extensions; do
18139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18140    ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext"
18141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18142    break 2
18143  fi
18144done
18145  done
18146IFS=$as_save_IFS
18147
18148  ;;
18149esac
18150fi
18151CSC=$ac_cv_path_CSC
18152if test -n "$CSC"; then
18153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5
18154$as_echo "$CSC" >&6; }
18155else
18156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18157$as_echo "no" >&6; }
18158fi
18159
18160
18161  test -n "$CSC" && break
18162done
18163
18164    if test -z "$CSC" ; then
18165                        for ac_prog in mcs
18166do
18167  # Extract the first word of "$ac_prog", so it can be a program name with args.
18168set dummy $ac_prog; ac_word=$2
18169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18170$as_echo_n "checking for $ac_word... " >&6; }
18171if ${ac_cv_path_CSC+:} false; then :
18172  $as_echo_n "(cached) " >&6
18173else
18174  case $CSC in
18175  [\\/]* | ?:[\\/]*)
18176  ac_cv_path_CSC="$CSC" # Let the user override the test with a path.
18177  ;;
18178  *)
18179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18180for as_dir in $PATH
18181do
18182  IFS=$as_save_IFS
18183  test -z "$as_dir" && as_dir=.
18184    for ac_exec_ext in '' $ac_executable_extensions; do
18185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18186    ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext"
18187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18188    break 2
18189  fi
18190done
18191  done
18192IFS=$as_save_IFS
18193
18194  ;;
18195esac
18196fi
18197CSC=$ac_cv_path_CSC
18198if test -n "$CSC"; then
18199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5
18200$as_echo "$CSC" >&6; }
18201else
18202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203$as_echo "no" >&6; }
18204fi
18205
18206
18207  test -n "$CSC" && break
18208done
18209
18210      if test -n "$CSC" ; then
18211				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CSC is from GNU Mono" >&5
18212$as_echo_n "checking whether $CSC is from GNU Mono... " >&6; }
18213	if (exec >&5 2>&5;$CSC --version </dev/null;exit $?) ; then
18214	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215$as_echo "yes" >&6; }
18216	else
18217	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18218$as_echo "no" >&6; }
18219	  CSC=
18220	  csc_note="$csc_note (found different mcs program)"
18221	fi
18222      fi
18223    fi
18224    if test -z "$CSC" ; then
18225            for ac_prog in csc
18226do
18227  # Extract the first word of "$ac_prog", so it can be a program name with args.
18228set dummy $ac_prog; ac_word=$2
18229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230$as_echo_n "checking for $ac_word... " >&6; }
18231if ${ac_cv_path_CSC+:} false; then :
18232  $as_echo_n "(cached) " >&6
18233else
18234  case $CSC in
18235  [\\/]* | ?:[\\/]*)
18236  ac_cv_path_CSC="$CSC" # Let the user override the test with a path.
18237  ;;
18238  *)
18239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240for as_dir in $PATH
18241do
18242  IFS=$as_save_IFS
18243  test -z "$as_dir" && as_dir=.
18244    for ac_exec_ext in '' $ac_executable_extensions; do
18245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18246    ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext"
18247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18248    break 2
18249  fi
18250done
18251  done
18252IFS=$as_save_IFS
18253
18254  ;;
18255esac
18256fi
18257CSC=$ac_cv_path_CSC
18258if test -n "$CSC"; then
18259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5
18260$as_echo "$CSC" >&6; }
18261else
18262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263$as_echo "no" >&6; }
18264fi
18265
18266
18267  test -n "$CSC" && break
18268done
18269
18270      if test -n "$CSC" ; then
18271					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CSC is for CSharp" >&5
18272$as_echo_n "checking whether $CSC is for CSharp... " >&6; }
18273	if $CSC -version 2>/dev/null|grep chicken > /dev/null ; then
18274	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18275$as_echo "no" >&6; }
18276	  CSC=
18277	  csc_note="$csc_note (found Chicken csc program)"
18278	else
18279	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18280$as_echo "yes" >&6; }
18281	fi
18282      fi
18283    fi
18284  fi
18285
18286  if test -n "$CSC" ; then
18287
18288    if test -n "$GACUTIL" ; then
18289      for ac_prog in "$GACUTIL"
18290do
18291  # Extract the first word of "$ac_prog", so it can be a program name with args.
18292set dummy $ac_prog; ac_word=$2
18293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18294$as_echo_n "checking for $ac_word... " >&6; }
18295if ${ac_cv_path_GACUTIL+:} false; then :
18296  $as_echo_n "(cached) " >&6
18297else
18298  case $GACUTIL in
18299  [\\/]* | ?:[\\/]*)
18300  ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path.
18301  ;;
18302  *)
18303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18304for as_dir in $PATH
18305do
18306  IFS=$as_save_IFS
18307  test -z "$as_dir" && as_dir=.
18308    for ac_exec_ext in '' $ac_executable_extensions; do
18309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18310    ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
18311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18312    break 2
18313  fi
18314done
18315  done
18316IFS=$as_save_IFS
18317
18318  ;;
18319esac
18320fi
18321GACUTIL=$ac_cv_path_GACUTIL
18322if test -n "$GACUTIL"; then
18323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GACUTIL" >&5
18324$as_echo "$GACUTIL" >&6; }
18325else
18326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327$as_echo "no" >&6; }
18328fi
18329
18330
18331  test -n "$GACUTIL" && break
18332done
18333
18334    fi
18335    if test -z "$GACUTIL" ; then
18336      for ac_prog in cli-gacutil gacutil
18337do
18338  # Extract the first word of "$ac_prog", so it can be a program name with args.
18339set dummy $ac_prog; ac_word=$2
18340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18341$as_echo_n "checking for $ac_word... " >&6; }
18342if ${ac_cv_path_GACUTIL+:} false; then :
18343  $as_echo_n "(cached) " >&6
18344else
18345  case $GACUTIL in
18346  [\\/]* | ?:[\\/]*)
18347  ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path.
18348  ;;
18349  *)
18350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18351for as_dir in $PATH
18352do
18353  IFS=$as_save_IFS
18354  test -z "$as_dir" && as_dir=.
18355    for ac_exec_ext in '' $ac_executable_extensions; do
18356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18357    ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
18358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18359    break 2
18360  fi
18361done
18362  done
18363IFS=$as_save_IFS
18364
18365  ;;
18366esac
18367fi
18368GACUTIL=$ac_cv_path_GACUTIL
18369if test -n "$GACUTIL"; then
18370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GACUTIL" >&5
18371$as_echo "$GACUTIL" >&6; }
18372else
18373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374$as_echo "no" >&6; }
18375fi
18376
18377
18378  test -n "$GACUTIL" && break
18379done
18380
18381    fi
18382
18383
18384    if test -n "$SN" ; then
18385      for ac_prog in "$SN"
18386do
18387  # Extract the first word of "$ac_prog", so it can be a program name with args.
18388set dummy $ac_prog; ac_word=$2
18389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18390$as_echo_n "checking for $ac_word... " >&6; }
18391if ${ac_cv_path_SN+:} false; then :
18392  $as_echo_n "(cached) " >&6
18393else
18394  case $SN in
18395  [\\/]* | ?:[\\/]*)
18396  ac_cv_path_SN="$SN" # Let the user override the test with a path.
18397  ;;
18398  *)
18399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18400for as_dir in $PATH
18401do
18402  IFS=$as_save_IFS
18403  test -z "$as_dir" && as_dir=.
18404    for ac_exec_ext in '' $ac_executable_extensions; do
18405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18406    ac_cv_path_SN="$as_dir/$ac_word$ac_exec_ext"
18407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18408    break 2
18409  fi
18410done
18411  done
18412IFS=$as_save_IFS
18413
18414  ;;
18415esac
18416fi
18417SN=$ac_cv_path_SN
18418if test -n "$SN"; then
18419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SN" >&5
18420$as_echo "$SN" >&6; }
18421else
18422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423$as_echo "no" >&6; }
18424fi
18425
18426
18427  test -n "$SN" && break
18428done
18429
18430    fi
18431    if test -z "$SN" ; then
18432      for ac_prog in cli-sn sn
18433do
18434  # Extract the first word of "$ac_prog", so it can be a program name with args.
18435set dummy $ac_prog; ac_word=$2
18436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18437$as_echo_n "checking for $ac_word... " >&6; }
18438if ${ac_cv_path_SN+:} false; then :
18439  $as_echo_n "(cached) " >&6
18440else
18441  case $SN in
18442  [\\/]* | ?:[\\/]*)
18443  ac_cv_path_SN="$SN" # Let the user override the test with a path.
18444  ;;
18445  *)
18446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447for as_dir in $PATH
18448do
18449  IFS=$as_save_IFS
18450  test -z "$as_dir" && as_dir=.
18451    for ac_exec_ext in '' $ac_executable_extensions; do
18452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18453    ac_cv_path_SN="$as_dir/$ac_word$ac_exec_ext"
18454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18455    break 2
18456  fi
18457done
18458  done
18459IFS=$as_save_IFS
18460
18461  ;;
18462esac
18463fi
18464SN=$ac_cv_path_SN
18465if test -n "$SN"; then
18466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SN" >&5
18467$as_echo "$SN" >&6; }
18468else
18469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18470$as_echo "no" >&6; }
18471fi
18472
18473
18474  test -n "$SN" && break
18475done
18476
18477    fi
18478    if test -n "$GACUTIL" -a -n "$SN" ; then
18479      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CSharp compiler works" >&5
18480$as_echo_n "checking whether the CSharp compiler works... " >&6; }
18481      echo 'class conftest { public static void Main() { System.Console.WriteLine("OK"); } }' > conftest.cs
18482      if (exec >&5 2>&5;$CSC /out:conftest.exe conftest.cs;exit $?) ; then
18483	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18484$as_echo "yes" >&6; }
18485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CSharp programs can just be run" >&5
18486$as_echo_n "checking whether CSharp programs can just be run... " >&6; }
18487	if test OK = "`./conftest.exe 2> /dev/null`" ; then
18488	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18489$as_echo "yes" >&6; }
18490	  RUN_CSHARP=
18491	else
18492	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18493$as_echo "no" >&6; }
18494	  for ac_prog in "${CLI-cli}"
18495do
18496  # Extract the first word of "$ac_prog", so it can be a program name with args.
18497set dummy $ac_prog; ac_word=$2
18498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18499$as_echo_n "checking for $ac_word... " >&6; }
18500if ${ac_cv_path_CLI+:} false; then :
18501  $as_echo_n "(cached) " >&6
18502else
18503  case $CLI in
18504  [\\/]* | ?:[\\/]*)
18505  ac_cv_path_CLI="$CLI" # Let the user override the test with a path.
18506  ;;
18507  *)
18508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18509for as_dir in $PATH
18510do
18511  IFS=$as_save_IFS
18512  test -z "$as_dir" && as_dir=.
18513    for ac_exec_ext in '' $ac_executable_extensions; do
18514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18515    ac_cv_path_CLI="$as_dir/$ac_word$ac_exec_ext"
18516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18517    break 2
18518  fi
18519done
18520  done
18521IFS=$as_save_IFS
18522
18523  ;;
18524esac
18525fi
18526CLI=$ac_cv_path_CLI
18527if test -n "$CLI"; then
18528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLI" >&5
18529$as_echo "$CLI" >&6; }
18530else
18531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18532$as_echo "no" >&6; }
18533fi
18534
18535
18536  test -n "$CLI" && break
18537done
18538
18539	  if test -z "$CLI" ; then
18540	    for ac_prog in mono ilrun
18541do
18542  # Extract the first word of "$ac_prog", so it can be a program name with args.
18543set dummy $ac_prog; ac_word=$2
18544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18545$as_echo_n "checking for $ac_word... " >&6; }
18546if ${ac_cv_path_CLI+:} false; then :
18547  $as_echo_n "(cached) " >&6
18548else
18549  case $CLI in
18550  [\\/]* | ?:[\\/]*)
18551  ac_cv_path_CLI="$CLI" # Let the user override the test with a path.
18552  ;;
18553  *)
18554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555for as_dir in $PATH
18556do
18557  IFS=$as_save_IFS
18558  test -z "$as_dir" && as_dir=.
18559    for ac_exec_ext in '' $ac_executable_extensions; do
18560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18561    ac_cv_path_CLI="$as_dir/$ac_word$ac_exec_ext"
18562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18563    break 2
18564  fi
18565done
18566  done
18567IFS=$as_save_IFS
18568
18569  ;;
18570esac
18571fi
18572CLI=$ac_cv_path_CLI
18573if test -n "$CLI"; then
18574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLI" >&5
18575$as_echo "$CLI" >&6; }
18576else
18577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18578$as_echo "no" >&6; }
18579fi
18580
18581
18582  test -n "$CLI" && break
18583done
18584
18585	  fi
18586
18587	  if test -n "$CLI" ; then
18588	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CLI can run CSharp programs" >&5
18589$as_echo_n "checking whether $CLI can run CSharp programs... " >&6; }
18590	    if test OK = "`$CLI ./conftest.exe 2> /dev/null`" ; then
18591	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18592$as_echo "yes" >&6; }
18593	      RUN_CSHARP=$CLI
18594	    else
18595	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - CSharp tests will be skipped" >&5
18596$as_echo "no - CSharp tests will be skipped" >&6; }
18597	      RUN_CSHARP='\$(top_srcdir)/skiptest'
18598	    fi
18599	  else
18600	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found - CSharp tests will be skipped" >&5
18601$as_echo "not found - CSharp tests will be skipped" >&6; }
18602	    RUN_CSHARP='\$(top_srcdir)/skiptest'
18603	  fi
18604	fi
18605
18606
18607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for $GACUTIL" >&5
18608$as_echo_n "checking for extra flags for $GACUTIL... " >&6; }
18609	GACUTIL_FLAGS='/package $(ASSEMBLY) /gacdir $(libdir) /root $(DESTDIR)$(libdir)'
18610		$GACUTIL /\?|grep '\<Mono\>' >/dev/null || GACUTIL_FLAGS=
18611
18612	if test -z "$GACUTIL_FLAGS" ; then
18613	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614$as_echo "no" >&6; }
18615	else
18616	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GACUTIL_FLAGS" >&5
18617$as_echo "$GACUTIL_FLAGS" >&6; }
18618	fi
18619
18620	BINDINGS="$BINDINGS csharp"
18621      else
18622	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18623$as_echo "no" >&6; }
18624	if test yes = "$with_csharp" ; then
18625	  as_fn_error $? "CSharp compiler $CSC doesn't work" "$LINENO" 5
18626	fi
18627      fi
18628    else
18629      if test yes = "$with_csharp" ; then
18630	if test -z "$GACUTIL" ; then
18631	  as_fn_error $? "Mono gacutil not found" "$LINENO" 5
18632	elif test -z "$SN" ; then
18633	  as_fn_error $? "Mono sn not found" "$LINENO" 5
18634	fi
18635      fi
18636    fi
18637  else
18638    if test yes = "$with_csharp" ; then
18639      as_fn_error $? "CSharp compiler not found$csc_note" "$LINENO" 5
18640    fi
18641  fi
18642fi
18643
18644JAVA_CPPFLAGS=
18645if test no != "$with_java" ; then
18646  for ac_prog in "${JAVA-java}"
18647do
18648  # Extract the first word of "$ac_prog", so it can be a program name with args.
18649set dummy $ac_prog; ac_word=$2
18650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18651$as_echo_n "checking for $ac_word... " >&6; }
18652if ${ac_cv_path_JAVA+:} false; then :
18653  $as_echo_n "(cached) " >&6
18654else
18655  case $JAVA in
18656  [\\/]* | ?:[\\/]*)
18657  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
18658  ;;
18659  *)
18660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661as_dummy="${JAVA_HOME+$JAVA_HOME/bin:}${JDK_HOME+$JDK_HOME/bin:}$PATH"
18662for as_dir in $as_dummy
18663do
18664  IFS=$as_save_IFS
18665  test -z "$as_dir" && as_dir=.
18666    for ac_exec_ext in '' $ac_executable_extensions; do
18667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
18669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18670    break 2
18671  fi
18672done
18673  done
18674IFS=$as_save_IFS
18675
18676  ;;
18677esac
18678fi
18679JAVA=$ac_cv_path_JAVA
18680if test -n "$JAVA"; then
18681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
18682$as_echo "$JAVA" >&6; }
18683else
18684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685$as_echo "no" >&6; }
18686fi
18687
18688
18689  test -n "$JAVA" && break
18690done
18691
18692  for ac_prog in "${JAVAC-javac}"
18693do
18694  # Extract the first word of "$ac_prog", so it can be a program name with args.
18695set dummy $ac_prog; ac_word=$2
18696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18697$as_echo_n "checking for $ac_word... " >&6; }
18698if ${ac_cv_path_JAVAC+:} false; then :
18699  $as_echo_n "(cached) " >&6
18700else
18701  case $JAVAC in
18702  [\\/]* | ?:[\\/]*)
18703  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
18704  ;;
18705  *)
18706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707as_dummy="${JAVA_HOME+$JAVA_HOME/bin:}${JDK_HOME+$JDK_HOME/bin:}$PATH"
18708for as_dir in $as_dummy
18709do
18710  IFS=$as_save_IFS
18711  test -z "$as_dir" && as_dir=.
18712    for ac_exec_ext in '' $ac_executable_extensions; do
18713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18714    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
18715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18716    break 2
18717  fi
18718done
18719  done
18720IFS=$as_save_IFS
18721
18722  ;;
18723esac
18724fi
18725JAVAC=$ac_cv_path_JAVAC
18726if test -n "$JAVAC"; then
18727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
18728$as_echo "$JAVAC" >&6; }
18729else
18730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731$as_echo "no" >&6; }
18732fi
18733
18734
18735  test -n "$JAVAC" && break
18736done
18737
18738  for ac_prog in "${JAR-jar}"
18739do
18740  # Extract the first word of "$ac_prog", so it can be a program name with args.
18741set dummy $ac_prog; ac_word=$2
18742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18743$as_echo_n "checking for $ac_word... " >&6; }
18744if ${ac_cv_path_JAR+:} false; then :
18745  $as_echo_n "(cached) " >&6
18746else
18747  case $JAR in
18748  [\\/]* | ?:[\\/]*)
18749  ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
18750  ;;
18751  *)
18752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18753as_dummy="${JAVA_HOME+$JAVA_HOME/bin:}${JDK_HOME+$JDK_HOME/bin:}$PATH"
18754for as_dir in $as_dummy
18755do
18756  IFS=$as_save_IFS
18757  test -z "$as_dir" && as_dir=.
18758    for ac_exec_ext in '' $ac_executable_extensions; do
18759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760    ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
18761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18762    break 2
18763  fi
18764done
18765  done
18766IFS=$as_save_IFS
18767
18768  ;;
18769esac
18770fi
18771JAR=$ac_cv_path_JAR
18772if test -n "$JAR"; then
18773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
18774$as_echo "$JAR" >&6; }
18775else
18776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777$as_echo "no" >&6; }
18778fi
18779
18780
18781  test -n "$JAR" && break
18782done
18783
18784
18785
18786
18787
18788
18789
18790  if test -n "$JAVA" -a -n "$JAVAC" -a -n "$JAR" ; then
18791                                java_ok=no
18792    ac_fn_cxx_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
18793"
18794if test "x$ac_cv_header_jni_h" = xyes; then :
18795  java_ok=yes
18796else
18797
18798                        SAVE_CPPFLAGS=$CPPFLAGS
18799      real_javac=$JAVAC
18800            for count in 1 2 3 4 5 6 7 8 9 ; do
18801	r=`readlink "$real_javac"`
18802	test -n "$r" || break
18803	real_javac=$r
18804      done
18805            rel_jnidir=`echo "$real_javac"|sed 's!/[^/]*/[^/]*$!/include!'`
18806      for jnidir in \
18807	  $JNI_INCLUDE_DIR \
18808	  ${JAVA_HOME+"$JAVA_HOME/include"} \
18809	  ${JDK_HOME+"$JDK_HOME/include"} \
18810	  "$rel_jnidir" \
18811	  /System/Library/Frameworks/JavaVM.framework/Headers ; do
18812	CPPFLAGS="$SAVE_CPPFLAGS -I$jnidir"
18813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jni.h in $jnidir" >&5
18814$as_echo_n "checking for jni.h in $jnidir... " >&6; }
18815	if test -f "$jnidir/jni.h" ; then
18816	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817/* end confdefs.h.  */
18818#include <jni.h>
18819_ACEOF
18820if ac_fn_cxx_try_compile "$LINENO"; then :
18821  java_ok=yes
18822fi
18823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824	  if test yes = $java_ok ; then
18825	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18826$as_echo "yes" >&6; }
18827	    JAVA_CPPFLAGS=-I$jnidir
18828	    break
18829	  fi
18830
18831	  	  	  	  	  	  jni_host_os=
18832	  case $host_os in
18833	    linux*)
18834	      jni_host_os=linux ;;
18835	    solaris*)
18836	      jni_host_os=solaris ;;
18837	    mingw* | pw32* | cygwin*)
18838	      jni_host_os=win32 ;;
18839	    darwin*)
18840	      jni_host_os=darwin ;;
18841	    *bsd*)
18842	      jni_host_os=bsd ;;
18843	    aix*)
18844	      jni_host_os=aix ;;
18845	  esac
18846	  if test -n "$jni_host_os" ; then
18847	    CPPFLAGS="$CPPFLAGS -I$jnidir/$jni_host_os"
18848	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849/* end confdefs.h.  */
18850#include <jni.h>
18851_ACEOF
18852if ac_fn_cxx_try_compile "$LINENO"; then :
18853  java_ok=yes
18854fi
18855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856	    if test yes = $java_ok ; then
18857	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, requires additional -I$jnidir/$jni_host_os" >&5
18858$as_echo "yes, requires additional -I$jnidir/$jni_host_os" >&6; }
18859	      JAVA_CPPFLAGS="-I$jnidir -I$jnidir/$jni_host_os"
18860	      break
18861	    fi
18862	  fi
18863	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but not usable" >&5
18864$as_echo "found, but not usable" >&6; }
18865
18866	  CPPFLAGS="$SAVE_CPPFLAGS -I$jnidir"
18867	else
18868	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18869$as_echo "no" >&6; }
18870	fi
18871      done
18872      CPPFLAGS=$SAVE_CPPFLAGS
18873      test noyes = $java_ok$with_java && as_fn_error $? "jni.h not found" "$LINENO" 5
18874
18875fi
18876
18877
18878
18879    if test yes = $java_ok ; then
18880      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java path separator" >&5
18881$as_echo_n "checking for Java path separator... " >&6; }
18882      echo 'public class conftest { public static void main(String[] args) { System.out.println(System.getProperty("path.separator")); } }' > conftest.java
18883      if (exec >&5 2>&5;$JAVAC conftest.java;exit $?) ; then
18884	JAVA_PATHSEP=`$JAVA conftest 2>&5`
18885
18886	if test -n "$JAVA_PATHSEP" ; then
18887	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_PATHSEP" >&5
18888$as_echo "$JAVA_PATHSEP" >&6; }
18889	  BINDINGS="$BINDINGS java"
18890
18891	  	  	  	  	  	  JAVA_CHECK_JNI_OPTION=
18892
18893	else
18894	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed to run test program" >&5
18895$as_echo "failed to run test program" >&6; }
18896	  java_ok=no
18897	fi
18898      else
18899	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed to compile test program" >&5
18900$as_echo "failed to compile test program" >&6; }
18901	java_ok=no
18902      fi
18903      if test no = "$java_ok" ; then
18904	test yes = "$with_java" && as_fn_error $? "Couldn't compile and run a simple Java test program" "$LINENO" 5
18905      fi
18906    fi
18907  else
18908    if test yes = "$with_java" ; then
18909      if test -z "$JAVA" ; then
18910	as_fn_error $? "java not found" "$LINENO" 5
18911      elif test -z "$JAVAC" ; then
18912	as_fn_error $? "javac not found" "$LINENO" 5
18913      elif test -z "$JAR" ; then
18914	as_fn_error $? "jar not found" "$LINENO" 5
18915      fi
18916    fi
18917  fi
18918fi
18919
18920if test no != "$with_ruby" ; then
18921    if test -n "$RUBY" ; then
18922    for ac_prog in "$RUBY"
18923do
18924  # Extract the first word of "$ac_prog", so it can be a program name with args.
18925set dummy $ac_prog; ac_word=$2
18926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18927$as_echo_n "checking for $ac_word... " >&6; }
18928if ${ac_cv_path_RUBY+:} false; then :
18929  $as_echo_n "(cached) " >&6
18930else
18931  case $RUBY in
18932  [\\/]* | ?:[\\/]*)
18933  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
18934  ;;
18935  *)
18936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937for as_dir in $PATH
18938do
18939  IFS=$as_save_IFS
18940  test -z "$as_dir" && as_dir=.
18941    for ac_exec_ext in '' $ac_executable_extensions; do
18942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18943    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
18944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18945    break 2
18946  fi
18947done
18948  done
18949IFS=$as_save_IFS
18950
18951  ;;
18952esac
18953fi
18954RUBY=$ac_cv_path_RUBY
18955if test -n "$RUBY"; then
18956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
18957$as_echo "$RUBY" >&6; }
18958else
18959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18960$as_echo "no" >&6; }
18961fi
18962
18963
18964  test -n "$RUBY" && break
18965done
18966
18967  else
18968    for ac_prog in ruby
18969do
18970  # Extract the first word of "$ac_prog", so it can be a program name with args.
18971set dummy $ac_prog; ac_word=$2
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18973$as_echo_n "checking for $ac_word... " >&6; }
18974if ${ac_cv_path_RUBY+:} false; then :
18975  $as_echo_n "(cached) " >&6
18976else
18977  case $RUBY in
18978  [\\/]* | ?:[\\/]*)
18979  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
18980  ;;
18981  *)
18982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18983for as_dir in $PATH
18984do
18985  IFS=$as_save_IFS
18986  test -z "$as_dir" && as_dir=.
18987    for ac_exec_ext in '' $ac_executable_extensions; do
18988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18989    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
18990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18991    break 2
18992  fi
18993done
18994  done
18995IFS=$as_save_IFS
18996
18997  ;;
18998esac
18999fi
19000RUBY=$ac_cv_path_RUBY
19001if test -n "$RUBY"; then
19002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
19003$as_echo "$RUBY" >&6; }
19004else
19005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006$as_echo "no" >&6; }
19007fi
19008
19009
19010  test -n "$RUBY" && break
19011done
19012
19013  fi
19014
19015  if test -n "$RUBY" ; then
19016        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $RUBY version" >&5
19017$as_echo_n "checking $RUBY version... " >&6; }
19018            version=`$RUBY -e 'print RUBY_VERSION' 2>/dev/null`
19019    case $version in
19020    "")
19021      { $as_echo "$as_me:${as_lineno-$LINENO}: result: \$RUBY -e 'print RUBY_VERSION' didn't work" >&5
19022$as_echo "\$RUBY -e 'print RUBY_VERSION' didn't work" >&6; }
19023      if test yes = "$with_ruby" ; then
19024	as_fn_error $? "Working Ruby interpreter not found" "$LINENO" 5
19025      fi
19026      RUBY=
19027      ;;
19028    [01].*|2.0.*)
19029      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version (too old)" >&5
19030$as_echo "$version (too old)" >&6; }
19031      if test yes = "$with_ruby" ; then
19032	as_fn_error $? "Only Ruby 2.1 or newer is supported ($RUBY is $version)" "$LINENO" 5
19033      fi
19034      RUBY=
19035      ;;
19036    esac
19037    if test -n "$RUBY" ; then
19038      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
19039$as_echo "$version" >&6; }
19040
19041      if test -z "$RUBY_INC" ; then
19042		RUBY_INC=`$RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubyhdrdir"]'`
19043      fi
19044
19045                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RUBY_INC/ruby.h" >&5
19046$as_echo_n "checking for $RUBY_INC/ruby.h... " >&6; }
19047      if test -f "$RUBY_INC/ruby.h" ; then
19048	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19049$as_echo "yes" >&6; }
19050
19051
19052	if test -z "$RUBY_INC_ARCH" ; then
19053	  	  RUBY_INC_ARCH=`$RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubyarchhdrdir"]'`
19054	fi
19055
19056
19057
19058	if test -z "$RUBY_LIB" ; then
19059	  RUBY_LIB=`$RUBY -rrbconfig -e 'print RbConfig::CONFIG["sitelibdir"]'`
19060	fi
19061
19062
19063
19064	if test -z "$RUBY_LIB_ARCH" ; then
19065	  RUBY_LIB_ARCH=`$RUBY -rrbconfig -e 'print RbConfig::CONFIG["sitearchdir"]'`
19066	fi
19067
19068
19069	RUBY_LIBS=
19070	if test unsupported = "$allow_undefined_flag" ; then
19071	  	  RUBY_LIBS=`$RUBY -rrbconfig -e 'print RbConfig::CONFIG["LIBRUBYARG"]'`
19072	fi
19073
19074
19075				if test -n "$RDOC" ; then
19076	  for ac_prog in "$RDOC"
19077do
19078  # Extract the first word of "$ac_prog", so it can be a program name with args.
19079set dummy $ac_prog; ac_word=$2
19080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19081$as_echo_n "checking for $ac_word... " >&6; }
19082if ${ac_cv_path_RDOC+:} false; then :
19083  $as_echo_n "(cached) " >&6
19084else
19085  case $RDOC in
19086  [\\/]* | ?:[\\/]*)
19087  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
19088  ;;
19089  *)
19090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19091for as_dir in $PATH
19092do
19093  IFS=$as_save_IFS
19094  test -z "$as_dir" && as_dir=.
19095    for ac_exec_ext in '' $ac_executable_extensions; do
19096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19097    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
19098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19099    break 2
19100  fi
19101done
19102  done
19103IFS=$as_save_IFS
19104
19105  ;;
19106esac
19107fi
19108RDOC=$ac_cv_path_RDOC
19109if test -n "$RDOC"; then
19110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
19111$as_echo "$RDOC" >&6; }
19112else
19113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19114$as_echo "no" >&6; }
19115fi
19116
19117
19118  test -n "$RDOC" && break
19119done
19120
19121	else
19122	  	  rdoc_best_guess=`echo "$RUBY"|sed 's,\(.*\)ruby,\1rdoc,'`
19123	  for ac_prog in "$rdoc_best_guess"
19124do
19125  # Extract the first word of "$ac_prog", so it can be a program name with args.
19126set dummy $ac_prog; ac_word=$2
19127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19128$as_echo_n "checking for $ac_word... " >&6; }
19129if ${ac_cv_path_RDOC+:} false; then :
19130  $as_echo_n "(cached) " >&6
19131else
19132  case $RDOC in
19133  [\\/]* | ?:[\\/]*)
19134  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
19135  ;;
19136  *)
19137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138for as_dir in $PATH
19139do
19140  IFS=$as_save_IFS
19141  test -z "$as_dir" && as_dir=.
19142    for ac_exec_ext in '' $ac_executable_extensions; do
19143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19144    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
19145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19146    break 2
19147  fi
19148done
19149  done
19150IFS=$as_save_IFS
19151
19152  ;;
19153esac
19154fi
19155RDOC=$ac_cv_path_RDOC
19156if test -n "$RDOC"; then
19157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
19158$as_echo "$RDOC" >&6; }
19159else
19160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161$as_echo "no" >&6; }
19162fi
19163
19164
19165  test -n "$RDOC" && break
19166done
19167
19168	  if test -z "$RDOC"; then
19169	    for ac_prog in rdoc
19170do
19171  # Extract the first word of "$ac_prog", so it can be a program name with args.
19172set dummy $ac_prog; ac_word=$2
19173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19174$as_echo_n "checking for $ac_word... " >&6; }
19175if ${ac_cv_path_RDOC+:} false; then :
19176  $as_echo_n "(cached) " >&6
19177else
19178  case $RDOC in
19179  [\\/]* | ?:[\\/]*)
19180  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
19181  ;;
19182  *)
19183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19184for as_dir in $PATH
19185do
19186  IFS=$as_save_IFS
19187  test -z "$as_dir" && as_dir=.
19188    for ac_exec_ext in '' $ac_executable_extensions; do
19189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19190    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
19191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19192    break 2
19193  fi
19194done
19195  done
19196IFS=$as_save_IFS
19197
19198  ;;
19199esac
19200fi
19201RDOC=$ac_cv_path_RDOC
19202if test -n "$RDOC"; then
19203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
19204$as_echo "$RDOC" >&6; }
19205else
19206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19207$as_echo "no" >&6; }
19208fi
19209
19210
19211  test -n "$RDOC" && break
19212done
19213
19214	  fi
19215	fi
19216	if test -n "$RDOC"; then
19217	  BINDINGS="$BINDINGS ruby"
19218	fi
19219      else
19220	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (install ruby-dev or ruby-devel package or similar)" >&5
19221$as_echo "no (install ruby-dev or ruby-devel package or similar)" >&6; }
19222	if test yes = "$with_ruby" ; then
19223	  as_fn_error $? "ruby.h not found" "$LINENO" 5
19224	fi
19225      fi
19226      RUBY_DLEXT=`$RUBY -rrbconfig -e 'print RbConfig::CONFIG["DLEXT"]'`
19227
19228    fi
19229  fi
19230fi
19231
19232if test no != "$with_perl" ; then
19233  for ac_prog in "${PERL-perl}"
19234do
19235  # Extract the first word of "$ac_prog", so it can be a program name with args.
19236set dummy $ac_prog; ac_word=$2
19237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19238$as_echo_n "checking for $ac_word... " >&6; }
19239if ${ac_cv_path_PERL+:} false; then :
19240  $as_echo_n "(cached) " >&6
19241else
19242  case $PERL in
19243  [\\/]* | ?:[\\/]*)
19244  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19245  ;;
19246  *)
19247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19248for as_dir in $PATH
19249do
19250  IFS=$as_save_IFS
19251  test -z "$as_dir" && as_dir=.
19252    for ac_exec_ext in '' $ac_executable_extensions; do
19253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19254    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19256    break 2
19257  fi
19258done
19259  done
19260IFS=$as_save_IFS
19261
19262  ;;
19263esac
19264fi
19265PERL=$ac_cv_path_PERL
19266if test -n "$PERL"; then
19267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19268$as_echo "$PERL" >&6; }
19269else
19270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271$as_echo "no" >&6; }
19272fi
19273
19274
19275  test -n "$PERL" && break
19276done
19277
19278
19279  if test -n "$PERL" ; then
19280    if test -z "$PERL_INC" ; then
19281      PERL_INC=`$PERL -MConfig -e 'print $Config{archlibexp}, "/CORE"'`
19282    fi
19283
19284
19285
19286    if test -z "$PERL_ARCH" ; then
19287      PERL_ARCH=`$PERL -MConfig -e 'print $Config{installsitearch}'`
19288    fi
19289
19290
19291
19292    if test -z "$PERL_LIB" ; then
19293      PERL_LIB=`$PERL -MConfig -e 'print $Config{installsitelib}'`
19294    fi
19295
19296
19297
19298    if test -z "$PERL_SO" ; then
19299      PERL_SO=`$PERL -MConfig -e 'print ".", $Config{dlext}'`
19300    fi
19301
19302
19303    if test -z "$PERL_XAPIAN_VERSION" ; then
19304            case $PACKAGE_VERSION in
19305      *_git*)
19306	PERL_XAPIAN_VERSION=`echo "$PACKAGE_VERSION"|sed 's/_git/./'` ;;
19307      *)
19308	PERL_XAPIAN_VERSION=$PACKAGE_VERSION.0 ;;
19309      esac
19310    fi
19311
19312
19313    BINDINGS="$BINDINGS perl"
19314  else
19315    if test yes = "$with_perl" ; then
19316      as_fn_error $? "perl not found" "$LINENO" 5
19317    fi
19318  fi
19319fi
19320
19321if test no != "$with_lua" ; then
19322  for ac_prog in "${LUA-lua}"
19323do
19324  # Extract the first word of "$ac_prog", so it can be a program name with args.
19325set dummy $ac_prog; ac_word=$2
19326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19327$as_echo_n "checking for $ac_word... " >&6; }
19328if ${ac_cv_path_LUA+:} false; then :
19329  $as_echo_n "(cached) " >&6
19330else
19331  case $LUA in
19332  [\\/]* | ?:[\\/]*)
19333  ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
19334  ;;
19335  *)
19336  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19337for as_dir in $PATH
19338do
19339  IFS=$as_save_IFS
19340  test -z "$as_dir" && as_dir=.
19341    for ac_exec_ext in '' $ac_executable_extensions; do
19342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19343    ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
19344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19345    break 2
19346  fi
19347done
19348  done
19349IFS=$as_save_IFS
19350
19351  ;;
19352esac
19353fi
19354LUA=$ac_cv_path_LUA
19355if test -n "$LUA"; then
19356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
19357$as_echo "$LUA" >&6; }
19358else
19359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360$as_echo "no" >&6; }
19361fi
19362
19363
19364  test -n "$LUA" && break
19365done
19366
19367
19368  if test -n "$LUA" ; then
19369        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $LUA version" >&5
19370$as_echo_n "checking $LUA version... " >&6; }
19371    lua_version=`$LUA -e 'print(_VERSION)' | cut -f 2 -d ' ' 2>&5`
19372
19373    case $lua_version in
19374    [01234].*|5.0|5.0.*)
19375      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lua_version < 5.1 (too old)" >&5
19376$as_echo "$lua_version < 5.1 (too old)" >&6; }
19377      if test yes = "$with_lua" ; then
19378        as_fn_error $? "$LUA too old (Lua 5.1 or newer required)" "$LINENO" 5
19379      fi
19380      LUA=
19381      ;;
19382    "")
19383      { $as_echo "$as_me:${as_lineno-$LINENO}: result: \$LUA -e 'print(_VERSION)' | cut -f 2 -d ' ' didn't work" >&5
19384$as_echo "\$LUA -e 'print(_VERSION)' | cut -f 2 -d ' ' didn't work" >&6; }
19385
19386      if test yes = "$with_lua" ; then
19387        as_fn_error $? "Working Lua interpreter not found" "$LINENO" 5
19388      fi
19389      LUA=
19390      ;;
19391    esac
19392
19393    if test -n "$LUA" ; then
19394      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lua_version" >&5
19395$as_echo "$lua_version" >&6; }
19396
19397
19398
19399      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory to install compiled Lua modules into" >&5
19400$as_echo_n "checking for directory to install compiled Lua modules into... " >&6; }
19401      if test -z "$LUA_LIB" -o -z "$LUA_SO" ; then
19402	lua_cpath=`$LUA -e 'require("package") print(package.cpath)'`
19403					lua_lib=
19404	lua_so=
19405	case $LUA_SO in
19406	  "")
19407	   lua_so_pat='[a-zA-Z][a-zA-Z]*' ;;
19408	  .*)
19409	    	    lua_so_pat=`$as_echo "$LUA_SO"|sed 's/^\.//'` ;;
19410	  *)
19411	    	    	    lua_so_pat=$LUA_SO
19412	    LUA_SO=.$LUA_SO
19413	    ;;
19414	esac
19415	while test x"$lua_cpath" != x ; do
19416	  lua_lib=`expr X"$lua_cpath" : X'\([^;]*\)'`
19417	  lua_so=.`expr X"$lua_lib" : X'/.*/?\.\('"$lua_so_pat"'\)$'`
19418	  case $lua_so in
19419	    .|.lua)
19420	      	      lua_lib=
19421	      ;;
19422	    *)
19423	      lua_lib=`expr X"$lua_lib" : X'\(/.*\)/?\.'"$lua_so_pat"'$'`
19424	      break ;;
19425	  esac
19426	  lua_cpath=`expr X"$lua_cpath" : X'[^;]*;*\(.*\)'`
19427	done
19428	test -n "$LUA_LIB" || LUA_LIB=$lua_lib
19429	test -n "$LUA_SO" || LUA_SO=$lua_so
19430      fi
19431      if test -z "$LUA_LIB"; then
19432	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19433$as_echo "not found" >&6; }
19434      else
19435	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_LIB" >&5
19436$as_echo "$LUA_LIB" >&6; }
19437      fi
19438
19439
19440      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension to use for compiled Lua modules" >&5
19441$as_echo_n "checking for extension to use for compiled Lua modules... " >&6; }
19442      if test -z "$LUA_SO"; then
19443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19444$as_echo "not found" >&6; }
19445      else
19446	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_SO" >&5
19447$as_echo "$LUA_SO" >&6; }
19448      fi
19449
19450
19451      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua header files" >&5
19452$as_echo_n "checking for Lua header files... " >&6; }
19453
19454      if test -z "$LUA_INC" ; then
19455        dirs="/usr/include/lua$lua_version /usr/local/include/lua$lua_version"
19456        for i in $dirs ; do
19457          if test -r "$i/lua.h"; then
19458            LUA_INC=$i
19459            break
19460          fi
19461        done
19462      fi
19463
19464      if test -z "$LUA_INC" ; then
19465        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19466$as_echo "not found" >&6; }
19467      else
19468        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_INC" >&5
19469$as_echo "$LUA_INC" >&6; }
19470        BINDINGS="$BINDINGS lua"
19471        LUA_CPPFLAGS="-I$LUA_INC"
19472      fi
19473
19474    fi
19475  else
19476    if test yes = "$with_lua" ; then
19477      as_fn_error $? "lua not found" "$LINENO" 5
19478    fi
19479  fi
19480fi
19481
19482
19483
19484case $BINDINGS in
19485*python*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread-local storage qualifier" >&5
19486$as_echo_n "checking for thread-local storage qualifier... " >&6; }
19487
19488  if test -z "$THREAD_LOCAL" ; then
19489    for t in thread_local __thread '__declspec(thread)' ; do
19490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491/* end confdefs.h.  */
19492static $t void * p;
19493_ACEOF
19494if ac_fn_cxx_try_compile "$LINENO"; then :
19495  THREAD_LOCAL=$t; break
19496fi
19497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498    done
19499  fi
19500  if test -z "$THREAD_LOCAL" ; then
19501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown, disabling thread-local support" >&5
19502$as_echo "unknown, disabling thread-local support" >&6; }
19503  else
19504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREAD_LOCAL" >&5
19505$as_echo "$THREAD_LOCAL" >&6; }
19506
19507cat >>confdefs.h <<_ACEOF
19508#define THREAD_LOCAL $THREAD_LOCAL
19509_ACEOF
19510
19511  fi
19512  ;;
19513esac
19514
19515SWIG_CXXFLAGS=
19516if test yes = "$GXX" ; then
19517                    SWIG_CXXFLAGS="-fno-strict-aliasing"
19518
19519              XAPIAN_LIBS="$XAPIAN_LIBS "
19520
19521
19522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523/* end confdefs.h.  */
19524#ifdef __INTEL_COMPILER
19525     yes
19526     #endif
19527
19528_ACEOF
19529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19530  $EGREP "yes" >/dev/null 2>&1; then :
19531
19532                                                SWIG_CXXFLAGS="$SWIG_CXXFLAGS -Wall -w1 -wd177,1572"
19533
19534else
19535
19536                              SWIG_CXXFLAGS="$SWIG_CXXFLAGS -Wall -Wno-unused -Wno-uninitialized"
19537
19538fi
19539rm -f conftest*
19540
19541
19542  if test no != "$enable_visibility"; then
19543            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX -fvisibility=hidden works" >&5
19544$as_echo_n "checking if $CXX -fvisibility=hidden works... " >&6; }
19545    if echo 'int bar() __attribute__((visibility("default"))); int foo() {return 42;}'|$CXX -Werror -fvisibility=hidden -c -oconftest.o -xc++ - >&5 2>&5 ; then
19546      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19547$as_echo "yes" >&6; }
19548      SWIG_CXXFLAGS="$SWIG_CXXFLAGS -fvisibility=hidden"
19549    else
19550      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19551$as_echo "no" >&6; }
19552    fi
19553  fi
19554fi
19555
19556
19557CXXFLAGS=$save_CXXFLAGS
19558
19559: ${AUTOM4TE=autom4te}
19560
19561
19562ac_config_files="$ac_config_files Makefile doxygen_xml.conf xapian-version.h python/Makefile python/docs/conf.py python/version.i python3/Makefile python3/docs/conf.py python3/version.i php/Makefile php7/Makefile java/Makefile tcl8/Makefile tcl8/pkgIndex.tcl csharp/Makefile csharp/AssemblyInfo.cs ruby/Makefile perl/Makefile lua/Makefile xapian-bindings.spec"
19563
19564cat >confcache <<\_ACEOF
19565# This file is a shell script that caches the results of configure
19566# tests run on this system so they can be shared between configure
19567# scripts and configure runs, see configure's option --config-cache.
19568# It is not useful on other systems.  If it contains results you don't
19569# want to keep, you may remove or edit it.
19570#
19571# config.status only pays attention to the cache file if you give it
19572# the --recheck option to rerun configure.
19573#
19574# `ac_cv_env_foo' variables (set or unset) will be overridden when
19575# loading this file, other *unset* `ac_cv_foo' will be assigned the
19576# following values.
19577
19578_ACEOF
19579
19580# The following way of writing the cache mishandles newlines in values,
19581# but we know of no workaround that is simple, portable, and efficient.
19582# So, we kill variables containing newlines.
19583# Ultrix sh set writes to stderr and can't be redirected directly,
19584# and sets the high bit in the cache file unless we assign to the vars.
19585(
19586  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19587    eval ac_val=\$$ac_var
19588    case $ac_val in #(
19589    *${as_nl}*)
19590      case $ac_var in #(
19591      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19592$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19593      esac
19594      case $ac_var in #(
19595      _ | IFS | as_nl) ;; #(
19596      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19597      *) { eval $ac_var=; unset $ac_var;} ;;
19598      esac ;;
19599    esac
19600  done
19601
19602  (set) 2>&1 |
19603    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19604    *${as_nl}ac_space=\ *)
19605      # `set' does not quote correctly, so add quotes: double-quote
19606      # substitution turns \\\\ into \\, and sed turns \\ into \.
19607      sed -n \
19608	"s/'/'\\\\''/g;
19609	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19610      ;; #(
19611    *)
19612      # `set' quotes correctly as required by POSIX, so do not add quotes.
19613      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19614      ;;
19615    esac |
19616    sort
19617) |
19618  sed '
19619     /^ac_cv_env_/b end
19620     t clear
19621     :clear
19622     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19623     t end
19624     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19625     :end' >>confcache
19626if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19627  if test -w "$cache_file"; then
19628    if test "x$cache_file" != "x/dev/null"; then
19629      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19630$as_echo "$as_me: updating cache $cache_file" >&6;}
19631      if test ! -f "$cache_file" || test -h "$cache_file"; then
19632	cat confcache >"$cache_file"
19633      else
19634        case $cache_file in #(
19635        */* | ?:*)
19636	  mv -f confcache "$cache_file"$$ &&
19637	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19638        *)
19639	  mv -f confcache "$cache_file" ;;
19640	esac
19641      fi
19642    fi
19643  else
19644    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19645$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19646  fi
19647fi
19648rm -f confcache
19649
19650test "x$prefix" = xNONE && prefix=$ac_default_prefix
19651# Let make expand exec_prefix.
19652test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19653
19654DEFS=-DHAVE_CONFIG_H
19655
19656ac_libobjs=
19657ac_ltlibobjs=
19658U=
19659for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19660  # 1. Remove the extension, and $U if already installed.
19661  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19662  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19663  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19664  #    will be set to the directory where LIBOBJS objects are built.
19665  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19666  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19667done
19668LIBOBJS=$ac_libobjs
19669
19670LTLIBOBJS=$ac_ltlibobjs
19671
19672
19673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19674$as_echo_n "checking that generated files are newer than configure... " >&6; }
19675   if test -n "$am_sleep_pid"; then
19676     # Hide warnings about reused PIDs.
19677     wait $am_sleep_pid 2>/dev/null
19678   fi
19679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19680$as_echo "done" >&6; }
19681 if test -n "$EXEEXT"; then
19682  am__EXEEXT_TRUE=
19683  am__EXEEXT_FALSE='#'
19684else
19685  am__EXEEXT_TRUE='#'
19686  am__EXEEXT_FALSE=
19687fi
19688
19689if test -z "${OVERRIDE_MACOSX_DEPLOYMENT_TARGET_TRUE}" && test -z "${OVERRIDE_MACOSX_DEPLOYMENT_TARGET_FALSE}"; then
19690  as_fn_error $? "conditional \"OVERRIDE_MACOSX_DEPLOYMENT_TARGET\" was never defined.
19691Usually this means the macro was only invoked conditionally." "$LINENO" 5
19692fi
19693if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19694  as_fn_error $? "conditional \"AMDEP\" was never defined.
19695Usually this means the macro was only invoked conditionally." "$LINENO" 5
19696fi
19697if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19698  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19699Usually this means the macro was only invoked conditionally." "$LINENO" 5
19700fi
19701if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19702  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19703Usually this means the macro was only invoked conditionally." "$LINENO" 5
19704fi
19705if test -z "${NEED_JNILIB_EXT_TRUE}" && test -z "${NEED_JNILIB_EXT_FALSE}"; then
19706  as_fn_error $? "conditional \"NEED_JNILIB_EXT\" was never defined.
19707Usually this means the macro was only invoked conditionally." "$LINENO" 5
19708fi
19709if test -z "${NEED_INTREE_DYLD_TRUE}" && test -z "${NEED_INTREE_DYLD_FALSE}"; then
19710  as_fn_error $? "conditional \"NEED_INTREE_DYLD\" was never defined.
19711Usually this means the macro was only invoked conditionally." "$LINENO" 5
19712fi
19713if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19714  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19715Usually this means the macro was only invoked conditionally." "$LINENO" 5
19716fi
19717if test -z "${DOCUMENTATION_RULES_TRUE}" && test -z "${DOCUMENTATION_RULES_FALSE}"; then
19718  as_fn_error $? "conditional \"DOCUMENTATION_RULES\" was never defined.
19719Usually this means the macro was only invoked conditionally." "$LINENO" 5
19720fi
19721if test -z "${MAINTAINER_NO_DOCS_TRUE}" && test -z "${MAINTAINER_NO_DOCS_FALSE}"; then
19722  as_fn_error $? "conditional \"MAINTAINER_NO_DOCS\" was never defined.
19723Usually this means the macro was only invoked conditionally." "$LINENO" 5
19724fi
19725
19726: "${CONFIG_STATUS=./config.status}"
19727ac_write_fail=0
19728ac_clean_files_save=$ac_clean_files
19729ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19730{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19731$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19732as_write_fail=0
19733cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19734#! $SHELL
19735# Generated by $as_me.
19736# Run this file to recreate the current configuration.
19737# Compiler output produced by configure, useful for debugging
19738# configure, is in config.log if it exists.
19739
19740debug=false
19741ac_cs_recheck=false
19742ac_cs_silent=false
19743
19744SHELL=\${CONFIG_SHELL-$SHELL}
19745export SHELL
19746_ASEOF
19747cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19748## -------------------- ##
19749## M4sh Initialization. ##
19750## -------------------- ##
19751
19752# Be more Bourne compatible
19753DUALCASE=1; export DUALCASE # for MKS sh
19754if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19755  emulate sh
19756  NULLCMD=:
19757  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19758  # is contrary to our usage.  Disable this feature.
19759  alias -g '${1+"$@"}'='"$@"'
19760  setopt NO_GLOB_SUBST
19761else
19762  case `(set -o) 2>/dev/null` in #(
19763  *posix*) :
19764    set -o posix ;; #(
19765  *) :
19766     ;;
19767esac
19768fi
19769
19770
19771as_nl='
19772'
19773export as_nl
19774# Printing a long string crashes Solaris 7 /usr/bin/printf.
19775as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19776as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19777as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19778# Prefer a ksh shell builtin over an external printf program on Solaris,
19779# but without wasting forks for bash or zsh.
19780if test -z "$BASH_VERSION$ZSH_VERSION" \
19781    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19782  as_echo='print -r --'
19783  as_echo_n='print -rn --'
19784elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19785  as_echo='printf %s\n'
19786  as_echo_n='printf %s'
19787else
19788  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19789    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19790    as_echo_n='/usr/ucb/echo -n'
19791  else
19792    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19793    as_echo_n_body='eval
19794      arg=$1;
19795      case $arg in #(
19796      *"$as_nl"*)
19797	expr "X$arg" : "X\\(.*\\)$as_nl";
19798	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19799      esac;
19800      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19801    '
19802    export as_echo_n_body
19803    as_echo_n='sh -c $as_echo_n_body as_echo'
19804  fi
19805  export as_echo_body
19806  as_echo='sh -c $as_echo_body as_echo'
19807fi
19808
19809# The user is always right.
19810if test "${PATH_SEPARATOR+set}" != set; then
19811  PATH_SEPARATOR=:
19812  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19813    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19814      PATH_SEPARATOR=';'
19815  }
19816fi
19817
19818
19819# IFS
19820# We need space, tab and new line, in precisely that order.  Quoting is
19821# there to prevent editors from complaining about space-tab.
19822# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19823# splitting by setting IFS to empty value.)
19824IFS=" ""	$as_nl"
19825
19826# Find who we are.  Look in the path if we contain no directory separator.
19827as_myself=
19828case $0 in #((
19829  *[\\/]* ) as_myself=$0 ;;
19830  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19831for as_dir in $PATH
19832do
19833  IFS=$as_save_IFS
19834  test -z "$as_dir" && as_dir=.
19835    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19836  done
19837IFS=$as_save_IFS
19838
19839     ;;
19840esac
19841# We did not find ourselves, most probably we were run as `sh COMMAND'
19842# in which case we are not to be found in the path.
19843if test "x$as_myself" = x; then
19844  as_myself=$0
19845fi
19846if test ! -f "$as_myself"; then
19847  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19848  exit 1
19849fi
19850
19851# Unset variables that we do not need and which cause bugs (e.g. in
19852# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19853# suppresses any "Segmentation fault" message there.  '((' could
19854# trigger a bug in pdksh 5.2.14.
19855for as_var in BASH_ENV ENV MAIL MAILPATH
19856do eval test x\${$as_var+set} = xset \
19857  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19858done
19859PS1='$ '
19860PS2='> '
19861PS4='+ '
19862
19863# NLS nuisances.
19864LC_ALL=C
19865export LC_ALL
19866LANGUAGE=C
19867export LANGUAGE
19868
19869# CDPATH.
19870(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19871
19872
19873# as_fn_error STATUS ERROR [LINENO LOG_FD]
19874# ----------------------------------------
19875# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19876# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19877# script with STATUS, using 1 if that was 0.
19878as_fn_error ()
19879{
19880  as_status=$1; test $as_status -eq 0 && as_status=1
19881  if test "$4"; then
19882    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19883    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19884  fi
19885  $as_echo "$as_me: error: $2" >&2
19886  as_fn_exit $as_status
19887} # as_fn_error
19888
19889
19890# as_fn_set_status STATUS
19891# -----------------------
19892# Set $? to STATUS, without forking.
19893as_fn_set_status ()
19894{
19895  return $1
19896} # as_fn_set_status
19897
19898# as_fn_exit STATUS
19899# -----------------
19900# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19901as_fn_exit ()
19902{
19903  set +e
19904  as_fn_set_status $1
19905  exit $1
19906} # as_fn_exit
19907
19908# as_fn_unset VAR
19909# ---------------
19910# Portably unset VAR.
19911as_fn_unset ()
19912{
19913  { eval $1=; unset $1;}
19914}
19915as_unset=as_fn_unset
19916# as_fn_append VAR VALUE
19917# ----------------------
19918# Append the text in VALUE to the end of the definition contained in VAR. Take
19919# advantage of any shell optimizations that allow amortized linear growth over
19920# repeated appends, instead of the typical quadratic growth present in naive
19921# implementations.
19922if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19923  eval 'as_fn_append ()
19924  {
19925    eval $1+=\$2
19926  }'
19927else
19928  as_fn_append ()
19929  {
19930    eval $1=\$$1\$2
19931  }
19932fi # as_fn_append
19933
19934# as_fn_arith ARG...
19935# ------------------
19936# Perform arithmetic evaluation on the ARGs, and store the result in the
19937# global $as_val. Take advantage of shells that can avoid forks. The arguments
19938# must be portable across $(()) and expr.
19939if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19940  eval 'as_fn_arith ()
19941  {
19942    as_val=$(( $* ))
19943  }'
19944else
19945  as_fn_arith ()
19946  {
19947    as_val=`expr "$@" || test $? -eq 1`
19948  }
19949fi # as_fn_arith
19950
19951
19952if expr a : '\(a\)' >/dev/null 2>&1 &&
19953   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19954  as_expr=expr
19955else
19956  as_expr=false
19957fi
19958
19959if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19960  as_basename=basename
19961else
19962  as_basename=false
19963fi
19964
19965if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19966  as_dirname=dirname
19967else
19968  as_dirname=false
19969fi
19970
19971as_me=`$as_basename -- "$0" ||
19972$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19973	 X"$0" : 'X\(//\)$' \| \
19974	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19975$as_echo X/"$0" |
19976    sed '/^.*\/\([^/][^/]*\)\/*$/{
19977	    s//\1/
19978	    q
19979	  }
19980	  /^X\/\(\/\/\)$/{
19981	    s//\1/
19982	    q
19983	  }
19984	  /^X\/\(\/\).*/{
19985	    s//\1/
19986	    q
19987	  }
19988	  s/.*/./; q'`
19989
19990# Avoid depending upon Character Ranges.
19991as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19992as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19993as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19994as_cr_digits='0123456789'
19995as_cr_alnum=$as_cr_Letters$as_cr_digits
19996
19997ECHO_C= ECHO_N= ECHO_T=
19998case `echo -n x` in #(((((
19999-n*)
20000  case `echo 'xy\c'` in
20001  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20002  xy)  ECHO_C='\c';;
20003  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20004       ECHO_T='	';;
20005  esac;;
20006*)
20007  ECHO_N='-n';;
20008esac
20009
20010rm -f conf$$ conf$$.exe conf$$.file
20011if test -d conf$$.dir; then
20012  rm -f conf$$.dir/conf$$.file
20013else
20014  rm -f conf$$.dir
20015  mkdir conf$$.dir 2>/dev/null
20016fi
20017if (echo >conf$$.file) 2>/dev/null; then
20018  if ln -s conf$$.file conf$$ 2>/dev/null; then
20019    as_ln_s='ln -s'
20020    # ... but there are two gotchas:
20021    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20022    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20023    # In both cases, we have to default to `cp -pR'.
20024    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20025      as_ln_s='cp -pR'
20026  elif ln conf$$.file conf$$ 2>/dev/null; then
20027    as_ln_s=ln
20028  else
20029    as_ln_s='cp -pR'
20030  fi
20031else
20032  as_ln_s='cp -pR'
20033fi
20034rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20035rmdir conf$$.dir 2>/dev/null
20036
20037
20038# as_fn_mkdir_p
20039# -------------
20040# Create "$as_dir" as a directory, including parents if necessary.
20041as_fn_mkdir_p ()
20042{
20043
20044  case $as_dir in #(
20045  -*) as_dir=./$as_dir;;
20046  esac
20047  test -d "$as_dir" || eval $as_mkdir_p || {
20048    as_dirs=
20049    while :; do
20050      case $as_dir in #(
20051      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20052      *) as_qdir=$as_dir;;
20053      esac
20054      as_dirs="'$as_qdir' $as_dirs"
20055      as_dir=`$as_dirname -- "$as_dir" ||
20056$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20057	 X"$as_dir" : 'X\(//\)[^/]' \| \
20058	 X"$as_dir" : 'X\(//\)$' \| \
20059	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20060$as_echo X"$as_dir" |
20061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20062	    s//\1/
20063	    q
20064	  }
20065	  /^X\(\/\/\)[^/].*/{
20066	    s//\1/
20067	    q
20068	  }
20069	  /^X\(\/\/\)$/{
20070	    s//\1/
20071	    q
20072	  }
20073	  /^X\(\/\).*/{
20074	    s//\1/
20075	    q
20076	  }
20077	  s/.*/./; q'`
20078      test -d "$as_dir" && break
20079    done
20080    test -z "$as_dirs" || eval "mkdir $as_dirs"
20081  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20082
20083
20084} # as_fn_mkdir_p
20085if mkdir -p . 2>/dev/null; then
20086  as_mkdir_p='mkdir -p "$as_dir"'
20087else
20088  test -d ./-p && rmdir ./-p
20089  as_mkdir_p=false
20090fi
20091
20092
20093# as_fn_executable_p FILE
20094# -----------------------
20095# Test if FILE is an executable regular file.
20096as_fn_executable_p ()
20097{
20098  test -f "$1" && test -x "$1"
20099} # as_fn_executable_p
20100as_test_x='test -x'
20101as_executable_p=as_fn_executable_p
20102
20103# Sed expression to map a string onto a valid CPP name.
20104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20105
20106# Sed expression to map a string onto a valid variable name.
20107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20108
20109
20110exec 6>&1
20111## ----------------------------------- ##
20112## Main body of $CONFIG_STATUS script. ##
20113## ----------------------------------- ##
20114_ASEOF
20115test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20116
20117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20118# Save the log message, to keep $0 and so on meaningful, and to
20119# report actual input values of CONFIG_FILES etc. instead of their
20120# values after options handling.
20121ac_log="
20122This file was extended by xapian-bindings $as_me 1.4.18, which was
20123generated by GNU Autoconf 2.69.  Invocation command line was
20124
20125  CONFIG_FILES    = $CONFIG_FILES
20126  CONFIG_HEADERS  = $CONFIG_HEADERS
20127  CONFIG_LINKS    = $CONFIG_LINKS
20128  CONFIG_COMMANDS = $CONFIG_COMMANDS
20129  $ $0 $@
20130
20131on `(hostname || uname -n) 2>/dev/null | sed 1q`
20132"
20133
20134_ACEOF
20135
20136case $ac_config_files in *"
20137"*) set x $ac_config_files; shift; ac_config_files=$*;;
20138esac
20139
20140case $ac_config_headers in *"
20141"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20142esac
20143
20144
20145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20146# Files that config.status was made for.
20147config_files="$ac_config_files"
20148config_headers="$ac_config_headers"
20149config_commands="$ac_config_commands"
20150
20151_ACEOF
20152
20153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20154ac_cs_usage="\
20155\`$as_me' instantiates files and other configuration actions
20156from templates according to the current configuration.  Unless the files
20157and actions are specified as TAGs, all are instantiated by default.
20158
20159Usage: $0 [OPTION]... [TAG]...
20160
20161  -h, --help       print this help, then exit
20162  -V, --version    print version number and configuration settings, then exit
20163      --config     print configuration, then exit
20164  -q, --quiet, --silent
20165                   do not print progress messages
20166  -d, --debug      don't remove temporary files
20167      --recheck    update $as_me by reconfiguring in the same conditions
20168      --file=FILE[:TEMPLATE]
20169                   instantiate the configuration file FILE
20170      --header=FILE[:TEMPLATE]
20171                   instantiate the configuration header FILE
20172
20173Configuration files:
20174$config_files
20175
20176Configuration headers:
20177$config_headers
20178
20179Configuration commands:
20180$config_commands
20181
20182Report bugs to <https://xapian.org/bugs>."
20183
20184_ACEOF
20185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20187ac_cs_version="\\
20188xapian-bindings config.status 1.4.18
20189configured by $0, generated by GNU Autoconf 2.69,
20190  with options \\"\$ac_cs_config\\"
20191
20192Copyright (C) 2012 Free Software Foundation, Inc.
20193This config.status script is free software; the Free Software Foundation
20194gives unlimited permission to copy, distribute and modify it."
20195
20196ac_pwd='$ac_pwd'
20197srcdir='$srcdir'
20198INSTALL='$INSTALL'
20199MKDIR_P='$MKDIR_P'
20200AWK='$AWK'
20201test -n "\$AWK" || AWK=awk
20202_ACEOF
20203
20204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20205# The default lists apply if the user does not specify any file.
20206ac_need_defaults=:
20207while test $# != 0
20208do
20209  case $1 in
20210  --*=?*)
20211    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20212    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20213    ac_shift=:
20214    ;;
20215  --*=)
20216    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20217    ac_optarg=
20218    ac_shift=:
20219    ;;
20220  *)
20221    ac_option=$1
20222    ac_optarg=$2
20223    ac_shift=shift
20224    ;;
20225  esac
20226
20227  case $ac_option in
20228  # Handling of the options.
20229  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20230    ac_cs_recheck=: ;;
20231  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20232    $as_echo "$ac_cs_version"; exit ;;
20233  --config | --confi | --conf | --con | --co | --c )
20234    $as_echo "$ac_cs_config"; exit ;;
20235  --debug | --debu | --deb | --de | --d | -d )
20236    debug=: ;;
20237  --file | --fil | --fi | --f )
20238    $ac_shift
20239    case $ac_optarg in
20240    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20241    '') as_fn_error $? "missing file argument" ;;
20242    esac
20243    as_fn_append CONFIG_FILES " '$ac_optarg'"
20244    ac_need_defaults=false;;
20245  --header | --heade | --head | --hea )
20246    $ac_shift
20247    case $ac_optarg in
20248    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20249    esac
20250    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20251    ac_need_defaults=false;;
20252  --he | --h)
20253    # Conflict between --help and --header
20254    as_fn_error $? "ambiguous option: \`$1'
20255Try \`$0 --help' for more information.";;
20256  --help | --hel | -h )
20257    $as_echo "$ac_cs_usage"; exit ;;
20258  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20259  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20260    ac_cs_silent=: ;;
20261
20262  # This is an error.
20263  -*) as_fn_error $? "unrecognized option: \`$1'
20264Try \`$0 --help' for more information." ;;
20265
20266  *) as_fn_append ac_config_targets " $1"
20267     ac_need_defaults=false ;;
20268
20269  esac
20270  shift
20271done
20272
20273ac_configure_extra_args=
20274
20275if $ac_cs_silent; then
20276  exec 6>/dev/null
20277  ac_configure_extra_args="$ac_configure_extra_args --silent"
20278fi
20279
20280_ACEOF
20281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282if \$ac_cs_recheck; then
20283  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20284  shift
20285  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20286  CONFIG_SHELL='$SHELL'
20287  export CONFIG_SHELL
20288  exec "\$@"
20289fi
20290
20291_ACEOF
20292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20293exec 5>>config.log
20294{
20295  echo
20296  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20297## Running $as_me. ##
20298_ASBOX
20299  $as_echo "$ac_log"
20300} >&5
20301
20302_ACEOF
20303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20304#
20305# INIT-COMMANDS
20306#
20307AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20308
20309
20310# The HP-UX ksh and POSIX shell print the target directory to stdout
20311# if CDPATH is set.
20312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20313
20314sed_quote_subst='$sed_quote_subst'
20315double_quote_subst='$double_quote_subst'
20316delay_variable_subst='$delay_variable_subst'
20317macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20318macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20319enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20320enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20321pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20322enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20323shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20324SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20325ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20326PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20327host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20328host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20329host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20330build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20331build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20332build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20333SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20334Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20335GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20336EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20337FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20338LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20339NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20340LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20341max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20342ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20343exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20344lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20345lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20346lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20347lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20348lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20349reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20350reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20351OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20352deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20353file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20354file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20355want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20356DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20357sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20358AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20359AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20360archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20361STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20362RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20363old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20364old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20365old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20366lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20367CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20368CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20369compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20370GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20371lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20372lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20373lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20374lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20375lt_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"`'
20376lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20377nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20378lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20379lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20380objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20381MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20382lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20383lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20384lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20385lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20386lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20387need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20388MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20389DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20390NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20391LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20392OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20393OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20394libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20395shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20396extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20397archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20398enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20399export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20400whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20401compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20402old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20403old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20404archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20405archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20406module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20407module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20408with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20409allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20410no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20411hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20412hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20413hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20414hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20415hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20416hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20417hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20418inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20419link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20420always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20421export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20422exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20423include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20424prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20425postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20426file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20427variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20428need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20429need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20430version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20431runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20432shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20433shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20434libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20435library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20436soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20437install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20438postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20439postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20440finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20441finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20442hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20443sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20444configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20445configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20446hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20447enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20448enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20449enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20450old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20451striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20452compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20453predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20454postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20455predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20456postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20457compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20458LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20459reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20460reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20461old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20462compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20463GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20464lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20465lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20466lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20467lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20468lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20469archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20470enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20471export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20472whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20473compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20474old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20475old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20476archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20477archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20479module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20480with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20481allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20482no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20483hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20484hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20485hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20486hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20487hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20488hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20489hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20490inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20491link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20492always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20493export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20494exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20495include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20496prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20497postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20499hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20500compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20501predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20502postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20503predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20504postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20505compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20506
20507LTCC='$LTCC'
20508LTCFLAGS='$LTCFLAGS'
20509compiler='$compiler_DEFAULT'
20510
20511# A function that is used when there is no print builtin or printf.
20512func_fallback_echo ()
20513{
20514  eval 'cat <<_LTECHO_EOF
20515\$1
20516_LTECHO_EOF'
20517}
20518
20519# Quote evaled strings.
20520for var in SHELL \
20521ECHO \
20522PATH_SEPARATOR \
20523SED \
20524GREP \
20525EGREP \
20526FGREP \
20527LD \
20528NM \
20529LN_S \
20530lt_SP2NL \
20531lt_NL2SP \
20532reload_flag \
20533OBJDUMP \
20534deplibs_check_method \
20535file_magic_cmd \
20536file_magic_glob \
20537want_nocaseglob \
20538DLLTOOL \
20539sharedlib_from_linklib_cmd \
20540AR \
20541AR_FLAGS \
20542archiver_list_spec \
20543STRIP \
20544RANLIB \
20545CC \
20546CFLAGS \
20547compiler \
20548lt_cv_sys_global_symbol_pipe \
20549lt_cv_sys_global_symbol_to_cdecl \
20550lt_cv_sys_global_symbol_to_import \
20551lt_cv_sys_global_symbol_to_c_name_address \
20552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20553lt_cv_nm_interface \
20554nm_file_list_spec \
20555lt_cv_truncate_bin \
20556lt_prog_compiler_no_builtin_flag \
20557lt_prog_compiler_pic \
20558lt_prog_compiler_wl \
20559lt_prog_compiler_static \
20560lt_cv_prog_compiler_c_o \
20561need_locks \
20562MANIFEST_TOOL \
20563DSYMUTIL \
20564NMEDIT \
20565LIPO \
20566OTOOL \
20567OTOOL64 \
20568shrext_cmds \
20569export_dynamic_flag_spec \
20570whole_archive_flag_spec \
20571compiler_needs_object \
20572with_gnu_ld \
20573allow_undefined_flag \
20574no_undefined_flag \
20575hardcode_libdir_flag_spec \
20576hardcode_libdir_separator \
20577exclude_expsyms \
20578include_expsyms \
20579file_list_spec \
20580variables_saved_for_relink \
20581libname_spec \
20582library_names_spec \
20583soname_spec \
20584install_override_mode \
20585finish_eval \
20586old_striplib \
20587striplib \
20588compiler_lib_search_dirs \
20589predep_objects \
20590postdep_objects \
20591predeps \
20592postdeps \
20593compiler_lib_search_path \
20594LD_CXX \
20595reload_flag_CXX \
20596compiler_CXX \
20597lt_prog_compiler_no_builtin_flag_CXX \
20598lt_prog_compiler_pic_CXX \
20599lt_prog_compiler_wl_CXX \
20600lt_prog_compiler_static_CXX \
20601lt_cv_prog_compiler_c_o_CXX \
20602export_dynamic_flag_spec_CXX \
20603whole_archive_flag_spec_CXX \
20604compiler_needs_object_CXX \
20605with_gnu_ld_CXX \
20606allow_undefined_flag_CXX \
20607no_undefined_flag_CXX \
20608hardcode_libdir_flag_spec_CXX \
20609hardcode_libdir_separator_CXX \
20610exclude_expsyms_CXX \
20611include_expsyms_CXX \
20612file_list_spec_CXX \
20613compiler_lib_search_dirs_CXX \
20614predep_objects_CXX \
20615postdep_objects_CXX \
20616predeps_CXX \
20617postdeps_CXX \
20618compiler_lib_search_path_CXX; do
20619    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20620    *[\\\\\\\`\\"\\\$]*)
20621      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20622      ;;
20623    *)
20624      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20625      ;;
20626    esac
20627done
20628
20629# Double-quote double-evaled strings.
20630for var in reload_cmds \
20631old_postinstall_cmds \
20632old_postuninstall_cmds \
20633old_archive_cmds \
20634extract_expsyms_cmds \
20635old_archive_from_new_cmds \
20636old_archive_from_expsyms_cmds \
20637archive_cmds \
20638archive_expsym_cmds \
20639module_cmds \
20640module_expsym_cmds \
20641export_symbols_cmds \
20642prelink_cmds \
20643postlink_cmds \
20644postinstall_cmds \
20645postuninstall_cmds \
20646finish_cmds \
20647sys_lib_search_path_spec \
20648configure_time_dlsearch_path \
20649configure_time_lt_sys_library_path \
20650reload_cmds_CXX \
20651old_archive_cmds_CXX \
20652old_archive_from_new_cmds_CXX \
20653old_archive_from_expsyms_cmds_CXX \
20654archive_cmds_CXX \
20655archive_expsym_cmds_CXX \
20656module_cmds_CXX \
20657module_expsym_cmds_CXX \
20658export_symbols_cmds_CXX \
20659prelink_cmds_CXX \
20660postlink_cmds_CXX; do
20661    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20662    *[\\\\\\\`\\"\\\$]*)
20663      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20664      ;;
20665    *)
20666      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20667      ;;
20668    esac
20669done
20670
20671ac_aux_dir='$ac_aux_dir'
20672
20673# See if we are running on zsh, and set the options that allow our
20674# commands through without removal of \ escapes INIT.
20675if test -n "\${ZSH_VERSION+set}"; then
20676   setopt NO_GLOB_SUBST
20677fi
20678
20679
20680    PACKAGE='$PACKAGE'
20681    VERSION='$VERSION'
20682    RM='$RM'
20683    ofile='$ofile'
20684
20685
20686
20687
20688
20689
20690_ACEOF
20691
20692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20693
20694# Handling of arguments.
20695for ac_config_target in $ac_config_targets
20696do
20697  case $ac_config_target in
20698    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20699    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20700    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20701    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20702    "doxygen_xml.conf") CONFIG_FILES="$CONFIG_FILES doxygen_xml.conf" ;;
20703    "xapian-version.h") CONFIG_FILES="$CONFIG_FILES xapian-version.h" ;;
20704    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
20705    "python/docs/conf.py") CONFIG_FILES="$CONFIG_FILES python/docs/conf.py" ;;
20706    "python/version.i") CONFIG_FILES="$CONFIG_FILES python/version.i" ;;
20707    "python3/Makefile") CONFIG_FILES="$CONFIG_FILES python3/Makefile" ;;
20708    "python3/docs/conf.py") CONFIG_FILES="$CONFIG_FILES python3/docs/conf.py" ;;
20709    "python3/version.i") CONFIG_FILES="$CONFIG_FILES python3/version.i" ;;
20710    "php/Makefile") CONFIG_FILES="$CONFIG_FILES php/Makefile" ;;
20711    "php7/Makefile") CONFIG_FILES="$CONFIG_FILES php7/Makefile" ;;
20712    "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
20713    "tcl8/Makefile") CONFIG_FILES="$CONFIG_FILES tcl8/Makefile" ;;
20714    "tcl8/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tcl8/pkgIndex.tcl" ;;
20715    "csharp/Makefile") CONFIG_FILES="$CONFIG_FILES csharp/Makefile" ;;
20716    "csharp/AssemblyInfo.cs") CONFIG_FILES="$CONFIG_FILES csharp/AssemblyInfo.cs" ;;
20717    "ruby/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/Makefile" ;;
20718    "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
20719    "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
20720    "xapian-bindings.spec") CONFIG_FILES="$CONFIG_FILES xapian-bindings.spec" ;;
20721
20722  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20723  esac
20724done
20725
20726
20727# If the user did not use the arguments to specify the items to instantiate,
20728# then the envvar interface is used.  Set only those that are not.
20729# We use the long form for the default assignment because of an extremely
20730# bizarre bug on SunOS 4.1.3.
20731if $ac_need_defaults; then
20732  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20733  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20734  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20735fi
20736
20737# Have a temporary directory for convenience.  Make it in the build tree
20738# simply because there is no reason against having it here, and in addition,
20739# creating and moving files from /tmp can sometimes cause problems.
20740# Hook for its removal unless debugging.
20741# Note that there is a small window in which the directory will not be cleaned:
20742# after its creation but before its name has been assigned to `$tmp'.
20743$debug ||
20744{
20745  tmp= ac_tmp=
20746  trap 'exit_status=$?
20747  : "${ac_tmp:=$tmp}"
20748  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20749' 0
20750  trap 'as_fn_exit 1' 1 2 13 15
20751}
20752# Create a (secure) tmp directory for tmp files.
20753
20754{
20755  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20756  test -d "$tmp"
20757}  ||
20758{
20759  tmp=./conf$$-$RANDOM
20760  (umask 077 && mkdir "$tmp")
20761} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20762ac_tmp=$tmp
20763
20764# Set up the scripts for CONFIG_FILES section.
20765# No need to generate them if there are no CONFIG_FILES.
20766# This happens for instance with `./config.status config.h'.
20767if test -n "$CONFIG_FILES"; then
20768
20769
20770ac_cr=`echo X | tr X '\015'`
20771# On cygwin, bash can eat \r inside `` if the user requested igncr.
20772# But we know of no other shell where ac_cr would be empty at this
20773# point, so we can use a bashism as a fallback.
20774if test "x$ac_cr" = x; then
20775  eval ac_cr=\$\'\\r\'
20776fi
20777ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20778if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20779  ac_cs_awk_cr='\\r'
20780else
20781  ac_cs_awk_cr=$ac_cr
20782fi
20783
20784echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20785_ACEOF
20786
20787
20788{
20789  echo "cat >conf$$subs.awk <<_ACEOF" &&
20790  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20791  echo "_ACEOF"
20792} >conf$$subs.sh ||
20793  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20794ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20795ac_delim='%!_!# '
20796for ac_last_try in false false false false false :; do
20797  . ./conf$$subs.sh ||
20798    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20799
20800  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20801  if test $ac_delim_n = $ac_delim_num; then
20802    break
20803  elif $ac_last_try; then
20804    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20805  else
20806    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20807  fi
20808done
20809rm -f conf$$subs.sh
20810
20811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20812cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20813_ACEOF
20814sed -n '
20815h
20816s/^/S["/; s/!.*/"]=/
20817p
20818g
20819s/^[^!]*!//
20820:repl
20821t repl
20822s/'"$ac_delim"'$//
20823t delim
20824:nl
20825h
20826s/\(.\{148\}\)..*/\1/
20827t more1
20828s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20829p
20830n
20831b repl
20832:more1
20833s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20834p
20835g
20836s/.\{148\}//
20837t nl
20838:delim
20839h
20840s/\(.\{148\}\)..*/\1/
20841t more2
20842s/["\\]/\\&/g; s/^/"/; s/$/"/
20843p
20844b
20845:more2
20846s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20847p
20848g
20849s/.\{148\}//
20850t delim
20851' <conf$$subs.awk | sed '
20852/^[^""]/{
20853  N
20854  s/\n//
20855}
20856' >>$CONFIG_STATUS || ac_write_fail=1
20857rm -f conf$$subs.awk
20858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20859_ACAWK
20860cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20861  for (key in S) S_is_set[key] = 1
20862  FS = ""
20863
20864}
20865{
20866  line = $ 0
20867  nfields = split(line, field, "@")
20868  substed = 0
20869  len = length(field[1])
20870  for (i = 2; i < nfields; i++) {
20871    key = field[i]
20872    keylen = length(key)
20873    if (S_is_set[key]) {
20874      value = S[key]
20875      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20876      len += length(value) + length(field[++i])
20877      substed = 1
20878    } else
20879      len += 1 + keylen
20880  }
20881
20882  print line
20883}
20884
20885_ACAWK
20886_ACEOF
20887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20888if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20889  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20890else
20891  cat
20892fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20893  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20894_ACEOF
20895
20896# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20897# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20898# trailing colons and then remove the whole line if VPATH becomes empty
20899# (actually we leave an empty line to preserve line numbers).
20900if test "x$srcdir" = x.; then
20901  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20902h
20903s///
20904s/^/:/
20905s/[	 ]*$/:/
20906s/:\$(srcdir):/:/g
20907s/:\${srcdir}:/:/g
20908s/:@srcdir@:/:/g
20909s/^:*//
20910s/:*$//
20911x
20912s/\(=[	 ]*\).*/\1/
20913G
20914s/\n//
20915s/^[^=]*=[	 ]*$//
20916}'
20917fi
20918
20919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20920fi # test -n "$CONFIG_FILES"
20921
20922# Set up the scripts for CONFIG_HEADERS section.
20923# No need to generate them if there are no CONFIG_HEADERS.
20924# This happens for instance with `./config.status Makefile'.
20925if test -n "$CONFIG_HEADERS"; then
20926cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20927BEGIN {
20928_ACEOF
20929
20930# Transform confdefs.h into an awk script `defines.awk', embedded as
20931# here-document in config.status, that substitutes the proper values into
20932# config.h.in to produce config.h.
20933
20934# Create a delimiter string that does not exist in confdefs.h, to ease
20935# handling of long lines.
20936ac_delim='%!_!# '
20937for ac_last_try in false false :; do
20938  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20939  if test -z "$ac_tt"; then
20940    break
20941  elif $ac_last_try; then
20942    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20943  else
20944    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20945  fi
20946done
20947
20948# For the awk script, D is an array of macro values keyed by name,
20949# likewise P contains macro parameters if any.  Preserve backslash
20950# newline sequences.
20951
20952ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20953sed -n '
20954s/.\{148\}/&'"$ac_delim"'/g
20955t rset
20956:rset
20957s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20958t def
20959d
20960:def
20961s/\\$//
20962t bsnl
20963s/["\\]/\\&/g
20964s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20965D["\1"]=" \3"/p
20966s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20967d
20968:bsnl
20969s/["\\]/\\&/g
20970s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20971D["\1"]=" \3\\\\\\n"\\/p
20972t cont
20973s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20974t cont
20975d
20976:cont
20977n
20978s/.\{148\}/&'"$ac_delim"'/g
20979t clear
20980:clear
20981s/\\$//
20982t bsnlc
20983s/["\\]/\\&/g; s/^/"/; s/$/"/p
20984d
20985:bsnlc
20986s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20987b cont
20988' <confdefs.h | sed '
20989s/'"$ac_delim"'/"\\\
20990"/g' >>$CONFIG_STATUS || ac_write_fail=1
20991
20992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20993  for (key in D) D_is_set[key] = 1
20994  FS = ""
20995}
20996/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20997  line = \$ 0
20998  split(line, arg, " ")
20999  if (arg[1] == "#") {
21000    defundef = arg[2]
21001    mac1 = arg[3]
21002  } else {
21003    defundef = substr(arg[1], 2)
21004    mac1 = arg[2]
21005  }
21006  split(mac1, mac2, "(") #)
21007  macro = mac2[1]
21008  prefix = substr(line, 1, index(line, defundef) - 1)
21009  if (D_is_set[macro]) {
21010    # Preserve the white space surrounding the "#".
21011    print prefix "define", macro P[macro] D[macro]
21012    next
21013  } else {
21014    # Replace #undef with comments.  This is necessary, for example,
21015    # in the case of _POSIX_SOURCE, which is predefined and required
21016    # on some systems where configure will not decide to define it.
21017    if (defundef == "undef") {
21018      print "/*", prefix defundef, macro, "*/"
21019      next
21020    }
21021  }
21022}
21023{ print }
21024_ACAWK
21025_ACEOF
21026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21027  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21028fi # test -n "$CONFIG_HEADERS"
21029
21030
21031eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21032shift
21033for ac_tag
21034do
21035  case $ac_tag in
21036  :[FHLC]) ac_mode=$ac_tag; continue;;
21037  esac
21038  case $ac_mode$ac_tag in
21039  :[FHL]*:*);;
21040  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21041  :[FH]-) ac_tag=-:-;;
21042  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21043  esac
21044  ac_save_IFS=$IFS
21045  IFS=:
21046  set x $ac_tag
21047  IFS=$ac_save_IFS
21048  shift
21049  ac_file=$1
21050  shift
21051
21052  case $ac_mode in
21053  :L) ac_source=$1;;
21054  :[FH])
21055    ac_file_inputs=
21056    for ac_f
21057    do
21058      case $ac_f in
21059      -) ac_f="$ac_tmp/stdin";;
21060      *) # Look for the file first in the build tree, then in the source tree
21061	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21062	 # because $ac_f cannot contain `:'.
21063	 test -f "$ac_f" ||
21064	   case $ac_f in
21065	   [\\/$]*) false;;
21066	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21067	   esac ||
21068	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21069      esac
21070      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21071      as_fn_append ac_file_inputs " '$ac_f'"
21072    done
21073
21074    # Let's still pretend it is `configure' which instantiates (i.e., don't
21075    # use $as_me), people would be surprised to read:
21076    #    /* config.h.  Generated by config.status.  */
21077    configure_input='Generated from '`
21078	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21079	`' by configure.'
21080    if test x"$ac_file" != x-; then
21081      configure_input="$ac_file.  $configure_input"
21082      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21083$as_echo "$as_me: creating $ac_file" >&6;}
21084    fi
21085    # Neutralize special characters interpreted by sed in replacement strings.
21086    case $configure_input in #(
21087    *\&* | *\|* | *\\* )
21088       ac_sed_conf_input=`$as_echo "$configure_input" |
21089       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21090    *) ac_sed_conf_input=$configure_input;;
21091    esac
21092
21093    case $ac_tag in
21094    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21095      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21096    esac
21097    ;;
21098  esac
21099
21100  ac_dir=`$as_dirname -- "$ac_file" ||
21101$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21102	 X"$ac_file" : 'X\(//\)[^/]' \| \
21103	 X"$ac_file" : 'X\(//\)$' \| \
21104	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21105$as_echo X"$ac_file" |
21106    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21107	    s//\1/
21108	    q
21109	  }
21110	  /^X\(\/\/\)[^/].*/{
21111	    s//\1/
21112	    q
21113	  }
21114	  /^X\(\/\/\)$/{
21115	    s//\1/
21116	    q
21117	  }
21118	  /^X\(\/\).*/{
21119	    s//\1/
21120	    q
21121	  }
21122	  s/.*/./; q'`
21123  as_dir="$ac_dir"; as_fn_mkdir_p
21124  ac_builddir=.
21125
21126case "$ac_dir" in
21127.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21128*)
21129  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21130  # A ".." for each directory in $ac_dir_suffix.
21131  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21132  case $ac_top_builddir_sub in
21133  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21134  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21135  esac ;;
21136esac
21137ac_abs_top_builddir=$ac_pwd
21138ac_abs_builddir=$ac_pwd$ac_dir_suffix
21139# for backward compatibility:
21140ac_top_builddir=$ac_top_build_prefix
21141
21142case $srcdir in
21143  .)  # We are building in place.
21144    ac_srcdir=.
21145    ac_top_srcdir=$ac_top_builddir_sub
21146    ac_abs_top_srcdir=$ac_pwd ;;
21147  [\\/]* | ?:[\\/]* )  # Absolute name.
21148    ac_srcdir=$srcdir$ac_dir_suffix;
21149    ac_top_srcdir=$srcdir
21150    ac_abs_top_srcdir=$srcdir ;;
21151  *) # Relative name.
21152    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21153    ac_top_srcdir=$ac_top_build_prefix$srcdir
21154    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21155esac
21156ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21157
21158
21159  case $ac_mode in
21160  :F)
21161  #
21162  # CONFIG_FILE
21163  #
21164
21165  case $INSTALL in
21166  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21167  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21168  esac
21169  ac_MKDIR_P=$MKDIR_P
21170  case $MKDIR_P in
21171  [\\/$]* | ?:[\\/]* ) ;;
21172  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21173  esac
21174_ACEOF
21175
21176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21177# If the template does not know about datarootdir, expand it.
21178# FIXME: This hack should be removed a few years after 2.60.
21179ac_datarootdir_hack=; ac_datarootdir_seen=
21180ac_sed_dataroot='
21181/datarootdir/ {
21182  p
21183  q
21184}
21185/@datadir@/p
21186/@docdir@/p
21187/@infodir@/p
21188/@localedir@/p
21189/@mandir@/p'
21190case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21191*datarootdir*) ac_datarootdir_seen=yes;;
21192*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21193  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21194$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21195_ACEOF
21196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21197  ac_datarootdir_hack='
21198  s&@datadir@&$datadir&g
21199  s&@docdir@&$docdir&g
21200  s&@infodir@&$infodir&g
21201  s&@localedir@&$localedir&g
21202  s&@mandir@&$mandir&g
21203  s&\\\${datarootdir}&$datarootdir&g' ;;
21204esac
21205_ACEOF
21206
21207# Neutralize VPATH when `$srcdir' = `.'.
21208# Shell code in configure.ac might set extrasub.
21209# FIXME: do we really want to maintain this feature?
21210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21211ac_sed_extra="$ac_vpsub
21212$extrasub
21213_ACEOF
21214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21215:t
21216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21217s|@configure_input@|$ac_sed_conf_input|;t t
21218s&@top_builddir@&$ac_top_builddir_sub&;t t
21219s&@top_build_prefix@&$ac_top_build_prefix&;t t
21220s&@srcdir@&$ac_srcdir&;t t
21221s&@abs_srcdir@&$ac_abs_srcdir&;t t
21222s&@top_srcdir@&$ac_top_srcdir&;t t
21223s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21224s&@builddir@&$ac_builddir&;t t
21225s&@abs_builddir@&$ac_abs_builddir&;t t
21226s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21227s&@INSTALL@&$ac_INSTALL&;t t
21228s&@MKDIR_P@&$ac_MKDIR_P&;t t
21229$ac_datarootdir_hack
21230"
21231eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21232  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21233
21234test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21235  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21236  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21237      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21238  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21239which seems to be undefined.  Please make sure it is defined" >&5
21240$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21241which seems to be undefined.  Please make sure it is defined" >&2;}
21242
21243  rm -f "$ac_tmp/stdin"
21244  case $ac_file in
21245  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21246  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21247  esac \
21248  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21249 ;;
21250  :H)
21251  #
21252  # CONFIG_HEADER
21253  #
21254  if test x"$ac_file" != x-; then
21255    {
21256      $as_echo "/* $configure_input  */" \
21257      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21258    } >"$ac_tmp/config.h" \
21259      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21260    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21261      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21262$as_echo "$as_me: $ac_file is unchanged" >&6;}
21263    else
21264      rm -f "$ac_file"
21265      mv "$ac_tmp/config.h" "$ac_file" \
21266	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21267    fi
21268  else
21269    $as_echo "/* $configure_input  */" \
21270      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21271      || as_fn_error $? "could not create -" "$LINENO" 5
21272  fi
21273# Compute "$ac_file"'s index in $config_headers.
21274_am_arg="$ac_file"
21275_am_stamp_count=1
21276for _am_header in $config_headers :; do
21277  case $_am_header in
21278    $_am_arg | $_am_arg:* )
21279      break ;;
21280    * )
21281      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21282  esac
21283done
21284echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21285$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21286	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21287	 X"$_am_arg" : 'X\(//\)$' \| \
21288	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21289$as_echo X"$_am_arg" |
21290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21291	    s//\1/
21292	    q
21293	  }
21294	  /^X\(\/\/\)[^/].*/{
21295	    s//\1/
21296	    q
21297	  }
21298	  /^X\(\/\/\)$/{
21299	    s//\1/
21300	    q
21301	  }
21302	  /^X\(\/\).*/{
21303	    s//\1/
21304	    q
21305	  }
21306	  s/.*/./; q'`/stamp-h$_am_stamp_count
21307 ;;
21308
21309  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21310$as_echo "$as_me: executing $ac_file commands" >&6;}
21311 ;;
21312  esac
21313
21314
21315  case $ac_file$ac_mode in
21316    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21317  # Older Autoconf quotes --file arguments for eval, but not when files
21318  # are listed without --file.  Let's play safe and only enable the eval
21319  # if we detect the quoting.
21320  case $CONFIG_FILES in
21321  *\'*) eval set x "$CONFIG_FILES" ;;
21322  *)   set x $CONFIG_FILES ;;
21323  esac
21324  shift
21325  for mf
21326  do
21327    # Strip MF so we end up with the name of the file.
21328    mf=`echo "$mf" | sed -e 's/:.*$//'`
21329    # Check whether this is an Automake generated Makefile or not.
21330    # We used to match only the files named 'Makefile.in', but
21331    # some people rename them; so instead we look at the file content.
21332    # Grep'ing the first line is not enough: some people post-process
21333    # each Makefile.in and add a new line on top of each file to say so.
21334    # Grep'ing the whole file is not good either: AIX grep has a line
21335    # limit of 2048, but all sed's we know have understand at least 4000.
21336    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21337      dirpart=`$as_dirname -- "$mf" ||
21338$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21339	 X"$mf" : 'X\(//\)[^/]' \| \
21340	 X"$mf" : 'X\(//\)$' \| \
21341	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21342$as_echo X"$mf" |
21343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21344	    s//\1/
21345	    q
21346	  }
21347	  /^X\(\/\/\)[^/].*/{
21348	    s//\1/
21349	    q
21350	  }
21351	  /^X\(\/\/\)$/{
21352	    s//\1/
21353	    q
21354	  }
21355	  /^X\(\/\).*/{
21356	    s//\1/
21357	    q
21358	  }
21359	  s/.*/./; q'`
21360    else
21361      continue
21362    fi
21363    # Extract the definition of DEPDIR, am__include, and am__quote
21364    # from the Makefile without running 'make'.
21365    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21366    test -z "$DEPDIR" && continue
21367    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21368    test -z "$am__include" && continue
21369    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21370    # Find all dependency output files, they are included files with
21371    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21372    # simplest approach to changing $(DEPDIR) to its actual value in the
21373    # expansion.
21374    for file in `sed -n "
21375      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21376	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21377      # Make sure the directory exists.
21378      test -f "$dirpart/$file" && continue
21379      fdir=`$as_dirname -- "$file" ||
21380$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21381	 X"$file" : 'X\(//\)[^/]' \| \
21382	 X"$file" : 'X\(//\)$' \| \
21383	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21384$as_echo X"$file" |
21385    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21386	    s//\1/
21387	    q
21388	  }
21389	  /^X\(\/\/\)[^/].*/{
21390	    s//\1/
21391	    q
21392	  }
21393	  /^X\(\/\/\)$/{
21394	    s//\1/
21395	    q
21396	  }
21397	  /^X\(\/\).*/{
21398	    s//\1/
21399	    q
21400	  }
21401	  s/.*/./; q'`
21402      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21403      # echo "creating $dirpart/$file"
21404      echo '# dummy' > "$dirpart/$file"
21405    done
21406  done
21407}
21408 ;;
21409    "libtool":C)
21410
21411    # See if we are running on zsh, and set the options that allow our
21412    # commands through without removal of \ escapes.
21413    if test -n "${ZSH_VERSION+set}"; then
21414      setopt NO_GLOB_SUBST
21415    fi
21416
21417    cfgfile=${ofile}T
21418    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21419    $RM "$cfgfile"
21420
21421    cat <<_LT_EOF >> "$cfgfile"
21422#! $SHELL
21423# Generated automatically by $as_me ($PACKAGE) $VERSION
21424# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21425# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21426
21427# Provide generalized library-building support services.
21428# Written by Gordon Matzigkeit, 1996
21429
21430# Copyright (C) 2014 Free Software Foundation, Inc.
21431# This is free software; see the source for copying conditions.  There is NO
21432# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21433
21434# GNU Libtool is free software; you can redistribute it and/or modify
21435# it under the terms of the GNU General Public License as published by
21436# the Free Software Foundation; either version 2 of of the License, or
21437# (at your option) any later version.
21438#
21439# As a special exception to the GNU General Public License, if you
21440# distribute this file as part of a program or library that is built
21441# using GNU Libtool, you may include this file under the  same
21442# distribution terms that you use for the rest of that program.
21443#
21444# GNU Libtool is distributed in the hope that it will be useful, but
21445# WITHOUT ANY WARRANTY; without even the implied warranty of
21446# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21447# GNU General Public License for more details.
21448#
21449# You should have received a copy of the GNU General Public License
21450# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21451
21452
21453# The names of the tagged configurations supported by this script.
21454available_tags='CXX '
21455
21456# Configured defaults for sys_lib_dlsearch_path munging.
21457: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21458
21459# ### BEGIN LIBTOOL CONFIG
21460
21461# Which release of libtool.m4 was used?
21462macro_version=$macro_version
21463macro_revision=$macro_revision
21464
21465# Whether or not to build static libraries.
21466build_old_libs=$enable_static
21467
21468# Whether or not to build shared libraries.
21469build_libtool_libs=$enable_shared
21470
21471# What type of objects to build.
21472pic_mode=$pic_mode
21473
21474# Whether or not to optimize for fast installation.
21475fast_install=$enable_fast_install
21476
21477# Shared archive member basename,for filename based shared library versioning on AIX.
21478shared_archive_member_spec=$shared_archive_member_spec
21479
21480# Shell to use when invoking shell scripts.
21481SHELL=$lt_SHELL
21482
21483# An echo program that protects backslashes.
21484ECHO=$lt_ECHO
21485
21486# The PATH separator for the build system.
21487PATH_SEPARATOR=$lt_PATH_SEPARATOR
21488
21489# The host system.
21490host_alias=$host_alias
21491host=$host
21492host_os=$host_os
21493
21494# The build system.
21495build_alias=$build_alias
21496build=$build
21497build_os=$build_os
21498
21499# A sed program that does not truncate output.
21500SED=$lt_SED
21501
21502# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21503Xsed="\$SED -e 1s/^X//"
21504
21505# A grep program that handles long lines.
21506GREP=$lt_GREP
21507
21508# An ERE matcher.
21509EGREP=$lt_EGREP
21510
21511# A literal string matcher.
21512FGREP=$lt_FGREP
21513
21514# A BSD- or MS-compatible name lister.
21515NM=$lt_NM
21516
21517# Whether we need soft or hard links.
21518LN_S=$lt_LN_S
21519
21520# What is the maximum length of a command?
21521max_cmd_len=$max_cmd_len
21522
21523# Object file suffix (normally "o").
21524objext=$ac_objext
21525
21526# Executable file suffix (normally "").
21527exeext=$exeext
21528
21529# whether the shell understands "unset".
21530lt_unset=$lt_unset
21531
21532# turn spaces into newlines.
21533SP2NL=$lt_lt_SP2NL
21534
21535# turn newlines into spaces.
21536NL2SP=$lt_lt_NL2SP
21537
21538# convert \$build file names to \$host format.
21539to_host_file_cmd=$lt_cv_to_host_file_cmd
21540
21541# convert \$build files to toolchain format.
21542to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21543
21544# An object symbol dumper.
21545OBJDUMP=$lt_OBJDUMP
21546
21547# Method to check whether dependent libraries are shared objects.
21548deplibs_check_method=$lt_deplibs_check_method
21549
21550# Command to use when deplibs_check_method = "file_magic".
21551file_magic_cmd=$lt_file_magic_cmd
21552
21553# How to find potential files when deplibs_check_method = "file_magic".
21554file_magic_glob=$lt_file_magic_glob
21555
21556# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21557want_nocaseglob=$lt_want_nocaseglob
21558
21559# DLL creation program.
21560DLLTOOL=$lt_DLLTOOL
21561
21562# Command to associate shared and link libraries.
21563sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21564
21565# The archiver.
21566AR=$lt_AR
21567
21568# Flags to create an archive.
21569AR_FLAGS=$lt_AR_FLAGS
21570
21571# How to feed a file listing to the archiver.
21572archiver_list_spec=$lt_archiver_list_spec
21573
21574# A symbol stripping program.
21575STRIP=$lt_STRIP
21576
21577# Commands used to install an old-style archive.
21578RANLIB=$lt_RANLIB
21579old_postinstall_cmds=$lt_old_postinstall_cmds
21580old_postuninstall_cmds=$lt_old_postuninstall_cmds
21581
21582# Whether to use a lock for old archive extraction.
21583lock_old_archive_extraction=$lock_old_archive_extraction
21584
21585# A C compiler.
21586LTCC=$lt_CC
21587
21588# LTCC compiler flags.
21589LTCFLAGS=$lt_CFLAGS
21590
21591# Take the output of nm and produce a listing of raw symbols and C names.
21592global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21593
21594# Transform the output of nm in a proper C declaration.
21595global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21596
21597# Transform the output of nm into a list of symbols to manually relocate.
21598global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21599
21600# Transform the output of nm in a C name address pair.
21601global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21602
21603# Transform the output of nm in a C name address pair when lib prefix is needed.
21604global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21605
21606# The name lister interface.
21607nm_interface=$lt_lt_cv_nm_interface
21608
21609# Specify filename containing input files for \$NM.
21610nm_file_list_spec=$lt_nm_file_list_spec
21611
21612# The root where to search for dependent libraries,and where our libraries should be installed.
21613lt_sysroot=$lt_sysroot
21614
21615# Command to truncate a binary pipe.
21616lt_truncate_bin=$lt_lt_cv_truncate_bin
21617
21618# The name of the directory that contains temporary libtool files.
21619objdir=$objdir
21620
21621# Used to examine libraries when file_magic_cmd begins with "file".
21622MAGIC_CMD=$MAGIC_CMD
21623
21624# Must we lock files when doing compilation?
21625need_locks=$lt_need_locks
21626
21627# Manifest tool.
21628MANIFEST_TOOL=$lt_MANIFEST_TOOL
21629
21630# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21631DSYMUTIL=$lt_DSYMUTIL
21632
21633# Tool to change global to local symbols on Mac OS X.
21634NMEDIT=$lt_NMEDIT
21635
21636# Tool to manipulate fat objects and archives on Mac OS X.
21637LIPO=$lt_LIPO
21638
21639# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21640OTOOL=$lt_OTOOL
21641
21642# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21643OTOOL64=$lt_OTOOL64
21644
21645# Old archive suffix (normally "a").
21646libext=$libext
21647
21648# Shared library suffix (normally ".so").
21649shrext_cmds=$lt_shrext_cmds
21650
21651# The commands to extract the exported symbol list from a shared archive.
21652extract_expsyms_cmds=$lt_extract_expsyms_cmds
21653
21654# Variables whose values should be saved in libtool wrapper scripts and
21655# restored at link time.
21656variables_saved_for_relink=$lt_variables_saved_for_relink
21657
21658# Do we need the "lib" prefix for modules?
21659need_lib_prefix=$need_lib_prefix
21660
21661# Do we need a version for libraries?
21662need_version=$need_version
21663
21664# Library versioning type.
21665version_type=$version_type
21666
21667# Shared library runtime path variable.
21668runpath_var=$runpath_var
21669
21670# Shared library path variable.
21671shlibpath_var=$shlibpath_var
21672
21673# Is shlibpath searched before the hard-coded library search path?
21674shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21675
21676# Format of library name prefix.
21677libname_spec=$lt_libname_spec
21678
21679# List of archive names.  First name is the real one, the rest are links.
21680# The last name is the one that the linker finds with -lNAME
21681library_names_spec=$lt_library_names_spec
21682
21683# The coded name of the library, if different from the real name.
21684soname_spec=$lt_soname_spec
21685
21686# Permission mode override for installation of shared libraries.
21687install_override_mode=$lt_install_override_mode
21688
21689# Command to use after installation of a shared archive.
21690postinstall_cmds=$lt_postinstall_cmds
21691
21692# Command to use after uninstallation of a shared archive.
21693postuninstall_cmds=$lt_postuninstall_cmds
21694
21695# Commands used to finish a libtool library installation in a directory.
21696finish_cmds=$lt_finish_cmds
21697
21698# As "finish_cmds", except a single script fragment to be evaled but
21699# not shown.
21700finish_eval=$lt_finish_eval
21701
21702# Whether we should hardcode library paths into libraries.
21703hardcode_into_libs=$hardcode_into_libs
21704
21705# Compile-time system search path for libraries.
21706sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21707
21708# Detected run-time system search path for libraries.
21709sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21710
21711# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21712configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21713
21714# Whether dlopen is supported.
21715dlopen_support=$enable_dlopen
21716
21717# Whether dlopen of programs is supported.
21718dlopen_self=$enable_dlopen_self
21719
21720# Whether dlopen of statically linked programs is supported.
21721dlopen_self_static=$enable_dlopen_self_static
21722
21723# Commands to strip libraries.
21724old_striplib=$lt_old_striplib
21725striplib=$lt_striplib
21726
21727
21728# The linker used to build libraries.
21729LD=$lt_LD
21730
21731# How to create reloadable object files.
21732reload_flag=$lt_reload_flag
21733reload_cmds=$lt_reload_cmds
21734
21735# Commands used to build an old-style archive.
21736old_archive_cmds=$lt_old_archive_cmds
21737
21738# A language specific compiler.
21739CC=$lt_compiler
21740
21741# Is the compiler the GNU compiler?
21742with_gcc=$GCC
21743
21744# Compiler flag to turn off builtin functions.
21745no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21746
21747# Additional compiler flags for building library objects.
21748pic_flag=$lt_lt_prog_compiler_pic
21749
21750# How to pass a linker flag through the compiler.
21751wl=$lt_lt_prog_compiler_wl
21752
21753# Compiler flag to prevent dynamic linking.
21754link_static_flag=$lt_lt_prog_compiler_static
21755
21756# Does compiler simultaneously support -c and -o options?
21757compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21758
21759# Whether or not to add -lc for building shared libraries.
21760build_libtool_need_lc=$archive_cmds_need_lc
21761
21762# Whether or not to disallow shared libs when runtime libs are static.
21763allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21764
21765# Compiler flag to allow reflexive dlopens.
21766export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21767
21768# Compiler flag to generate shared objects directly from archives.
21769whole_archive_flag_spec=$lt_whole_archive_flag_spec
21770
21771# Whether the compiler copes with passing no objects directly.
21772compiler_needs_object=$lt_compiler_needs_object
21773
21774# Create an old-style archive from a shared archive.
21775old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21776
21777# Create a temporary old-style archive to link instead of a shared archive.
21778old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21779
21780# Commands used to build a shared archive.
21781archive_cmds=$lt_archive_cmds
21782archive_expsym_cmds=$lt_archive_expsym_cmds
21783
21784# Commands used to build a loadable module if different from building
21785# a shared archive.
21786module_cmds=$lt_module_cmds
21787module_expsym_cmds=$lt_module_expsym_cmds
21788
21789# Whether we are building with GNU ld or not.
21790with_gnu_ld=$lt_with_gnu_ld
21791
21792# Flag that allows shared libraries with undefined symbols to be built.
21793allow_undefined_flag=$lt_allow_undefined_flag
21794
21795# Flag that enforces no undefined symbols.
21796no_undefined_flag=$lt_no_undefined_flag
21797
21798# Flag to hardcode \$libdir into a binary during linking.
21799# This must work even if \$libdir does not exist
21800hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21801
21802# Whether we need a single "-rpath" flag with a separated argument.
21803hardcode_libdir_separator=$lt_hardcode_libdir_separator
21804
21805# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21806# DIR into the resulting binary.
21807hardcode_direct=$hardcode_direct
21808
21809# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21810# DIR into the resulting binary and the resulting library dependency is
21811# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21812# library is relocated.
21813hardcode_direct_absolute=$hardcode_direct_absolute
21814
21815# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21816# into the resulting binary.
21817hardcode_minus_L=$hardcode_minus_L
21818
21819# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21820# into the resulting binary.
21821hardcode_shlibpath_var=$hardcode_shlibpath_var
21822
21823# Set to "yes" if building a shared library automatically hardcodes DIR
21824# into the library and all subsequent libraries and executables linked
21825# against it.
21826hardcode_automatic=$hardcode_automatic
21827
21828# Set to yes if linker adds runtime paths of dependent libraries
21829# to runtime path list.
21830inherit_rpath=$inherit_rpath
21831
21832# Whether libtool must link a program against all its dependency libraries.
21833link_all_deplibs=$link_all_deplibs
21834
21835# Set to "yes" if exported symbols are required.
21836always_export_symbols=$always_export_symbols
21837
21838# The commands to list exported symbols.
21839export_symbols_cmds=$lt_export_symbols_cmds
21840
21841# Symbols that should not be listed in the preloaded symbols.
21842exclude_expsyms=$lt_exclude_expsyms
21843
21844# Symbols that must always be exported.
21845include_expsyms=$lt_include_expsyms
21846
21847# Commands necessary for linking programs (against libraries) with templates.
21848prelink_cmds=$lt_prelink_cmds
21849
21850# Commands necessary for finishing linking programs.
21851postlink_cmds=$lt_postlink_cmds
21852
21853# Specify filename containing input files.
21854file_list_spec=$lt_file_list_spec
21855
21856# How to hardcode a shared library path into an executable.
21857hardcode_action=$hardcode_action
21858
21859# The directories searched by this compiler when creating a shared library.
21860compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21861
21862# Dependencies to place before and after the objects being linked to
21863# create a shared library.
21864predep_objects=$lt_predep_objects
21865postdep_objects=$lt_postdep_objects
21866predeps=$lt_predeps
21867postdeps=$lt_postdeps
21868
21869# The library search path used internally by the compiler when linking
21870# a shared library.
21871compiler_lib_search_path=$lt_compiler_lib_search_path
21872
21873# ### END LIBTOOL CONFIG
21874
21875_LT_EOF
21876
21877    cat <<'_LT_EOF' >> "$cfgfile"
21878
21879# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21880
21881# func_munge_path_list VARIABLE PATH
21882# -----------------------------------
21883# VARIABLE is name of variable containing _space_ separated list of
21884# directories to be munged by the contents of PATH, which is string
21885# having a format:
21886# "DIR[:DIR]:"
21887#       string "DIR[ DIR]" will be prepended to VARIABLE
21888# ":DIR[:DIR]"
21889#       string "DIR[ DIR]" will be appended to VARIABLE
21890# "DIRP[:DIRP]::[DIRA:]DIRA"
21891#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21892#       "DIRA[ DIRA]" will be appended to VARIABLE
21893# "DIR[:DIR]"
21894#       VARIABLE will be replaced by "DIR[ DIR]"
21895func_munge_path_list ()
21896{
21897    case x$2 in
21898    x)
21899        ;;
21900    *:)
21901        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21902        ;;
21903    x:*)
21904        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21905        ;;
21906    *::*)
21907        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21908        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21909        ;;
21910    *)
21911        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21912        ;;
21913    esac
21914}
21915
21916
21917# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21918func_cc_basename ()
21919{
21920    for cc_temp in $*""; do
21921      case $cc_temp in
21922        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21923        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21924        \-*) ;;
21925        *) break;;
21926      esac
21927    done
21928    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21929}
21930
21931
21932# ### END FUNCTIONS SHARED WITH CONFIGURE
21933
21934_LT_EOF
21935
21936  case $host_os in
21937  aix3*)
21938    cat <<\_LT_EOF >> "$cfgfile"
21939# AIX sometimes has problems with the GCC collect2 program.  For some
21940# reason, if we set the COLLECT_NAMES environment variable, the problems
21941# vanish in a puff of smoke.
21942if test set != "${COLLECT_NAMES+set}"; then
21943  COLLECT_NAMES=
21944  export COLLECT_NAMES
21945fi
21946_LT_EOF
21947    ;;
21948  esac
21949
21950
21951ltmain=$ac_aux_dir/ltmain.sh
21952
21953
21954  # We use sed instead of cat because bash on DJGPP gets confused if
21955  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21956  # text mode, it properly converts lines to CR/LF.  This bash problem
21957  # is reportedly fixed, but why not run on old versions too?
21958  sed '$q' "$ltmain" >> "$cfgfile" \
21959     || (rm -f "$cfgfile"; exit 1)
21960
21961   mv -f "$cfgfile" "$ofile" ||
21962    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21963  chmod +x "$ofile"
21964
21965
21966    cat <<_LT_EOF >> "$ofile"
21967
21968# ### BEGIN LIBTOOL TAG CONFIG: CXX
21969
21970# The linker used to build libraries.
21971LD=$lt_LD_CXX
21972
21973# How to create reloadable object files.
21974reload_flag=$lt_reload_flag_CXX
21975reload_cmds=$lt_reload_cmds_CXX
21976
21977# Commands used to build an old-style archive.
21978old_archive_cmds=$lt_old_archive_cmds_CXX
21979
21980# A language specific compiler.
21981CC=$lt_compiler_CXX
21982
21983# Is the compiler the GNU compiler?
21984with_gcc=$GCC_CXX
21985
21986# Compiler flag to turn off builtin functions.
21987no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21988
21989# Additional compiler flags for building library objects.
21990pic_flag=$lt_lt_prog_compiler_pic_CXX
21991
21992# How to pass a linker flag through the compiler.
21993wl=$lt_lt_prog_compiler_wl_CXX
21994
21995# Compiler flag to prevent dynamic linking.
21996link_static_flag=$lt_lt_prog_compiler_static_CXX
21997
21998# Does compiler simultaneously support -c and -o options?
21999compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22000
22001# Whether or not to add -lc for building shared libraries.
22002build_libtool_need_lc=$archive_cmds_need_lc_CXX
22003
22004# Whether or not to disallow shared libs when runtime libs are static.
22005allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22006
22007# Compiler flag to allow reflexive dlopens.
22008export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22009
22010# Compiler flag to generate shared objects directly from archives.
22011whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22012
22013# Whether the compiler copes with passing no objects directly.
22014compiler_needs_object=$lt_compiler_needs_object_CXX
22015
22016# Create an old-style archive from a shared archive.
22017old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22018
22019# Create a temporary old-style archive to link instead of a shared archive.
22020old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22021
22022# Commands used to build a shared archive.
22023archive_cmds=$lt_archive_cmds_CXX
22024archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22025
22026# Commands used to build a loadable module if different from building
22027# a shared archive.
22028module_cmds=$lt_module_cmds_CXX
22029module_expsym_cmds=$lt_module_expsym_cmds_CXX
22030
22031# Whether we are building with GNU ld or not.
22032with_gnu_ld=$lt_with_gnu_ld_CXX
22033
22034# Flag that allows shared libraries with undefined symbols to be built.
22035allow_undefined_flag=$lt_allow_undefined_flag_CXX
22036
22037# Flag that enforces no undefined symbols.
22038no_undefined_flag=$lt_no_undefined_flag_CXX
22039
22040# Flag to hardcode \$libdir into a binary during linking.
22041# This must work even if \$libdir does not exist
22042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22043
22044# Whether we need a single "-rpath" flag with a separated argument.
22045hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22046
22047# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22048# DIR into the resulting binary.
22049hardcode_direct=$hardcode_direct_CXX
22050
22051# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22052# DIR into the resulting binary and the resulting library dependency is
22053# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22054# library is relocated.
22055hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22056
22057# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22058# into the resulting binary.
22059hardcode_minus_L=$hardcode_minus_L_CXX
22060
22061# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22062# into the resulting binary.
22063hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22064
22065# Set to "yes" if building a shared library automatically hardcodes DIR
22066# into the library and all subsequent libraries and executables linked
22067# against it.
22068hardcode_automatic=$hardcode_automatic_CXX
22069
22070# Set to yes if linker adds runtime paths of dependent libraries
22071# to runtime path list.
22072inherit_rpath=$inherit_rpath_CXX
22073
22074# Whether libtool must link a program against all its dependency libraries.
22075link_all_deplibs=$link_all_deplibs_CXX
22076
22077# Set to "yes" if exported symbols are required.
22078always_export_symbols=$always_export_symbols_CXX
22079
22080# The commands to list exported symbols.
22081export_symbols_cmds=$lt_export_symbols_cmds_CXX
22082
22083# Symbols that should not be listed in the preloaded symbols.
22084exclude_expsyms=$lt_exclude_expsyms_CXX
22085
22086# Symbols that must always be exported.
22087include_expsyms=$lt_include_expsyms_CXX
22088
22089# Commands necessary for linking programs (against libraries) with templates.
22090prelink_cmds=$lt_prelink_cmds_CXX
22091
22092# Commands necessary for finishing linking programs.
22093postlink_cmds=$lt_postlink_cmds_CXX
22094
22095# Specify filename containing input files.
22096file_list_spec=$lt_file_list_spec_CXX
22097
22098# How to hardcode a shared library path into an executable.
22099hardcode_action=$hardcode_action_CXX
22100
22101# The directories searched by this compiler when creating a shared library.
22102compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22103
22104# Dependencies to place before and after the objects being linked to
22105# create a shared library.
22106predep_objects=$lt_predep_objects_CXX
22107postdep_objects=$lt_postdep_objects_CXX
22108predeps=$lt_predeps_CXX
22109postdeps=$lt_postdeps_CXX
22110
22111# The library search path used internally by the compiler when linking
22112# a shared library.
22113compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22114
22115# ### END LIBTOOL TAG CONFIG: CXX
22116_LT_EOF
22117
22118 ;;
22119
22120  esac
22121done # for ac_tag
22122
22123
22124as_fn_exit 0
22125_ACEOF
22126ac_clean_files=$ac_clean_files_save
22127
22128test $ac_write_fail = 0 ||
22129  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22130
22131
22132# configure is writing to config.log, and then calls config.status.
22133# config.status does its own redirection, appending to config.log.
22134# Unfortunately, on DOS this fails, as config.log is still kept open
22135# by configure, so config.status won't be able to write to it; its
22136# output is simply discarded.  So we exec the FD to /dev/null,
22137# effectively closing config.log, so it can be properly (re)opened and
22138# appended to by config.status.  When coming back to configure, we
22139# need to make the FD available again.
22140if test "$no_create" != yes; then
22141  ac_cs_success=:
22142  ac_config_status_args=
22143  test "$silent" = yes &&
22144    ac_config_status_args="$ac_config_status_args --quiet"
22145  exec 5>/dev/null
22146  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22147  exec 5>>config.log
22148  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22149  # would make configure fail if this is the last instruction.
22150  $ac_cs_success || as_fn_exit 1
22151fi
22152if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22153  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22154$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22155fi
22156
22157
22158echo ""
22159if test -z "$BINDINGS" ; then
22160  echo "*** Not found the required tools for building bindings for any"
22161  echo "*** supported language!"
22162  echo "***"
22163  echo "*** You may need to install -dev or -devel packages for the languages"
22164  echo "*** you want to build bindings for."
22165  echo "***"
22166  echo "*** For details of how to point configure at tools not on PATH, see:"
22167  echo "***     ./configure --help"
22168else
22169  echo "*** Building bindings for languages:" $BINDINGS
22170fi
22171echo ""
22172if test "$COMPAT_VERSION" != "$XAPIAN_VERSION" ; then
22173  release_series=`echo "$COMPAT_VERSION"|sed 's/[0-9][0-9]*$//'`
22174  case $XAPIAN_VERSION in
22175  $release_series*) ;;
22176  *)
22177    as_fn_error $? "Xapian library is version ${XAPIAN_VERSION-<0.8.2} which is from a different release series to bindings $PACKAGE_VERSION, so they aren't compatible." "$LINENO" 5
22178    ;;
22179  esac
22180    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xapian library is version ${XAPIAN_VERSION-<0.8.2} but the bindings are version $PACKAGE_VERSION - we strongly recommend using matching versions." >&5
22181$as_echo "$as_me: WARNING: Xapian library is version ${XAPIAN_VERSION-<0.8.2} but the bindings are version $PACKAGE_VERSION - we strongly recommend using matching versions." >&2;}
22182fi
22183