1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xapian-omega 1.2.25.
4#
5# Report bugs to <https://xapian.org/bugs>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://xapian.org/bugs about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='xapian-omega'
572PACKAGE_TARNAME='xapian-omega'
573PACKAGE_VERSION='1.2.25'
574PACKAGE_STRING='xapian-omega 1.2.25'
575PACKAGE_BUGREPORT='https://xapian.org/bugs'
576PACKAGE_URL=''
577
578ac_unique_file="omega.cc"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619AUTOM4TE
620QUIET
621AM_CXXFLAGS
622PCRE_LIBS
623PCRE_CFLAGS
624PKG_CONFIG
625PCRE_CONFIG
626RST2HTML
627HELP2MAN
628PERL
629ICONV_LDFLAGS
630NEED_MKDTEMP_FALSE
631NEED_MKDTEMP_TRUE
632MAGIC_LIBS
633MAINTAINER_NO_DOCS_FALSE
634MAINTAINER_NO_DOCS_TRUE
635DOCUMENTATION_RULES_FALSE
636DOCUMENTATION_RULES_TRUE
637MAINT
638MAINTAINER_MODE_FALSE
639MAINTAINER_MODE_TRUE
640XAPIAN_VERSION
641XAPIAN_LIBS
642XAPIAN_CXXFLAGS
643XAPIAN_CONFIG
644NO_INSTALL
645CXXCPP
646am__fastdepCXX_FALSE
647am__fastdepCXX_TRUE
648CXXDEPMODE
649ac_ct_CXX
650CXXFLAGS
651CXX
652NO_UNDEFINED
653CPP
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672EGREP
673GREP
674SED
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678am__nodep
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__quote
683am__include
684DEPDIR
685OBJEXT
686EXEEXT
687ac_ct_CC
688CPPFLAGS
689LDFLAGS
690CFLAGS
691CC
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700LIBTOOL
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_aix_soname
770enable_dependency_tracking
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_maintainer_mode
775enable_documentation
776with_iconv
777enable_quiet
778enable_largefile
779'
780      ac_precious_vars='build_alias
781host_alias
782target_alias
783CC
784CFLAGS
785LDFLAGS
786LIBS
787CPPFLAGS
788LT_SYS_LIBRARY_PATH
789CPP
790CXX
791CXXFLAGS
792CCC
793CXXCPP
794XAPIAN_CONFIG
795PCRE_CONFIG
796PKG_CONFIG'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
846
847ac_prev=
848ac_dashdash=
849for ac_option
850do
851  # If the previous option needs an argument, assign it.
852  if test -n "$ac_prev"; then
853    eval $ac_prev=\$ac_option
854    ac_prev=
855    continue
856  fi
857
858  case $ac_option in
859  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860  *=)   ac_optarg= ;;
861  *)    ac_optarg=yes ;;
862  esac
863
864  # Accept the important Cygnus configure options, so we can diagnose typos.
865
866  case $ac_dashdash$ac_option in
867  --)
868    ac_dashdash=yes ;;
869
870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
871    ac_prev=bindir ;;
872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873    bindir=$ac_optarg ;;
874
875  -build | --build | --buil | --bui | --bu)
876    ac_prev=build_alias ;;
877  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878    build_alias=$ac_optarg ;;
879
880  -cache-file | --cache-file | --cache-fil | --cache-fi \
881  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882    ac_prev=cache_file ;;
883  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885    cache_file=$ac_optarg ;;
886
887  --config-cache | -C)
888    cache_file=config.cache ;;
889
890  -datadir | --datadir | --datadi | --datad)
891    ac_prev=datadir ;;
892  -datadir=* | --datadir=* | --datadi=* | --datad=*)
893    datadir=$ac_optarg ;;
894
895  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896  | --dataroo | --dataro | --datar)
897    ac_prev=datarootdir ;;
898  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900    datarootdir=$ac_optarg ;;
901
902  -disable-* | --disable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=no ;;
917
918  -docdir | --docdir | --docdi | --doc | --do)
919    ac_prev=docdir ;;
920  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921    docdir=$ac_optarg ;;
922
923  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924    ac_prev=dvidir ;;
925  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926    dvidir=$ac_optarg ;;
927
928  -enable-* | --enable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: $ac_useropt"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=\$ac_optarg ;;
943
944  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946  | --exec | --exe | --ex)
947    ac_prev=exec_prefix ;;
948  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950  | --exec=* | --exe=* | --ex=*)
951    exec_prefix=$ac_optarg ;;
952
953  -gas | --gas | --ga | --g)
954    # Obsolete; use --with-gas.
955    with_gas=yes ;;
956
957  -help | --help | --hel | --he | -h)
958    ac_init_help=long ;;
959  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960    ac_init_help=recursive ;;
961  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962    ac_init_help=short ;;
963
964  -host | --host | --hos | --ho)
965    ac_prev=host_alias ;;
966  -host=* | --host=* | --hos=* | --ho=*)
967    host_alias=$ac_optarg ;;
968
969  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970    ac_prev=htmldir ;;
971  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972  | --ht=*)
973    htmldir=$ac_optarg ;;
974
975  -includedir | --includedir | --includedi | --included | --include \
976  | --includ | --inclu | --incl | --inc)
977    ac_prev=includedir ;;
978  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979  | --includ=* | --inclu=* | --incl=* | --inc=*)
980    includedir=$ac_optarg ;;
981
982  -infodir | --infodir | --infodi | --infod | --info | --inf)
983    ac_prev=infodir ;;
984  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985    infodir=$ac_optarg ;;
986
987  -libdir | --libdir | --libdi | --libd)
988    ac_prev=libdir ;;
989  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990    libdir=$ac_optarg ;;
991
992  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993  | --libexe | --libex | --libe)
994    ac_prev=libexecdir ;;
995  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996  | --libexe=* | --libex=* | --libe=*)
997    libexecdir=$ac_optarg ;;
998
999  -localedir | --localedir | --localedi | --localed | --locale)
1000    ac_prev=localedir ;;
1001  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002    localedir=$ac_optarg ;;
1003
1004  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005  | --localstate | --localstat | --localsta | --localst | --locals)
1006    ac_prev=localstatedir ;;
1007  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009    localstatedir=$ac_optarg ;;
1010
1011  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012    ac_prev=mandir ;;
1013  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014    mandir=$ac_optarg ;;
1015
1016  -nfp | --nfp | --nf)
1017    # Obsolete; use --without-fp.
1018    with_fp=no ;;
1019
1020  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021  | --no-cr | --no-c | -n)
1022    no_create=yes ;;
1023
1024  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026    no_recursion=yes ;;
1027
1028  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030  | --oldin | --oldi | --old | --ol | --o)
1031    ac_prev=oldincludedir ;;
1032  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035    oldincludedir=$ac_optarg ;;
1036
1037  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038    ac_prev=prefix ;;
1039  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040    prefix=$ac_optarg ;;
1041
1042  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043  | --program-pre | --program-pr | --program-p)
1044    ac_prev=program_prefix ;;
1045  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047    program_prefix=$ac_optarg ;;
1048
1049  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050  | --program-suf | --program-su | --program-s)
1051    ac_prev=program_suffix ;;
1052  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054    program_suffix=$ac_optarg ;;
1055
1056  -program-transform-name | --program-transform-name \
1057  | --program-transform-nam | --program-transform-na \
1058  | --program-transform-n | --program-transform- \
1059  | --program-transform | --program-transfor \
1060  | --program-transfo | --program-transf \
1061  | --program-trans | --program-tran \
1062  | --progr-tra | --program-tr | --program-t)
1063    ac_prev=program_transform_name ;;
1064  -program-transform-name=* | --program-transform-name=* \
1065  | --program-transform-nam=* | --program-transform-na=* \
1066  | --program-transform-n=* | --program-transform-=* \
1067  | --program-transform=* | --program-transfor=* \
1068  | --program-transfo=* | --program-transf=* \
1069  | --program-trans=* | --program-tran=* \
1070  | --progr-tra=* | --program-tr=* | --program-t=*)
1071    program_transform_name=$ac_optarg ;;
1072
1073  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074    ac_prev=pdfdir ;;
1075  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076    pdfdir=$ac_optarg ;;
1077
1078  -psdir | --psdir | --psdi | --psd | --ps)
1079    ac_prev=psdir ;;
1080  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081    psdir=$ac_optarg ;;
1082
1083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084  | -silent | --silent | --silen | --sile | --sil)
1085    silent=yes ;;
1086
1087  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088    ac_prev=sbindir ;;
1089  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090  | --sbi=* | --sb=*)
1091    sbindir=$ac_optarg ;;
1092
1093  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095  | --sharedst | --shareds | --shared | --share | --shar \
1096  | --sha | --sh)
1097    ac_prev=sharedstatedir ;;
1098  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101  | --sha=* | --sh=*)
1102    sharedstatedir=$ac_optarg ;;
1103
1104  -site | --site | --sit)
1105    ac_prev=site ;;
1106  -site=* | --site=* | --sit=*)
1107    site=$ac_optarg ;;
1108
1109  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110    ac_prev=srcdir ;;
1111  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112    srcdir=$ac_optarg ;;
1113
1114  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115  | --syscon | --sysco | --sysc | --sys | --sy)
1116    ac_prev=sysconfdir ;;
1117  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119    sysconfdir=$ac_optarg ;;
1120
1121  -target | --target | --targe | --targ | --tar | --ta | --t)
1122    ac_prev=target_alias ;;
1123  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124    target_alias=$ac_optarg ;;
1125
1126  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127    verbose=yes ;;
1128
1129  -version | --version | --versio | --versi | --vers | -V)
1130    ac_init_version=: ;;
1131
1132  -with-* | --with-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=\$ac_optarg ;;
1147
1148  -without-* | --without-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=no ;;
1163
1164  --x)
1165    # Obsolete; use --with-x.
1166    with_x=yes ;;
1167
1168  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169  | --x-incl | --x-inc | --x-in | --x-i)
1170    ac_prev=x_includes ;;
1171  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173    x_includes=$ac_optarg ;;
1174
1175  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177    ac_prev=x_libraries ;;
1178  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180    x_libraries=$ac_optarg ;;
1181
1182  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
1184    ;;
1185
1186  *=*)
1187    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188    # Reject names that are not valid shell variable names.
1189    case $ac_envvar in #(
1190      '' | [0-9]* | *[!_$as_cr_alnum]* )
1191      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192    esac
1193    eval $ac_envvar=\$ac_optarg
1194    export $ac_envvar ;;
1195
1196  *)
1197    # FIXME: should be removed in autoconf 3.0.
1198    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202    ;;
1203
1204  esac
1205done
1206
1207if test -n "$ac_prev"; then
1208  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209  as_fn_error $? "missing argument to $ac_option"
1210fi
1211
1212if test -n "$ac_unrecognized_opts"; then
1213  case $enable_option_checking in
1214    no) ;;
1215    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217  esac
1218fi
1219
1220# Check all directory arguments for consistency.
1221for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222		datadir sysconfdir sharedstatedir localstatedir includedir \
1223		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224		libdir localedir mandir
1225do
1226  eval ac_val=\$$ac_var
1227  # Remove trailing slashes.
1228  case $ac_val in
1229    */ )
1230      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231      eval $ac_var=\$ac_val;;
1232  esac
1233  # Be sure to have absolute directory names.
1234  case $ac_val in
1235    [\\/$]* | ?:[\\/]* )  continue;;
1236    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237  esac
1238  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250  if test "x$build_alias" = x; then
1251    cross_compiling=maybe
1252    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1253    If a cross compiler is detected then cross compile mode will be used" >&2
1254  elif test "x$build_alias" != "x$host_alias"; then
1255    cross_compiling=yes
1256  fi
1257fi
1258
1259ac_tool_prefix=
1260test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262test "$silent" = yes && exec 6>/dev/null
1263
1264
1265ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266ac_ls_di=`ls -di .` &&
1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268  as_fn_error $? "working directory cannot be determined"
1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270  as_fn_error $? "pwd does not report name of working directory"
1271
1272
1273# Find the source files, if location was not specified.
1274if test -z "$srcdir"; then
1275  ac_srcdir_defaulted=yes
1276  # Try the directory containing this script, then the parent directory.
1277  ac_confdir=`$as_dirname -- "$as_myself" ||
1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279	 X"$as_myself" : 'X\(//\)[^/]' \| \
1280	 X"$as_myself" : 'X\(//\)$' \| \
1281	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282$as_echo X"$as_myself" |
1283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)[^/].*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\).*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  s/.*/./; q'`
1300  srcdir=$ac_confdir
1301  if test ! -r "$srcdir/$ac_unique_file"; then
1302    srcdir=..
1303  fi
1304else
1305  ac_srcdir_defaulted=no
1306fi
1307if test ! -r "$srcdir/$ac_unique_file"; then
1308  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310fi
1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312ac_abs_confdir=`(
1313	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314	pwd)`
1315# When building in place, set srcdir=.
1316if test "$ac_abs_confdir" = "$ac_pwd"; then
1317  srcdir=.
1318fi
1319# Remove unnecessary trailing slashes from srcdir.
1320# Double slashes in file names in object file debugging info
1321# mess up M-x gdb in Emacs.
1322case $srcdir in
1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324esac
1325for ac_var in $ac_precious_vars; do
1326  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_env_${ac_var}_value=\$${ac_var}
1328  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330done
1331
1332#
1333# Report the --help message.
1334#
1335if test "$ac_init_help" = "long"; then
1336  # Omit some internal or obsolete options to make the list less imposing.
1337  # This message is too long to be a string in the A/UX 3.1 sh.
1338  cat <<_ACEOF
1339\`configure' configures xapian-omega 1.2.25 to adapt to many kinds of systems.
1340
1341Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344VAR=VALUE.  See below for descriptions of some of the useful variables.
1345
1346Defaults for the options are specified in brackets.
1347
1348Configuration:
1349  -h, --help              display this help and exit
1350      --help=short        display options specific to this package
1351      --help=recursive    display the short help of all the included packages
1352  -V, --version           display version information and exit
1353  -q, --quiet, --silent   do not print \`checking ...' messages
1354      --cache-file=FILE   cache test results in FILE [disabled]
1355  -C, --config-cache      alias for \`--cache-file=config.cache'
1356  -n, --no-create         do not create output files
1357      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1358
1359Installation directories:
1360  --prefix=PREFIX         install architecture-independent files in PREFIX
1361                          [$ac_default_prefix]
1362  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1363                          [PREFIX]
1364
1365By default, \`make install' will install all the files in
1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1367an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368for instance \`--prefix=\$HOME'.
1369
1370For better control, use the options below.
1371
1372Fine tuning of the installation directories:
1373  --bindir=DIR            user executables [EPREFIX/bin]
1374  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1375  --libexecdir=DIR        program executables [EPREFIX/libexec]
1376  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1377  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1378  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1379  --libdir=DIR            object code libraries [EPREFIX/lib]
1380  --includedir=DIR        C header files [PREFIX/include]
1381  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1382  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1383  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1384  --infodir=DIR           info documentation [DATAROOTDIR/info]
1385  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1386  --mandir=DIR            man documentation [DATAROOTDIR/man]
1387  --docdir=DIR            documentation root [DATAROOTDIR/doc/xapian-omega]
1388  --htmldir=DIR           html documentation [DOCDIR]
1389  --dvidir=DIR            dvi documentation [DOCDIR]
1390  --pdfdir=DIR            pdf documentation [DOCDIR]
1391  --psdir=DIR             ps documentation [DOCDIR]
1392_ACEOF
1393
1394  cat <<\_ACEOF
1395
1396Program names:
1397  --program-prefix=PREFIX            prepend PREFIX to installed program names
1398  --program-suffix=SUFFIX            append SUFFIX to installed program names
1399  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1400
1401System types:
1402  --build=BUILD     configure for building on BUILD [guessed]
1403  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404_ACEOF
1405fi
1406
1407if test -n "$ac_init_help"; then
1408  case $ac_init_help in
1409     short | recursive ) echo "Configuration of xapian-omega 1.2.25:";;
1410   esac
1411  cat <<\_ACEOF
1412
1413Optional Features:
1414  --disable-option-checking  ignore unrecognized --enable/--with options
1415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417  --enable-shared[=PKGS]  build shared libraries [default=yes]
1418  --enable-static[=PKGS]  build static libraries [default=yes]
1419  --enable-fast-install[=PKGS]
1420                          optimize for fast installation [default=yes]
1421  --disable-dependency-tracking  speeds up one-time build
1422  --enable-dependency-tracking   do not reject slow dependency extractors
1423  --disable-libtool-lock  avoid locking (might break parallel builds)
1424  --enable-maintainer-mode  enable make rules and dependencies not useful
1425			  (and sometimes confusing) to the casual installer
1426  --enable-documentation  enable make rules to rebuild documentation
1427                          [default=maintainer-mode]
1428  --enable-quiet          Enable quiet building [default=no]
1429  --disable-largefile     omit support for large files
1430
1431Optional Packages:
1432  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1435                          both]
1436  --with-aix-soname=aix|svr4|both
1437                          shared library versioning (aka "SONAME") variant to
1438                          provide on AIX, [default=aix].
1439  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1440  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1441                          compiler's sysroot if not specified).
1442  --with-iconv            force use of iconv (error if not found)
1443    --without-iconv         don't use iconv
1444
1445Some influential environment variables:
1446  CC          C compiler command
1447  CFLAGS      C compiler flags
1448  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449              nonstandard directory <lib dir>
1450  LIBS        libraries to pass to the linker, e.g. -l<library>
1451  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452              you have headers in a nonstandard directory <include dir>
1453  LT_SYS_LIBRARY_PATH
1454              User-defined run-time library search path.
1455  CPP         C preprocessor
1456  CXX         C++ compiler command
1457  CXXFLAGS    C++ compiler flags
1458  CXXCPP      C++ preprocessor
1459  XAPIAN_CONFIG
1460              Location of xapian-config (default: xapian-config on PATH)
1461  PCRE_CONFIG Location of pcre-config
1462  PKG_CONFIG  Location of pkg-config
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to <https://xapian.org/bugs>.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473  # If there are subdirs, report their specific --help.
1474  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475    test -d "$ac_dir" ||
1476      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477      continue
1478    ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484  # A ".." for each directory in $ac_dir_suffix.
1485  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486  case $ac_top_builddir_sub in
1487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489  esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497  .)  # We are building in place.
1498    ac_srcdir=.
1499    ac_top_srcdir=$ac_top_builddir_sub
1500    ac_abs_top_srcdir=$ac_pwd ;;
1501  [\\/]* | ?:[\\/]* )  # Absolute name.
1502    ac_srcdir=$srcdir$ac_dir_suffix;
1503    ac_top_srcdir=$srcdir
1504    ac_abs_top_srcdir=$srcdir ;;
1505  *) # Relative name.
1506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507    ac_top_srcdir=$ac_top_build_prefix$srcdir
1508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512    cd "$ac_dir" || { ac_status=$?; continue; }
1513    # Check for guested configure.
1514    if test -f "$ac_srcdir/configure.gnu"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517    elif test -f "$ac_srcdir/configure"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure" --help=recursive
1520    else
1521      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522    fi || ac_status=$?
1523    cd "$ac_pwd" || { ac_status=$?; break; }
1524  done
1525fi
1526
1527test -n "$ac_init_help" && exit $ac_status
1528if $ac_init_version; then
1529  cat <<\_ACEOF
1530xapian-omega configure 1.2.25
1531generated by GNU Autoconf 2.68
1532
1533Copyright (C) 2010 Free Software Foundation, Inc.
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
1537  exit
1538fi
1539
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
1543
1544# ac_fn_c_try_compile LINENO
1545# --------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_compile ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  rm -f conftest.$ac_objext
1551  if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554  *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558  (eval "$ac_compile") 2>conftest.err
1559  ac_status=$?
1560  if test -s conftest.err; then
1561    grep -v '^ *+' conftest.err >conftest.er1
1562    cat conftest.er1 >&5
1563    mv -f conftest.er1 conftest.err
1564  fi
1565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566  test $ac_status = 0; } && {
1567	 test -z "$ac_c_werror_flag" ||
1568	 test ! -s conftest.err
1569       } && test -s conftest.$ac_objext; then :
1570  ac_retval=0
1571else
1572  $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575	ac_retval=1
1576fi
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_compile
1581
1582# ac_fn_c_try_link LINENO
1583# -----------------------
1584# Try to link conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_link ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext conftest$ac_exeext
1589  if { { ac_try="$ac_link"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596  (eval "$ac_link") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest$ac_exeext && {
1608	 test "$cross_compiling" = yes ||
1609	 $as_test_x conftest$ac_exeext
1610       }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616	ac_retval=1
1617fi
1618  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620  # interfere with the next link command; also delete a directory that is
1621  # left behind by Apple's compiler.  We do this before executing the actions.
1622  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624  as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_link
1627
1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists and can be compiled using the include files in
1631# INCLUDES, setting the cache variable VAR accordingly.
1632ac_fn_c_check_header_compile ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636$as_echo_n "checking for $2... " >&6; }
1637if eval \${$3+:} false; then :
1638  $as_echo_n "(cached) " >&6
1639else
1640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642$4
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646  eval "$3=yes"
1647else
1648  eval "$3=no"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657} # ac_fn_c_check_header_compile
1658
1659# ac_fn_c_try_cpp LINENO
1660# ----------------------
1661# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_cpp ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  if { { ac_try="$ac_cpp conftest.$ac_ext"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } > conftest.i && {
1681	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689    ac_retval=1
1690fi
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_cpp
1695
1696# ac_fn_c_try_run LINENO
1697# ----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699# that executables *can* be run.
1700ac_fn_c_try_run ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_link") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714  { { case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_try") 2>&5
1721  ac_status=$?
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; }; }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: program exited with status $ac_status" >&5
1727       $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730       ac_retval=$ac_status
1731fi
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_run
1737
1738# ac_fn_c_check_func LINENO FUNC VAR
1739# ----------------------------------
1740# Tests whether FUNC exists, setting the cache variable VAR accordingly
1741ac_fn_c_check_func ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval \${$3+:} false; then :
1747  $as_echo_n "(cached) " >&6
1748else
1749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1753#define $2 innocuous_$2
1754
1755/* System header to define __stub macros and hopefully few prototypes,
1756    which can conflict with char $2 (); below.
1757    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758    <limits.h> exists even on freestanding compilers.  */
1759
1760#ifdef __STDC__
1761# include <limits.h>
1762#else
1763# include <assert.h>
1764#endif
1765
1766#undef $2
1767
1768/* Override any GCC internal prototype to avoid an error.
1769   Use char because int might match the return type of a GCC
1770   builtin and then its argument prototype would still apply.  */
1771#ifdef __cplusplus
1772extern "C"
1773#endif
1774char $2 ();
1775/* The GNU C library defines this for functions which it implements
1776    to always fail with ENOSYS.  Some functions are actually named
1777    something starting with __ and the normal name is an alias.  */
1778#if defined __stub_$2 || defined __stub___$2
1779choke me
1780#endif
1781
1782int
1783main ()
1784{
1785return $2 ();
1786  ;
1787  return 0;
1788}
1789_ACEOF
1790if ac_fn_c_try_link "$LINENO"; then :
1791  eval "$3=yes"
1792else
1793  eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext \
1796    conftest$ac_exeext conftest.$ac_ext
1797fi
1798eval ac_res=\$$3
1799	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803} # ac_fn_c_check_func
1804
1805# ac_fn_cxx_try_compile LINENO
1806# ----------------------------
1807# Try to compile conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_cxx_try_compile ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  rm -f conftest.$ac_objext
1812  if { { ac_try="$ac_compile"
1813case "(($ac_try" in
1814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815  *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
1819  (eval "$ac_compile") 2>conftest.err
1820  ac_status=$?
1821  if test -s conftest.err; then
1822    grep -v '^ *+' conftest.err >conftest.er1
1823    cat conftest.er1 >&5
1824    mv -f conftest.er1 conftest.err
1825  fi
1826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827  test $ac_status = 0; } && {
1828	 test -z "$ac_cxx_werror_flag" ||
1829	 test ! -s conftest.err
1830       } && test -s conftest.$ac_objext; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836	ac_retval=1
1837fi
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839  as_fn_set_status $ac_retval
1840
1841} # ac_fn_cxx_try_compile
1842
1843# ac_fn_cxx_try_cpp LINENO
1844# ------------------------
1845# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846ac_fn_cxx_try_cpp ()
1847{
1848  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849  if { { ac_try="$ac_cpp conftest.$ac_ext"
1850case "(($ac_try" in
1851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852  *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857  ac_status=$?
1858  if test -s conftest.err; then
1859    grep -v '^ *+' conftest.err >conftest.er1
1860    cat conftest.er1 >&5
1861    mv -f conftest.er1 conftest.err
1862  fi
1863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864  test $ac_status = 0; } > conftest.i && {
1865	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1866	 test ! -s conftest.err
1867       }; then :
1868  ac_retval=0
1869else
1870  $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873    ac_retval=1
1874fi
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876  as_fn_set_status $ac_retval
1877
1878} # ac_fn_cxx_try_cpp
1879
1880# ac_fn_cxx_try_link LINENO
1881# -------------------------
1882# Try to link conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_cxx_try_link ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  rm -f conftest.$ac_objext conftest$ac_exeext
1887  if { { ac_try="$ac_link"
1888case "(($ac_try" in
1889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890  *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894  (eval "$ac_link") 2>conftest.err
1895  ac_status=$?
1896  if test -s conftest.err; then
1897    grep -v '^ *+' conftest.err >conftest.er1
1898    cat conftest.er1 >&5
1899    mv -f conftest.er1 conftest.err
1900  fi
1901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902  test $ac_status = 0; } && {
1903	 test -z "$ac_cxx_werror_flag" ||
1904	 test ! -s conftest.err
1905       } && test -s conftest$ac_exeext && {
1906	 test "$cross_compiling" = yes ||
1907	 $as_test_x conftest$ac_exeext
1908       }; then :
1909  ac_retval=0
1910else
1911  $as_echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914	ac_retval=1
1915fi
1916  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918  # interfere with the next link command; also delete a directory that is
1919  # left behind by Apple's compiler.  We do this before executing the actions.
1920  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922  as_fn_set_status $ac_retval
1923
1924} # ac_fn_cxx_try_link
1925
1926# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1927# ---------------------------------------------------------
1928# Tests whether HEADER exists and can be compiled using the include files in
1929# INCLUDES, setting the cache variable VAR accordingly.
1930ac_fn_cxx_check_header_compile ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934$as_echo_n "checking for $2... " >&6; }
1935if eval \${$3+:} false; then :
1936  $as_echo_n "(cached) " >&6
1937else
1938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h.  */
1940$4
1941#include <$2>
1942_ACEOF
1943if ac_fn_cxx_try_compile "$LINENO"; then :
1944  eval "$3=yes"
1945else
1946  eval "$3=no"
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949fi
1950eval ac_res=\$$3
1951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955} # ac_fn_cxx_check_header_compile
1956
1957# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1958# ---------------------------------------------------------
1959# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1960# the include files in INCLUDES and setting the cache variable VAR
1961# accordingly.
1962ac_fn_cxx_check_header_mongrel ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  if eval \${$3+:} false; then :
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974else
1975  # Is the header compilable?
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1977$as_echo_n "checking $2 usability... " >&6; }
1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h.  */
1980$4
1981#include <$2>
1982_ACEOF
1983if ac_fn_cxx_try_compile "$LINENO"; then :
1984  ac_header_compiler=yes
1985else
1986  ac_header_compiler=no
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1990$as_echo "$ac_header_compiler" >&6; }
1991
1992# Is the header present?
1993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1994$as_echo_n "checking $2 presence... " >&6; }
1995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h.  */
1997#include <$2>
1998_ACEOF
1999if ac_fn_cxx_try_cpp "$LINENO"; then :
2000  ac_header_preproc=yes
2001else
2002  ac_header_preproc=no
2003fi
2004rm -f conftest.err conftest.i conftest.$ac_ext
2005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2006$as_echo "$ac_header_preproc" >&6; }
2007
2008# So?  What about this header?
2009case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2010  yes:no: )
2011    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2012$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015    ;;
2016  no:yes:* )
2017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2018$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2020$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2022$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2024$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027( $as_echo "## -------------------------------------- ##
2028## Report this to https://xapian.org/bugs ##
2029## -------------------------------------- ##"
2030     ) | sed "s/^/$as_me: WARNING:     /" >&2
2031    ;;
2032esac
2033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
2035if eval \${$3+:} false; then :
2036  $as_echo_n "(cached) " >&6
2037else
2038  eval "$3=\$ac_header_compiler"
2039fi
2040eval ac_res=\$$3
2041	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043fi
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046} # ac_fn_cxx_check_header_mongrel
2047
2048# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2049# ---------------------------------------------
2050# Tests whether TYPE exists after having included INCLUDES, setting cache
2051# variable VAR accordingly.
2052ac_fn_cxx_check_type ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056$as_echo_n "checking for $2... " >&6; }
2057if eval \${$3+:} false; then :
2058  $as_echo_n "(cached) " >&6
2059else
2060  eval "$3=no"
2061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h.  */
2063$4
2064int
2065main ()
2066{
2067if (sizeof ($2))
2068	 return 0;
2069  ;
2070  return 0;
2071}
2072_ACEOF
2073if ac_fn_cxx_try_compile "$LINENO"; then :
2074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076$4
2077int
2078main ()
2079{
2080if (sizeof (($2)))
2081	    return 0;
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_cxx_try_compile "$LINENO"; then :
2087
2088else
2089  eval "$3=yes"
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095eval ac_res=\$$3
2096	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100} # ac_fn_cxx_check_type
2101
2102# ac_fn_cxx_check_func LINENO FUNC VAR
2103# ------------------------------------
2104# Tests whether FUNC exists, setting the cache variable VAR accordingly
2105ac_fn_cxx_check_func ()
2106{
2107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109$as_echo_n "checking for $2... " >&6; }
2110if eval \${$3+:} false; then :
2111  $as_echo_n "(cached) " >&6
2112else
2113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2116   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2117#define $2 innocuous_$2
2118
2119/* System header to define __stub macros and hopefully few prototypes,
2120    which can conflict with char $2 (); below.
2121    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2122    <limits.h> exists even on freestanding compilers.  */
2123
2124#ifdef __STDC__
2125# include <limits.h>
2126#else
2127# include <assert.h>
2128#endif
2129
2130#undef $2
2131
2132/* Override any GCC internal prototype to avoid an error.
2133   Use char because int might match the return type of a GCC
2134   builtin and then its argument prototype would still apply.  */
2135#ifdef __cplusplus
2136extern "C"
2137#endif
2138char $2 ();
2139/* The GNU C library defines this for functions which it implements
2140    to always fail with ENOSYS.  Some functions are actually named
2141    something starting with __ and the normal name is an alias.  */
2142#if defined __stub_$2 || defined __stub___$2
2143choke me
2144#endif
2145
2146int
2147main ()
2148{
2149return $2 ();
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154if ac_fn_cxx_try_link "$LINENO"; then :
2155  eval "$3=yes"
2156else
2157  eval "$3=no"
2158fi
2159rm -f core conftest.err conftest.$ac_objext \
2160    conftest$ac_exeext conftest.$ac_ext
2161fi
2162eval ac_res=\$$3
2163	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167} # ac_fn_cxx_check_func
2168
2169# ac_fn_cxx_try_run LINENO
2170# ------------------------
2171# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172# that executables *can* be run.
2173ac_fn_cxx_try_run ()
2174{
2175  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176  if { { ac_try="$ac_link"
2177case "(($ac_try" in
2178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179  *) ac_try_echo=$ac_try;;
2180esac
2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182$as_echo "$ac_try_echo"; } >&5
2183  (eval "$ac_link") 2>&5
2184  ac_status=$?
2185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187  { { case "(($ac_try" in
2188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189  *) ac_try_echo=$ac_try;;
2190esac
2191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192$as_echo "$ac_try_echo"; } >&5
2193  (eval "$ac_try") 2>&5
2194  ac_status=$?
2195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196  test $ac_status = 0; }; }; then :
2197  ac_retval=0
2198else
2199  $as_echo "$as_me: program exited with status $ac_status" >&5
2200       $as_echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203       ac_retval=$ac_status
2204fi
2205  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207  as_fn_set_status $ac_retval
2208
2209} # ac_fn_cxx_try_run
2210cat >config.log <<_ACEOF
2211This file contains any messages produced by compilers while
2212running configure, to aid debugging if configure makes a mistake.
2213
2214It was created by xapian-omega $as_me 1.2.25, which was
2215generated by GNU Autoconf 2.68.  Invocation command line was
2216
2217  $ $0 $@
2218
2219_ACEOF
2220exec 5>>config.log
2221{
2222cat <<_ASUNAME
2223## --------- ##
2224## Platform. ##
2225## --------- ##
2226
2227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2228uname -m = `(uname -m) 2>/dev/null || echo unknown`
2229uname -r = `(uname -r) 2>/dev/null || echo unknown`
2230uname -s = `(uname -s) 2>/dev/null || echo unknown`
2231uname -v = `(uname -v) 2>/dev/null || echo unknown`
2232
2233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2234/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2235
2236/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2237/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2239/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2240/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2241/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2242/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2243
2244_ASUNAME
2245
2246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247for as_dir in $PATH
2248do
2249  IFS=$as_save_IFS
2250  test -z "$as_dir" && as_dir=.
2251    $as_echo "PATH: $as_dir"
2252  done
2253IFS=$as_save_IFS
2254
2255} >&5
2256
2257cat >&5 <<_ACEOF
2258
2259
2260## ----------- ##
2261## Core tests. ##
2262## ----------- ##
2263
2264_ACEOF
2265
2266
2267# Keep a trace of the command line.
2268# Strip out --no-create and --no-recursion so they do not pile up.
2269# Strip out --silent because we don't want to record it for future runs.
2270# Also quote any args containing shell meta-characters.
2271# Make two passes to allow for proper duplicate-argument suppression.
2272ac_configure_args=
2273ac_configure_args0=
2274ac_configure_args1=
2275ac_must_keep_next=false
2276for ac_pass in 1 2
2277do
2278  for ac_arg
2279  do
2280    case $ac_arg in
2281    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2282    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2283    | -silent | --silent | --silen | --sile | --sil)
2284      continue ;;
2285    *\'*)
2286      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2287    esac
2288    case $ac_pass in
2289    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2290    2)
2291      as_fn_append ac_configure_args1 " '$ac_arg'"
2292      if test $ac_must_keep_next = true; then
2293	ac_must_keep_next=false # Got value, back to normal.
2294      else
2295	case $ac_arg in
2296	  *=* | --config-cache | -C | -disable-* | --disable-* \
2297	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2298	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2299	  | -with-* | --with-* | -without-* | --without-* | --x)
2300	    case "$ac_configure_args0 " in
2301	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2302	    esac
2303	    ;;
2304	  -* ) ac_must_keep_next=true ;;
2305	esac
2306      fi
2307      as_fn_append ac_configure_args " '$ac_arg'"
2308      ;;
2309    esac
2310  done
2311done
2312{ ac_configure_args0=; unset ac_configure_args0;}
2313{ ac_configure_args1=; unset ac_configure_args1;}
2314
2315# When interrupted or exit'd, cleanup temporary files, and complete
2316# config.log.  We remove comments because anyway the quotes in there
2317# would cause problems or look ugly.
2318# WARNING: Use '\'' to represent an apostrophe within the trap.
2319# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2320trap 'exit_status=$?
2321  # Save into config.log some information that might help in debugging.
2322  {
2323    echo
2324
2325    $as_echo "## ---------------- ##
2326## Cache variables. ##
2327## ---------------- ##"
2328    echo
2329    # The following way of writing the cache mishandles newlines in values,
2330(
2331  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2332    eval ac_val=\$$ac_var
2333    case $ac_val in #(
2334    *${as_nl}*)
2335      case $ac_var in #(
2336      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2337$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338      esac
2339      case $ac_var in #(
2340      _ | IFS | as_nl) ;; #(
2341      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2342      *) { eval $ac_var=; unset $ac_var;} ;;
2343      esac ;;
2344    esac
2345  done
2346  (set) 2>&1 |
2347    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2348    *${as_nl}ac_space=\ *)
2349      sed -n \
2350	"s/'\''/'\''\\\\'\'''\''/g;
2351	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352      ;; #(
2353    *)
2354      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2355      ;;
2356    esac |
2357    sort
2358)
2359    echo
2360
2361    $as_echo "## ----------------- ##
2362## Output variables. ##
2363## ----------------- ##"
2364    echo
2365    for ac_var in $ac_subst_vars
2366    do
2367      eval ac_val=\$$ac_var
2368      case $ac_val in
2369      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370      esac
2371      $as_echo "$ac_var='\''$ac_val'\''"
2372    done | sort
2373    echo
2374
2375    if test -n "$ac_subst_files"; then
2376      $as_echo "## ------------------- ##
2377## File substitutions. ##
2378## ------------------- ##"
2379      echo
2380      for ac_var in $ac_subst_files
2381      do
2382	eval ac_val=\$$ac_var
2383	case $ac_val in
2384	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385	esac
2386	$as_echo "$ac_var='\''$ac_val'\''"
2387      done | sort
2388      echo
2389    fi
2390
2391    if test -s confdefs.h; then
2392      $as_echo "## ----------- ##
2393## confdefs.h. ##
2394## ----------- ##"
2395      echo
2396      cat confdefs.h
2397      echo
2398    fi
2399    test "$ac_signal" != 0 &&
2400      $as_echo "$as_me: caught signal $ac_signal"
2401    $as_echo "$as_me: exit $exit_status"
2402  } >&5
2403  rm -f core *.core core.conftest.* &&
2404    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2405    exit $exit_status
2406' 0
2407for ac_signal in 1 2 13 15; do
2408  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2409done
2410ac_signal=0
2411
2412# confdefs.h avoids OS command line length limits that DEFS can exceed.
2413rm -f -r conftest* confdefs.h
2414
2415$as_echo "/* confdefs.h */" > confdefs.h
2416
2417# Predefined preprocessor variables.
2418
2419cat >>confdefs.h <<_ACEOF
2420#define PACKAGE_NAME "$PACKAGE_NAME"
2421_ACEOF
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_VERSION "$PACKAGE_VERSION"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_STRING "$PACKAGE_STRING"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2437_ACEOF
2438
2439cat >>confdefs.h <<_ACEOF
2440#define PACKAGE_URL "$PACKAGE_URL"
2441_ACEOF
2442
2443
2444# Let the site file select an alternate cache file if it wants to.
2445# Prefer an explicitly selected file to automatically selected ones.
2446ac_site_file1=NONE
2447ac_site_file2=NONE
2448if test -n "$CONFIG_SITE"; then
2449  # We do not want a PATH search for config.site.
2450  case $CONFIG_SITE in #((
2451    -*)  ac_site_file1=./$CONFIG_SITE;;
2452    */*) ac_site_file1=$CONFIG_SITE;;
2453    *)   ac_site_file1=./$CONFIG_SITE;;
2454  esac
2455elif test "x$prefix" != xNONE; then
2456  ac_site_file1=$prefix/share/config.site
2457  ac_site_file2=$prefix/etc/config.site
2458else
2459  ac_site_file1=$ac_default_prefix/share/config.site
2460  ac_site_file2=$ac_default_prefix/etc/config.site
2461fi
2462for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2463do
2464  test "x$ac_site_file" = xNONE && continue
2465  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2466    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2467$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2468    sed 's/^/| /' "$ac_site_file" >&5
2469    . "$ac_site_file" \
2470      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472as_fn_error $? "failed to load site script $ac_site_file
2473See \`config.log' for more details" "$LINENO" 5; }
2474  fi
2475done
2476
2477if test -r "$cache_file"; then
2478  # Some versions of bash will fail to source /dev/null (special files
2479  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2480  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2481    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2482$as_echo "$as_me: loading cache $cache_file" >&6;}
2483    case $cache_file in
2484      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2485      *)                      . "./$cache_file";;
2486    esac
2487  fi
2488else
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2490$as_echo "$as_me: creating cache $cache_file" >&6;}
2491  >$cache_file
2492fi
2493
2494# Check that the precious variables saved in the cache have kept the same
2495# value.
2496ac_cache_corrupted=false
2497for ac_var in $ac_precious_vars; do
2498  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499  eval ac_new_set=\$ac_env_${ac_var}_set
2500  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501  eval ac_new_val=\$ac_env_${ac_var}_value
2502  case $ac_old_set,$ac_new_set in
2503    set,)
2504      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506      ac_cache_corrupted=: ;;
2507    ,set)
2508      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510      ac_cache_corrupted=: ;;
2511    ,);;
2512    *)
2513      if test "x$ac_old_val" != "x$ac_new_val"; then
2514	# differences in whitespace do not lead to failure.
2515	ac_old_val_w=`echo x $ac_old_val`
2516	ac_new_val_w=`echo x $ac_new_val`
2517	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520	  ac_cache_corrupted=:
2521	else
2522	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524	  eval $ac_var=\$ac_old_val
2525	fi
2526	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2527$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2528	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2529$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2530      fi;;
2531  esac
2532  # Pass precious variables to config.status.
2533  if test "$ac_new_set" = set; then
2534    case $ac_new_val in
2535    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536    *) ac_arg=$ac_var=$ac_new_val ;;
2537    esac
2538    case " $ac_configure_args " in
2539      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2540      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541    esac
2542  fi
2543done
2544if $ac_cache_corrupted; then
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2549  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2550fi
2551## -------------------- ##
2552## Main body of script. ##
2553## -------------------- ##
2554
2555ac_ext=c
2556ac_cpp='$CPP $CPPFLAGS'
2557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561
2562
2563am__api_version='1.11'
2564
2565ac_aux_dir=
2566for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2567  if test -f "$ac_dir/install-sh"; then
2568    ac_aux_dir=$ac_dir
2569    ac_install_sh="$ac_aux_dir/install-sh -c"
2570    break
2571  elif test -f "$ac_dir/install.sh"; then
2572    ac_aux_dir=$ac_dir
2573    ac_install_sh="$ac_aux_dir/install.sh -c"
2574    break
2575  elif test -f "$ac_dir/shtool"; then
2576    ac_aux_dir=$ac_dir
2577    ac_install_sh="$ac_aux_dir/shtool install -c"
2578    break
2579  fi
2580done
2581if test -z "$ac_aux_dir"; then
2582  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2583fi
2584
2585# These three variables are undocumented and unsupported,
2586# and are intended to be withdrawn in a future Autoconf release.
2587# They can cause serious problems if a builder's source tree is in a directory
2588# whose full name contains unusual characters.
2589ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2590ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2591ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2592
2593
2594# Find a good install program.  We prefer a C program (faster),
2595# so one script is as good as another.  But avoid the broken or
2596# incompatible versions:
2597# SysV /etc/install, /usr/sbin/install
2598# SunOS /usr/etc/install
2599# IRIX /sbin/install
2600# AIX /bin/install
2601# AmigaOS /C/install, which installs bootblocks on floppy discs
2602# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2603# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2604# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2605# OS/2's system install, which has a completely different semantic
2606# ./install, which can be erroneously created by make from ./install.sh.
2607# Reject install programs that cannot install multiple files.
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2609$as_echo_n "checking for a BSD-compatible install... " >&6; }
2610if test -z "$INSTALL"; then
2611if ${ac_cv_path_install+:} false; then :
2612  $as_echo_n "(cached) " >&6
2613else
2614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617  IFS=$as_save_IFS
2618  test -z "$as_dir" && as_dir=.
2619    # Account for people who put trailing slashes in PATH elements.
2620case $as_dir/ in #((
2621  ./ | .// | /[cC]/* | \
2622  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2623  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2624  /usr/ucb/* ) ;;
2625  *)
2626    # OSF1 and SCO ODT 3.0 have their own names for install.
2627    # Don't use installbsd from OSF since it installs stuff as root
2628    # by default.
2629    for ac_prog in ginstall scoinst install; do
2630      for ac_exec_ext in '' $ac_executable_extensions; do
2631	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2632	  if test $ac_prog = install &&
2633	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634	    # AIX install.  It has an incompatible calling convention.
2635	    :
2636	  elif test $ac_prog = install &&
2637	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638	    # program-specific install script used by HP pwplus--don't use.
2639	    :
2640	  else
2641	    rm -rf conftest.one conftest.two conftest.dir
2642	    echo one > conftest.one
2643	    echo two > conftest.two
2644	    mkdir conftest.dir
2645	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2646	      test -s conftest.one && test -s conftest.two &&
2647	      test -s conftest.dir/conftest.one &&
2648	      test -s conftest.dir/conftest.two
2649	    then
2650	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2651	      break 3
2652	    fi
2653	  fi
2654	fi
2655      done
2656    done
2657    ;;
2658esac
2659
2660  done
2661IFS=$as_save_IFS
2662
2663rm -rf conftest.one conftest.two conftest.dir
2664
2665fi
2666  if test "${ac_cv_path_install+set}" = set; then
2667    INSTALL=$ac_cv_path_install
2668  else
2669    # As a last resort, use the slow shell script.  Don't cache a
2670    # value for INSTALL within a source directory, because that will
2671    # break other packages using the cache if that directory is
2672    # removed, or if the value is a relative name.
2673    INSTALL=$ac_install_sh
2674  fi
2675fi
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2677$as_echo "$INSTALL" >&6; }
2678
2679# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2680# It thinks the first close brace ends the variable substitution.
2681test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2682
2683test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2684
2685test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2686
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2688$as_echo_n "checking whether build environment is sane... " >&6; }
2689# Just in case
2690sleep 1
2691echo timestamp > conftest.file
2692# Reject unsafe characters in $srcdir or the absolute working directory
2693# name.  Accept space and tab only in the latter.
2694am_lf='
2695'
2696case `pwd` in
2697  *[\\\"\#\$\&\'\`$am_lf]*)
2698    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699esac
2700case $srcdir in
2701  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2702    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2703esac
2704
2705# Do `set' in a subshell so we don't clobber the current shell's
2706# arguments.  Must try -L first in case configure is actually a
2707# symlink; some systems play weird games with the mod time of symlinks
2708# (eg FreeBSD returns the mod time of the symlink's containing
2709# directory).
2710if (
2711   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2712   if test "$*" = "X"; then
2713      # -L didn't work.
2714      set X `ls -t "$srcdir/configure" conftest.file`
2715   fi
2716   rm -f conftest.file
2717   if test "$*" != "X $srcdir/configure conftest.file" \
2718      && test "$*" != "X conftest.file $srcdir/configure"; then
2719
2720      # If neither matched, then we have a broken ls.  This can happen
2721      # if, for instance, CONFIG_SHELL is bash and it inherits a
2722      # broken ls alias from the environment.  This has actually
2723      # happened.  Such a system could not be considered "sane".
2724      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2725alias in your environment" "$LINENO" 5
2726   fi
2727
2728   test "$2" = conftest.file
2729   )
2730then
2731   # Ok.
2732   :
2733else
2734   as_fn_error $? "newly created file is older than distributed files!
2735Check your system clock" "$LINENO" 5
2736fi
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738$as_echo "yes" >&6; }
2739test "$program_prefix" != NONE &&
2740  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2741# Use a double $ so make ignores it.
2742test "$program_suffix" != NONE &&
2743  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2744# Double any \ or $.
2745# By default was `s,x,x', remove it if useless.
2746ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2747program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2748
2749# expand $ac_aux_dir to an absolute path
2750am_aux_dir=`cd $ac_aux_dir && pwd`
2751
2752if test x"${MISSING+set}" != xset; then
2753  case $am_aux_dir in
2754  *\ * | *\	*)
2755    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2756  *)
2757    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2758  esac
2759fi
2760# Use eval to expand $SHELL
2761if eval "$MISSING --run true"; then
2762  am_missing_run="$MISSING --run "
2763else
2764  am_missing_run=
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2766$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2767fi
2768
2769if test x"${install_sh}" != xset; then
2770  case $am_aux_dir in
2771  *\ * | *\	*)
2772    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2773  *)
2774    install_sh="\${SHELL} $am_aux_dir/install-sh"
2775  esac
2776fi
2777
2778# Installed binaries are usually stripped using `strip' when the user
2779# run `make install-strip'.  However `strip' might not be the right
2780# tool to use in cross-compilation environments, therefore Automake
2781# will honor the `STRIP' environment variable to overrule this program.
2782if test "$cross_compiling" != no; then
2783  if test -n "$ac_tool_prefix"; then
2784  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2785set dummy ${ac_tool_prefix}strip; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_STRIP+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  if test -n "$STRIP"; then
2792  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  test -z "$as_dir" && as_dir=.
2799    for ac_exec_ext in '' $ac_executable_extensions; do
2800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811STRIP=$ac_cv_prog_STRIP
2812if test -n "$STRIP"; then
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2814$as_echo "$STRIP" >&6; }
2815else
2816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818fi
2819
2820
2821fi
2822if test -z "$ac_cv_prog_STRIP"; then
2823  ac_ct_STRIP=$STRIP
2824  # Extract the first word of "strip", so it can be a program name with args.
2825set dummy strip; ac_word=$2
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  if test -n "$ac_ct_STRIP"; then
2832  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839    for ac_exec_ext in '' $ac_executable_extensions; do
2840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841    ac_cv_prog_ac_ct_STRIP="strip"
2842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843    break 2
2844  fi
2845done
2846  done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2852if test -n "$ac_ct_STRIP"; then
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2854$as_echo "$ac_ct_STRIP" >&6; }
2855else
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860  if test "x$ac_ct_STRIP" = x; then
2861    STRIP=":"
2862  else
2863    case $cross_compiling:$ac_tool_warned in
2864yes:)
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867ac_tool_warned=yes ;;
2868esac
2869    STRIP=$ac_ct_STRIP
2870  fi
2871else
2872  STRIP="$ac_cv_prog_STRIP"
2873fi
2874
2875fi
2876INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2877
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2879$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2880if test -z "$MKDIR_P"; then
2881  if ${ac_cv_path_mkdir+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889    for ac_prog in mkdir gmkdir; do
2890	 for ac_exec_ext in '' $ac_executable_extensions; do
2891	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2892	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2893	     'mkdir (GNU coreutils) '* | \
2894	     'mkdir (coreutils) '* | \
2895	     'mkdir (fileutils) '4.1*)
2896	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2897	       break 3;;
2898	   esac
2899	 done
2900       done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905
2906  test -d ./--version && rmdir ./--version
2907  if test "${ac_cv_path_mkdir+set}" = set; then
2908    MKDIR_P="$ac_cv_path_mkdir -p"
2909  else
2910    # As a last resort, use the slow shell script.  Don't cache a
2911    # value for MKDIR_P within a source directory, because that will
2912    # break other packages using the cache if that directory is
2913    # removed, or if the value is a relative name.
2914    MKDIR_P="$ac_install_sh -d"
2915  fi
2916fi
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2918$as_echo "$MKDIR_P" >&6; }
2919
2920mkdir_p="$MKDIR_P"
2921case $mkdir_p in
2922  [\\/$]* | ?:[\\/]*) ;;
2923  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2924esac
2925
2926for ac_prog in gawk mawk nawk awk
2927do
2928  # Extract the first word of "$ac_prog", so it can be a program name with args.
2929set dummy $ac_prog; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_AWK+:} false; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$AWK"; then
2936  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945    ac_cv_prog_AWK="$ac_prog"
2946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955AWK=$ac_cv_prog_AWK
2956if test -n "$AWK"; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2958$as_echo "$AWK" >&6; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965  test -n "$AWK" && break
2966done
2967
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2970set x ${MAKE-make}
2971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2972if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  cat >conftest.make <<\_ACEOF
2976SHELL = /bin/sh
2977all:
2978	@echo '@@@%%%=$(MAKE)=@@@%%%'
2979_ACEOF
2980# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2981case `${MAKE-make} -f conftest.make 2>/dev/null` in
2982  *@@@%%%=?*=@@@%%%*)
2983    eval ac_cv_prog_make_${ac_make}_set=yes;;
2984  *)
2985    eval ac_cv_prog_make_${ac_make}_set=no;;
2986esac
2987rm -f conftest.make
2988fi
2989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991$as_echo "yes" >&6; }
2992  SET_MAKE=
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996  SET_MAKE="MAKE=${MAKE-make}"
2997fi
2998
2999rm -rf .tst 2>/dev/null
3000mkdir .tst 2>/dev/null
3001if test -d .tst; then
3002  am__leading_dot=.
3003else
3004  am__leading_dot=_
3005fi
3006rmdir .tst 2>/dev/null
3007
3008if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010  # is not polluted with repeated "-I."
3011  am__isrc=' -I$(srcdir)'
3012  # test to see if srcdir already configured
3013  if test -f $srcdir/config.status; then
3014    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3015  fi
3016fi
3017
3018# test whether we have cygpath
3019if test -z "$CYGPATH_W"; then
3020  if (cygpath --version) >/dev/null 2>/dev/null; then
3021    CYGPATH_W='cygpath -w'
3022  else
3023    CYGPATH_W=echo
3024  fi
3025fi
3026
3027
3028# Define the identity of the package.
3029 PACKAGE='xapian-omega'
3030 VERSION='1.2.25'
3031
3032
3033cat >>confdefs.h <<_ACEOF
3034#define PACKAGE "$PACKAGE"
3035_ACEOF
3036
3037
3038cat >>confdefs.h <<_ACEOF
3039#define VERSION "$VERSION"
3040_ACEOF
3041
3042# Some tools Automake needs.
3043
3044ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058# We need awk for the "check" target.  The system "awk" is bad on
3059# some platforms.
3060# Always define AMTAR for backward compatibility.  Yes, it's still used
3061# in the wild :-(  We should find a proper way to deprecate it ...
3062AMTAR='$${TAR-tar}'
3063
3064
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3066$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3067# Loop over all known methods to create a tar archive until one works.
3068_am_tools='gnutar plaintar pax cpio none'
3069_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3070# Do not fold the above two line into one, because Tru64 sh and
3071# Solaris sh will not grok spaces in the rhs of `-'.
3072for _am_tool in $_am_tools
3073do
3074  case $_am_tool in
3075  gnutar)
3076    for _am_tar in tar gnutar gtar;
3077    do
3078      { echo "$as_me:$LINENO: $_am_tar --version" >&5
3079   ($_am_tar --version) >&5 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } && break
3083    done
3084    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3085    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3086    am__untar="$_am_tar -xf -"
3087    ;;
3088  plaintar)
3089    # Must skip GNU tar: if it does not support --format= it doesn't create
3090    # ustar tarball either.
3091    (tar --version) >/dev/null 2>&1 && continue
3092    am__tar='tar chf - "$$tardir"'
3093    am__tar_='tar chf - "$tardir"'
3094    am__untar='tar xf -'
3095    ;;
3096  pax)
3097    am__tar='pax -L -x ustar -w "$$tardir"'
3098    am__tar_='pax -L -x ustar -w "$tardir"'
3099    am__untar='pax -r'
3100    ;;
3101  cpio)
3102    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3103    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3104    am__untar='cpio -i -H ustar -d'
3105    ;;
3106  none)
3107    am__tar=false
3108    am__tar_=false
3109    am__untar=false
3110    ;;
3111  esac
3112
3113  # If the value was cached, stop now.  We just wanted to have am__tar
3114  # and am__untar set.
3115  test -n "${am_cv_prog_tar_ustar}" && break
3116
3117  # tar/untar a dummy directory, and stop if the command works
3118  rm -rf conftest.dir
3119  mkdir conftest.dir
3120  echo GrepMe > conftest.dir/file
3121  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3122   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }
3126  rm -rf conftest.dir
3127  if test -s conftest.tar; then
3128    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3129   ($am__untar <conftest.tar) >&5 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }
3133    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3134  fi
3135done
3136rm -rf conftest.dir
3137
3138if ${am_cv_prog_tar_ustar+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  am_cv_prog_tar_ustar=$_am_tool
3142fi
3143
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3145$as_echo "$am_cv_prog_tar_ustar" >&6; }
3146
3147
3148
3149
3150
3151
3152
3153
3154ac_config_headers="$ac_config_headers config.h"
3155
3156
3157
3158
3159
3160case `pwd` in
3161  *\ * | *\	*)
3162    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3163$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3164esac
3165
3166
3167
3168macro_version='2.4.6'
3169macro_revision='2.4.6'
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183ltmain=$ac_aux_dir/ltmain.sh
3184
3185# Make sure we can run config.sub.
3186$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3187  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3188
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3190$as_echo_n "checking build system type... " >&6; }
3191if ${ac_cv_build+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  ac_build_alias=$build_alias
3195test "x$ac_build_alias" = x &&
3196  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3197test "x$ac_build_alias" = x &&
3198  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3199ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3200  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3201
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3204$as_echo "$ac_cv_build" >&6; }
3205case $ac_cv_build in
3206*-*-*) ;;
3207*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3208esac
3209build=$ac_cv_build
3210ac_save_IFS=$IFS; IFS='-'
3211set x $ac_cv_build
3212shift
3213build_cpu=$1
3214build_vendor=$2
3215shift; shift
3216# Remember, the first character of IFS is used to create $*,
3217# except with old shells:
3218build_os=$*
3219IFS=$ac_save_IFS
3220case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3221
3222
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3224$as_echo_n "checking host system type... " >&6; }
3225if ${ac_cv_host+:} false; then :
3226  $as_echo_n "(cached) " >&6
3227else
3228  if test "x$host_alias" = x; then
3229  ac_cv_host=$ac_cv_build
3230else
3231  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3232    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3233fi
3234
3235fi
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3237$as_echo "$ac_cv_host" >&6; }
3238case $ac_cv_host in
3239*-*-*) ;;
3240*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3241esac
3242host=$ac_cv_host
3243ac_save_IFS=$IFS; IFS='-'
3244set x $ac_cv_host
3245shift
3246host_cpu=$1
3247host_vendor=$2
3248shift; shift
3249# Remember, the first character of IFS is used to create $*,
3250# except with old shells:
3251host_os=$*
3252IFS=$ac_save_IFS
3253case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3254
3255
3256# Backslashify metacharacters that are still active within
3257# double-quoted strings.
3258sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3259
3260# Same as above, but do not quote variable references.
3261double_quote_subst='s/\(["`\\]\)/\\\1/g'
3262
3263# Sed substitution to delay expansion of an escaped shell variable in a
3264# double_quote_subst'ed string.
3265delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3266
3267# Sed substitution to delay expansion of an escaped single quote.
3268delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3269
3270# Sed substitution to avoid accidental globbing in evaled expressions
3271no_glob_subst='s/\*/\\\*/g'
3272
3273ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3274ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3275ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3276
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3278$as_echo_n "checking how to print strings... " >&6; }
3279# Test print first, because it will be a builtin if present.
3280if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3281   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3282  ECHO='print -r --'
3283elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3284  ECHO='printf %s\n'
3285else
3286  # Use this function as a fallback that always works.
3287  func_fallback_echo ()
3288  {
3289    eval 'cat <<_LTECHO_EOF
3290$1
3291_LTECHO_EOF'
3292  }
3293  ECHO='func_fallback_echo'
3294fi
3295
3296# func_echo_all arg...
3297# Invoke $ECHO with all args, space-separated.
3298func_echo_all ()
3299{
3300    $ECHO ""
3301}
3302
3303case $ECHO in
3304  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3305$as_echo "printf" >&6; } ;;
3306  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3307$as_echo "print -r" >&6; } ;;
3308  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3309$as_echo "cat" >&6; } ;;
3310esac
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325DEPDIR="${am__leading_dot}deps"
3326
3327ac_config_commands="$ac_config_commands depfiles"
3328
3329
3330am_make=${MAKE-make}
3331cat > confinc << 'END'
3332am__doit:
3333	@echo this is the am__doit target
3334.PHONY: am__doit
3335END
3336# If we don't find an include directive, just comment out the code.
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3338$as_echo_n "checking for style of include used by $am_make... " >&6; }
3339am__include="#"
3340am__quote=
3341_am_result=none
3342# First try GNU make style include.
3343echo "include confinc" > confmf
3344# Ignore all kinds of additional output from `make'.
3345case `$am_make -s -f confmf 2> /dev/null` in #(
3346*the\ am__doit\ target*)
3347  am__include=include
3348  am__quote=
3349  _am_result=GNU
3350  ;;
3351esac
3352# Now try BSD make style include.
3353if test "$am__include" = "#"; then
3354   echo '.include "confinc"' > confmf
3355   case `$am_make -s -f confmf 2> /dev/null` in #(
3356   *the\ am__doit\ target*)
3357     am__include=.include
3358     am__quote="\""
3359     _am_result=BSD
3360     ;;
3361   esac
3362fi
3363
3364
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3366$as_echo "$_am_result" >&6; }
3367rm -f confinc confmf
3368
3369# Check whether --enable-dependency-tracking was given.
3370if test "${enable_dependency_tracking+set}" = set; then :
3371  enableval=$enable_dependency_tracking;
3372fi
3373
3374if test "x$enable_dependency_tracking" != xno; then
3375  am_depcomp="$ac_aux_dir/depcomp"
3376  AMDEPBACKSLASH='\'
3377  am__nodep='_no'
3378fi
3379 if test "x$enable_dependency_tracking" != xno; then
3380  AMDEP_TRUE=
3381  AMDEP_FALSE='#'
3382else
3383  AMDEP_TRUE='#'
3384  AMDEP_FALSE=
3385fi
3386
3387
3388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393if test -n "$ac_tool_prefix"; then
3394  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3395set dummy ${ac_tool_prefix}gcc; ac_word=$2
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397$as_echo_n "checking for $ac_word... " >&6; }
3398if ${ac_cv_prog_CC+:} false; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401  if test -n "$CC"; then
3402  ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407  IFS=$as_save_IFS
3408  test -z "$as_dir" && as_dir=.
3409    for ac_exec_ext in '' $ac_executable_extensions; do
3410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413    break 2
3414  fi
3415done
3416  done
3417IFS=$as_save_IFS
3418
3419fi
3420fi
3421CC=$ac_cv_prog_CC
3422if test -n "$CC"; then
3423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424$as_echo "$CC" >&6; }
3425else
3426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427$as_echo "no" >&6; }
3428fi
3429
3430
3431fi
3432if test -z "$ac_cv_prog_CC"; then
3433  ac_ct_CC=$CC
3434  # Extract the first word of "gcc", so it can be a program name with args.
3435set dummy gcc; ac_word=$2
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437$as_echo_n "checking for $ac_word... " >&6; }
3438if ${ac_cv_prog_ac_ct_CC+:} false; then :
3439  $as_echo_n "(cached) " >&6
3440else
3441  if test -n "$ac_ct_CC"; then
3442  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3443else
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447  IFS=$as_save_IFS
3448  test -z "$as_dir" && as_dir=.
3449    for ac_exec_ext in '' $ac_executable_extensions; do
3450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451    ac_cv_prog_ac_ct_CC="gcc"
3452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453    break 2
3454  fi
3455done
3456  done
3457IFS=$as_save_IFS
3458
3459fi
3460fi
3461ac_ct_CC=$ac_cv_prog_ac_ct_CC
3462if test -n "$ac_ct_CC"; then
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3464$as_echo "$ac_ct_CC" >&6; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468fi
3469
3470  if test "x$ac_ct_CC" = x; then
3471    CC=""
3472  else
3473    case $cross_compiling:$ac_tool_warned in
3474yes:)
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477ac_tool_warned=yes ;;
3478esac
3479    CC=$ac_ct_CC
3480  fi
3481else
3482  CC="$ac_cv_prog_CC"
3483fi
3484
3485if test -z "$CC"; then
3486          if test -n "$ac_tool_prefix"; then
3487    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3488set dummy ${ac_tool_prefix}cc; ac_word=$2
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490$as_echo_n "checking for $ac_word... " >&6; }
3491if ${ac_cv_prog_CC+:} false; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494  if test -n "$CC"; then
3495  ac_cv_prog_CC="$CC" # Let the user override the test.
3496else
3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498for as_dir in $PATH
3499do
3500  IFS=$as_save_IFS
3501  test -z "$as_dir" && as_dir=.
3502    for ac_exec_ext in '' $ac_executable_extensions; do
3503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504    ac_cv_prog_CC="${ac_tool_prefix}cc"
3505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506    break 2
3507  fi
3508done
3509  done
3510IFS=$as_save_IFS
3511
3512fi
3513fi
3514CC=$ac_cv_prog_CC
3515if test -n "$CC"; then
3516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517$as_echo "$CC" >&6; }
3518else
3519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520$as_echo "no" >&6; }
3521fi
3522
3523
3524  fi
3525fi
3526if test -z "$CC"; then
3527  # Extract the first word of "cc", so it can be a program name with args.
3528set dummy cc; ac_word=$2
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530$as_echo_n "checking for $ac_word... " >&6; }
3531if ${ac_cv_prog_CC+:} false; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  if test -n "$CC"; then
3535  ac_cv_prog_CC="$CC" # Let the user override the test.
3536else
3537  ac_prog_rejected=no
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541  IFS=$as_save_IFS
3542  test -z "$as_dir" && as_dir=.
3543    for ac_exec_ext in '' $ac_executable_extensions; do
3544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3546       ac_prog_rejected=yes
3547       continue
3548     fi
3549    ac_cv_prog_CC="cc"
3550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551    break 2
3552  fi
3553done
3554  done
3555IFS=$as_save_IFS
3556
3557if test $ac_prog_rejected = yes; then
3558  # We found a bogon in the path, so make sure we never use it.
3559  set dummy $ac_cv_prog_CC
3560  shift
3561  if test $# != 0; then
3562    # We chose a different compiler from the bogus one.
3563    # However, it has the same basename, so the bogon will be chosen
3564    # first if we set CC to just the basename; use the full file name.
3565    shift
3566    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3567  fi
3568fi
3569fi
3570fi
3571CC=$ac_cv_prog_CC
3572if test -n "$CC"; then
3573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574$as_echo "$CC" >&6; }
3575else
3576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577$as_echo "no" >&6; }
3578fi
3579
3580
3581fi
3582if test -z "$CC"; then
3583  if test -n "$ac_tool_prefix"; then
3584  for ac_prog in cl.exe
3585  do
3586    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589$as_echo_n "checking for $ac_word... " >&6; }
3590if ${ac_cv_prog_CC+:} false; then :
3591  $as_echo_n "(cached) " >&6
3592else
3593  if test -n "$CC"; then
3594  ac_cv_prog_CC="$CC" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599  IFS=$as_save_IFS
3600  test -z "$as_dir" && as_dir=.
3601    for ac_exec_ext in '' $ac_executable_extensions; do
3602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605    break 2
3606  fi
3607done
3608  done
3609IFS=$as_save_IFS
3610
3611fi
3612fi
3613CC=$ac_cv_prog_CC
3614if test -n "$CC"; then
3615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616$as_echo "$CC" >&6; }
3617else
3618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619$as_echo "no" >&6; }
3620fi
3621
3622
3623    test -n "$CC" && break
3624  done
3625fi
3626if test -z "$CC"; then
3627  ac_ct_CC=$CC
3628  for ac_prog in cl.exe
3629do
3630  # Extract the first word of "$ac_prog", so it can be a program name with args.
3631set dummy $ac_prog; ac_word=$2
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633$as_echo_n "checking for $ac_word... " >&6; }
3634if ${ac_cv_prog_ac_ct_CC+:} false; then :
3635  $as_echo_n "(cached) " >&6
3636else
3637  if test -n "$ac_ct_CC"; then
3638  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3639else
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643  IFS=$as_save_IFS
3644  test -z "$as_dir" && as_dir=.
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647    ac_cv_prog_ac_ct_CC="$ac_prog"
3648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649    break 2
3650  fi
3651done
3652  done
3653IFS=$as_save_IFS
3654
3655fi
3656fi
3657ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658if test -n "$ac_ct_CC"; then
3659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660$as_echo "$ac_ct_CC" >&6; }
3661else
3662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
3664fi
3665
3666
3667  test -n "$ac_ct_CC" && break
3668done
3669
3670  if test "x$ac_ct_CC" = x; then
3671    CC=""
3672  else
3673    case $cross_compiling:$ac_tool_warned in
3674yes:)
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3677ac_tool_warned=yes ;;
3678esac
3679    CC=$ac_ct_CC
3680  fi
3681fi
3682
3683fi
3684
3685
3686test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688as_fn_error $? "no acceptable C compiler found in \$PATH
3689See \`config.log' for more details" "$LINENO" 5; }
3690
3691# Provide some information about the compiler.
3692$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3693set X $ac_compile
3694ac_compiler=$2
3695for ac_option in --version -v -V -qversion; do
3696  { { ac_try="$ac_compiler $ac_option >&5"
3697case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702$as_echo "$ac_try_echo"; } >&5
3703  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3704  ac_status=$?
3705  if test -s conftest.err; then
3706    sed '10a\
3707... rest of stderr output deleted ...
3708         10q' conftest.err >conftest.er1
3709    cat conftest.er1 >&5
3710  fi
3711  rm -f conftest.er1 conftest.err
3712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713  test $ac_status = 0; }
3714done
3715
3716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718
3719int
3720main ()
3721{
3722
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727ac_clean_files_save=$ac_clean_files
3728ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3729# Try to create an executable without -o first, disregard a.out.
3730# It will help us diagnose broken compilers, and finding out an intuition
3731# of exeext.
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3733$as_echo_n "checking whether the C compiler works... " >&6; }
3734ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3735
3736# The possible output files:
3737ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3738
3739ac_rmfiles=
3740for ac_file in $ac_files
3741do
3742  case $ac_file in
3743    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3744    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3745  esac
3746done
3747rm -f $ac_rmfiles
3748
3749if { { ac_try="$ac_link_default"
3750case "(($ac_try" in
3751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752  *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755$as_echo "$ac_try_echo"; } >&5
3756  (eval "$ac_link_default") 2>&5
3757  ac_status=$?
3758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759  test $ac_status = 0; }; then :
3760  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3761# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3762# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3763# so that the user can short-circuit this test for compilers unknown to
3764# Autoconf.
3765for ac_file in $ac_files ''
3766do
3767  test -f "$ac_file" || continue
3768  case $ac_file in
3769    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3770	;;
3771    [ab].out )
3772	# We found the default executable, but exeext='' is most
3773	# certainly right.
3774	break;;
3775    *.* )
3776	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3777	then :; else
3778	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779	fi
3780	# We set ac_cv_exeext here because the later test for it is not
3781	# safe: cross compilers may not add the suffix if given an `-o'
3782	# argument, so we may need to know it at that point already.
3783	# Even if this section looks crufty: it has the advantage of
3784	# actually working.
3785	break;;
3786    * )
3787	break;;
3788  esac
3789done
3790test "$ac_cv_exeext" = no && ac_cv_exeext=
3791
3792else
3793  ac_file=''
3794fi
3795if test -z "$ac_file"; then :
3796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797$as_echo "no" >&6; }
3798$as_echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803as_fn_error 77 "C compiler cannot create executables
3804See \`config.log' for more details" "$LINENO" 5; }
3805else
3806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3807$as_echo "yes" >&6; }
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3810$as_echo_n "checking for C compiler default output file name... " >&6; }
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3812$as_echo "$ac_file" >&6; }
3813ac_exeext=$ac_cv_exeext
3814
3815rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3816ac_clean_files=$ac_clean_files_save
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3818$as_echo_n "checking for suffix of executables... " >&6; }
3819if { { ac_try="$ac_link"
3820case "(($ac_try" in
3821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822  *) ac_try_echo=$ac_try;;
3823esac
3824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825$as_echo "$ac_try_echo"; } >&5
3826  (eval "$ac_link") 2>&5
3827  ac_status=$?
3828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829  test $ac_status = 0; }; then :
3830  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3831# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3832# work properly (i.e., refer to `conftest.exe'), while it won't with
3833# `rm'.
3834for ac_file in conftest.exe conftest conftest.*; do
3835  test -f "$ac_file" || continue
3836  case $ac_file in
3837    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3839	  break;;
3840    * ) break;;
3841  esac
3842done
3843else
3844  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3847See \`config.log' for more details" "$LINENO" 5; }
3848fi
3849rm -f conftest conftest$ac_cv_exeext
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3851$as_echo "$ac_cv_exeext" >&6; }
3852
3853rm -f conftest.$ac_ext
3854EXEEXT=$ac_cv_exeext
3855ac_exeext=$EXEEXT
3856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858#include <stdio.h>
3859int
3860main ()
3861{
3862FILE *f = fopen ("conftest.out", "w");
3863 return ferror (f) || fclose (f) != 0;
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869ac_clean_files="$ac_clean_files conftest.out"
3870# Check that the compiler produces executables we can run.  If not, either
3871# the compiler is broken, or we cross compile.
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3873$as_echo_n "checking whether we are cross compiling... " >&6; }
3874if test "$cross_compiling" != yes; then
3875  { { ac_try="$ac_link"
3876case "(($ac_try" in
3877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878  *) ac_try_echo=$ac_try;;
3879esac
3880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881$as_echo "$ac_try_echo"; } >&5
3882  (eval "$ac_link") 2>&5
3883  ac_status=$?
3884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885  test $ac_status = 0; }
3886  if { ac_try='./conftest$ac_cv_exeext'
3887  { { case "(($ac_try" in
3888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889  *) ac_try_echo=$ac_try;;
3890esac
3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892$as_echo "$ac_try_echo"; } >&5
3893  (eval "$ac_try") 2>&5
3894  ac_status=$?
3895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896  test $ac_status = 0; }; }; then
3897    cross_compiling=no
3898  else
3899    if test "$cross_compiling" = maybe; then
3900	cross_compiling=yes
3901    else
3902	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904as_fn_error $? "cannot run C compiled programs.
3905If you meant to cross compile, use \`--host'.
3906See \`config.log' for more details" "$LINENO" 5; }
3907    fi
3908  fi
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3911$as_echo "$cross_compiling" >&6; }
3912
3913rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3914ac_clean_files=$ac_clean_files_save
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3916$as_echo_n "checking for suffix of object files... " >&6; }
3917if ${ac_cv_objext+:} false; then :
3918  $as_echo_n "(cached) " >&6
3919else
3920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922
3923int
3924main ()
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931rm -f conftest.o conftest.obj
3932if { { ac_try="$ac_compile"
3933case "(($ac_try" in
3934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935  *) ac_try_echo=$ac_try;;
3936esac
3937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938$as_echo "$ac_try_echo"; } >&5
3939  (eval "$ac_compile") 2>&5
3940  ac_status=$?
3941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942  test $ac_status = 0; }; then :
3943  for ac_file in conftest.o conftest.obj conftest.*; do
3944  test -f "$ac_file" || continue;
3945  case $ac_file in
3946    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3947    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3948       break;;
3949  esac
3950done
3951else
3952  $as_echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957as_fn_error $? "cannot compute suffix of object files: cannot compile
3958See \`config.log' for more details" "$LINENO" 5; }
3959fi
3960rm -f conftest.$ac_cv_objext conftest.$ac_ext
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3963$as_echo "$ac_cv_objext" >&6; }
3964OBJEXT=$ac_cv_objext
3965ac_objext=$OBJEXT
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3967$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3968if ${ac_cv_c_compiler_gnu+:} false; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h.  */
3973
3974int
3975main ()
3976{
3977#ifndef __GNUC__
3978       choke me
3979#endif
3980
3981  ;
3982  return 0;
3983}
3984_ACEOF
3985if ac_fn_c_try_compile "$LINENO"; then :
3986  ac_compiler_gnu=yes
3987else
3988  ac_compiler_gnu=no
3989fi
3990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991ac_cv_c_compiler_gnu=$ac_compiler_gnu
3992
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3995$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3996if test $ac_compiler_gnu = yes; then
3997  GCC=yes
3998else
3999  GCC=
4000fi
4001ac_test_CFLAGS=${CFLAGS+set}
4002ac_save_CFLAGS=$CFLAGS
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4004$as_echo_n "checking whether $CC accepts -g... " >&6; }
4005if ${ac_cv_prog_cc_g+:} false; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  ac_save_c_werror_flag=$ac_c_werror_flag
4009   ac_c_werror_flag=yes
4010   ac_cv_prog_cc_g=no
4011   CFLAGS="-g"
4012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h.  */
4014
4015int
4016main ()
4017{
4018
4019  ;
4020  return 0;
4021}
4022_ACEOF
4023if ac_fn_c_try_compile "$LINENO"; then :
4024  ac_cv_prog_cc_g=yes
4025else
4026  CFLAGS=""
4027      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029
4030int
4031main ()
4032{
4033
4034  ;
4035  return 0;
4036}
4037_ACEOF
4038if ac_fn_c_try_compile "$LINENO"; then :
4039
4040else
4041  ac_c_werror_flag=$ac_save_c_werror_flag
4042	 CFLAGS="-g"
4043	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h.  */
4045
4046int
4047main ()
4048{
4049
4050  ;
4051  return 0;
4052}
4053_ACEOF
4054if ac_fn_c_try_compile "$LINENO"; then :
4055  ac_cv_prog_cc_g=yes
4056fi
4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062   ac_c_werror_flag=$ac_save_c_werror_flag
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4065$as_echo "$ac_cv_prog_cc_g" >&6; }
4066if test "$ac_test_CFLAGS" = set; then
4067  CFLAGS=$ac_save_CFLAGS
4068elif test $ac_cv_prog_cc_g = yes; then
4069  if test "$GCC" = yes; then
4070    CFLAGS="-g -O2"
4071  else
4072    CFLAGS="-g"
4073  fi
4074else
4075  if test "$GCC" = yes; then
4076    CFLAGS="-O2"
4077  else
4078    CFLAGS=
4079  fi
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083if ${ac_cv_prog_cc_c89+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  ac_cv_prog_cc_c89=no
4087ac_save_CC=$CC
4088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090#include <stdarg.h>
4091#include <stdio.h>
4092#include <sys/types.h>
4093#include <sys/stat.h>
4094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4095struct buf { int x; };
4096FILE * (*rcsopen) (struct buf *, struct stat *, int);
4097static char *e (p, i)
4098     char **p;
4099     int i;
4100{
4101  return p[i];
4102}
4103static char *f (char * (*g) (char **, int), char **p, ...)
4104{
4105  char *s;
4106  va_list v;
4107  va_start (v,p);
4108  s = g (p, va_arg (v,int));
4109  va_end (v);
4110  return s;
4111}
4112
4113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4114   function prototypes and stuff, but not '\xHH' hex character constants.
4115   These don't provoke an error unfortunately, instead are silently treated
4116   as 'x'.  The following induces an error, until -std is added to get
4117   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4118   array size at least.  It's necessary to write '\x00'==0 to get something
4119   that's true only with -std.  */
4120int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4121
4122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4123   inside strings and character constants.  */
4124#define FOO(x) 'x'
4125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4126
4127int test (int i, double x);
4128struct s1 {int (*f) (int a);};
4129struct s2 {int (*f) (double a);};
4130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4131int argc;
4132char **argv;
4133int
4134main ()
4135{
4136return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4142	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4143do
4144  CC="$ac_save_CC $ac_arg"
4145  if ac_fn_c_try_compile "$LINENO"; then :
4146  ac_cv_prog_cc_c89=$ac_arg
4147fi
4148rm -f core conftest.err conftest.$ac_objext
4149  test "x$ac_cv_prog_cc_c89" != "xno" && break
4150done
4151rm -f conftest.$ac_ext
4152CC=$ac_save_CC
4153
4154fi
4155# AC_CACHE_VAL
4156case "x$ac_cv_prog_cc_c89" in
4157  x)
4158    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4159$as_echo "none needed" >&6; } ;;
4160  xno)
4161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4162$as_echo "unsupported" >&6; } ;;
4163  *)
4164    CC="$CC $ac_cv_prog_cc_c89"
4165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4166$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4167esac
4168if test "x$ac_cv_prog_cc_c89" != xno; then :
4169
4170fi
4171
4172ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
4178depcc="$CC"   am_compiler_list=
4179
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4181$as_echo_n "checking dependency style of $depcc... " >&6; }
4182if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4183  $as_echo_n "(cached) " >&6
4184else
4185  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4186  # We make a subdir and do the tests there.  Otherwise we can end up
4187  # making bogus files that we don't know about and never remove.  For
4188  # instance it was reported that on HP-UX the gcc test will end up
4189  # making a dummy file named `D' -- because `-MD' means `put the output
4190  # in D'.
4191  rm -rf conftest.dir
4192  mkdir conftest.dir
4193  # Copy depcomp to subdir because otherwise we won't find it if we're
4194  # using a relative directory.
4195  cp "$am_depcomp" conftest.dir
4196  cd conftest.dir
4197  # We will build objects and dependencies in a subdirectory because
4198  # it helps to detect inapplicable dependency modes.  For instance
4199  # both Tru64's cc and ICC support -MD to output dependencies as a
4200  # side effect of compilation, but ICC will put the dependencies in
4201  # the current directory while Tru64 will put them in the object
4202  # directory.
4203  mkdir sub
4204
4205  am_cv_CC_dependencies_compiler_type=none
4206  if test "$am_compiler_list" = ""; then
4207     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4208  fi
4209  am__universal=false
4210  case " $depcc " in #(
4211     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4212     esac
4213
4214  for depmode in $am_compiler_list; do
4215    # Setup a source with many dependencies, because some compilers
4216    # like to wrap large dependency lists on column 80 (with \), and
4217    # we should not choose a depcomp mode which is confused by this.
4218    #
4219    # We need to recreate these files for each test, as the compiler may
4220    # overwrite some of them when testing with obscure command lines.
4221    # This happens at least with the AIX C compiler.
4222    : > sub/conftest.c
4223    for i in 1 2 3 4 5 6; do
4224      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4225      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4226      # Solaris 8's {/usr,}/bin/sh.
4227      touch sub/conftst$i.h
4228    done
4229    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4230
4231    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4232    # mode.  It turns out that the SunPro C++ compiler does not properly
4233    # handle `-M -o', and we need to detect this.  Also, some Intel
4234    # versions had trouble with output in subdirs
4235    am__obj=sub/conftest.${OBJEXT-o}
4236    am__minus_obj="-o $am__obj"
4237    case $depmode in
4238    gcc)
4239      # This depmode causes a compiler race in universal mode.
4240      test "$am__universal" = false || continue
4241      ;;
4242    nosideeffect)
4243      # after this tag, mechanisms are not by side-effect, so they'll
4244      # only be used when explicitly requested
4245      if test "x$enable_dependency_tracking" = xyes; then
4246	continue
4247      else
4248	break
4249      fi
4250      ;;
4251    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4252      # This compiler won't grok `-c -o', but also, the minuso test has
4253      # not run yet.  These depmodes are late enough in the game, and
4254      # so weak that their functioning should not be impacted.
4255      am__obj=conftest.${OBJEXT-o}
4256      am__minus_obj=
4257      ;;
4258    none) break ;;
4259    esac
4260    if depmode=$depmode \
4261       source=sub/conftest.c object=$am__obj \
4262       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4263       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4264         >/dev/null 2>conftest.err &&
4265       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4266       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4267       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4268       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4269      # icc doesn't choke on unknown options, it will just issue warnings
4270      # or remarks (even with -Werror).  So we grep stderr for any message
4271      # that says an option was ignored or not supported.
4272      # When given -MP, icc 7.0 and 7.1 complain thusly:
4273      #   icc: Command line warning: ignoring option '-M'; no argument required
4274      # The diagnosis changed in icc 8.0:
4275      #   icc: Command line remark: option '-MP' not supported
4276      if (grep 'ignoring option' conftest.err ||
4277          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4278        am_cv_CC_dependencies_compiler_type=$depmode
4279        break
4280      fi
4281    fi
4282  done
4283
4284  cd ..
4285  rm -rf conftest.dir
4286else
4287  am_cv_CC_dependencies_compiler_type=none
4288fi
4289
4290fi
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4292$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4293CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4294
4295 if
4296  test "x$enable_dependency_tracking" != xno \
4297  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4298  am__fastdepCC_TRUE=
4299  am__fastdepCC_FALSE='#'
4300else
4301  am__fastdepCC_TRUE='#'
4302  am__fastdepCC_FALSE=
4303fi
4304
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4307$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4308if ${ac_cv_path_SED+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4312     for ac_i in 1 2 3 4 5 6 7; do
4313       ac_script="$ac_script$as_nl$ac_script"
4314     done
4315     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4316     { ac_script=; unset ac_script;}
4317     if test -z "$SED"; then
4318  ac_path_SED_found=false
4319  # Loop through the user's path and test for each of PROGNAME-LIST
4320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323  IFS=$as_save_IFS
4324  test -z "$as_dir" && as_dir=.
4325    for ac_prog in sed gsed; do
4326    for ac_exec_ext in '' $ac_executable_extensions; do
4327      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4328      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4329# Check for GNU ac_path_SED and select it if it is found.
4330  # Check for GNU $ac_path_SED
4331case `"$ac_path_SED" --version 2>&1` in
4332*GNU*)
4333  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4334*)
4335  ac_count=0
4336  $as_echo_n 0123456789 >"conftest.in"
4337  while :
4338  do
4339    cat "conftest.in" "conftest.in" >"conftest.tmp"
4340    mv "conftest.tmp" "conftest.in"
4341    cp "conftest.in" "conftest.nl"
4342    $as_echo '' >> "conftest.nl"
4343    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345    as_fn_arith $ac_count + 1 && ac_count=$as_val
4346    if test $ac_count -gt ${ac_path_SED_max-0}; then
4347      # Best one so far, save it but keep looking for a better one
4348      ac_cv_path_SED="$ac_path_SED"
4349      ac_path_SED_max=$ac_count
4350    fi
4351    # 10*(2^10) chars as input seems more than enough
4352    test $ac_count -gt 10 && break
4353  done
4354  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355esac
4356
4357      $ac_path_SED_found && break 3
4358    done
4359  done
4360  done
4361IFS=$as_save_IFS
4362  if test -z "$ac_cv_path_SED"; then
4363    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4364  fi
4365else
4366  ac_cv_path_SED=$SED
4367fi
4368
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4371$as_echo "$ac_cv_path_SED" >&6; }
4372 SED="$ac_cv_path_SED"
4373  rm -f conftest.sed
4374
4375test -z "$SED" && SED=sed
4376Xsed="$SED -e 1s/^X//"
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4389$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4390if ${ac_cv_path_GREP+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  if test -z "$GREP"; then
4394  ac_path_GREP_found=false
4395  # Loop through the user's path and test for each of PROGNAME-LIST
4396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398do
4399  IFS=$as_save_IFS
4400  test -z "$as_dir" && as_dir=.
4401    for ac_prog in grep ggrep; do
4402    for ac_exec_ext in '' $ac_executable_extensions; do
4403      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4404      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4405# Check for GNU ac_path_GREP and select it if it is found.
4406  # Check for GNU $ac_path_GREP
4407case `"$ac_path_GREP" --version 2>&1` in
4408*GNU*)
4409  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4410*)
4411  ac_count=0
4412  $as_echo_n 0123456789 >"conftest.in"
4413  while :
4414  do
4415    cat "conftest.in" "conftest.in" >"conftest.tmp"
4416    mv "conftest.tmp" "conftest.in"
4417    cp "conftest.in" "conftest.nl"
4418    $as_echo 'GREP' >> "conftest.nl"
4419    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421    as_fn_arith $ac_count + 1 && ac_count=$as_val
4422    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4423      # Best one so far, save it but keep looking for a better one
4424      ac_cv_path_GREP="$ac_path_GREP"
4425      ac_path_GREP_max=$ac_count
4426    fi
4427    # 10*(2^10) chars as input seems more than enough
4428    test $ac_count -gt 10 && break
4429  done
4430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431esac
4432
4433      $ac_path_GREP_found && break 3
4434    done
4435  done
4436  done
4437IFS=$as_save_IFS
4438  if test -z "$ac_cv_path_GREP"; then
4439    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4440  fi
4441else
4442  ac_cv_path_GREP=$GREP
4443fi
4444
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4447$as_echo "$ac_cv_path_GREP" >&6; }
4448 GREP="$ac_cv_path_GREP"
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4452$as_echo_n "checking for egrep... " >&6; }
4453if ${ac_cv_path_EGREP+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4457   then ac_cv_path_EGREP="$GREP -E"
4458   else
4459     if test -z "$EGREP"; then
4460  ac_path_EGREP_found=false
4461  # Loop through the user's path and test for each of PROGNAME-LIST
4462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467    for ac_prog in egrep; do
4468    for ac_exec_ext in '' $ac_executable_extensions; do
4469      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4470      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4471# Check for GNU ac_path_EGREP and select it if it is found.
4472  # Check for GNU $ac_path_EGREP
4473case `"$ac_path_EGREP" --version 2>&1` in
4474*GNU*)
4475  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4476*)
4477  ac_count=0
4478  $as_echo_n 0123456789 >"conftest.in"
4479  while :
4480  do
4481    cat "conftest.in" "conftest.in" >"conftest.tmp"
4482    mv "conftest.tmp" "conftest.in"
4483    cp "conftest.in" "conftest.nl"
4484    $as_echo 'EGREP' >> "conftest.nl"
4485    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4486    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4487    as_fn_arith $ac_count + 1 && ac_count=$as_val
4488    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4489      # Best one so far, save it but keep looking for a better one
4490      ac_cv_path_EGREP="$ac_path_EGREP"
4491      ac_path_EGREP_max=$ac_count
4492    fi
4493    # 10*(2^10) chars as input seems more than enough
4494    test $ac_count -gt 10 && break
4495  done
4496  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497esac
4498
4499      $ac_path_EGREP_found && break 3
4500    done
4501  done
4502  done
4503IFS=$as_save_IFS
4504  if test -z "$ac_cv_path_EGREP"; then
4505    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506  fi
4507else
4508  ac_cv_path_EGREP=$EGREP
4509fi
4510
4511   fi
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4514$as_echo "$ac_cv_path_EGREP" >&6; }
4515 EGREP="$ac_cv_path_EGREP"
4516
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4519$as_echo_n "checking for fgrep... " >&6; }
4520if ${ac_cv_path_FGREP+:} false; then :
4521  $as_echo_n "(cached) " >&6
4522else
4523  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4524   then ac_cv_path_FGREP="$GREP -F"
4525   else
4526     if test -z "$FGREP"; then
4527  ac_path_FGREP_found=false
4528  # Loop through the user's path and test for each of PROGNAME-LIST
4529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531do
4532  IFS=$as_save_IFS
4533  test -z "$as_dir" && as_dir=.
4534    for ac_prog in fgrep; do
4535    for ac_exec_ext in '' $ac_executable_extensions; do
4536      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4537      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4538# Check for GNU ac_path_FGREP and select it if it is found.
4539  # Check for GNU $ac_path_FGREP
4540case `"$ac_path_FGREP" --version 2>&1` in
4541*GNU*)
4542  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4543*)
4544  ac_count=0
4545  $as_echo_n 0123456789 >"conftest.in"
4546  while :
4547  do
4548    cat "conftest.in" "conftest.in" >"conftest.tmp"
4549    mv "conftest.tmp" "conftest.in"
4550    cp "conftest.in" "conftest.nl"
4551    $as_echo 'FGREP' >> "conftest.nl"
4552    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554    as_fn_arith $ac_count + 1 && ac_count=$as_val
4555    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4556      # Best one so far, save it but keep looking for a better one
4557      ac_cv_path_FGREP="$ac_path_FGREP"
4558      ac_path_FGREP_max=$ac_count
4559    fi
4560    # 10*(2^10) chars as input seems more than enough
4561    test $ac_count -gt 10 && break
4562  done
4563  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564esac
4565
4566      $ac_path_FGREP_found && break 3
4567    done
4568  done
4569  done
4570IFS=$as_save_IFS
4571  if test -z "$ac_cv_path_FGREP"; then
4572    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4573  fi
4574else
4575  ac_cv_path_FGREP=$FGREP
4576fi
4577
4578   fi
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4581$as_echo "$ac_cv_path_FGREP" >&6; }
4582 FGREP="$ac_cv_path_FGREP"
4583
4584
4585test -z "$GREP" && GREP=grep
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605# Check whether --with-gnu-ld was given.
4606if test "${with_gnu_ld+set}" = set; then :
4607  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4608else
4609  with_gnu_ld=no
4610fi
4611
4612ac_prog=ld
4613if test yes = "$GCC"; then
4614  # Check if gcc -print-prog-name=ld gives a path.
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4616$as_echo_n "checking for ld used by $CC... " >&6; }
4617  case $host in
4618  *-*-mingw*)
4619    # gcc leaves a trailing carriage return, which upsets mingw
4620    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4621  *)
4622    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4623  esac
4624  case $ac_prog in
4625    # Accept absolute paths.
4626    [\\/]* | ?:[\\/]*)
4627      re_direlt='/[^/][^/]*/\.\./'
4628      # Canonicalize the pathname of ld
4629      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4630      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4631	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4632      done
4633      test -z "$LD" && LD=$ac_prog
4634      ;;
4635  "")
4636    # If it fails, then pretend we aren't using GCC.
4637    ac_prog=ld
4638    ;;
4639  *)
4640    # If it is relative, then search for the first ld in PATH.
4641    with_gnu_ld=unknown
4642    ;;
4643  esac
4644elif test yes = "$with_gnu_ld"; then
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4646$as_echo_n "checking for GNU ld... " >&6; }
4647else
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4649$as_echo_n "checking for non-GNU ld... " >&6; }
4650fi
4651if ${lt_cv_path_LD+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -z "$LD"; then
4655  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4656  for ac_dir in $PATH; do
4657    IFS=$lt_save_ifs
4658    test -z "$ac_dir" && ac_dir=.
4659    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4660      lt_cv_path_LD=$ac_dir/$ac_prog
4661      # Check to see if the program is GNU ld.  I'd rather use --version,
4662      # but apparently some variants of GNU ld only accept -v.
4663      # Break only if it was the GNU/non-GNU ld that we prefer.
4664      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4665      *GNU* | *'with BFD'*)
4666	test no != "$with_gnu_ld" && break
4667	;;
4668      *)
4669	test yes != "$with_gnu_ld" && break
4670	;;
4671      esac
4672    fi
4673  done
4674  IFS=$lt_save_ifs
4675else
4676  lt_cv_path_LD=$LD # Let the user override the test with a path.
4677fi
4678fi
4679
4680LD=$lt_cv_path_LD
4681if test -n "$LD"; then
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4683$as_echo "$LD" >&6; }
4684else
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686$as_echo "no" >&6; }
4687fi
4688test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4690$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4691if ${lt_cv_prog_gnu_ld+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4695case `$LD -v 2>&1 </dev/null` in
4696*GNU* | *'with BFD'*)
4697  lt_cv_prog_gnu_ld=yes
4698  ;;
4699*)
4700  lt_cv_prog_gnu_ld=no
4701  ;;
4702esac
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4705$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4706with_gnu_ld=$lt_cv_prog_gnu_ld
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4717$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4718if ${lt_cv_path_NM+:} false; then :
4719  $as_echo_n "(cached) " >&6
4720else
4721  if test -n "$NM"; then
4722  # Let the user override the test.
4723  lt_cv_path_NM=$NM
4724else
4725  lt_nm_to_check=${ac_tool_prefix}nm
4726  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4727    lt_nm_to_check="$lt_nm_to_check nm"
4728  fi
4729  for lt_tmp_nm in $lt_nm_to_check; do
4730    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4731    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4732      IFS=$lt_save_ifs
4733      test -z "$ac_dir" && ac_dir=.
4734      tmp_nm=$ac_dir/$lt_tmp_nm
4735      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4736	# Check to see if the nm accepts a BSD-compat flag.
4737	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4738	#   nm: unknown option "B" ignored
4739	# Tru64's nm complains that /dev/null is an invalid object file
4740	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4741	case $build_os in
4742	mingw*) lt_bad_file=conftest.nm/nofile ;;
4743	*) lt_bad_file=/dev/null ;;
4744	esac
4745	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4746	*$lt_bad_file* | *'Invalid file or object type'*)
4747	  lt_cv_path_NM="$tmp_nm -B"
4748	  break 2
4749	  ;;
4750	*)
4751	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4752	  */dev/null*)
4753	    lt_cv_path_NM="$tmp_nm -p"
4754	    break 2
4755	    ;;
4756	  *)
4757	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4758	    continue # so that we can try to find one that supports BSD flags
4759	    ;;
4760	  esac
4761	  ;;
4762	esac
4763      fi
4764    done
4765    IFS=$lt_save_ifs
4766  done
4767  : ${lt_cv_path_NM=no}
4768fi
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4771$as_echo "$lt_cv_path_NM" >&6; }
4772if test no != "$lt_cv_path_NM"; then
4773  NM=$lt_cv_path_NM
4774else
4775  # Didn't find any BSD compatible name lister, look for dumpbin.
4776  if test -n "$DUMPBIN"; then :
4777    # Let the user override the test.
4778  else
4779    if test -n "$ac_tool_prefix"; then
4780  for ac_prog in dumpbin "link -dump"
4781  do
4782    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785$as_echo_n "checking for $ac_word... " >&6; }
4786if ${ac_cv_prog_DUMPBIN+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  if test -n "$DUMPBIN"; then
4790  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804  done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809DUMPBIN=$ac_cv_prog_DUMPBIN
4810if test -n "$DUMPBIN"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4812$as_echo "$DUMPBIN" >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815$as_echo "no" >&6; }
4816fi
4817
4818
4819    test -n "$DUMPBIN" && break
4820  done
4821fi
4822if test -z "$DUMPBIN"; then
4823  ac_ct_DUMPBIN=$DUMPBIN
4824  for ac_prog in dumpbin "link -dump"
4825do
4826  # Extract the first word of "$ac_prog", so it can be a program name with args.
4827set dummy $ac_prog; ac_word=$2
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
4830if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  if test -n "$ac_ct_DUMPBIN"; then
4834  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839  IFS=$as_save_IFS
4840  test -z "$as_dir" && as_dir=.
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848  done
4849IFS=$as_save_IFS
4850
4851fi
4852fi
4853ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4854if test -n "$ac_ct_DUMPBIN"; then
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4856$as_echo "$ac_ct_DUMPBIN" >&6; }
4857else
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
4860fi
4861
4862
4863  test -n "$ac_ct_DUMPBIN" && break
4864done
4865
4866  if test "x$ac_ct_DUMPBIN" = x; then
4867    DUMPBIN=":"
4868  else
4869    case $cross_compiling:$ac_tool_warned in
4870yes:)
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873ac_tool_warned=yes ;;
4874esac
4875    DUMPBIN=$ac_ct_DUMPBIN
4876  fi
4877fi
4878
4879    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4880    *COFF*)
4881      DUMPBIN="$DUMPBIN -symbols -headers"
4882      ;;
4883    *)
4884      DUMPBIN=:
4885      ;;
4886    esac
4887  fi
4888
4889  if test : != "$DUMPBIN"; then
4890    NM=$DUMPBIN
4891  fi
4892fi
4893test -z "$NM" && NM=nm
4894
4895
4896
4897
4898
4899
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4901$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4902if ${lt_cv_nm_interface+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  lt_cv_nm_interface="BSD nm"
4906  echo "int some_variable = 0;" > conftest.$ac_ext
4907  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4908  (eval "$ac_compile" 2>conftest.err)
4909  cat conftest.err >&5
4910  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4911  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4912  cat conftest.err >&5
4913  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4914  cat conftest.out >&5
4915  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4916    lt_cv_nm_interface="MS dumpbin"
4917  fi
4918  rm -f conftest*
4919fi
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4921$as_echo "$lt_cv_nm_interface" >&6; }
4922
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4924$as_echo_n "checking whether ln -s works... " >&6; }
4925LN_S=$as_ln_s
4926if test "$LN_S" = "ln -s"; then
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928$as_echo "yes" >&6; }
4929else
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4931$as_echo "no, using $LN_S" >&6; }
4932fi
4933
4934# find the maximum length of command line arguments
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4936$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4937if ${lt_cv_sys_max_cmd_len+:} false; then :
4938  $as_echo_n "(cached) " >&6
4939else
4940    i=0
4941  teststring=ABCD
4942
4943  case $build_os in
4944  msdosdjgpp*)
4945    # On DJGPP, this test can blow up pretty badly due to problems in libc
4946    # (any single argument exceeding 2000 bytes causes a buffer overrun
4947    # during glob expansion).  Even if it were fixed, the result of this
4948    # check would be larger than it should be.
4949    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4950    ;;
4951
4952  gnu*)
4953    # Under GNU Hurd, this test is not required because there is
4954    # no limit to the length of command line arguments.
4955    # Libtool will interpret -1 as no limit whatsoever
4956    lt_cv_sys_max_cmd_len=-1;
4957    ;;
4958
4959  cygwin* | mingw* | cegcc*)
4960    # On Win9x/ME, this test blows up -- it succeeds, but takes
4961    # about 5 minutes as the teststring grows exponentially.
4962    # Worse, since 9x/ME are not pre-emptively multitasking,
4963    # you end up with a "frozen" computer, even though with patience
4964    # the test eventually succeeds (with a max line length of 256k).
4965    # Instead, let's just punt: use the minimum linelength reported by
4966    # all of the supported platforms: 8192 (on NT/2K/XP).
4967    lt_cv_sys_max_cmd_len=8192;
4968    ;;
4969
4970  mint*)
4971    # On MiNT this can take a long time and run out of memory.
4972    lt_cv_sys_max_cmd_len=8192;
4973    ;;
4974
4975  amigaos*)
4976    # On AmigaOS with pdksh, this test takes hours, literally.
4977    # So we just punt and use a minimum line length of 8192.
4978    lt_cv_sys_max_cmd_len=8192;
4979    ;;
4980
4981  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4982    # This has been around since 386BSD, at least.  Likely further.
4983    if test -x /sbin/sysctl; then
4984      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4985    elif test -x /usr/sbin/sysctl; then
4986      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4987    else
4988      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4989    fi
4990    # And add a safety zone
4991    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4992    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4993    ;;
4994
4995  interix*)
4996    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4997    lt_cv_sys_max_cmd_len=196608
4998    ;;
4999
5000  os2*)
5001    # The test takes a long time on OS/2.
5002    lt_cv_sys_max_cmd_len=8192
5003    ;;
5004
5005  osf*)
5006    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5007    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5008    # nice to cause kernel panics so lets avoid the loop below.
5009    # First set a reasonable default.
5010    lt_cv_sys_max_cmd_len=16384
5011    #
5012    if test -x /sbin/sysconfig; then
5013      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5014        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5015      esac
5016    fi
5017    ;;
5018  sco3.2v5*)
5019    lt_cv_sys_max_cmd_len=102400
5020    ;;
5021  sysv5* | sco5v6* | sysv4.2uw2*)
5022    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5023    if test -n "$kargmax"; then
5024      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5025    else
5026      lt_cv_sys_max_cmd_len=32768
5027    fi
5028    ;;
5029  *)
5030    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5031    if test -n "$lt_cv_sys_max_cmd_len" && \
5032       test undefined != "$lt_cv_sys_max_cmd_len"; then
5033      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5034      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5035    else
5036      # Make teststring a little bigger before we do anything with it.
5037      # a 1K string should be a reasonable start.
5038      for i in 1 2 3 4 5 6 7 8; do
5039        teststring=$teststring$teststring
5040      done
5041      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5042      # If test is not a shell built-in, we'll probably end up computing a
5043      # maximum length that is only half of the actual maximum length, but
5044      # we can't tell.
5045      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5046	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5047	      test 17 != "$i" # 1/2 MB should be enough
5048      do
5049        i=`expr $i + 1`
5050        teststring=$teststring$teststring
5051      done
5052      # Only check the string length outside the loop.
5053      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5054      teststring=
5055      # Add a significant safety factor because C++ compilers can tack on
5056      # massive amounts of additional arguments before passing them to the
5057      # linker.  It appears as though 1/2 is a usable value.
5058      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5059    fi
5060    ;;
5061  esac
5062
5063fi
5064
5065if test -n "$lt_cv_sys_max_cmd_len"; then
5066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5067$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5068else
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5070$as_echo "none" >&6; }
5071fi
5072max_cmd_len=$lt_cv_sys_max_cmd_len
5073
5074
5075
5076
5077
5078
5079: ${CP="cp -f"}
5080: ${MV="mv -f"}
5081: ${RM="rm -f"}
5082
5083if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5084  lt_unset=unset
5085else
5086  lt_unset=false
5087fi
5088
5089
5090
5091
5092
5093# test EBCDIC or ASCII
5094case `echo X|tr X '\101'` in
5095 A) # ASCII based system
5096    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5097  lt_SP2NL='tr \040 \012'
5098  lt_NL2SP='tr \015\012 \040\040'
5099  ;;
5100 *) # EBCDIC based system
5101  lt_SP2NL='tr \100 \n'
5102  lt_NL2SP='tr \r\n \100\100'
5103  ;;
5104esac
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5115$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5116if ${lt_cv_to_host_file_cmd+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  case $host in
5120  *-*-mingw* )
5121    case $build in
5122      *-*-mingw* ) # actually msys
5123        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5124        ;;
5125      *-*-cygwin* )
5126        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5127        ;;
5128      * ) # otherwise, assume *nix
5129        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5130        ;;
5131    esac
5132    ;;
5133  *-*-cygwin* )
5134    case $build in
5135      *-*-mingw* ) # actually msys
5136        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5137        ;;
5138      *-*-cygwin* )
5139        lt_cv_to_host_file_cmd=func_convert_file_noop
5140        ;;
5141      * ) # otherwise, assume *nix
5142        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5143        ;;
5144    esac
5145    ;;
5146  * ) # unhandled hosts (and "normal" native builds)
5147    lt_cv_to_host_file_cmd=func_convert_file_noop
5148    ;;
5149esac
5150
5151fi
5152
5153to_host_file_cmd=$lt_cv_to_host_file_cmd
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5155$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5156
5157
5158
5159
5160
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5162$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5163if ${lt_cv_to_tool_file_cmd+:} false; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  #assume ordinary cross tools, or native build.
5167lt_cv_to_tool_file_cmd=func_convert_file_noop
5168case $host in
5169  *-*-mingw* )
5170    case $build in
5171      *-*-mingw* ) # actually msys
5172        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5173        ;;
5174    esac
5175    ;;
5176esac
5177
5178fi
5179
5180to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5182$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5183
5184
5185
5186
5187
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5189$as_echo_n "checking for $LD option to reload object files... " >&6; }
5190if ${lt_cv_ld_reload_flag+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  lt_cv_ld_reload_flag='-r'
5194fi
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5196$as_echo "$lt_cv_ld_reload_flag" >&6; }
5197reload_flag=$lt_cv_ld_reload_flag
5198case $reload_flag in
5199"" | " "*) ;;
5200*) reload_flag=" $reload_flag" ;;
5201esac
5202reload_cmds='$LD$reload_flag -o $output$reload_objs'
5203case $host_os in
5204  cygwin* | mingw* | pw32* | cegcc*)
5205    if test yes != "$GCC"; then
5206      reload_cmds=false
5207    fi
5208    ;;
5209  darwin*)
5210    if test yes = "$GCC"; then
5211      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5212    else
5213      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5214    fi
5215    ;;
5216esac
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226if test -n "$ac_tool_prefix"; then
5227  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5228set dummy ${ac_tool_prefix}objdump; ac_word=$2
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
5231if ${ac_cv_prog_OBJDUMP+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  if test -n "$OBJDUMP"; then
5235  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242    for ac_exec_ext in '' $ac_executable_extensions; do
5243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249  done
5250IFS=$as_save_IFS
5251
5252fi
5253fi
5254OBJDUMP=$ac_cv_prog_OBJDUMP
5255if test -n "$OBJDUMP"; then
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5257$as_echo "$OBJDUMP" >&6; }
5258else
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260$as_echo "no" >&6; }
5261fi
5262
5263
5264fi
5265if test -z "$ac_cv_prog_OBJDUMP"; then
5266  ac_ct_OBJDUMP=$OBJDUMP
5267  # Extract the first word of "objdump", so it can be a program name with args.
5268set dummy objdump; ac_word=$2
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  if test -n "$ac_ct_OBJDUMP"; then
5275  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_exec_ext in '' $ac_executable_extensions; do
5283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289  done
5290IFS=$as_save_IFS
5291
5292fi
5293fi
5294ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5295if test -n "$ac_ct_OBJDUMP"; then
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5297$as_echo "$ac_ct_OBJDUMP" >&6; }
5298else
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300$as_echo "no" >&6; }
5301fi
5302
5303  if test "x$ac_ct_OBJDUMP" = x; then
5304    OBJDUMP="false"
5305  else
5306    case $cross_compiling:$ac_tool_warned in
5307yes:)
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310ac_tool_warned=yes ;;
5311esac
5312    OBJDUMP=$ac_ct_OBJDUMP
5313  fi
5314else
5315  OBJDUMP="$ac_cv_prog_OBJDUMP"
5316fi
5317
5318test -z "$OBJDUMP" && OBJDUMP=objdump
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5329$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5330if ${lt_cv_deplibs_check_method+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  lt_cv_file_magic_cmd='$MAGIC_CMD'
5334lt_cv_file_magic_test_file=
5335lt_cv_deplibs_check_method='unknown'
5336# Need to set the preceding variable on all platforms that support
5337# interlibrary dependencies.
5338# 'none' -- dependencies not supported.
5339# 'unknown' -- same as none, but documents that we really don't know.
5340# 'pass_all' -- all dependencies passed with no checks.
5341# 'test_compile' -- check by making test program.
5342# 'file_magic [[regex]]' -- check by looking for files in library path
5343# that responds to the $file_magic_cmd with a given extended regex.
5344# If you have 'file' or equivalent on your system and you're not sure
5345# whether 'pass_all' will *always* work, you probably want this one.
5346
5347case $host_os in
5348aix[4-9]*)
5349  lt_cv_deplibs_check_method=pass_all
5350  ;;
5351
5352beos*)
5353  lt_cv_deplibs_check_method=pass_all
5354  ;;
5355
5356bsdi[45]*)
5357  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5358  lt_cv_file_magic_cmd='/usr/bin/file -L'
5359  lt_cv_file_magic_test_file=/shlib/libc.so
5360  ;;
5361
5362cygwin*)
5363  # func_win32_libid is a shell function defined in ltmain.sh
5364  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5365  lt_cv_file_magic_cmd='func_win32_libid'
5366  ;;
5367
5368mingw* | pw32*)
5369  # Base MSYS/MinGW do not provide the 'file' command needed by
5370  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5371  # unless we find 'file', for example because we are cross-compiling.
5372  if ( file / ) >/dev/null 2>&1; then
5373    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374    lt_cv_file_magic_cmd='func_win32_libid'
5375  else
5376    # Keep this pattern in sync with the one in func_win32_libid.
5377    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5378    lt_cv_file_magic_cmd='$OBJDUMP -f'
5379  fi
5380  ;;
5381
5382cegcc*)
5383  # use the weaker test based on 'objdump'. See mingw*.
5384  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5385  lt_cv_file_magic_cmd='$OBJDUMP -f'
5386  ;;
5387
5388darwin* | rhapsody*)
5389  lt_cv_deplibs_check_method=pass_all
5390  ;;
5391
5392freebsd* | dragonfly*)
5393  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5394    case $host_cpu in
5395    i*86 )
5396      # Not sure whether the presence of OpenBSD here was a mistake.
5397      # Let's accept both of them until this is cleared up.
5398      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5399      lt_cv_file_magic_cmd=/usr/bin/file
5400      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5401      ;;
5402    esac
5403  else
5404    lt_cv_deplibs_check_method=pass_all
5405  fi
5406  ;;
5407
5408haiku*)
5409  lt_cv_deplibs_check_method=pass_all
5410  ;;
5411
5412hpux10.20* | hpux11*)
5413  lt_cv_file_magic_cmd=/usr/bin/file
5414  case $host_cpu in
5415  ia64*)
5416    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5417    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5418    ;;
5419  hppa*64*)
5420    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]'
5421    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5422    ;;
5423  *)
5424    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5425    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5426    ;;
5427  esac
5428  ;;
5429
5430interix[3-9]*)
5431  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5432  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5433  ;;
5434
5435irix5* | irix6* | nonstopux*)
5436  case $LD in
5437  *-32|*"-32 ") libmagic=32-bit;;
5438  *-n32|*"-n32 ") libmagic=N32;;
5439  *-64|*"-64 ") libmagic=64-bit;;
5440  *) libmagic=never-match;;
5441  esac
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444
5445# This must be glibc/ELF.
5446linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5447  lt_cv_deplibs_check_method=pass_all
5448  ;;
5449
5450netbsd*)
5451  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5452    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5453  else
5454    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5455  fi
5456  ;;
5457
5458newos6*)
5459  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5460  lt_cv_file_magic_cmd=/usr/bin/file
5461  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5462  ;;
5463
5464*nto* | *qnx*)
5465  lt_cv_deplibs_check_method=pass_all
5466  ;;
5467
5468openbsd* | bitrig*)
5469  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5470    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5471  else
5472    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5473  fi
5474  ;;
5475
5476osf3* | osf4* | osf5*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480rdos*)
5481  lt_cv_deplibs_check_method=pass_all
5482  ;;
5483
5484solaris*)
5485  lt_cv_deplibs_check_method=pass_all
5486  ;;
5487
5488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5489  lt_cv_deplibs_check_method=pass_all
5490  ;;
5491
5492sysv4 | sysv4.3*)
5493  case $host_vendor in
5494  motorola)
5495    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]'
5496    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5497    ;;
5498  ncr)
5499    lt_cv_deplibs_check_method=pass_all
5500    ;;
5501  sequent)
5502    lt_cv_file_magic_cmd='/bin/file'
5503    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5504    ;;
5505  sni)
5506    lt_cv_file_magic_cmd='/bin/file'
5507    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5508    lt_cv_file_magic_test_file=/lib/libc.so
5509    ;;
5510  siemens)
5511    lt_cv_deplibs_check_method=pass_all
5512    ;;
5513  pc)
5514    lt_cv_deplibs_check_method=pass_all
5515    ;;
5516  esac
5517  ;;
5518
5519tpf*)
5520  lt_cv_deplibs_check_method=pass_all
5521  ;;
5522os2*)
5523  lt_cv_deplibs_check_method=pass_all
5524  ;;
5525esac
5526
5527fi
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5529$as_echo "$lt_cv_deplibs_check_method" >&6; }
5530
5531file_magic_glob=
5532want_nocaseglob=no
5533if test "$build" = "$host"; then
5534  case $host_os in
5535  mingw* | pw32*)
5536    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5537      want_nocaseglob=yes
5538    else
5539      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5540    fi
5541    ;;
5542  esac
5543fi
5544
5545file_magic_cmd=$lt_cv_file_magic_cmd
5546deplibs_check_method=$lt_cv_deplibs_check_method
5547test -z "$deplibs_check_method" && deplibs_check_method=unknown
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570if test -n "$ac_tool_prefix"; then
5571  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5572set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574$as_echo_n "checking for $ac_word... " >&6; }
5575if ${ac_cv_prog_DLLTOOL+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578  if test -n "$DLLTOOL"; then
5579  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5580else
5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH
5583do
5584  IFS=$as_save_IFS
5585  test -z "$as_dir" && as_dir=.
5586    for ac_exec_ext in '' $ac_executable_extensions; do
5587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590    break 2
5591  fi
5592done
5593  done
5594IFS=$as_save_IFS
5595
5596fi
5597fi
5598DLLTOOL=$ac_cv_prog_DLLTOOL
5599if test -n "$DLLTOOL"; then
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5601$as_echo "$DLLTOOL" >&6; }
5602else
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
5605fi
5606
5607
5608fi
5609if test -z "$ac_cv_prog_DLLTOOL"; then
5610  ac_ct_DLLTOOL=$DLLTOOL
5611  # Extract the first word of "dlltool", so it can be a program name with args.
5612set dummy dlltool; ac_word=$2
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
5615if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5616  $as_echo_n "(cached) " >&6
5617else
5618  if test -n "$ac_ct_DLLTOOL"; then
5619  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626    for ac_exec_ext in '' $ac_executable_extensions; do
5627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630    break 2
5631  fi
5632done
5633  done
5634IFS=$as_save_IFS
5635
5636fi
5637fi
5638ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5639if test -n "$ac_ct_DLLTOOL"; then
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5641$as_echo "$ac_ct_DLLTOOL" >&6; }
5642else
5643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647  if test "x$ac_ct_DLLTOOL" = x; then
5648    DLLTOOL="false"
5649  else
5650    case $cross_compiling:$ac_tool_warned in
5651yes:)
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654ac_tool_warned=yes ;;
5655esac
5656    DLLTOOL=$ac_ct_DLLTOOL
5657  fi
5658else
5659  DLLTOOL="$ac_cv_prog_DLLTOOL"
5660fi
5661
5662test -z "$DLLTOOL" && DLLTOOL=dlltool
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5674$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5675if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  lt_cv_sharedlib_from_linklib_cmd='unknown'
5679
5680case $host_os in
5681cygwin* | mingw* | pw32* | cegcc*)
5682  # two different shell functions defined in ltmain.sh;
5683  # decide which one to use based on capabilities of $DLLTOOL
5684  case `$DLLTOOL --help 2>&1` in
5685  *--identify-strict*)
5686    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5687    ;;
5688  *)
5689    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5690    ;;
5691  esac
5692  ;;
5693*)
5694  # fallback: assume linklib IS sharedlib
5695  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5696  ;;
5697esac
5698
5699fi
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5701$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5702sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5703test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5704
5705
5706
5707
5708
5709
5710
5711
5712if test -n "$ac_tool_prefix"; then
5713  for ac_prog in ar
5714  do
5715    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if ${ac_cv_prog_AR+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$AR"; then
5723  ac_cv_prog_AR="$AR" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742AR=$ac_cv_prog_AR
5743if test -n "$AR"; then
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5745$as_echo "$AR" >&6; }
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751
5752    test -n "$AR" && break
5753  done
5754fi
5755if test -z "$AR"; then
5756  ac_ct_AR=$AR
5757  for ac_prog in ar
5758do
5759  # Extract the first word of "$ac_prog", so it can be a program name with args.
5760set dummy $ac_prog; ac_word=$2
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if ${ac_cv_prog_ac_ct_AR+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  if test -n "$ac_ct_AR"; then
5767  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772  IFS=$as_save_IFS
5773  test -z "$as_dir" && as_dir=.
5774    for ac_exec_ext in '' $ac_executable_extensions; do
5775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776    ac_cv_prog_ac_ct_AR="$ac_prog"
5777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778    break 2
5779  fi
5780done
5781  done
5782IFS=$as_save_IFS
5783
5784fi
5785fi
5786ac_ct_AR=$ac_cv_prog_ac_ct_AR
5787if test -n "$ac_ct_AR"; then
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5789$as_echo "$ac_ct_AR" >&6; }
5790else
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794
5795
5796  test -n "$ac_ct_AR" && break
5797done
5798
5799  if test "x$ac_ct_AR" = x; then
5800    AR="false"
5801  else
5802    case $cross_compiling:$ac_tool_warned in
5803yes:)
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806ac_tool_warned=yes ;;
5807esac
5808    AR=$ac_ct_AR
5809  fi
5810fi
5811
5812: ${AR=ar}
5813: ${AR_FLAGS=cru}
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5826$as_echo_n "checking for archiver @FILE support... " >&6; }
5827if ${lt_cv_ar_at_file+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  lt_cv_ar_at_file=no
5831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833
5834int
5835main ()
5836{
5837
5838  ;
5839  return 0;
5840}
5841_ACEOF
5842if ac_fn_c_try_compile "$LINENO"; then :
5843  echo conftest.$ac_objext > conftest.lst
5844      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5845      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5846  (eval $lt_ar_try) 2>&5
5847  ac_status=$?
5848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5849  test $ac_status = 0; }
5850      if test 0 -eq "$ac_status"; then
5851	# Ensure the archiver fails upon bogus file names.
5852	rm -f conftest.$ac_objext libconftest.a
5853	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5854  (eval $lt_ar_try) 2>&5
5855  ac_status=$?
5856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857  test $ac_status = 0; }
5858	if test 0 -ne "$ac_status"; then
5859          lt_cv_ar_at_file=@
5860        fi
5861      fi
5862      rm -f conftest.* libconftest.a
5863
5864fi
5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5869$as_echo "$lt_cv_ar_at_file" >&6; }
5870
5871if test no = "$lt_cv_ar_at_file"; then
5872  archiver_list_spec=
5873else
5874  archiver_list_spec=$lt_cv_ar_at_file
5875fi
5876
5877
5878
5879
5880
5881
5882
5883if test -n "$ac_tool_prefix"; then
5884  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}strip; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
5888if ${ac_cv_prog_STRIP+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  if test -n "$STRIP"; then
5892  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897  IFS=$as_save_IFS
5898  test -z "$as_dir" && as_dir=.
5899    for ac_exec_ext in '' $ac_executable_extensions; do
5900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903    break 2
5904  fi
5905done
5906  done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911STRIP=$ac_cv_prog_STRIP
5912if test -n "$STRIP"; then
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5914$as_echo "$STRIP" >&6; }
5915else
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920
5921fi
5922if test -z "$ac_cv_prog_STRIP"; then
5923  ac_ct_STRIP=$STRIP
5924  # Extract the first word of "strip", so it can be a program name with args.
5925set dummy strip; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$ac_ct_STRIP"; then
5932  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941    ac_cv_prog_ac_ct_STRIP="strip"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5952if test -n "$ac_ct_STRIP"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5954$as_echo "$ac_ct_STRIP" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960  if test "x$ac_ct_STRIP" = x; then
5961    STRIP=":"
5962  else
5963    case $cross_compiling:$ac_tool_warned in
5964yes:)
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967ac_tool_warned=yes ;;
5968esac
5969    STRIP=$ac_ct_STRIP
5970  fi
5971else
5972  STRIP="$ac_cv_prog_STRIP"
5973fi
5974
5975test -z "$STRIP" && STRIP=:
5976
5977
5978
5979
5980
5981
5982if test -n "$ac_tool_prefix"; then
5983  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5984set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
5987if ${ac_cv_prog_RANLIB+:} false; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  if test -n "$RANLIB"; then
5991  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996  IFS=$as_save_IFS
5997  test -z "$as_dir" && as_dir=.
5998    for ac_exec_ext in '' $ac_executable_extensions; do
5999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002    break 2
6003  fi
6004done
6005  done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010RANLIB=$ac_cv_prog_RANLIB
6011if test -n "$RANLIB"; then
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6013$as_echo "$RANLIB" >&6; }
6014else
6015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
6018
6019
6020fi
6021if test -z "$ac_cv_prog_RANLIB"; then
6022  ac_ct_RANLIB=$RANLIB
6023  # Extract the first word of "ranlib", so it can be a program name with args.
6024set dummy ranlib; ac_word=$2
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026$as_echo_n "checking for $ac_word... " >&6; }
6027if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  if test -n "$ac_ct_RANLIB"; then
6031  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036  IFS=$as_save_IFS
6037  test -z "$as_dir" && as_dir=.
6038    for ac_exec_ext in '' $ac_executable_extensions; do
6039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040    ac_cv_prog_ac_ct_RANLIB="ranlib"
6041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042    break 2
6043  fi
6044done
6045  done
6046IFS=$as_save_IFS
6047
6048fi
6049fi
6050ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6051if test -n "$ac_ct_RANLIB"; then
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6053$as_echo "$ac_ct_RANLIB" >&6; }
6054else
6055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059  if test "x$ac_ct_RANLIB" = x; then
6060    RANLIB=":"
6061  else
6062    case $cross_compiling:$ac_tool_warned in
6063yes:)
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066ac_tool_warned=yes ;;
6067esac
6068    RANLIB=$ac_ct_RANLIB
6069  fi
6070else
6071  RANLIB="$ac_cv_prog_RANLIB"
6072fi
6073
6074test -z "$RANLIB" && RANLIB=:
6075
6076
6077
6078
6079
6080
6081# Determine commands to create old-style static archives.
6082old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6083old_postinstall_cmds='chmod 644 $oldlib'
6084old_postuninstall_cmds=
6085
6086if test -n "$RANLIB"; then
6087  case $host_os in
6088  bitrig* | openbsd*)
6089    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6090    ;;
6091  *)
6092    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6093    ;;
6094  esac
6095  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6096fi
6097
6098case $host_os in
6099  darwin*)
6100    lock_old_archive_extraction=yes ;;
6101  *)
6102    lock_old_archive_extraction=no ;;
6103esac
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143# If no C compiler was specified, use CC.
6144LTCC=${LTCC-"$CC"}
6145
6146# If no C compiler flags were specified, use CFLAGS.
6147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6148
6149# Allow CC to be a program name with arguments.
6150compiler=$CC
6151
6152
6153# Check for command to grab the raw symbol name followed by C symbol from nm.
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6155$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6156if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6157  $as_echo_n "(cached) " >&6
6158else
6159
6160# These are sane defaults that work on at least a few old systems.
6161# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6162
6163# Character class describing NM global symbol codes.
6164symcode='[BCDEGRST]'
6165
6166# Regexp to match symbols that can be accessed directly from C.
6167sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6168
6169# Define system-specific variables.
6170case $host_os in
6171aix*)
6172  symcode='[BCDT]'
6173  ;;
6174cygwin* | mingw* | pw32* | cegcc*)
6175  symcode='[ABCDGISTW]'
6176  ;;
6177hpux*)
6178  if test ia64 = "$host_cpu"; then
6179    symcode='[ABCDEGRST]'
6180  fi
6181  ;;
6182irix* | nonstopux*)
6183  symcode='[BCDEGRST]'
6184  ;;
6185osf*)
6186  symcode='[BCDEGQRST]'
6187  ;;
6188solaris*)
6189  symcode='[BDRT]'
6190  ;;
6191sco3.2v5*)
6192  symcode='[DT]'
6193  ;;
6194sysv4.2uw2*)
6195  symcode='[DT]'
6196  ;;
6197sysv5* | sco5v6* | unixware* | OpenUNIX*)
6198  symcode='[ABDT]'
6199  ;;
6200sysv4)
6201  symcode='[DFNSTU]'
6202  ;;
6203esac
6204
6205# If we're using GNU nm, then use its standard symbol codes.
6206case `$NM -V 2>&1` in
6207*GNU* | *'with BFD'*)
6208  symcode='[ABCDGIRSTW]' ;;
6209esac
6210
6211if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6212  # Gets list of data symbols to import.
6213  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6214  # Adjust the below global symbol transforms to fixup imported variables.
6215  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6216  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6217  lt_c_name_lib_hook="\
6218  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6219  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6220else
6221  # Disable hooks by default.
6222  lt_cv_sys_global_symbol_to_import=
6223  lt_cdecl_hook=
6224  lt_c_name_hook=
6225  lt_c_name_lib_hook=
6226fi
6227
6228# Transform an extracted symbol line into a proper C declaration.
6229# Some systems (esp. on ia64) link data and code symbols differently,
6230# so use this general approach.
6231lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6232$lt_cdecl_hook\
6233" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6234" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6235
6236# Transform an extracted symbol line into symbol name and symbol address
6237lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6238$lt_c_name_hook\
6239" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6240" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6241
6242# Transform an extracted symbol line into symbol name with lib prefix and
6243# symbol address.
6244lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6245$lt_c_name_lib_hook\
6246" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6247" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6248" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6249
6250# Handle CRLF in mingw tool chain
6251opt_cr=
6252case $build_os in
6253mingw*)
6254  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6255  ;;
6256esac
6257
6258# Try without a prefix underscore, then with it.
6259for ac_symprfx in "" "_"; do
6260
6261  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6262  symxfrm="\\1 $ac_symprfx\\2 \\2"
6263
6264  # Write the raw and C identifiers.
6265  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266    # Fake it for dumpbin and say T for any non-static function,
6267    # D for any global variable and I for any imported variable.
6268    # Also find C++ and __fastcall symbols from MSVC++,
6269    # which start with @ or ?.
6270    lt_cv_sys_global_symbol_pipe="$AWK '"\
6271"     {last_section=section; section=\$ 3};"\
6272"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6273"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6274"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6275"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6276"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6277"     \$ 0!~/External *\|/{next};"\
6278"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6279"     {if(hide[section]) next};"\
6280"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6281"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6282"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6283"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6284"     ' prfx=^$ac_symprfx"
6285  else
6286    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6287  fi
6288  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6289
6290  # Check to see that the pipe works correctly.
6291  pipe_works=no
6292
6293  rm -f conftest*
6294  cat > conftest.$ac_ext <<_LT_EOF
6295#ifdef __cplusplus
6296extern "C" {
6297#endif
6298char nm_test_var;
6299void nm_test_func(void);
6300void nm_test_func(void){}
6301#ifdef __cplusplus
6302}
6303#endif
6304int main(){nm_test_var='a';nm_test_func();return(0);}
6305_LT_EOF
6306
6307  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308  (eval $ac_compile) 2>&5
6309  ac_status=$?
6310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311  test $ac_status = 0; }; then
6312    # Now try to grab the symbols.
6313    nlist=conftest.nm
6314    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6315  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6316  ac_status=$?
6317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318  test $ac_status = 0; } && test -s "$nlist"; then
6319      # Try sorting and uniquifying the output.
6320      if sort "$nlist" | uniq > "$nlist"T; then
6321	mv -f "$nlist"T "$nlist"
6322      else
6323	rm -f "$nlist"T
6324      fi
6325
6326      # Make sure that we snagged all the symbols we need.
6327      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6328	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6329	  cat <<_LT_EOF > conftest.$ac_ext
6330/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6331#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6332/* DATA imports from DLLs on WIN32 can't be const, because runtime
6333   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6334# define LT_DLSYM_CONST
6335#elif defined __osf__
6336/* This system does not cope well with relocations in const data.  */
6337# define LT_DLSYM_CONST
6338#else
6339# define LT_DLSYM_CONST const
6340#endif
6341
6342#ifdef __cplusplus
6343extern "C" {
6344#endif
6345
6346_LT_EOF
6347	  # Now generate the symbol file.
6348	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6349
6350	  cat <<_LT_EOF >> conftest.$ac_ext
6351
6352/* The mapping between symbol names and symbols.  */
6353LT_DLSYM_CONST struct {
6354  const char *name;
6355  void       *address;
6356}
6357lt__PROGRAM__LTX_preloaded_symbols[] =
6358{
6359  { "@PROGRAM@", (void *) 0 },
6360_LT_EOF
6361	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6362	  cat <<\_LT_EOF >> conftest.$ac_ext
6363  {0, (void *) 0}
6364};
6365
6366/* This works around a problem in FreeBSD linker */
6367#ifdef FREEBSD_WORKAROUND
6368static const void *lt_preloaded_setup() {
6369  return lt__PROGRAM__LTX_preloaded_symbols;
6370}
6371#endif
6372
6373#ifdef __cplusplus
6374}
6375#endif
6376_LT_EOF
6377	  # Now try linking the two files.
6378	  mv conftest.$ac_objext conftstm.$ac_objext
6379	  lt_globsym_save_LIBS=$LIBS
6380	  lt_globsym_save_CFLAGS=$CFLAGS
6381	  LIBS=conftstm.$ac_objext
6382	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6383	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6384  (eval $ac_link) 2>&5
6385  ac_status=$?
6386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6388	    pipe_works=yes
6389	  fi
6390	  LIBS=$lt_globsym_save_LIBS
6391	  CFLAGS=$lt_globsym_save_CFLAGS
6392	else
6393	  echo "cannot find nm_test_func in $nlist" >&5
6394	fi
6395      else
6396	echo "cannot find nm_test_var in $nlist" >&5
6397      fi
6398    else
6399      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6400    fi
6401  else
6402    echo "$progname: failed program was:" >&5
6403    cat conftest.$ac_ext >&5
6404  fi
6405  rm -rf conftest* conftst*
6406
6407  # Do not use the global_symbol_pipe unless it works.
6408  if test yes = "$pipe_works"; then
6409    break
6410  else
6411    lt_cv_sys_global_symbol_pipe=
6412  fi
6413done
6414
6415fi
6416
6417if test -z "$lt_cv_sys_global_symbol_pipe"; then
6418  lt_cv_sys_global_symbol_to_cdecl=
6419fi
6420if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6422$as_echo "failed" >&6; }
6423else
6424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6425$as_echo "ok" >&6; }
6426fi
6427
6428# Response file support.
6429if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6430  nm_file_list_spec='@'
6431elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6432  nm_file_list_spec='@'
6433fi
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6472$as_echo_n "checking for sysroot... " >&6; }
6473
6474# Check whether --with-sysroot was given.
6475if test "${with_sysroot+set}" = set; then :
6476  withval=$with_sysroot;
6477else
6478  with_sysroot=no
6479fi
6480
6481
6482lt_sysroot=
6483case $with_sysroot in #(
6484 yes)
6485   if test yes = "$GCC"; then
6486     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6487   fi
6488   ;; #(
6489 /*)
6490   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6491   ;; #(
6492 no|'')
6493   ;; #(
6494 *)
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6496$as_echo "$with_sysroot" >&6; }
6497   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6498   ;;
6499esac
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6502$as_echo "${lt_sysroot:-no}" >&6; }
6503
6504
6505
6506
6507
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6509$as_echo_n "checking for a working dd... " >&6; }
6510if ${ac_cv_path_lt_DD+:} false; then :
6511  $as_echo_n "(cached) " >&6
6512else
6513  printf 0123456789abcdef0123456789abcdef >conftest.i
6514cat conftest.i conftest.i >conftest2.i
6515: ${lt_DD:=$DD}
6516if test -z "$lt_DD"; then
6517  ac_path_lt_DD_found=false
6518  # Loop through the user's path and test for each of PROGNAME-LIST
6519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522  IFS=$as_save_IFS
6523  test -z "$as_dir" && as_dir=.
6524    for ac_prog in dd; do
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6527      { test -f "$ac_path_lt_DD" && $as_test_x "$ac_path_lt_DD"; } || continue
6528if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6529  cmp -s conftest.i conftest.out \
6530  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6531fi
6532      $ac_path_lt_DD_found && break 3
6533    done
6534  done
6535  done
6536IFS=$as_save_IFS
6537  if test -z "$ac_cv_path_lt_DD"; then
6538    :
6539  fi
6540else
6541  ac_cv_path_lt_DD=$lt_DD
6542fi
6543
6544rm -f conftest.i conftest2.i conftest.out
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6547$as_echo "$ac_cv_path_lt_DD" >&6; }
6548
6549
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6551$as_echo_n "checking how to truncate binary pipes... " >&6; }
6552if ${lt_cv_truncate_bin+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  printf 0123456789abcdef0123456789abcdef >conftest.i
6556cat conftest.i conftest.i >conftest2.i
6557lt_cv_truncate_bin=
6558if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6559  cmp -s conftest.i conftest.out \
6560  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6561fi
6562rm -f conftest.i conftest2.i conftest.out
6563test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6566$as_echo "$lt_cv_truncate_bin" >&6; }
6567
6568
6569
6570
6571
6572
6573
6574# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6575func_cc_basename ()
6576{
6577    for cc_temp in $*""; do
6578      case $cc_temp in
6579        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6580        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6581        \-*) ;;
6582        *) break;;
6583      esac
6584    done
6585    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6586}
6587
6588# Check whether --enable-libtool-lock was given.
6589if test "${enable_libtool_lock+set}" = set; then :
6590  enableval=$enable_libtool_lock;
6591fi
6592
6593test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6594
6595# Some flags need to be propagated to the compiler or linker for good
6596# libtool support.
6597case $host in
6598ia64-*-hpux*)
6599  # Find out what ABI is being produced by ac_compile, and set mode
6600  # options accordingly.
6601  echo 'int i;' > conftest.$ac_ext
6602  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6603  (eval $ac_compile) 2>&5
6604  ac_status=$?
6605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606  test $ac_status = 0; }; then
6607    case `/usr/bin/file conftest.$ac_objext` in
6608      *ELF-32*)
6609	HPUX_IA64_MODE=32
6610	;;
6611      *ELF-64*)
6612	HPUX_IA64_MODE=64
6613	;;
6614    esac
6615  fi
6616  rm -rf conftest*
6617  ;;
6618*-*-irix6*)
6619  # Find out what ABI is being produced by ac_compile, and set linker
6620  # options accordingly.
6621  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6622  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623  (eval $ac_compile) 2>&5
6624  ac_status=$?
6625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626  test $ac_status = 0; }; then
6627    if test yes = "$lt_cv_prog_gnu_ld"; then
6628      case `/usr/bin/file conftest.$ac_objext` in
6629	*32-bit*)
6630	  LD="${LD-ld} -melf32bsmip"
6631	  ;;
6632	*N32*)
6633	  LD="${LD-ld} -melf32bmipn32"
6634	  ;;
6635	*64-bit*)
6636	  LD="${LD-ld} -melf64bmip"
6637	;;
6638      esac
6639    else
6640      case `/usr/bin/file conftest.$ac_objext` in
6641	*32-bit*)
6642	  LD="${LD-ld} -32"
6643	  ;;
6644	*N32*)
6645	  LD="${LD-ld} -n32"
6646	  ;;
6647	*64-bit*)
6648	  LD="${LD-ld} -64"
6649	  ;;
6650      esac
6651    fi
6652  fi
6653  rm -rf conftest*
6654  ;;
6655
6656mips64*-*linux*)
6657  # Find out what ABI is being produced by ac_compile, and set linker
6658  # options accordingly.
6659  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6660  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6661  (eval $ac_compile) 2>&5
6662  ac_status=$?
6663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664  test $ac_status = 0; }; then
6665    emul=elf
6666    case `/usr/bin/file conftest.$ac_objext` in
6667      *32-bit*)
6668	emul="${emul}32"
6669	;;
6670      *64-bit*)
6671	emul="${emul}64"
6672	;;
6673    esac
6674    case `/usr/bin/file conftest.$ac_objext` in
6675      *MSB*)
6676	emul="${emul}btsmip"
6677	;;
6678      *LSB*)
6679	emul="${emul}ltsmip"
6680	;;
6681    esac
6682    case `/usr/bin/file conftest.$ac_objext` in
6683      *N32*)
6684	emul="${emul}n32"
6685	;;
6686    esac
6687    LD="${LD-ld} -m $emul"
6688  fi
6689  rm -rf conftest*
6690  ;;
6691
6692x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6693s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6694  # Find out what ABI is being produced by ac_compile, and set linker
6695  # options accordingly.  Note that the listed cases only cover the
6696  # situations where additional linker options are needed (such as when
6697  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6698  # vice versa); the common cases where no linker options are needed do
6699  # not appear in the list.
6700  echo 'int i;' > conftest.$ac_ext
6701  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702  (eval $ac_compile) 2>&5
6703  ac_status=$?
6704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705  test $ac_status = 0; }; then
6706    case `/usr/bin/file conftest.o` in
6707      *32-bit*)
6708	case $host in
6709	  x86_64-*kfreebsd*-gnu)
6710	    LD="${LD-ld} -m elf_i386_fbsd"
6711	    ;;
6712	  x86_64-*linux*)
6713	    case `/usr/bin/file conftest.o` in
6714	      *x86-64*)
6715		LD="${LD-ld} -m elf32_x86_64"
6716		;;
6717	      *)
6718		LD="${LD-ld} -m elf_i386"
6719		;;
6720	    esac
6721	    ;;
6722	  powerpc64le-*linux*)
6723	    LD="${LD-ld} -m elf32lppclinux"
6724	    ;;
6725	  powerpc64-*linux*)
6726	    LD="${LD-ld} -m elf32ppclinux"
6727	    ;;
6728	  s390x-*linux*)
6729	    LD="${LD-ld} -m elf_s390"
6730	    ;;
6731	  sparc64-*linux*)
6732	    LD="${LD-ld} -m elf32_sparc"
6733	    ;;
6734	esac
6735	;;
6736      *64-bit*)
6737	case $host in
6738	  x86_64-*kfreebsd*-gnu)
6739	    LD="${LD-ld} -m elf_x86_64_fbsd"
6740	    ;;
6741	  x86_64-*linux*)
6742	    LD="${LD-ld} -m elf_x86_64"
6743	    ;;
6744	  powerpcle-*linux*)
6745	    LD="${LD-ld} -m elf64lppc"
6746	    ;;
6747	  powerpc-*linux*)
6748	    LD="${LD-ld} -m elf64ppc"
6749	    ;;
6750	  s390*-*linux*|s390*-*tpf*)
6751	    LD="${LD-ld} -m elf64_s390"
6752	    ;;
6753	  sparc*-*linux*)
6754	    LD="${LD-ld} -m elf64_sparc"
6755	    ;;
6756	esac
6757	;;
6758    esac
6759  fi
6760  rm -rf conftest*
6761  ;;
6762
6763*-*-sco3.2v5*)
6764  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6765  SAVE_CFLAGS=$CFLAGS
6766  CFLAGS="$CFLAGS -belf"
6767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6768$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6769if ${lt_cv_cc_needs_belf+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  ac_ext=c
6773ac_cpp='$CPP $CPPFLAGS'
6774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776ac_compiler_gnu=$ac_cv_c_compiler_gnu
6777
6778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h.  */
6780
6781int
6782main ()
6783{
6784
6785  ;
6786  return 0;
6787}
6788_ACEOF
6789if ac_fn_c_try_link "$LINENO"; then :
6790  lt_cv_cc_needs_belf=yes
6791else
6792  lt_cv_cc_needs_belf=no
6793fi
6794rm -f core conftest.err conftest.$ac_objext \
6795    conftest$ac_exeext conftest.$ac_ext
6796     ac_ext=c
6797ac_cpp='$CPP $CPPFLAGS'
6798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800ac_compiler_gnu=$ac_cv_c_compiler_gnu
6801
6802fi
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6804$as_echo "$lt_cv_cc_needs_belf" >&6; }
6805  if test yes != "$lt_cv_cc_needs_belf"; then
6806    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6807    CFLAGS=$SAVE_CFLAGS
6808  fi
6809  ;;
6810*-*solaris*)
6811  # Find out what ABI is being produced by ac_compile, and set linker
6812  # options accordingly.
6813  echo 'int i;' > conftest.$ac_ext
6814  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6815  (eval $ac_compile) 2>&5
6816  ac_status=$?
6817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818  test $ac_status = 0; }; then
6819    case `/usr/bin/file conftest.o` in
6820    *64-bit*)
6821      case $lt_cv_prog_gnu_ld in
6822      yes*)
6823        case $host in
6824        i?86-*-solaris*|x86_64-*-solaris*)
6825          LD="${LD-ld} -m elf_x86_64"
6826          ;;
6827        sparc*-*-solaris*)
6828          LD="${LD-ld} -m elf64_sparc"
6829          ;;
6830        esac
6831        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6832        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6833          LD=${LD-ld}_sol2
6834        fi
6835        ;;
6836      *)
6837	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6838	  LD="${LD-ld} -64"
6839	fi
6840	;;
6841      esac
6842      ;;
6843    esac
6844  fi
6845  rm -rf conftest*
6846  ;;
6847esac
6848
6849need_locks=$enable_libtool_lock
6850
6851if test -n "$ac_tool_prefix"; then
6852  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6853set dummy ${ac_tool_prefix}mt; ac_word=$2
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855$as_echo_n "checking for $ac_word... " >&6; }
6856if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6857  $as_echo_n "(cached) " >&6
6858else
6859  if test -n "$MANIFEST_TOOL"; then
6860  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865  IFS=$as_save_IFS
6866  test -z "$as_dir" && as_dir=.
6867    for ac_exec_ext in '' $ac_executable_extensions; do
6868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871    break 2
6872  fi
6873done
6874  done
6875IFS=$as_save_IFS
6876
6877fi
6878fi
6879MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6880if test -n "$MANIFEST_TOOL"; then
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6882$as_echo "$MANIFEST_TOOL" >&6; }
6883else
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886fi
6887
6888
6889fi
6890if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6891  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6892  # Extract the first word of "mt", so it can be a program name with args.
6893set dummy mt; ac_word=$2
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895$as_echo_n "checking for $ac_word... " >&6; }
6896if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  if test -n "$ac_ct_MANIFEST_TOOL"; then
6900  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905  IFS=$as_save_IFS
6906  test -z "$as_dir" && as_dir=.
6907    for ac_exec_ext in '' $ac_executable_extensions; do
6908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911    break 2
6912  fi
6913done
6914  done
6915IFS=$as_save_IFS
6916
6917fi
6918fi
6919ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6920if test -n "$ac_ct_MANIFEST_TOOL"; then
6921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6922$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6923else
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925$as_echo "no" >&6; }
6926fi
6927
6928  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6929    MANIFEST_TOOL=":"
6930  else
6931    case $cross_compiling:$ac_tool_warned in
6932yes:)
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935ac_tool_warned=yes ;;
6936esac
6937    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6938  fi
6939else
6940  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6941fi
6942
6943test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6945$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6946if ${lt_cv_path_mainfest_tool+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  lt_cv_path_mainfest_tool=no
6950  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6951  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6952  cat conftest.err >&5
6953  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6954    lt_cv_path_mainfest_tool=yes
6955  fi
6956  rm -f conftest*
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6959$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6960if test yes != "$lt_cv_path_mainfest_tool"; then
6961  MANIFEST_TOOL=:
6962fi
6963
6964
6965
6966
6967
6968
6969  case $host_os in
6970    rhapsody* | darwin*)
6971    if test -n "$ac_tool_prefix"; then
6972  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6973set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975$as_echo_n "checking for $ac_word... " >&6; }
6976if ${ac_cv_prog_DSYMUTIL+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979  if test -n "$DSYMUTIL"; then
6980  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985  IFS=$as_save_IFS
6986  test -z "$as_dir" && as_dir=.
6987    for ac_exec_ext in '' $ac_executable_extensions; do
6988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991    break 2
6992  fi
6993done
6994  done
6995IFS=$as_save_IFS
6996
6997fi
6998fi
6999DSYMUTIL=$ac_cv_prog_DSYMUTIL
7000if test -n "$DSYMUTIL"; then
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7002$as_echo "$DSYMUTIL" >&6; }
7003else
7004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006fi
7007
7008
7009fi
7010if test -z "$ac_cv_prog_DSYMUTIL"; then
7011  ac_ct_DSYMUTIL=$DSYMUTIL
7012  # Extract the first word of "dsymutil", so it can be a program name with args.
7013set dummy dsymutil; ac_word=$2
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015$as_echo_n "checking for $ac_word... " >&6; }
7016if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7017  $as_echo_n "(cached) " >&6
7018else
7019  if test -n "$ac_ct_DSYMUTIL"; then
7020  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025  IFS=$as_save_IFS
7026  test -z "$as_dir" && as_dir=.
7027    for ac_exec_ext in '' $ac_executable_extensions; do
7028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031    break 2
7032  fi
7033done
7034  done
7035IFS=$as_save_IFS
7036
7037fi
7038fi
7039ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7040if test -n "$ac_ct_DSYMUTIL"; then
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7042$as_echo "$ac_ct_DSYMUTIL" >&6; }
7043else
7044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045$as_echo "no" >&6; }
7046fi
7047
7048  if test "x$ac_ct_DSYMUTIL" = x; then
7049    DSYMUTIL=":"
7050  else
7051    case $cross_compiling:$ac_tool_warned in
7052yes:)
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055ac_tool_warned=yes ;;
7056esac
7057    DSYMUTIL=$ac_ct_DSYMUTIL
7058  fi
7059else
7060  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7061fi
7062
7063    if test -n "$ac_tool_prefix"; then
7064  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7065set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if ${ac_cv_prog_NMEDIT+:} false; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  if test -n "$NMEDIT"; then
7072  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077  IFS=$as_save_IFS
7078  test -z "$as_dir" && as_dir=.
7079    for ac_exec_ext in '' $ac_executable_extensions; do
7080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083    break 2
7084  fi
7085done
7086  done
7087IFS=$as_save_IFS
7088
7089fi
7090fi
7091NMEDIT=$ac_cv_prog_NMEDIT
7092if test -n "$NMEDIT"; then
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7094$as_echo "$NMEDIT" >&6; }
7095else
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100
7101fi
7102if test -z "$ac_cv_prog_NMEDIT"; then
7103  ac_ct_NMEDIT=$NMEDIT
7104  # Extract the first word of "nmedit", so it can be a program name with args.
7105set dummy nmedit; ac_word=$2
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
7108if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  if test -n "$ac_ct_NMEDIT"; then
7112  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119    for ac_exec_ext in '' $ac_executable_extensions; do
7120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126  done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7132if test -n "$ac_ct_NMEDIT"; then
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7134$as_echo "$ac_ct_NMEDIT" >&6; }
7135else
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140  if test "x$ac_ct_NMEDIT" = x; then
7141    NMEDIT=":"
7142  else
7143    case $cross_compiling:$ac_tool_warned in
7144yes:)
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147ac_tool_warned=yes ;;
7148esac
7149    NMEDIT=$ac_ct_NMEDIT
7150  fi
7151else
7152  NMEDIT="$ac_cv_prog_NMEDIT"
7153fi
7154
7155    if test -n "$ac_tool_prefix"; then
7156  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7157set dummy ${ac_tool_prefix}lipo; ac_word=$2
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
7160if ${ac_cv_prog_LIPO+:} false; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  if test -n "$LIPO"; then
7164  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169  IFS=$as_save_IFS
7170  test -z "$as_dir" && as_dir=.
7171    for ac_exec_ext in '' $ac_executable_extensions; do
7172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175    break 2
7176  fi
7177done
7178  done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183LIPO=$ac_cv_prog_LIPO
7184if test -n "$LIPO"; then
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7186$as_echo "$LIPO" >&6; }
7187else
7188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192
7193fi
7194if test -z "$ac_cv_prog_LIPO"; then
7195  ac_ct_LIPO=$LIPO
7196  # Extract the first word of "lipo", so it can be a program name with args.
7197set dummy lipo; ac_word=$2
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  if test -n "$ac_ct_LIPO"; then
7204  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209  IFS=$as_save_IFS
7210  test -z "$as_dir" && as_dir=.
7211    for ac_exec_ext in '' $ac_executable_extensions; do
7212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213    ac_cv_prog_ac_ct_LIPO="lipo"
7214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215    break 2
7216  fi
7217done
7218  done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7224if test -n "$ac_ct_LIPO"; then
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7226$as_echo "$ac_ct_LIPO" >&6; }
7227else
7228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232  if test "x$ac_ct_LIPO" = x; then
7233    LIPO=":"
7234  else
7235    case $cross_compiling:$ac_tool_warned in
7236yes:)
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239ac_tool_warned=yes ;;
7240esac
7241    LIPO=$ac_ct_LIPO
7242  fi
7243else
7244  LIPO="$ac_cv_prog_LIPO"
7245fi
7246
7247    if test -n "$ac_tool_prefix"; then
7248  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7249set dummy ${ac_tool_prefix}otool; ac_word=$2
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251$as_echo_n "checking for $ac_word... " >&6; }
7252if ${ac_cv_prog_OTOOL+:} false; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255  if test -n "$OTOOL"; then
7256  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261  IFS=$as_save_IFS
7262  test -z "$as_dir" && as_dir=.
7263    for ac_exec_ext in '' $ac_executable_extensions; do
7264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267    break 2
7268  fi
7269done
7270  done
7271IFS=$as_save_IFS
7272
7273fi
7274fi
7275OTOOL=$ac_cv_prog_OTOOL
7276if test -n "$OTOOL"; then
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7278$as_echo "$OTOOL" >&6; }
7279else
7280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284
7285fi
7286if test -z "$ac_cv_prog_OTOOL"; then
7287  ac_ct_OTOOL=$OTOOL
7288  # Extract the first word of "otool", so it can be a program name with args.
7289set dummy otool; ac_word=$2
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291$as_echo_n "checking for $ac_word... " >&6; }
7292if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295  if test -n "$ac_ct_OTOOL"; then
7296  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301  IFS=$as_save_IFS
7302  test -z "$as_dir" && as_dir=.
7303    for ac_exec_ext in '' $ac_executable_extensions; do
7304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305    ac_cv_prog_ac_ct_OTOOL="otool"
7306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307    break 2
7308  fi
7309done
7310  done
7311IFS=$as_save_IFS
7312
7313fi
7314fi
7315ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7316if test -n "$ac_ct_OTOOL"; then
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7318$as_echo "$ac_ct_OTOOL" >&6; }
7319else
7320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322fi
7323
7324  if test "x$ac_ct_OTOOL" = x; then
7325    OTOOL=":"
7326  else
7327    case $cross_compiling:$ac_tool_warned in
7328yes:)
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331ac_tool_warned=yes ;;
7332esac
7333    OTOOL=$ac_ct_OTOOL
7334  fi
7335else
7336  OTOOL="$ac_cv_prog_OTOOL"
7337fi
7338
7339    if test -n "$ac_tool_prefix"; then
7340  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}otool64; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if ${ac_cv_prog_OTOOL64+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  if test -n "$OTOOL64"; then
7348  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353  IFS=$as_save_IFS
7354  test -z "$as_dir" && as_dir=.
7355    for ac_exec_ext in '' $ac_executable_extensions; do
7356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359    break 2
7360  fi
7361done
7362  done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367OTOOL64=$ac_cv_prog_OTOOL64
7368if test -n "$OTOOL64"; then
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7370$as_echo "$OTOOL64" >&6; }
7371else
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376
7377fi
7378if test -z "$ac_cv_prog_OTOOL64"; then
7379  ac_ct_OTOOL64=$OTOOL64
7380  # Extract the first word of "otool64", so it can be a program name with args.
7381set dummy otool64; ac_word=$2
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383$as_echo_n "checking for $ac_word... " >&6; }
7384if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  if test -n "$ac_ct_OTOOL64"; then
7388  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393  IFS=$as_save_IFS
7394  test -z "$as_dir" && as_dir=.
7395    for ac_exec_ext in '' $ac_executable_extensions; do
7396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397    ac_cv_prog_ac_ct_OTOOL64="otool64"
7398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399    break 2
7400  fi
7401done
7402  done
7403IFS=$as_save_IFS
7404
7405fi
7406fi
7407ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7408if test -n "$ac_ct_OTOOL64"; then
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7410$as_echo "$ac_ct_OTOOL64" >&6; }
7411else
7412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413$as_echo "no" >&6; }
7414fi
7415
7416  if test "x$ac_ct_OTOOL64" = x; then
7417    OTOOL64=":"
7418  else
7419    case $cross_compiling:$ac_tool_warned in
7420yes:)
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423ac_tool_warned=yes ;;
7424esac
7425    OTOOL64=$ac_ct_OTOOL64
7426  fi
7427else
7428  OTOOL64="$ac_cv_prog_OTOOL64"
7429fi
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7458$as_echo_n "checking for -single_module linker flag... " >&6; }
7459if ${lt_cv_apple_cc_single_mod+:} false; then :
7460  $as_echo_n "(cached) " >&6
7461else
7462  lt_cv_apple_cc_single_mod=no
7463      if test -z "$LT_MULTI_MODULE"; then
7464	# By default we will add the -single_module flag. You can override
7465	# by either setting the environment variable LT_MULTI_MODULE
7466	# non-empty at configure time, or by adding -multi_module to the
7467	# link flags.
7468	rm -rf libconftest.dylib*
7469	echo "int foo(void){return 1;}" > conftest.c
7470	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7471-dynamiclib -Wl,-single_module conftest.c" >&5
7472	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7473	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7474        _lt_result=$?
7475	# If there is a non-empty error log, and "single_module"
7476	# appears in it, assume the flag caused a linker warning
7477        if test -s conftest.err && $GREP single_module conftest.err; then
7478	  cat conftest.err >&5
7479	# Otherwise, if the output was created with a 0 exit code from
7480	# the compiler, it worked.
7481	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7482	  lt_cv_apple_cc_single_mod=yes
7483	else
7484	  cat conftest.err >&5
7485	fi
7486	rm -rf libconftest.dylib*
7487	rm -f conftest.*
7488      fi
7489fi
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7491$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7492
7493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7494$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7495if ${lt_cv_ld_exported_symbols_list+:} false; then :
7496  $as_echo_n "(cached) " >&6
7497else
7498  lt_cv_ld_exported_symbols_list=no
7499      save_LDFLAGS=$LDFLAGS
7500      echo "_main" > conftest.sym
7501      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h.  */
7504
7505int
7506main ()
7507{
7508
7509  ;
7510  return 0;
7511}
7512_ACEOF
7513if ac_fn_c_try_link "$LINENO"; then :
7514  lt_cv_ld_exported_symbols_list=yes
7515else
7516  lt_cv_ld_exported_symbols_list=no
7517fi
7518rm -f core conftest.err conftest.$ac_objext \
7519    conftest$ac_exeext conftest.$ac_ext
7520	LDFLAGS=$save_LDFLAGS
7521
7522fi
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7524$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7525
7526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7527$as_echo_n "checking for -force_load linker flag... " >&6; }
7528if ${lt_cv_ld_force_load+:} false; then :
7529  $as_echo_n "(cached) " >&6
7530else
7531  lt_cv_ld_force_load=no
7532      cat > conftest.c << _LT_EOF
7533int forced_loaded() { return 2;}
7534_LT_EOF
7535      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7536      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7537      echo "$AR cru libconftest.a conftest.o" >&5
7538      $AR cru libconftest.a conftest.o 2>&5
7539      echo "$RANLIB libconftest.a" >&5
7540      $RANLIB libconftest.a 2>&5
7541      cat > conftest.c << _LT_EOF
7542int main() { return 0;}
7543_LT_EOF
7544      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7545      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7546      _lt_result=$?
7547      if test -s conftest.err && $GREP force_load conftest.err; then
7548	cat conftest.err >&5
7549      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7550	lt_cv_ld_force_load=yes
7551      else
7552	cat conftest.err >&5
7553      fi
7554        rm -f conftest.err libconftest.a conftest conftest.c
7555        rm -rf conftest.dSYM
7556
7557fi
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7559$as_echo "$lt_cv_ld_force_load" >&6; }
7560    case $host_os in
7561    rhapsody* | darwin1.[012])
7562      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7563    darwin1.*)
7564      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7565    darwin*) # darwin 5.x on
7566      # if running on 10.5 or later, the deployment target defaults
7567      # to the OS version, if on x86, and 10.4, the deployment
7568      # target defaults to 10.4. Don't you love it?
7569      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7570	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7571	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7572	10.[012][,.]*)
7573	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7574	10.*)
7575	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7576      esac
7577    ;;
7578  esac
7579    if test yes = "$lt_cv_apple_cc_single_mod"; then
7580      _lt_dar_single_mod='$single_module'
7581    fi
7582    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7583      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7584    else
7585      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7586    fi
7587    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7588      _lt_dsymutil='~$DSYMUTIL $lib || :'
7589    else
7590      _lt_dsymutil=
7591    fi
7592    ;;
7593  esac
7594
7595# func_munge_path_list VARIABLE PATH
7596# -----------------------------------
7597# VARIABLE is name of variable containing _space_ separated list of
7598# directories to be munged by the contents of PATH, which is string
7599# having a format:
7600# "DIR[:DIR]:"
7601#       string "DIR[ DIR]" will be prepended to VARIABLE
7602# ":DIR[:DIR]"
7603#       string "DIR[ DIR]" will be appended to VARIABLE
7604# "DIRP[:DIRP]::[DIRA:]DIRA"
7605#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7606#       "DIRA[ DIRA]" will be appended to VARIABLE
7607# "DIR[:DIR]"
7608#       VARIABLE will be replaced by "DIR[ DIR]"
7609func_munge_path_list ()
7610{
7611    case x$2 in
7612    x)
7613        ;;
7614    *:)
7615        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7616        ;;
7617    x:*)
7618        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7619        ;;
7620    *::*)
7621        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7622        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7623        ;;
7624    *)
7625        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7626        ;;
7627    esac
7628}
7629
7630ac_ext=c
7631ac_cpp='$CPP $CPPFLAGS'
7632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7636$as_echo_n "checking how to run the C preprocessor... " >&6; }
7637# On Suns, sometimes $CPP names a directory.
7638if test -n "$CPP" && test -d "$CPP"; then
7639  CPP=
7640fi
7641if test -z "$CPP"; then
7642  if ${ac_cv_prog_CPP+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645      # Double quotes because CPP needs to be expanded
7646    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7647    do
7648      ac_preproc_ok=false
7649for ac_c_preproc_warn_flag in '' yes
7650do
7651  # Use a header file that comes with gcc, so configuring glibc
7652  # with a fresh cross-compiler works.
7653  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7654  # <limits.h> exists even on freestanding compilers.
7655  # On the NeXT, cc -E runs the code through the compiler's parser,
7656  # not just through cpp. "Syntax error" is here to catch this case.
7657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h.  */
7659#ifdef __STDC__
7660# include <limits.h>
7661#else
7662# include <assert.h>
7663#endif
7664		     Syntax error
7665_ACEOF
7666if ac_fn_c_try_cpp "$LINENO"; then :
7667
7668else
7669  # Broken: fails on valid input.
7670continue
7671fi
7672rm -f conftest.err conftest.i conftest.$ac_ext
7673
7674  # OK, works on sane cases.  Now check whether nonexistent headers
7675  # can be detected and how.
7676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h.  */
7678#include <ac_nonexistent.h>
7679_ACEOF
7680if ac_fn_c_try_cpp "$LINENO"; then :
7681  # Broken: success on invalid input.
7682continue
7683else
7684  # Passes both tests.
7685ac_preproc_ok=:
7686break
7687fi
7688rm -f conftest.err conftest.i conftest.$ac_ext
7689
7690done
7691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7692rm -f conftest.i conftest.err conftest.$ac_ext
7693if $ac_preproc_ok; then :
7694  break
7695fi
7696
7697    done
7698    ac_cv_prog_CPP=$CPP
7699
7700fi
7701  CPP=$ac_cv_prog_CPP
7702else
7703  ac_cv_prog_CPP=$CPP
7704fi
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7706$as_echo "$CPP" >&6; }
7707ac_preproc_ok=false
7708for ac_c_preproc_warn_flag in '' yes
7709do
7710  # Use a header file that comes with gcc, so configuring glibc
7711  # with a fresh cross-compiler works.
7712  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7713  # <limits.h> exists even on freestanding compilers.
7714  # On the NeXT, cc -E runs the code through the compiler's parser,
7715  # not just through cpp. "Syntax error" is here to catch this case.
7716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h.  */
7718#ifdef __STDC__
7719# include <limits.h>
7720#else
7721# include <assert.h>
7722#endif
7723		     Syntax error
7724_ACEOF
7725if ac_fn_c_try_cpp "$LINENO"; then :
7726
7727else
7728  # Broken: fails on valid input.
7729continue
7730fi
7731rm -f conftest.err conftest.i conftest.$ac_ext
7732
7733  # OK, works on sane cases.  Now check whether nonexistent headers
7734  # can be detected and how.
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737#include <ac_nonexistent.h>
7738_ACEOF
7739if ac_fn_c_try_cpp "$LINENO"; then :
7740  # Broken: success on invalid input.
7741continue
7742else
7743  # Passes both tests.
7744ac_preproc_ok=:
7745break
7746fi
7747rm -f conftest.err conftest.i conftest.$ac_ext
7748
7749done
7750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7751rm -f conftest.i conftest.err conftest.$ac_ext
7752if $ac_preproc_ok; then :
7753
7754else
7755  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7757as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7758See \`config.log' for more details" "$LINENO" 5; }
7759fi
7760
7761ac_ext=c
7762ac_cpp='$CPP $CPPFLAGS'
7763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7765ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766
7767
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7769$as_echo_n "checking for ANSI C header files... " >&6; }
7770if ${ac_cv_header_stdc+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775#include <stdlib.h>
7776#include <stdarg.h>
7777#include <string.h>
7778#include <float.h>
7779
7780int
7781main ()
7782{
7783
7784  ;
7785  return 0;
7786}
7787_ACEOF
7788if ac_fn_c_try_compile "$LINENO"; then :
7789  ac_cv_header_stdc=yes
7790else
7791  ac_cv_header_stdc=no
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794
7795if test $ac_cv_header_stdc = yes; then
7796  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h.  */
7799#include <string.h>
7800
7801_ACEOF
7802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7803  $EGREP "memchr" >/dev/null 2>&1; then :
7804
7805else
7806  ac_cv_header_stdc=no
7807fi
7808rm -f conftest*
7809
7810fi
7811
7812if test $ac_cv_header_stdc = yes; then
7813  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816#include <stdlib.h>
7817
7818_ACEOF
7819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820  $EGREP "free" >/dev/null 2>&1; then :
7821
7822else
7823  ac_cv_header_stdc=no
7824fi
7825rm -f conftest*
7826
7827fi
7828
7829if test $ac_cv_header_stdc = yes; then
7830  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7831  if test "$cross_compiling" = yes; then :
7832  :
7833else
7834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h.  */
7836#include <ctype.h>
7837#include <stdlib.h>
7838#if ((' ' & 0x0FF) == 0x020)
7839# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7840# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7841#else
7842# define ISLOWER(c) \
7843		   (('a' <= (c) && (c) <= 'i') \
7844		     || ('j' <= (c) && (c) <= 'r') \
7845		     || ('s' <= (c) && (c) <= 'z'))
7846# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7847#endif
7848
7849#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7850int
7851main ()
7852{
7853  int i;
7854  for (i = 0; i < 256; i++)
7855    if (XOR (islower (i), ISLOWER (i))
7856	|| toupper (i) != TOUPPER (i))
7857      return 2;
7858  return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_run "$LINENO"; then :
7862
7863else
7864  ac_cv_header_stdc=no
7865fi
7866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7867  conftest.$ac_objext conftest.beam conftest.$ac_ext
7868fi
7869
7870fi
7871fi
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7873$as_echo "$ac_cv_header_stdc" >&6; }
7874if test $ac_cv_header_stdc = yes; then
7875
7876$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7877
7878fi
7879
7880# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7881for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7882		  inttypes.h stdint.h unistd.h
7883do :
7884  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7886"
7887if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7888  cat >>confdefs.h <<_ACEOF
7889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7890_ACEOF
7891
7892fi
7893
7894done
7895
7896
7897for ac_header in dlfcn.h
7898do :
7899  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7900"
7901if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7902  cat >>confdefs.h <<_ACEOF
7903#define HAVE_DLFCN_H 1
7904_ACEOF
7905
7906fi
7907
7908done
7909
7910
7911
7912
7913
7914# Set options
7915
7916
7917
7918        enable_dlopen=no
7919
7920
7921  enable_win32_dll=no
7922
7923
7924            # Check whether --enable-shared was given.
7925if test "${enable_shared+set}" = set; then :
7926  enableval=$enable_shared; p=${PACKAGE-default}
7927    case $enableval in
7928    yes) enable_shared=yes ;;
7929    no) enable_shared=no ;;
7930    *)
7931      enable_shared=no
7932      # Look at the argument we got.  We use all the common list separators.
7933      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7934      for pkg in $enableval; do
7935	IFS=$lt_save_ifs
7936	if test "X$pkg" = "X$p"; then
7937	  enable_shared=yes
7938	fi
7939      done
7940      IFS=$lt_save_ifs
7941      ;;
7942    esac
7943else
7944  enable_shared=yes
7945fi
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955  # Check whether --enable-static was given.
7956if test "${enable_static+set}" = set; then :
7957  enableval=$enable_static; p=${PACKAGE-default}
7958    case $enableval in
7959    yes) enable_static=yes ;;
7960    no) enable_static=no ;;
7961    *)
7962     enable_static=no
7963      # Look at the argument we got.  We use all the common list separators.
7964      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7965      for pkg in $enableval; do
7966	IFS=$lt_save_ifs
7967	if test "X$pkg" = "X$p"; then
7968	  enable_static=yes
7969	fi
7970      done
7971      IFS=$lt_save_ifs
7972      ;;
7973    esac
7974else
7975  enable_static=yes
7976fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987# Check whether --with-pic was given.
7988if test "${with_pic+set}" = set; then :
7989  withval=$with_pic; lt_p=${PACKAGE-default}
7990    case $withval in
7991    yes|no) pic_mode=$withval ;;
7992    *)
7993      pic_mode=default
7994      # Look at the argument we got.  We use all the common list separators.
7995      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7996      for lt_pkg in $withval; do
7997	IFS=$lt_save_ifs
7998	if test "X$lt_pkg" = "X$lt_p"; then
7999	  pic_mode=yes
8000	fi
8001      done
8002      IFS=$lt_save_ifs
8003      ;;
8004    esac
8005else
8006  pic_mode=default
8007fi
8008
8009
8010
8011
8012
8013
8014
8015
8016  # Check whether --enable-fast-install was given.
8017if test "${enable_fast_install+set}" = set; then :
8018  enableval=$enable_fast_install; p=${PACKAGE-default}
8019    case $enableval in
8020    yes) enable_fast_install=yes ;;
8021    no) enable_fast_install=no ;;
8022    *)
8023      enable_fast_install=no
8024      # Look at the argument we got.  We use all the common list separators.
8025      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8026      for pkg in $enableval; do
8027	IFS=$lt_save_ifs
8028	if test "X$pkg" = "X$p"; then
8029	  enable_fast_install=yes
8030	fi
8031      done
8032      IFS=$lt_save_ifs
8033      ;;
8034    esac
8035else
8036  enable_fast_install=yes
8037fi
8038
8039
8040
8041
8042
8043
8044
8045
8046  shared_archive_member_spec=
8047case $host,$enable_shared in
8048power*-*-aix[5-9]*,yes)
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8050$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8051
8052# Check whether --with-aix-soname was given.
8053if test "${with_aix_soname+set}" = set; then :
8054  withval=$with_aix_soname; case $withval in
8055    aix|svr4|both)
8056      ;;
8057    *)
8058      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8059      ;;
8060    esac
8061    lt_cv_with_aix_soname=$with_aix_soname
8062else
8063  if ${lt_cv_with_aix_soname+:} false; then :
8064  $as_echo_n "(cached) " >&6
8065else
8066  lt_cv_with_aix_soname=aix
8067fi
8068
8069    with_aix_soname=$lt_cv_with_aix_soname
8070fi
8071
8072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8073$as_echo "$with_aix_soname" >&6; }
8074  if test aix != "$with_aix_soname"; then
8075    # For the AIX way of multilib, we name the shared archive member
8076    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8077    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8078    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8079    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8080    if test 64 = "${OBJECT_MODE-32}"; then
8081      shared_archive_member_spec=shr_64
8082    else
8083      shared_archive_member_spec=shr
8084    fi
8085  fi
8086  ;;
8087*)
8088  with_aix_soname=aix
8089  ;;
8090esac
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101# This can be used to rebuild libtool when needed
8102LIBTOOL_DEPS=$ltmain
8103
8104# Always use our own libtool.
8105LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136test -z "$LN_S" && LN_S="ln -s"
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151if test -n "${ZSH_VERSION+set}"; then
8152   setopt NO_GLOB_SUBST
8153fi
8154
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8156$as_echo_n "checking for objdir... " >&6; }
8157if ${lt_cv_objdir+:} false; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  rm -f .libs 2>/dev/null
8161mkdir .libs 2>/dev/null
8162if test -d .libs; then
8163  lt_cv_objdir=.libs
8164else
8165  # MS-DOS does not allow filenames that begin with a dot.
8166  lt_cv_objdir=_libs
8167fi
8168rmdir .libs 2>/dev/null
8169fi
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8171$as_echo "$lt_cv_objdir" >&6; }
8172objdir=$lt_cv_objdir
8173
8174
8175
8176
8177
8178cat >>confdefs.h <<_ACEOF
8179#define LT_OBJDIR "$lt_cv_objdir/"
8180_ACEOF
8181
8182
8183
8184
8185case $host_os in
8186aix3*)
8187  # AIX sometimes has problems with the GCC collect2 program.  For some
8188  # reason, if we set the COLLECT_NAMES environment variable, the problems
8189  # vanish in a puff of smoke.
8190  if test set != "${COLLECT_NAMES+set}"; then
8191    COLLECT_NAMES=
8192    export COLLECT_NAMES
8193  fi
8194  ;;
8195esac
8196
8197# Global variables:
8198ofile=libtool
8199can_build_shared=yes
8200
8201# All known linkers require a '.a' archive for static linking (except MSVC,
8202# which needs '.lib').
8203libext=a
8204
8205with_gnu_ld=$lt_cv_prog_gnu_ld
8206
8207old_CC=$CC
8208old_CFLAGS=$CFLAGS
8209
8210# Set sane defaults for various variables
8211test -z "$CC" && CC=cc
8212test -z "$LTCC" && LTCC=$CC
8213test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8214test -z "$LD" && LD=ld
8215test -z "$ac_objext" && ac_objext=o
8216
8217func_cc_basename $compiler
8218cc_basename=$func_cc_basename_result
8219
8220
8221# Only perform the check for file, if the check method requires it
8222test -z "$MAGIC_CMD" && MAGIC_CMD=file
8223case $deplibs_check_method in
8224file_magic*)
8225  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8227$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8228if ${lt_cv_path_MAGIC_CMD+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231  case $MAGIC_CMD in
8232[\\/*] |  ?:[\\/]*)
8233  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8234  ;;
8235*)
8236  lt_save_MAGIC_CMD=$MAGIC_CMD
8237  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8238  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8239  for ac_dir in $ac_dummy; do
8240    IFS=$lt_save_ifs
8241    test -z "$ac_dir" && ac_dir=.
8242    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8243      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8244      if test -n "$file_magic_test_file"; then
8245	case $deplibs_check_method in
8246	"file_magic "*)
8247	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8248	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8249	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8250	    $EGREP "$file_magic_regex" > /dev/null; then
8251	    :
8252	  else
8253	    cat <<_LT_EOF 1>&2
8254
8255*** Warning: the command libtool uses to detect shared libraries,
8256*** $file_magic_cmd, produces output that libtool cannot recognize.
8257*** The result is that libtool may fail to recognize shared libraries
8258*** as such.  This will affect the creation of libtool libraries that
8259*** depend on shared libraries, but programs linked with such libtool
8260*** libraries will work regardless of this problem.  Nevertheless, you
8261*** may want to report the problem to your system manager and/or to
8262*** bug-libtool@gnu.org
8263
8264_LT_EOF
8265	  fi ;;
8266	esac
8267      fi
8268      break
8269    fi
8270  done
8271  IFS=$lt_save_ifs
8272  MAGIC_CMD=$lt_save_MAGIC_CMD
8273  ;;
8274esac
8275fi
8276
8277MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8278if test -n "$MAGIC_CMD"; then
8279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8280$as_echo "$MAGIC_CMD" >&6; }
8281else
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287
8288
8289
8290if test -z "$lt_cv_path_MAGIC_CMD"; then
8291  if test -n "$ac_tool_prefix"; then
8292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8293$as_echo_n "checking for file... " >&6; }
8294if ${lt_cv_path_MAGIC_CMD+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  case $MAGIC_CMD in
8298[\\/*] |  ?:[\\/]*)
8299  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8300  ;;
8301*)
8302  lt_save_MAGIC_CMD=$MAGIC_CMD
8303  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8304  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8305  for ac_dir in $ac_dummy; do
8306    IFS=$lt_save_ifs
8307    test -z "$ac_dir" && ac_dir=.
8308    if test -f "$ac_dir/file"; then
8309      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8310      if test -n "$file_magic_test_file"; then
8311	case $deplibs_check_method in
8312	"file_magic "*)
8313	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8314	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8315	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8316	    $EGREP "$file_magic_regex" > /dev/null; then
8317	    :
8318	  else
8319	    cat <<_LT_EOF 1>&2
8320
8321*** Warning: the command libtool uses to detect shared libraries,
8322*** $file_magic_cmd, produces output that libtool cannot recognize.
8323*** The result is that libtool may fail to recognize shared libraries
8324*** as such.  This will affect the creation of libtool libraries that
8325*** depend on shared libraries, but programs linked with such libtool
8326*** libraries will work regardless of this problem.  Nevertheless, you
8327*** may want to report the problem to your system manager and/or to
8328*** bug-libtool@gnu.org
8329
8330_LT_EOF
8331	  fi ;;
8332	esac
8333      fi
8334      break
8335    fi
8336  done
8337  IFS=$lt_save_ifs
8338  MAGIC_CMD=$lt_save_MAGIC_CMD
8339  ;;
8340esac
8341fi
8342
8343MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8344if test -n "$MAGIC_CMD"; then
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8346$as_echo "$MAGIC_CMD" >&6; }
8347else
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350fi
8351
8352
8353  else
8354    MAGIC_CMD=:
8355  fi
8356fi
8357
8358  fi
8359  ;;
8360esac
8361
8362# Use C for the default configuration in the libtool script
8363
8364lt_save_CC=$CC
8365ac_ext=c
8366ac_cpp='$CPP $CPPFLAGS'
8367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8369ac_compiler_gnu=$ac_cv_c_compiler_gnu
8370
8371
8372# Source file extension for C test sources.
8373ac_ext=c
8374
8375# Object file extension for compiled C test sources.
8376objext=o
8377objext=$objext
8378
8379# Code to be used in simple compile tests
8380lt_simple_compile_test_code="int some_variable = 0;"
8381
8382# Code to be used in simple link tests
8383lt_simple_link_test_code='int main(){return(0);}'
8384
8385
8386
8387
8388
8389
8390
8391# If no C compiler was specified, use CC.
8392LTCC=${LTCC-"$CC"}
8393
8394# If no C compiler flags were specified, use CFLAGS.
8395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8396
8397# Allow CC to be a program name with arguments.
8398compiler=$CC
8399
8400# Save the default compiler, since it gets overwritten when the other
8401# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8402compiler_DEFAULT=$CC
8403
8404# save warnings/boilerplate of simple test code
8405ac_outfile=conftest.$ac_objext
8406echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8407eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8408_lt_compiler_boilerplate=`cat conftest.err`
8409$RM conftest*
8410
8411ac_outfile=conftest.$ac_objext
8412echo "$lt_simple_link_test_code" >conftest.$ac_ext
8413eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8414_lt_linker_boilerplate=`cat conftest.err`
8415$RM -r conftest*
8416
8417
8418## CAVEAT EMPTOR:
8419## There is no encapsulation within the following macros, do not change
8420## the running order or otherwise move them around unless you know exactly
8421## what you are doing...
8422if test -n "$compiler"; then
8423
8424lt_prog_compiler_no_builtin_flag=
8425
8426if test yes = "$GCC"; then
8427  case $cc_basename in
8428  nvcc*)
8429    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8430  *)
8431    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8432  esac
8433
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8435$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8436if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  lt_cv_prog_compiler_rtti_exceptions=no
8440   ac_outfile=conftest.$ac_objext
8441   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8442   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8443   # Insert the option either (1) after the last *FLAGS variable, or
8444   # (2) before a word containing "conftest.", or (3) at the end.
8445   # Note that $ac_compile itself does not contain backslashes and begins
8446   # with a dollar sign (not a hyphen), so the echo should work correctly.
8447   # The option is referenced via a variable to avoid confusing sed.
8448   lt_compile=`echo "$ac_compile" | $SED \
8449   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8450   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8451   -e 's:$: $lt_compiler_flag:'`
8452   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8453   (eval "$lt_compile" 2>conftest.err)
8454   ac_status=$?
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   if (exit $ac_status) && test -s "$ac_outfile"; then
8458     # The compiler can only warn and ignore the option if not recognized
8459     # So say no if there are warnings other than the usual output.
8460     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8461     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8463       lt_cv_prog_compiler_rtti_exceptions=yes
8464     fi
8465   fi
8466   $RM conftest*
8467
8468fi
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8470$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8471
8472if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8473    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8474else
8475    :
8476fi
8477
8478fi
8479
8480
8481
8482
8483
8484
8485  lt_prog_compiler_wl=
8486lt_prog_compiler_pic=
8487lt_prog_compiler_static=
8488
8489
8490  if test yes = "$GCC"; then
8491    lt_prog_compiler_wl='-Wl,'
8492    lt_prog_compiler_static='-static'
8493
8494    case $host_os in
8495      aix*)
8496      # All AIX code is PIC.
8497      if test ia64 = "$host_cpu"; then
8498	# AIX 5 now supports IA64 processor
8499	lt_prog_compiler_static='-Bstatic'
8500      fi
8501      lt_prog_compiler_pic='-fPIC'
8502      ;;
8503
8504    amigaos*)
8505      case $host_cpu in
8506      powerpc)
8507            # see comment about AmigaOS4 .so support
8508            lt_prog_compiler_pic='-fPIC'
8509        ;;
8510      m68k)
8511            # FIXME: we need at least 68020 code to build shared libraries, but
8512            # adding the '-m68020' flag to GCC prevents building anything better,
8513            # like '-m68040'.
8514            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8515        ;;
8516      esac
8517      ;;
8518
8519    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8520      # PIC is the default for these OSes.
8521      ;;
8522
8523    mingw* | cygwin* | pw32* | os2* | cegcc*)
8524      # This hack is so that the source file can tell whether it is being
8525      # built for inclusion in a dll (and should export symbols for example).
8526      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8527      # (--disable-auto-import) libraries
8528      lt_prog_compiler_pic='-DDLL_EXPORT'
8529      case $host_os in
8530      os2*)
8531	lt_prog_compiler_static='$wl-static'
8532	;;
8533      esac
8534      ;;
8535
8536    darwin* | rhapsody*)
8537      # PIC is the default on this platform
8538      # Common symbols not allowed in MH_DYLIB files
8539      lt_prog_compiler_pic='-fno-common'
8540      ;;
8541
8542    haiku*)
8543      # PIC is the default for Haiku.
8544      # The "-static" flag exists, but is broken.
8545      lt_prog_compiler_static=
8546      ;;
8547
8548    hpux*)
8549      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8550      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8551      # sets the default TLS model and affects inlining.
8552      case $host_cpu in
8553      hppa*64*)
8554	# +Z the default
8555	;;
8556      *)
8557	lt_prog_compiler_pic='-fPIC'
8558	;;
8559      esac
8560      ;;
8561
8562    interix[3-9]*)
8563      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8564      # Instead, we relocate shared libraries at runtime.
8565      ;;
8566
8567    msdosdjgpp*)
8568      # Just because we use GCC doesn't mean we suddenly get shared libraries
8569      # on systems that don't support them.
8570      lt_prog_compiler_can_build_shared=no
8571      enable_shared=no
8572      ;;
8573
8574    *nto* | *qnx*)
8575      # QNX uses GNU C++, but need to define -shared option too, otherwise
8576      # it will coredump.
8577      lt_prog_compiler_pic='-fPIC -shared'
8578      ;;
8579
8580    sysv4*MP*)
8581      if test -d /usr/nec; then
8582	lt_prog_compiler_pic=-Kconform_pic
8583      fi
8584      ;;
8585
8586    *)
8587      lt_prog_compiler_pic='-fPIC'
8588      ;;
8589    esac
8590
8591    case $cc_basename in
8592    nvcc*) # Cuda Compiler Driver 2.2
8593      lt_prog_compiler_wl='-Xlinker '
8594      if test -n "$lt_prog_compiler_pic"; then
8595        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8596      fi
8597      ;;
8598    esac
8599  else
8600    # PORTME Check for flag to pass linker flags through the system compiler.
8601    case $host_os in
8602    aix*)
8603      lt_prog_compiler_wl='-Wl,'
8604      if test ia64 = "$host_cpu"; then
8605	# AIX 5 now supports IA64 processor
8606	lt_prog_compiler_static='-Bstatic'
8607      else
8608	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8609      fi
8610      ;;
8611
8612    darwin* | rhapsody*)
8613      # PIC is the default on this platform
8614      # Common symbols not allowed in MH_DYLIB files
8615      lt_prog_compiler_pic='-fno-common'
8616      case $cc_basename in
8617      nagfor*)
8618        # NAG Fortran compiler
8619        lt_prog_compiler_wl='-Wl,-Wl,,'
8620        lt_prog_compiler_pic='-PIC'
8621        lt_prog_compiler_static='-Bstatic'
8622        ;;
8623      esac
8624      ;;
8625
8626    mingw* | cygwin* | pw32* | os2* | cegcc*)
8627      # This hack is so that the source file can tell whether it is being
8628      # built for inclusion in a dll (and should export symbols for example).
8629      lt_prog_compiler_pic='-DDLL_EXPORT'
8630      case $host_os in
8631      os2*)
8632	lt_prog_compiler_static='$wl-static'
8633	;;
8634      esac
8635      ;;
8636
8637    hpux9* | hpux10* | hpux11*)
8638      lt_prog_compiler_wl='-Wl,'
8639      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8640      # not for PA HP-UX.
8641      case $host_cpu in
8642      hppa*64*|ia64*)
8643	# +Z the default
8644	;;
8645      *)
8646	lt_prog_compiler_pic='+Z'
8647	;;
8648      esac
8649      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8650      lt_prog_compiler_static='$wl-a ${wl}archive'
8651      ;;
8652
8653    irix5* | irix6* | nonstopux*)
8654      lt_prog_compiler_wl='-Wl,'
8655      # PIC (with -KPIC) is the default.
8656      lt_prog_compiler_static='-non_shared'
8657      ;;
8658
8659    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8660      case $cc_basename in
8661      # old Intel for x86_64, which still supported -KPIC.
8662      ecc*)
8663	lt_prog_compiler_wl='-Wl,'
8664	lt_prog_compiler_pic='-KPIC'
8665	lt_prog_compiler_static='-static'
8666        ;;
8667      # icc used to be incompatible with GCC.
8668      # ICC 10 doesn't accept -KPIC any more.
8669      icc* | ifort*)
8670	lt_prog_compiler_wl='-Wl,'
8671	lt_prog_compiler_pic='-fPIC'
8672	lt_prog_compiler_static='-static'
8673        ;;
8674      # Lahey Fortran 8.1.
8675      lf95*)
8676	lt_prog_compiler_wl='-Wl,'
8677	lt_prog_compiler_pic='--shared'
8678	lt_prog_compiler_static='--static'
8679	;;
8680      nagfor*)
8681	# NAG Fortran compiler
8682	lt_prog_compiler_wl='-Wl,-Wl,,'
8683	lt_prog_compiler_pic='-PIC'
8684	lt_prog_compiler_static='-Bstatic'
8685	;;
8686      tcc*)
8687	# Fabrice Bellard et al's Tiny C Compiler
8688	lt_prog_compiler_wl='-Wl,'
8689	lt_prog_compiler_pic='-fPIC'
8690	lt_prog_compiler_static='-static'
8691	;;
8692      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8693        # Portland Group compilers (*not* the Pentium gcc compiler,
8694	# which looks to be a dead project)
8695	lt_prog_compiler_wl='-Wl,'
8696	lt_prog_compiler_pic='-fpic'
8697	lt_prog_compiler_static='-Bstatic'
8698        ;;
8699      ccc*)
8700        lt_prog_compiler_wl='-Wl,'
8701        # All Alpha code is PIC.
8702        lt_prog_compiler_static='-non_shared'
8703        ;;
8704      xl* | bgxl* | bgf* | mpixl*)
8705	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8706	lt_prog_compiler_wl='-Wl,'
8707	lt_prog_compiler_pic='-qpic'
8708	lt_prog_compiler_static='-qstaticlink'
8709	;;
8710      *)
8711	case `$CC -V 2>&1 | sed 5q` in
8712	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8713	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8714	  lt_prog_compiler_pic='-KPIC'
8715	  lt_prog_compiler_static='-Bstatic'
8716	  lt_prog_compiler_wl=''
8717	  ;;
8718	*Sun\ F* | *Sun*Fortran*)
8719	  lt_prog_compiler_pic='-KPIC'
8720	  lt_prog_compiler_static='-Bstatic'
8721	  lt_prog_compiler_wl='-Qoption ld '
8722	  ;;
8723	*Sun\ C*)
8724	  # Sun C 5.9
8725	  lt_prog_compiler_pic='-KPIC'
8726	  lt_prog_compiler_static='-Bstatic'
8727	  lt_prog_compiler_wl='-Wl,'
8728	  ;;
8729        *Intel*\ [CF]*Compiler*)
8730	  lt_prog_compiler_wl='-Wl,'
8731	  lt_prog_compiler_pic='-fPIC'
8732	  lt_prog_compiler_static='-static'
8733	  ;;
8734	*Portland\ Group*)
8735	  lt_prog_compiler_wl='-Wl,'
8736	  lt_prog_compiler_pic='-fpic'
8737	  lt_prog_compiler_static='-Bstatic'
8738	  ;;
8739	esac
8740	;;
8741      esac
8742      ;;
8743
8744    newsos6)
8745      lt_prog_compiler_pic='-KPIC'
8746      lt_prog_compiler_static='-Bstatic'
8747      ;;
8748
8749    *nto* | *qnx*)
8750      # QNX uses GNU C++, but need to define -shared option too, otherwise
8751      # it will coredump.
8752      lt_prog_compiler_pic='-fPIC -shared'
8753      ;;
8754
8755    osf3* | osf4* | osf5*)
8756      lt_prog_compiler_wl='-Wl,'
8757      # All OSF/1 code is PIC.
8758      lt_prog_compiler_static='-non_shared'
8759      ;;
8760
8761    rdos*)
8762      lt_prog_compiler_static='-non_shared'
8763      ;;
8764
8765    solaris*)
8766      lt_prog_compiler_pic='-KPIC'
8767      lt_prog_compiler_static='-Bstatic'
8768      case $cc_basename in
8769      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8770	lt_prog_compiler_wl='-Qoption ld ';;
8771      *)
8772	lt_prog_compiler_wl='-Wl,';;
8773      esac
8774      ;;
8775
8776    sunos4*)
8777      lt_prog_compiler_wl='-Qoption ld '
8778      lt_prog_compiler_pic='-PIC'
8779      lt_prog_compiler_static='-Bstatic'
8780      ;;
8781
8782    sysv4 | sysv4.2uw2* | sysv4.3*)
8783      lt_prog_compiler_wl='-Wl,'
8784      lt_prog_compiler_pic='-KPIC'
8785      lt_prog_compiler_static='-Bstatic'
8786      ;;
8787
8788    sysv4*MP*)
8789      if test -d /usr/nec; then
8790	lt_prog_compiler_pic='-Kconform_pic'
8791	lt_prog_compiler_static='-Bstatic'
8792      fi
8793      ;;
8794
8795    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8796      lt_prog_compiler_wl='-Wl,'
8797      lt_prog_compiler_pic='-KPIC'
8798      lt_prog_compiler_static='-Bstatic'
8799      ;;
8800
8801    unicos*)
8802      lt_prog_compiler_wl='-Wl,'
8803      lt_prog_compiler_can_build_shared=no
8804      ;;
8805
8806    uts4*)
8807      lt_prog_compiler_pic='-pic'
8808      lt_prog_compiler_static='-Bstatic'
8809      ;;
8810
8811    *)
8812      lt_prog_compiler_can_build_shared=no
8813      ;;
8814    esac
8815  fi
8816
8817case $host_os in
8818  # For platforms that do not support PIC, -DPIC is meaningless:
8819  *djgpp*)
8820    lt_prog_compiler_pic=
8821    ;;
8822  *)
8823    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8824    ;;
8825esac
8826
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8828$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8829if ${lt_cv_prog_compiler_pic+:} false; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8835$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8836lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8837
8838#
8839# Check to make sure the PIC flag actually works.
8840#
8841if test -n "$lt_prog_compiler_pic"; then
8842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8843$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8844if ${lt_cv_prog_compiler_pic_works+:} false; then :
8845  $as_echo_n "(cached) " >&6
8846else
8847  lt_cv_prog_compiler_pic_works=no
8848   ac_outfile=conftest.$ac_objext
8849   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8851   # Insert the option either (1) after the last *FLAGS variable, or
8852   # (2) before a word containing "conftest.", or (3) at the end.
8853   # Note that $ac_compile itself does not contain backslashes and begins
8854   # with a dollar sign (not a hyphen), so the echo should work correctly.
8855   # The option is referenced via a variable to avoid confusing sed.
8856   lt_compile=`echo "$ac_compile" | $SED \
8857   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859   -e 's:$: $lt_compiler_flag:'`
8860   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861   (eval "$lt_compile" 2>conftest.err)
8862   ac_status=$?
8863   cat conftest.err >&5
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   if (exit $ac_status) && test -s "$ac_outfile"; then
8866     # The compiler can only warn and ignore the option if not recognized
8867     # So say no if there are warnings other than the usual output.
8868     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8869     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8870     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8871       lt_cv_prog_compiler_pic_works=yes
8872     fi
8873   fi
8874   $RM conftest*
8875
8876fi
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8878$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8879
8880if test yes = "$lt_cv_prog_compiler_pic_works"; then
8881    case $lt_prog_compiler_pic in
8882     "" | " "*) ;;
8883     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8884     esac
8885else
8886    lt_prog_compiler_pic=
8887     lt_prog_compiler_can_build_shared=no
8888fi
8889
8890fi
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902#
8903# Check to make sure the static flag actually works.
8904#
8905wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8907$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8908if ${lt_cv_prog_compiler_static_works+:} false; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  lt_cv_prog_compiler_static_works=no
8912   save_LDFLAGS=$LDFLAGS
8913   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8914   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8915   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8916     # The linker can only warn and ignore the option if not recognized
8917     # So say no if there are warnings
8918     if test -s conftest.err; then
8919       # Append any errors to the config.log.
8920       cat conftest.err 1>&5
8921       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8922       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8923       if diff conftest.exp conftest.er2 >/dev/null; then
8924         lt_cv_prog_compiler_static_works=yes
8925       fi
8926     else
8927       lt_cv_prog_compiler_static_works=yes
8928     fi
8929   fi
8930   $RM -r conftest*
8931   LDFLAGS=$save_LDFLAGS
8932
8933fi
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8935$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8936
8937if test yes = "$lt_cv_prog_compiler_static_works"; then
8938    :
8939else
8940    lt_prog_compiler_static=
8941fi
8942
8943
8944
8945
8946
8947
8948
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8950$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8951if ${lt_cv_prog_compiler_c_o+:} false; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  lt_cv_prog_compiler_c_o=no
8955   $RM -r conftest 2>/dev/null
8956   mkdir conftest
8957   cd conftest
8958   mkdir out
8959   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8960
8961   lt_compiler_flag="-o out/conftest2.$ac_objext"
8962   # Insert the option either (1) after the last *FLAGS variable, or
8963   # (2) before a word containing "conftest.", or (3) at the end.
8964   # Note that $ac_compile itself does not contain backslashes and begins
8965   # with a dollar sign (not a hyphen), so the echo should work correctly.
8966   lt_compile=`echo "$ac_compile" | $SED \
8967   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8968   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8969   -e 's:$: $lt_compiler_flag:'`
8970   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8971   (eval "$lt_compile" 2>out/conftest.err)
8972   ac_status=$?
8973   cat out/conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8976   then
8977     # The compiler can only warn and ignore the option if not recognized
8978     # So say no if there are warnings
8979     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8980     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8981     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8982       lt_cv_prog_compiler_c_o=yes
8983     fi
8984   fi
8985   chmod u+w . 2>&5
8986   $RM conftest*
8987   # SGI C++ compiler will create directory out/ii_files/ for
8988   # template instantiation
8989   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8990   $RM out/* && rmdir out
8991   cd ..
8992   $RM -r conftest
8993   $RM conftest*
8994
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8997$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8998
8999
9000
9001
9002
9003
9004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9005$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9006if ${lt_cv_prog_compiler_c_o+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  lt_cv_prog_compiler_c_o=no
9010   $RM -r conftest 2>/dev/null
9011   mkdir conftest
9012   cd conftest
9013   mkdir out
9014   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015
9016   lt_compiler_flag="-o out/conftest2.$ac_objext"
9017   # Insert the option either (1) after the last *FLAGS variable, or
9018   # (2) before a word containing "conftest.", or (3) at the end.
9019   # Note that $ac_compile itself does not contain backslashes and begins
9020   # with a dollar sign (not a hyphen), so the echo should work correctly.
9021   lt_compile=`echo "$ac_compile" | $SED \
9022   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024   -e 's:$: $lt_compiler_flag:'`
9025   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9026   (eval "$lt_compile" 2>out/conftest.err)
9027   ac_status=$?
9028   cat out/conftest.err >&5
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9031   then
9032     # The compiler can only warn and ignore the option if not recognized
9033     # So say no if there are warnings
9034     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9035     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9036     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9037       lt_cv_prog_compiler_c_o=yes
9038     fi
9039   fi
9040   chmod u+w . 2>&5
9041   $RM conftest*
9042   # SGI C++ compiler will create directory out/ii_files/ for
9043   # template instantiation
9044   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9045   $RM out/* && rmdir out
9046   cd ..
9047   $RM -r conftest
9048   $RM conftest*
9049
9050fi
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9052$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9053
9054
9055
9056
9057hard_links=nottested
9058if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9059  # do not overwrite the value of need_locks provided by the user
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9061$as_echo_n "checking if we can lock with hard links... " >&6; }
9062  hard_links=yes
9063  $RM conftest*
9064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9065  touch conftest.a
9066  ln conftest.a conftest.b 2>&5 || hard_links=no
9067  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9069$as_echo "$hard_links" >&6; }
9070  if test no = "$hard_links"; then
9071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9072$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9073    need_locks=warn
9074  fi
9075else
9076  need_locks=no
9077fi
9078
9079
9080
9081
9082
9083
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9085$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9086
9087  runpath_var=
9088  allow_undefined_flag=
9089  always_export_symbols=no
9090  archive_cmds=
9091  archive_expsym_cmds=
9092  compiler_needs_object=no
9093  enable_shared_with_static_runtimes=no
9094  export_dynamic_flag_spec=
9095  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9096  hardcode_automatic=no
9097  hardcode_direct=no
9098  hardcode_direct_absolute=no
9099  hardcode_libdir_flag_spec=
9100  hardcode_libdir_separator=
9101  hardcode_minus_L=no
9102  hardcode_shlibpath_var=unsupported
9103  inherit_rpath=no
9104  link_all_deplibs=unknown
9105  module_cmds=
9106  module_expsym_cmds=
9107  old_archive_from_new_cmds=
9108  old_archive_from_expsyms_cmds=
9109  thread_safe_flag_spec=
9110  whole_archive_flag_spec=
9111  # include_expsyms should be a list of space-separated symbols to be *always*
9112  # included in the symbol list
9113  include_expsyms=
9114  # exclude_expsyms can be an extended regexp of symbols to exclude
9115  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9116  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9117  # as well as any symbol that contains 'd'.
9118  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9119  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9120  # platforms (ab)use it in PIC code, but their linkers get confused if
9121  # the symbol is explicitly referenced.  Since portable code cannot
9122  # rely on this symbol name, it's probably fine to never include it in
9123  # preloaded symbol tables.
9124  # Exclude shared library initialization/finalization symbols.
9125  extract_expsyms_cmds=
9126
9127  case $host_os in
9128  cygwin* | mingw* | pw32* | cegcc*)
9129    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9130    # When not using gcc, we currently assume that we are using
9131    # Microsoft Visual C++.
9132    if test yes != "$GCC"; then
9133      with_gnu_ld=no
9134    fi
9135    ;;
9136  interix*)
9137    # we just hope/assume this is gcc and not c89 (= MSVC++)
9138    with_gnu_ld=yes
9139    ;;
9140  openbsd* | bitrig*)
9141    with_gnu_ld=no
9142    ;;
9143  esac
9144
9145  ld_shlibs=yes
9146
9147  # On some targets, GNU ld is compatible enough with the native linker
9148  # that we're better off using the native interface for both.
9149  lt_use_gnu_ld_interface=no
9150  if test yes = "$with_gnu_ld"; then
9151    case $host_os in
9152      aix*)
9153	# The AIX port of GNU ld has always aspired to compatibility
9154	# with the native linker.  However, as the warning in the GNU ld
9155	# block says, versions before 2.19.5* couldn't really create working
9156	# shared libraries, regardless of the interface used.
9157	case `$LD -v 2>&1` in
9158	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9159	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9160	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9161	  *)
9162	    lt_use_gnu_ld_interface=yes
9163	    ;;
9164	esac
9165	;;
9166      *)
9167	lt_use_gnu_ld_interface=yes
9168	;;
9169    esac
9170  fi
9171
9172  if test yes = "$lt_use_gnu_ld_interface"; then
9173    # If archive_cmds runs LD, not CC, wlarc should be empty
9174    wlarc='$wl'
9175
9176    # Set some defaults for GNU ld with shared library support. These
9177    # are reset later if shared libraries are not supported. Putting them
9178    # here allows them to be overridden if necessary.
9179    runpath_var=LD_RUN_PATH
9180    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9181    export_dynamic_flag_spec='$wl--export-dynamic'
9182    # ancient GNU ld didn't support --whole-archive et. al.
9183    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9184      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9185    else
9186      whole_archive_flag_spec=
9187    fi
9188    supports_anon_versioning=no
9189    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9190      *GNU\ gold*) supports_anon_versioning=yes ;;
9191      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9192      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9193      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9194      *\ 2.11.*) ;; # other 2.11 versions
9195      *) supports_anon_versioning=yes ;;
9196    esac
9197
9198    # See if GNU ld supports shared libraries.
9199    case $host_os in
9200    aix[3-9]*)
9201      # On AIX/PPC, the GNU linker is very broken
9202      if test ia64 != "$host_cpu"; then
9203	ld_shlibs=no
9204	cat <<_LT_EOF 1>&2
9205
9206*** Warning: the GNU linker, at least up to release 2.19, is reported
9207*** to be unable to reliably create shared libraries on AIX.
9208*** Therefore, libtool is disabling shared libraries support.  If you
9209*** really care for shared libraries, you may want to install binutils
9210*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9211*** You will then need to restart the configuration process.
9212
9213_LT_EOF
9214      fi
9215      ;;
9216
9217    amigaos*)
9218      case $host_cpu in
9219      powerpc)
9220            # see comment about AmigaOS4 .so support
9221            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9222            archive_expsym_cmds=''
9223        ;;
9224      m68k)
9225            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)'
9226            hardcode_libdir_flag_spec='-L$libdir'
9227            hardcode_minus_L=yes
9228        ;;
9229      esac
9230      ;;
9231
9232    beos*)
9233      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234	allow_undefined_flag=unsupported
9235	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9236	# support --undefined.  This deserves some investigation.  FIXME
9237	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9238      else
9239	ld_shlibs=no
9240      fi
9241      ;;
9242
9243    cygwin* | mingw* | pw32* | cegcc*)
9244      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9245      # as there is no search path for DLLs.
9246      hardcode_libdir_flag_spec='-L$libdir'
9247      export_dynamic_flag_spec='$wl--export-all-symbols'
9248      allow_undefined_flag=unsupported
9249      always_export_symbols=no
9250      enable_shared_with_static_runtimes=yes
9251      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'
9252      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9253
9254      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9255        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9256	# If the export-symbols file already is a .def file, use it as
9257	# is; otherwise, prepend EXPORTS...
9258	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9259          cp $export_symbols $output_objdir/$soname.def;
9260        else
9261          echo EXPORTS > $output_objdir/$soname.def;
9262          cat $export_symbols >> $output_objdir/$soname.def;
9263        fi~
9264        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9265      else
9266	ld_shlibs=no
9267      fi
9268      ;;
9269
9270    haiku*)
9271      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9272      link_all_deplibs=yes
9273      ;;
9274
9275    os2*)
9276      hardcode_libdir_flag_spec='-L$libdir'
9277      hardcode_minus_L=yes
9278      allow_undefined_flag=unsupported
9279      shrext_cmds=.dll
9280      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9281	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9282	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9283	$ECHO EXPORTS >> $output_objdir/$libname.def~
9284	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9285	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9286	emximp -o $lib $output_objdir/$libname.def'
9287      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9288	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9289	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9290	$ECHO EXPORTS >> $output_objdir/$libname.def~
9291	prefix_cmds="$SED"~
9292	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9293	  prefix_cmds="$prefix_cmds -e 1d";
9294	fi~
9295	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9296	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9297	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9298	emximp -o $lib $output_objdir/$libname.def'
9299      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9300      enable_shared_with_static_runtimes=yes
9301      ;;
9302
9303    interix[3-9]*)
9304      hardcode_direct=no
9305      hardcode_shlibpath_var=no
9306      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9307      export_dynamic_flag_spec='$wl-E'
9308      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9309      # Instead, shared libraries are loaded at an image base (0x10000000 by
9310      # default) and relocated if they conflict, which is a slow very memory
9311      # consuming and fragmenting process.  To avoid this, we pick a random,
9312      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9313      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9314      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9315      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'
9316      ;;
9317
9318    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9319      tmp_diet=no
9320      if test linux-dietlibc = "$host_os"; then
9321	case $cc_basename in
9322	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9323	esac
9324      fi
9325      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9326	 && test no = "$tmp_diet"
9327      then
9328	tmp_addflag=' $pic_flag'
9329	tmp_sharedflag='-shared'
9330	case $cc_basename,$host_cpu in
9331        pgcc*)				# Portland Group C compiler
9332	  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'
9333	  tmp_addflag=' $pic_flag'
9334	  ;;
9335	pgf77* | pgf90* | pgf95* | pgfortran*)
9336					# Portland Group f77 and f90 compilers
9337	  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'
9338	  tmp_addflag=' $pic_flag -Mnomain' ;;
9339	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9340	  tmp_addflag=' -i_dynamic' ;;
9341	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9342	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9343	ifc* | ifort*)			# Intel Fortran compiler
9344	  tmp_addflag=' -nofor_main' ;;
9345	lf95*)				# Lahey Fortran 8.1
9346	  whole_archive_flag_spec=
9347	  tmp_sharedflag='--shared' ;;
9348        nagfor*)                        # NAGFOR 5.3
9349          tmp_sharedflag='-Wl,-shared' ;;
9350	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9351	  tmp_sharedflag='-qmkshrobj'
9352	  tmp_addflag= ;;
9353	nvcc*)	# Cuda Compiler Driver 2.2
9354	  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'
9355	  compiler_needs_object=yes
9356	  ;;
9357	esac
9358	case `$CC -V 2>&1 | sed 5q` in
9359	*Sun\ C*)			# Sun C 5.9
9360	  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'
9361	  compiler_needs_object=yes
9362	  tmp_sharedflag='-G' ;;
9363	*Sun\ F*)			# Sun Fortran 8.3
9364	  tmp_sharedflag='-G' ;;
9365	esac
9366	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9367
9368        if test yes = "$supports_anon_versioning"; then
9369          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9370            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9371            echo "local: *; };" >> $output_objdir/$libname.ver~
9372            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9373        fi
9374
9375	case $cc_basename in
9376	tcc*)
9377	  export_dynamic_flag_spec='-rdynamic'
9378	  ;;
9379	xlf* | bgf* | bgxlf* | mpixlf*)
9380	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9381	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9382	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9383	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9384	  if test yes = "$supports_anon_versioning"; then
9385	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9386              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9387              echo "local: *; };" >> $output_objdir/$libname.ver~
9388              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9389	  fi
9390	  ;;
9391	esac
9392      else
9393        ld_shlibs=no
9394      fi
9395      ;;
9396
9397    netbsd*)
9398      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9399	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9400	wlarc=
9401      else
9402	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9403	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9404      fi
9405      ;;
9406
9407    solaris*)
9408      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9409	ld_shlibs=no
9410	cat <<_LT_EOF 1>&2
9411
9412*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9413*** create shared libraries on Solaris systems.  Therefore, libtool
9414*** is disabling shared libraries support.  We urge you to upgrade GNU
9415*** binutils to release 2.9.1 or newer.  Another option is to modify
9416*** your PATH or compiler configuration so that the native linker is
9417*** used, and then restart.
9418
9419_LT_EOF
9420      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9422	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9423      else
9424	ld_shlibs=no
9425      fi
9426      ;;
9427
9428    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9429      case `$LD -v 2>&1` in
9430        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9431	ld_shlibs=no
9432	cat <<_LT_EOF 1>&2
9433
9434*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9435*** reliably create shared libraries on SCO systems.  Therefore, libtool
9436*** is disabling shared libraries support.  We urge you to upgrade GNU
9437*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9438*** your PATH or compiler configuration so that the native linker is
9439*** used, and then restart.
9440
9441_LT_EOF
9442	;;
9443	*)
9444	  # For security reasons, it is highly recommended that you always
9445	  # use absolute paths for naming shared libraries, and exclude the
9446	  # DT_RUNPATH tag from executables and libraries.  But doing so
9447	  # requires that you compile everything twice, which is a pain.
9448	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9450	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9451	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9452	  else
9453	    ld_shlibs=no
9454	  fi
9455	;;
9456      esac
9457      ;;
9458
9459    sunos4*)
9460      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9461      wlarc=
9462      hardcode_direct=yes
9463      hardcode_shlibpath_var=no
9464      ;;
9465
9466    *)
9467      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9468	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9469	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9470      else
9471	ld_shlibs=no
9472      fi
9473      ;;
9474    esac
9475
9476    if test no = "$ld_shlibs"; then
9477      runpath_var=
9478      hardcode_libdir_flag_spec=
9479      export_dynamic_flag_spec=
9480      whole_archive_flag_spec=
9481    fi
9482  else
9483    # PORTME fill in a description of your system's linker (not GNU ld)
9484    case $host_os in
9485    aix3*)
9486      allow_undefined_flag=unsupported
9487      always_export_symbols=yes
9488      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'
9489      # Note: this linker hardcodes the directories in LIBPATH if there
9490      # are no directories specified by -L.
9491      hardcode_minus_L=yes
9492      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9493	# Neither direct hardcoding nor static linking is supported with a
9494	# broken collect2.
9495	hardcode_direct=unsupported
9496      fi
9497      ;;
9498
9499    aix[4-9]*)
9500      if test ia64 = "$host_cpu"; then
9501	# On IA64, the linker does run time linking by default, so we don't
9502	# have to do anything special.
9503	aix_use_runtimelinking=no
9504	exp_sym_flag='-Bexport'
9505	no_entry_flag=
9506      else
9507	# If we're using GNU nm, then we don't want the "-C" option.
9508	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9509	# Without the "-l" option, or with the "-B" option, AIX nm treats
9510	# weak defined symbols like other global defined symbols, whereas
9511	# GNU nm marks them as "W".
9512	# While the 'weak' keyword is ignored in the Export File, we need
9513	# it in the Import File for the 'aix-soname' feature, so we have
9514	# to replace the "-B" option with "-P" for AIX nm.
9515	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9516	  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'
9517	else
9518	  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'
9519	fi
9520	aix_use_runtimelinking=no
9521
9522	# Test if we are trying to use run time linking or normal
9523	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9524	# have runtime linking enabled, and use it for executables.
9525	# For shared libraries, we enable/disable runtime linking
9526	# depending on the kind of the shared library created -
9527	# when "with_aix_soname,aix_use_runtimelinking" is:
9528	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9529	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9530	#            lib.a           static archive
9531	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9532	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9533	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9534	#            lib.a(lib.so.V) shared, rtl:no
9535	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9536	#            lib.a           static archive
9537	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9538	  for ld_flag in $LDFLAGS; do
9539	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9540	    aix_use_runtimelinking=yes
9541	    break
9542	  fi
9543	  done
9544	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9545	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9546	    # so we don't have lib.a shared libs to link our executables.
9547	    # We have to force runtime linking in this case.
9548	    aix_use_runtimelinking=yes
9549	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9550	  fi
9551	  ;;
9552	esac
9553
9554	exp_sym_flag='-bexport'
9555	no_entry_flag='-bnoentry'
9556      fi
9557
9558      # When large executables or shared objects are built, AIX ld can
9559      # have problems creating the table of contents.  If linking a library
9560      # or program results in "error TOC overflow" add -mminimal-toc to
9561      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9562      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9563
9564      archive_cmds=''
9565      hardcode_direct=yes
9566      hardcode_direct_absolute=yes
9567      hardcode_libdir_separator=':'
9568      link_all_deplibs=yes
9569      file_list_spec='$wl-f,'
9570      case $with_aix_soname,$aix_use_runtimelinking in
9571      aix,*) ;; # traditional, no import file
9572      svr4,* | *,yes) # use import file
9573	# The Import File defines what to hardcode.
9574	hardcode_direct=no
9575	hardcode_direct_absolute=no
9576	;;
9577      esac
9578
9579      if test yes = "$GCC"; then
9580	case $host_os in aix4.[012]|aix4.[012].*)
9581	# We only want to do this on AIX 4.2 and lower, the check
9582	# below for broken collect2 doesn't work under 4.3+
9583	  collect2name=`$CC -print-prog-name=collect2`
9584	  if test -f "$collect2name" &&
9585	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9586	  then
9587	  # We have reworked collect2
9588	  :
9589	  else
9590	  # We have old collect2
9591	  hardcode_direct=unsupported
9592	  # It fails to find uninstalled libraries when the uninstalled
9593	  # path is not listed in the libpath.  Setting hardcode_minus_L
9594	  # to unsupported forces relinking
9595	  hardcode_minus_L=yes
9596	  hardcode_libdir_flag_spec='-L$libdir'
9597	  hardcode_libdir_separator=
9598	  fi
9599	  ;;
9600	esac
9601	shared_flag='-shared'
9602	if test yes = "$aix_use_runtimelinking"; then
9603	  shared_flag="$shared_flag "'$wl-G'
9604	fi
9605	# Need to ensure runtime linking is disabled for the traditional
9606	# shared library, or the linker may eventually find shared libraries
9607	# /with/ Import File - we do not want to mix them.
9608	shared_flag_aix='-shared'
9609	shared_flag_svr4='-shared $wl-G'
9610      else
9611	# not using gcc
9612	if test ia64 = "$host_cpu"; then
9613	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9614	# chokes on -Wl,-G. The following line is correct:
9615	  shared_flag='-G'
9616	else
9617	  if test yes = "$aix_use_runtimelinking"; then
9618	    shared_flag='$wl-G'
9619	  else
9620	    shared_flag='$wl-bM:SRE'
9621	  fi
9622	  shared_flag_aix='$wl-bM:SRE'
9623	  shared_flag_svr4='$wl-G'
9624	fi
9625      fi
9626
9627      export_dynamic_flag_spec='$wl-bexpall'
9628      # It seems that -bexpall does not export symbols beginning with
9629      # underscore (_), so it is better to generate a list of symbols to export.
9630      always_export_symbols=yes
9631      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9632	# Warning - without using the other runtime loading flags (-brtl),
9633	# -berok will link without error, but may produce a broken library.
9634	allow_undefined_flag='-berok'
9635        # Determine the default libpath from the value encoded in an
9636        # empty executable.
9637        if test set = "${lt_cv_aix_libpath+set}"; then
9638  aix_libpath=$lt_cv_aix_libpath
9639else
9640  if ${lt_cv_aix_libpath_+:} false; then :
9641  $as_echo_n "(cached) " >&6
9642else
9643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644/* end confdefs.h.  */
9645
9646int
9647main ()
9648{
9649
9650  ;
9651  return 0;
9652}
9653_ACEOF
9654if ac_fn_c_try_link "$LINENO"; then :
9655
9656  lt_aix_libpath_sed='
9657      /Import File Strings/,/^$/ {
9658	  /^0/ {
9659	      s/^0  *\([^ ]*\) *$/\1/
9660	      p
9661	  }
9662      }'
9663  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9664  # Check for a 64-bit object if we didn't find anything.
9665  if test -z "$lt_cv_aix_libpath_"; then
9666    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9667  fi
9668fi
9669rm -f core conftest.err conftest.$ac_objext \
9670    conftest$ac_exeext conftest.$ac_ext
9671  if test -z "$lt_cv_aix_libpath_"; then
9672    lt_cv_aix_libpath_=/usr/lib:/lib
9673  fi
9674
9675fi
9676
9677  aix_libpath=$lt_cv_aix_libpath_
9678fi
9679
9680        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9681        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
9682      else
9683	if test ia64 = "$host_cpu"; then
9684	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9685	  allow_undefined_flag="-z nodefs"
9686	  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"
9687	else
9688	 # Determine the default libpath from the value encoded in an
9689	 # empty executable.
9690	 if test set = "${lt_cv_aix_libpath+set}"; then
9691  aix_libpath=$lt_cv_aix_libpath
9692else
9693  if ${lt_cv_aix_libpath_+:} false; then :
9694  $as_echo_n "(cached) " >&6
9695else
9696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697/* end confdefs.h.  */
9698
9699int
9700main ()
9701{
9702
9703  ;
9704  return 0;
9705}
9706_ACEOF
9707if ac_fn_c_try_link "$LINENO"; then :
9708
9709  lt_aix_libpath_sed='
9710      /Import File Strings/,/^$/ {
9711	  /^0/ {
9712	      s/^0  *\([^ ]*\) *$/\1/
9713	      p
9714	  }
9715      }'
9716  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9717  # Check for a 64-bit object if we didn't find anything.
9718  if test -z "$lt_cv_aix_libpath_"; then
9719    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720  fi
9721fi
9722rm -f core conftest.err conftest.$ac_objext \
9723    conftest$ac_exeext conftest.$ac_ext
9724  if test -z "$lt_cv_aix_libpath_"; then
9725    lt_cv_aix_libpath_=/usr/lib:/lib
9726  fi
9727
9728fi
9729
9730  aix_libpath=$lt_cv_aix_libpath_
9731fi
9732
9733	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9734	  # Warning - without using the other run time loading flags,
9735	  # -berok will link without error, but may produce a broken library.
9736	  no_undefined_flag=' $wl-bernotok'
9737	  allow_undefined_flag=' $wl-berok'
9738	  if test yes = "$with_gnu_ld"; then
9739	    # We only use this code for GNU lds that support --whole-archive.
9740	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9741	  else
9742	    # Exported symbols can be pulled into shared objects from archives
9743	    whole_archive_flag_spec='$convenience'
9744	  fi
9745	  archive_cmds_need_lc=yes
9746	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9747	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9748	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9749	  if test svr4 != "$with_aix_soname"; then
9750	    # This is similar to how AIX traditionally builds its shared libraries.
9751	    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'
9752	  fi
9753	  if test aix != "$with_aix_soname"; then
9754	    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'
9755	  else
9756	    # used by -dlpreopen to get the symbols
9757	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9758	  fi
9759	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9760	fi
9761      fi
9762      ;;
9763
9764    amigaos*)
9765      case $host_cpu in
9766      powerpc)
9767            # see comment about AmigaOS4 .so support
9768            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769            archive_expsym_cmds=''
9770        ;;
9771      m68k)
9772            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)'
9773            hardcode_libdir_flag_spec='-L$libdir'
9774            hardcode_minus_L=yes
9775        ;;
9776      esac
9777      ;;
9778
9779    bsdi[45]*)
9780      export_dynamic_flag_spec=-rdynamic
9781      ;;
9782
9783    cygwin* | mingw* | pw32* | cegcc*)
9784      # When not using gcc, we currently assume that we are using
9785      # Microsoft Visual C++.
9786      # hardcode_libdir_flag_spec is actually meaningless, as there is
9787      # no search path for DLLs.
9788      case $cc_basename in
9789      cl*)
9790	# Native MSVC
9791	hardcode_libdir_flag_spec=' '
9792	allow_undefined_flag=unsupported
9793	always_export_symbols=yes
9794	file_list_spec='@'
9795	# Tell ltmain to make .lib files, not .a files.
9796	libext=lib
9797	# Tell ltmain to make .dll files, not .so files.
9798	shrext_cmds=.dll
9799	# FIXME: Setting linknames here is a bad hack.
9800	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9801	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9802            cp "$export_symbols" "$output_objdir/$soname.def";
9803            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9804          else
9805            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9806          fi~
9807          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9808          linknames='
9809	# The linker will not automatically build a static lib if we build a DLL.
9810	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9811	enable_shared_with_static_runtimes=yes
9812	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9813	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9814	# Don't use ranlib
9815	old_postinstall_cmds='chmod 644 $oldlib'
9816	postlink_cmds='lt_outputfile="@OUTPUT@"~
9817          lt_tool_outputfile="@TOOL_OUTPUT@"~
9818          case $lt_outputfile in
9819            *.exe|*.EXE) ;;
9820            *)
9821              lt_outputfile=$lt_outputfile.exe
9822              lt_tool_outputfile=$lt_tool_outputfile.exe
9823              ;;
9824          esac~
9825          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9826            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9827            $RM "$lt_outputfile.manifest";
9828          fi'
9829	;;
9830      *)
9831	# Assume MSVC wrapper
9832	hardcode_libdir_flag_spec=' '
9833	allow_undefined_flag=unsupported
9834	# Tell ltmain to make .lib files, not .a files.
9835	libext=lib
9836	# Tell ltmain to make .dll files, not .so files.
9837	shrext_cmds=.dll
9838	# FIXME: Setting linknames here is a bad hack.
9839	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9840	# The linker will automatically build a .lib file if we build a DLL.
9841	old_archive_from_new_cmds='true'
9842	# FIXME: Should let the user specify the lib program.
9843	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9844	enable_shared_with_static_runtimes=yes
9845	;;
9846      esac
9847      ;;
9848
9849    darwin* | rhapsody*)
9850
9851
9852  archive_cmds_need_lc=no
9853  hardcode_direct=no
9854  hardcode_automatic=yes
9855  hardcode_shlibpath_var=unsupported
9856  if test yes = "$lt_cv_ld_force_load"; then
9857    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\"`'
9858
9859  else
9860    whole_archive_flag_spec=''
9861  fi
9862  link_all_deplibs=yes
9863  allow_undefined_flag=$_lt_dar_allow_undefined
9864  case $cc_basename in
9865     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9866     *) _lt_dar_can_shared=$GCC ;;
9867  esac
9868  if test yes = "$_lt_dar_can_shared"; then
9869    output_verbose_link_cmd=func_echo_all
9870    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9871    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9872    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"
9873    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"
9874
9875  else
9876  ld_shlibs=no
9877  fi
9878
9879      ;;
9880
9881    dgux*)
9882      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883      hardcode_libdir_flag_spec='-L$libdir'
9884      hardcode_shlibpath_var=no
9885      ;;
9886
9887    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9888    # support.  Future versions do this automatically, but an explicit c++rt0.o
9889    # does not break anything, and helps significantly (at the cost of a little
9890    # extra space).
9891    freebsd2.2*)
9892      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9893      hardcode_libdir_flag_spec='-R$libdir'
9894      hardcode_direct=yes
9895      hardcode_shlibpath_var=no
9896      ;;
9897
9898    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9899    freebsd2.*)
9900      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9901      hardcode_direct=yes
9902      hardcode_minus_L=yes
9903      hardcode_shlibpath_var=no
9904      ;;
9905
9906    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9907    freebsd* | dragonfly*)
9908      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9909      hardcode_libdir_flag_spec='-R$libdir'
9910      hardcode_direct=yes
9911      hardcode_shlibpath_var=no
9912      ;;
9913
9914    hpux9*)
9915      if test yes = "$GCC"; then
9916	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'
9917      else
9918	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'
9919      fi
9920      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9921      hardcode_libdir_separator=:
9922      hardcode_direct=yes
9923
9924      # hardcode_minus_L: Not really in the search PATH,
9925      # but as the default location of the library.
9926      hardcode_minus_L=yes
9927      export_dynamic_flag_spec='$wl-E'
9928      ;;
9929
9930    hpux10*)
9931      if test yes,no = "$GCC,$with_gnu_ld"; then
9932	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9933      else
9934	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9935      fi
9936      if test no = "$with_gnu_ld"; then
9937	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9938	hardcode_libdir_separator=:
9939	hardcode_direct=yes
9940	hardcode_direct_absolute=yes
9941	export_dynamic_flag_spec='$wl-E'
9942	# hardcode_minus_L: Not really in the search PATH,
9943	# but as the default location of the library.
9944	hardcode_minus_L=yes
9945      fi
9946      ;;
9947
9948    hpux11*)
9949      if test yes,no = "$GCC,$with_gnu_ld"; then
9950	case $host_cpu in
9951	hppa*64*)
9952	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9953	  ;;
9954	ia64*)
9955	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9956	  ;;
9957	*)
9958	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9959	  ;;
9960	esac
9961      else
9962	case $host_cpu in
9963	hppa*64*)
9964	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9965	  ;;
9966	ia64*)
9967	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9968	  ;;
9969	*)
9970
9971	  # Older versions of the 11.00 compiler do not understand -b yet
9972	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9973	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9974$as_echo_n "checking if $CC understands -b... " >&6; }
9975if ${lt_cv_prog_compiler__b+:} false; then :
9976  $as_echo_n "(cached) " >&6
9977else
9978  lt_cv_prog_compiler__b=no
9979   save_LDFLAGS=$LDFLAGS
9980   LDFLAGS="$LDFLAGS -b"
9981   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9982   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9983     # The linker can only warn and ignore the option if not recognized
9984     # So say no if there are warnings
9985     if test -s conftest.err; then
9986       # Append any errors to the config.log.
9987       cat conftest.err 1>&5
9988       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9989       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9990       if diff conftest.exp conftest.er2 >/dev/null; then
9991         lt_cv_prog_compiler__b=yes
9992       fi
9993     else
9994       lt_cv_prog_compiler__b=yes
9995     fi
9996   fi
9997   $RM -r conftest*
9998   LDFLAGS=$save_LDFLAGS
9999
10000fi
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10002$as_echo "$lt_cv_prog_compiler__b" >&6; }
10003
10004if test yes = "$lt_cv_prog_compiler__b"; then
10005    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10006else
10007    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10008fi
10009
10010	  ;;
10011	esac
10012      fi
10013      if test no = "$with_gnu_ld"; then
10014	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10015	hardcode_libdir_separator=:
10016
10017	case $host_cpu in
10018	hppa*64*|ia64*)
10019	  hardcode_direct=no
10020	  hardcode_shlibpath_var=no
10021	  ;;
10022	*)
10023	  hardcode_direct=yes
10024	  hardcode_direct_absolute=yes
10025	  export_dynamic_flag_spec='$wl-E'
10026
10027	  # hardcode_minus_L: Not really in the search PATH,
10028	  # but as the default location of the library.
10029	  hardcode_minus_L=yes
10030	  ;;
10031	esac
10032      fi
10033      ;;
10034
10035    irix5* | irix6* | nonstopux*)
10036      if test yes = "$GCC"; then
10037	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'
10038	# Try to use the -exported_symbol ld option, if it does not
10039	# work, assume that -exports_file does not work either and
10040	# implicitly export all symbols.
10041	# This should be the same for all languages, so no per-tag cache variable.
10042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10043$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10044if ${lt_cv_irix_exported_symbol+:} false; then :
10045  $as_echo_n "(cached) " >&6
10046else
10047  save_LDFLAGS=$LDFLAGS
10048	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10049	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051int foo (void) { return 0; }
10052_ACEOF
10053if ac_fn_c_try_link "$LINENO"; then :
10054  lt_cv_irix_exported_symbol=yes
10055else
10056  lt_cv_irix_exported_symbol=no
10057fi
10058rm -f core conftest.err conftest.$ac_objext \
10059    conftest$ac_exeext conftest.$ac_ext
10060           LDFLAGS=$save_LDFLAGS
10061fi
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10063$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10064	if test yes = "$lt_cv_irix_exported_symbol"; then
10065          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'
10066	fi
10067      else
10068	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'
10069	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'
10070      fi
10071      archive_cmds_need_lc='no'
10072      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10073      hardcode_libdir_separator=:
10074      inherit_rpath=yes
10075      link_all_deplibs=yes
10076      ;;
10077
10078    linux*)
10079      case $cc_basename in
10080      tcc*)
10081	# Fabrice Bellard et al's Tiny C Compiler
10082	ld_shlibs=yes
10083	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084	;;
10085      esac
10086      ;;
10087
10088    netbsd*)
10089      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10090	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10091      else
10092	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10093      fi
10094      hardcode_libdir_flag_spec='-R$libdir'
10095      hardcode_direct=yes
10096      hardcode_shlibpath_var=no
10097      ;;
10098
10099    newsos6)
10100      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101      hardcode_direct=yes
10102      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10103      hardcode_libdir_separator=:
10104      hardcode_shlibpath_var=no
10105      ;;
10106
10107    *nto* | *qnx*)
10108      ;;
10109
10110    openbsd* | bitrig*)
10111      if test -f /usr/libexec/ld.so; then
10112	hardcode_direct=yes
10113	hardcode_shlibpath_var=no
10114	hardcode_direct_absolute=yes
10115	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10116	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10117	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10118	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10119	  export_dynamic_flag_spec='$wl-E'
10120	else
10121	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10122	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10123	fi
10124      else
10125	ld_shlibs=no
10126      fi
10127      ;;
10128
10129    os2*)
10130      hardcode_libdir_flag_spec='-L$libdir'
10131      hardcode_minus_L=yes
10132      allow_undefined_flag=unsupported
10133      shrext_cmds=.dll
10134      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10135	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10136	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10137	$ECHO EXPORTS >> $output_objdir/$libname.def~
10138	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10139	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10140	emximp -o $lib $output_objdir/$libname.def'
10141      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10142	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10143	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10144	$ECHO EXPORTS >> $output_objdir/$libname.def~
10145	prefix_cmds="$SED"~
10146	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10147	  prefix_cmds="$prefix_cmds -e 1d";
10148	fi~
10149	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10150	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10151	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10152	emximp -o $lib $output_objdir/$libname.def'
10153      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10154      enable_shared_with_static_runtimes=yes
10155      ;;
10156
10157    osf3*)
10158      if test yes = "$GCC"; then
10159	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10160	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'
10161      else
10162	allow_undefined_flag=' -expect_unresolved \*'
10163	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'
10164      fi
10165      archive_cmds_need_lc='no'
10166      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10167      hardcode_libdir_separator=:
10168      ;;
10169
10170    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10171      if test yes = "$GCC"; then
10172	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10173	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'
10174	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10175      else
10176	allow_undefined_flag=' -expect_unresolved \*'
10177	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'
10178	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~
10179          $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'
10180
10181	# Both c and cxx compiler support -rpath directly
10182	hardcode_libdir_flag_spec='-rpath $libdir'
10183      fi
10184      archive_cmds_need_lc='no'
10185      hardcode_libdir_separator=:
10186      ;;
10187
10188    solaris*)
10189      no_undefined_flag=' -z defs'
10190      if test yes = "$GCC"; then
10191	wlarc='$wl'
10192	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10193	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10194          $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'
10195      else
10196	case `$CC -V 2>&1` in
10197	*"Compilers 5.0"*)
10198	  wlarc=''
10199	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10201            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10202	  ;;
10203	*)
10204	  wlarc='$wl'
10205	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10206	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10208	  ;;
10209	esac
10210      fi
10211      hardcode_libdir_flag_spec='-R$libdir'
10212      hardcode_shlibpath_var=no
10213      case $host_os in
10214      solaris2.[0-5] | solaris2.[0-5].*) ;;
10215      *)
10216	# The compiler driver will combine and reorder linker options,
10217	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10218	# but is careful enough not to reorder.
10219	# Supported since Solaris 2.6 (maybe 2.5.1?)
10220	if test yes = "$GCC"; then
10221	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10222	else
10223	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10224	fi
10225	;;
10226      esac
10227      link_all_deplibs=yes
10228      ;;
10229
10230    sunos4*)
10231      if test sequent = "$host_vendor"; then
10232	# Use $CC to link under sequent, because it throws in some extra .o
10233	# files that make .init and .fini sections work.
10234	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10235      else
10236	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10237      fi
10238      hardcode_libdir_flag_spec='-L$libdir'
10239      hardcode_direct=yes
10240      hardcode_minus_L=yes
10241      hardcode_shlibpath_var=no
10242      ;;
10243
10244    sysv4)
10245      case $host_vendor in
10246	sni)
10247	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248	  hardcode_direct=yes # is this really true???
10249	;;
10250	siemens)
10251	  ## LD is ld it makes a PLAMLIB
10252	  ## CC just makes a GrossModule.
10253	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10254	  reload_cmds='$CC -r -o $output$reload_objs'
10255	  hardcode_direct=no
10256        ;;
10257	motorola)
10258	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10260	;;
10261      esac
10262      runpath_var='LD_RUN_PATH'
10263      hardcode_shlibpath_var=no
10264      ;;
10265
10266    sysv4.3*)
10267      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268      hardcode_shlibpath_var=no
10269      export_dynamic_flag_spec='-Bexport'
10270      ;;
10271
10272    sysv4*MP*)
10273      if test -d /usr/nec; then
10274	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275	hardcode_shlibpath_var=no
10276	runpath_var=LD_RUN_PATH
10277	hardcode_runpath_var=yes
10278	ld_shlibs=yes
10279      fi
10280      ;;
10281
10282    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10283      no_undefined_flag='$wl-z,text'
10284      archive_cmds_need_lc=no
10285      hardcode_shlibpath_var=no
10286      runpath_var='LD_RUN_PATH'
10287
10288      if test yes = "$GCC"; then
10289	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291      else
10292	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294      fi
10295      ;;
10296
10297    sysv5* | sco3.2v5* | sco5v6*)
10298      # Note: We CANNOT use -z defs as we might desire, because we do not
10299      # link with -lc, and that would cause any symbols used from libc to
10300      # always be unresolved, which means just about no library would
10301      # ever link correctly.  If we're not using GNU ld we use -z text
10302      # though, which does catch some bad symbols but isn't as heavy-handed
10303      # as -z defs.
10304      no_undefined_flag='$wl-z,text'
10305      allow_undefined_flag='$wl-z,nodefs'
10306      archive_cmds_need_lc=no
10307      hardcode_shlibpath_var=no
10308      hardcode_libdir_flag_spec='$wl-R,$libdir'
10309      hardcode_libdir_separator=':'
10310      link_all_deplibs=yes
10311      export_dynamic_flag_spec='$wl-Bexport'
10312      runpath_var='LD_RUN_PATH'
10313
10314      if test yes = "$GCC"; then
10315	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317      else
10318	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320      fi
10321      ;;
10322
10323    uts4*)
10324      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325      hardcode_libdir_flag_spec='-L$libdir'
10326      hardcode_shlibpath_var=no
10327      ;;
10328
10329    *)
10330      ld_shlibs=no
10331      ;;
10332    esac
10333
10334    if test sni = "$host_vendor"; then
10335      case $host in
10336      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10337	export_dynamic_flag_spec='$wl-Blargedynsym'
10338	;;
10339      esac
10340    fi
10341  fi
10342
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10344$as_echo "$ld_shlibs" >&6; }
10345test no = "$ld_shlibs" && can_build_shared=no
10346
10347with_gnu_ld=$with_gnu_ld
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363#
10364# Do we need to explicitly link libc?
10365#
10366case "x$archive_cmds_need_lc" in
10367x|xyes)
10368  # Assume -lc should be added
10369  archive_cmds_need_lc=yes
10370
10371  if test yes,yes = "$GCC,$enable_shared"; then
10372    case $archive_cmds in
10373    *'~'*)
10374      # FIXME: we may have to deal with multi-command sequences.
10375      ;;
10376    '$CC '*)
10377      # Test whether the compiler implicitly links with -lc since on some
10378      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10379      # to ld, don't add -lc before -lgcc.
10380      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10381$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10382if ${lt_cv_archive_cmds_need_lc+:} false; then :
10383  $as_echo_n "(cached) " >&6
10384else
10385  $RM conftest*
10386	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10387
10388	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10389  (eval $ac_compile) 2>&5
10390  ac_status=$?
10391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10392  test $ac_status = 0; } 2>conftest.err; then
10393	  soname=conftest
10394	  lib=conftest
10395	  libobjs=conftest.$ac_objext
10396	  deplibs=
10397	  wl=$lt_prog_compiler_wl
10398	  pic_flag=$lt_prog_compiler_pic
10399	  compiler_flags=-v
10400	  linker_flags=-v
10401	  verstring=
10402	  output_objdir=.
10403	  libname=conftest
10404	  lt_save_allow_undefined_flag=$allow_undefined_flag
10405	  allow_undefined_flag=
10406	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10407  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10408  ac_status=$?
10409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10410  test $ac_status = 0; }
10411	  then
10412	    lt_cv_archive_cmds_need_lc=no
10413	  else
10414	    lt_cv_archive_cmds_need_lc=yes
10415	  fi
10416	  allow_undefined_flag=$lt_save_allow_undefined_flag
10417	else
10418	  cat conftest.err 1>&5
10419	fi
10420	$RM conftest*
10421
10422fi
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10424$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10425      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10426      ;;
10427    esac
10428  fi
10429  ;;
10430esac
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10584$as_echo_n "checking dynamic linker characteristics... " >&6; }
10585
10586if test yes = "$GCC"; then
10587  case $host_os in
10588    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10589    *) lt_awk_arg='/^libraries:/' ;;
10590  esac
10591  case $host_os in
10592    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10593    *) lt_sed_strip_eq='s|=/|/|g' ;;
10594  esac
10595  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10596  case $lt_search_path_spec in
10597  *\;*)
10598    # if the path contains ";" then we assume it to be the separator
10599    # otherwise default to the standard path separator (i.e. ":") - it is
10600    # assumed that no part of a normal pathname contains ";" but that should
10601    # okay in the real world where ";" in dirpaths is itself problematic.
10602    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10603    ;;
10604  *)
10605    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10606    ;;
10607  esac
10608  # Ok, now we have the path, separated by spaces, we can step through it
10609  # and add multilib dir if necessary...
10610  lt_tmp_lt_search_path_spec=
10611  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10612  # ...but if some path component already ends with the multilib dir we assume
10613  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10614  case "$lt_multi_os_dir; $lt_search_path_spec " in
10615  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10616    lt_multi_os_dir=
10617    ;;
10618  esac
10619  for lt_sys_path in $lt_search_path_spec; do
10620    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10621      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10622    elif test -n "$lt_multi_os_dir"; then
10623      test -d "$lt_sys_path" && \
10624	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10625    fi
10626  done
10627  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10628BEGIN {RS = " "; FS = "/|\n";} {
10629  lt_foo = "";
10630  lt_count = 0;
10631  for (lt_i = NF; lt_i > 0; lt_i--) {
10632    if ($lt_i != "" && $lt_i != ".") {
10633      if ($lt_i == "..") {
10634        lt_count++;
10635      } else {
10636        if (lt_count == 0) {
10637          lt_foo = "/" $lt_i lt_foo;
10638        } else {
10639          lt_count--;
10640        }
10641      }
10642    }
10643  }
10644  if (lt_foo != "") { lt_freq[lt_foo]++; }
10645  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10646}'`
10647  # AWK program above erroneously prepends '/' to C:/dos/paths
10648  # for these hosts.
10649  case $host_os in
10650    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10651      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10652  esac
10653  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10654else
10655  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10656fi
10657library_names_spec=
10658libname_spec='lib$name'
10659soname_spec=
10660shrext_cmds=.so
10661postinstall_cmds=
10662postuninstall_cmds=
10663finish_cmds=
10664finish_eval=
10665shlibpath_var=
10666shlibpath_overrides_runpath=unknown
10667version_type=none
10668dynamic_linker="$host_os ld.so"
10669sys_lib_dlsearch_path_spec="/lib /usr/lib"
10670need_lib_prefix=unknown
10671hardcode_into_libs=no
10672
10673# when you set need_version to no, make sure it does not cause -set_version
10674# flags to be left without arguments
10675need_version=unknown
10676
10677
10678
10679case $host_os in
10680aix3*)
10681  version_type=linux # correct to gnu/linux during the next big refactor
10682  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10683  shlibpath_var=LIBPATH
10684
10685  # AIX 3 has no versioning support, so we append a major version to the name.
10686  soname_spec='$libname$release$shared_ext$major'
10687  ;;
10688
10689aix[4-9]*)
10690  version_type=linux # correct to gnu/linux during the next big refactor
10691  need_lib_prefix=no
10692  need_version=no
10693  hardcode_into_libs=yes
10694  if test ia64 = "$host_cpu"; then
10695    # AIX 5 supports IA64
10696    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10697    shlibpath_var=LD_LIBRARY_PATH
10698  else
10699    # With GCC up to 2.95.x, collect2 would create an import file
10700    # for dependence libraries.  The import file would start with
10701    # the line '#! .'.  This would cause the generated library to
10702    # depend on '.', always an invalid library.  This was fixed in
10703    # development snapshots of GCC prior to 3.0.
10704    case $host_os in
10705      aix4 | aix4.[01] | aix4.[01].*)
10706      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10707	   echo ' yes '
10708	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10709	:
10710      else
10711	can_build_shared=no
10712      fi
10713      ;;
10714    esac
10715    # Using Import Files as archive members, it is possible to support
10716    # filename-based versioning of shared library archives on AIX. While
10717    # this would work for both with and without runtime linking, it will
10718    # prevent static linking of such archives. So we do filename-based
10719    # shared library versioning with .so extension only, which is used
10720    # when both runtime linking and shared linking is enabled.
10721    # Unfortunately, runtime linking may impact performance, so we do
10722    # not want this to be the default eventually. Also, we use the
10723    # versioned .so libs for executables only if there is the -brtl
10724    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10725    # To allow for filename-based versioning support, we need to create
10726    # libNAME.so.V as an archive file, containing:
10727    # *) an Import File, referring to the versioned filename of the
10728    #    archive as well as the shared archive member, telling the
10729    #    bitwidth (32 or 64) of that shared object, and providing the
10730    #    list of exported symbols of that shared object, eventually
10731    #    decorated with the 'weak' keyword
10732    # *) the shared object with the F_LOADONLY flag set, to really avoid
10733    #    it being seen by the linker.
10734    # At run time we better use the real file rather than another symlink,
10735    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10736
10737    case $with_aix_soname,$aix_use_runtimelinking in
10738    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10739    # soname into executable. Probably we can add versioning support to
10740    # collect2, so additional links can be useful in future.
10741    aix,yes) # traditional libtool
10742      dynamic_linker='AIX unversionable lib.so'
10743      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744      # instead of lib<name>.a to let people know that these are not
10745      # typical AIX shared libraries.
10746      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747      ;;
10748    aix,no) # traditional AIX only
10749      dynamic_linker='AIX lib.a(lib.so.V)'
10750      # We preserve .a as extension for shared libraries through AIX4.2
10751      # and later when we are not doing run time linking.
10752      library_names_spec='$libname$release.a $libname.a'
10753      soname_spec='$libname$release$shared_ext$major'
10754      ;;
10755    svr4,*) # full svr4 only
10756      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10757      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10758      # We do not specify a path in Import Files, so LIBPATH fires.
10759      shlibpath_overrides_runpath=yes
10760      ;;
10761    *,yes) # both, prefer svr4
10762      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10763      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10764      # unpreferred sharedlib libNAME.a needs extra handling
10765      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"'
10766      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"'
10767      # We do not specify a path in Import Files, so LIBPATH fires.
10768      shlibpath_overrides_runpath=yes
10769      ;;
10770    *,no) # both, prefer aix
10771      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10772      library_names_spec='$libname$release.a $libname.a'
10773      soname_spec='$libname$release$shared_ext$major'
10774      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10775      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)'
10776      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"'
10777      ;;
10778    esac
10779    shlibpath_var=LIBPATH
10780  fi
10781  ;;
10782
10783amigaos*)
10784  case $host_cpu in
10785  powerpc)
10786    # Since July 2007 AmigaOS4 officially supports .so libraries.
10787    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10788    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10789    ;;
10790  m68k)
10791    library_names_spec='$libname.ixlibrary $libname.a'
10792    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10793    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'
10794    ;;
10795  esac
10796  ;;
10797
10798beos*)
10799  library_names_spec='$libname$shared_ext'
10800  dynamic_linker="$host_os ld.so"
10801  shlibpath_var=LIBRARY_PATH
10802  ;;
10803
10804bsdi[45]*)
10805  version_type=linux # correct to gnu/linux during the next big refactor
10806  need_version=no
10807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10808  soname_spec='$libname$release$shared_ext$major'
10809  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10810  shlibpath_var=LD_LIBRARY_PATH
10811  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10812  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10813  # the default ld.so.conf also contains /usr/contrib/lib and
10814  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10815  # libtool to hard-code these into programs
10816  ;;
10817
10818cygwin* | mingw* | pw32* | cegcc*)
10819  version_type=windows
10820  shrext_cmds=.dll
10821  need_version=no
10822  need_lib_prefix=no
10823
10824  case $GCC,$cc_basename in
10825  yes,*)
10826    # gcc
10827    library_names_spec='$libname.dll.a'
10828    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10829    postinstall_cmds='base_file=`basename \$file`~
10830      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10831      dldir=$destdir/`dirname \$dlpath`~
10832      test -d \$dldir || mkdir -p \$dldir~
10833      $install_prog $dir/$dlname \$dldir/$dlname~
10834      chmod a+x \$dldir/$dlname~
10835      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10836        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10837      fi'
10838    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839      dlpath=$dir/\$dldll~
10840       $RM \$dlpath'
10841    shlibpath_overrides_runpath=yes
10842
10843    case $host_os in
10844    cygwin*)
10845      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10847
10848      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10849      ;;
10850    mingw* | cegcc*)
10851      # MinGW DLLs use traditional 'lib' prefix
10852      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10853      ;;
10854    pw32*)
10855      # pw32 DLLs use 'pw' prefix rather than 'lib'
10856      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10857      ;;
10858    esac
10859    dynamic_linker='Win32 ld.exe'
10860    ;;
10861
10862  *,cl*)
10863    # Native MSVC
10864    libname_spec='$name'
10865    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10866    library_names_spec='$libname.dll.lib'
10867
10868    case $build_os in
10869    mingw*)
10870      sys_lib_search_path_spec=
10871      lt_save_ifs=$IFS
10872      IFS=';'
10873      for lt_path in $LIB
10874      do
10875        IFS=$lt_save_ifs
10876        # Let DOS variable expansion print the short 8.3 style file name.
10877        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10878        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10879      done
10880      IFS=$lt_save_ifs
10881      # Convert to MSYS style.
10882      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10883      ;;
10884    cygwin*)
10885      # Convert to unix form, then to dos form, then back to unix form
10886      # but this time dos style (no spaces!) so that the unix form looks
10887      # like /cygdrive/c/PROGRA~1:/cygdr...
10888      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10889      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10890      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10891      ;;
10892    *)
10893      sys_lib_search_path_spec=$LIB
10894      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10895        # It is most probably a Windows format PATH.
10896        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10897      else
10898        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10899      fi
10900      # FIXME: find the short name or the path components, as spaces are
10901      # common. (e.g. "Program Files" -> "PROGRA~1")
10902      ;;
10903    esac
10904
10905    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10906    postinstall_cmds='base_file=`basename \$file`~
10907      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10908      dldir=$destdir/`dirname \$dlpath`~
10909      test -d \$dldir || mkdir -p \$dldir~
10910      $install_prog $dir/$dlname \$dldir/$dlname'
10911    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10912      dlpath=$dir/\$dldll~
10913       $RM \$dlpath'
10914    shlibpath_overrides_runpath=yes
10915    dynamic_linker='Win32 link.exe'
10916    ;;
10917
10918  *)
10919    # Assume MSVC wrapper
10920    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10921    dynamic_linker='Win32 ld.exe'
10922    ;;
10923  esac
10924  # FIXME: first we should search . and the directory the executable is in
10925  shlibpath_var=PATH
10926  ;;
10927
10928darwin* | rhapsody*)
10929  dynamic_linker="$host_os dyld"
10930  version_type=darwin
10931  need_lib_prefix=no
10932  need_version=no
10933  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10934  soname_spec='$libname$release$major$shared_ext'
10935  shlibpath_overrides_runpath=yes
10936  shlibpath_var=DYLD_LIBRARY_PATH
10937  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10938
10939  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10940  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10941  ;;
10942
10943dgux*)
10944  version_type=linux # correct to gnu/linux during the next big refactor
10945  need_lib_prefix=no
10946  need_version=no
10947  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948  soname_spec='$libname$release$shared_ext$major'
10949  shlibpath_var=LD_LIBRARY_PATH
10950  ;;
10951
10952freebsd* | dragonfly*)
10953  # DragonFly does not have aout.  When/if they implement a new
10954  # versioning mechanism, adjust this.
10955  if test -x /usr/bin/objformat; then
10956    objformat=`/usr/bin/objformat`
10957  else
10958    case $host_os in
10959    freebsd[23].*) objformat=aout ;;
10960    *) objformat=elf ;;
10961    esac
10962  fi
10963  version_type=freebsd-$objformat
10964  case $version_type in
10965    freebsd-elf*)
10966      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10967      soname_spec='$libname$release$shared_ext$major'
10968      need_version=no
10969      need_lib_prefix=no
10970      ;;
10971    freebsd-*)
10972      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10973      need_version=yes
10974      ;;
10975  esac
10976  shlibpath_var=LD_LIBRARY_PATH
10977  case $host_os in
10978  freebsd2.*)
10979    shlibpath_overrides_runpath=yes
10980    ;;
10981  freebsd3.[01]* | freebsdelf3.[01]*)
10982    shlibpath_overrides_runpath=yes
10983    hardcode_into_libs=yes
10984    ;;
10985  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10986  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10987    shlibpath_overrides_runpath=no
10988    hardcode_into_libs=yes
10989    ;;
10990  *) # from 4.6 on, and DragonFly
10991    shlibpath_overrides_runpath=yes
10992    hardcode_into_libs=yes
10993    ;;
10994  esac
10995  ;;
10996
10997haiku*)
10998  version_type=linux # correct to gnu/linux during the next big refactor
10999  need_lib_prefix=no
11000  need_version=no
11001  dynamic_linker="$host_os runtime_loader"
11002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11003  soname_spec='$libname$release$shared_ext$major'
11004  shlibpath_var=LIBRARY_PATH
11005  shlibpath_overrides_runpath=no
11006  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11007  hardcode_into_libs=yes
11008  ;;
11009
11010hpux9* | hpux10* | hpux11*)
11011  # Give a soname corresponding to the major version so that dld.sl refuses to
11012  # link against other versions.
11013  version_type=sunos
11014  need_lib_prefix=no
11015  need_version=no
11016  case $host_cpu in
11017  ia64*)
11018    shrext_cmds='.so'
11019    hardcode_into_libs=yes
11020    dynamic_linker="$host_os dld.so"
11021    shlibpath_var=LD_LIBRARY_PATH
11022    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11023    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11024    soname_spec='$libname$release$shared_ext$major'
11025    if test 32 = "$HPUX_IA64_MODE"; then
11026      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11027      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11028    else
11029      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11030      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11031    fi
11032    ;;
11033  hppa*64*)
11034    shrext_cmds='.sl'
11035    hardcode_into_libs=yes
11036    dynamic_linker="$host_os dld.sl"
11037    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11038    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11039    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11040    soname_spec='$libname$release$shared_ext$major'
11041    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11042    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11043    ;;
11044  *)
11045    shrext_cmds='.sl'
11046    dynamic_linker="$host_os dld.sl"
11047    shlibpath_var=SHLIB_PATH
11048    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11049    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11050    soname_spec='$libname$release$shared_ext$major'
11051    ;;
11052  esac
11053  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11054  postinstall_cmds='chmod 555 $lib'
11055  # or fails outright, so override atomically:
11056  install_override_mode=555
11057  ;;
11058
11059interix[3-9]*)
11060  version_type=linux # correct to gnu/linux during the next big refactor
11061  need_lib_prefix=no
11062  need_version=no
11063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11064  soname_spec='$libname$release$shared_ext$major'
11065  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11066  shlibpath_var=LD_LIBRARY_PATH
11067  shlibpath_overrides_runpath=no
11068  hardcode_into_libs=yes
11069  ;;
11070
11071irix5* | irix6* | nonstopux*)
11072  case $host_os in
11073    nonstopux*) version_type=nonstopux ;;
11074    *)
11075	if test yes = "$lt_cv_prog_gnu_ld"; then
11076		version_type=linux # correct to gnu/linux during the next big refactor
11077	else
11078		version_type=irix
11079	fi ;;
11080  esac
11081  need_lib_prefix=no
11082  need_version=no
11083  soname_spec='$libname$release$shared_ext$major'
11084  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11085  case $host_os in
11086  irix5* | nonstopux*)
11087    libsuff= shlibsuff=
11088    ;;
11089  *)
11090    case $LD in # libtool.m4 will add one of these switches to LD
11091    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11092      libsuff= shlibsuff= libmagic=32-bit;;
11093    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11094      libsuff=32 shlibsuff=N32 libmagic=N32;;
11095    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11096      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11097    *) libsuff= shlibsuff= libmagic=never-match;;
11098    esac
11099    ;;
11100  esac
11101  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11102  shlibpath_overrides_runpath=no
11103  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11104  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11105  hardcode_into_libs=yes
11106  ;;
11107
11108# No shared lib support for Linux oldld, aout, or coff.
11109linux*oldld* | linux*aout* | linux*coff*)
11110  dynamic_linker=no
11111  ;;
11112
11113linux*android*)
11114  version_type=none # Android doesn't support versioned libraries.
11115  need_lib_prefix=no
11116  need_version=no
11117  library_names_spec='$libname$release$shared_ext'
11118  soname_spec='$libname$release$shared_ext'
11119  finish_cmds=
11120  shlibpath_var=LD_LIBRARY_PATH
11121  shlibpath_overrides_runpath=yes
11122
11123  # This implies no fast_install, which is unacceptable.
11124  # Some rework will be needed to allow for fast_install
11125  # before this can be enabled.
11126  hardcode_into_libs=yes
11127
11128  dynamic_linker='Android linker'
11129  # Don't embed -rpath directories since the linker doesn't support them.
11130  hardcode_libdir_flag_spec='-L$libdir'
11131  ;;
11132
11133# This must be glibc/ELF.
11134linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11135  version_type=linux # correct to gnu/linux during the next big refactor
11136  need_lib_prefix=no
11137  need_version=no
11138  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139  soname_spec='$libname$release$shared_ext$major'
11140  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11141  shlibpath_var=LD_LIBRARY_PATH
11142  shlibpath_overrides_runpath=no
11143
11144  # Some binutils ld are patched to set DT_RUNPATH
11145  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  lt_cv_shlibpath_overrides_runpath=no
11149    save_LDFLAGS=$LDFLAGS
11150    save_libdir=$libdir
11151    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11152	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155
11156int
11157main ()
11158{
11159
11160  ;
11161  return 0;
11162}
11163_ACEOF
11164if ac_fn_c_try_link "$LINENO"; then :
11165  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11166  lt_cv_shlibpath_overrides_runpath=yes
11167fi
11168fi
11169rm -f core conftest.err conftest.$ac_objext \
11170    conftest$ac_exeext conftest.$ac_ext
11171    LDFLAGS=$save_LDFLAGS
11172    libdir=$save_libdir
11173
11174fi
11175
11176  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11177
11178  # This implies no fast_install, which is unacceptable.
11179  # Some rework will be needed to allow for fast_install
11180  # before this can be enabled.
11181  hardcode_into_libs=yes
11182
11183  # Ideally, we could use ldconfig to report *all* directores which are
11184  # searched for libraries, however this is still not possible.  Aside from not
11185  # being certain /sbin/ldconfig is available, command
11186  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11187  # even though it is searched at run-time.  Try to do the best guess by
11188  # appending ld.so.conf contents (and includes) to the search path.
11189  if test -f /etc/ld.so.conf; then
11190    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' ' '`
11191    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11192  fi
11193
11194  # We used to test for /lib/ld.so.1 and disable shared libraries on
11195  # powerpc, because MkLinux only supported shared libraries with the
11196  # GNU dynamic linker.  Since this was broken with cross compilers,
11197  # most powerpc-linux boxes support dynamic linking these days and
11198  # people can always --disable-shared, the test was removed, and we
11199  # assume the GNU/Linux dynamic linker is in use.
11200  dynamic_linker='GNU/Linux ld.so'
11201  ;;
11202
11203netbsd*)
11204  version_type=sunos
11205  need_lib_prefix=no
11206  need_version=no
11207  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11208    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11209    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11210    dynamic_linker='NetBSD (a.out) ld.so'
11211  else
11212    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213    soname_spec='$libname$release$shared_ext$major'
11214    dynamic_linker='NetBSD ld.elf_so'
11215  fi
11216  shlibpath_var=LD_LIBRARY_PATH
11217  shlibpath_overrides_runpath=yes
11218  hardcode_into_libs=yes
11219  ;;
11220
11221newsos6)
11222  version_type=linux # correct to gnu/linux during the next big refactor
11223  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11224  shlibpath_var=LD_LIBRARY_PATH
11225  shlibpath_overrides_runpath=yes
11226  ;;
11227
11228*nto* | *qnx*)
11229  version_type=qnx
11230  need_lib_prefix=no
11231  need_version=no
11232  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11233  soname_spec='$libname$release$shared_ext$major'
11234  shlibpath_var=LD_LIBRARY_PATH
11235  shlibpath_overrides_runpath=no
11236  hardcode_into_libs=yes
11237  dynamic_linker='ldqnx.so'
11238  ;;
11239
11240openbsd* | bitrig*)
11241  version_type=sunos
11242  sys_lib_dlsearch_path_spec=/usr/lib
11243  need_lib_prefix=no
11244  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11245    need_version=no
11246  else
11247    need_version=yes
11248  fi
11249  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11250  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11251  shlibpath_var=LD_LIBRARY_PATH
11252  shlibpath_overrides_runpath=yes
11253  ;;
11254
11255os2*)
11256  libname_spec='$name'
11257  version_type=windows
11258  shrext_cmds=.dll
11259  need_version=no
11260  need_lib_prefix=no
11261  # OS/2 can only load a DLL with a base name of 8 characters or less.
11262  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11263    v=$($ECHO $release$versuffix | tr -d .-);
11264    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11265    $ECHO $n$v`$shared_ext'
11266  library_names_spec='${libname}_dll.$libext'
11267  dynamic_linker='OS/2 ld.exe'
11268  shlibpath_var=BEGINLIBPATH
11269  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11270  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11271  postinstall_cmds='base_file=`basename \$file`~
11272    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11273    dldir=$destdir/`dirname \$dlpath`~
11274    test -d \$dldir || mkdir -p \$dldir~
11275    $install_prog $dir/$dlname \$dldir/$dlname~
11276    chmod a+x \$dldir/$dlname~
11277    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11278      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11279    fi'
11280  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11281    dlpath=$dir/\$dldll~
11282    $RM \$dlpath'
11283  ;;
11284
11285osf3* | osf4* | osf5*)
11286  version_type=osf
11287  need_lib_prefix=no
11288  need_version=no
11289  soname_spec='$libname$release$shared_ext$major'
11290  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291  shlibpath_var=LD_LIBRARY_PATH
11292  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11293  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11294  ;;
11295
11296rdos*)
11297  dynamic_linker=no
11298  ;;
11299
11300solaris*)
11301  version_type=linux # correct to gnu/linux during the next big refactor
11302  need_lib_prefix=no
11303  need_version=no
11304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11305  soname_spec='$libname$release$shared_ext$major'
11306  shlibpath_var=LD_LIBRARY_PATH
11307  shlibpath_overrides_runpath=yes
11308  hardcode_into_libs=yes
11309  # ldd complains unless libraries are executable
11310  postinstall_cmds='chmod +x $lib'
11311  ;;
11312
11313sunos4*)
11314  version_type=sunos
11315  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11316  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=yes
11319  if test yes = "$with_gnu_ld"; then
11320    need_lib_prefix=no
11321  fi
11322  need_version=yes
11323  ;;
11324
11325sysv4 | sysv4.3*)
11326  version_type=linux # correct to gnu/linux during the next big refactor
11327  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11328  soname_spec='$libname$release$shared_ext$major'
11329  shlibpath_var=LD_LIBRARY_PATH
11330  case $host_vendor in
11331    sni)
11332      shlibpath_overrides_runpath=no
11333      need_lib_prefix=no
11334      runpath_var=LD_RUN_PATH
11335      ;;
11336    siemens)
11337      need_lib_prefix=no
11338      ;;
11339    motorola)
11340      need_lib_prefix=no
11341      need_version=no
11342      shlibpath_overrides_runpath=no
11343      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11344      ;;
11345  esac
11346  ;;
11347
11348sysv4*MP*)
11349  if test -d /usr/nec; then
11350    version_type=linux # correct to gnu/linux during the next big refactor
11351    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11352    soname_spec='$libname$shared_ext.$major'
11353    shlibpath_var=LD_LIBRARY_PATH
11354  fi
11355  ;;
11356
11357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11358  version_type=sco
11359  need_lib_prefix=no
11360  need_version=no
11361  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11362  soname_spec='$libname$release$shared_ext$major'
11363  shlibpath_var=LD_LIBRARY_PATH
11364  shlibpath_overrides_runpath=yes
11365  hardcode_into_libs=yes
11366  if test yes = "$with_gnu_ld"; then
11367    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11368  else
11369    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11370    case $host_os in
11371      sco3.2v5*)
11372        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11373	;;
11374    esac
11375  fi
11376  sys_lib_dlsearch_path_spec='/usr/lib'
11377  ;;
11378
11379tpf*)
11380  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11381  version_type=linux # correct to gnu/linux during the next big refactor
11382  need_lib_prefix=no
11383  need_version=no
11384  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385  shlibpath_var=LD_LIBRARY_PATH
11386  shlibpath_overrides_runpath=no
11387  hardcode_into_libs=yes
11388  ;;
11389
11390uts4*)
11391  version_type=linux # correct to gnu/linux during the next big refactor
11392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393  soname_spec='$libname$release$shared_ext$major'
11394  shlibpath_var=LD_LIBRARY_PATH
11395  ;;
11396
11397*)
11398  dynamic_linker=no
11399  ;;
11400esac
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11402$as_echo "$dynamic_linker" >&6; }
11403test no = "$dynamic_linker" && can_build_shared=no
11404
11405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11406if test yes = "$GCC"; then
11407  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11408fi
11409
11410if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11411  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11412fi
11413
11414if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11415  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11416fi
11417
11418# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11419configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11420
11421# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11422func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11423
11424# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11425configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11524$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11525hardcode_action=
11526if test -n "$hardcode_libdir_flag_spec" ||
11527   test -n "$runpath_var" ||
11528   test yes = "$hardcode_automatic"; then
11529
11530  # We can hardcode non-existent directories.
11531  if test no != "$hardcode_direct" &&
11532     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11533     # have to relink, otherwise we might link with an installed library
11534     # when we should be linking with a yet-to-be-installed one
11535     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11536     test no != "$hardcode_minus_L"; then
11537    # Linking always hardcodes the temporary library directory.
11538    hardcode_action=relink
11539  else
11540    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11541    hardcode_action=immediate
11542  fi
11543else
11544  # We cannot hardcode anything, or else we can only hardcode existing
11545  # directories.
11546  hardcode_action=unsupported
11547fi
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11549$as_echo "$hardcode_action" >&6; }
11550
11551if test relink = "$hardcode_action" ||
11552   test yes = "$inherit_rpath"; then
11553  # Fast installation is not supported
11554  enable_fast_install=no
11555elif test yes = "$shlibpath_overrides_runpath" ||
11556     test no = "$enable_shared"; then
11557  # Fast installation is not necessary
11558  enable_fast_install=needless
11559fi
11560
11561
11562
11563
11564
11565
11566  if test yes != "$enable_dlopen"; then
11567  enable_dlopen=unknown
11568  enable_dlopen_self=unknown
11569  enable_dlopen_self_static=unknown
11570else
11571  lt_cv_dlopen=no
11572  lt_cv_dlopen_libs=
11573
11574  case $host_os in
11575  beos*)
11576    lt_cv_dlopen=load_add_on
11577    lt_cv_dlopen_libs=
11578    lt_cv_dlopen_self=yes
11579    ;;
11580
11581  mingw* | pw32* | cegcc*)
11582    lt_cv_dlopen=LoadLibrary
11583    lt_cv_dlopen_libs=
11584    ;;
11585
11586  cygwin*)
11587    lt_cv_dlopen=dlopen
11588    lt_cv_dlopen_libs=
11589    ;;
11590
11591  darwin*)
11592    # if libdl is installed we need to link against it
11593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11594$as_echo_n "checking for dlopen in -ldl... " >&6; }
11595if ${ac_cv_lib_dl_dlopen+:} false; then :
11596  $as_echo_n "(cached) " >&6
11597else
11598  ac_check_lib_save_LIBS=$LIBS
11599LIBS="-ldl  $LIBS"
11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601/* end confdefs.h.  */
11602
11603/* Override any GCC internal prototype to avoid an error.
11604   Use char because int might match the return type of a GCC
11605   builtin and then its argument prototype would still apply.  */
11606#ifdef __cplusplus
11607extern "C"
11608#endif
11609char dlopen ();
11610int
11611main ()
11612{
11613return dlopen ();
11614  ;
11615  return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_link "$LINENO"; then :
11619  ac_cv_lib_dl_dlopen=yes
11620else
11621  ac_cv_lib_dl_dlopen=no
11622fi
11623rm -f core conftest.err conftest.$ac_objext \
11624    conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11628$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11629if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11630  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11631else
11632
11633    lt_cv_dlopen=dyld
11634    lt_cv_dlopen_libs=
11635    lt_cv_dlopen_self=yes
11636
11637fi
11638
11639    ;;
11640
11641  tpf*)
11642    # Don't try to run any link tests for TPF.  We know it's impossible
11643    # because TPF is a cross-compiler, and we know how we open DSOs.
11644    lt_cv_dlopen=dlopen
11645    lt_cv_dlopen_libs=
11646    lt_cv_dlopen_self=no
11647    ;;
11648
11649  *)
11650    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11651if test "x$ac_cv_func_shl_load" = xyes; then :
11652  lt_cv_dlopen=shl_load
11653else
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11655$as_echo_n "checking for shl_load in -ldld... " >&6; }
11656if ${ac_cv_lib_dld_shl_load+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  ac_check_lib_save_LIBS=$LIBS
11660LIBS="-ldld  $LIBS"
11661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662/* end confdefs.h.  */
11663
11664/* Override any GCC internal prototype to avoid an error.
11665   Use char because int might match the return type of a GCC
11666   builtin and then its argument prototype would still apply.  */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char shl_load ();
11671int
11672main ()
11673{
11674return shl_load ();
11675  ;
11676  return 0;
11677}
11678_ACEOF
11679if ac_fn_c_try_link "$LINENO"; then :
11680  ac_cv_lib_dld_shl_load=yes
11681else
11682  ac_cv_lib_dld_shl_load=no
11683fi
11684rm -f core conftest.err conftest.$ac_objext \
11685    conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11689$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11690if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11691  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11692else
11693  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11694if test "x$ac_cv_func_dlopen" = xyes; then :
11695  lt_cv_dlopen=dlopen
11696else
11697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11698$as_echo_n "checking for dlopen in -ldl... " >&6; }
11699if ${ac_cv_lib_dl_dlopen+:} false; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  ac_check_lib_save_LIBS=$LIBS
11703LIBS="-ldl  $LIBS"
11704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706
11707/* Override any GCC internal prototype to avoid an error.
11708   Use char because int might match the return type of a GCC
11709   builtin and then its argument prototype would still apply.  */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char dlopen ();
11714int
11715main ()
11716{
11717return dlopen ();
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722if ac_fn_c_try_link "$LINENO"; then :
11723  ac_cv_lib_dl_dlopen=yes
11724else
11725  ac_cv_lib_dl_dlopen=no
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext conftest.$ac_ext
11729LIBS=$ac_check_lib_save_LIBS
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11732$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11733if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11734  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11735else
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11737$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11738if ${ac_cv_lib_svld_dlopen+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  ac_check_lib_save_LIBS=$LIBS
11742LIBS="-lsvld  $LIBS"
11743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745
11746/* Override any GCC internal prototype to avoid an error.
11747   Use char because int might match the return type of a GCC
11748   builtin and then its argument prototype would still apply.  */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char dlopen ();
11753int
11754main ()
11755{
11756return dlopen ();
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761if ac_fn_c_try_link "$LINENO"; then :
11762  ac_cv_lib_svld_dlopen=yes
11763else
11764  ac_cv_lib_svld_dlopen=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext \
11767    conftest$ac_exeext conftest.$ac_ext
11768LIBS=$ac_check_lib_save_LIBS
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11771$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11772if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11773  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11774else
11775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11776$as_echo_n "checking for dld_link in -ldld... " >&6; }
11777if ${ac_cv_lib_dld_dld_link+:} false; then :
11778  $as_echo_n "(cached) " >&6
11779else
11780  ac_check_lib_save_LIBS=$LIBS
11781LIBS="-ldld  $LIBS"
11782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783/* end confdefs.h.  */
11784
11785/* Override any GCC internal prototype to avoid an error.
11786   Use char because int might match the return type of a GCC
11787   builtin and then its argument prototype would still apply.  */
11788#ifdef __cplusplus
11789extern "C"
11790#endif
11791char dld_link ();
11792int
11793main ()
11794{
11795return dld_link ();
11796  ;
11797  return 0;
11798}
11799_ACEOF
11800if ac_fn_c_try_link "$LINENO"; then :
11801  ac_cv_lib_dld_dld_link=yes
11802else
11803  ac_cv_lib_dld_dld_link=no
11804fi
11805rm -f core conftest.err conftest.$ac_objext \
11806    conftest$ac_exeext conftest.$ac_ext
11807LIBS=$ac_check_lib_save_LIBS
11808fi
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11810$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11811if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11812  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11813fi
11814
11815
11816fi
11817
11818
11819fi
11820
11821
11822fi
11823
11824
11825fi
11826
11827
11828fi
11829
11830    ;;
11831  esac
11832
11833  if test no = "$lt_cv_dlopen"; then
11834    enable_dlopen=no
11835  else
11836    enable_dlopen=yes
11837  fi
11838
11839  case $lt_cv_dlopen in
11840  dlopen)
11841    save_CPPFLAGS=$CPPFLAGS
11842    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11843
11844    save_LDFLAGS=$LDFLAGS
11845    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11846
11847    save_LIBS=$LIBS
11848    LIBS="$lt_cv_dlopen_libs $LIBS"
11849
11850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11851$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11852if ${lt_cv_dlopen_self+:} false; then :
11853  $as_echo_n "(cached) " >&6
11854else
11855  	  if test yes = "$cross_compiling"; then :
11856  lt_cv_dlopen_self=cross
11857else
11858  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11859  lt_status=$lt_dlunknown
11860  cat > conftest.$ac_ext <<_LT_EOF
11861#line $LINENO "configure"
11862#include "confdefs.h"
11863
11864#if HAVE_DLFCN_H
11865#include <dlfcn.h>
11866#endif
11867
11868#include <stdio.h>
11869
11870#ifdef RTLD_GLOBAL
11871#  define LT_DLGLOBAL		RTLD_GLOBAL
11872#else
11873#  ifdef DL_GLOBAL
11874#    define LT_DLGLOBAL		DL_GLOBAL
11875#  else
11876#    define LT_DLGLOBAL		0
11877#  endif
11878#endif
11879
11880/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11881   find out it does not work in some platform. */
11882#ifndef LT_DLLAZY_OR_NOW
11883#  ifdef RTLD_LAZY
11884#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11885#  else
11886#    ifdef DL_LAZY
11887#      define LT_DLLAZY_OR_NOW		DL_LAZY
11888#    else
11889#      ifdef RTLD_NOW
11890#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11891#      else
11892#        ifdef DL_NOW
11893#          define LT_DLLAZY_OR_NOW	DL_NOW
11894#        else
11895#          define LT_DLLAZY_OR_NOW	0
11896#        endif
11897#      endif
11898#    endif
11899#  endif
11900#endif
11901
11902/* When -fvisibility=hidden is used, assume the code has been annotated
11903   correspondingly for the symbols needed.  */
11904#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11905int fnord () __attribute__((visibility("default")));
11906#endif
11907
11908int fnord () { return 42; }
11909int main ()
11910{
11911  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11912  int status = $lt_dlunknown;
11913
11914  if (self)
11915    {
11916      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11917      else
11918        {
11919	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11920          else puts (dlerror ());
11921	}
11922      /* dlclose (self); */
11923    }
11924  else
11925    puts (dlerror ());
11926
11927  return status;
11928}
11929_LT_EOF
11930  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11931  (eval $ac_link) 2>&5
11932  ac_status=$?
11933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11935    (./conftest; exit; ) >&5 2>/dev/null
11936    lt_status=$?
11937    case x$lt_status in
11938      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11939      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11940      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11941    esac
11942  else :
11943    # compilation failed
11944    lt_cv_dlopen_self=no
11945  fi
11946fi
11947rm -fr conftest*
11948
11949
11950fi
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11952$as_echo "$lt_cv_dlopen_self" >&6; }
11953
11954    if test yes = "$lt_cv_dlopen_self"; then
11955      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11956      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11957$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11958if ${lt_cv_dlopen_self_static+:} false; then :
11959  $as_echo_n "(cached) " >&6
11960else
11961  	  if test yes = "$cross_compiling"; then :
11962  lt_cv_dlopen_self_static=cross
11963else
11964  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11965  lt_status=$lt_dlunknown
11966  cat > conftest.$ac_ext <<_LT_EOF
11967#line $LINENO "configure"
11968#include "confdefs.h"
11969
11970#if HAVE_DLFCN_H
11971#include <dlfcn.h>
11972#endif
11973
11974#include <stdio.h>
11975
11976#ifdef RTLD_GLOBAL
11977#  define LT_DLGLOBAL		RTLD_GLOBAL
11978#else
11979#  ifdef DL_GLOBAL
11980#    define LT_DLGLOBAL		DL_GLOBAL
11981#  else
11982#    define LT_DLGLOBAL		0
11983#  endif
11984#endif
11985
11986/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11987   find out it does not work in some platform. */
11988#ifndef LT_DLLAZY_OR_NOW
11989#  ifdef RTLD_LAZY
11990#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11991#  else
11992#    ifdef DL_LAZY
11993#      define LT_DLLAZY_OR_NOW		DL_LAZY
11994#    else
11995#      ifdef RTLD_NOW
11996#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11997#      else
11998#        ifdef DL_NOW
11999#          define LT_DLLAZY_OR_NOW	DL_NOW
12000#        else
12001#          define LT_DLLAZY_OR_NOW	0
12002#        endif
12003#      endif
12004#    endif
12005#  endif
12006#endif
12007
12008/* When -fvisibility=hidden is used, assume the code has been annotated
12009   correspondingly for the symbols needed.  */
12010#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12011int fnord () __attribute__((visibility("default")));
12012#endif
12013
12014int fnord () { return 42; }
12015int main ()
12016{
12017  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12018  int status = $lt_dlunknown;
12019
12020  if (self)
12021    {
12022      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12023      else
12024        {
12025	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12026          else puts (dlerror ());
12027	}
12028      /* dlclose (self); */
12029    }
12030  else
12031    puts (dlerror ());
12032
12033  return status;
12034}
12035_LT_EOF
12036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12037  (eval $ac_link) 2>&5
12038  ac_status=$?
12039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12040  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12041    (./conftest; exit; ) >&5 2>/dev/null
12042    lt_status=$?
12043    case x$lt_status in
12044      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12045      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12046      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12047    esac
12048  else :
12049    # compilation failed
12050    lt_cv_dlopen_self_static=no
12051  fi
12052fi
12053rm -fr conftest*
12054
12055
12056fi
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12058$as_echo "$lt_cv_dlopen_self_static" >&6; }
12059    fi
12060
12061    CPPFLAGS=$save_CPPFLAGS
12062    LDFLAGS=$save_LDFLAGS
12063    LIBS=$save_LIBS
12064    ;;
12065  esac
12066
12067  case $lt_cv_dlopen_self in
12068  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12069  *) enable_dlopen_self=unknown ;;
12070  esac
12071
12072  case $lt_cv_dlopen_self_static in
12073  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12074  *) enable_dlopen_self_static=unknown ;;
12075  esac
12076fi
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094striplib=
12095old_striplib=
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12097$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12098if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12099  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12100  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102$as_echo "yes" >&6; }
12103else
12104# FIXME - insert some real tests, host_os isn't really good enough
12105  case $host_os in
12106  darwin*)
12107    if test -n "$STRIP"; then
12108      striplib="$STRIP -x"
12109      old_striplib="$STRIP -S"
12110      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111$as_echo "yes" >&6; }
12112    else
12113      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
12115    fi
12116    ;;
12117  *)
12118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119$as_echo "no" >&6; }
12120    ;;
12121  esac
12122fi
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135  # Report what library types will actually be built
12136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12137$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12139$as_echo "$can_build_shared" >&6; }
12140
12141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12142$as_echo_n "checking whether to build shared libraries... " >&6; }
12143  test no = "$can_build_shared" && enable_shared=no
12144
12145  # On AIX, shared libraries and static libraries use the same namespace, and
12146  # are all built from PIC.
12147  case $host_os in
12148  aix3*)
12149    test yes = "$enable_shared" && enable_static=no
12150    if test -n "$RANLIB"; then
12151      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12152      postinstall_cmds='$RANLIB $lib'
12153    fi
12154    ;;
12155
12156  aix[4-9]*)
12157    if test ia64 != "$host_cpu"; then
12158      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12159      yes,aix,yes) ;;			# shared object as lib.so file only
12160      yes,svr4,*) ;;			# shared object as lib.so archive member only
12161      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12162      esac
12163    fi
12164    ;;
12165  esac
12166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12167$as_echo "$enable_shared" >&6; }
12168
12169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12170$as_echo_n "checking whether to build static libraries... " >&6; }
12171  # Make sure either enable_shared or enable_static is yes.
12172  test yes = "$enable_shared" || enable_static=yes
12173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12174$as_echo "$enable_static" >&6; }
12175
12176
12177
12178
12179fi
12180ac_ext=c
12181ac_cpp='$CPP $CPPFLAGS'
12182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184ac_compiler_gnu=$ac_cv_c_compiler_gnu
12185
12186CC=$lt_save_CC
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202        ac_config_commands="$ac_config_commands libtool"
12203
12204
12205
12206
12207# Only expand once:
12208
12209
12210
12211NO_UNDEFINED=
12212if test unsupported = "$allow_undefined_flag" ; then
12213  NO_UNDEFINED=-no-undefined
12214fi
12215
12216
12217ac_ext=cpp
12218ac_cpp='$CXXCPP $CPPFLAGS'
12219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12222if test -z "$CXX"; then
12223  if test -n "$CCC"; then
12224    CXX=$CCC
12225  else
12226    if test -n "$ac_tool_prefix"; then
12227  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12228  do
12229    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12230set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
12233if ${ac_cv_prog_CXX+:} false; then :
12234  $as_echo_n "(cached) " >&6
12235else
12236  if test -n "$CXX"; then
12237  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242  IFS=$as_save_IFS
12243  test -z "$as_dir" && as_dir=.
12244    for ac_exec_ext in '' $ac_executable_extensions; do
12245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248    break 2
12249  fi
12250done
12251  done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256CXX=$ac_cv_prog_CXX
12257if test -n "$CXX"; then
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12259$as_echo "$CXX" >&6; }
12260else
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266    test -n "$CXX" && break
12267  done
12268fi
12269if test -z "$CXX"; then
12270  ac_ct_CXX=$CXX
12271  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12272do
12273  # Extract the first word of "$ac_prog", so it can be a program name with args.
12274set dummy $ac_prog; ac_word=$2
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276$as_echo_n "checking for $ac_word... " >&6; }
12277if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12278  $as_echo_n "(cached) " >&6
12279else
12280  if test -n "$ac_ct_CXX"; then
12281  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286  IFS=$as_save_IFS
12287  test -z "$as_dir" && as_dir=.
12288    for ac_exec_ext in '' $ac_executable_extensions; do
12289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290    ac_cv_prog_ac_ct_CXX="$ac_prog"
12291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292    break 2
12293  fi
12294done
12295  done
12296IFS=$as_save_IFS
12297
12298fi
12299fi
12300ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12301if test -n "$ac_ct_CXX"; then
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12303$as_echo "$ac_ct_CXX" >&6; }
12304else
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308
12309
12310  test -n "$ac_ct_CXX" && break
12311done
12312
12313  if test "x$ac_ct_CXX" = x; then
12314    CXX="g++"
12315  else
12316    case $cross_compiling:$ac_tool_warned in
12317yes:)
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12320ac_tool_warned=yes ;;
12321esac
12322    CXX=$ac_ct_CXX
12323  fi
12324fi
12325
12326  fi
12327fi
12328# Provide some information about the compiler.
12329$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12330set X $ac_compile
12331ac_compiler=$2
12332for ac_option in --version -v -V -qversion; do
12333  { { ac_try="$ac_compiler $ac_option >&5"
12334case "(($ac_try" in
12335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336  *) ac_try_echo=$ac_try;;
12337esac
12338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12339$as_echo "$ac_try_echo"; } >&5
12340  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12341  ac_status=$?
12342  if test -s conftest.err; then
12343    sed '10a\
12344... rest of stderr output deleted ...
12345         10q' conftest.err >conftest.er1
12346    cat conftest.er1 >&5
12347  fi
12348  rm -f conftest.er1 conftest.err
12349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12350  test $ac_status = 0; }
12351done
12352
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12354$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12355if ${ac_cv_cxx_compiler_gnu+:} false; then :
12356  $as_echo_n "(cached) " >&6
12357else
12358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h.  */
12360
12361int
12362main ()
12363{
12364#ifndef __GNUC__
12365       choke me
12366#endif
12367
12368  ;
12369  return 0;
12370}
12371_ACEOF
12372if ac_fn_cxx_try_compile "$LINENO"; then :
12373  ac_compiler_gnu=yes
12374else
12375  ac_compiler_gnu=no
12376fi
12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12379
12380fi
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12382$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12383if test $ac_compiler_gnu = yes; then
12384  GXX=yes
12385else
12386  GXX=
12387fi
12388ac_test_CXXFLAGS=${CXXFLAGS+set}
12389ac_save_CXXFLAGS=$CXXFLAGS
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12391$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12392if ${ac_cv_prog_cxx_g+:} false; then :
12393  $as_echo_n "(cached) " >&6
12394else
12395  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12396   ac_cxx_werror_flag=yes
12397   ac_cv_prog_cxx_g=no
12398   CXXFLAGS="-g"
12399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h.  */
12401
12402int
12403main ()
12404{
12405
12406  ;
12407  return 0;
12408}
12409_ACEOF
12410if ac_fn_cxx_try_compile "$LINENO"; then :
12411  ac_cv_prog_cxx_g=yes
12412else
12413  CXXFLAGS=""
12414      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415/* end confdefs.h.  */
12416
12417int
12418main ()
12419{
12420
12421  ;
12422  return 0;
12423}
12424_ACEOF
12425if ac_fn_cxx_try_compile "$LINENO"; then :
12426
12427else
12428  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12429	 CXXFLAGS="-g"
12430	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431/* end confdefs.h.  */
12432
12433int
12434main ()
12435{
12436
12437  ;
12438  return 0;
12439}
12440_ACEOF
12441if ac_fn_cxx_try_compile "$LINENO"; then :
12442  ac_cv_prog_cxx_g=yes
12443fi
12444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445fi
12446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447fi
12448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12450fi
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12452$as_echo "$ac_cv_prog_cxx_g" >&6; }
12453if test "$ac_test_CXXFLAGS" = set; then
12454  CXXFLAGS=$ac_save_CXXFLAGS
12455elif test $ac_cv_prog_cxx_g = yes; then
12456  if test "$GXX" = yes; then
12457    CXXFLAGS="-g -O2"
12458  else
12459    CXXFLAGS="-g"
12460  fi
12461else
12462  if test "$GXX" = yes; then
12463    CXXFLAGS="-O2"
12464  else
12465    CXXFLAGS=
12466  fi
12467fi
12468ac_ext=c
12469ac_cpp='$CPP $CPPFLAGS'
12470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472ac_compiler_gnu=$ac_cv_c_compiler_gnu
12473
12474depcc="$CXX"  am_compiler_list=
12475
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12477$as_echo_n "checking dependency style of $depcc... " >&6; }
12478if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12479  $as_echo_n "(cached) " >&6
12480else
12481  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12482  # We make a subdir and do the tests there.  Otherwise we can end up
12483  # making bogus files that we don't know about and never remove.  For
12484  # instance it was reported that on HP-UX the gcc test will end up
12485  # making a dummy file named `D' -- because `-MD' means `put the output
12486  # in D'.
12487  rm -rf conftest.dir
12488  mkdir conftest.dir
12489  # Copy depcomp to subdir because otherwise we won't find it if we're
12490  # using a relative directory.
12491  cp "$am_depcomp" conftest.dir
12492  cd conftest.dir
12493  # We will build objects and dependencies in a subdirectory because
12494  # it helps to detect inapplicable dependency modes.  For instance
12495  # both Tru64's cc and ICC support -MD to output dependencies as a
12496  # side effect of compilation, but ICC will put the dependencies in
12497  # the current directory while Tru64 will put them in the object
12498  # directory.
12499  mkdir sub
12500
12501  am_cv_CXX_dependencies_compiler_type=none
12502  if test "$am_compiler_list" = ""; then
12503     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12504  fi
12505  am__universal=false
12506  case " $depcc " in #(
12507     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12508     esac
12509
12510  for depmode in $am_compiler_list; do
12511    # Setup a source with many dependencies, because some compilers
12512    # like to wrap large dependency lists on column 80 (with \), and
12513    # we should not choose a depcomp mode which is confused by this.
12514    #
12515    # We need to recreate these files for each test, as the compiler may
12516    # overwrite some of them when testing with obscure command lines.
12517    # This happens at least with the AIX C compiler.
12518    : > sub/conftest.c
12519    for i in 1 2 3 4 5 6; do
12520      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12521      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12522      # Solaris 8's {/usr,}/bin/sh.
12523      touch sub/conftst$i.h
12524    done
12525    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12526
12527    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12528    # mode.  It turns out that the SunPro C++ compiler does not properly
12529    # handle `-M -o', and we need to detect this.  Also, some Intel
12530    # versions had trouble with output in subdirs
12531    am__obj=sub/conftest.${OBJEXT-o}
12532    am__minus_obj="-o $am__obj"
12533    case $depmode in
12534    gcc)
12535      # This depmode causes a compiler race in universal mode.
12536      test "$am__universal" = false || continue
12537      ;;
12538    nosideeffect)
12539      # after this tag, mechanisms are not by side-effect, so they'll
12540      # only be used when explicitly requested
12541      if test "x$enable_dependency_tracking" = xyes; then
12542	continue
12543      else
12544	break
12545      fi
12546      ;;
12547    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12548      # This compiler won't grok `-c -o', but also, the minuso test has
12549      # not run yet.  These depmodes are late enough in the game, and
12550      # so weak that their functioning should not be impacted.
12551      am__obj=conftest.${OBJEXT-o}
12552      am__minus_obj=
12553      ;;
12554    none) break ;;
12555    esac
12556    if depmode=$depmode \
12557       source=sub/conftest.c object=$am__obj \
12558       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12559       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12560         >/dev/null 2>conftest.err &&
12561       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12562       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12563       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12564       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12565      # icc doesn't choke on unknown options, it will just issue warnings
12566      # or remarks (even with -Werror).  So we grep stderr for any message
12567      # that says an option was ignored or not supported.
12568      # When given -MP, icc 7.0 and 7.1 complain thusly:
12569      #   icc: Command line warning: ignoring option '-M'; no argument required
12570      # The diagnosis changed in icc 8.0:
12571      #   icc: Command line remark: option '-MP' not supported
12572      if (grep 'ignoring option' conftest.err ||
12573          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12574        am_cv_CXX_dependencies_compiler_type=$depmode
12575        break
12576      fi
12577    fi
12578  done
12579
12580  cd ..
12581  rm -rf conftest.dir
12582else
12583  am_cv_CXX_dependencies_compiler_type=none
12584fi
12585
12586fi
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12588$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12589CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12590
12591 if
12592  test "x$enable_dependency_tracking" != xno \
12593  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12594  am__fastdepCXX_TRUE=
12595  am__fastdepCXX_FALSE='#'
12596else
12597  am__fastdepCXX_TRUE='#'
12598  am__fastdepCXX_FALSE=
12599fi
12600
12601
12602
12603
12604func_stripname_cnf ()
12605{
12606  case $2 in
12607  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12608  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12609  esac
12610} # func_stripname_cnf
12611
12612      if test -n "$CXX" && ( test no != "$CXX" &&
12613    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12614    (test g++ != "$CXX"))); then
12615  ac_ext=cpp
12616ac_cpp='$CXXCPP $CPPFLAGS'
12617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12621$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12622if test -z "$CXXCPP"; then
12623  if ${ac_cv_prog_CXXCPP+:} false; then :
12624  $as_echo_n "(cached) " >&6
12625else
12626      # Double quotes because CXXCPP needs to be expanded
12627    for CXXCPP in "$CXX -E" "/lib/cpp"
12628    do
12629      ac_preproc_ok=false
12630for ac_cxx_preproc_warn_flag in '' yes
12631do
12632  # Use a header file that comes with gcc, so configuring glibc
12633  # with a fresh cross-compiler works.
12634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12635  # <limits.h> exists even on freestanding compilers.
12636  # On the NeXT, cc -E runs the code through the compiler's parser,
12637  # not just through cpp. "Syntax error" is here to catch this case.
12638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639/* end confdefs.h.  */
12640#ifdef __STDC__
12641# include <limits.h>
12642#else
12643# include <assert.h>
12644#endif
12645		     Syntax error
12646_ACEOF
12647if ac_fn_cxx_try_cpp "$LINENO"; then :
12648
12649else
12650  # Broken: fails on valid input.
12651continue
12652fi
12653rm -f conftest.err conftest.i conftest.$ac_ext
12654
12655  # OK, works on sane cases.  Now check whether nonexistent headers
12656  # can be detected and how.
12657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658/* end confdefs.h.  */
12659#include <ac_nonexistent.h>
12660_ACEOF
12661if ac_fn_cxx_try_cpp "$LINENO"; then :
12662  # Broken: success on invalid input.
12663continue
12664else
12665  # Passes both tests.
12666ac_preproc_ok=:
12667break
12668fi
12669rm -f conftest.err conftest.i conftest.$ac_ext
12670
12671done
12672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12673rm -f conftest.i conftest.err conftest.$ac_ext
12674if $ac_preproc_ok; then :
12675  break
12676fi
12677
12678    done
12679    ac_cv_prog_CXXCPP=$CXXCPP
12680
12681fi
12682  CXXCPP=$ac_cv_prog_CXXCPP
12683else
12684  ac_cv_prog_CXXCPP=$CXXCPP
12685fi
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12687$as_echo "$CXXCPP" >&6; }
12688ac_preproc_ok=false
12689for ac_cxx_preproc_warn_flag in '' yes
12690do
12691  # Use a header file that comes with gcc, so configuring glibc
12692  # with a fresh cross-compiler works.
12693  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12694  # <limits.h> exists even on freestanding compilers.
12695  # On the NeXT, cc -E runs the code through the compiler's parser,
12696  # not just through cpp. "Syntax error" is here to catch this case.
12697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698/* end confdefs.h.  */
12699#ifdef __STDC__
12700# include <limits.h>
12701#else
12702# include <assert.h>
12703#endif
12704		     Syntax error
12705_ACEOF
12706if ac_fn_cxx_try_cpp "$LINENO"; then :
12707
12708else
12709  # Broken: fails on valid input.
12710continue
12711fi
12712rm -f conftest.err conftest.i conftest.$ac_ext
12713
12714  # OK, works on sane cases.  Now check whether nonexistent headers
12715  # can be detected and how.
12716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717/* end confdefs.h.  */
12718#include <ac_nonexistent.h>
12719_ACEOF
12720if ac_fn_cxx_try_cpp "$LINENO"; then :
12721  # Broken: success on invalid input.
12722continue
12723else
12724  # Passes both tests.
12725ac_preproc_ok=:
12726break
12727fi
12728rm -f conftest.err conftest.i conftest.$ac_ext
12729
12730done
12731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12732rm -f conftest.i conftest.err conftest.$ac_ext
12733if $ac_preproc_ok; then :
12734
12735else
12736  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12738as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12739See \`config.log' for more details" "$LINENO" 5; }
12740fi
12741
12742ac_ext=c
12743ac_cpp='$CPP $CPPFLAGS'
12744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746ac_compiler_gnu=$ac_cv_c_compiler_gnu
12747
12748else
12749  _lt_caught_CXX_error=yes
12750fi
12751
12752ac_ext=cpp
12753ac_cpp='$CXXCPP $CPPFLAGS'
12754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12757
12758archive_cmds_need_lc_CXX=no
12759allow_undefined_flag_CXX=
12760always_export_symbols_CXX=no
12761archive_expsym_cmds_CXX=
12762compiler_needs_object_CXX=no
12763export_dynamic_flag_spec_CXX=
12764hardcode_direct_CXX=no
12765hardcode_direct_absolute_CXX=no
12766hardcode_libdir_flag_spec_CXX=
12767hardcode_libdir_separator_CXX=
12768hardcode_minus_L_CXX=no
12769hardcode_shlibpath_var_CXX=unsupported
12770hardcode_automatic_CXX=no
12771inherit_rpath_CXX=no
12772module_cmds_CXX=
12773module_expsym_cmds_CXX=
12774link_all_deplibs_CXX=unknown
12775old_archive_cmds_CXX=$old_archive_cmds
12776reload_flag_CXX=$reload_flag
12777reload_cmds_CXX=$reload_cmds
12778no_undefined_flag_CXX=
12779whole_archive_flag_spec_CXX=
12780enable_shared_with_static_runtimes_CXX=no
12781
12782# Source file extension for C++ test sources.
12783ac_ext=cpp
12784
12785# Object file extension for compiled C++ test sources.
12786objext=o
12787objext_CXX=$objext
12788
12789# No sense in running all these tests if we already determined that
12790# the CXX compiler isn't working.  Some variables (like enable_shared)
12791# are currently assumed to apply to all compilers on this platform,
12792# and will be corrupted by setting them based on a non-working compiler.
12793if test yes != "$_lt_caught_CXX_error"; then
12794  # Code to be used in simple compile tests
12795  lt_simple_compile_test_code="int some_variable = 0;"
12796
12797  # Code to be used in simple link tests
12798  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12799
12800  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12801
12802
12803
12804
12805
12806
12807# If no C compiler was specified, use CC.
12808LTCC=${LTCC-"$CC"}
12809
12810# If no C compiler flags were specified, use CFLAGS.
12811LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12812
12813# Allow CC to be a program name with arguments.
12814compiler=$CC
12815
12816
12817  # save warnings/boilerplate of simple test code
12818  ac_outfile=conftest.$ac_objext
12819echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12820eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12821_lt_compiler_boilerplate=`cat conftest.err`
12822$RM conftest*
12823
12824  ac_outfile=conftest.$ac_objext
12825echo "$lt_simple_link_test_code" >conftest.$ac_ext
12826eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12827_lt_linker_boilerplate=`cat conftest.err`
12828$RM -r conftest*
12829
12830
12831  # Allow CC to be a program name with arguments.
12832  lt_save_CC=$CC
12833  lt_save_CFLAGS=$CFLAGS
12834  lt_save_LD=$LD
12835  lt_save_GCC=$GCC
12836  GCC=$GXX
12837  lt_save_with_gnu_ld=$with_gnu_ld
12838  lt_save_path_LD=$lt_cv_path_LD
12839  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12840    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12841  else
12842    $as_unset lt_cv_prog_gnu_ld
12843  fi
12844  if test -n "${lt_cv_path_LDCXX+set}"; then
12845    lt_cv_path_LD=$lt_cv_path_LDCXX
12846  else
12847    $as_unset lt_cv_path_LD
12848  fi
12849  test -z "${LDCXX+set}" || LD=$LDCXX
12850  CC=${CXX-"c++"}
12851  CFLAGS=$CXXFLAGS
12852  compiler=$CC
12853  compiler_CXX=$CC
12854  func_cc_basename $compiler
12855cc_basename=$func_cc_basename_result
12856
12857
12858  if test -n "$compiler"; then
12859    # We don't want -fno-exception when compiling C++ code, so set the
12860    # no_builtin_flag separately
12861    if test yes = "$GXX"; then
12862      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12863    else
12864      lt_prog_compiler_no_builtin_flag_CXX=
12865    fi
12866
12867    if test yes = "$GXX"; then
12868      # Set up default GNU C++ configuration
12869
12870
12871
12872# Check whether --with-gnu-ld was given.
12873if test "${with_gnu_ld+set}" = set; then :
12874  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12875else
12876  with_gnu_ld=no
12877fi
12878
12879ac_prog=ld
12880if test yes = "$GCC"; then
12881  # Check if gcc -print-prog-name=ld gives a path.
12882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12883$as_echo_n "checking for ld used by $CC... " >&6; }
12884  case $host in
12885  *-*-mingw*)
12886    # gcc leaves a trailing carriage return, which upsets mingw
12887    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12888  *)
12889    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12890  esac
12891  case $ac_prog in
12892    # Accept absolute paths.
12893    [\\/]* | ?:[\\/]*)
12894      re_direlt='/[^/][^/]*/\.\./'
12895      # Canonicalize the pathname of ld
12896      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12897      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12898	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12899      done
12900      test -z "$LD" && LD=$ac_prog
12901      ;;
12902  "")
12903    # If it fails, then pretend we aren't using GCC.
12904    ac_prog=ld
12905    ;;
12906  *)
12907    # If it is relative, then search for the first ld in PATH.
12908    with_gnu_ld=unknown
12909    ;;
12910  esac
12911elif test yes = "$with_gnu_ld"; then
12912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12913$as_echo_n "checking for GNU ld... " >&6; }
12914else
12915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12916$as_echo_n "checking for non-GNU ld... " >&6; }
12917fi
12918if ${lt_cv_path_LD+:} false; then :
12919  $as_echo_n "(cached) " >&6
12920else
12921  if test -z "$LD"; then
12922  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12923  for ac_dir in $PATH; do
12924    IFS=$lt_save_ifs
12925    test -z "$ac_dir" && ac_dir=.
12926    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12927      lt_cv_path_LD=$ac_dir/$ac_prog
12928      # Check to see if the program is GNU ld.  I'd rather use --version,
12929      # but apparently some variants of GNU ld only accept -v.
12930      # Break only if it was the GNU/non-GNU ld that we prefer.
12931      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12932      *GNU* | *'with BFD'*)
12933	test no != "$with_gnu_ld" && break
12934	;;
12935      *)
12936	test yes != "$with_gnu_ld" && break
12937	;;
12938      esac
12939    fi
12940  done
12941  IFS=$lt_save_ifs
12942else
12943  lt_cv_path_LD=$LD # Let the user override the test with a path.
12944fi
12945fi
12946
12947LD=$lt_cv_path_LD
12948if test -n "$LD"; then
12949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12950$as_echo "$LD" >&6; }
12951else
12952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953$as_echo "no" >&6; }
12954fi
12955test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12957$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12958if ${lt_cv_prog_gnu_ld+:} false; then :
12959  $as_echo_n "(cached) " >&6
12960else
12961  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12962case `$LD -v 2>&1 </dev/null` in
12963*GNU* | *'with BFD'*)
12964  lt_cv_prog_gnu_ld=yes
12965  ;;
12966*)
12967  lt_cv_prog_gnu_ld=no
12968  ;;
12969esac
12970fi
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12972$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12973with_gnu_ld=$lt_cv_prog_gnu_ld
12974
12975
12976
12977
12978
12979
12980
12981      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12982      # archiving commands below assume that GNU ld is being used.
12983      if test yes = "$with_gnu_ld"; then
12984        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12985        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'
12986
12987        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12988        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12989
12990        # If archive_cmds runs LD, not CC, wlarc should be empty
12991        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12992        #     investigate it a little bit more. (MM)
12993        wlarc='$wl'
12994
12995        # ancient GNU ld didn't support --whole-archive et. al.
12996        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12997	  $GREP 'no-whole-archive' > /dev/null; then
12998          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12999        else
13000          whole_archive_flag_spec_CXX=
13001        fi
13002      else
13003        with_gnu_ld=no
13004        wlarc=
13005
13006        # A generic and very simple default shared library creation
13007        # command for GNU C++ for the case where it uses the native
13008        # linker, instead of GNU ld.  If possible, this setting should
13009        # overridden to take advantage of the native linker features on
13010        # the platform it is being used on.
13011        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13012      fi
13013
13014      # Commands to make compiler produce verbose output that lists
13015      # what "hidden" libraries, object files and flags are used when
13016      # linking a shared library.
13017      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13018
13019    else
13020      GXX=no
13021      with_gnu_ld=no
13022      wlarc=
13023    fi
13024
13025    # PORTME: fill in a description of your system's C++ link characteristics
13026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13028    ld_shlibs_CXX=yes
13029    case $host_os in
13030      aix3*)
13031        # FIXME: insert proper C++ library support
13032        ld_shlibs_CXX=no
13033        ;;
13034      aix[4-9]*)
13035        if test ia64 = "$host_cpu"; then
13036          # On IA64, the linker does run time linking by default, so we don't
13037          # have to do anything special.
13038          aix_use_runtimelinking=no
13039          exp_sym_flag='-Bexport'
13040          no_entry_flag=
13041        else
13042          aix_use_runtimelinking=no
13043
13044          # Test if we are trying to use run time linking or normal
13045          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13046          # have runtime linking enabled, and use it for executables.
13047          # For shared libraries, we enable/disable runtime linking
13048          # depending on the kind of the shared library created -
13049          # when "with_aix_soname,aix_use_runtimelinking" is:
13050          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13051          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13052          #            lib.a           static archive
13053          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13054          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13055          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13056          #            lib.a(lib.so.V) shared, rtl:no
13057          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13058          #            lib.a           static archive
13059          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13060	    for ld_flag in $LDFLAGS; do
13061	      case $ld_flag in
13062	      *-brtl*)
13063	        aix_use_runtimelinking=yes
13064	        break
13065	        ;;
13066	      esac
13067	    done
13068	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13069	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13070	      # so we don't have lib.a shared libs to link our executables.
13071	      # We have to force runtime linking in this case.
13072	      aix_use_runtimelinking=yes
13073	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13074	    fi
13075	    ;;
13076          esac
13077
13078          exp_sym_flag='-bexport'
13079          no_entry_flag='-bnoentry'
13080        fi
13081
13082        # When large executables or shared objects are built, AIX ld can
13083        # have problems creating the table of contents.  If linking a library
13084        # or program results in "error TOC overflow" add -mminimal-toc to
13085        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13086        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13087
13088        archive_cmds_CXX=''
13089        hardcode_direct_CXX=yes
13090        hardcode_direct_absolute_CXX=yes
13091        hardcode_libdir_separator_CXX=':'
13092        link_all_deplibs_CXX=yes
13093        file_list_spec_CXX='$wl-f,'
13094        case $with_aix_soname,$aix_use_runtimelinking in
13095        aix,*) ;;	# no import file
13096        svr4,* | *,yes) # use import file
13097          # The Import File defines what to hardcode.
13098          hardcode_direct_CXX=no
13099          hardcode_direct_absolute_CXX=no
13100          ;;
13101        esac
13102
13103        if test yes = "$GXX"; then
13104          case $host_os in aix4.[012]|aix4.[012].*)
13105          # We only want to do this on AIX 4.2 and lower, the check
13106          # below for broken collect2 doesn't work under 4.3+
13107	  collect2name=`$CC -print-prog-name=collect2`
13108	  if test -f "$collect2name" &&
13109	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13110	  then
13111	    # We have reworked collect2
13112	    :
13113	  else
13114	    # We have old collect2
13115	    hardcode_direct_CXX=unsupported
13116	    # It fails to find uninstalled libraries when the uninstalled
13117	    # path is not listed in the libpath.  Setting hardcode_minus_L
13118	    # to unsupported forces relinking
13119	    hardcode_minus_L_CXX=yes
13120	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13121	    hardcode_libdir_separator_CXX=
13122	  fi
13123          esac
13124          shared_flag='-shared'
13125	  if test yes = "$aix_use_runtimelinking"; then
13126	    shared_flag=$shared_flag' $wl-G'
13127	  fi
13128	  # Need to ensure runtime linking is disabled for the traditional
13129	  # shared library, or the linker may eventually find shared libraries
13130	  # /with/ Import File - we do not want to mix them.
13131	  shared_flag_aix='-shared'
13132	  shared_flag_svr4='-shared $wl-G'
13133        else
13134          # not using gcc
13135          if test ia64 = "$host_cpu"; then
13136	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13137	  # chokes on -Wl,-G. The following line is correct:
13138	  shared_flag='-G'
13139          else
13140	    if test yes = "$aix_use_runtimelinking"; then
13141	      shared_flag='$wl-G'
13142	    else
13143	      shared_flag='$wl-bM:SRE'
13144	    fi
13145	    shared_flag_aix='$wl-bM:SRE'
13146	    shared_flag_svr4='$wl-G'
13147          fi
13148        fi
13149
13150        export_dynamic_flag_spec_CXX='$wl-bexpall'
13151        # It seems that -bexpall does not export symbols beginning with
13152        # underscore (_), so it is better to generate a list of symbols to
13153	# export.
13154        always_export_symbols_CXX=yes
13155	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13156          # Warning - without using the other runtime loading flags (-brtl),
13157          # -berok will link without error, but may produce a broken library.
13158          # The "-G" linker flag allows undefined symbols.
13159          no_undefined_flag_CXX='-bernotok'
13160          # Determine the default libpath from the value encoded in an empty
13161          # executable.
13162          if test set = "${lt_cv_aix_libpath+set}"; then
13163  aix_libpath=$lt_cv_aix_libpath
13164else
13165  if ${lt_cv_aix_libpath__CXX+:} false; then :
13166  $as_echo_n "(cached) " >&6
13167else
13168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169/* end confdefs.h.  */
13170
13171int
13172main ()
13173{
13174
13175  ;
13176  return 0;
13177}
13178_ACEOF
13179if ac_fn_cxx_try_link "$LINENO"; then :
13180
13181  lt_aix_libpath_sed='
13182      /Import File Strings/,/^$/ {
13183	  /^0/ {
13184	      s/^0  *\([^ ]*\) *$/\1/
13185	      p
13186	  }
13187      }'
13188  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13189  # Check for a 64-bit object if we didn't find anything.
13190  if test -z "$lt_cv_aix_libpath__CXX"; then
13191    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13192  fi
13193fi
13194rm -f core conftest.err conftest.$ac_objext \
13195    conftest$ac_exeext conftest.$ac_ext
13196  if test -z "$lt_cv_aix_libpath__CXX"; then
13197    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13198  fi
13199
13200fi
13201
13202  aix_libpath=$lt_cv_aix_libpath__CXX
13203fi
13204
13205          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13206
13207          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
13208        else
13209          if test ia64 = "$host_cpu"; then
13210	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13211	    allow_undefined_flag_CXX="-z nodefs"
13212	    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"
13213          else
13214	    # Determine the default libpath from the value encoded in an
13215	    # empty executable.
13216	    if test set = "${lt_cv_aix_libpath+set}"; then
13217  aix_libpath=$lt_cv_aix_libpath
13218else
13219  if ${lt_cv_aix_libpath__CXX+:} false; then :
13220  $as_echo_n "(cached) " >&6
13221else
13222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224
13225int
13226main ()
13227{
13228
13229  ;
13230  return 0;
13231}
13232_ACEOF
13233if ac_fn_cxx_try_link "$LINENO"; then :
13234
13235  lt_aix_libpath_sed='
13236      /Import File Strings/,/^$/ {
13237	  /^0/ {
13238	      s/^0  *\([^ ]*\) *$/\1/
13239	      p
13240	  }
13241      }'
13242  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13243  # Check for a 64-bit object if we didn't find anything.
13244  if test -z "$lt_cv_aix_libpath__CXX"; then
13245    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13246  fi
13247fi
13248rm -f core conftest.err conftest.$ac_objext \
13249    conftest$ac_exeext conftest.$ac_ext
13250  if test -z "$lt_cv_aix_libpath__CXX"; then
13251    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13252  fi
13253
13254fi
13255
13256  aix_libpath=$lt_cv_aix_libpath__CXX
13257fi
13258
13259	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13260	    # Warning - without using the other run time loading flags,
13261	    # -berok will link without error, but may produce a broken library.
13262	    no_undefined_flag_CXX=' $wl-bernotok'
13263	    allow_undefined_flag_CXX=' $wl-berok'
13264	    if test yes = "$with_gnu_ld"; then
13265	      # We only use this code for GNU lds that support --whole-archive.
13266	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13267	    else
13268	      # Exported symbols can be pulled into shared objects from archives
13269	      whole_archive_flag_spec_CXX='$convenience'
13270	    fi
13271	    archive_cmds_need_lc_CXX=yes
13272	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13273	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13274	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13275	    if test svr4 != "$with_aix_soname"; then
13276	      # This is similar to how AIX traditionally builds its shared
13277	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13278	      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'
13279	    fi
13280	    if test aix != "$with_aix_soname"; then
13281	      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'
13282	    else
13283	      # used by -dlpreopen to get the symbols
13284	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13285	    fi
13286	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13287          fi
13288        fi
13289        ;;
13290
13291      beos*)
13292	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13293	  allow_undefined_flag_CXX=unsupported
13294	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13295	  # support --undefined.  This deserves some investigation.  FIXME
13296	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13297	else
13298	  ld_shlibs_CXX=no
13299	fi
13300	;;
13301
13302      chorus*)
13303        case $cc_basename in
13304          *)
13305	  # FIXME: insert proper C++ library support
13306	  ld_shlibs_CXX=no
13307	  ;;
13308        esac
13309        ;;
13310
13311      cygwin* | mingw* | pw32* | cegcc*)
13312	case $GXX,$cc_basename in
13313	,cl* | no,cl*)
13314	  # Native MSVC
13315	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13316	  # no search path for DLLs.
13317	  hardcode_libdir_flag_spec_CXX=' '
13318	  allow_undefined_flag_CXX=unsupported
13319	  always_export_symbols_CXX=yes
13320	  file_list_spec_CXX='@'
13321	  # Tell ltmain to make .lib files, not .a files.
13322	  libext=lib
13323	  # Tell ltmain to make .dll files, not .so files.
13324	  shrext_cmds=.dll
13325	  # FIXME: Setting linknames here is a bad hack.
13326	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13327	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13328              cp "$export_symbols" "$output_objdir/$soname.def";
13329              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13330            else
13331              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13332            fi~
13333            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13334            linknames='
13335	  # The linker will not automatically build a static lib if we build a DLL.
13336	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13337	  enable_shared_with_static_runtimes_CXX=yes
13338	  # Don't use ranlib
13339	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13340	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13341            lt_tool_outputfile="@TOOL_OUTPUT@"~
13342            case $lt_outputfile in
13343              *.exe|*.EXE) ;;
13344              *)
13345                lt_outputfile=$lt_outputfile.exe
13346                lt_tool_outputfile=$lt_tool_outputfile.exe
13347                ;;
13348            esac~
13349            func_to_tool_file "$lt_outputfile"~
13350            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13351              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13352              $RM "$lt_outputfile.manifest";
13353            fi'
13354	  ;;
13355	*)
13356	  # g++
13357	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13358	  # as there is no search path for DLLs.
13359	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13360	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13361	  allow_undefined_flag_CXX=unsupported
13362	  always_export_symbols_CXX=no
13363	  enable_shared_with_static_runtimes_CXX=yes
13364
13365	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13366	    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'
13367	    # If the export-symbols file already is a .def file, use it as
13368	    # is; otherwise, prepend EXPORTS...
13369	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13370              cp $export_symbols $output_objdir/$soname.def;
13371            else
13372              echo EXPORTS > $output_objdir/$soname.def;
13373              cat $export_symbols >> $output_objdir/$soname.def;
13374            fi~
13375            $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'
13376	  else
13377	    ld_shlibs_CXX=no
13378	  fi
13379	  ;;
13380	esac
13381	;;
13382      darwin* | rhapsody*)
13383
13384
13385  archive_cmds_need_lc_CXX=no
13386  hardcode_direct_CXX=no
13387  hardcode_automatic_CXX=yes
13388  hardcode_shlibpath_var_CXX=unsupported
13389  if test yes = "$lt_cv_ld_force_load"; then
13390    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\"`'
13391
13392  else
13393    whole_archive_flag_spec_CXX=''
13394  fi
13395  link_all_deplibs_CXX=yes
13396  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13397  case $cc_basename in
13398     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13399     *) _lt_dar_can_shared=$GCC ;;
13400  esac
13401  if test yes = "$_lt_dar_can_shared"; then
13402    output_verbose_link_cmd=func_echo_all
13403    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"
13404    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13405    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"
13406    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"
13407       if test yes != "$lt_cv_apple_cc_single_mod"; then
13408      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"
13409      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"
13410    fi
13411
13412  else
13413  ld_shlibs_CXX=no
13414  fi
13415
13416	;;
13417
13418      os2*)
13419	hardcode_libdir_flag_spec_CXX='-L$libdir'
13420	hardcode_minus_L_CXX=yes
13421	allow_undefined_flag_CXX=unsupported
13422	shrext_cmds=.dll
13423	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13424	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13425	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13426	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13427	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13428	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13429	  emximp -o $lib $output_objdir/$libname.def'
13430	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13431	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13432	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13433	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13434	  prefix_cmds="$SED"~
13435	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13436	    prefix_cmds="$prefix_cmds -e 1d";
13437	  fi~
13438	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13439	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13440	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13441	  emximp -o $lib $output_objdir/$libname.def'
13442	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13443	enable_shared_with_static_runtimes_CXX=yes
13444	;;
13445
13446      dgux*)
13447        case $cc_basename in
13448          ec++*)
13449	    # FIXME: insert proper C++ library support
13450	    ld_shlibs_CXX=no
13451	    ;;
13452          ghcx*)
13453	    # Green Hills C++ Compiler
13454	    # FIXME: insert proper C++ library support
13455	    ld_shlibs_CXX=no
13456	    ;;
13457          *)
13458	    # FIXME: insert proper C++ library support
13459	    ld_shlibs_CXX=no
13460	    ;;
13461        esac
13462        ;;
13463
13464      freebsd2.*)
13465        # C++ shared libraries reported to be fairly broken before
13466	# switch to ELF
13467        ld_shlibs_CXX=no
13468        ;;
13469
13470      freebsd-elf*)
13471        archive_cmds_need_lc_CXX=no
13472        ;;
13473
13474      freebsd* | dragonfly*)
13475        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13476        # conventions
13477        ld_shlibs_CXX=yes
13478        ;;
13479
13480      haiku*)
13481        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13482        link_all_deplibs_CXX=yes
13483        ;;
13484
13485      hpux9*)
13486        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13487        hardcode_libdir_separator_CXX=:
13488        export_dynamic_flag_spec_CXX='$wl-E'
13489        hardcode_direct_CXX=yes
13490        hardcode_minus_L_CXX=yes # Not in the search PATH,
13491				             # but as the default
13492				             # location of the library.
13493
13494        case $cc_basename in
13495          CC*)
13496            # FIXME: insert proper C++ library support
13497            ld_shlibs_CXX=no
13498            ;;
13499          aCC*)
13500            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'
13501            # Commands to make compiler produce verbose output that lists
13502            # what "hidden" libraries, object files and flags are used when
13503            # linking a shared library.
13504            #
13505            # There doesn't appear to be a way to prevent this compiler from
13506            # explicitly linking system object files so we need to strip them
13507            # from the output so that they don't get included in the library
13508            # dependencies.
13509            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"'
13510            ;;
13511          *)
13512            if test yes = "$GXX"; then
13513              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'
13514            else
13515              # FIXME: insert proper C++ library support
13516              ld_shlibs_CXX=no
13517            fi
13518            ;;
13519        esac
13520        ;;
13521
13522      hpux10*|hpux11*)
13523        if test no = "$with_gnu_ld"; then
13524	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13525	  hardcode_libdir_separator_CXX=:
13526
13527          case $host_cpu in
13528            hppa*64*|ia64*)
13529              ;;
13530            *)
13531	      export_dynamic_flag_spec_CXX='$wl-E'
13532              ;;
13533          esac
13534        fi
13535        case $host_cpu in
13536          hppa*64*|ia64*)
13537            hardcode_direct_CXX=no
13538            hardcode_shlibpath_var_CXX=no
13539            ;;
13540          *)
13541            hardcode_direct_CXX=yes
13542            hardcode_direct_absolute_CXX=yes
13543            hardcode_minus_L_CXX=yes # Not in the search PATH,
13544					         # but as the default
13545					         # location of the library.
13546            ;;
13547        esac
13548
13549        case $cc_basename in
13550          CC*)
13551	    # FIXME: insert proper C++ library support
13552	    ld_shlibs_CXX=no
13553	    ;;
13554          aCC*)
13555	    case $host_cpu in
13556	      hppa*64*)
13557	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13558	        ;;
13559	      ia64*)
13560	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13561	        ;;
13562	      *)
13563	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13564	        ;;
13565	    esac
13566	    # Commands to make compiler produce verbose output that lists
13567	    # what "hidden" libraries, object files and flags are used when
13568	    # linking a shared library.
13569	    #
13570	    # There doesn't appear to be a way to prevent this compiler from
13571	    # explicitly linking system object files so we need to strip them
13572	    # from the output so that they don't get included in the library
13573	    # dependencies.
13574	    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"'
13575	    ;;
13576          *)
13577	    if test yes = "$GXX"; then
13578	      if test no = "$with_gnu_ld"; then
13579	        case $host_cpu in
13580	          hppa*64*)
13581	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13582	            ;;
13583	          ia64*)
13584	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13585	            ;;
13586	          *)
13587	            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'
13588	            ;;
13589	        esac
13590	      fi
13591	    else
13592	      # FIXME: insert proper C++ library support
13593	      ld_shlibs_CXX=no
13594	    fi
13595	    ;;
13596        esac
13597        ;;
13598
13599      interix[3-9]*)
13600	hardcode_direct_CXX=no
13601	hardcode_shlibpath_var_CXX=no
13602	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13603	export_dynamic_flag_spec_CXX='$wl-E'
13604	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13605	# Instead, shared libraries are loaded at an image base (0x10000000 by
13606	# default) and relocated if they conflict, which is a slow very memory
13607	# consuming and fragmenting process.  To avoid this, we pick a random,
13608	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13609	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13610	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'
13611	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'
13612	;;
13613      irix5* | irix6*)
13614        case $cc_basename in
13615          CC*)
13616	    # SGI C++
13617	    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'
13618
13619	    # Archives containing C++ object files must be created using
13620	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13621	    # necessary to make sure instantiated templates are included
13622	    # in the archive.
13623	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13624	    ;;
13625          *)
13626	    if test yes = "$GXX"; then
13627	      if test no = "$with_gnu_ld"; then
13628	        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'
13629	      else
13630	        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'
13631	      fi
13632	    fi
13633	    link_all_deplibs_CXX=yes
13634	    ;;
13635        esac
13636        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13637        hardcode_libdir_separator_CXX=:
13638        inherit_rpath_CXX=yes
13639        ;;
13640
13641      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13642        case $cc_basename in
13643          KCC*)
13644	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13645
13646	    # KCC will only create a shared library if the output file
13647	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13648	    # to its proper name (with version) after linking.
13649	    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'
13650	    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'
13651	    # Commands to make compiler produce verbose output that lists
13652	    # what "hidden" libraries, object files and flags are used when
13653	    # linking a shared library.
13654	    #
13655	    # There doesn't appear to be a way to prevent this compiler from
13656	    # explicitly linking system object files so we need to strip them
13657	    # from the output so that they don't get included in the library
13658	    # dependencies.
13659	    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"'
13660
13661	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13662	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13663
13664	    # Archives containing C++ object files must be created using
13665	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13666	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13667	    ;;
13668	  icpc* | ecpc* )
13669	    # Intel C++
13670	    with_gnu_ld=yes
13671	    # version 8.0 and above of icpc choke on multiply defined symbols
13672	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13673	    # earlier do not add the objects themselves.
13674	    case `$CC -V 2>&1` in
13675	      *"Version 7."*)
13676	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13677		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'
13678		;;
13679	      *)  # Version 8.0 or newer
13680	        tmp_idyn=
13681	        case $host_cpu in
13682		  ia64*) tmp_idyn=' -i_dynamic';;
13683		esac
13684	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13685		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'
13686		;;
13687	    esac
13688	    archive_cmds_need_lc_CXX=no
13689	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13690	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13691	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13692	    ;;
13693          pgCC* | pgcpp*)
13694            # Portland Group C++ compiler
13695	    case `$CC -V` in
13696	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13697	      prelink_cmds_CXX='tpldir=Template.dir~
13698               rm -rf $tpldir~
13699               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13700               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13701	      old_archive_cmds_CXX='tpldir=Template.dir~
13702                rm -rf $tpldir~
13703                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13704                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13705                $RANLIB $oldlib'
13706	      archive_cmds_CXX='tpldir=Template.dir~
13707                rm -rf $tpldir~
13708                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13709                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13710	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13711                rm -rf $tpldir~
13712                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13713                $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'
13714	      ;;
13715	    *) # Version 6 and above use weak symbols
13716	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13717	      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'
13718	      ;;
13719	    esac
13720
13721	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13722	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13723	    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'
13724            ;;
13725	  cxx*)
13726	    # Compaq C++
13727	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13728	    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'
13729
13730	    runpath_var=LD_RUN_PATH
13731	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13732	    hardcode_libdir_separator_CXX=:
13733
13734	    # Commands to make compiler produce verbose output that lists
13735	    # what "hidden" libraries, object files and flags are used when
13736	    # linking a shared library.
13737	    #
13738	    # There doesn't appear to be a way to prevent this compiler from
13739	    # explicitly linking system object files so we need to strip them
13740	    # from the output so that they don't get included in the library
13741	    # dependencies.
13742	    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'
13743	    ;;
13744	  xl* | mpixl* | bgxl*)
13745	    # IBM XL 8.0 on PPC, with GNU ld
13746	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13747	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13748	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13749	    if test yes = "$supports_anon_versioning"; then
13750	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13751                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13752                echo "local: *; };" >> $output_objdir/$libname.ver~
13753                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13754	    fi
13755	    ;;
13756	  *)
13757	    case `$CC -V 2>&1 | sed 5q` in
13758	    *Sun\ C*)
13759	      # Sun C++ 5.9
13760	      no_undefined_flag_CXX=' -zdefs'
13761	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13762	      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'
13763	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13764	      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'
13765	      compiler_needs_object_CXX=yes
13766
13767	      # Not sure whether something based on
13768	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13769	      # would be better.
13770	      output_verbose_link_cmd='func_echo_all'
13771
13772	      # Archives containing C++ object files must be created using
13773	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13774	      # necessary to make sure instantiated templates are included
13775	      # in the archive.
13776	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13777	      ;;
13778	    esac
13779	    ;;
13780	esac
13781	;;
13782
13783      lynxos*)
13784        # FIXME: insert proper C++ library support
13785	ld_shlibs_CXX=no
13786	;;
13787
13788      m88k*)
13789        # FIXME: insert proper C++ library support
13790        ld_shlibs_CXX=no
13791	;;
13792
13793      mvs*)
13794        case $cc_basename in
13795          cxx*)
13796	    # FIXME: insert proper C++ library support
13797	    ld_shlibs_CXX=no
13798	    ;;
13799	  *)
13800	    # FIXME: insert proper C++ library support
13801	    ld_shlibs_CXX=no
13802	    ;;
13803	esac
13804	;;
13805
13806      netbsd*)
13807        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13808	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13809	  wlarc=
13810	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13811	  hardcode_direct_CXX=yes
13812	  hardcode_shlibpath_var_CXX=no
13813	fi
13814	# Workaround some broken pre-1.5 toolchains
13815	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13816	;;
13817
13818      *nto* | *qnx*)
13819        ld_shlibs_CXX=yes
13820	;;
13821
13822      openbsd* | bitrig*)
13823	if test -f /usr/libexec/ld.so; then
13824	  hardcode_direct_CXX=yes
13825	  hardcode_shlibpath_var_CXX=no
13826	  hardcode_direct_absolute_CXX=yes
13827	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13828	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13829	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13830	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13831	    export_dynamic_flag_spec_CXX='$wl-E'
13832	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13833	  fi
13834	  output_verbose_link_cmd=func_echo_all
13835	else
13836	  ld_shlibs_CXX=no
13837	fi
13838	;;
13839
13840      osf3* | osf4* | osf5*)
13841        case $cc_basename in
13842          KCC*)
13843	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13844
13845	    # KCC will only create a shared library if the output file
13846	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13847	    # to its proper name (with version) after linking.
13848	    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'
13849
13850	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13851	    hardcode_libdir_separator_CXX=:
13852
13853	    # Archives containing C++ object files must be created using
13854	    # the KAI C++ compiler.
13855	    case $host in
13856	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13857	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13858	    esac
13859	    ;;
13860          RCC*)
13861	    # Rational C++ 2.4.1
13862	    # FIXME: insert proper C++ library support
13863	    ld_shlibs_CXX=no
13864	    ;;
13865          cxx*)
13866	    case $host in
13867	      osf3*)
13868	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13869	        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'
13870	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13871		;;
13872	      *)
13873	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13874	        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'
13875	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13876                  echo "-hidden">> $lib.exp~
13877                  $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~
13878                  $RM $lib.exp'
13879	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13880		;;
13881	    esac
13882
13883	    hardcode_libdir_separator_CXX=:
13884
13885	    # Commands to make compiler produce verbose output that lists
13886	    # what "hidden" libraries, object files and flags are used when
13887	    # linking a shared library.
13888	    #
13889	    # There doesn't appear to be a way to prevent this compiler from
13890	    # explicitly linking system object files so we need to strip them
13891	    # from the output so that they don't get included in the library
13892	    # dependencies.
13893	    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"'
13894	    ;;
13895	  *)
13896	    if test yes,no = "$GXX,$with_gnu_ld"; then
13897	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13898	      case $host in
13899	        osf3*)
13900	          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'
13901		  ;;
13902	        *)
13903	          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'
13904		  ;;
13905	      esac
13906
13907	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13908	      hardcode_libdir_separator_CXX=:
13909
13910	      # Commands to make compiler produce verbose output that lists
13911	      # what "hidden" libraries, object files and flags are used when
13912	      # linking a shared library.
13913	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13914
13915	    else
13916	      # FIXME: insert proper C++ library support
13917	      ld_shlibs_CXX=no
13918	    fi
13919	    ;;
13920        esac
13921        ;;
13922
13923      psos*)
13924        # FIXME: insert proper C++ library support
13925        ld_shlibs_CXX=no
13926        ;;
13927
13928      sunos4*)
13929        case $cc_basename in
13930          CC*)
13931	    # Sun C++ 4.x
13932	    # FIXME: insert proper C++ library support
13933	    ld_shlibs_CXX=no
13934	    ;;
13935          lcc*)
13936	    # Lucid
13937	    # FIXME: insert proper C++ library support
13938	    ld_shlibs_CXX=no
13939	    ;;
13940          *)
13941	    # FIXME: insert proper C++ library support
13942	    ld_shlibs_CXX=no
13943	    ;;
13944        esac
13945        ;;
13946
13947      solaris*)
13948        case $cc_basename in
13949          CC* | sunCC*)
13950	    # Sun C++ 4.2, 5.x and Centerline C++
13951            archive_cmds_need_lc_CXX=yes
13952	    no_undefined_flag_CXX=' -zdefs'
13953	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13954	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13955              $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'
13956
13957	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13958	    hardcode_shlibpath_var_CXX=no
13959	    case $host_os in
13960	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13961	      *)
13962		# The compiler driver will combine and reorder linker options,
13963		# but understands '-z linker_flag'.
13964	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13965		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13966	        ;;
13967	    esac
13968	    link_all_deplibs_CXX=yes
13969
13970	    output_verbose_link_cmd='func_echo_all'
13971
13972	    # Archives containing C++ object files must be created using
13973	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13974	    # necessary to make sure instantiated templates are included
13975	    # in the archive.
13976	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13977	    ;;
13978          gcx*)
13979	    # Green Hills C++ Compiler
13980	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13981
13982	    # The C++ compiler must be used to create the archive.
13983	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13984	    ;;
13985          *)
13986	    # GNU C++ compiler with Solaris linker
13987	    if test yes,no = "$GXX,$with_gnu_ld"; then
13988	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
13989	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13990	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13991	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13992                  $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'
13993
13994	        # Commands to make compiler produce verbose output that lists
13995	        # what "hidden" libraries, object files and flags are used when
13996	        # linking a shared library.
13997	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13998	      else
13999	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14000	        # platform.
14001	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14002	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14003                  $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'
14004
14005	        # Commands to make compiler produce verbose output that lists
14006	        # what "hidden" libraries, object files and flags are used when
14007	        # linking a shared library.
14008	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14009	      fi
14010
14011	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14012	      case $host_os in
14013		solaris2.[0-5] | solaris2.[0-5].*) ;;
14014		*)
14015		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14016		  ;;
14017	      esac
14018	    fi
14019	    ;;
14020        esac
14021        ;;
14022
14023    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14024      no_undefined_flag_CXX='$wl-z,text'
14025      archive_cmds_need_lc_CXX=no
14026      hardcode_shlibpath_var_CXX=no
14027      runpath_var='LD_RUN_PATH'
14028
14029      case $cc_basename in
14030        CC*)
14031	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14032	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14033	  ;;
14034	*)
14035	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14036	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14037	  ;;
14038      esac
14039      ;;
14040
14041      sysv5* | sco3.2v5* | sco5v6*)
14042	# Note: We CANNOT use -z defs as we might desire, because we do not
14043	# link with -lc, and that would cause any symbols used from libc to
14044	# always be unresolved, which means just about no library would
14045	# ever link correctly.  If we're not using GNU ld we use -z text
14046	# though, which does catch some bad symbols but isn't as heavy-handed
14047	# as -z defs.
14048	no_undefined_flag_CXX='$wl-z,text'
14049	allow_undefined_flag_CXX='$wl-z,nodefs'
14050	archive_cmds_need_lc_CXX=no
14051	hardcode_shlibpath_var_CXX=no
14052	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14053	hardcode_libdir_separator_CXX=':'
14054	link_all_deplibs_CXX=yes
14055	export_dynamic_flag_spec_CXX='$wl-Bexport'
14056	runpath_var='LD_RUN_PATH'
14057
14058	case $cc_basename in
14059          CC*)
14060	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14063              '"$old_archive_cmds_CXX"
14064	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14065              '"$reload_cmds_CXX"
14066	    ;;
14067	  *)
14068	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14069	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070	    ;;
14071	esac
14072      ;;
14073
14074      tandem*)
14075        case $cc_basename in
14076          NCC*)
14077	    # NonStop-UX NCC 3.20
14078	    # FIXME: insert proper C++ library support
14079	    ld_shlibs_CXX=no
14080	    ;;
14081          *)
14082	    # FIXME: insert proper C++ library support
14083	    ld_shlibs_CXX=no
14084	    ;;
14085        esac
14086        ;;
14087
14088      vxworks*)
14089        # FIXME: insert proper C++ library support
14090        ld_shlibs_CXX=no
14091        ;;
14092
14093      *)
14094        # FIXME: insert proper C++ library support
14095        ld_shlibs_CXX=no
14096        ;;
14097    esac
14098
14099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14100$as_echo "$ld_shlibs_CXX" >&6; }
14101    test no = "$ld_shlibs_CXX" && can_build_shared=no
14102
14103    GCC_CXX=$GXX
14104    LD_CXX=$LD
14105
14106    ## CAVEAT EMPTOR:
14107    ## There is no encapsulation within the following macros, do not change
14108    ## the running order or otherwise move them around unless you know exactly
14109    ## what you are doing...
14110    # Dependencies to place before and after the object being linked:
14111predep_objects_CXX=
14112postdep_objects_CXX=
14113predeps_CXX=
14114postdeps_CXX=
14115compiler_lib_search_path_CXX=
14116
14117cat > conftest.$ac_ext <<_LT_EOF
14118class Foo
14119{
14120public:
14121  Foo (void) { a = 0; }
14122private:
14123  int a;
14124};
14125_LT_EOF
14126
14127
14128_lt_libdeps_save_CFLAGS=$CFLAGS
14129case "$CC $CFLAGS " in #(
14130*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14131*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14132*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14133esac
14134
14135if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14136  (eval $ac_compile) 2>&5
14137  ac_status=$?
14138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139  test $ac_status = 0; }; then
14140  # Parse the compiler output and extract the necessary
14141  # objects, libraries and library flags.
14142
14143  # Sentinel used to keep track of whether or not we are before
14144  # the conftest object file.
14145  pre_test_object_deps_done=no
14146
14147  for p in `eval "$output_verbose_link_cmd"`; do
14148    case $prev$p in
14149
14150    -L* | -R* | -l*)
14151       # Some compilers place space between "-{L,R}" and the path.
14152       # Remove the space.
14153       if test x-L = "$p" ||
14154          test x-R = "$p"; then
14155	 prev=$p
14156	 continue
14157       fi
14158
14159       # Expand the sysroot to ease extracting the directories later.
14160       if test -z "$prev"; then
14161         case $p in
14162         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14163         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14164         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14165         esac
14166       fi
14167       case $p in
14168       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14169       esac
14170       if test no = "$pre_test_object_deps_done"; then
14171	 case $prev in
14172	 -L | -R)
14173	   # Internal compiler library paths should come after those
14174	   # provided the user.  The postdeps already come after the
14175	   # user supplied libs so there is no need to process them.
14176	   if test -z "$compiler_lib_search_path_CXX"; then
14177	     compiler_lib_search_path_CXX=$prev$p
14178	   else
14179	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14180	   fi
14181	   ;;
14182	 # The "-l" case would never come before the object being
14183	 # linked, so don't bother handling this case.
14184	 esac
14185       else
14186	 if test -z "$postdeps_CXX"; then
14187	   postdeps_CXX=$prev$p
14188	 else
14189	   postdeps_CXX="${postdeps_CXX} $prev$p"
14190	 fi
14191       fi
14192       prev=
14193       ;;
14194
14195    *.lto.$objext) ;; # Ignore GCC LTO objects
14196    *.$objext)
14197       # This assumes that the test object file only shows up
14198       # once in the compiler output.
14199       if test "$p" = "conftest.$objext"; then
14200	 pre_test_object_deps_done=yes
14201	 continue
14202       fi
14203
14204       if test no = "$pre_test_object_deps_done"; then
14205	 if test -z "$predep_objects_CXX"; then
14206	   predep_objects_CXX=$p
14207	 else
14208	   predep_objects_CXX="$predep_objects_CXX $p"
14209	 fi
14210       else
14211	 if test -z "$postdep_objects_CXX"; then
14212	   postdep_objects_CXX=$p
14213	 else
14214	   postdep_objects_CXX="$postdep_objects_CXX $p"
14215	 fi
14216       fi
14217       ;;
14218
14219    *) ;; # Ignore the rest.
14220
14221    esac
14222  done
14223
14224  # Clean up.
14225  rm -f a.out a.exe
14226else
14227  echo "libtool.m4: error: problem compiling CXX test program"
14228fi
14229
14230$RM -f confest.$objext
14231CFLAGS=$_lt_libdeps_save_CFLAGS
14232
14233# PORTME: override above test on systems where it is broken
14234case $host_os in
14235interix[3-9]*)
14236  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14237  # hack all around it, let's just trust "g++" to DTRT.
14238  predep_objects_CXX=
14239  postdep_objects_CXX=
14240  postdeps_CXX=
14241  ;;
14242esac
14243
14244
14245case " $postdeps_CXX " in
14246*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14247esac
14248 compiler_lib_search_dirs_CXX=
14249if test -n "${compiler_lib_search_path_CXX}"; then
14250 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14251fi
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283    lt_prog_compiler_wl_CXX=
14284lt_prog_compiler_pic_CXX=
14285lt_prog_compiler_static_CXX=
14286
14287
14288  # C++ specific cases for pic, static, wl, etc.
14289  if test yes = "$GXX"; then
14290    lt_prog_compiler_wl_CXX='-Wl,'
14291    lt_prog_compiler_static_CXX='-static'
14292
14293    case $host_os in
14294    aix*)
14295      # All AIX code is PIC.
14296      if test ia64 = "$host_cpu"; then
14297	# AIX 5 now supports IA64 processor
14298	lt_prog_compiler_static_CXX='-Bstatic'
14299      fi
14300      lt_prog_compiler_pic_CXX='-fPIC'
14301      ;;
14302
14303    amigaos*)
14304      case $host_cpu in
14305      powerpc)
14306            # see comment about AmigaOS4 .so support
14307            lt_prog_compiler_pic_CXX='-fPIC'
14308        ;;
14309      m68k)
14310            # FIXME: we need at least 68020 code to build shared libraries, but
14311            # adding the '-m68020' flag to GCC prevents building anything better,
14312            # like '-m68040'.
14313            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14314        ;;
14315      esac
14316      ;;
14317
14318    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14319      # PIC is the default for these OSes.
14320      ;;
14321    mingw* | cygwin* | os2* | pw32* | cegcc*)
14322      # This hack is so that the source file can tell whether it is being
14323      # built for inclusion in a dll (and should export symbols for example).
14324      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14325      # (--disable-auto-import) libraries
14326      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14327      case $host_os in
14328      os2*)
14329	lt_prog_compiler_static_CXX='$wl-static'
14330	;;
14331      esac
14332      ;;
14333    darwin* | rhapsody*)
14334      # PIC is the default on this platform
14335      # Common symbols not allowed in MH_DYLIB files
14336      lt_prog_compiler_pic_CXX='-fno-common'
14337      ;;
14338    *djgpp*)
14339      # DJGPP does not support shared libraries at all
14340      lt_prog_compiler_pic_CXX=
14341      ;;
14342    haiku*)
14343      # PIC is the default for Haiku.
14344      # The "-static" flag exists, but is broken.
14345      lt_prog_compiler_static_CXX=
14346      ;;
14347    interix[3-9]*)
14348      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14349      # Instead, we relocate shared libraries at runtime.
14350      ;;
14351    sysv4*MP*)
14352      if test -d /usr/nec; then
14353	lt_prog_compiler_pic_CXX=-Kconform_pic
14354      fi
14355      ;;
14356    hpux*)
14357      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14358      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14359      # sets the default TLS model and affects inlining.
14360      case $host_cpu in
14361      hppa*64*)
14362	;;
14363      *)
14364	lt_prog_compiler_pic_CXX='-fPIC'
14365	;;
14366      esac
14367      ;;
14368    *qnx* | *nto*)
14369      # QNX uses GNU C++, but need to define -shared option too, otherwise
14370      # it will coredump.
14371      lt_prog_compiler_pic_CXX='-fPIC -shared'
14372      ;;
14373    *)
14374      lt_prog_compiler_pic_CXX='-fPIC'
14375      ;;
14376    esac
14377  else
14378    case $host_os in
14379      aix[4-9]*)
14380	# All AIX code is PIC.
14381	if test ia64 = "$host_cpu"; then
14382	  # AIX 5 now supports IA64 processor
14383	  lt_prog_compiler_static_CXX='-Bstatic'
14384	else
14385	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14386	fi
14387	;;
14388      chorus*)
14389	case $cc_basename in
14390	cxch68*)
14391	  # Green Hills C++ Compiler
14392	  # _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"
14393	  ;;
14394	esac
14395	;;
14396      mingw* | cygwin* | os2* | pw32* | cegcc*)
14397	# This hack is so that the source file can tell whether it is being
14398	# built for inclusion in a dll (and should export symbols for example).
14399	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14400	;;
14401      dgux*)
14402	case $cc_basename in
14403	  ec++*)
14404	    lt_prog_compiler_pic_CXX='-KPIC'
14405	    ;;
14406	  ghcx*)
14407	    # Green Hills C++ Compiler
14408	    lt_prog_compiler_pic_CXX='-pic'
14409	    ;;
14410	  *)
14411	    ;;
14412	esac
14413	;;
14414      freebsd* | dragonfly*)
14415	# FreeBSD uses GNU C++
14416	;;
14417      hpux9* | hpux10* | hpux11*)
14418	case $cc_basename in
14419	  CC*)
14420	    lt_prog_compiler_wl_CXX='-Wl,'
14421	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14422	    if test ia64 != "$host_cpu"; then
14423	      lt_prog_compiler_pic_CXX='+Z'
14424	    fi
14425	    ;;
14426	  aCC*)
14427	    lt_prog_compiler_wl_CXX='-Wl,'
14428	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14429	    case $host_cpu in
14430	    hppa*64*|ia64*)
14431	      # +Z the default
14432	      ;;
14433	    *)
14434	      lt_prog_compiler_pic_CXX='+Z'
14435	      ;;
14436	    esac
14437	    ;;
14438	  *)
14439	    ;;
14440	esac
14441	;;
14442      interix*)
14443	# This is c89, which is MS Visual C++ (no shared libs)
14444	# Anyone wants to do a port?
14445	;;
14446      irix5* | irix6* | nonstopux*)
14447	case $cc_basename in
14448	  CC*)
14449	    lt_prog_compiler_wl_CXX='-Wl,'
14450	    lt_prog_compiler_static_CXX='-non_shared'
14451	    # CC pic flag -KPIC is the default.
14452	    ;;
14453	  *)
14454	    ;;
14455	esac
14456	;;
14457      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14458	case $cc_basename in
14459	  KCC*)
14460	    # KAI C++ Compiler
14461	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14462	    lt_prog_compiler_pic_CXX='-fPIC'
14463	    ;;
14464	  ecpc* )
14465	    # old Intel C++ for x86_64, which still supported -KPIC.
14466	    lt_prog_compiler_wl_CXX='-Wl,'
14467	    lt_prog_compiler_pic_CXX='-KPIC'
14468	    lt_prog_compiler_static_CXX='-static'
14469	    ;;
14470	  icpc* )
14471	    # Intel C++, used to be incompatible with GCC.
14472	    # ICC 10 doesn't accept -KPIC any more.
14473	    lt_prog_compiler_wl_CXX='-Wl,'
14474	    lt_prog_compiler_pic_CXX='-fPIC'
14475	    lt_prog_compiler_static_CXX='-static'
14476	    ;;
14477	  pgCC* | pgcpp*)
14478	    # Portland Group C++ compiler
14479	    lt_prog_compiler_wl_CXX='-Wl,'
14480	    lt_prog_compiler_pic_CXX='-fpic'
14481	    lt_prog_compiler_static_CXX='-Bstatic'
14482	    ;;
14483	  cxx*)
14484	    # Compaq C++
14485	    # Make sure the PIC flag is empty.  It appears that all Alpha
14486	    # Linux and Compaq Tru64 Unix objects are PIC.
14487	    lt_prog_compiler_pic_CXX=
14488	    lt_prog_compiler_static_CXX='-non_shared'
14489	    ;;
14490	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14491	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14492	    lt_prog_compiler_wl_CXX='-Wl,'
14493	    lt_prog_compiler_pic_CXX='-qpic'
14494	    lt_prog_compiler_static_CXX='-qstaticlink'
14495	    ;;
14496	  *)
14497	    case `$CC -V 2>&1 | sed 5q` in
14498	    *Sun\ C*)
14499	      # Sun C++ 5.9
14500	      lt_prog_compiler_pic_CXX='-KPIC'
14501	      lt_prog_compiler_static_CXX='-Bstatic'
14502	      lt_prog_compiler_wl_CXX='-Qoption ld '
14503	      ;;
14504	    esac
14505	    ;;
14506	esac
14507	;;
14508      lynxos*)
14509	;;
14510      m88k*)
14511	;;
14512      mvs*)
14513	case $cc_basename in
14514	  cxx*)
14515	    lt_prog_compiler_pic_CXX='-W c,exportall'
14516	    ;;
14517	  *)
14518	    ;;
14519	esac
14520	;;
14521      netbsd*)
14522	;;
14523      *qnx* | *nto*)
14524        # QNX uses GNU C++, but need to define -shared option too, otherwise
14525        # it will coredump.
14526        lt_prog_compiler_pic_CXX='-fPIC -shared'
14527        ;;
14528      osf3* | osf4* | osf5*)
14529	case $cc_basename in
14530	  KCC*)
14531	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14532	    ;;
14533	  RCC*)
14534	    # Rational C++ 2.4.1
14535	    lt_prog_compiler_pic_CXX='-pic'
14536	    ;;
14537	  cxx*)
14538	    # Digital/Compaq C++
14539	    lt_prog_compiler_wl_CXX='-Wl,'
14540	    # Make sure the PIC flag is empty.  It appears that all Alpha
14541	    # Linux and Compaq Tru64 Unix objects are PIC.
14542	    lt_prog_compiler_pic_CXX=
14543	    lt_prog_compiler_static_CXX='-non_shared'
14544	    ;;
14545	  *)
14546	    ;;
14547	esac
14548	;;
14549      psos*)
14550	;;
14551      solaris*)
14552	case $cc_basename in
14553	  CC* | sunCC*)
14554	    # Sun C++ 4.2, 5.x and Centerline C++
14555	    lt_prog_compiler_pic_CXX='-KPIC'
14556	    lt_prog_compiler_static_CXX='-Bstatic'
14557	    lt_prog_compiler_wl_CXX='-Qoption ld '
14558	    ;;
14559	  gcx*)
14560	    # Green Hills C++ Compiler
14561	    lt_prog_compiler_pic_CXX='-PIC'
14562	    ;;
14563	  *)
14564	    ;;
14565	esac
14566	;;
14567      sunos4*)
14568	case $cc_basename in
14569	  CC*)
14570	    # Sun C++ 4.x
14571	    lt_prog_compiler_pic_CXX='-pic'
14572	    lt_prog_compiler_static_CXX='-Bstatic'
14573	    ;;
14574	  lcc*)
14575	    # Lucid
14576	    lt_prog_compiler_pic_CXX='-pic'
14577	    ;;
14578	  *)
14579	    ;;
14580	esac
14581	;;
14582      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14583	case $cc_basename in
14584	  CC*)
14585	    lt_prog_compiler_wl_CXX='-Wl,'
14586	    lt_prog_compiler_pic_CXX='-KPIC'
14587	    lt_prog_compiler_static_CXX='-Bstatic'
14588	    ;;
14589	esac
14590	;;
14591      tandem*)
14592	case $cc_basename in
14593	  NCC*)
14594	    # NonStop-UX NCC 3.20
14595	    lt_prog_compiler_pic_CXX='-KPIC'
14596	    ;;
14597	  *)
14598	    ;;
14599	esac
14600	;;
14601      vxworks*)
14602	;;
14603      *)
14604	lt_prog_compiler_can_build_shared_CXX=no
14605	;;
14606    esac
14607  fi
14608
14609case $host_os in
14610  # For platforms that do not support PIC, -DPIC is meaningless:
14611  *djgpp*)
14612    lt_prog_compiler_pic_CXX=
14613    ;;
14614  *)
14615    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14616    ;;
14617esac
14618
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14620$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14621if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14622  $as_echo_n "(cached) " >&6
14623else
14624  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14625fi
14626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14627$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14628lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14629
14630#
14631# Check to make sure the PIC flag actually works.
14632#
14633if test -n "$lt_prog_compiler_pic_CXX"; then
14634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14635$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14636if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14637  $as_echo_n "(cached) " >&6
14638else
14639  lt_cv_prog_compiler_pic_works_CXX=no
14640   ac_outfile=conftest.$ac_objext
14641   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14642   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14643   # Insert the option either (1) after the last *FLAGS variable, or
14644   # (2) before a word containing "conftest.", or (3) at the end.
14645   # Note that $ac_compile itself does not contain backslashes and begins
14646   # with a dollar sign (not a hyphen), so the echo should work correctly.
14647   # The option is referenced via a variable to avoid confusing sed.
14648   lt_compile=`echo "$ac_compile" | $SED \
14649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14651   -e 's:$: $lt_compiler_flag:'`
14652   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14653   (eval "$lt_compile" 2>conftest.err)
14654   ac_status=$?
14655   cat conftest.err >&5
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   if (exit $ac_status) && test -s "$ac_outfile"; then
14658     # The compiler can only warn and ignore the option if not recognized
14659     # So say no if there are warnings other than the usual output.
14660     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14661     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14662     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14663       lt_cv_prog_compiler_pic_works_CXX=yes
14664     fi
14665   fi
14666   $RM conftest*
14667
14668fi
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14670$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14671
14672if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14673    case $lt_prog_compiler_pic_CXX in
14674     "" | " "*) ;;
14675     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14676     esac
14677else
14678    lt_prog_compiler_pic_CXX=
14679     lt_prog_compiler_can_build_shared_CXX=no
14680fi
14681
14682fi
14683
14684
14685
14686
14687
14688#
14689# Check to make sure the static flag actually works.
14690#
14691wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14693$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14694if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14695  $as_echo_n "(cached) " >&6
14696else
14697  lt_cv_prog_compiler_static_works_CXX=no
14698   save_LDFLAGS=$LDFLAGS
14699   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14700   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14701   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14702     # The linker can only warn and ignore the option if not recognized
14703     # So say no if there are warnings
14704     if test -s conftest.err; then
14705       # Append any errors to the config.log.
14706       cat conftest.err 1>&5
14707       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14708       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14709       if diff conftest.exp conftest.er2 >/dev/null; then
14710         lt_cv_prog_compiler_static_works_CXX=yes
14711       fi
14712     else
14713       lt_cv_prog_compiler_static_works_CXX=yes
14714     fi
14715   fi
14716   $RM -r conftest*
14717   LDFLAGS=$save_LDFLAGS
14718
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14721$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14722
14723if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14724    :
14725else
14726    lt_prog_compiler_static_CXX=
14727fi
14728
14729
14730
14731
14732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14733$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14734if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14735  $as_echo_n "(cached) " >&6
14736else
14737  lt_cv_prog_compiler_c_o_CXX=no
14738   $RM -r conftest 2>/dev/null
14739   mkdir conftest
14740   cd conftest
14741   mkdir out
14742   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14743
14744   lt_compiler_flag="-o out/conftest2.$ac_objext"
14745   # Insert the option either (1) after the last *FLAGS variable, or
14746   # (2) before a word containing "conftest.", or (3) at the end.
14747   # Note that $ac_compile itself does not contain backslashes and begins
14748   # with a dollar sign (not a hyphen), so the echo should work correctly.
14749   lt_compile=`echo "$ac_compile" | $SED \
14750   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14752   -e 's:$: $lt_compiler_flag:'`
14753   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14754   (eval "$lt_compile" 2>out/conftest.err)
14755   ac_status=$?
14756   cat out/conftest.err >&5
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14759   then
14760     # The compiler can only warn and ignore the option if not recognized
14761     # So say no if there are warnings
14762     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14763     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14764     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14765       lt_cv_prog_compiler_c_o_CXX=yes
14766     fi
14767   fi
14768   chmod u+w . 2>&5
14769   $RM conftest*
14770   # SGI C++ compiler will create directory out/ii_files/ for
14771   # template instantiation
14772   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14773   $RM out/* && rmdir out
14774   cd ..
14775   $RM -r conftest
14776   $RM conftest*
14777
14778fi
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14780$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14781
14782
14783
14784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14785$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14786if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14787  $as_echo_n "(cached) " >&6
14788else
14789  lt_cv_prog_compiler_c_o_CXX=no
14790   $RM -r conftest 2>/dev/null
14791   mkdir conftest
14792   cd conftest
14793   mkdir out
14794   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14795
14796   lt_compiler_flag="-o out/conftest2.$ac_objext"
14797   # Insert the option either (1) after the last *FLAGS variable, or
14798   # (2) before a word containing "conftest.", or (3) at the end.
14799   # Note that $ac_compile itself does not contain backslashes and begins
14800   # with a dollar sign (not a hyphen), so the echo should work correctly.
14801   lt_compile=`echo "$ac_compile" | $SED \
14802   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14803   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14804   -e 's:$: $lt_compiler_flag:'`
14805   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14806   (eval "$lt_compile" 2>out/conftest.err)
14807   ac_status=$?
14808   cat out/conftest.err >&5
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14811   then
14812     # The compiler can only warn and ignore the option if not recognized
14813     # So say no if there are warnings
14814     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14815     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14816     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14817       lt_cv_prog_compiler_c_o_CXX=yes
14818     fi
14819   fi
14820   chmod u+w . 2>&5
14821   $RM conftest*
14822   # SGI C++ compiler will create directory out/ii_files/ for
14823   # template instantiation
14824   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14825   $RM out/* && rmdir out
14826   cd ..
14827   $RM -r conftest
14828   $RM conftest*
14829
14830fi
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14832$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14833
14834
14835
14836
14837hard_links=nottested
14838if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14839  # do not overwrite the value of need_locks provided by the user
14840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14841$as_echo_n "checking if we can lock with hard links... " >&6; }
14842  hard_links=yes
14843  $RM conftest*
14844  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14845  touch conftest.a
14846  ln conftest.a conftest.b 2>&5 || hard_links=no
14847  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14849$as_echo "$hard_links" >&6; }
14850  if test no = "$hard_links"; then
14851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14852$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14853    need_locks=warn
14854  fi
14855else
14856  need_locks=no
14857fi
14858
14859
14860
14861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14862$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14863
14864  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14865  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14866  case $host_os in
14867  aix[4-9]*)
14868    # If we're using GNU nm, then we don't want the "-C" option.
14869    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14870    # Without the "-l" option, or with the "-B" option, AIX nm treats
14871    # weak defined symbols like other global defined symbols, whereas
14872    # GNU nm marks them as "W".
14873    # While the 'weak' keyword is ignored in the Export File, we need
14874    # it in the Import File for the 'aix-soname' feature, so we have
14875    # to replace the "-B" option with "-P" for AIX nm.
14876    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14877      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'
14878    else
14879      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'
14880    fi
14881    ;;
14882  pw32*)
14883    export_symbols_cmds_CXX=$ltdll_cmds
14884    ;;
14885  cygwin* | mingw* | cegcc*)
14886    case $cc_basename in
14887    cl*)
14888      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14889      ;;
14890    *)
14891      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'
14892      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14893      ;;
14894    esac
14895    ;;
14896  *)
14897    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14898    ;;
14899  esac
14900
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14902$as_echo "$ld_shlibs_CXX" >&6; }
14903test no = "$ld_shlibs_CXX" && can_build_shared=no
14904
14905with_gnu_ld_CXX=$with_gnu_ld
14906
14907
14908
14909
14910
14911
14912#
14913# Do we need to explicitly link libc?
14914#
14915case "x$archive_cmds_need_lc_CXX" in
14916x|xyes)
14917  # Assume -lc should be added
14918  archive_cmds_need_lc_CXX=yes
14919
14920  if test yes,yes = "$GCC,$enable_shared"; then
14921    case $archive_cmds_CXX in
14922    *'~'*)
14923      # FIXME: we may have to deal with multi-command sequences.
14924      ;;
14925    '$CC '*)
14926      # Test whether the compiler implicitly links with -lc since on some
14927      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14928      # to ld, don't add -lc before -lgcc.
14929      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14930$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14931if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  $RM conftest*
14935	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14936
14937	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14938  (eval $ac_compile) 2>&5
14939  ac_status=$?
14940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14941  test $ac_status = 0; } 2>conftest.err; then
14942	  soname=conftest
14943	  lib=conftest
14944	  libobjs=conftest.$ac_objext
14945	  deplibs=
14946	  wl=$lt_prog_compiler_wl_CXX
14947	  pic_flag=$lt_prog_compiler_pic_CXX
14948	  compiler_flags=-v
14949	  linker_flags=-v
14950	  verstring=
14951	  output_objdir=.
14952	  libname=conftest
14953	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14954	  allow_undefined_flag_CXX=
14955	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14956  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14957  ac_status=$?
14958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14959  test $ac_status = 0; }
14960	  then
14961	    lt_cv_archive_cmds_need_lc_CXX=no
14962	  else
14963	    lt_cv_archive_cmds_need_lc_CXX=yes
14964	  fi
14965	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14966	else
14967	  cat conftest.err 1>&5
14968	fi
14969	$RM conftest*
14970
14971fi
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14973$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14974      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14975      ;;
14976    esac
14977  fi
14978  ;;
14979esac
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15043$as_echo_n "checking dynamic linker characteristics... " >&6; }
15044
15045library_names_spec=
15046libname_spec='lib$name'
15047soname_spec=
15048shrext_cmds=.so
15049postinstall_cmds=
15050postuninstall_cmds=
15051finish_cmds=
15052finish_eval=
15053shlibpath_var=
15054shlibpath_overrides_runpath=unknown
15055version_type=none
15056dynamic_linker="$host_os ld.so"
15057sys_lib_dlsearch_path_spec="/lib /usr/lib"
15058need_lib_prefix=unknown
15059hardcode_into_libs=no
15060
15061# when you set need_version to no, make sure it does not cause -set_version
15062# flags to be left without arguments
15063need_version=unknown
15064
15065
15066
15067case $host_os in
15068aix3*)
15069  version_type=linux # correct to gnu/linux during the next big refactor
15070  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15071  shlibpath_var=LIBPATH
15072
15073  # AIX 3 has no versioning support, so we append a major version to the name.
15074  soname_spec='$libname$release$shared_ext$major'
15075  ;;
15076
15077aix[4-9]*)
15078  version_type=linux # correct to gnu/linux during the next big refactor
15079  need_lib_prefix=no
15080  need_version=no
15081  hardcode_into_libs=yes
15082  if test ia64 = "$host_cpu"; then
15083    # AIX 5 supports IA64
15084    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15085    shlibpath_var=LD_LIBRARY_PATH
15086  else
15087    # With GCC up to 2.95.x, collect2 would create an import file
15088    # for dependence libraries.  The import file would start with
15089    # the line '#! .'.  This would cause the generated library to
15090    # depend on '.', always an invalid library.  This was fixed in
15091    # development snapshots of GCC prior to 3.0.
15092    case $host_os in
15093      aix4 | aix4.[01] | aix4.[01].*)
15094      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15095	   echo ' yes '
15096	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15097	:
15098      else
15099	can_build_shared=no
15100      fi
15101      ;;
15102    esac
15103    # Using Import Files as archive members, it is possible to support
15104    # filename-based versioning of shared library archives on AIX. While
15105    # this would work for both with and without runtime linking, it will
15106    # prevent static linking of such archives. So we do filename-based
15107    # shared library versioning with .so extension only, which is used
15108    # when both runtime linking and shared linking is enabled.
15109    # Unfortunately, runtime linking may impact performance, so we do
15110    # not want this to be the default eventually. Also, we use the
15111    # versioned .so libs for executables only if there is the -brtl
15112    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15113    # To allow for filename-based versioning support, we need to create
15114    # libNAME.so.V as an archive file, containing:
15115    # *) an Import File, referring to the versioned filename of the
15116    #    archive as well as the shared archive member, telling the
15117    #    bitwidth (32 or 64) of that shared object, and providing the
15118    #    list of exported symbols of that shared object, eventually
15119    #    decorated with the 'weak' keyword
15120    # *) the shared object with the F_LOADONLY flag set, to really avoid
15121    #    it being seen by the linker.
15122    # At run time we better use the real file rather than another symlink,
15123    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15124
15125    case $with_aix_soname,$aix_use_runtimelinking in
15126    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15127    # soname into executable. Probably we can add versioning support to
15128    # collect2, so additional links can be useful in future.
15129    aix,yes) # traditional libtool
15130      dynamic_linker='AIX unversionable lib.so'
15131      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15132      # instead of lib<name>.a to let people know that these are not
15133      # typical AIX shared libraries.
15134      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15135      ;;
15136    aix,no) # traditional AIX only
15137      dynamic_linker='AIX lib.a(lib.so.V)'
15138      # We preserve .a as extension for shared libraries through AIX4.2
15139      # and later when we are not doing run time linking.
15140      library_names_spec='$libname$release.a $libname.a'
15141      soname_spec='$libname$release$shared_ext$major'
15142      ;;
15143    svr4,*) # full svr4 only
15144      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15145      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15146      # We do not specify a path in Import Files, so LIBPATH fires.
15147      shlibpath_overrides_runpath=yes
15148      ;;
15149    *,yes) # both, prefer svr4
15150      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15151      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15152      # unpreferred sharedlib libNAME.a needs extra handling
15153      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"'
15154      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"'
15155      # We do not specify a path in Import Files, so LIBPATH fires.
15156      shlibpath_overrides_runpath=yes
15157      ;;
15158    *,no) # both, prefer aix
15159      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15160      library_names_spec='$libname$release.a $libname.a'
15161      soname_spec='$libname$release$shared_ext$major'
15162      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15163      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)'
15164      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"'
15165      ;;
15166    esac
15167    shlibpath_var=LIBPATH
15168  fi
15169  ;;
15170
15171amigaos*)
15172  case $host_cpu in
15173  powerpc)
15174    # Since July 2007 AmigaOS4 officially supports .so libraries.
15175    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15176    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15177    ;;
15178  m68k)
15179    library_names_spec='$libname.ixlibrary $libname.a'
15180    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15181    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'
15182    ;;
15183  esac
15184  ;;
15185
15186beos*)
15187  library_names_spec='$libname$shared_ext'
15188  dynamic_linker="$host_os ld.so"
15189  shlibpath_var=LIBRARY_PATH
15190  ;;
15191
15192bsdi[45]*)
15193  version_type=linux # correct to gnu/linux during the next big refactor
15194  need_version=no
15195  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15196  soname_spec='$libname$release$shared_ext$major'
15197  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15198  shlibpath_var=LD_LIBRARY_PATH
15199  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15200  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15201  # the default ld.so.conf also contains /usr/contrib/lib and
15202  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15203  # libtool to hard-code these into programs
15204  ;;
15205
15206cygwin* | mingw* | pw32* | cegcc*)
15207  version_type=windows
15208  shrext_cmds=.dll
15209  need_version=no
15210  need_lib_prefix=no
15211
15212  case $GCC,$cc_basename in
15213  yes,*)
15214    # gcc
15215    library_names_spec='$libname.dll.a'
15216    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15217    postinstall_cmds='base_file=`basename \$file`~
15218      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15219      dldir=$destdir/`dirname \$dlpath`~
15220      test -d \$dldir || mkdir -p \$dldir~
15221      $install_prog $dir/$dlname \$dldir/$dlname~
15222      chmod a+x \$dldir/$dlname~
15223      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15224        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15225      fi'
15226    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15227      dlpath=$dir/\$dldll~
15228       $RM \$dlpath'
15229    shlibpath_overrides_runpath=yes
15230
15231    case $host_os in
15232    cygwin*)
15233      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15234      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15235
15236      ;;
15237    mingw* | cegcc*)
15238      # MinGW DLLs use traditional 'lib' prefix
15239      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15240      ;;
15241    pw32*)
15242      # pw32 DLLs use 'pw' prefix rather than 'lib'
15243      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15244      ;;
15245    esac
15246    dynamic_linker='Win32 ld.exe'
15247    ;;
15248
15249  *,cl*)
15250    # Native MSVC
15251    libname_spec='$name'
15252    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15253    library_names_spec='$libname.dll.lib'
15254
15255    case $build_os in
15256    mingw*)
15257      sys_lib_search_path_spec=
15258      lt_save_ifs=$IFS
15259      IFS=';'
15260      for lt_path in $LIB
15261      do
15262        IFS=$lt_save_ifs
15263        # Let DOS variable expansion print the short 8.3 style file name.
15264        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15265        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15266      done
15267      IFS=$lt_save_ifs
15268      # Convert to MSYS style.
15269      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15270      ;;
15271    cygwin*)
15272      # Convert to unix form, then to dos form, then back to unix form
15273      # but this time dos style (no spaces!) so that the unix form looks
15274      # like /cygdrive/c/PROGRA~1:/cygdr...
15275      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15276      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15277      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15278      ;;
15279    *)
15280      sys_lib_search_path_spec=$LIB
15281      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15282        # It is most probably a Windows format PATH.
15283        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15284      else
15285        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15286      fi
15287      # FIXME: find the short name or the path components, as spaces are
15288      # common. (e.g. "Program Files" -> "PROGRA~1")
15289      ;;
15290    esac
15291
15292    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15293    postinstall_cmds='base_file=`basename \$file`~
15294      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15295      dldir=$destdir/`dirname \$dlpath`~
15296      test -d \$dldir || mkdir -p \$dldir~
15297      $install_prog $dir/$dlname \$dldir/$dlname'
15298    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15299      dlpath=$dir/\$dldll~
15300       $RM \$dlpath'
15301    shlibpath_overrides_runpath=yes
15302    dynamic_linker='Win32 link.exe'
15303    ;;
15304
15305  *)
15306    # Assume MSVC wrapper
15307    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15308    dynamic_linker='Win32 ld.exe'
15309    ;;
15310  esac
15311  # FIXME: first we should search . and the directory the executable is in
15312  shlibpath_var=PATH
15313  ;;
15314
15315darwin* | rhapsody*)
15316  dynamic_linker="$host_os dyld"
15317  version_type=darwin
15318  need_lib_prefix=no
15319  need_version=no
15320  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15321  soname_spec='$libname$release$major$shared_ext'
15322  shlibpath_overrides_runpath=yes
15323  shlibpath_var=DYLD_LIBRARY_PATH
15324  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15325
15326  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15327  ;;
15328
15329dgux*)
15330  version_type=linux # correct to gnu/linux during the next big refactor
15331  need_lib_prefix=no
15332  need_version=no
15333  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15334  soname_spec='$libname$release$shared_ext$major'
15335  shlibpath_var=LD_LIBRARY_PATH
15336  ;;
15337
15338freebsd* | dragonfly*)
15339  # DragonFly does not have aout.  When/if they implement a new
15340  # versioning mechanism, adjust this.
15341  if test -x /usr/bin/objformat; then
15342    objformat=`/usr/bin/objformat`
15343  else
15344    case $host_os in
15345    freebsd[23].*) objformat=aout ;;
15346    *) objformat=elf ;;
15347    esac
15348  fi
15349  version_type=freebsd-$objformat
15350  case $version_type in
15351    freebsd-elf*)
15352      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15353      soname_spec='$libname$release$shared_ext$major'
15354      need_version=no
15355      need_lib_prefix=no
15356      ;;
15357    freebsd-*)
15358      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15359      need_version=yes
15360      ;;
15361  esac
15362  shlibpath_var=LD_LIBRARY_PATH
15363  case $host_os in
15364  freebsd2.*)
15365    shlibpath_overrides_runpath=yes
15366    ;;
15367  freebsd3.[01]* | freebsdelf3.[01]*)
15368    shlibpath_overrides_runpath=yes
15369    hardcode_into_libs=yes
15370    ;;
15371  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15372  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15373    shlibpath_overrides_runpath=no
15374    hardcode_into_libs=yes
15375    ;;
15376  *) # from 4.6 on, and DragonFly
15377    shlibpath_overrides_runpath=yes
15378    hardcode_into_libs=yes
15379    ;;
15380  esac
15381  ;;
15382
15383haiku*)
15384  version_type=linux # correct to gnu/linux during the next big refactor
15385  need_lib_prefix=no
15386  need_version=no
15387  dynamic_linker="$host_os runtime_loader"
15388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15389  soname_spec='$libname$release$shared_ext$major'
15390  shlibpath_var=LIBRARY_PATH
15391  shlibpath_overrides_runpath=no
15392  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15393  hardcode_into_libs=yes
15394  ;;
15395
15396hpux9* | hpux10* | hpux11*)
15397  # Give a soname corresponding to the major version so that dld.sl refuses to
15398  # link against other versions.
15399  version_type=sunos
15400  need_lib_prefix=no
15401  need_version=no
15402  case $host_cpu in
15403  ia64*)
15404    shrext_cmds='.so'
15405    hardcode_into_libs=yes
15406    dynamic_linker="$host_os dld.so"
15407    shlibpath_var=LD_LIBRARY_PATH
15408    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15409    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15410    soname_spec='$libname$release$shared_ext$major'
15411    if test 32 = "$HPUX_IA64_MODE"; then
15412      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15413      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15414    else
15415      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15416      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15417    fi
15418    ;;
15419  hppa*64*)
15420    shrext_cmds='.sl'
15421    hardcode_into_libs=yes
15422    dynamic_linker="$host_os dld.sl"
15423    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15424    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15425    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15426    soname_spec='$libname$release$shared_ext$major'
15427    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15428    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15429    ;;
15430  *)
15431    shrext_cmds='.sl'
15432    dynamic_linker="$host_os dld.sl"
15433    shlibpath_var=SHLIB_PATH
15434    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15435    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15436    soname_spec='$libname$release$shared_ext$major'
15437    ;;
15438  esac
15439  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15440  postinstall_cmds='chmod 555 $lib'
15441  # or fails outright, so override atomically:
15442  install_override_mode=555
15443  ;;
15444
15445interix[3-9]*)
15446  version_type=linux # correct to gnu/linux during the next big refactor
15447  need_lib_prefix=no
15448  need_version=no
15449  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15450  soname_spec='$libname$release$shared_ext$major'
15451  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15452  shlibpath_var=LD_LIBRARY_PATH
15453  shlibpath_overrides_runpath=no
15454  hardcode_into_libs=yes
15455  ;;
15456
15457irix5* | irix6* | nonstopux*)
15458  case $host_os in
15459    nonstopux*) version_type=nonstopux ;;
15460    *)
15461	if test yes = "$lt_cv_prog_gnu_ld"; then
15462		version_type=linux # correct to gnu/linux during the next big refactor
15463	else
15464		version_type=irix
15465	fi ;;
15466  esac
15467  need_lib_prefix=no
15468  need_version=no
15469  soname_spec='$libname$release$shared_ext$major'
15470  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15471  case $host_os in
15472  irix5* | nonstopux*)
15473    libsuff= shlibsuff=
15474    ;;
15475  *)
15476    case $LD in # libtool.m4 will add one of these switches to LD
15477    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15478      libsuff= shlibsuff= libmagic=32-bit;;
15479    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15480      libsuff=32 shlibsuff=N32 libmagic=N32;;
15481    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15482      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15483    *) libsuff= shlibsuff= libmagic=never-match;;
15484    esac
15485    ;;
15486  esac
15487  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15488  shlibpath_overrides_runpath=no
15489  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15490  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15491  hardcode_into_libs=yes
15492  ;;
15493
15494# No shared lib support for Linux oldld, aout, or coff.
15495linux*oldld* | linux*aout* | linux*coff*)
15496  dynamic_linker=no
15497  ;;
15498
15499linux*android*)
15500  version_type=none # Android doesn't support versioned libraries.
15501  need_lib_prefix=no
15502  need_version=no
15503  library_names_spec='$libname$release$shared_ext'
15504  soname_spec='$libname$release$shared_ext'
15505  finish_cmds=
15506  shlibpath_var=LD_LIBRARY_PATH
15507  shlibpath_overrides_runpath=yes
15508
15509  # This implies no fast_install, which is unacceptable.
15510  # Some rework will be needed to allow for fast_install
15511  # before this can be enabled.
15512  hardcode_into_libs=yes
15513
15514  dynamic_linker='Android linker'
15515  # Don't embed -rpath directories since the linker doesn't support them.
15516  hardcode_libdir_flag_spec_CXX='-L$libdir'
15517  ;;
15518
15519# This must be glibc/ELF.
15520linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15521  version_type=linux # correct to gnu/linux during the next big refactor
15522  need_lib_prefix=no
15523  need_version=no
15524  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15525  soname_spec='$libname$release$shared_ext$major'
15526  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15527  shlibpath_var=LD_LIBRARY_PATH
15528  shlibpath_overrides_runpath=no
15529
15530  # Some binutils ld are patched to set DT_RUNPATH
15531  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15532  $as_echo_n "(cached) " >&6
15533else
15534  lt_cv_shlibpath_overrides_runpath=no
15535    save_LDFLAGS=$LDFLAGS
15536    save_libdir=$libdir
15537    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15538	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540/* end confdefs.h.  */
15541
15542int
15543main ()
15544{
15545
15546  ;
15547  return 0;
15548}
15549_ACEOF
15550if ac_fn_cxx_try_link "$LINENO"; then :
15551  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15552  lt_cv_shlibpath_overrides_runpath=yes
15553fi
15554fi
15555rm -f core conftest.err conftest.$ac_objext \
15556    conftest$ac_exeext conftest.$ac_ext
15557    LDFLAGS=$save_LDFLAGS
15558    libdir=$save_libdir
15559
15560fi
15561
15562  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15563
15564  # This implies no fast_install, which is unacceptable.
15565  # Some rework will be needed to allow for fast_install
15566  # before this can be enabled.
15567  hardcode_into_libs=yes
15568
15569  # Ideally, we could use ldconfig to report *all* directores which are
15570  # searched for libraries, however this is still not possible.  Aside from not
15571  # being certain /sbin/ldconfig is available, command
15572  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15573  # even though it is searched at run-time.  Try to do the best guess by
15574  # appending ld.so.conf contents (and includes) to the search path.
15575  if test -f /etc/ld.so.conf; then
15576    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' ' '`
15577    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15578  fi
15579
15580  # We used to test for /lib/ld.so.1 and disable shared libraries on
15581  # powerpc, because MkLinux only supported shared libraries with the
15582  # GNU dynamic linker.  Since this was broken with cross compilers,
15583  # most powerpc-linux boxes support dynamic linking these days and
15584  # people can always --disable-shared, the test was removed, and we
15585  # assume the GNU/Linux dynamic linker is in use.
15586  dynamic_linker='GNU/Linux ld.so'
15587  ;;
15588
15589netbsd*)
15590  version_type=sunos
15591  need_lib_prefix=no
15592  need_version=no
15593  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15594    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15595    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596    dynamic_linker='NetBSD (a.out) ld.so'
15597  else
15598    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15599    soname_spec='$libname$release$shared_ext$major'
15600    dynamic_linker='NetBSD ld.elf_so'
15601  fi
15602  shlibpath_var=LD_LIBRARY_PATH
15603  shlibpath_overrides_runpath=yes
15604  hardcode_into_libs=yes
15605  ;;
15606
15607newsos6)
15608  version_type=linux # correct to gnu/linux during the next big refactor
15609  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15610  shlibpath_var=LD_LIBRARY_PATH
15611  shlibpath_overrides_runpath=yes
15612  ;;
15613
15614*nto* | *qnx*)
15615  version_type=qnx
15616  need_lib_prefix=no
15617  need_version=no
15618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15619  soname_spec='$libname$release$shared_ext$major'
15620  shlibpath_var=LD_LIBRARY_PATH
15621  shlibpath_overrides_runpath=no
15622  hardcode_into_libs=yes
15623  dynamic_linker='ldqnx.so'
15624  ;;
15625
15626openbsd* | bitrig*)
15627  version_type=sunos
15628  sys_lib_dlsearch_path_spec=/usr/lib
15629  need_lib_prefix=no
15630  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15631    need_version=no
15632  else
15633    need_version=yes
15634  fi
15635  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15636  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15637  shlibpath_var=LD_LIBRARY_PATH
15638  shlibpath_overrides_runpath=yes
15639  ;;
15640
15641os2*)
15642  libname_spec='$name'
15643  version_type=windows
15644  shrext_cmds=.dll
15645  need_version=no
15646  need_lib_prefix=no
15647  # OS/2 can only load a DLL with a base name of 8 characters or less.
15648  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15649    v=$($ECHO $release$versuffix | tr -d .-);
15650    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15651    $ECHO $n$v`$shared_ext'
15652  library_names_spec='${libname}_dll.$libext'
15653  dynamic_linker='OS/2 ld.exe'
15654  shlibpath_var=BEGINLIBPATH
15655  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15656  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15657  postinstall_cmds='base_file=`basename \$file`~
15658    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15659    dldir=$destdir/`dirname \$dlpath`~
15660    test -d \$dldir || mkdir -p \$dldir~
15661    $install_prog $dir/$dlname \$dldir/$dlname~
15662    chmod a+x \$dldir/$dlname~
15663    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15664      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15665    fi'
15666  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15667    dlpath=$dir/\$dldll~
15668    $RM \$dlpath'
15669  ;;
15670
15671osf3* | osf4* | osf5*)
15672  version_type=osf
15673  need_lib_prefix=no
15674  need_version=no
15675  soname_spec='$libname$release$shared_ext$major'
15676  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15677  shlibpath_var=LD_LIBRARY_PATH
15678  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15679  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15680  ;;
15681
15682rdos*)
15683  dynamic_linker=no
15684  ;;
15685
15686solaris*)
15687  version_type=linux # correct to gnu/linux during the next big refactor
15688  need_lib_prefix=no
15689  need_version=no
15690  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15691  soname_spec='$libname$release$shared_ext$major'
15692  shlibpath_var=LD_LIBRARY_PATH
15693  shlibpath_overrides_runpath=yes
15694  hardcode_into_libs=yes
15695  # ldd complains unless libraries are executable
15696  postinstall_cmds='chmod +x $lib'
15697  ;;
15698
15699sunos4*)
15700  version_type=sunos
15701  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15702  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15703  shlibpath_var=LD_LIBRARY_PATH
15704  shlibpath_overrides_runpath=yes
15705  if test yes = "$with_gnu_ld"; then
15706    need_lib_prefix=no
15707  fi
15708  need_version=yes
15709  ;;
15710
15711sysv4 | sysv4.3*)
15712  version_type=linux # correct to gnu/linux during the next big refactor
15713  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15714  soname_spec='$libname$release$shared_ext$major'
15715  shlibpath_var=LD_LIBRARY_PATH
15716  case $host_vendor in
15717    sni)
15718      shlibpath_overrides_runpath=no
15719      need_lib_prefix=no
15720      runpath_var=LD_RUN_PATH
15721      ;;
15722    siemens)
15723      need_lib_prefix=no
15724      ;;
15725    motorola)
15726      need_lib_prefix=no
15727      need_version=no
15728      shlibpath_overrides_runpath=no
15729      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15730      ;;
15731  esac
15732  ;;
15733
15734sysv4*MP*)
15735  if test -d /usr/nec; then
15736    version_type=linux # correct to gnu/linux during the next big refactor
15737    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15738    soname_spec='$libname$shared_ext.$major'
15739    shlibpath_var=LD_LIBRARY_PATH
15740  fi
15741  ;;
15742
15743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15744  version_type=sco
15745  need_lib_prefix=no
15746  need_version=no
15747  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15748  soname_spec='$libname$release$shared_ext$major'
15749  shlibpath_var=LD_LIBRARY_PATH
15750  shlibpath_overrides_runpath=yes
15751  hardcode_into_libs=yes
15752  if test yes = "$with_gnu_ld"; then
15753    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15754  else
15755    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15756    case $host_os in
15757      sco3.2v5*)
15758        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15759	;;
15760    esac
15761  fi
15762  sys_lib_dlsearch_path_spec='/usr/lib'
15763  ;;
15764
15765tpf*)
15766  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15767  version_type=linux # correct to gnu/linux during the next big refactor
15768  need_lib_prefix=no
15769  need_version=no
15770  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15771  shlibpath_var=LD_LIBRARY_PATH
15772  shlibpath_overrides_runpath=no
15773  hardcode_into_libs=yes
15774  ;;
15775
15776uts4*)
15777  version_type=linux # correct to gnu/linux during the next big refactor
15778  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15779  soname_spec='$libname$release$shared_ext$major'
15780  shlibpath_var=LD_LIBRARY_PATH
15781  ;;
15782
15783*)
15784  dynamic_linker=no
15785  ;;
15786esac
15787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15788$as_echo "$dynamic_linker" >&6; }
15789test no = "$dynamic_linker" && can_build_shared=no
15790
15791variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15792if test yes = "$GCC"; then
15793  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15794fi
15795
15796if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15797  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15798fi
15799
15800if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15801  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15802fi
15803
15804# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15805configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15806
15807# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15808func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15809
15810# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15811configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15853$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15854hardcode_action_CXX=
15855if test -n "$hardcode_libdir_flag_spec_CXX" ||
15856   test -n "$runpath_var_CXX" ||
15857   test yes = "$hardcode_automatic_CXX"; then
15858
15859  # We can hardcode non-existent directories.
15860  if test no != "$hardcode_direct_CXX" &&
15861     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15862     # have to relink, otherwise we might link with an installed library
15863     # when we should be linking with a yet-to-be-installed one
15864     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15865     test no != "$hardcode_minus_L_CXX"; then
15866    # Linking always hardcodes the temporary library directory.
15867    hardcode_action_CXX=relink
15868  else
15869    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15870    hardcode_action_CXX=immediate
15871  fi
15872else
15873  # We cannot hardcode anything, or else we can only hardcode existing
15874  # directories.
15875  hardcode_action_CXX=unsupported
15876fi
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15878$as_echo "$hardcode_action_CXX" >&6; }
15879
15880if test relink = "$hardcode_action_CXX" ||
15881   test yes = "$inherit_rpath_CXX"; then
15882  # Fast installation is not supported
15883  enable_fast_install=no
15884elif test yes = "$shlibpath_overrides_runpath" ||
15885     test no = "$enable_shared"; then
15886  # Fast installation is not necessary
15887  enable_fast_install=needless
15888fi
15889
15890
15891
15892
15893
15894
15895
15896  fi # test -n "$compiler"
15897
15898  CC=$lt_save_CC
15899  CFLAGS=$lt_save_CFLAGS
15900  LDCXX=$LD
15901  LD=$lt_save_LD
15902  GCC=$lt_save_GCC
15903  with_gnu_ld=$lt_save_with_gnu_ld
15904  lt_cv_path_LDCXX=$lt_cv_path_LD
15905  lt_cv_path_LD=$lt_save_path_LD
15906  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15907  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15908fi # test yes != "$_lt_caught_CXX_error"
15909
15910ac_ext=c
15911ac_cpp='$CPP $CPPFLAGS'
15912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15914ac_compiler_gnu=$ac_cv_c_compiler_gnu
15915
15916
15917
15918
15919
15920# Checked: freebsd8.0 openbsd4.6 solaris2.9 solaris2.10
15921case $host_os in
15922  linux* | k*bsd*-gnu | freebsd* | openbsd* | solaris*)
15923        link_all_deplibs_CXX=no
15924    ;;
15925esac
15926
15927case $host_os in
15928  linux*)
15929            d=`/sbin/ldconfig -N -X -v 2>&5|$SED 's,^\(/.*\):\( (.*)\)\?$,\1,p;d'|tr '\n' ' '`
15930    test -z "$d" || sys_lib_dlsearch_path_spec=$d
15931    ;;
15932esac
15933
15934case $host in
15935  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
15936                    NO_INSTALL=-no-fast-install ;;
15937  *)
15938    NO_INSTALL=-no-install ;;
15939esac
15940
15941
15942ac_ext=cpp
15943ac_cpp='$CXXCPP $CPPFLAGS'
15944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15947
15948
15949
15950
15951      xapian_config_to_check_for="xapian-config"
15952  case $XAPIAN_CONFIG in
15953  "") ;;
15954  [\\/]* | ?:[\\/]*)
15955    # XAPIAN_CONFIG has an absolute path, so AC_PATH_PROG can handle it.
15956    ;;
15957  *[\\/]?*)
15958    # Convert a relative path to an absolute one.
15959    XAPIAN_CONFIG=`pwd`/$XAPIAN_CONFIG
15960    ;;
15961  *)
15962    # If there's no path on XAPIAN_CONFIG, use it as the name of the tool to
15963    # search PATH for, so that things like this work:
15964    #   ./configure XAPIAN_CONFIG=xapian-config1.3
15965    xapian_config_to_check_for=$XAPIAN_CONFIG
15966    XAPIAN_CONFIG=
15967    ;;
15968  esac
15969  # Extract the first word of ""$xapian_config_to_check_for"", so it can be a program name with args.
15970set dummy "$xapian_config_to_check_for"; ac_word=$2
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15972$as_echo_n "checking for $ac_word... " >&6; }
15973if ${ac_cv_path_XAPIAN_CONFIG+:} false; then :
15974  $as_echo_n "(cached) " >&6
15975else
15976  case $XAPIAN_CONFIG in
15977  [\\/]* | ?:[\\/]*)
15978  ac_cv_path_XAPIAN_CONFIG="$XAPIAN_CONFIG" # Let the user override the test with a path.
15979  ;;
15980  *)
15981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982for as_dir in $PATH
15983do
15984  IFS=$as_save_IFS
15985  test -z "$as_dir" && as_dir=.
15986    for ac_exec_ext in '' $ac_executable_extensions; do
15987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15988    ac_cv_path_XAPIAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15990    break 2
15991  fi
15992done
15993  done
15994IFS=$as_save_IFS
15995
15996  ;;
15997esac
15998fi
15999XAPIAN_CONFIG=$ac_cv_path_XAPIAN_CONFIG
16000if test -n "$XAPIAN_CONFIG"; then
16001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG" >&5
16002$as_echo "$XAPIAN_CONFIG" >&6; }
16003else
16004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005$as_echo "no" >&6; }
16006fi
16007
16008
16009  if test -z "$XAPIAN_CONFIG"; then
16010
16011				for sfx in '' 32 64 ; do
16012	  set /usr/lib$sfx/libxapian.so.*
16013	  if test "/usr/lib$sfx/libxapian.so.*" != "" ; then
16014	    if test -r /etc/debian_version ; then
16015	      pkg="libxapian-dev"
16016	    else
16017	      pkg="xapian-core-devel"
16018	    fi
16019	    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
16020	  fi
16021	done
16022	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
16023  else
16024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $XAPIAN_CONFIG works" >&5
16025$as_echo_n "checking $XAPIAN_CONFIG works... " >&6; }
16026
16027        if (exec >&5 2>&5 ; $XAPIAN_CONFIG --ltlibs --cxxflags; exit $?) then
16028      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16029$as_echo "yes" >&6; }
16030    else
16031      case $? in
16032      127)
16033	as_fn_error $? "\`$XAPIAN_CONFIG' not found, aborting" "$LINENO" 5
16034	;;
16035      126)
16036	if test -d "$XAPIAN_CONFIG" ; then
16037	  as_fn_error $? "\`$XAPIAN_CONFIG' is a directory; it should be the filename of the xapian-config script" "$LINENO" 5
16038	fi
16039	as_fn_error $? "\`$XAPIAN_CONFIG' not executable, aborting" "$LINENO" 5
16040	;;
16041      esac
16042      as_fn_error $? "\`$XAPIAN_CONFIG --ltlibs --cxxflags' doesn't work, aborting" "$LINENO" 5
16043    fi
16044
16045    XAPIAN_VERSION=`$XAPIAN_CONFIG --version|sed 's/.* //;s/_.*$//'`
16046    XAPIAN_CXXFLAGS=`$XAPIAN_CONFIG --cxxflags`
16047    XAPIAN_LIBS=`$XAPIAN_CONFIG --ltlibs`
16048    :
16049  fi
16050
16051
16052
16053
16054
16055save_CXXFLAGS=$CXXFLAGS
16056CXXFLAGS="$CXXFLAGS $XAPIAN_CXXFLAGS"
16057
16058
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16060$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16061    # Check whether --enable-maintainer-mode was given.
16062if test "${enable_maintainer_mode+set}" = set; then :
16063  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16064else
16065  USE_MAINTAINER_MODE=no
16066fi
16067
16068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16069$as_echo "$USE_MAINTAINER_MODE" >&6; }
16070   if test $USE_MAINTAINER_MODE = yes; then
16071  MAINTAINER_MODE_TRUE=
16072  MAINTAINER_MODE_FALSE='#'
16073else
16074  MAINTAINER_MODE_TRUE='#'
16075  MAINTAINER_MODE_FALSE=
16076fi
16077
16078  MAINT=$MAINTAINER_MODE_TRUE
16079
16080
16081
16082case $host_os in
16083  *mingw*)
16084
16085$as_echo "#define __MSVCRT_VERSION__ 0x0601" >>confdefs.h
16086
16087
16088$as_echo "#define MINGW_HAS_SECURE_API 1" >>confdefs.h
16089
16090    ;;
16091esac
16092
16093# Check whether --enable-documentation was given.
16094if test "${enable_documentation+set}" = set; then :
16095  enableval=$enable_documentation; case ${enableval} in
16096    yes|no) ;;
16097    *) as_fn_error $? "bad value ${enableval} for --enable-documentation" "$LINENO" 5 ;;
16098  esac
16099fi
16100
16101test -z "$enable_documentation" && enable_documentation=$USE_MAINTAINER_MODE
16102 if test x"$enable_documentation" = xyes; then
16103  DOCUMENTATION_RULES_TRUE=
16104  DOCUMENTATION_RULES_FALSE='#'
16105else
16106  DOCUMENTATION_RULES_TRUE='#'
16107  DOCUMENTATION_RULES_FALSE=
16108fi
16109
16110 if test x"$USE_MAINTAINER_MODE$enable_documentation" = xyesno; then
16111  MAINTAINER_NO_DOCS_TRUE=
16112  MAINTAINER_NO_DOCS_FALSE='#'
16113else
16114  MAINTAINER_NO_DOCS_TRUE='#'
16115  MAINTAINER_NO_DOCS_FALSE=
16116fi
16117
16118
16119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120/* end confdefs.h.  */
16121#include <stdint.h>
16122int
16123main ()
16124{
16125uint32_t foo = 7; return (int)foo;
16126  ;
16127  return 0;
16128}
16129_ACEOF
16130if ac_fn_cxx_try_compile "$LINENO"; then :
16131
16132$as_echo "#define HAVE_WORKING_STDINT_H 1" >>confdefs.h
16133
16134fi
16135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136
16137for ac_header in strings.h sys/select.h
16138do :
16139  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16140ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16141"
16142if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16143  cat >>confdefs.h <<_ACEOF
16144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145_ACEOF
16146
16147fi
16148
16149done
16150
16151for ac_header in netinet/in.h arpa/inet.h sys/time.h		 sys/resource.h sys/socket.h sys/sysctl.h vm/vm_param.h		 sys/vmmeter.h sys/sysmp.h sys/sysinfo.h sys/pstat.h
16152do :
16153  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
16155"
16156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16157  cat >>confdefs.h <<_ACEOF
16158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16159_ACEOF
16160
16161fi
16162
16163done
16164
16165
16166
16167for ac_header in magic.h
16168do :
16169  ac_fn_cxx_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
16170if test "x$ac_cv_header_magic_h" = xyes; then :
16171  cat >>confdefs.h <<_ACEOF
16172#define HAVE_MAGIC_H 1
16173_ACEOF
16174
16175fi
16176
16177done
16178
16179if test $ac_cv_header_magic_h = yes ; then
16180          MAGIC_LIBS=-lmagic
16181else
16182  MAGIC_LIBS=
16183fi
16184
16185
16186ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16187if test "x$ac_cv_type_ssize_t" = xyes; then :
16188
16189else
16190
16191cat >>confdefs.h <<_ACEOF
16192#define ssize_t int
16193_ACEOF
16194
16195fi
16196
16197ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16198if test "x$ac_cv_type_mode_t" = xyes; then :
16199
16200else
16201
16202cat >>confdefs.h <<_ACEOF
16203#define mode_t int
16204_ACEOF
16205
16206fi
16207
16208ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16209if test "x$ac_cv_type_pid_t" = xyes; then :
16210
16211else
16212
16213cat >>confdefs.h <<_ACEOF
16214#define pid_t int
16215_ACEOF
16216
16217fi
16218
16219
16220for ac_func in strftime
16221do :
16222  ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
16223if test "x$ac_cv_func_strftime" = xyes; then :
16224  cat >>confdefs.h <<_ACEOF
16225#define HAVE_STRFTIME 1
16226_ACEOF
16227
16228else
16229  # strftime is in -lintl on SCO UNIX.
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
16231$as_echo_n "checking for strftime in -lintl... " >&6; }
16232if ${ac_cv_lib_intl_strftime+:} false; then :
16233  $as_echo_n "(cached) " >&6
16234else
16235  ac_check_lib_save_LIBS=$LIBS
16236LIBS="-lintl  $LIBS"
16237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238/* end confdefs.h.  */
16239
16240/* Override any GCC internal prototype to avoid an error.
16241   Use char because int might match the return type of a GCC
16242   builtin and then its argument prototype would still apply.  */
16243#ifdef __cplusplus
16244extern "C"
16245#endif
16246char strftime ();
16247int
16248main ()
16249{
16250return strftime ();
16251  ;
16252  return 0;
16253}
16254_ACEOF
16255if ac_fn_cxx_try_link "$LINENO"; then :
16256  ac_cv_lib_intl_strftime=yes
16257else
16258  ac_cv_lib_intl_strftime=no
16259fi
16260rm -f core conftest.err conftest.$ac_objext \
16261    conftest$ac_exeext conftest.$ac_ext
16262LIBS=$ac_check_lib_save_LIBS
16263fi
16264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
16265$as_echo "$ac_cv_lib_intl_strftime" >&6; }
16266if test "x$ac_cv_lib_intl_strftime" = xyes; then :
16267  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
16268
16269LIBS="-lintl $LIBS"
16270fi
16271
16272fi
16273done
16274
16275for ac_func in gettimeofday ftime sleep
16276do :
16277  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16278ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16279if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16280  cat >>confdefs.h <<_ACEOF
16281#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16282_ACEOF
16283
16284fi
16285done
16286
16287
16288if test $ac_cv_func_ftime = yes ; then
16289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h.  */
16291#include <sys/timeb.h>
16292int
16293main ()
16294{
16295struct timeb tp; int i = ftime(&tp);
16296  ;
16297  return 0;
16298}
16299_ACEOF
16300if ac_fn_cxx_try_compile "$LINENO"; then :
16301
16302else
16303
16304$as_echo "#define FTIME_RETURNS_VOID 1" >>confdefs.h
16305
16306fi
16307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308fi
16309
16310for ac_func in getgrouplist
16311do :
16312  ac_fn_cxx_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16313if test "x$ac_cv_func_getgrouplist" = xyes; then :
16314  cat >>confdefs.h <<_ACEOF
16315#define HAVE_GETGROUPLIST 1
16316_ACEOF
16317
16318fi
16319done
16320
16321
16322if test $ac_cv_func_getgrouplist = yes ; then
16323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h.  */
16325#include <grp.h>
16326#include <unistd.h>
16327int
16328main ()
16329{
16330int g[10]; int n = 10; return getgrouplist("root", 1, g, &n) == -1;
16331  ;
16332  return 0;
16333}
16334_ACEOF
16335if ac_fn_cxx_try_compile "$LINENO"; then :
16336
16337$as_echo "#define GETGROUPLIST_TAKES_INT_P 1" >>confdefs.h
16338
16339fi
16340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341fi
16342
16343for ac_func in lstat
16344do :
16345  ac_fn_cxx_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
16346if test "x$ac_cv_func_lstat" = xyes; then :
16347  cat >>confdefs.h <<_ACEOF
16348#define HAVE_LSTAT 1
16349_ACEOF
16350
16351fi
16352done
16353
16354
16355for ac_func in mkdtemp
16356do :
16357  ac_fn_cxx_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16358if test "x$ac_cv_func_mkdtemp" = xyes; then :
16359  cat >>confdefs.h <<_ACEOF
16360#define HAVE_MKDTEMP 1
16361_ACEOF
16362
16363fi
16364done
16365
16366 if test yes != "$ac_cv_func_mkdtemp"; then
16367  NEED_MKDTEMP_TRUE=
16368  NEED_MKDTEMP_FALSE='#'
16369else
16370  NEED_MKDTEMP_TRUE='#'
16371  NEED_MKDTEMP_FALSE=
16372fi
16373
16374
16375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376/* end confdefs.h.  */
16377
16378
16379#ifdef __linux__
16380# define _POSIX_C_SOURCE 200112L /* for posix_fadvise from fcntl.h */
16381#endif
16382#include <fcntl.h>
16383
16384int
16385main ()
16386{
16387
16388      posix_fadvise(1, 0, 0, POSIX_FADV_NOREUSE);
16389      posix_fadvise(1, 0, 0, POSIX_FADV_SEQUENTIAL);
16390      posix_fadvise(1, 0, 0, POSIX_FADV_DONTNEED);
16391
16392  ;
16393  return 0;
16394}
16395_ACEOF
16396if ac_fn_cxx_try_link "$LINENO"; then :
16397
16398$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
16399
16400
16401fi
16402rm -f core conftest.err conftest.$ac_objext \
16403    conftest$ac_exeext conftest.$ac_ext
16404
16405for ac_func in mmap fork setrlimit sysmp pstat_getdynamic
16406do :
16407  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16408ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16409if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16410  cat >>confdefs.h <<_ACEOF
16411#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16412_ACEOF
16413
16414fi
16415done
16416
16417
16418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
16419$as_echo_n "checking for library containing socketpair... " >&6; }
16420if ${ac_cv_search_socketpair+:} false; then :
16421  $as_echo_n "(cached) " >&6
16422else
16423  ac_func_search_save_LIBS=$LIBS
16424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h.  */
16426
16427/* Override any GCC internal prototype to avoid an error.
16428   Use char because int might match the return type of a GCC
16429   builtin and then its argument prototype would still apply.  */
16430#ifdef __cplusplus
16431extern "C"
16432#endif
16433char socketpair ();
16434int
16435main ()
16436{
16437return socketpair ();
16438  ;
16439  return 0;
16440}
16441_ACEOF
16442for ac_lib in '' xnet; do
16443  if test -z "$ac_lib"; then
16444    ac_res="none required"
16445  else
16446    ac_res=-l$ac_lib
16447    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16448  fi
16449  if ac_fn_cxx_try_link "$LINENO"; then :
16450  ac_cv_search_socketpair=$ac_res
16451fi
16452rm -f core conftest.err conftest.$ac_objext \
16453    conftest$ac_exeext
16454  if ${ac_cv_search_socketpair+:} false; then :
16455  break
16456fi
16457done
16458if ${ac_cv_search_socketpair+:} false; then :
16459
16460else
16461  ac_cv_search_socketpair=no
16462fi
16463rm conftest.$ac_ext
16464LIBS=$ac_func_search_save_LIBS
16465fi
16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
16467$as_echo "$ac_cv_search_socketpair" >&6; }
16468ac_res=$ac_cv_search_socketpair
16469if test "$ac_res" != no; then :
16470  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16471
16472$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
16473
16474fi
16475
16476
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ISO C90 conforming snprintf" >&5
16478$as_echo_n "checking for working ISO C90 conforming snprintf... " >&6; }
16479ac_cv_func_snprintf_noniso=no
16480for func in snprintf _snprintf ; do
16481  if test "$cross_compiling" = yes; then :
16482  ac_cv_func_snprintf=unknown;break
16483
16484else
16485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486/* end confdefs.h.  */
16487
16488
16489#include <stdio.h>
16490#include <string.h>
16491
16492int
16493main ()
16494{
16495
16496	char buffer[4] = "abc";
16497	int res1 = $func(buffer, 2, "%s", "XYZ");
16498	if (memcmp(buffer, "X\0c", 4) != 0) return 2;
16499	int res2 = $func(buffer, 2, "%x", 0x12);
16500	if (memcmp(buffer, "1\0c", 4) != 0) return 3;
16501	if (res1 == -1 && res2 == -1) return 15; /* Pre-ISO semantics. */
16502	if (res1 != 3) return 4;
16503	if (res2 != 2) return 5;
16504
16505
16506  ;
16507  return 0;
16508}
16509_ACEOF
16510if ac_fn_cxx_try_run "$LINENO"; then :
16511  ac_cv_func_snprintf=$func;break
16512else
16513
16514    if test 15no = "$?$ac_cv_func_snprintf_noniso" ; then
16515      ac_cv_func_snprintf_noniso=$func
16516    fi
16517    ac_cv_func_snprintf=no
16518
16519fi
16520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16521  conftest.$ac_objext conftest.beam conftest.$ac_ext
16522fi
16523
16524done
16525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf" >&5
16526$as_echo "$ac_cv_func_snprintf" >&6; }
16527case $ac_cv_func_snprintf in
16528  no)
16529    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working non-ISO C90 conforming snprintf" >&5
16530$as_echo_n "checking for working non-ISO C90 conforming snprintf... " >&6; }
16531    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noniso" >&5
16532$as_echo "$ac_cv_func_snprintf_noniso" >&6; }
16533    if test no != "$ac_cv_func_snprintf_noniso" ; then
16534
16535cat >>confdefs.h <<_ACEOF
16536#define SNPRINTF $ac_cv_func_snprintf_noniso
16537_ACEOF
16538
16539    fi
16540    ;;
16541  unknown)
16542        ;;
16543  *)
16544
16545cat >>confdefs.h <<_ACEOF
16546#define SNPRINTF_ISO $ac_cv_func_snprintf
16547_ACEOF
16548
16549
16550cat >>confdefs.h <<_ACEOF
16551#define SNPRINTF $ac_cv_func_snprintf
16552_ACEOF
16553
16554    ;;
16555esac
16556
16557
16558# Check whether --with-iconv was given.
16559if test "${with_iconv+set}" = set; then :
16560  withval=$with_iconv; with_iconv=$withval
16561else
16562  with_iconv=auto
16563fi
16564
16565
16566if test no != "$with_iconv" ; then
16567  ICONV_LDFLAGS=
16568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv" >&5
16569$as_echo_n "checking for library containing iconv... " >&6; }
16570if ${ac_cv_search_iconv+:} false; then :
16571  $as_echo_n "(cached) " >&6
16572else
16573  ac_func_search_save_LIBS=$LIBS
16574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575/* end confdefs.h.  */
16576
16577/* Override any GCC internal prototype to avoid an error.
16578   Use char because int might match the return type of a GCC
16579   builtin and then its argument prototype would still apply.  */
16580#ifdef __cplusplus
16581extern "C"
16582#endif
16583char iconv ();
16584int
16585main ()
16586{
16587return iconv ();
16588  ;
16589  return 0;
16590}
16591_ACEOF
16592for ac_lib in '' iconv; do
16593  if test -z "$ac_lib"; then
16594    ac_res="none required"
16595  else
16596    ac_res=-l$ac_lib
16597    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16598  fi
16599  if ac_fn_cxx_try_link "$LINENO"; then :
16600  ac_cv_search_iconv=$ac_res
16601fi
16602rm -f core conftest.err conftest.$ac_objext \
16603    conftest$ac_exeext
16604  if ${ac_cv_search_iconv+:} false; then :
16605  break
16606fi
16607done
16608if ${ac_cv_search_iconv+:} false; then :
16609
16610else
16611  ac_cv_search_iconv=no
16612fi
16613rm conftest.$ac_ext
16614LIBS=$ac_func_search_save_LIBS
16615fi
16616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv" >&5
16617$as_echo "$ac_cv_search_iconv" >&6; }
16618ac_res=$ac_cv_search_iconv
16619if test "$ac_res" != no; then :
16620  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16621
16622else
16623
16624    if test -f "/sw/etc/fink.conf" ; then
16625            case $host_os in
16626      darwin*)
16627	ICONV_LDFLAGS=-L/sw/lib
16628	SAVE_LDFLAGS=$LDFLAGS
16629	LDFLAGS="$LDFLAGS $ICONV_LDFLAGS"
16630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
16631$as_echo_n "checking for iconv in -liconv... " >&6; }
16632if ${ac_cv_lib_iconv_iconv+:} false; then :
16633  $as_echo_n "(cached) " >&6
16634else
16635  ac_check_lib_save_LIBS=$LIBS
16636LIBS="-liconv  $LIBS"
16637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638/* end confdefs.h.  */
16639
16640/* Override any GCC internal prototype to avoid an error.
16641   Use char because int might match the return type of a GCC
16642   builtin and then its argument prototype would still apply.  */
16643#ifdef __cplusplus
16644extern "C"
16645#endif
16646char iconv ();
16647int
16648main ()
16649{
16650return iconv ();
16651  ;
16652  return 0;
16653}
16654_ACEOF
16655if ac_fn_cxx_try_link "$LINENO"; then :
16656  ac_cv_lib_iconv_iconv=yes
16657else
16658  ac_cv_lib_iconv_iconv=no
16659fi
16660rm -f core conftest.err conftest.$ac_objext \
16661    conftest$ac_exeext conftest.$ac_ext
16662LIBS=$ac_check_lib_save_LIBS
16663fi
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
16665$as_echo "$ac_cv_lib_iconv_iconv" >&6; }
16666if test "x$ac_cv_lib_iconv_iconv" = xyes; then :
16667  cat >>confdefs.h <<_ACEOF
16668#define HAVE_LIBICONV 1
16669_ACEOF
16670
16671  LIBS="-liconv $LIBS"
16672
16673else
16674
16675	  ICONV_LDFLAGS=
16676	  with_iconv=bad-$with_iconv
16677
16678fi
16679
16680	LDFLAGS=$SAVE_LDFLAGS ;;
16681      esac
16682    else
16683      with_iconv=bad-$with_iconv
16684    fi
16685
16686    case $with_iconv in
16687    bad-yes)
16688      as_fn_error $? "iconv not found, but --with-iconv specified" "$LINENO" 5 ;;
16689    bad-*)
16690      with_iconv=no ;;
16691    esac
16692
16693fi
16694
16695
16696fi
16697
16698if test no != "$with_iconv" ; then
16699      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of input pointer for iconv" >&5
16700$as_echo_n "checking for type of input pointer for iconv... " >&6; }
16701  if ${xo_cv_iconv_input+:} false; then :
16702  $as_echo_n "(cached) " >&6
16703else
16704
16705      xo_cv_iconv_input=
16706      for t in 'char*' 'const char *' ; do
16707			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708/* end confdefs.h.  */
16709#include <iconv.h>
16710int
16711main ()
16712{
16713
16714	      char buf[20];
16715	      $t in = const_cast<char *>("hello");
16716	      size_t in_len = 5;
16717	      char * out = buf;
16718	      size_t out_len = 20;
16719	      iconv((iconv_t)-1, &in, &in_len, &out, &out_len);
16720
16721  ;
16722  return 0;
16723}
16724_ACEOF
16725if ac_fn_cxx_try_link "$LINENO"; then :
16726
16727	  xo_cv_iconv_input=$t
16728	  break
16729
16730fi
16731rm -f core conftest.err conftest.$ac_objext \
16732    conftest$ac_exeext conftest.$ac_ext
16733      done
16734      if test -z "$xo_cv_iconv_input"; then
16735	if test yes = "$with_iconv" ; then
16736	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16737$as_echo "not found" >&6; }
16738	  as_fn_error $? "Failed to work out how to call iconv but --with-iconv specified" "$LINENO" 5
16739	fi
16740	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found - not using iconv" >&5
16741$as_echo "not found - not using iconv" >&6; }
16742	with_iconv=no
16743      fi
16744
16745fi
16746
16747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xo_cv_iconv_input" >&5
16748$as_echo "$xo_cv_iconv_input" >&6; }
16749
16750cat >>confdefs.h <<_ACEOF
16751#define ICONV_INPUT_TYPE $xo_cv_iconv_input
16752_ACEOF
16753
16754fi
16755
16756if test no != "$with_iconv" ; then
16757
16758$as_echo "#define USE_ICONV 1" >>confdefs.h
16759
16760fi
16761
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16763$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16764if ${ac_cv_c_bigendian+:} false; then :
16765  $as_echo_n "(cached) " >&6
16766else
16767  ac_cv_c_bigendian=unknown
16768    # See if we're dealing with a universal compiler.
16769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770/* end confdefs.h.  */
16771#ifndef __APPLE_CC__
16772	       not a universal capable compiler
16773	     #endif
16774	     typedef int dummy;
16775
16776_ACEOF
16777if ac_fn_cxx_try_compile "$LINENO"; then :
16778
16779	# Check for potential -arch flags.  It is not universal unless
16780	# there are at least two -arch flags with different values.
16781	ac_arch=
16782	ac_prev=
16783	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16784	 if test -n "$ac_prev"; then
16785	   case $ac_word in
16786	     i?86 | x86_64 | ppc | ppc64)
16787	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16788		 ac_arch=$ac_word
16789	       else
16790		 ac_cv_c_bigendian=universal
16791		 break
16792	       fi
16793	       ;;
16794	   esac
16795	   ac_prev=
16796	 elif test "x$ac_word" = "x-arch"; then
16797	   ac_prev=arch
16798	 fi
16799       done
16800fi
16801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802    if test $ac_cv_c_bigendian = unknown; then
16803      # See if sys/param.h defines the BYTE_ORDER macro.
16804      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805/* end confdefs.h.  */
16806#include <sys/types.h>
16807	     #include <sys/param.h>
16808
16809int
16810main ()
16811{
16812#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16813		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16814		     && LITTLE_ENDIAN)
16815	      bogus endian macros
16816	     #endif
16817
16818  ;
16819  return 0;
16820}
16821_ACEOF
16822if ac_fn_cxx_try_compile "$LINENO"; then :
16823  # It does; now see whether it defined to BIG_ENDIAN or not.
16824	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825/* end confdefs.h.  */
16826#include <sys/types.h>
16827		#include <sys/param.h>
16828
16829int
16830main ()
16831{
16832#if BYTE_ORDER != BIG_ENDIAN
16833		 not big endian
16834		#endif
16835
16836  ;
16837  return 0;
16838}
16839_ACEOF
16840if ac_fn_cxx_try_compile "$LINENO"; then :
16841  ac_cv_c_bigendian=yes
16842else
16843  ac_cv_c_bigendian=no
16844fi
16845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846fi
16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848    fi
16849    if test $ac_cv_c_bigendian = unknown; then
16850      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h.  */
16853#include <limits.h>
16854
16855int
16856main ()
16857{
16858#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16859	      bogus endian macros
16860	     #endif
16861
16862  ;
16863  return 0;
16864}
16865_ACEOF
16866if ac_fn_cxx_try_compile "$LINENO"; then :
16867  # It does; now see whether it defined to _BIG_ENDIAN or not.
16868	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h.  */
16870#include <limits.h>
16871
16872int
16873main ()
16874{
16875#ifndef _BIG_ENDIAN
16876		 not big endian
16877		#endif
16878
16879  ;
16880  return 0;
16881}
16882_ACEOF
16883if ac_fn_cxx_try_compile "$LINENO"; then :
16884  ac_cv_c_bigendian=yes
16885else
16886  ac_cv_c_bigendian=no
16887fi
16888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889fi
16890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891    fi
16892    if test $ac_cv_c_bigendian = unknown; then
16893      # Compile a test program.
16894      if test "$cross_compiling" = yes; then :
16895  # Try to guess by grepping values from an object file.
16896	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897/* end confdefs.h.  */
16898short int ascii_mm[] =
16899		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16900		short int ascii_ii[] =
16901		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16902		int use_ascii (int i) {
16903		  return ascii_mm[i] + ascii_ii[i];
16904		}
16905		short int ebcdic_ii[] =
16906		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16907		short int ebcdic_mm[] =
16908		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16909		int use_ebcdic (int i) {
16910		  return ebcdic_mm[i] + ebcdic_ii[i];
16911		}
16912		extern int foo;
16913
16914int
16915main ()
16916{
16917return use_ascii (foo) == use_ebcdic (foo);
16918  ;
16919  return 0;
16920}
16921_ACEOF
16922if ac_fn_cxx_try_compile "$LINENO"; then :
16923  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16924	      ac_cv_c_bigendian=yes
16925	    fi
16926	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16927	      if test "$ac_cv_c_bigendian" = unknown; then
16928		ac_cv_c_bigendian=no
16929	      else
16930		# finding both strings is unlikely to happen, but who knows?
16931		ac_cv_c_bigendian=unknown
16932	      fi
16933	    fi
16934fi
16935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936else
16937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939$ac_includes_default
16940int
16941main ()
16942{
16943
16944	     /* Are we little or big endian?  From Harbison&Steele.  */
16945	     union
16946	     {
16947	       long int l;
16948	       char c[sizeof (long int)];
16949	     } u;
16950	     u.l = 1;
16951	     return u.c[sizeof (long int) - 1] == 1;
16952
16953  ;
16954  return 0;
16955}
16956_ACEOF
16957if ac_fn_cxx_try_run "$LINENO"; then :
16958  ac_cv_c_bigendian=no
16959else
16960  ac_cv_c_bigendian=yes
16961fi
16962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16963  conftest.$ac_objext conftest.beam conftest.$ac_ext
16964fi
16965
16966    fi
16967fi
16968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16969$as_echo "$ac_cv_c_bigendian" >&6; }
16970 case $ac_cv_c_bigendian in #(
16971   yes)
16972     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16973;; #(
16974   no)
16975      ;; #(
16976   universal)
16977
16978$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16979
16980     ;; #(
16981   *)
16982     as_fn_error $? "unknown endianness
16983 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16984 esac
16985
16986
16987# Extract the first word of "perl", so it can be a program name with args.
16988set dummy perl; ac_word=$2
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16990$as_echo_n "checking for $ac_word... " >&6; }
16991if ${ac_cv_path_PERL+:} false; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  case $PERL in
16995  [\\/]* | ?:[\\/]*)
16996  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16997  ;;
16998  *)
16999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17000for as_dir in $PATH
17001do
17002  IFS=$as_save_IFS
17003  test -z "$as_dir" && as_dir=.
17004    for ac_exec_ext in '' $ac_executable_extensions; do
17005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17006    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17008    break 2
17009  fi
17010done
17011  done
17012IFS=$as_save_IFS
17013
17014  ;;
17015esac
17016fi
17017PERL=$ac_cv_path_PERL
17018if test -n "$PERL"; then
17019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
17020$as_echo "$PERL" >&6; }
17021else
17022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17023$as_echo "no" >&6; }
17024fi
17025
17026
17027test -z "$PERL" && as_fn_error $? "perl is required" "$LINENO" 5
17028
17029if test x"$enable_documentation" = xyes; then
17030    # Extract the first word of "help2man", so it can be a program name with args.
17031set dummy help2man; ac_word=$2
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17033$as_echo_n "checking for $ac_word... " >&6; }
17034if ${ac_cv_path_HELP2MAN+:} false; then :
17035  $as_echo_n "(cached) " >&6
17036else
17037  case $HELP2MAN in
17038  [\\/]* | ?:[\\/]*)
17039  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
17040  ;;
17041  *)
17042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17043for as_dir in $PATH
17044do
17045  IFS=$as_save_IFS
17046  test -z "$as_dir" && as_dir=.
17047    for ac_exec_ext in '' $ac_executable_extensions; do
17048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17049    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
17050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17051    break 2
17052  fi
17053done
17054  done
17055IFS=$as_save_IFS
17056
17057  ;;
17058esac
17059fi
17060HELP2MAN=$ac_cv_path_HELP2MAN
17061if test -n "$HELP2MAN"; then
17062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
17063$as_echo "$HELP2MAN" >&6; }
17064else
17065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066$as_echo "no" >&6; }
17067fi
17068
17069
17070  test -z "$HELP2MAN" && as_fn_error $? "help2man is required to build documentation" "$LINENO" 5
17071
17072      for ac_prog in rst2html rst2html.py
17073do
17074  # Extract the first word of "$ac_prog", so it can be a program name with args.
17075set dummy $ac_prog; ac_word=$2
17076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17077$as_echo_n "checking for $ac_word... " >&6; }
17078if ${ac_cv_path_RST2HTML+:} false; then :
17079  $as_echo_n "(cached) " >&6
17080else
17081  case $RST2HTML in
17082  [\\/]* | ?:[\\/]*)
17083  ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
17084  ;;
17085  *)
17086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17087for as_dir in $PATH
17088do
17089  IFS=$as_save_IFS
17090  test -z "$as_dir" && as_dir=.
17091    for ac_exec_ext in '' $ac_executable_extensions; do
17092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17093    ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
17094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17095    break 2
17096  fi
17097done
17098  done
17099IFS=$as_save_IFS
17100
17101  ;;
17102esac
17103fi
17104RST2HTML=$ac_cv_path_RST2HTML
17105if test -n "$RST2HTML"; then
17106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
17107$as_echo "$RST2HTML" >&6; }
17108else
17109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110$as_echo "no" >&6; }
17111fi
17112
17113
17114  test -n "$RST2HTML" && break
17115done
17116
17117  test -z "$RST2HTML" && as_fn_error $? "rst2html is required to build documentation" "$LINENO" 5
17118fi
17119
17120pcre_runtime_installed() {
17121      for sfx in '' 32 64 ; do
17122    set /usr/lib$sfx/libpcre*.so.*
17123    if test "/usr/lib$sfx/libpcre?.so.*" != "$1" ; then
17124      if test -r /etc/debian_version ; then
17125	pkg="libpcre3-dev"
17126      else
17127	pkg="pcre-devel"
17128      fi
17129      as_fn_set_status 0
17130    fi
17131  done
17132  as_fn_set_status 1
17133}
17134
17135
17136if test -z "$PCRE_CONFIG" ; then
17137
17138  if test -n "$ac_tool_prefix"; then
17139  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17140set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17142$as_echo_n "checking for $ac_word... " >&6; }
17143if ${ac_cv_path_PKG_CONFIG+:} false; then :
17144  $as_echo_n "(cached) " >&6
17145else
17146  case $PKG_CONFIG in
17147  [\\/]* | ?:[\\/]*)
17148  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17149  ;;
17150  *)
17151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152for as_dir in $PATH
17153do
17154  IFS=$as_save_IFS
17155  test -z "$as_dir" && as_dir=.
17156    for ac_exec_ext in '' $ac_executable_extensions; do
17157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17158    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17160    break 2
17161  fi
17162done
17163  done
17164IFS=$as_save_IFS
17165
17166  ;;
17167esac
17168fi
17169PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17170if test -n "$PKG_CONFIG"; then
17171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17172$as_echo "$PKG_CONFIG" >&6; }
17173else
17174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17175$as_echo "no" >&6; }
17176fi
17177
17178
17179fi
17180if test -z "$ac_cv_path_PKG_CONFIG"; then
17181  ac_pt_PKG_CONFIG=$PKG_CONFIG
17182  # Extract the first word of "pkg-config", so it can be a program name with args.
17183set dummy pkg-config; ac_word=$2
17184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17185$as_echo_n "checking for $ac_word... " >&6; }
17186if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17187  $as_echo_n "(cached) " >&6
17188else
17189  case $ac_pt_PKG_CONFIG in
17190  [\\/]* | ?:[\\/]*)
17191  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17192  ;;
17193  *)
17194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17195for as_dir in $PATH
17196do
17197  IFS=$as_save_IFS
17198  test -z "$as_dir" && as_dir=.
17199    for ac_exec_ext in '' $ac_executable_extensions; do
17200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17201    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17203    break 2
17204  fi
17205done
17206  done
17207IFS=$as_save_IFS
17208
17209  ;;
17210esac
17211fi
17212ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17213if test -n "$ac_pt_PKG_CONFIG"; then
17214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17215$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17216else
17217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17218$as_echo "no" >&6; }
17219fi
17220
17221  if test "x$ac_pt_PKG_CONFIG" = x; then
17222    PKG_CONFIG=""
17223  else
17224    case $cross_compiling:$ac_tool_warned in
17225yes:)
17226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17228ac_tool_warned=yes ;;
17229esac
17230    PKG_CONFIG=$ac_pt_PKG_CONFIG
17231  fi
17232else
17233  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17234fi
17235
17236  if test -n "$PKG_CONFIG" ; then
17237    pcre_try="$PKG_CONFIG libpcre"
17238    if $pcre_try 2>/dev/null ; then
17239      PCRE_CONFIG=$pcre_try
17240    else
17241      if pcre_runtime_installed ; then
17242	as_fn_error $? "'$pcre_try' failed, but the PCRE runtime library seems to be installed.  If you've installed PCRE from a package, you probably need to install an extra package called something like $pkg in order to be able to build $PACKAGE_NAME." "$LINENO" 5
17243      else
17244	as_fn_error $? "'$pcre_try' failed.  If the PCRE library is installed, you need to add PCRE_CONFIG=/path/to/pcre-config to your configure command." "$LINENO" 5
17245      fi
17246    fi
17247  else
17248                if test -n "$ac_tool_prefix"; then
17249  # Extract the first word of "${ac_tool_prefix}pcre-config", so it can be a program name with args.
17250set dummy ${ac_tool_prefix}pcre-config; ac_word=$2
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17252$as_echo_n "checking for $ac_word... " >&6; }
17253if ${ac_cv_path_PCRE_CONFIG+:} false; then :
17254  $as_echo_n "(cached) " >&6
17255else
17256  case $PCRE_CONFIG in
17257  [\\/]* | ?:[\\/]*)
17258  ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
17259  ;;
17260  *)
17261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262for as_dir in $PATH
17263do
17264  IFS=$as_save_IFS
17265  test -z "$as_dir" && as_dir=.
17266    for ac_exec_ext in '' $ac_executable_extensions; do
17267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17268    ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17270    break 2
17271  fi
17272done
17273  done
17274IFS=$as_save_IFS
17275
17276  ;;
17277esac
17278fi
17279PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
17280if test -n "$PCRE_CONFIG"; then
17281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
17282$as_echo "$PCRE_CONFIG" >&6; }
17283else
17284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285$as_echo "no" >&6; }
17286fi
17287
17288
17289fi
17290if test -z "$ac_cv_path_PCRE_CONFIG"; then
17291  ac_pt_PCRE_CONFIG=$PCRE_CONFIG
17292  # Extract the first word of "pcre-config", so it can be a program name with args.
17293set dummy pcre-config; ac_word=$2
17294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17295$as_echo_n "checking for $ac_word... " >&6; }
17296if ${ac_cv_path_ac_pt_PCRE_CONFIG+:} false; then :
17297  $as_echo_n "(cached) " >&6
17298else
17299  case $ac_pt_PCRE_CONFIG in
17300  [\\/]* | ?:[\\/]*)
17301  ac_cv_path_ac_pt_PCRE_CONFIG="$ac_pt_PCRE_CONFIG" # Let the user override the test with a path.
17302  ;;
17303  *)
17304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17305for as_dir in $PATH
17306do
17307  IFS=$as_save_IFS
17308  test -z "$as_dir" && as_dir=.
17309    for ac_exec_ext in '' $ac_executable_extensions; do
17310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17311    ac_cv_path_ac_pt_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17313    break 2
17314  fi
17315done
17316  done
17317IFS=$as_save_IFS
17318
17319  ;;
17320esac
17321fi
17322ac_pt_PCRE_CONFIG=$ac_cv_path_ac_pt_PCRE_CONFIG
17323if test -n "$ac_pt_PCRE_CONFIG"; then
17324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCRE_CONFIG" >&5
17325$as_echo "$ac_pt_PCRE_CONFIG" >&6; }
17326else
17327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17328$as_echo "no" >&6; }
17329fi
17330
17331  if test "x$ac_pt_PCRE_CONFIG" = x; then
17332    PCRE_CONFIG=""
17333  else
17334    case $cross_compiling:$ac_tool_warned in
17335yes:)
17336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17338ac_tool_warned=yes ;;
17339esac
17340    PCRE_CONFIG=$ac_pt_PCRE_CONFIG
17341  fi
17342else
17343  PCRE_CONFIG="$ac_cv_path_PCRE_CONFIG"
17344fi
17345
17346    if test -z $PCRE_CONFIG ; then
17347      if pcre_runtime_installed ; then
17348	as_fn_error $? "Can't find pcre-config, although the PCRE runtime library seems to be installed.  If you've installed PCRE from a package, you probably need to install an extra package called something like $pkg in order to be able to build $PACKAGE_NAME." "$LINENO" 5
17349      else
17350	as_fn_error $? "Can't find pcre-config.  If the PCRE library is installed, you need to add PCRE_CONFIG=/path/to/pcre-config to your configure command." "$LINENO" 5
17351      fi
17352    fi
17353  fi
17354fi
17355PCRE_CFLAGS=`$PCRE_CONFIG --cflags`
17356PCRE_LIBS=`$PCRE_CONFIG --libs`
17357
17358
17359
17360
17361if test yes = "$GXX"; then
17362      case `echo __INTEL_COMPILER __clang__|$CXX -E - 2>&5|grep -v '^#'` in
17363    *__INTEL_COMPILER*__clang__*)
17364                                          AM_CXXFLAGS="$AM_CXXFLAGS -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef"
17365
17366                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of GCC" >&5
17367$as_echo_n "checking for version of GCC... " >&6; }
17368      gxx_version=`echo __GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__|$CXX -E -|sed '/^#/d;s/ //g'`
17369      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_version" >&5
17370$as_echo "$gxx_version" >&6; }
17371
17372      case $gxx_version in
17373      [012].* | 3.0.*)
17374	as_fn_error $? "Xapian requires GCC 3.1 or later (you appear to have $gxx_version)" "$LINENO" 5
17375	;;
17376      3.*|4.0.*) ;;
17377      *) 	case $gxx_version in
17378	4.1.*)
17379	  	  	  	  	  	  	  	  AM_CXXFLAGS="$AM_CXXFLAGS -Wstrict-null-sentinel -Wshadow" ;;
17380	4.2.*)
17381	  	  	  AM_CXXFLAGS="$AM_CXXFLAGS -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1" ;;
17382	4.[345].*)
17383	  	  	  AM_CXXFLAGS="$AM_CXXFLAGS -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations" ;;
17384	*) 	  	  	  	  	  	  	  AM_CXXFLAGS="$AM_CXXFLAGS -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations"
17385	  AM_CXXFLAGS="$AM_CXXFLAGS -Wdouble-promotion -Winit-self" ;;
17386	esac
17387
17388
17389				if test x$USE_MAINTAINER_MODE = xyes; then
17390	  AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
17391	fi
17392	;;
17393      esac
17394      ;;
17395    *__clang__*)
17396
17397                  AM_CXXFLAGS="$AM_CXXFLAGS -Wall -w1 -wd177,1572"
17398
17399            if test x$USE_MAINTAINER_MODE = xyes; then
17400	AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
17401      fi
17402      ;;
17403    *__INTEL_COMPILER*)
17404
17405      AM_CXXFLAGS="$AM_CXXFLAGS -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual"
17406      AM_CXXFLAGS="$AM_CXXFLAGS -Wshadow -Wstrict-overflow=1 -Winit-self -Wmissing-declarations"
17407
17408            if test x$USE_MAINTAINER_MODE = xyes; then
17409	AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
17410      fi
17411      ;;
17412  esac
17413fi
17414
17415
17416
17417
17418
17419# Check whether --enable-quiet was given.
17420if test "${enable_quiet+set}" = set; then :
17421  enableval=$enable_quiet; case ${enableval} in
17422    yes|no) ;;
17423    *) as_fn_error $? "bad value ${enableval} for --enable-quiet" "$LINENO" 5 ;;
17424  esac
17425fi
17426
17427
17428QUIET=
17429if test yes = "$enable_quiet"; then
17430  QUIET=--quiet
17431fi
17432
17433
17434CXXFLAGS=$save_CXXFLAGS
17435
17436# Check whether --enable-largefile was given.
17437if test "${enable_largefile+set}" = set; then :
17438  enableval=$enable_largefile;
17439fi
17440
17441if test "$enable_largefile" != no; then
17442
17443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17444$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17445if ${ac_cv_sys_largefile_CC+:} false; then :
17446  $as_echo_n "(cached) " >&6
17447else
17448  ac_cv_sys_largefile_CC=no
17449     if test "$GCC" != yes; then
17450       ac_save_CC=$CC
17451       while :; do
17452	 # IRIX 6.2 and later do not support large files by default,
17453	 # so use the C compiler's -n32 option if that helps.
17454	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h.  */
17456#include <sys/types.h>
17457 /* Check that off_t can represent 2**63 - 1 correctly.
17458    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17459    since some C++ compilers masquerading as C compilers
17460    incorrectly reject 9223372036854775807.  */
17461#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17462  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17463		       && LARGE_OFF_T % 2147483647 == 1)
17464		      ? 1 : -1];
17465int
17466main ()
17467{
17468
17469  ;
17470  return 0;
17471}
17472_ACEOF
17473	 if ac_fn_cxx_try_compile "$LINENO"; then :
17474  break
17475fi
17476rm -f core conftest.err conftest.$ac_objext
17477	 CC="$CC -n32"
17478	 if ac_fn_cxx_try_compile "$LINENO"; then :
17479  ac_cv_sys_largefile_CC=' -n32'; break
17480fi
17481rm -f core conftest.err conftest.$ac_objext
17482	 break
17483       done
17484       CC=$ac_save_CC
17485       rm -f conftest.$ac_ext
17486    fi
17487fi
17488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17489$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17490  if test "$ac_cv_sys_largefile_CC" != no; then
17491    CC=$CC$ac_cv_sys_largefile_CC
17492  fi
17493
17494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17495$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17496if ${ac_cv_sys_file_offset_bits+:} false; then :
17497  $as_echo_n "(cached) " >&6
17498else
17499  while :; do
17500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501/* end confdefs.h.  */
17502#include <sys/types.h>
17503 /* Check that off_t can represent 2**63 - 1 correctly.
17504    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17505    since some C++ compilers masquerading as C compilers
17506    incorrectly reject 9223372036854775807.  */
17507#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17508  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17509		       && LARGE_OFF_T % 2147483647 == 1)
17510		      ? 1 : -1];
17511int
17512main ()
17513{
17514
17515  ;
17516  return 0;
17517}
17518_ACEOF
17519if ac_fn_cxx_try_compile "$LINENO"; then :
17520  ac_cv_sys_file_offset_bits=no; break
17521fi
17522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h.  */
17525#define _FILE_OFFSET_BITS 64
17526#include <sys/types.h>
17527 /* Check that off_t can represent 2**63 - 1 correctly.
17528    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17529    since some C++ compilers masquerading as C compilers
17530    incorrectly reject 9223372036854775807.  */
17531#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17532  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17533		       && LARGE_OFF_T % 2147483647 == 1)
17534		      ? 1 : -1];
17535int
17536main ()
17537{
17538
17539  ;
17540  return 0;
17541}
17542_ACEOF
17543if ac_fn_cxx_try_compile "$LINENO"; then :
17544  ac_cv_sys_file_offset_bits=64; break
17545fi
17546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547  ac_cv_sys_file_offset_bits=unknown
17548  break
17549done
17550fi
17551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17552$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17553case $ac_cv_sys_file_offset_bits in #(
17554  no | unknown) ;;
17555  *)
17556cat >>confdefs.h <<_ACEOF
17557#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17558_ACEOF
17559;;
17560esac
17561rm -rf conftest*
17562  if test $ac_cv_sys_file_offset_bits = unknown; then
17563    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17564$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17565if ${ac_cv_sys_large_files+:} false; then :
17566  $as_echo_n "(cached) " >&6
17567else
17568  while :; do
17569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570/* end confdefs.h.  */
17571#include <sys/types.h>
17572 /* Check that off_t can represent 2**63 - 1 correctly.
17573    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17574    since some C++ compilers masquerading as C compilers
17575    incorrectly reject 9223372036854775807.  */
17576#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17577  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17578		       && LARGE_OFF_T % 2147483647 == 1)
17579		      ? 1 : -1];
17580int
17581main ()
17582{
17583
17584  ;
17585  return 0;
17586}
17587_ACEOF
17588if ac_fn_cxx_try_compile "$LINENO"; then :
17589  ac_cv_sys_large_files=no; break
17590fi
17591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593/* end confdefs.h.  */
17594#define _LARGE_FILES 1
17595#include <sys/types.h>
17596 /* Check that off_t can represent 2**63 - 1 correctly.
17597    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17598    since some C++ compilers masquerading as C compilers
17599    incorrectly reject 9223372036854775807.  */
17600#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17601  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17602		       && LARGE_OFF_T % 2147483647 == 1)
17603		      ? 1 : -1];
17604int
17605main ()
17606{
17607
17608  ;
17609  return 0;
17610}
17611_ACEOF
17612if ac_fn_cxx_try_compile "$LINENO"; then :
17613  ac_cv_sys_large_files=1; break
17614fi
17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616  ac_cv_sys_large_files=unknown
17617  break
17618done
17619fi
17620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17621$as_echo "$ac_cv_sys_large_files" >&6; }
17622case $ac_cv_sys_large_files in #(
17623  no | unknown) ;;
17624  *)
17625cat >>confdefs.h <<_ACEOF
17626#define _LARGE_FILES $ac_cv_sys_large_files
17627_ACEOF
17628;;
17629esac
17630rm -rf conftest*
17631  fi
17632fi
17633
17634
17635: ${AUTOM4TE=autom4te}
17636
17637
17638
17639ac_config_files="$ac_config_files Makefile docs/Makefile xapian-omega.spec"
17640
17641ac_config_files="$ac_config_files makemanpage"
17642
17643ac_config_files="$ac_config_files outlookmsg2html"
17644
17645cat >confcache <<\_ACEOF
17646# This file is a shell script that caches the results of configure
17647# tests run on this system so they can be shared between configure
17648# scripts and configure runs, see configure's option --config-cache.
17649# It is not useful on other systems.  If it contains results you don't
17650# want to keep, you may remove or edit it.
17651#
17652# config.status only pays attention to the cache file if you give it
17653# the --recheck option to rerun configure.
17654#
17655# `ac_cv_env_foo' variables (set or unset) will be overridden when
17656# loading this file, other *unset* `ac_cv_foo' will be assigned the
17657# following values.
17658
17659_ACEOF
17660
17661# The following way of writing the cache mishandles newlines in values,
17662# but we know of no workaround that is simple, portable, and efficient.
17663# So, we kill variables containing newlines.
17664# Ultrix sh set writes to stderr and can't be redirected directly,
17665# and sets the high bit in the cache file unless we assign to the vars.
17666(
17667  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17668    eval ac_val=\$$ac_var
17669    case $ac_val in #(
17670    *${as_nl}*)
17671      case $ac_var in #(
17672      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17673$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17674      esac
17675      case $ac_var in #(
17676      _ | IFS | as_nl) ;; #(
17677      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17678      *) { eval $ac_var=; unset $ac_var;} ;;
17679      esac ;;
17680    esac
17681  done
17682
17683  (set) 2>&1 |
17684    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17685    *${as_nl}ac_space=\ *)
17686      # `set' does not quote correctly, so add quotes: double-quote
17687      # substitution turns \\\\ into \\, and sed turns \\ into \.
17688      sed -n \
17689	"s/'/'\\\\''/g;
17690	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17691      ;; #(
17692    *)
17693      # `set' quotes correctly as required by POSIX, so do not add quotes.
17694      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17695      ;;
17696    esac |
17697    sort
17698) |
17699  sed '
17700     /^ac_cv_env_/b end
17701     t clear
17702     :clear
17703     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17704     t end
17705     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17706     :end' >>confcache
17707if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17708  if test -w "$cache_file"; then
17709    if test "x$cache_file" != "x/dev/null"; then
17710      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17711$as_echo "$as_me: updating cache $cache_file" >&6;}
17712      if test ! -f "$cache_file" || test -h "$cache_file"; then
17713	cat confcache >"$cache_file"
17714      else
17715        case $cache_file in #(
17716        */* | ?:*)
17717	  mv -f confcache "$cache_file"$$ &&
17718	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17719        *)
17720	  mv -f confcache "$cache_file" ;;
17721	esac
17722      fi
17723    fi
17724  else
17725    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17726$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17727  fi
17728fi
17729rm -f confcache
17730
17731test "x$prefix" = xNONE && prefix=$ac_default_prefix
17732# Let make expand exec_prefix.
17733test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17734
17735DEFS=-DHAVE_CONFIG_H
17736
17737ac_libobjs=
17738ac_ltlibobjs=
17739U=
17740for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17741  # 1. Remove the extension, and $U if already installed.
17742  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17743  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17744  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17745  #    will be set to the directory where LIBOBJS objects are built.
17746  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17747  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17748done
17749LIBOBJS=$ac_libobjs
17750
17751LTLIBOBJS=$ac_ltlibobjs
17752
17753
17754 if test -n "$EXEEXT"; then
17755  am__EXEEXT_TRUE=
17756  am__EXEEXT_FALSE='#'
17757else
17758  am__EXEEXT_TRUE='#'
17759  am__EXEEXT_FALSE=
17760fi
17761
17762if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17763  as_fn_error $? "conditional \"AMDEP\" was never defined.
17764Usually this means the macro was only invoked conditionally." "$LINENO" 5
17765fi
17766if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17767  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17768Usually this means the macro was only invoked conditionally." "$LINENO" 5
17769fi
17770if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17771  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17772Usually this means the macro was only invoked conditionally." "$LINENO" 5
17773fi
17774if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17775  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17776Usually this means the macro was only invoked conditionally." "$LINENO" 5
17777fi
17778if test -z "${DOCUMENTATION_RULES_TRUE}" && test -z "${DOCUMENTATION_RULES_FALSE}"; then
17779  as_fn_error $? "conditional \"DOCUMENTATION_RULES\" was never defined.
17780Usually this means the macro was only invoked conditionally." "$LINENO" 5
17781fi
17782if test -z "${MAINTAINER_NO_DOCS_TRUE}" && test -z "${MAINTAINER_NO_DOCS_FALSE}"; then
17783  as_fn_error $? "conditional \"MAINTAINER_NO_DOCS\" was never defined.
17784Usually this means the macro was only invoked conditionally." "$LINENO" 5
17785fi
17786if test -z "${NEED_MKDTEMP_TRUE}" && test -z "${NEED_MKDTEMP_FALSE}"; then
17787  as_fn_error $? "conditional \"NEED_MKDTEMP\" was never defined.
17788Usually this means the macro was only invoked conditionally." "$LINENO" 5
17789fi
17790
17791
17792: "${CONFIG_STATUS=./config.status}"
17793ac_write_fail=0
17794ac_clean_files_save=$ac_clean_files
17795ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17796{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17797$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17798as_write_fail=0
17799cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17800#! $SHELL
17801# Generated by $as_me.
17802# Run this file to recreate the current configuration.
17803# Compiler output produced by configure, useful for debugging
17804# configure, is in config.log if it exists.
17805
17806debug=false
17807ac_cs_recheck=false
17808ac_cs_silent=false
17809
17810SHELL=\${CONFIG_SHELL-$SHELL}
17811export SHELL
17812_ASEOF
17813cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17814## -------------------- ##
17815## M4sh Initialization. ##
17816## -------------------- ##
17817
17818# Be more Bourne compatible
17819DUALCASE=1; export DUALCASE # for MKS sh
17820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17821  emulate sh
17822  NULLCMD=:
17823  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17824  # is contrary to our usage.  Disable this feature.
17825  alias -g '${1+"$@"}'='"$@"'
17826  setopt NO_GLOB_SUBST
17827else
17828  case `(set -o) 2>/dev/null` in #(
17829  *posix*) :
17830    set -o posix ;; #(
17831  *) :
17832     ;;
17833esac
17834fi
17835
17836
17837as_nl='
17838'
17839export as_nl
17840# Printing a long string crashes Solaris 7 /usr/bin/printf.
17841as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17844# Prefer a ksh shell builtin over an external printf program on Solaris,
17845# but without wasting forks for bash or zsh.
17846if test -z "$BASH_VERSION$ZSH_VERSION" \
17847    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17848  as_echo='print -r --'
17849  as_echo_n='print -rn --'
17850elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17851  as_echo='printf %s\n'
17852  as_echo_n='printf %s'
17853else
17854  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17855    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17856    as_echo_n='/usr/ucb/echo -n'
17857  else
17858    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17859    as_echo_n_body='eval
17860      arg=$1;
17861      case $arg in #(
17862      *"$as_nl"*)
17863	expr "X$arg" : "X\\(.*\\)$as_nl";
17864	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17865      esac;
17866      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17867    '
17868    export as_echo_n_body
17869    as_echo_n='sh -c $as_echo_n_body as_echo'
17870  fi
17871  export as_echo_body
17872  as_echo='sh -c $as_echo_body as_echo'
17873fi
17874
17875# The user is always right.
17876if test "${PATH_SEPARATOR+set}" != set; then
17877  PATH_SEPARATOR=:
17878  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17879    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17880      PATH_SEPARATOR=';'
17881  }
17882fi
17883
17884
17885# IFS
17886# We need space, tab and new line, in precisely that order.  Quoting is
17887# there to prevent editors from complaining about space-tab.
17888# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17889# splitting by setting IFS to empty value.)
17890IFS=" ""	$as_nl"
17891
17892# Find who we are.  Look in the path if we contain no directory separator.
17893as_myself=
17894case $0 in #((
17895  *[\\/]* ) as_myself=$0 ;;
17896  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17897for as_dir in $PATH
17898do
17899  IFS=$as_save_IFS
17900  test -z "$as_dir" && as_dir=.
17901    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17902  done
17903IFS=$as_save_IFS
17904
17905     ;;
17906esac
17907# We did not find ourselves, most probably we were run as `sh COMMAND'
17908# in which case we are not to be found in the path.
17909if test "x$as_myself" = x; then
17910  as_myself=$0
17911fi
17912if test ! -f "$as_myself"; then
17913  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17914  exit 1
17915fi
17916
17917# Unset variables that we do not need and which cause bugs (e.g. in
17918# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17919# suppresses any "Segmentation fault" message there.  '((' could
17920# trigger a bug in pdksh 5.2.14.
17921for as_var in BASH_ENV ENV MAIL MAILPATH
17922do eval test x\${$as_var+set} = xset \
17923  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17924done
17925PS1='$ '
17926PS2='> '
17927PS4='+ '
17928
17929# NLS nuisances.
17930LC_ALL=C
17931export LC_ALL
17932LANGUAGE=C
17933export LANGUAGE
17934
17935# CDPATH.
17936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17937
17938
17939# as_fn_error STATUS ERROR [LINENO LOG_FD]
17940# ----------------------------------------
17941# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17942# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17943# script with STATUS, using 1 if that was 0.
17944as_fn_error ()
17945{
17946  as_status=$1; test $as_status -eq 0 && as_status=1
17947  if test "$4"; then
17948    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17949    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17950  fi
17951  $as_echo "$as_me: error: $2" >&2
17952  as_fn_exit $as_status
17953} # as_fn_error
17954
17955
17956# as_fn_set_status STATUS
17957# -----------------------
17958# Set $? to STATUS, without forking.
17959as_fn_set_status ()
17960{
17961  return $1
17962} # as_fn_set_status
17963
17964# as_fn_exit STATUS
17965# -----------------
17966# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17967as_fn_exit ()
17968{
17969  set +e
17970  as_fn_set_status $1
17971  exit $1
17972} # as_fn_exit
17973
17974# as_fn_unset VAR
17975# ---------------
17976# Portably unset VAR.
17977as_fn_unset ()
17978{
17979  { eval $1=; unset $1;}
17980}
17981as_unset=as_fn_unset
17982# as_fn_append VAR VALUE
17983# ----------------------
17984# Append the text in VALUE to the end of the definition contained in VAR. Take
17985# advantage of any shell optimizations that allow amortized linear growth over
17986# repeated appends, instead of the typical quadratic growth present in naive
17987# implementations.
17988if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17989  eval 'as_fn_append ()
17990  {
17991    eval $1+=\$2
17992  }'
17993else
17994  as_fn_append ()
17995  {
17996    eval $1=\$$1\$2
17997  }
17998fi # as_fn_append
17999
18000# as_fn_arith ARG...
18001# ------------------
18002# Perform arithmetic evaluation on the ARGs, and store the result in the
18003# global $as_val. Take advantage of shells that can avoid forks. The arguments
18004# must be portable across $(()) and expr.
18005if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18006  eval 'as_fn_arith ()
18007  {
18008    as_val=$(( $* ))
18009  }'
18010else
18011  as_fn_arith ()
18012  {
18013    as_val=`expr "$@" || test $? -eq 1`
18014  }
18015fi # as_fn_arith
18016
18017
18018if expr a : '\(a\)' >/dev/null 2>&1 &&
18019   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18020  as_expr=expr
18021else
18022  as_expr=false
18023fi
18024
18025if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18026  as_basename=basename
18027else
18028  as_basename=false
18029fi
18030
18031if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18032  as_dirname=dirname
18033else
18034  as_dirname=false
18035fi
18036
18037as_me=`$as_basename -- "$0" ||
18038$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18039	 X"$0" : 'X\(//\)$' \| \
18040	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18041$as_echo X/"$0" |
18042    sed '/^.*\/\([^/][^/]*\)\/*$/{
18043	    s//\1/
18044	    q
18045	  }
18046	  /^X\/\(\/\/\)$/{
18047	    s//\1/
18048	    q
18049	  }
18050	  /^X\/\(\/\).*/{
18051	    s//\1/
18052	    q
18053	  }
18054	  s/.*/./; q'`
18055
18056# Avoid depending upon Character Ranges.
18057as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18058as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18059as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18060as_cr_digits='0123456789'
18061as_cr_alnum=$as_cr_Letters$as_cr_digits
18062
18063ECHO_C= ECHO_N= ECHO_T=
18064case `echo -n x` in #(((((
18065-n*)
18066  case `echo 'xy\c'` in
18067  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18068  xy)  ECHO_C='\c';;
18069  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18070       ECHO_T='	';;
18071  esac;;
18072*)
18073  ECHO_N='-n';;
18074esac
18075
18076rm -f conf$$ conf$$.exe conf$$.file
18077if test -d conf$$.dir; then
18078  rm -f conf$$.dir/conf$$.file
18079else
18080  rm -f conf$$.dir
18081  mkdir conf$$.dir 2>/dev/null
18082fi
18083if (echo >conf$$.file) 2>/dev/null; then
18084  if ln -s conf$$.file conf$$ 2>/dev/null; then
18085    as_ln_s='ln -s'
18086    # ... but there are two gotchas:
18087    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18088    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18089    # In both cases, we have to default to `cp -p'.
18090    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18091      as_ln_s='cp -p'
18092  elif ln conf$$.file conf$$ 2>/dev/null; then
18093    as_ln_s=ln
18094  else
18095    as_ln_s='cp -p'
18096  fi
18097else
18098  as_ln_s='cp -p'
18099fi
18100rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18101rmdir conf$$.dir 2>/dev/null
18102
18103
18104# as_fn_mkdir_p
18105# -------------
18106# Create "$as_dir" as a directory, including parents if necessary.
18107as_fn_mkdir_p ()
18108{
18109
18110  case $as_dir in #(
18111  -*) as_dir=./$as_dir;;
18112  esac
18113  test -d "$as_dir" || eval $as_mkdir_p || {
18114    as_dirs=
18115    while :; do
18116      case $as_dir in #(
18117      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18118      *) as_qdir=$as_dir;;
18119      esac
18120      as_dirs="'$as_qdir' $as_dirs"
18121      as_dir=`$as_dirname -- "$as_dir" ||
18122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18123	 X"$as_dir" : 'X\(//\)[^/]' \| \
18124	 X"$as_dir" : 'X\(//\)$' \| \
18125	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18126$as_echo X"$as_dir" |
18127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18128	    s//\1/
18129	    q
18130	  }
18131	  /^X\(\/\/\)[^/].*/{
18132	    s//\1/
18133	    q
18134	  }
18135	  /^X\(\/\/\)$/{
18136	    s//\1/
18137	    q
18138	  }
18139	  /^X\(\/\).*/{
18140	    s//\1/
18141	    q
18142	  }
18143	  s/.*/./; q'`
18144      test -d "$as_dir" && break
18145    done
18146    test -z "$as_dirs" || eval "mkdir $as_dirs"
18147  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18148
18149
18150} # as_fn_mkdir_p
18151if mkdir -p . 2>/dev/null; then
18152  as_mkdir_p='mkdir -p "$as_dir"'
18153else
18154  test -d ./-p && rmdir ./-p
18155  as_mkdir_p=false
18156fi
18157
18158if test -x / >/dev/null 2>&1; then
18159  as_test_x='test -x'
18160else
18161  if ls -dL / >/dev/null 2>&1; then
18162    as_ls_L_option=L
18163  else
18164    as_ls_L_option=
18165  fi
18166  as_test_x='
18167    eval sh -c '\''
18168      if test -d "$1"; then
18169	test -d "$1/.";
18170      else
18171	case $1 in #(
18172	-*)set "./$1";;
18173	esac;
18174	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18175	???[sx]*):;;*)false;;esac;fi
18176    '\'' sh
18177  '
18178fi
18179as_executable_p=$as_test_x
18180
18181# Sed expression to map a string onto a valid CPP name.
18182as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18183
18184# Sed expression to map a string onto a valid variable name.
18185as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18186
18187
18188exec 6>&1
18189## ----------------------------------- ##
18190## Main body of $CONFIG_STATUS script. ##
18191## ----------------------------------- ##
18192_ASEOF
18193test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18194
18195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18196# Save the log message, to keep $0 and so on meaningful, and to
18197# report actual input values of CONFIG_FILES etc. instead of their
18198# values after options handling.
18199ac_log="
18200This file was extended by xapian-omega $as_me 1.2.25, which was
18201generated by GNU Autoconf 2.68.  Invocation command line was
18202
18203  CONFIG_FILES    = $CONFIG_FILES
18204  CONFIG_HEADERS  = $CONFIG_HEADERS
18205  CONFIG_LINKS    = $CONFIG_LINKS
18206  CONFIG_COMMANDS = $CONFIG_COMMANDS
18207  $ $0 $@
18208
18209on `(hostname || uname -n) 2>/dev/null | sed 1q`
18210"
18211
18212_ACEOF
18213
18214case $ac_config_files in *"
18215"*) set x $ac_config_files; shift; ac_config_files=$*;;
18216esac
18217
18218case $ac_config_headers in *"
18219"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18220esac
18221
18222
18223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18224# Files that config.status was made for.
18225config_files="$ac_config_files"
18226config_headers="$ac_config_headers"
18227config_commands="$ac_config_commands"
18228
18229_ACEOF
18230
18231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18232ac_cs_usage="\
18233\`$as_me' instantiates files and other configuration actions
18234from templates according to the current configuration.  Unless the files
18235and actions are specified as TAGs, all are instantiated by default.
18236
18237Usage: $0 [OPTION]... [TAG]...
18238
18239  -h, --help       print this help, then exit
18240  -V, --version    print version number and configuration settings, then exit
18241      --config     print configuration, then exit
18242  -q, --quiet, --silent
18243                   do not print progress messages
18244  -d, --debug      don't remove temporary files
18245      --recheck    update $as_me by reconfiguring in the same conditions
18246      --file=FILE[:TEMPLATE]
18247                   instantiate the configuration file FILE
18248      --header=FILE[:TEMPLATE]
18249                   instantiate the configuration header FILE
18250
18251Configuration files:
18252$config_files
18253
18254Configuration headers:
18255$config_headers
18256
18257Configuration commands:
18258$config_commands
18259
18260Report bugs to <https://xapian.org/bugs>."
18261
18262_ACEOF
18263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18264ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18265ac_cs_version="\\
18266xapian-omega config.status 1.2.25
18267configured by $0, generated by GNU Autoconf 2.68,
18268  with options \\"\$ac_cs_config\\"
18269
18270Copyright (C) 2010 Free Software Foundation, Inc.
18271This config.status script is free software; the Free Software Foundation
18272gives unlimited permission to copy, distribute and modify it."
18273
18274ac_pwd='$ac_pwd'
18275srcdir='$srcdir'
18276INSTALL='$INSTALL'
18277MKDIR_P='$MKDIR_P'
18278AWK='$AWK'
18279test -n "\$AWK" || AWK=awk
18280_ACEOF
18281
18282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18283# The default lists apply if the user does not specify any file.
18284ac_need_defaults=:
18285while test $# != 0
18286do
18287  case $1 in
18288  --*=?*)
18289    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18290    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18291    ac_shift=:
18292    ;;
18293  --*=)
18294    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18295    ac_optarg=
18296    ac_shift=:
18297    ;;
18298  *)
18299    ac_option=$1
18300    ac_optarg=$2
18301    ac_shift=shift
18302    ;;
18303  esac
18304
18305  case $ac_option in
18306  # Handling of the options.
18307  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18308    ac_cs_recheck=: ;;
18309  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18310    $as_echo "$ac_cs_version"; exit ;;
18311  --config | --confi | --conf | --con | --co | --c )
18312    $as_echo "$ac_cs_config"; exit ;;
18313  --debug | --debu | --deb | --de | --d | -d )
18314    debug=: ;;
18315  --file | --fil | --fi | --f )
18316    $ac_shift
18317    case $ac_optarg in
18318    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18319    '') as_fn_error $? "missing file argument" ;;
18320    esac
18321    as_fn_append CONFIG_FILES " '$ac_optarg'"
18322    ac_need_defaults=false;;
18323  --header | --heade | --head | --hea )
18324    $ac_shift
18325    case $ac_optarg in
18326    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18327    esac
18328    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18329    ac_need_defaults=false;;
18330  --he | --h)
18331    # Conflict between --help and --header
18332    as_fn_error $? "ambiguous option: \`$1'
18333Try \`$0 --help' for more information.";;
18334  --help | --hel | -h )
18335    $as_echo "$ac_cs_usage"; exit ;;
18336  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18337  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18338    ac_cs_silent=: ;;
18339
18340  # This is an error.
18341  -*) as_fn_error $? "unrecognized option: \`$1'
18342Try \`$0 --help' for more information." ;;
18343
18344  *) as_fn_append ac_config_targets " $1"
18345     ac_need_defaults=false ;;
18346
18347  esac
18348  shift
18349done
18350
18351ac_configure_extra_args=
18352
18353if $ac_cs_silent; then
18354  exec 6>/dev/null
18355  ac_configure_extra_args="$ac_configure_extra_args --silent"
18356fi
18357
18358_ACEOF
18359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18360if \$ac_cs_recheck; then
18361  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18362  shift
18363  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18364  CONFIG_SHELL='$SHELL'
18365  export CONFIG_SHELL
18366  exec "\$@"
18367fi
18368
18369_ACEOF
18370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18371exec 5>>config.log
18372{
18373  echo
18374  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18375## Running $as_me. ##
18376_ASBOX
18377  $as_echo "$ac_log"
18378} >&5
18379
18380_ACEOF
18381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18382#
18383# INIT-COMMANDS
18384#
18385AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18386
18387
18388# The HP-UX ksh and POSIX shell print the target directory to stdout
18389# if CDPATH is set.
18390(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18391
18392sed_quote_subst='$sed_quote_subst'
18393double_quote_subst='$double_quote_subst'
18394delay_variable_subst='$delay_variable_subst'
18395macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18396macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18397enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18398enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18399pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18400enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18401shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18402SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18403ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18404PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18405host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18406host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18407host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18408build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18409build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18410build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18411SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18412Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18413GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18414EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18415FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18416LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18417NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18418LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18419max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18420ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18421exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18422lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18423lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18424lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18425lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18426lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18427reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18428reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18429OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18430deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18431file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18432file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18433want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18434DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18435sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18436AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18437AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18438archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18439STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18440RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18441old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18442old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18443old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18444lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18445CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18446CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18447compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18448GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18449lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18450lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18451lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18452lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18453lt_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"`'
18454lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18455nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18456lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18457lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18458objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18459MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18460lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18461lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18462lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18463lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18464lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18465need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18466MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18467DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18468NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18469LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18470OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18471OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18472libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18473shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18474extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18475archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18476enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18477export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18478whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18479compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18480old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18481old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18482archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18483archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18484module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18485module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18486with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18487allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18488no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18489hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18490hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18491hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18492hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18493hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18494hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18495hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18496inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18497link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18498always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18499export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18500exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18501include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18502prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18503postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18504file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18505variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18506need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18507need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18508version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18509runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18510shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18511shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18512libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18513library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18514soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18515install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18516postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18517postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18518finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18519finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18520hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18521sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18522configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18523configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18524hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18525enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18526enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18527enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18528old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18529striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18530compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18531predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18532postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18533predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18534postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18535compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18536LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18537reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18538reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18539old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18540compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18541GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18542lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18543lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18544lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18545lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18546lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18547archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18548enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18549export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18550whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18551compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18552old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18553old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18554archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18555archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18556module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18557module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18558with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18559allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18560no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18561hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18562hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18563hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18564hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18565hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18566hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18567hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18568inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18569link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18570always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18571export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18572exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18573include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18574prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18575postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18576file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18577hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18578compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18579predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18580postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18581predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18582postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18583compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18584
18585LTCC='$LTCC'
18586LTCFLAGS='$LTCFLAGS'
18587compiler='$compiler_DEFAULT'
18588
18589# A function that is used when there is no print builtin or printf.
18590func_fallback_echo ()
18591{
18592  eval 'cat <<_LTECHO_EOF
18593\$1
18594_LTECHO_EOF'
18595}
18596
18597# Quote evaled strings.
18598for var in SHELL \
18599ECHO \
18600PATH_SEPARATOR \
18601SED \
18602GREP \
18603EGREP \
18604FGREP \
18605LD \
18606NM \
18607LN_S \
18608lt_SP2NL \
18609lt_NL2SP \
18610reload_flag \
18611OBJDUMP \
18612deplibs_check_method \
18613file_magic_cmd \
18614file_magic_glob \
18615want_nocaseglob \
18616DLLTOOL \
18617sharedlib_from_linklib_cmd \
18618AR \
18619AR_FLAGS \
18620archiver_list_spec \
18621STRIP \
18622RANLIB \
18623CC \
18624CFLAGS \
18625compiler \
18626lt_cv_sys_global_symbol_pipe \
18627lt_cv_sys_global_symbol_to_cdecl \
18628lt_cv_sys_global_symbol_to_import \
18629lt_cv_sys_global_symbol_to_c_name_address \
18630lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18631lt_cv_nm_interface \
18632nm_file_list_spec \
18633lt_cv_truncate_bin \
18634lt_prog_compiler_no_builtin_flag \
18635lt_prog_compiler_pic \
18636lt_prog_compiler_wl \
18637lt_prog_compiler_static \
18638lt_cv_prog_compiler_c_o \
18639need_locks \
18640MANIFEST_TOOL \
18641DSYMUTIL \
18642NMEDIT \
18643LIPO \
18644OTOOL \
18645OTOOL64 \
18646shrext_cmds \
18647export_dynamic_flag_spec \
18648whole_archive_flag_spec \
18649compiler_needs_object \
18650with_gnu_ld \
18651allow_undefined_flag \
18652no_undefined_flag \
18653hardcode_libdir_flag_spec \
18654hardcode_libdir_separator \
18655exclude_expsyms \
18656include_expsyms \
18657file_list_spec \
18658variables_saved_for_relink \
18659libname_spec \
18660library_names_spec \
18661soname_spec \
18662install_override_mode \
18663finish_eval \
18664old_striplib \
18665striplib \
18666compiler_lib_search_dirs \
18667predep_objects \
18668postdep_objects \
18669predeps \
18670postdeps \
18671compiler_lib_search_path \
18672LD_CXX \
18673reload_flag_CXX \
18674compiler_CXX \
18675lt_prog_compiler_no_builtin_flag_CXX \
18676lt_prog_compiler_pic_CXX \
18677lt_prog_compiler_wl_CXX \
18678lt_prog_compiler_static_CXX \
18679lt_cv_prog_compiler_c_o_CXX \
18680export_dynamic_flag_spec_CXX \
18681whole_archive_flag_spec_CXX \
18682compiler_needs_object_CXX \
18683with_gnu_ld_CXX \
18684allow_undefined_flag_CXX \
18685no_undefined_flag_CXX \
18686hardcode_libdir_flag_spec_CXX \
18687hardcode_libdir_separator_CXX \
18688exclude_expsyms_CXX \
18689include_expsyms_CXX \
18690file_list_spec_CXX \
18691compiler_lib_search_dirs_CXX \
18692predep_objects_CXX \
18693postdep_objects_CXX \
18694predeps_CXX \
18695postdeps_CXX \
18696compiler_lib_search_path_CXX; do
18697    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18698    *[\\\\\\\`\\"\\\$]*)
18699      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18700      ;;
18701    *)
18702      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18703      ;;
18704    esac
18705done
18706
18707# Double-quote double-evaled strings.
18708for var in reload_cmds \
18709old_postinstall_cmds \
18710old_postuninstall_cmds \
18711old_archive_cmds \
18712extract_expsyms_cmds \
18713old_archive_from_new_cmds \
18714old_archive_from_expsyms_cmds \
18715archive_cmds \
18716archive_expsym_cmds \
18717module_cmds \
18718module_expsym_cmds \
18719export_symbols_cmds \
18720prelink_cmds \
18721postlink_cmds \
18722postinstall_cmds \
18723postuninstall_cmds \
18724finish_cmds \
18725sys_lib_search_path_spec \
18726configure_time_dlsearch_path \
18727configure_time_lt_sys_library_path \
18728reload_cmds_CXX \
18729old_archive_cmds_CXX \
18730old_archive_from_new_cmds_CXX \
18731old_archive_from_expsyms_cmds_CXX \
18732archive_cmds_CXX \
18733archive_expsym_cmds_CXX \
18734module_cmds_CXX \
18735module_expsym_cmds_CXX \
18736export_symbols_cmds_CXX \
18737prelink_cmds_CXX \
18738postlink_cmds_CXX; do
18739    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18740    *[\\\\\\\`\\"\\\$]*)
18741      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18742      ;;
18743    *)
18744      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18745      ;;
18746    esac
18747done
18748
18749ac_aux_dir='$ac_aux_dir'
18750
18751# See if we are running on zsh, and set the options that allow our
18752# commands through without removal of \ escapes INIT.
18753if test -n "\${ZSH_VERSION+set}"; then
18754   setopt NO_GLOB_SUBST
18755fi
18756
18757
18758    PACKAGE='$PACKAGE'
18759    VERSION='$VERSION'
18760    RM='$RM'
18761    ofile='$ofile'
18762
18763
18764
18765
18766
18767
18768_ACEOF
18769
18770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18771
18772# Handling of arguments.
18773for ac_config_target in $ac_config_targets
18774do
18775  case $ac_config_target in
18776    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18777    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18778    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18779    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18780    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
18781    "xapian-omega.spec") CONFIG_FILES="$CONFIG_FILES xapian-omega.spec" ;;
18782    "makemanpage") CONFIG_FILES="$CONFIG_FILES makemanpage" ;;
18783    "outlookmsg2html") CONFIG_FILES="$CONFIG_FILES outlookmsg2html" ;;
18784
18785  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18786  esac
18787done
18788
18789
18790# If the user did not use the arguments to specify the items to instantiate,
18791# then the envvar interface is used.  Set only those that are not.
18792# We use the long form for the default assignment because of an extremely
18793# bizarre bug on SunOS 4.1.3.
18794if $ac_need_defaults; then
18795  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18796  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18797  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18798fi
18799
18800# Have a temporary directory for convenience.  Make it in the build tree
18801# simply because there is no reason against having it here, and in addition,
18802# creating and moving files from /tmp can sometimes cause problems.
18803# Hook for its removal unless debugging.
18804# Note that there is a small window in which the directory will not be cleaned:
18805# after its creation but before its name has been assigned to `$tmp'.
18806$debug ||
18807{
18808  tmp= ac_tmp=
18809  trap 'exit_status=$?
18810  : "${ac_tmp:=$tmp}"
18811  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18812' 0
18813  trap 'as_fn_exit 1' 1 2 13 15
18814}
18815# Create a (secure) tmp directory for tmp files.
18816
18817{
18818  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18819  test -d "$tmp"
18820}  ||
18821{
18822  tmp=./conf$$-$RANDOM
18823  (umask 077 && mkdir "$tmp")
18824} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18825ac_tmp=$tmp
18826
18827# Set up the scripts for CONFIG_FILES section.
18828# No need to generate them if there are no CONFIG_FILES.
18829# This happens for instance with `./config.status config.h'.
18830if test -n "$CONFIG_FILES"; then
18831
18832
18833ac_cr=`echo X | tr X '\015'`
18834# On cygwin, bash can eat \r inside `` if the user requested igncr.
18835# But we know of no other shell where ac_cr would be empty at this
18836# point, so we can use a bashism as a fallback.
18837if test "x$ac_cr" = x; then
18838  eval ac_cr=\$\'\\r\'
18839fi
18840ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18841if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18842  ac_cs_awk_cr='\\r'
18843else
18844  ac_cs_awk_cr=$ac_cr
18845fi
18846
18847echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18848_ACEOF
18849
18850
18851{
18852  echo "cat >conf$$subs.awk <<_ACEOF" &&
18853  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18854  echo "_ACEOF"
18855} >conf$$subs.sh ||
18856  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18857ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18858ac_delim='%!_!# '
18859for ac_last_try in false false false false false :; do
18860  . ./conf$$subs.sh ||
18861    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18862
18863  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18864  if test $ac_delim_n = $ac_delim_num; then
18865    break
18866  elif $ac_last_try; then
18867    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18868  else
18869    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18870  fi
18871done
18872rm -f conf$$subs.sh
18873
18874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18875cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18876_ACEOF
18877sed -n '
18878h
18879s/^/S["/; s/!.*/"]=/
18880p
18881g
18882s/^[^!]*!//
18883:repl
18884t repl
18885s/'"$ac_delim"'$//
18886t delim
18887:nl
18888h
18889s/\(.\{148\}\)..*/\1/
18890t more1
18891s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18892p
18893n
18894b repl
18895:more1
18896s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18897p
18898g
18899s/.\{148\}//
18900t nl
18901:delim
18902h
18903s/\(.\{148\}\)..*/\1/
18904t more2
18905s/["\\]/\\&/g; s/^/"/; s/$/"/
18906p
18907b
18908:more2
18909s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18910p
18911g
18912s/.\{148\}//
18913t delim
18914' <conf$$subs.awk | sed '
18915/^[^""]/{
18916  N
18917  s/\n//
18918}
18919' >>$CONFIG_STATUS || ac_write_fail=1
18920rm -f conf$$subs.awk
18921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18922_ACAWK
18923cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18924  for (key in S) S_is_set[key] = 1
18925  FS = ""
18926
18927}
18928{
18929  line = $ 0
18930  nfields = split(line, field, "@")
18931  substed = 0
18932  len = length(field[1])
18933  for (i = 2; i < nfields; i++) {
18934    key = field[i]
18935    keylen = length(key)
18936    if (S_is_set[key]) {
18937      value = S[key]
18938      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18939      len += length(value) + length(field[++i])
18940      substed = 1
18941    } else
18942      len += 1 + keylen
18943  }
18944
18945  print line
18946}
18947
18948_ACAWK
18949_ACEOF
18950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18951if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18952  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18953else
18954  cat
18955fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18956  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18957_ACEOF
18958
18959# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18960# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18961# trailing colons and then remove the whole line if VPATH becomes empty
18962# (actually we leave an empty line to preserve line numbers).
18963if test "x$srcdir" = x.; then
18964  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18965h
18966s///
18967s/^/:/
18968s/[	 ]*$/:/
18969s/:\$(srcdir):/:/g
18970s/:\${srcdir}:/:/g
18971s/:@srcdir@:/:/g
18972s/^:*//
18973s/:*$//
18974x
18975s/\(=[	 ]*\).*/\1/
18976G
18977s/\n//
18978s/^[^=]*=[	 ]*$//
18979}'
18980fi
18981
18982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18983fi # test -n "$CONFIG_FILES"
18984
18985# Set up the scripts for CONFIG_HEADERS section.
18986# No need to generate them if there are no CONFIG_HEADERS.
18987# This happens for instance with `./config.status Makefile'.
18988if test -n "$CONFIG_HEADERS"; then
18989cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18990BEGIN {
18991_ACEOF
18992
18993# Transform confdefs.h into an awk script `defines.awk', embedded as
18994# here-document in config.status, that substitutes the proper values into
18995# config.h.in to produce config.h.
18996
18997# Create a delimiter string that does not exist in confdefs.h, to ease
18998# handling of long lines.
18999ac_delim='%!_!# '
19000for ac_last_try in false false :; do
19001  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19002  if test -z "$ac_tt"; then
19003    break
19004  elif $ac_last_try; then
19005    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19006  else
19007    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19008  fi
19009done
19010
19011# For the awk script, D is an array of macro values keyed by name,
19012# likewise P contains macro parameters if any.  Preserve backslash
19013# newline sequences.
19014
19015ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19016sed -n '
19017s/.\{148\}/&'"$ac_delim"'/g
19018t rset
19019:rset
19020s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19021t def
19022d
19023:def
19024s/\\$//
19025t bsnl
19026s/["\\]/\\&/g
19027s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19028D["\1"]=" \3"/p
19029s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19030d
19031:bsnl
19032s/["\\]/\\&/g
19033s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19034D["\1"]=" \3\\\\\\n"\\/p
19035t cont
19036s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19037t cont
19038d
19039:cont
19040n
19041s/.\{148\}/&'"$ac_delim"'/g
19042t clear
19043:clear
19044s/\\$//
19045t bsnlc
19046s/["\\]/\\&/g; s/^/"/; s/$/"/p
19047d
19048:bsnlc
19049s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19050b cont
19051' <confdefs.h | sed '
19052s/'"$ac_delim"'/"\\\
19053"/g' >>$CONFIG_STATUS || ac_write_fail=1
19054
19055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19056  for (key in D) D_is_set[key] = 1
19057  FS = ""
19058}
19059/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19060  line = \$ 0
19061  split(line, arg, " ")
19062  if (arg[1] == "#") {
19063    defundef = arg[2]
19064    mac1 = arg[3]
19065  } else {
19066    defundef = substr(arg[1], 2)
19067    mac1 = arg[2]
19068  }
19069  split(mac1, mac2, "(") #)
19070  macro = mac2[1]
19071  prefix = substr(line, 1, index(line, defundef) - 1)
19072  if (D_is_set[macro]) {
19073    # Preserve the white space surrounding the "#".
19074    print prefix "define", macro P[macro] D[macro]
19075    next
19076  } else {
19077    # Replace #undef with comments.  This is necessary, for example,
19078    # in the case of _POSIX_SOURCE, which is predefined and required
19079    # on some systems where configure will not decide to define it.
19080    if (defundef == "undef") {
19081      print "/*", prefix defundef, macro, "*/"
19082      next
19083    }
19084  }
19085}
19086{ print }
19087_ACAWK
19088_ACEOF
19089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19090  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19091fi # test -n "$CONFIG_HEADERS"
19092
19093
19094eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19095shift
19096for ac_tag
19097do
19098  case $ac_tag in
19099  :[FHLC]) ac_mode=$ac_tag; continue;;
19100  esac
19101  case $ac_mode$ac_tag in
19102  :[FHL]*:*);;
19103  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19104  :[FH]-) ac_tag=-:-;;
19105  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19106  esac
19107  ac_save_IFS=$IFS
19108  IFS=:
19109  set x $ac_tag
19110  IFS=$ac_save_IFS
19111  shift
19112  ac_file=$1
19113  shift
19114
19115  case $ac_mode in
19116  :L) ac_source=$1;;
19117  :[FH])
19118    ac_file_inputs=
19119    for ac_f
19120    do
19121      case $ac_f in
19122      -) ac_f="$ac_tmp/stdin";;
19123      *) # Look for the file first in the build tree, then in the source tree
19124	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19125	 # because $ac_f cannot contain `:'.
19126	 test -f "$ac_f" ||
19127	   case $ac_f in
19128	   [\\/$]*) false;;
19129	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19130	   esac ||
19131	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19132      esac
19133      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19134      as_fn_append ac_file_inputs " '$ac_f'"
19135    done
19136
19137    # Let's still pretend it is `configure' which instantiates (i.e., don't
19138    # use $as_me), people would be surprised to read:
19139    #    /* config.h.  Generated by config.status.  */
19140    configure_input='Generated from '`
19141	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19142	`' by configure.'
19143    if test x"$ac_file" != x-; then
19144      configure_input="$ac_file.  $configure_input"
19145      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19146$as_echo "$as_me: creating $ac_file" >&6;}
19147    fi
19148    # Neutralize special characters interpreted by sed in replacement strings.
19149    case $configure_input in #(
19150    *\&* | *\|* | *\\* )
19151       ac_sed_conf_input=`$as_echo "$configure_input" |
19152       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19153    *) ac_sed_conf_input=$configure_input;;
19154    esac
19155
19156    case $ac_tag in
19157    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19158      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19159    esac
19160    ;;
19161  esac
19162
19163  ac_dir=`$as_dirname -- "$ac_file" ||
19164$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19165	 X"$ac_file" : 'X\(//\)[^/]' \| \
19166	 X"$ac_file" : 'X\(//\)$' \| \
19167	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19168$as_echo X"$ac_file" |
19169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19170	    s//\1/
19171	    q
19172	  }
19173	  /^X\(\/\/\)[^/].*/{
19174	    s//\1/
19175	    q
19176	  }
19177	  /^X\(\/\/\)$/{
19178	    s//\1/
19179	    q
19180	  }
19181	  /^X\(\/\).*/{
19182	    s//\1/
19183	    q
19184	  }
19185	  s/.*/./; q'`
19186  as_dir="$ac_dir"; as_fn_mkdir_p
19187  ac_builddir=.
19188
19189case "$ac_dir" in
19190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19191*)
19192  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19193  # A ".." for each directory in $ac_dir_suffix.
19194  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19195  case $ac_top_builddir_sub in
19196  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19197  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19198  esac ;;
19199esac
19200ac_abs_top_builddir=$ac_pwd
19201ac_abs_builddir=$ac_pwd$ac_dir_suffix
19202# for backward compatibility:
19203ac_top_builddir=$ac_top_build_prefix
19204
19205case $srcdir in
19206  .)  # We are building in place.
19207    ac_srcdir=.
19208    ac_top_srcdir=$ac_top_builddir_sub
19209    ac_abs_top_srcdir=$ac_pwd ;;
19210  [\\/]* | ?:[\\/]* )  # Absolute name.
19211    ac_srcdir=$srcdir$ac_dir_suffix;
19212    ac_top_srcdir=$srcdir
19213    ac_abs_top_srcdir=$srcdir ;;
19214  *) # Relative name.
19215    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19216    ac_top_srcdir=$ac_top_build_prefix$srcdir
19217    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19218esac
19219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19220
19221
19222  case $ac_mode in
19223  :F)
19224  #
19225  # CONFIG_FILE
19226  #
19227
19228  case $INSTALL in
19229  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19230  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19231  esac
19232  ac_MKDIR_P=$MKDIR_P
19233  case $MKDIR_P in
19234  [\\/$]* | ?:[\\/]* ) ;;
19235  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19236  esac
19237_ACEOF
19238
19239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19240# If the template does not know about datarootdir, expand it.
19241# FIXME: This hack should be removed a few years after 2.60.
19242ac_datarootdir_hack=; ac_datarootdir_seen=
19243ac_sed_dataroot='
19244/datarootdir/ {
19245  p
19246  q
19247}
19248/@datadir@/p
19249/@docdir@/p
19250/@infodir@/p
19251/@localedir@/p
19252/@mandir@/p'
19253case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19254*datarootdir*) ac_datarootdir_seen=yes;;
19255*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19256  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19257$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19258_ACEOF
19259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19260  ac_datarootdir_hack='
19261  s&@datadir@&$datadir&g
19262  s&@docdir@&$docdir&g
19263  s&@infodir@&$infodir&g
19264  s&@localedir@&$localedir&g
19265  s&@mandir@&$mandir&g
19266  s&\\\${datarootdir}&$datarootdir&g' ;;
19267esac
19268_ACEOF
19269
19270# Neutralize VPATH when `$srcdir' = `.'.
19271# Shell code in configure.ac might set extrasub.
19272# FIXME: do we really want to maintain this feature?
19273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19274ac_sed_extra="$ac_vpsub
19275$extrasub
19276_ACEOF
19277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19278:t
19279/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19280s|@configure_input@|$ac_sed_conf_input|;t t
19281s&@top_builddir@&$ac_top_builddir_sub&;t t
19282s&@top_build_prefix@&$ac_top_build_prefix&;t t
19283s&@srcdir@&$ac_srcdir&;t t
19284s&@abs_srcdir@&$ac_abs_srcdir&;t t
19285s&@top_srcdir@&$ac_top_srcdir&;t t
19286s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19287s&@builddir@&$ac_builddir&;t t
19288s&@abs_builddir@&$ac_abs_builddir&;t t
19289s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19290s&@INSTALL@&$ac_INSTALL&;t t
19291s&@MKDIR_P@&$ac_MKDIR_P&;t t
19292$ac_datarootdir_hack
19293"
19294eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19295  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19296
19297test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19298  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19299  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19300      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19302which seems to be undefined.  Please make sure it is defined" >&5
19303$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19304which seems to be undefined.  Please make sure it is defined" >&2;}
19305
19306  rm -f "$ac_tmp/stdin"
19307  case $ac_file in
19308  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19309  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19310  esac \
19311  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19312 ;;
19313  :H)
19314  #
19315  # CONFIG_HEADER
19316  #
19317  if test x"$ac_file" != x-; then
19318    {
19319      $as_echo "/* $configure_input  */" \
19320      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19321    } >"$ac_tmp/config.h" \
19322      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19323    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19324      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19325$as_echo "$as_me: $ac_file is unchanged" >&6;}
19326    else
19327      rm -f "$ac_file"
19328      mv "$ac_tmp/config.h" "$ac_file" \
19329	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19330    fi
19331  else
19332    $as_echo "/* $configure_input  */" \
19333      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19334      || as_fn_error $? "could not create -" "$LINENO" 5
19335  fi
19336# Compute "$ac_file"'s index in $config_headers.
19337_am_arg="$ac_file"
19338_am_stamp_count=1
19339for _am_header in $config_headers :; do
19340  case $_am_header in
19341    $_am_arg | $_am_arg:* )
19342      break ;;
19343    * )
19344      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19345  esac
19346done
19347echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19348$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19349	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19350	 X"$_am_arg" : 'X\(//\)$' \| \
19351	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19352$as_echo X"$_am_arg" |
19353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19354	    s//\1/
19355	    q
19356	  }
19357	  /^X\(\/\/\)[^/].*/{
19358	    s//\1/
19359	    q
19360	  }
19361	  /^X\(\/\/\)$/{
19362	    s//\1/
19363	    q
19364	  }
19365	  /^X\(\/\).*/{
19366	    s//\1/
19367	    q
19368	  }
19369	  s/.*/./; q'`/stamp-h$_am_stamp_count
19370 ;;
19371
19372  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19373$as_echo "$as_me: executing $ac_file commands" >&6;}
19374 ;;
19375  esac
19376
19377
19378  case $ac_file$ac_mode in
19379    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19380  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19381  # are listed without --file.  Let's play safe and only enable the eval
19382  # if we detect the quoting.
19383  case $CONFIG_FILES in
19384  *\'*) eval set x "$CONFIG_FILES" ;;
19385  *)   set x $CONFIG_FILES ;;
19386  esac
19387  shift
19388  for mf
19389  do
19390    # Strip MF so we end up with the name of the file.
19391    mf=`echo "$mf" | sed -e 's/:.*$//'`
19392    # Check whether this is an Automake generated Makefile or not.
19393    # We used to match only the files named `Makefile.in', but
19394    # some people rename them; so instead we look at the file content.
19395    # Grep'ing the first line is not enough: some people post-process
19396    # each Makefile.in and add a new line on top of each file to say so.
19397    # Grep'ing the whole file is not good either: AIX grep has a line
19398    # limit of 2048, but all sed's we know have understand at least 4000.
19399    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19400      dirpart=`$as_dirname -- "$mf" ||
19401$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19402	 X"$mf" : 'X\(//\)[^/]' \| \
19403	 X"$mf" : 'X\(//\)$' \| \
19404	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19405$as_echo X"$mf" |
19406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19407	    s//\1/
19408	    q
19409	  }
19410	  /^X\(\/\/\)[^/].*/{
19411	    s//\1/
19412	    q
19413	  }
19414	  /^X\(\/\/\)$/{
19415	    s//\1/
19416	    q
19417	  }
19418	  /^X\(\/\).*/{
19419	    s//\1/
19420	    q
19421	  }
19422	  s/.*/./; q'`
19423    else
19424      continue
19425    fi
19426    # Extract the definition of DEPDIR, am__include, and am__quote
19427    # from the Makefile without running `make'.
19428    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19429    test -z "$DEPDIR" && continue
19430    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19431    test -z "am__include" && continue
19432    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19433    # When using ansi2knr, U may be empty or an underscore; expand it
19434    U=`sed -n 's/^U = //p' < "$mf"`
19435    # Find all dependency output files, they are included files with
19436    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19437    # simplest approach to changing $(DEPDIR) to its actual value in the
19438    # expansion.
19439    for file in `sed -n "
19440      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19441	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19442      # Make sure the directory exists.
19443      test -f "$dirpart/$file" && continue
19444      fdir=`$as_dirname -- "$file" ||
19445$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19446	 X"$file" : 'X\(//\)[^/]' \| \
19447	 X"$file" : 'X\(//\)$' \| \
19448	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19449$as_echo X"$file" |
19450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19451	    s//\1/
19452	    q
19453	  }
19454	  /^X\(\/\/\)[^/].*/{
19455	    s//\1/
19456	    q
19457	  }
19458	  /^X\(\/\/\)$/{
19459	    s//\1/
19460	    q
19461	  }
19462	  /^X\(\/\).*/{
19463	    s//\1/
19464	    q
19465	  }
19466	  s/.*/./; q'`
19467      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19468      # echo "creating $dirpart/$file"
19469      echo '# dummy' > "$dirpart/$file"
19470    done
19471  done
19472}
19473 ;;
19474    "libtool":C)
19475
19476    # See if we are running on zsh, and set the options that allow our
19477    # commands through without removal of \ escapes.
19478    if test -n "${ZSH_VERSION+set}"; then
19479      setopt NO_GLOB_SUBST
19480    fi
19481
19482    cfgfile=${ofile}T
19483    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19484    $RM "$cfgfile"
19485
19486    cat <<_LT_EOF >> "$cfgfile"
19487#! $SHELL
19488# Generated automatically by $as_me ($PACKAGE) $VERSION
19489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19490# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19491
19492# Provide generalized library-building support services.
19493# Written by Gordon Matzigkeit, 1996
19494
19495# Copyright (C) 2014 Free Software Foundation, Inc.
19496# This is free software; see the source for copying conditions.  There is NO
19497# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19498
19499# GNU Libtool is free software; you can redistribute it and/or modify
19500# it under the terms of the GNU General Public License as published by
19501# the Free Software Foundation; either version 2 of of the License, or
19502# (at your option) any later version.
19503#
19504# As a special exception to the GNU General Public License, if you
19505# distribute this file as part of a program or library that is built
19506# using GNU Libtool, you may include this file under the  same
19507# distribution terms that you use for the rest of that program.
19508#
19509# GNU Libtool is distributed in the hope that it will be useful, but
19510# WITHOUT ANY WARRANTY; without even the implied warranty of
19511# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19512# GNU General Public License for more details.
19513#
19514# You should have received a copy of the GNU General Public License
19515# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19516
19517
19518# The names of the tagged configurations supported by this script.
19519available_tags='CXX '
19520
19521# Configured defaults for sys_lib_dlsearch_path munging.
19522: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19523
19524# ### BEGIN LIBTOOL CONFIG
19525
19526# Which release of libtool.m4 was used?
19527macro_version=$macro_version
19528macro_revision=$macro_revision
19529
19530# Whether or not to build shared libraries.
19531build_libtool_libs=$enable_shared
19532
19533# Whether or not to build static libraries.
19534build_old_libs=$enable_static
19535
19536# What type of objects to build.
19537pic_mode=$pic_mode
19538
19539# Whether or not to optimize for fast installation.
19540fast_install=$enable_fast_install
19541
19542# Shared archive member basename,for filename based shared library versioning on AIX.
19543shared_archive_member_spec=$shared_archive_member_spec
19544
19545# Shell to use when invoking shell scripts.
19546SHELL=$lt_SHELL
19547
19548# An echo program that protects backslashes.
19549ECHO=$lt_ECHO
19550
19551# The PATH separator for the build system.
19552PATH_SEPARATOR=$lt_PATH_SEPARATOR
19553
19554# The host system.
19555host_alias=$host_alias
19556host=$host
19557host_os=$host_os
19558
19559# The build system.
19560build_alias=$build_alias
19561build=$build
19562build_os=$build_os
19563
19564# A sed program that does not truncate output.
19565SED=$lt_SED
19566
19567# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19568Xsed="\$SED -e 1s/^X//"
19569
19570# A grep program that handles long lines.
19571GREP=$lt_GREP
19572
19573# An ERE matcher.
19574EGREP=$lt_EGREP
19575
19576# A literal string matcher.
19577FGREP=$lt_FGREP
19578
19579# A BSD- or MS-compatible name lister.
19580NM=$lt_NM
19581
19582# Whether we need soft or hard links.
19583LN_S=$lt_LN_S
19584
19585# What is the maximum length of a command?
19586max_cmd_len=$max_cmd_len
19587
19588# Object file suffix (normally "o").
19589objext=$ac_objext
19590
19591# Executable file suffix (normally "").
19592exeext=$exeext
19593
19594# whether the shell understands "unset".
19595lt_unset=$lt_unset
19596
19597# turn spaces into newlines.
19598SP2NL=$lt_lt_SP2NL
19599
19600# turn newlines into spaces.
19601NL2SP=$lt_lt_NL2SP
19602
19603# convert \$build file names to \$host format.
19604to_host_file_cmd=$lt_cv_to_host_file_cmd
19605
19606# convert \$build files to toolchain format.
19607to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19608
19609# An object symbol dumper.
19610OBJDUMP=$lt_OBJDUMP
19611
19612# Method to check whether dependent libraries are shared objects.
19613deplibs_check_method=$lt_deplibs_check_method
19614
19615# Command to use when deplibs_check_method = "file_magic".
19616file_magic_cmd=$lt_file_magic_cmd
19617
19618# How to find potential files when deplibs_check_method = "file_magic".
19619file_magic_glob=$lt_file_magic_glob
19620
19621# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19622want_nocaseglob=$lt_want_nocaseglob
19623
19624# DLL creation program.
19625DLLTOOL=$lt_DLLTOOL
19626
19627# Command to associate shared and link libraries.
19628sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19629
19630# The archiver.
19631AR=$lt_AR
19632
19633# Flags to create an archive.
19634AR_FLAGS=$lt_AR_FLAGS
19635
19636# How to feed a file listing to the archiver.
19637archiver_list_spec=$lt_archiver_list_spec
19638
19639# A symbol stripping program.
19640STRIP=$lt_STRIP
19641
19642# Commands used to install an old-style archive.
19643RANLIB=$lt_RANLIB
19644old_postinstall_cmds=$lt_old_postinstall_cmds
19645old_postuninstall_cmds=$lt_old_postuninstall_cmds
19646
19647# Whether to use a lock for old archive extraction.
19648lock_old_archive_extraction=$lock_old_archive_extraction
19649
19650# A C compiler.
19651LTCC=$lt_CC
19652
19653# LTCC compiler flags.
19654LTCFLAGS=$lt_CFLAGS
19655
19656# Take the output of nm and produce a listing of raw symbols and C names.
19657global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19658
19659# Transform the output of nm in a proper C declaration.
19660global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19661
19662# Transform the output of nm into a list of symbols to manually relocate.
19663global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19664
19665# Transform the output of nm in a C name address pair.
19666global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19667
19668# Transform the output of nm in a C name address pair when lib prefix is needed.
19669global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19670
19671# The name lister interface.
19672nm_interface=$lt_lt_cv_nm_interface
19673
19674# Specify filename containing input files for \$NM.
19675nm_file_list_spec=$lt_nm_file_list_spec
19676
19677# The root where to search for dependent libraries,and where our libraries should be installed.
19678lt_sysroot=$lt_sysroot
19679
19680# Command to truncate a binary pipe.
19681lt_truncate_bin=$lt_lt_cv_truncate_bin
19682
19683# The name of the directory that contains temporary libtool files.
19684objdir=$objdir
19685
19686# Used to examine libraries when file_magic_cmd begins with "file".
19687MAGIC_CMD=$MAGIC_CMD
19688
19689# Must we lock files when doing compilation?
19690need_locks=$lt_need_locks
19691
19692# Manifest tool.
19693MANIFEST_TOOL=$lt_MANIFEST_TOOL
19694
19695# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19696DSYMUTIL=$lt_DSYMUTIL
19697
19698# Tool to change global to local symbols on Mac OS X.
19699NMEDIT=$lt_NMEDIT
19700
19701# Tool to manipulate fat objects and archives on Mac OS X.
19702LIPO=$lt_LIPO
19703
19704# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19705OTOOL=$lt_OTOOL
19706
19707# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19708OTOOL64=$lt_OTOOL64
19709
19710# Old archive suffix (normally "a").
19711libext=$libext
19712
19713# Shared library suffix (normally ".so").
19714shrext_cmds=$lt_shrext_cmds
19715
19716# The commands to extract the exported symbol list from a shared archive.
19717extract_expsyms_cmds=$lt_extract_expsyms_cmds
19718
19719# Variables whose values should be saved in libtool wrapper scripts and
19720# restored at link time.
19721variables_saved_for_relink=$lt_variables_saved_for_relink
19722
19723# Do we need the "lib" prefix for modules?
19724need_lib_prefix=$need_lib_prefix
19725
19726# Do we need a version for libraries?
19727need_version=$need_version
19728
19729# Library versioning type.
19730version_type=$version_type
19731
19732# Shared library runtime path variable.
19733runpath_var=$runpath_var
19734
19735# Shared library path variable.
19736shlibpath_var=$shlibpath_var
19737
19738# Is shlibpath searched before the hard-coded library search path?
19739shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19740
19741# Format of library name prefix.
19742libname_spec=$lt_libname_spec
19743
19744# List of archive names.  First name is the real one, the rest are links.
19745# The last name is the one that the linker finds with -lNAME
19746library_names_spec=$lt_library_names_spec
19747
19748# The coded name of the library, if different from the real name.
19749soname_spec=$lt_soname_spec
19750
19751# Permission mode override for installation of shared libraries.
19752install_override_mode=$lt_install_override_mode
19753
19754# Command to use after installation of a shared archive.
19755postinstall_cmds=$lt_postinstall_cmds
19756
19757# Command to use after uninstallation of a shared archive.
19758postuninstall_cmds=$lt_postuninstall_cmds
19759
19760# Commands used to finish a libtool library installation in a directory.
19761finish_cmds=$lt_finish_cmds
19762
19763# As "finish_cmds", except a single script fragment to be evaled but
19764# not shown.
19765finish_eval=$lt_finish_eval
19766
19767# Whether we should hardcode library paths into libraries.
19768hardcode_into_libs=$hardcode_into_libs
19769
19770# Compile-time system search path for libraries.
19771sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19772
19773# Detected run-time system search path for libraries.
19774sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19775
19776# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19777configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19778
19779# Whether dlopen is supported.
19780dlopen_support=$enable_dlopen
19781
19782# Whether dlopen of programs is supported.
19783dlopen_self=$enable_dlopen_self
19784
19785# Whether dlopen of statically linked programs is supported.
19786dlopen_self_static=$enable_dlopen_self_static
19787
19788# Commands to strip libraries.
19789old_striplib=$lt_old_striplib
19790striplib=$lt_striplib
19791
19792
19793# The linker used to build libraries.
19794LD=$lt_LD
19795
19796# How to create reloadable object files.
19797reload_flag=$lt_reload_flag
19798reload_cmds=$lt_reload_cmds
19799
19800# Commands used to build an old-style archive.
19801old_archive_cmds=$lt_old_archive_cmds
19802
19803# A language specific compiler.
19804CC=$lt_compiler
19805
19806# Is the compiler the GNU compiler?
19807with_gcc=$GCC
19808
19809# Compiler flag to turn off builtin functions.
19810no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19811
19812# Additional compiler flags for building library objects.
19813pic_flag=$lt_lt_prog_compiler_pic
19814
19815# How to pass a linker flag through the compiler.
19816wl=$lt_lt_prog_compiler_wl
19817
19818# Compiler flag to prevent dynamic linking.
19819link_static_flag=$lt_lt_prog_compiler_static
19820
19821# Does compiler simultaneously support -c and -o options?
19822compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19823
19824# Whether or not to add -lc for building shared libraries.
19825build_libtool_need_lc=$archive_cmds_need_lc
19826
19827# Whether or not to disallow shared libs when runtime libs are static.
19828allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19829
19830# Compiler flag to allow reflexive dlopens.
19831export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19832
19833# Compiler flag to generate shared objects directly from archives.
19834whole_archive_flag_spec=$lt_whole_archive_flag_spec
19835
19836# Whether the compiler copes with passing no objects directly.
19837compiler_needs_object=$lt_compiler_needs_object
19838
19839# Create an old-style archive from a shared archive.
19840old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19841
19842# Create a temporary old-style archive to link instead of a shared archive.
19843old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19844
19845# Commands used to build a shared archive.
19846archive_cmds=$lt_archive_cmds
19847archive_expsym_cmds=$lt_archive_expsym_cmds
19848
19849# Commands used to build a loadable module if different from building
19850# a shared archive.
19851module_cmds=$lt_module_cmds
19852module_expsym_cmds=$lt_module_expsym_cmds
19853
19854# Whether we are building with GNU ld or not.
19855with_gnu_ld=$lt_with_gnu_ld
19856
19857# Flag that allows shared libraries with undefined symbols to be built.
19858allow_undefined_flag=$lt_allow_undefined_flag
19859
19860# Flag that enforces no undefined symbols.
19861no_undefined_flag=$lt_no_undefined_flag
19862
19863# Flag to hardcode \$libdir into a binary during linking.
19864# This must work even if \$libdir does not exist
19865hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19866
19867# Whether we need a single "-rpath" flag with a separated argument.
19868hardcode_libdir_separator=$lt_hardcode_libdir_separator
19869
19870# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19871# DIR into the resulting binary.
19872hardcode_direct=$hardcode_direct
19873
19874# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19875# DIR into the resulting binary and the resulting library dependency is
19876# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19877# library is relocated.
19878hardcode_direct_absolute=$hardcode_direct_absolute
19879
19880# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19881# into the resulting binary.
19882hardcode_minus_L=$hardcode_minus_L
19883
19884# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19885# into the resulting binary.
19886hardcode_shlibpath_var=$hardcode_shlibpath_var
19887
19888# Set to "yes" if building a shared library automatically hardcodes DIR
19889# into the library and all subsequent libraries and executables linked
19890# against it.
19891hardcode_automatic=$hardcode_automatic
19892
19893# Set to yes if linker adds runtime paths of dependent libraries
19894# to runtime path list.
19895inherit_rpath=$inherit_rpath
19896
19897# Whether libtool must link a program against all its dependency libraries.
19898link_all_deplibs=$link_all_deplibs
19899
19900# Set to "yes" if exported symbols are required.
19901always_export_symbols=$always_export_symbols
19902
19903# The commands to list exported symbols.
19904export_symbols_cmds=$lt_export_symbols_cmds
19905
19906# Symbols that should not be listed in the preloaded symbols.
19907exclude_expsyms=$lt_exclude_expsyms
19908
19909# Symbols that must always be exported.
19910include_expsyms=$lt_include_expsyms
19911
19912# Commands necessary for linking programs (against libraries) with templates.
19913prelink_cmds=$lt_prelink_cmds
19914
19915# Commands necessary for finishing linking programs.
19916postlink_cmds=$lt_postlink_cmds
19917
19918# Specify filename containing input files.
19919file_list_spec=$lt_file_list_spec
19920
19921# How to hardcode a shared library path into an executable.
19922hardcode_action=$hardcode_action
19923
19924# The directories searched by this compiler when creating a shared library.
19925compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19926
19927# Dependencies to place before and after the objects being linked to
19928# create a shared library.
19929predep_objects=$lt_predep_objects
19930postdep_objects=$lt_postdep_objects
19931predeps=$lt_predeps
19932postdeps=$lt_postdeps
19933
19934# The library search path used internally by the compiler when linking
19935# a shared library.
19936compiler_lib_search_path=$lt_compiler_lib_search_path
19937
19938# ### END LIBTOOL CONFIG
19939
19940_LT_EOF
19941
19942    cat <<'_LT_EOF' >> "$cfgfile"
19943
19944# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19945
19946# func_munge_path_list VARIABLE PATH
19947# -----------------------------------
19948# VARIABLE is name of variable containing _space_ separated list of
19949# directories to be munged by the contents of PATH, which is string
19950# having a format:
19951# "DIR[:DIR]:"
19952#       string "DIR[ DIR]" will be prepended to VARIABLE
19953# ":DIR[:DIR]"
19954#       string "DIR[ DIR]" will be appended to VARIABLE
19955# "DIRP[:DIRP]::[DIRA:]DIRA"
19956#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19957#       "DIRA[ DIRA]" will be appended to VARIABLE
19958# "DIR[:DIR]"
19959#       VARIABLE will be replaced by "DIR[ DIR]"
19960func_munge_path_list ()
19961{
19962    case x$2 in
19963    x)
19964        ;;
19965    *:)
19966        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19967        ;;
19968    x:*)
19969        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19970        ;;
19971    *::*)
19972        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19973        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19974        ;;
19975    *)
19976        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19977        ;;
19978    esac
19979}
19980
19981
19982# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19983func_cc_basename ()
19984{
19985    for cc_temp in $*""; do
19986      case $cc_temp in
19987        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19988        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19989        \-*) ;;
19990        *) break;;
19991      esac
19992    done
19993    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19994}
19995
19996
19997# ### END FUNCTIONS SHARED WITH CONFIGURE
19998
19999_LT_EOF
20000
20001  case $host_os in
20002  aix3*)
20003    cat <<\_LT_EOF >> "$cfgfile"
20004# AIX sometimes has problems with the GCC collect2 program.  For some
20005# reason, if we set the COLLECT_NAMES environment variable, the problems
20006# vanish in a puff of smoke.
20007if test set != "${COLLECT_NAMES+set}"; then
20008  COLLECT_NAMES=
20009  export COLLECT_NAMES
20010fi
20011_LT_EOF
20012    ;;
20013  esac
20014
20015
20016ltmain=$ac_aux_dir/ltmain.sh
20017
20018
20019  # We use sed instead of cat because bash on DJGPP gets confused if
20020  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20021  # text mode, it properly converts lines to CR/LF.  This bash problem
20022  # is reportedly fixed, but why not run on old versions too?
20023  sed '$q' "$ltmain" >> "$cfgfile" \
20024     || (rm -f "$cfgfile"; exit 1)
20025
20026   mv -f "$cfgfile" "$ofile" ||
20027    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20028  chmod +x "$ofile"
20029
20030
20031    cat <<_LT_EOF >> "$ofile"
20032
20033# ### BEGIN LIBTOOL TAG CONFIG: CXX
20034
20035# The linker used to build libraries.
20036LD=$lt_LD_CXX
20037
20038# How to create reloadable object files.
20039reload_flag=$lt_reload_flag_CXX
20040reload_cmds=$lt_reload_cmds_CXX
20041
20042# Commands used to build an old-style archive.
20043old_archive_cmds=$lt_old_archive_cmds_CXX
20044
20045# A language specific compiler.
20046CC=$lt_compiler_CXX
20047
20048# Is the compiler the GNU compiler?
20049with_gcc=$GCC_CXX
20050
20051# Compiler flag to turn off builtin functions.
20052no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20053
20054# Additional compiler flags for building library objects.
20055pic_flag=$lt_lt_prog_compiler_pic_CXX
20056
20057# How to pass a linker flag through the compiler.
20058wl=$lt_lt_prog_compiler_wl_CXX
20059
20060# Compiler flag to prevent dynamic linking.
20061link_static_flag=$lt_lt_prog_compiler_static_CXX
20062
20063# Does compiler simultaneously support -c and -o options?
20064compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20065
20066# Whether or not to add -lc for building shared libraries.
20067build_libtool_need_lc=$archive_cmds_need_lc_CXX
20068
20069# Whether or not to disallow shared libs when runtime libs are static.
20070allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20071
20072# Compiler flag to allow reflexive dlopens.
20073export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20074
20075# Compiler flag to generate shared objects directly from archives.
20076whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20077
20078# Whether the compiler copes with passing no objects directly.
20079compiler_needs_object=$lt_compiler_needs_object_CXX
20080
20081# Create an old-style archive from a shared archive.
20082old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20083
20084# Create a temporary old-style archive to link instead of a shared archive.
20085old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20086
20087# Commands used to build a shared archive.
20088archive_cmds=$lt_archive_cmds_CXX
20089archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20090
20091# Commands used to build a loadable module if different from building
20092# a shared archive.
20093module_cmds=$lt_module_cmds_CXX
20094module_expsym_cmds=$lt_module_expsym_cmds_CXX
20095
20096# Whether we are building with GNU ld or not.
20097with_gnu_ld=$lt_with_gnu_ld_CXX
20098
20099# Flag that allows shared libraries with undefined symbols to be built.
20100allow_undefined_flag=$lt_allow_undefined_flag_CXX
20101
20102# Flag that enforces no undefined symbols.
20103no_undefined_flag=$lt_no_undefined_flag_CXX
20104
20105# Flag to hardcode \$libdir into a binary during linking.
20106# This must work even if \$libdir does not exist
20107hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20108
20109# Whether we need a single "-rpath" flag with a separated argument.
20110hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20111
20112# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20113# DIR into the resulting binary.
20114hardcode_direct=$hardcode_direct_CXX
20115
20116# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20117# DIR into the resulting binary and the resulting library dependency is
20118# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20119# library is relocated.
20120hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20121
20122# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20123# into the resulting binary.
20124hardcode_minus_L=$hardcode_minus_L_CXX
20125
20126# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20127# into the resulting binary.
20128hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20129
20130# Set to "yes" if building a shared library automatically hardcodes DIR
20131# into the library and all subsequent libraries and executables linked
20132# against it.
20133hardcode_automatic=$hardcode_automatic_CXX
20134
20135# Set to yes if linker adds runtime paths of dependent libraries
20136# to runtime path list.
20137inherit_rpath=$inherit_rpath_CXX
20138
20139# Whether libtool must link a program against all its dependency libraries.
20140link_all_deplibs=$link_all_deplibs_CXX
20141
20142# Set to "yes" if exported symbols are required.
20143always_export_symbols=$always_export_symbols_CXX
20144
20145# The commands to list exported symbols.
20146export_symbols_cmds=$lt_export_symbols_cmds_CXX
20147
20148# Symbols that should not be listed in the preloaded symbols.
20149exclude_expsyms=$lt_exclude_expsyms_CXX
20150
20151# Symbols that must always be exported.
20152include_expsyms=$lt_include_expsyms_CXX
20153
20154# Commands necessary for linking programs (against libraries) with templates.
20155prelink_cmds=$lt_prelink_cmds_CXX
20156
20157# Commands necessary for finishing linking programs.
20158postlink_cmds=$lt_postlink_cmds_CXX
20159
20160# Specify filename containing input files.
20161file_list_spec=$lt_file_list_spec_CXX
20162
20163# How to hardcode a shared library path into an executable.
20164hardcode_action=$hardcode_action_CXX
20165
20166# The directories searched by this compiler when creating a shared library.
20167compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20168
20169# Dependencies to place before and after the objects being linked to
20170# create a shared library.
20171predep_objects=$lt_predep_objects_CXX
20172postdep_objects=$lt_postdep_objects_CXX
20173predeps=$lt_predeps_CXX
20174postdeps=$lt_postdeps_CXX
20175
20176# The library search path used internally by the compiler when linking
20177# a shared library.
20178compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20179
20180# ### END LIBTOOL TAG CONFIG: CXX
20181_LT_EOF
20182
20183 ;;
20184    "makemanpage":F) chmod +x makemanpage ;;
20185    "outlookmsg2html":F) chmod +x outlookmsg2html ;;
20186
20187  esac
20188done # for ac_tag
20189
20190
20191as_fn_exit 0
20192_ACEOF
20193ac_clean_files=$ac_clean_files_save
20194
20195test $ac_write_fail = 0 ||
20196  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20197
20198
20199# configure is writing to config.log, and then calls config.status.
20200# config.status does its own redirection, appending to config.log.
20201# Unfortunately, on DOS this fails, as config.log is still kept open
20202# by configure, so config.status won't be able to write to it; its
20203# output is simply discarded.  So we exec the FD to /dev/null,
20204# effectively closing config.log, so it can be properly (re)opened and
20205# appended to by config.status.  When coming back to configure, we
20206# need to make the FD available again.
20207if test "$no_create" != yes; then
20208  ac_cs_success=:
20209  ac_config_status_args=
20210  test "$silent" = yes &&
20211    ac_config_status_args="$ac_config_status_args --quiet"
20212  exec 5>/dev/null
20213  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20214  exec 5>>config.log
20215  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20216  # would make configure fail if this is the last instruction.
20217  $ac_cs_success || as_fn_exit 1
20218fi
20219if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20220  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20221$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20222fi
20223
20224