1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for snappy 1.1.2.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='snappy'
569PACKAGE_TARNAME='snappy'
570PACKAGE_VERSION='1.1.2'
571PACKAGE_STRING='snappy 1.1.2'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575# Factoring default headers for most tests.
576ac_includes_default="\
577#include <stdio.h>
578#ifdef HAVE_SYS_TYPES_H
579# include <sys/types.h>
580#endif
581#ifdef HAVE_SYS_STAT_H
582# include <sys/stat.h>
583#endif
584#ifdef STDC_HEADERS
585# include <stdlib.h>
586# include <stddef.h>
587#else
588# ifdef HAVE_STDLIB_H
589#  include <stdlib.h>
590# endif
591#endif
592#ifdef HAVE_STRING_H
593# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594#  include <memory.h>
595# endif
596# include <string.h>
597#endif
598#ifdef HAVE_STRINGS_H
599# include <strings.h>
600#endif
601#ifdef HAVE_INTTYPES_H
602# include <inttypes.h>
603#endif
604#ifdef HAVE_STDINT_H
605# include <stdint.h>
606#endif
607#ifdef HAVE_UNISTD_H
608# include <unistd.h>
609#endif"
610
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614LIBOBJS
615SNAPPY_LTVERSION
616SNAPPY_PATCHLEVEL
617SNAPPY_MINOR
618SNAPPY_MAJOR
619ac_cv_have_sys_uio_h
620ac_cv_have_stddef_h
621ac_cv_have_stdint_h
622UNITTEST_LIBS
623gflags_LIBS
624gflags_CFLAGS
625PKG_CONFIG_LIBDIR
626PKG_CONFIG_PATH
627PKG_CONFIG
628HAVE_GTEST_FALSE
629HAVE_GTEST_TRUE
630HAVE_GTEST
631GTEST_VERSION
632GTEST_LIBS
633GTEST_LDFLAGS
634GTEST_CXXFLAGS
635GTEST_CPPFLAGS
636GTEST_CONFIG
637CXXCPP
638am__fastdepCXX_FALSE
639am__fastdepCXX_TRUE
640CXXDEPMODE
641ac_ct_CXX
642CXXFLAGS
643CXX
644LIBTOOL_DEPS
645CPP
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652RANLIB
653ac_ct_AR
654AR
655DLLTOOL
656OBJDUMP
657LN_S
658NM
659ac_ct_DUMPBIN
660DUMPBIN
661LD
662FGREP
663EGREP
664GREP
665SED
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691LIBTOOL
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
753ac_subst_files=''
754ac_user_opts='
755enable_option_checking
756enable_shared
757enable_static
758with_pic
759enable_fast_install
760enable_dependency_tracking
761with_gnu_ld
762with_sysroot
763enable_libtool_lock
764enable_gtest
765with_gflags
766'
767      ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773LIBS
774CPPFLAGS
775CPP
776CXX
777CXXFLAGS
778CCC
779CXXCPP
780GTEST_CONFIG
781GTEST_CPPFLAGS
782GTEST_CXXFLAGS
783GTEST_LDFLAGS
784GTEST_LIBS
785GTEST_VERSION
786PKG_CONFIG
787PKG_CONFIG_PATH
788PKG_CONFIG_LIBDIR
789gflags_CFLAGS
790gflags_LIBS'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  # Accept the important Cygnus configure options, so we can diagnose typos.
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1247    If a cross compiler is detected then cross compile mode will be used" >&2
1248  elif test "x$build_alias" != "x$host_alias"; then
1249    cross_compiling=yes
1250  fi
1251fi
1252
1253ac_tool_prefix=
1254test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256test "$silent" = yes && exec 6>/dev/null
1257
1258
1259ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260ac_ls_di=`ls -di .` &&
1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262  as_fn_error $? "working directory cannot be determined"
1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264  as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269  ac_srcdir_defaulted=yes
1270  # Try the directory containing this script, then the parent directory.
1271  ac_confdir=`$as_dirname -- "$as_myself" ||
1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273	 X"$as_myself" : 'X\(//\)[^/]' \| \
1274	 X"$as_myself" : 'X\(//\)$' \| \
1275	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276$as_echo X"$as_myself" |
1277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)[^/].*/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)$/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\).*/{
1290	    s//\1/
1291	    q
1292	  }
1293	  s/.*/./; q'`
1294  srcdir=$ac_confdir
1295  if test ! -r "$srcdir/$ac_unique_file"; then
1296    srcdir=..
1297  fi
1298else
1299  ac_srcdir_defaulted=no
1300fi
1301if test ! -r "$srcdir/$ac_unique_file"; then
1302  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
1307	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308	pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311  srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_env_${ac_var}_value=\$${ac_var}
1322  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330  # Omit some internal or obsolete options to make the list less imposing.
1331  # This message is too long to be a string in the A/UX 3.1 sh.
1332  cat <<_ACEOF
1333\`configure' configures snappy 1.1.2 to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343  -h, --help              display this help and exit
1344      --help=short        display options specific to this package
1345      --help=recursive    display the short help of all the included packages
1346  -V, --version           display version information and exit
1347  -q, --quiet, --silent   do not print \`checking ...' messages
1348      --cache-file=FILE   cache test results in FILE [disabled]
1349  -C, --config-cache      alias for \`--cache-file=config.cache'
1350  -n, --no-create         do not create output files
1351      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354  --prefix=PREFIX         install architecture-independent files in PREFIX
1355                          [$ac_default_prefix]
1356  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                          [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367  --bindir=DIR            user executables [EPREFIX/bin]
1368  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369  --libexecdir=DIR        program executables [EPREFIX/libexec]
1370  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373  --libdir=DIR            object code libraries [EPREFIX/lib]
1374  --includedir=DIR        C header files [PREFIX/include]
1375  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378  --infodir=DIR           info documentation [DATAROOTDIR/info]
1379  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380  --mandir=DIR            man documentation [DATAROOTDIR/man]
1381  --docdir=DIR            documentation root [DATAROOTDIR/doc/snappy]
1382  --htmldir=DIR           html documentation [DOCDIR]
1383  --dvidir=DIR            dvi documentation [DOCDIR]
1384  --pdfdir=DIR            pdf documentation [DOCDIR]
1385  --psdir=DIR             ps documentation [DOCDIR]
1386_ACEOF
1387
1388  cat <<\_ACEOF
1389
1390Program names:
1391  --program-prefix=PREFIX            prepend PREFIX to installed program names
1392  --program-suffix=SUFFIX            append SUFFIX to installed program names
1393  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1394
1395System types:
1396  --build=BUILD     configure for building on BUILD [guessed]
1397  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402  case $ac_init_help in
1403     short | recursive ) echo "Configuration of snappy 1.1.2:";;
1404   esac
1405  cat <<\_ACEOF
1406
1407Optional Features:
1408  --disable-option-checking  ignore unrecognized --enable/--with options
1409  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1410  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1411  --enable-shared[=PKGS]  build shared libraries [default=yes]
1412  --enable-static[=PKGS]  build static libraries [default=yes]
1413  --enable-fast-install[=PKGS]
1414                          optimize for fast installation [default=yes]
1415  --disable-dependency-tracking  speeds up one-time build
1416  --enable-dependency-tracking   do not reject slow dependency extractors
1417  --disable-libtool-lock  avoid locking (might break parallel builds)
1418  --enable-gtest          Enable tests using the Google C++ Testing Framework.
1419                          (Default is enabled.)
1420
1421Optional Packages:
1422  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1423  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1424  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1425                          both]
1426  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1427  --with-sysroot=DIR Search for dependent libraries within DIR
1428                        (or the compiler's sysroot if not specified).
1429  --with-gflags           use Google Flags package to enhance the unit test
1430                          [default=check]
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  CPP         C preprocessor
1441  CXX         C++ compiler command
1442  CXXFLAGS    C++ compiler flags
1443  CXXCPP      C++ preprocessor
1444  GTEST_CONFIG
1445              The exact path of Google Test's 'gtest-config' script.
1446  GTEST_CPPFLAGS
1447              C-like preprocessor flags for Google Test.
1448  GTEST_CXXFLAGS
1449              C++ compile flags for Google Test.
1450  GTEST_LDFLAGS
1451              Linker path and option flags for Google Test.
1452  GTEST_LIBS  Library linking flags for Google Test.
1453  GTEST_VERSION
1454              The version of Google Test available.
1455  PKG_CONFIG  path to pkg-config utility
1456  PKG_CONFIG_PATH
1457              directories to add to pkg-config's search path
1458  PKG_CONFIG_LIBDIR
1459              path overriding pkg-config's built-in search path
1460  gflags_CFLAGS
1461              C compiler flags for gflags, overriding pkg-config
1462  gflags_LIBS linker flags for gflags, overriding 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 the package provider.
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
1530snappy configure 1.1.2
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_try_run LINENO
1927# ------------------------
1928# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1929# that executables *can* be run.
1930ac_fn_cxx_try_run ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  if { { ac_try="$ac_link"
1934case "(($ac_try" in
1935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936  *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940  (eval "$ac_link") 2>&5
1941  ac_status=$?
1942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1944  { { case "(($ac_try" in
1945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946  *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950  (eval "$ac_try") 2>&5
1951  ac_status=$?
1952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953  test $ac_status = 0; }; }; then :
1954  ac_retval=0
1955else
1956  $as_echo "$as_me: program exited with status $ac_status" >&5
1957       $as_echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960       ac_retval=$ac_status
1961fi
1962  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964  as_fn_set_status $ac_retval
1965
1966} # ac_fn_cxx_try_run
1967
1968# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1969# ---------------------------------------------
1970# Tests whether TYPE exists after having included INCLUDES, setting cache
1971# variable VAR accordingly.
1972ac_fn_cxx_check_type ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval \${$3+:} false; then :
1978  $as_echo_n "(cached) " >&6
1979else
1980  eval "$3=no"
1981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h.  */
1983$4
1984int
1985main ()
1986{
1987if (sizeof ($2))
1988	 return 0;
1989  ;
1990  return 0;
1991}
1992_ACEOF
1993if ac_fn_cxx_try_compile "$LINENO"; then :
1994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$4
1997int
1998main ()
1999{
2000if (sizeof (($2)))
2001	    return 0;
2002  ;
2003  return 0;
2004}
2005_ACEOF
2006if ac_fn_cxx_try_compile "$LINENO"; then :
2007
2008else
2009  eval "$3=yes"
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014fi
2015eval ac_res=\$$3
2016	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020} # ac_fn_cxx_check_type
2021
2022# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2023# ---------------------------------------------------------
2024# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2025# the include files in INCLUDES and setting the cache variable VAR
2026# accordingly.
2027ac_fn_cxx_check_header_mongrel ()
2028{
2029  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030  if eval \${$3+:} false; then :
2031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032$as_echo_n "checking for $2... " >&6; }
2033if eval \${$3+:} false; then :
2034  $as_echo_n "(cached) " >&6
2035fi
2036eval ac_res=\$$3
2037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039else
2040  # Is the header compilable?
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2042$as_echo_n "checking $2 usability... " >&6; }
2043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h.  */
2045$4
2046#include <$2>
2047_ACEOF
2048if ac_fn_cxx_try_compile "$LINENO"; then :
2049  ac_header_compiler=yes
2050else
2051  ac_header_compiler=no
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2055$as_echo "$ac_header_compiler" >&6; }
2056
2057# Is the header present?
2058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2059$as_echo_n "checking $2 presence... " >&6; }
2060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062#include <$2>
2063_ACEOF
2064if ac_fn_cxx_try_cpp "$LINENO"; then :
2065  ac_header_preproc=yes
2066else
2067  ac_header_preproc=no
2068fi
2069rm -f conftest.err conftest.i conftest.$ac_ext
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2071$as_echo "$ac_header_preproc" >&6; }
2072
2073# So?  What about this header?
2074case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2075  yes:no: )
2076    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2080    ;;
2081  no:yes:* )
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2085$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2089$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092    ;;
2093esac
2094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095$as_echo_n "checking for $2... " >&6; }
2096if eval \${$3+:} false; then :
2097  $as_echo_n "(cached) " >&6
2098else
2099  eval "$3=\$ac_header_compiler"
2100fi
2101eval ac_res=\$$3
2102	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104fi
2105  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107} # ac_fn_cxx_check_header_mongrel
2108
2109# ac_fn_cxx_check_func LINENO FUNC VAR
2110# ------------------------------------
2111# Tests whether FUNC exists, setting the cache variable VAR accordingly
2112ac_fn_cxx_check_func ()
2113{
2114  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116$as_echo_n "checking for $2... " >&6; }
2117if eval \${$3+:} false; then :
2118  $as_echo_n "(cached) " >&6
2119else
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2124#define $2 innocuous_$2
2125
2126/* System header to define __stub macros and hopefully few prototypes,
2127    which can conflict with char $2 (); below.
2128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2129    <limits.h> exists even on freestanding compilers.  */
2130
2131#ifdef __STDC__
2132# include <limits.h>
2133#else
2134# include <assert.h>
2135#endif
2136
2137#undef $2
2138
2139/* Override any GCC internal prototype to avoid an error.
2140   Use char because int might match the return type of a GCC
2141   builtin and then its argument prototype would still apply.  */
2142#ifdef __cplusplus
2143extern "C"
2144#endif
2145char $2 ();
2146/* The GNU C library defines this for functions which it implements
2147    to always fail with ENOSYS.  Some functions are actually named
2148    something starting with __ and the normal name is an alias.  */
2149#if defined __stub_$2 || defined __stub___$2
2150choke me
2151#endif
2152
2153int
2154main ()
2155{
2156return $2 ();
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_cxx_try_link "$LINENO"; then :
2162  eval "$3=yes"
2163else
2164  eval "$3=no"
2165fi
2166rm -f core conftest.err conftest.$ac_objext \
2167    conftest$ac_exeext conftest.$ac_ext
2168fi
2169eval ac_res=\$$3
2170	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173
2174} # ac_fn_cxx_check_func
2175cat >config.log <<_ACEOF
2176This file contains any messages produced by compilers while
2177running configure, to aid debugging if configure makes a mistake.
2178
2179It was created by snappy $as_me 1.1.2, which was
2180generated by GNU Autoconf 2.68.  Invocation command line was
2181
2182  $ $0 $@
2183
2184_ACEOF
2185exec 5>>config.log
2186{
2187cat <<_ASUNAME
2188## --------- ##
2189## Platform. ##
2190## --------- ##
2191
2192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197
2198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2200
2201/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2202/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2205/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2206/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2207/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2208
2209_ASUNAME
2210
2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214  IFS=$as_save_IFS
2215  test -z "$as_dir" && as_dir=.
2216    $as_echo "PATH: $as_dir"
2217  done
2218IFS=$as_save_IFS
2219
2220} >&5
2221
2222cat >&5 <<_ACEOF
2223
2224
2225## ----------- ##
2226## Core tests. ##
2227## ----------- ##
2228
2229_ACEOF
2230
2231
2232# Keep a trace of the command line.
2233# Strip out --no-create and --no-recursion so they do not pile up.
2234# Strip out --silent because we don't want to record it for future runs.
2235# Also quote any args containing shell meta-characters.
2236# Make two passes to allow for proper duplicate-argument suppression.
2237ac_configure_args=
2238ac_configure_args0=
2239ac_configure_args1=
2240ac_must_keep_next=false
2241for ac_pass in 1 2
2242do
2243  for ac_arg
2244  do
2245    case $ac_arg in
2246    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248    | -silent | --silent | --silen | --sile | --sil)
2249      continue ;;
2250    *\'*)
2251      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252    esac
2253    case $ac_pass in
2254    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255    2)
2256      as_fn_append ac_configure_args1 " '$ac_arg'"
2257      if test $ac_must_keep_next = true; then
2258	ac_must_keep_next=false # Got value, back to normal.
2259      else
2260	case $ac_arg in
2261	  *=* | --config-cache | -C | -disable-* | --disable-* \
2262	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264	  | -with-* | --with-* | -without-* | --without-* | --x)
2265	    case "$ac_configure_args0 " in
2266	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267	    esac
2268	    ;;
2269	  -* ) ac_must_keep_next=true ;;
2270	esac
2271      fi
2272      as_fn_append ac_configure_args " '$ac_arg'"
2273      ;;
2274    esac
2275  done
2276done
2277{ ac_configure_args0=; unset ac_configure_args0;}
2278{ ac_configure_args1=; unset ac_configure_args1;}
2279
2280# When interrupted or exit'd, cleanup temporary files, and complete
2281# config.log.  We remove comments because anyway the quotes in there
2282# would cause problems or look ugly.
2283# WARNING: Use '\'' to represent an apostrophe within the trap.
2284# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285trap 'exit_status=$?
2286  # Save into config.log some information that might help in debugging.
2287  {
2288    echo
2289
2290    $as_echo "## ---------------- ##
2291## Cache variables. ##
2292## ---------------- ##"
2293    echo
2294    # The following way of writing the cache mishandles newlines in values,
2295(
2296  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297    eval ac_val=\$$ac_var
2298    case $ac_val in #(
2299    *${as_nl}*)
2300      case $ac_var in #(
2301      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303      esac
2304      case $ac_var in #(
2305      _ | IFS | as_nl) ;; #(
2306      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307      *) { eval $ac_var=; unset $ac_var;} ;;
2308      esac ;;
2309    esac
2310  done
2311  (set) 2>&1 |
2312    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313    *${as_nl}ac_space=\ *)
2314      sed -n \
2315	"s/'\''/'\''\\\\'\'''\''/g;
2316	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317      ;; #(
2318    *)
2319      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320      ;;
2321    esac |
2322    sort
2323)
2324    echo
2325
2326    $as_echo "## ----------------- ##
2327## Output variables. ##
2328## ----------------- ##"
2329    echo
2330    for ac_var in $ac_subst_vars
2331    do
2332      eval ac_val=\$$ac_var
2333      case $ac_val in
2334      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335      esac
2336      $as_echo "$ac_var='\''$ac_val'\''"
2337    done | sort
2338    echo
2339
2340    if test -n "$ac_subst_files"; then
2341      $as_echo "## ------------------- ##
2342## File substitutions. ##
2343## ------------------- ##"
2344      echo
2345      for ac_var in $ac_subst_files
2346      do
2347	eval ac_val=\$$ac_var
2348	case $ac_val in
2349	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350	esac
2351	$as_echo "$ac_var='\''$ac_val'\''"
2352      done | sort
2353      echo
2354    fi
2355
2356    if test -s confdefs.h; then
2357      $as_echo "## ----------- ##
2358## confdefs.h. ##
2359## ----------- ##"
2360      echo
2361      cat confdefs.h
2362      echo
2363    fi
2364    test "$ac_signal" != 0 &&
2365      $as_echo "$as_me: caught signal $ac_signal"
2366    $as_echo "$as_me: exit $exit_status"
2367  } >&5
2368  rm -f core *.core core.conftest.* &&
2369    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370    exit $exit_status
2371' 0
2372for ac_signal in 1 2 13 15; do
2373  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374done
2375ac_signal=0
2376
2377# confdefs.h avoids OS command line length limits that DEFS can exceed.
2378rm -f -r conftest* confdefs.h
2379
2380$as_echo "/* confdefs.h */" > confdefs.h
2381
2382# Predefined preprocessor variables.
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_NAME "$PACKAGE_NAME"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_VERSION "$PACKAGE_VERSION"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_STRING "$PACKAGE_STRING"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402_ACEOF
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_URL "$PACKAGE_URL"
2406_ACEOF
2407
2408
2409# Let the site file select an alternate cache file if it wants to.
2410# Prefer an explicitly selected file to automatically selected ones.
2411ac_site_file1=NONE
2412ac_site_file2=NONE
2413if test -n "$CONFIG_SITE"; then
2414  # We do not want a PATH search for config.site.
2415  case $CONFIG_SITE in #((
2416    -*)  ac_site_file1=./$CONFIG_SITE;;
2417    */*) ac_site_file1=$CONFIG_SITE;;
2418    *)   ac_site_file1=./$CONFIG_SITE;;
2419  esac
2420elif test "x$prefix" != xNONE; then
2421  ac_site_file1=$prefix/share/config.site
2422  ac_site_file2=$prefix/etc/config.site
2423else
2424  ac_site_file1=$ac_default_prefix/share/config.site
2425  ac_site_file2=$ac_default_prefix/etc/config.site
2426fi
2427for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428do
2429  test "x$ac_site_file" = xNONE && continue
2430  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433    sed 's/^/| /' "$ac_site_file" >&5
2434    . "$ac_site_file" \
2435      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437as_fn_error $? "failed to load site script $ac_site_file
2438See \`config.log' for more details" "$LINENO" 5; }
2439  fi
2440done
2441
2442if test -r "$cache_file"; then
2443  # Some versions of bash will fail to source /dev/null (special files
2444  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2445  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447$as_echo "$as_me: loading cache $cache_file" >&6;}
2448    case $cache_file in
2449      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450      *)                      . "./$cache_file";;
2451    esac
2452  fi
2453else
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455$as_echo "$as_me: creating cache $cache_file" >&6;}
2456  >$cache_file
2457fi
2458
2459# Check that the precious variables saved in the cache have kept the same
2460# value.
2461ac_cache_corrupted=false
2462for ac_var in $ac_precious_vars; do
2463  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464  eval ac_new_set=\$ac_env_${ac_var}_set
2465  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466  eval ac_new_val=\$ac_env_${ac_var}_value
2467  case $ac_old_set,$ac_new_set in
2468    set,)
2469      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471      ac_cache_corrupted=: ;;
2472    ,set)
2473      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475      ac_cache_corrupted=: ;;
2476    ,);;
2477    *)
2478      if test "x$ac_old_val" != "x$ac_new_val"; then
2479	# differences in whitespace do not lead to failure.
2480	ac_old_val_w=`echo x $ac_old_val`
2481	ac_new_val_w=`echo x $ac_new_val`
2482	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485	  ac_cache_corrupted=:
2486	else
2487	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489	  eval $ac_var=\$ac_old_val
2490	fi
2491	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2492$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2493	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2494$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2495      fi;;
2496  esac
2497  # Pass precious variables to config.status.
2498  if test "$ac_new_set" = set; then
2499    case $ac_new_val in
2500    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501    *) ac_arg=$ac_var=$ac_new_val ;;
2502    esac
2503    case " $ac_configure_args " in
2504      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2505      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506    esac
2507  fi
2508done
2509if $ac_cache_corrupted; then
2510  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2514  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2515fi
2516## -------------------- ##
2517## Main body of script. ##
2518## -------------------- ##
2519
2520ac_ext=c
2521ac_cpp='$CPP $CPPFLAGS'
2522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526
2527
2528
2529# These are flags passed to automake (though they look like gcc flags!)
2530am__api_version='1.11'
2531
2532ac_aux_dir=
2533for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2534  if test -f "$ac_dir/install-sh"; then
2535    ac_aux_dir=$ac_dir
2536    ac_install_sh="$ac_aux_dir/install-sh -c"
2537    break
2538  elif test -f "$ac_dir/install.sh"; then
2539    ac_aux_dir=$ac_dir
2540    ac_install_sh="$ac_aux_dir/install.sh -c"
2541    break
2542  elif test -f "$ac_dir/shtool"; then
2543    ac_aux_dir=$ac_dir
2544    ac_install_sh="$ac_aux_dir/shtool install -c"
2545    break
2546  fi
2547done
2548if test -z "$ac_aux_dir"; then
2549  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2550fi
2551
2552# These three variables are undocumented and unsupported,
2553# and are intended to be withdrawn in a future Autoconf release.
2554# They can cause serious problems if a builder's source tree is in a directory
2555# whose full name contains unusual characters.
2556ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2557ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2558ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2559
2560
2561# Find a good install program.  We prefer a C program (faster),
2562# so one script is as good as another.  But avoid the broken or
2563# incompatible versions:
2564# SysV /etc/install, /usr/sbin/install
2565# SunOS /usr/etc/install
2566# IRIX /sbin/install
2567# AIX /bin/install
2568# AmigaOS /C/install, which installs bootblocks on floppy discs
2569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572# OS/2's system install, which has a completely different semantic
2573# ./install, which can be erroneously created by make from ./install.sh.
2574# Reject install programs that cannot install multiple files.
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576$as_echo_n "checking for a BSD-compatible install... " >&6; }
2577if test -z "$INSTALL"; then
2578if ${ac_cv_path_install+:} false; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in #((
2588  ./ | .// | /[cC]/* | \
2589  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591  /usr/ucb/* ) ;;
2592  *)
2593    # OSF1 and SCO ODT 3.0 have their own names for install.
2594    # Don't use installbsd from OSF since it installs stuff as root
2595    # by default.
2596    for ac_prog in ginstall scoinst install; do
2597      for ac_exec_ext in '' $ac_executable_extensions; do
2598	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2599	  if test $ac_prog = install &&
2600	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601	    # AIX install.  It has an incompatible calling convention.
2602	    :
2603	  elif test $ac_prog = install &&
2604	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605	    # program-specific install script used by HP pwplus--don't use.
2606	    :
2607	  else
2608	    rm -rf conftest.one conftest.two conftest.dir
2609	    echo one > conftest.one
2610	    echo two > conftest.two
2611	    mkdir conftest.dir
2612	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613	      test -s conftest.one && test -s conftest.two &&
2614	      test -s conftest.dir/conftest.one &&
2615	      test -s conftest.dir/conftest.two
2616	    then
2617	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618	      break 3
2619	    fi
2620	  fi
2621	fi
2622      done
2623    done
2624    ;;
2625esac
2626
2627  done
2628IFS=$as_save_IFS
2629
2630rm -rf conftest.one conftest.two conftest.dir
2631
2632fi
2633  if test "${ac_cv_path_install+set}" = set; then
2634    INSTALL=$ac_cv_path_install
2635  else
2636    # As a last resort, use the slow shell script.  Don't cache a
2637    # value for INSTALL within a source directory, because that will
2638    # break other packages using the cache if that directory is
2639    # removed, or if the value is a relative name.
2640    INSTALL=$ac_install_sh
2641  fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644$as_echo "$INSTALL" >&6; }
2645
2646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647# It thinks the first close brace ends the variable substitution.
2648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649
2650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651
2652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655$as_echo_n "checking whether build environment is sane... " >&6; }
2656# Just in case
2657sleep 1
2658echo timestamp > conftest.file
2659# Reject unsafe characters in $srcdir or the absolute working directory
2660# name.  Accept space and tab only in the latter.
2661am_lf='
2662'
2663case `pwd` in
2664  *[\\\"\#\$\&\'\`$am_lf]*)
2665    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2666esac
2667case $srcdir in
2668  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2669    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2670esac
2671
2672# Do `set' in a subshell so we don't clobber the current shell's
2673# arguments.  Must try -L first in case configure is actually a
2674# symlink; some systems play weird games with the mod time of symlinks
2675# (eg FreeBSD returns the mod time of the symlink's containing
2676# directory).
2677if (
2678   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679   if test "$*" = "X"; then
2680      # -L didn't work.
2681      set X `ls -t "$srcdir/configure" conftest.file`
2682   fi
2683   rm -f conftest.file
2684   if test "$*" != "X $srcdir/configure conftest.file" \
2685      && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687      # If neither matched, then we have a broken ls.  This can happen
2688      # if, for instance, CONFIG_SHELL is bash and it inherits a
2689      # broken ls alias from the environment.  This has actually
2690      # happened.  Such a system could not be considered "sane".
2691      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2692alias in your environment" "$LINENO" 5
2693   fi
2694
2695   test "$2" = conftest.file
2696   )
2697then
2698   # Ok.
2699   :
2700else
2701   as_fn_error $? "newly created file is older than distributed files!
2702Check your system clock" "$LINENO" 5
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2705$as_echo "yes" >&6; }
2706test "$program_prefix" != NONE &&
2707  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708# Use a double $ so make ignores it.
2709test "$program_suffix" != NONE &&
2710  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711# Double any \ or $.
2712# By default was `s,x,x', remove it if useless.
2713ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2715
2716# expand $ac_aux_dir to an absolute path
2717am_aux_dir=`cd $ac_aux_dir && pwd`
2718
2719if test x"${MISSING+set}" != xset; then
2720  case $am_aux_dir in
2721  *\ * | *\	*)
2722    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2723  *)
2724    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725  esac
2726fi
2727# Use eval to expand $SHELL
2728if eval "$MISSING --run true"; then
2729  am_missing_run="$MISSING --run "
2730else
2731  am_missing_run=
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2733$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2734fi
2735
2736if test x"${install_sh}" != xset; then
2737  case $am_aux_dir in
2738  *\ * | *\	*)
2739    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2740  *)
2741    install_sh="\${SHELL} $am_aux_dir/install-sh"
2742  esac
2743fi
2744
2745# Installed binaries are usually stripped using `strip' when the user
2746# run `make install-strip'.  However `strip' might not be the right
2747# tool to use in cross-compilation environments, therefore Automake
2748# will honor the `STRIP' environment variable to overrule this program.
2749if test "$cross_compiling" != no; then
2750  if test -n "$ac_tool_prefix"; then
2751  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752set dummy ${ac_tool_prefix}strip; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if ${ac_cv_prog_STRIP+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$STRIP"; then
2759  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766    for ac_exec_ext in '' $ac_executable_extensions; do
2767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773  done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778STRIP=$ac_cv_prog_STRIP
2779if test -n "$STRIP"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781$as_echo "$STRIP" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$ac_cv_prog_STRIP"; then
2790  ac_ct_STRIP=$STRIP
2791  # Extract the first word of "strip", so it can be a program name with args.
2792set dummy strip; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$ac_ct_STRIP"; then
2799  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808    ac_cv_prog_ac_ct_STRIP="strip"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819if test -n "$ac_ct_STRIP"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821$as_echo "$ac_ct_STRIP" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827  if test "x$ac_ct_STRIP" = x; then
2828    STRIP=":"
2829  else
2830    case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836    STRIP=$ac_ct_STRIP
2837  fi
2838else
2839  STRIP="$ac_cv_prog_STRIP"
2840fi
2841
2842fi
2843INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847if test -z "$MKDIR_P"; then
2848  if ${ac_cv_path_mkdir+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_prog in mkdir gmkdir; do
2857	 for ac_exec_ext in '' $ac_executable_extensions; do
2858	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2859	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860	     'mkdir (GNU coreutils) '* | \
2861	     'mkdir (coreutils) '* | \
2862	     'mkdir (fileutils) '4.1*)
2863	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864	       break 3;;
2865	   esac
2866	 done
2867       done
2868  done
2869IFS=$as_save_IFS
2870
2871fi
2872
2873  test -d ./--version && rmdir ./--version
2874  if test "${ac_cv_path_mkdir+set}" = set; then
2875    MKDIR_P="$ac_cv_path_mkdir -p"
2876  else
2877    # As a last resort, use the slow shell script.  Don't cache a
2878    # value for MKDIR_P within a source directory, because that will
2879    # break other packages using the cache if that directory is
2880    # removed, or if the value is a relative name.
2881    MKDIR_P="$ac_install_sh -d"
2882  fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885$as_echo "$MKDIR_P" >&6; }
2886
2887mkdir_p="$MKDIR_P"
2888case $mkdir_p in
2889  [\\/$]* | ?:[\\/]*) ;;
2890  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2891esac
2892
2893for ac_prog in gawk mawk nawk awk
2894do
2895  # Extract the first word of "$ac_prog", so it can be a program name with args.
2896set dummy $ac_prog; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if ${ac_cv_prog_AWK+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test -n "$AWK"; then
2903  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910    for ac_exec_ext in '' $ac_executable_extensions; do
2911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912    ac_cv_prog_AWK="$ac_prog"
2913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914    break 2
2915  fi
2916done
2917  done
2918IFS=$as_save_IFS
2919
2920fi
2921fi
2922AWK=$ac_cv_prog_AWK
2923if test -n "$AWK"; then
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2925$as_echo "$AWK" >&6; }
2926else
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
2929fi
2930
2931
2932  test -n "$AWK" && break
2933done
2934
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2936$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2937set x ${MAKE-make}
2938ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2939if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  cat >conftest.make <<\_ACEOF
2943SHELL = /bin/sh
2944all:
2945	@echo '@@@%%%=$(MAKE)=@@@%%%'
2946_ACEOF
2947# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2948case `${MAKE-make} -f conftest.make 2>/dev/null` in
2949  *@@@%%%=?*=@@@%%%*)
2950    eval ac_cv_prog_make_${ac_make}_set=yes;;
2951  *)
2952    eval ac_cv_prog_make_${ac_make}_set=no;;
2953esac
2954rm -f conftest.make
2955fi
2956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958$as_echo "yes" >&6; }
2959  SET_MAKE=
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963  SET_MAKE="MAKE=${MAKE-make}"
2964fi
2965
2966rm -rf .tst 2>/dev/null
2967mkdir .tst 2>/dev/null
2968if test -d .tst; then
2969  am__leading_dot=.
2970else
2971  am__leading_dot=_
2972fi
2973rmdir .tst 2>/dev/null
2974
2975if test "`cd $srcdir && pwd`" != "`pwd`"; then
2976  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2977  # is not polluted with repeated "-I."
2978  am__isrc=' -I$(srcdir)'
2979  # test to see if srcdir already configured
2980  if test -f $srcdir/config.status; then
2981    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2982  fi
2983fi
2984
2985# test whether we have cygpath
2986if test -z "$CYGPATH_W"; then
2987  if (cygpath --version) >/dev/null 2>/dev/null; then
2988    CYGPATH_W='cygpath -w'
2989  else
2990    CYGPATH_W=echo
2991  fi
2992fi
2993
2994
2995# Define the identity of the package.
2996 PACKAGE='snappy'
2997 VERSION='1.1.2'
2998
2999
3000cat >>confdefs.h <<_ACEOF
3001#define PACKAGE "$PACKAGE"
3002_ACEOF
3003
3004
3005cat >>confdefs.h <<_ACEOF
3006#define VERSION "$VERSION"
3007_ACEOF
3008
3009# Some tools Automake needs.
3010
3011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3012
3013
3014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3015
3016
3017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3018
3019
3020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3021
3022
3023MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3024
3025# We need awk for the "check" target.  The system "awk" is bad on
3026# some platforms.
3027# Always define AMTAR for backward compatibility.  Yes, it's still used
3028# in the wild :-(  We should find a proper way to deprecate it ...
3029AMTAR='$${TAR-tar}'
3030
3031am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3032
3033
3034
3035
3036
3037
3038case `pwd` in
3039  *\ * | *\	*)
3040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3041$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3042esac
3043
3044
3045
3046macro_version='2.4.2'
3047macro_revision='1.3337'
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061ltmain="$ac_aux_dir/ltmain.sh"
3062
3063# Make sure we can run config.sub.
3064$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3065  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3066
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3068$as_echo_n "checking build system type... " >&6; }
3069if ${ac_cv_build+:} false; then :
3070  $as_echo_n "(cached) " >&6
3071else
3072  ac_build_alias=$build_alias
3073test "x$ac_build_alias" = x &&
3074  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3075test "x$ac_build_alias" = x &&
3076  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3077ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3078  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3079
3080fi
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3082$as_echo "$ac_cv_build" >&6; }
3083case $ac_cv_build in
3084*-*-*) ;;
3085*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3086esac
3087build=$ac_cv_build
3088ac_save_IFS=$IFS; IFS='-'
3089set x $ac_cv_build
3090shift
3091build_cpu=$1
3092build_vendor=$2
3093shift; shift
3094# Remember, the first character of IFS is used to create $*,
3095# except with old shells:
3096build_os=$*
3097IFS=$ac_save_IFS
3098case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3099
3100
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3102$as_echo_n "checking host system type... " >&6; }
3103if ${ac_cv_host+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  if test "x$host_alias" = x; then
3107  ac_cv_host=$ac_cv_build
3108else
3109  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3110    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3111fi
3112
3113fi
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3115$as_echo "$ac_cv_host" >&6; }
3116case $ac_cv_host in
3117*-*-*) ;;
3118*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3119esac
3120host=$ac_cv_host
3121ac_save_IFS=$IFS; IFS='-'
3122set x $ac_cv_host
3123shift
3124host_cpu=$1
3125host_vendor=$2
3126shift; shift
3127# Remember, the first character of IFS is used to create $*,
3128# except with old shells:
3129host_os=$*
3130IFS=$ac_save_IFS
3131case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3132
3133
3134# Backslashify metacharacters that are still active within
3135# double-quoted strings.
3136sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3137
3138# Same as above, but do not quote variable references.
3139double_quote_subst='s/\(["`\\]\)/\\\1/g'
3140
3141# Sed substitution to delay expansion of an escaped shell variable in a
3142# double_quote_subst'ed string.
3143delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3144
3145# Sed substitution to delay expansion of an escaped single quote.
3146delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3147
3148# Sed substitution to avoid accidental globbing in evaled expressions
3149no_glob_subst='s/\*/\\\*/g'
3150
3151ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3152ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3153ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3154
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3156$as_echo_n "checking how to print strings... " >&6; }
3157# Test print first, because it will be a builtin if present.
3158if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3159   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3160  ECHO='print -r --'
3161elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3162  ECHO='printf %s\n'
3163else
3164  # Use this function as a fallback that always works.
3165  func_fallback_echo ()
3166  {
3167    eval 'cat <<_LTECHO_EOF
3168$1
3169_LTECHO_EOF'
3170  }
3171  ECHO='func_fallback_echo'
3172fi
3173
3174# func_echo_all arg...
3175# Invoke $ECHO with all args, space-separated.
3176func_echo_all ()
3177{
3178    $ECHO ""
3179}
3180
3181case "$ECHO" in
3182  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3183$as_echo "printf" >&6; } ;;
3184  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3185$as_echo "print -r" >&6; } ;;
3186  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3187$as_echo "cat" >&6; } ;;
3188esac
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203DEPDIR="${am__leading_dot}deps"
3204
3205ac_config_commands="$ac_config_commands depfiles"
3206
3207
3208am_make=${MAKE-make}
3209cat > confinc << 'END'
3210am__doit:
3211	@echo this is the am__doit target
3212.PHONY: am__doit
3213END
3214# If we don't find an include directive, just comment out the code.
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3216$as_echo_n "checking for style of include used by $am_make... " >&6; }
3217am__include="#"
3218am__quote=
3219_am_result=none
3220# First try GNU make style include.
3221echo "include confinc" > confmf
3222# Ignore all kinds of additional output from `make'.
3223case `$am_make -s -f confmf 2> /dev/null` in #(
3224*the\ am__doit\ target*)
3225  am__include=include
3226  am__quote=
3227  _am_result=GNU
3228  ;;
3229esac
3230# Now try BSD make style include.
3231if test "$am__include" = "#"; then
3232   echo '.include "confinc"' > confmf
3233   case `$am_make -s -f confmf 2> /dev/null` in #(
3234   *the\ am__doit\ target*)
3235     am__include=.include
3236     am__quote="\""
3237     _am_result=BSD
3238     ;;
3239   esac
3240fi
3241
3242
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3244$as_echo "$_am_result" >&6; }
3245rm -f confinc confmf
3246
3247# Check whether --enable-dependency-tracking was given.
3248if test "${enable_dependency_tracking+set}" = set; then :
3249  enableval=$enable_dependency_tracking;
3250fi
3251
3252if test "x$enable_dependency_tracking" != xno; then
3253  am_depcomp="$ac_aux_dir/depcomp"
3254  AMDEPBACKSLASH='\'
3255  am__nodep='_no'
3256fi
3257 if test "x$enable_dependency_tracking" != xno; then
3258  AMDEP_TRUE=
3259  AMDEP_FALSE='#'
3260else
3261  AMDEP_TRUE='#'
3262  AMDEP_FALSE=
3263fi
3264
3265
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271if test -n "$ac_tool_prefix"; then
3272  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_CC+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$CC"; then
3280  ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309fi
3310if test -z "$ac_cv_prog_CC"; then
3311  ac_ct_CC=$CC
3312  # Extract the first word of "gcc", so it can be a program name with args.
3313set dummy gcc; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if ${ac_cv_prog_ac_ct_CC+:} false; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  if test -n "$ac_ct_CC"; then
3320  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327    for ac_exec_ext in '' $ac_executable_extensions; do
3328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329    ac_cv_prog_ac_ct_CC="gcc"
3330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334  done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340if test -n "$ac_ct_CC"; then
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342$as_echo "$ac_ct_CC" >&6; }
3343else
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348  if test "x$ac_ct_CC" = x; then
3349    CC=""
3350  else
3351    case $cross_compiling:$ac_tool_warned in
3352yes:)
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3355ac_tool_warned=yes ;;
3356esac
3357    CC=$ac_ct_CC
3358  fi
3359else
3360  CC="$ac_cv_prog_CC"
3361fi
3362
3363if test -z "$CC"; then
3364          if test -n "$ac_tool_prefix"; then
3365    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3366set dummy ${ac_tool_prefix}cc; ac_word=$2
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368$as_echo_n "checking for $ac_word... " >&6; }
3369if ${ac_cv_prog_CC+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  if test -n "$CC"; then
3373  ac_cv_prog_CC="$CC" # Let the user override the test.
3374else
3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376for as_dir in $PATH
3377do
3378  IFS=$as_save_IFS
3379  test -z "$as_dir" && as_dir=.
3380    for ac_exec_ext in '' $ac_executable_extensions; do
3381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382    ac_cv_prog_CC="${ac_tool_prefix}cc"
3383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384    break 2
3385  fi
3386done
3387  done
3388IFS=$as_save_IFS
3389
3390fi
3391fi
3392CC=$ac_cv_prog_CC
3393if test -n "$CC"; then
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395$as_echo "$CC" >&6; }
3396else
3397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398$as_echo "no" >&6; }
3399fi
3400
3401
3402  fi
3403fi
3404if test -z "$CC"; then
3405  # Extract the first word of "cc", so it can be a program name with args.
3406set dummy cc; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
3409if ${ac_cv_prog_CC+:} false; then :
3410  $as_echo_n "(cached) " >&6
3411else
3412  if test -n "$CC"; then
3413  ac_cv_prog_CC="$CC" # Let the user override the test.
3414else
3415  ac_prog_rejected=no
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  test -z "$as_dir" && as_dir=.
3421    for ac_exec_ext in '' $ac_executable_extensions; do
3422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3424       ac_prog_rejected=yes
3425       continue
3426     fi
3427    ac_cv_prog_CC="cc"
3428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429    break 2
3430  fi
3431done
3432  done
3433IFS=$as_save_IFS
3434
3435if test $ac_prog_rejected = yes; then
3436  # We found a bogon in the path, so make sure we never use it.
3437  set dummy $ac_cv_prog_CC
3438  shift
3439  if test $# != 0; then
3440    # We chose a different compiler from the bogus one.
3441    # However, it has the same basename, so the bogon will be chosen
3442    # first if we set CC to just the basename; use the full file name.
3443    shift
3444    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3445  fi
3446fi
3447fi
3448fi
3449CC=$ac_cv_prog_CC
3450if test -n "$CC"; then
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452$as_echo "$CC" >&6; }
3453else
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
3456fi
3457
3458
3459fi
3460if test -z "$CC"; then
3461  if test -n "$ac_tool_prefix"; then
3462  for ac_prog in cl.exe
3463  do
3464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if ${ac_cv_prog_CC+:} false; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  if test -n "$CC"; then
3472  ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  test -z "$as_dir" && as_dir=.
3479    for ac_exec_ext in '' $ac_executable_extensions; do
3480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486  done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491CC=$ac_cv_prog_CC
3492if test -n "$CC"; then
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494$as_echo "$CC" >&6; }
3495else
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498fi
3499
3500
3501    test -n "$CC" && break
3502  done
3503fi
3504if test -z "$CC"; then
3505  ac_ct_CC=$CC
3506  for ac_prog in cl.exe
3507do
3508  # Extract the first word of "$ac_prog", so it can be a program name with args.
3509set dummy $ac_prog; ac_word=$2
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511$as_echo_n "checking for $ac_word... " >&6; }
3512if ${ac_cv_prog_ac_ct_CC+:} false; then :
3513  $as_echo_n "(cached) " >&6
3514else
3515  if test -n "$ac_ct_CC"; then
3516  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521  IFS=$as_save_IFS
3522  test -z "$as_dir" && as_dir=.
3523    for ac_exec_ext in '' $ac_executable_extensions; do
3524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525    ac_cv_prog_ac_ct_CC="$ac_prog"
3526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527    break 2
3528  fi
3529done
3530  done
3531IFS=$as_save_IFS
3532
3533fi
3534fi
3535ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536if test -n "$ac_ct_CC"; then
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538$as_echo "$ac_ct_CC" >&6; }
3539else
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545  test -n "$ac_ct_CC" && break
3546done
3547
3548  if test "x$ac_ct_CC" = x; then
3549    CC=""
3550  else
3551    case $cross_compiling:$ac_tool_warned in
3552yes:)
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555ac_tool_warned=yes ;;
3556esac
3557    CC=$ac_ct_CC
3558  fi
3559fi
3560
3561fi
3562
3563
3564test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566as_fn_error $? "no acceptable C compiler found in \$PATH
3567See \`config.log' for more details" "$LINENO" 5; }
3568
3569# Provide some information about the compiler.
3570$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3571set X $ac_compile
3572ac_compiler=$2
3573for ac_option in --version -v -V -qversion; do
3574  { { ac_try="$ac_compiler $ac_option >&5"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3582  ac_status=$?
3583  if test -s conftest.err; then
3584    sed '10a\
3585... rest of stderr output deleted ...
3586         10q' conftest.err >conftest.er1
3587    cat conftest.er1 >&5
3588  fi
3589  rm -f conftest.er1 conftest.err
3590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591  test $ac_status = 0; }
3592done
3593
3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h.  */
3596
3597int
3598main ()
3599{
3600
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605ac_clean_files_save=$ac_clean_files
3606ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3607# Try to create an executable without -o first, disregard a.out.
3608# It will help us diagnose broken compilers, and finding out an intuition
3609# of exeext.
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3611$as_echo_n "checking whether the C compiler works... " >&6; }
3612ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613
3614# The possible output files:
3615ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3616
3617ac_rmfiles=
3618for ac_file in $ac_files
3619do
3620  case $ac_file in
3621    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3623  esac
3624done
3625rm -f $ac_rmfiles
3626
3627if { { ac_try="$ac_link_default"
3628case "(($ac_try" in
3629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630  *) ac_try_echo=$ac_try;;
3631esac
3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633$as_echo "$ac_try_echo"; } >&5
3634  (eval "$ac_link_default") 2>&5
3635  ac_status=$?
3636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637  test $ac_status = 0; }; then :
3638  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3639# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3640# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3641# so that the user can short-circuit this test for compilers unknown to
3642# Autoconf.
3643for ac_file in $ac_files ''
3644do
3645  test -f "$ac_file" || continue
3646  case $ac_file in
3647    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3648	;;
3649    [ab].out )
3650	# We found the default executable, but exeext='' is most
3651	# certainly right.
3652	break;;
3653    *.* )
3654	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3655	then :; else
3656	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657	fi
3658	# We set ac_cv_exeext here because the later test for it is not
3659	# safe: cross compilers may not add the suffix if given an `-o'
3660	# argument, so we may need to know it at that point already.
3661	# Even if this section looks crufty: it has the advantage of
3662	# actually working.
3663	break;;
3664    * )
3665	break;;
3666  esac
3667done
3668test "$ac_cv_exeext" = no && ac_cv_exeext=
3669
3670else
3671  ac_file=''
3672fi
3673if test -z "$ac_file"; then :
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675$as_echo "no" >&6; }
3676$as_echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681as_fn_error 77 "C compiler cannot create executables
3682See \`config.log' for more details" "$LINENO" 5; }
3683else
3684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685$as_echo "yes" >&6; }
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3688$as_echo_n "checking for C compiler default output file name... " >&6; }
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3690$as_echo "$ac_file" >&6; }
3691ac_exeext=$ac_cv_exeext
3692
3693rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3694ac_clean_files=$ac_clean_files_save
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3696$as_echo_n "checking for suffix of executables... " >&6; }
3697if { { ac_try="$ac_link"
3698case "(($ac_try" in
3699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700  *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703$as_echo "$ac_try_echo"; } >&5
3704  (eval "$ac_link") 2>&5
3705  ac_status=$?
3706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707  test $ac_status = 0; }; then :
3708  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3709# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3710# work properly (i.e., refer to `conftest.exe'), while it won't with
3711# `rm'.
3712for ac_file in conftest.exe conftest conftest.*; do
3713  test -f "$ac_file" || continue
3714  case $ac_file in
3715    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3716    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717	  break;;
3718    * ) break;;
3719  esac
3720done
3721else
3722  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3725See \`config.log' for more details" "$LINENO" 5; }
3726fi
3727rm -f conftest conftest$ac_cv_exeext
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3729$as_echo "$ac_cv_exeext" >&6; }
3730
3731rm -f conftest.$ac_ext
3732EXEEXT=$ac_cv_exeext
3733ac_exeext=$EXEEXT
3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736#include <stdio.h>
3737int
3738main ()
3739{
3740FILE *f = fopen ("conftest.out", "w");
3741 return ferror (f) || fclose (f) != 0;
3742
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747ac_clean_files="$ac_clean_files conftest.out"
3748# Check that the compiler produces executables we can run.  If not, either
3749# the compiler is broken, or we cross compile.
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3751$as_echo_n "checking whether we are cross compiling... " >&6; }
3752if test "$cross_compiling" != yes; then
3753  { { ac_try="$ac_link"
3754case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759$as_echo "$ac_try_echo"; } >&5
3760  (eval "$ac_link") 2>&5
3761  ac_status=$?
3762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763  test $ac_status = 0; }
3764  if { ac_try='./conftest$ac_cv_exeext'
3765  { { case "(($ac_try" in
3766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767  *) ac_try_echo=$ac_try;;
3768esac
3769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770$as_echo "$ac_try_echo"; } >&5
3771  (eval "$ac_try") 2>&5
3772  ac_status=$?
3773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774  test $ac_status = 0; }; }; then
3775    cross_compiling=no
3776  else
3777    if test "$cross_compiling" = maybe; then
3778	cross_compiling=yes
3779    else
3780	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782as_fn_error $? "cannot run C compiled programs.
3783If you meant to cross compile, use \`--host'.
3784See \`config.log' for more details" "$LINENO" 5; }
3785    fi
3786  fi
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3789$as_echo "$cross_compiling" >&6; }
3790
3791rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3792ac_clean_files=$ac_clean_files_save
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3794$as_echo_n "checking for suffix of object files... " >&6; }
3795if ${ac_cv_objext+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800
3801int
3802main ()
3803{
3804
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809rm -f conftest.o conftest.obj
3810if { { ac_try="$ac_compile"
3811case "(($ac_try" in
3812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813  *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817  (eval "$ac_compile") 2>&5
3818  ac_status=$?
3819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820  test $ac_status = 0; }; then :
3821  for ac_file in conftest.o conftest.obj conftest.*; do
3822  test -f "$ac_file" || continue;
3823  case $ac_file in
3824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3825    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3826       break;;
3827  esac
3828done
3829else
3830  $as_echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835as_fn_error $? "cannot compute suffix of object files: cannot compile
3836See \`config.log' for more details" "$LINENO" 5; }
3837fi
3838rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839fi
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3841$as_echo "$ac_cv_objext" >&6; }
3842OBJEXT=$ac_cv_objext
3843ac_objext=$OBJEXT
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3845$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3846if ${ac_cv_c_compiler_gnu+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851
3852int
3853main ()
3854{
3855#ifndef __GNUC__
3856       choke me
3857#endif
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864  ac_compiler_gnu=yes
3865else
3866  ac_compiler_gnu=no
3867fi
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869ac_cv_c_compiler_gnu=$ac_compiler_gnu
3870
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3873$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3874if test $ac_compiler_gnu = yes; then
3875  GCC=yes
3876else
3877  GCC=
3878fi
3879ac_test_CFLAGS=${CFLAGS+set}
3880ac_save_CFLAGS=$CFLAGS
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3882$as_echo_n "checking whether $CC accepts -g... " >&6; }
3883if ${ac_cv_prog_cc_g+:} false; then :
3884  $as_echo_n "(cached) " >&6
3885else
3886  ac_save_c_werror_flag=$ac_c_werror_flag
3887   ac_c_werror_flag=yes
3888   ac_cv_prog_cc_g=no
3889   CFLAGS="-g"
3890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893int
3894main ()
3895{
3896
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901if ac_fn_c_try_compile "$LINENO"; then :
3902  ac_cv_prog_cc_g=yes
3903else
3904  CFLAGS=""
3905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h.  */
3907
3908int
3909main ()
3910{
3911
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_compile "$LINENO"; then :
3917
3918else
3919  ac_c_werror_flag=$ac_save_c_werror_flag
3920	 CFLAGS="-g"
3921	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h.  */
3923
3924int
3925main ()
3926{
3927
3928  ;
3929  return 0;
3930}
3931_ACEOF
3932if ac_fn_c_try_compile "$LINENO"; then :
3933  ac_cv_prog_cc_g=yes
3934fi
3935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936fi
3937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938fi
3939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940   ac_c_werror_flag=$ac_save_c_werror_flag
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3943$as_echo "$ac_cv_prog_cc_g" >&6; }
3944if test "$ac_test_CFLAGS" = set; then
3945  CFLAGS=$ac_save_CFLAGS
3946elif test $ac_cv_prog_cc_g = yes; then
3947  if test "$GCC" = yes; then
3948    CFLAGS="-g -O2"
3949  else
3950    CFLAGS="-g"
3951  fi
3952else
3953  if test "$GCC" = yes; then
3954    CFLAGS="-O2"
3955  else
3956    CFLAGS=
3957  fi
3958fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3960$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3961if ${ac_cv_prog_cc_c89+:} false; then :
3962  $as_echo_n "(cached) " >&6
3963else
3964  ac_cv_prog_cc_c89=no
3965ac_save_CC=$CC
3966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968#include <stdarg.h>
3969#include <stdio.h>
3970#include <sys/types.h>
3971#include <sys/stat.h>
3972/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3973struct buf { int x; };
3974FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975static char *e (p, i)
3976     char **p;
3977     int i;
3978{
3979  return p[i];
3980}
3981static char *f (char * (*g) (char **, int), char **p, ...)
3982{
3983  char *s;
3984  va_list v;
3985  va_start (v,p);
3986  s = g (p, va_arg (v,int));
3987  va_end (v);
3988  return s;
3989}
3990
3991/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3992   function prototypes and stuff, but not '\xHH' hex character constants.
3993   These don't provoke an error unfortunately, instead are silently treated
3994   as 'x'.  The following induces an error, until -std is added to get
3995   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3996   array size at least.  It's necessary to write '\x00'==0 to get something
3997   that's true only with -std.  */
3998int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999
4000/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001   inside strings and character constants.  */
4002#define FOO(x) 'x'
4003int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004
4005int test (int i, double x);
4006struct s1 {int (*f) (int a);};
4007struct s2 {int (*f) (double a);};
4008int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4009int argc;
4010char **argv;
4011int
4012main ()
4013{
4014return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021do
4022  CC="$ac_save_CC $ac_arg"
4023  if ac_fn_c_try_compile "$LINENO"; then :
4024  ac_cv_prog_cc_c89=$ac_arg
4025fi
4026rm -f core conftest.err conftest.$ac_objext
4027  test "x$ac_cv_prog_cc_c89" != "xno" && break
4028done
4029rm -f conftest.$ac_ext
4030CC=$ac_save_CC
4031
4032fi
4033# AC_CACHE_VAL
4034case "x$ac_cv_prog_cc_c89" in
4035  x)
4036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4037$as_echo "none needed" >&6; } ;;
4038  xno)
4039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4040$as_echo "unsupported" >&6; } ;;
4041  *)
4042    CC="$CC $ac_cv_prog_cc_c89"
4043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4044$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4045esac
4046if test "x$ac_cv_prog_cc_c89" != xno; then :
4047
4048fi
4049
4050ac_ext=c
4051ac_cpp='$CPP $CPPFLAGS'
4052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056depcc="$CC"   am_compiler_list=
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4059$as_echo_n "checking dependency style of $depcc... " >&6; }
4060if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4064  # We make a subdir and do the tests there.  Otherwise we can end up
4065  # making bogus files that we don't know about and never remove.  For
4066  # instance it was reported that on HP-UX the gcc test will end up
4067  # making a dummy file named `D' -- because `-MD' means `put the output
4068  # in D'.
4069  rm -rf conftest.dir
4070  mkdir conftest.dir
4071  # Copy depcomp to subdir because otherwise we won't find it if we're
4072  # using a relative directory.
4073  cp "$am_depcomp" conftest.dir
4074  cd conftest.dir
4075  # We will build objects and dependencies in a subdirectory because
4076  # it helps to detect inapplicable dependency modes.  For instance
4077  # both Tru64's cc and ICC support -MD to output dependencies as a
4078  # side effect of compilation, but ICC will put the dependencies in
4079  # the current directory while Tru64 will put them in the object
4080  # directory.
4081  mkdir sub
4082
4083  am_cv_CC_dependencies_compiler_type=none
4084  if test "$am_compiler_list" = ""; then
4085     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4086  fi
4087  am__universal=false
4088  case " $depcc " in #(
4089     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4090     esac
4091
4092  for depmode in $am_compiler_list; do
4093    # Setup a source with many dependencies, because some compilers
4094    # like to wrap large dependency lists on column 80 (with \), and
4095    # we should not choose a depcomp mode which is confused by this.
4096    #
4097    # We need to recreate these files for each test, as the compiler may
4098    # overwrite some of them when testing with obscure command lines.
4099    # This happens at least with the AIX C compiler.
4100    : > sub/conftest.c
4101    for i in 1 2 3 4 5 6; do
4102      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4103      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4104      # Solaris 8's {/usr,}/bin/sh.
4105      touch sub/conftst$i.h
4106    done
4107    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4108
4109    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4110    # mode.  It turns out that the SunPro C++ compiler does not properly
4111    # handle `-M -o', and we need to detect this.  Also, some Intel
4112    # versions had trouble with output in subdirs
4113    am__obj=sub/conftest.${OBJEXT-o}
4114    am__minus_obj="-o $am__obj"
4115    case $depmode in
4116    gcc)
4117      # This depmode causes a compiler race in universal mode.
4118      test "$am__universal" = false || continue
4119      ;;
4120    nosideeffect)
4121      # after this tag, mechanisms are not by side-effect, so they'll
4122      # only be used when explicitly requested
4123      if test "x$enable_dependency_tracking" = xyes; then
4124	continue
4125      else
4126	break
4127      fi
4128      ;;
4129    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4130      # This compiler won't grok `-c -o', but also, the minuso test has
4131      # not run yet.  These depmodes are late enough in the game, and
4132      # so weak that their functioning should not be impacted.
4133      am__obj=conftest.${OBJEXT-o}
4134      am__minus_obj=
4135      ;;
4136    none) break ;;
4137    esac
4138    if depmode=$depmode \
4139       source=sub/conftest.c object=$am__obj \
4140       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4141       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4142         >/dev/null 2>conftest.err &&
4143       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4144       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4145       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4146       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4147      # icc doesn't choke on unknown options, it will just issue warnings
4148      # or remarks (even with -Werror).  So we grep stderr for any message
4149      # that says an option was ignored or not supported.
4150      # When given -MP, icc 7.0 and 7.1 complain thusly:
4151      #   icc: Command line warning: ignoring option '-M'; no argument required
4152      # The diagnosis changed in icc 8.0:
4153      #   icc: Command line remark: option '-MP' not supported
4154      if (grep 'ignoring option' conftest.err ||
4155          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4156        am_cv_CC_dependencies_compiler_type=$depmode
4157        break
4158      fi
4159    fi
4160  done
4161
4162  cd ..
4163  rm -rf conftest.dir
4164else
4165  am_cv_CC_dependencies_compiler_type=none
4166fi
4167
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4170$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4171CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4172
4173 if
4174  test "x$enable_dependency_tracking" != xno \
4175  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4176  am__fastdepCC_TRUE=
4177  am__fastdepCC_FALSE='#'
4178else
4179  am__fastdepCC_TRUE='#'
4180  am__fastdepCC_FALSE=
4181fi
4182
4183
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4185$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4186if ${ac_cv_path_SED+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4190     for ac_i in 1 2 3 4 5 6 7; do
4191       ac_script="$ac_script$as_nl$ac_script"
4192     done
4193     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4194     { ac_script=; unset ac_script;}
4195     if test -z "$SED"; then
4196  ac_path_SED_found=false
4197  # Loop through the user's path and test for each of PROGNAME-LIST
4198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201  IFS=$as_save_IFS
4202  test -z "$as_dir" && as_dir=.
4203    for ac_prog in sed gsed; do
4204    for ac_exec_ext in '' $ac_executable_extensions; do
4205      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4206      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4207# Check for GNU ac_path_SED and select it if it is found.
4208  # Check for GNU $ac_path_SED
4209case `"$ac_path_SED" --version 2>&1` in
4210*GNU*)
4211  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4212*)
4213  ac_count=0
4214  $as_echo_n 0123456789 >"conftest.in"
4215  while :
4216  do
4217    cat "conftest.in" "conftest.in" >"conftest.tmp"
4218    mv "conftest.tmp" "conftest.in"
4219    cp "conftest.in" "conftest.nl"
4220    $as_echo '' >> "conftest.nl"
4221    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4222    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4223    as_fn_arith $ac_count + 1 && ac_count=$as_val
4224    if test $ac_count -gt ${ac_path_SED_max-0}; then
4225      # Best one so far, save it but keep looking for a better one
4226      ac_cv_path_SED="$ac_path_SED"
4227      ac_path_SED_max=$ac_count
4228    fi
4229    # 10*(2^10) chars as input seems more than enough
4230    test $ac_count -gt 10 && break
4231  done
4232  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4233esac
4234
4235      $ac_path_SED_found && break 3
4236    done
4237  done
4238  done
4239IFS=$as_save_IFS
4240  if test -z "$ac_cv_path_SED"; then
4241    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4242  fi
4243else
4244  ac_cv_path_SED=$SED
4245fi
4246
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4249$as_echo "$ac_cv_path_SED" >&6; }
4250 SED="$ac_cv_path_SED"
4251  rm -f conftest.sed
4252
4253test -z "$SED" && SED=sed
4254Xsed="$SED -e 1s/^X//"
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4267$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4268if ${ac_cv_path_GREP+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  if test -z "$GREP"; then
4272  ac_path_GREP_found=false
4273  # Loop through the user's path and test for each of PROGNAME-LIST
4274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279    for ac_prog in grep ggrep; do
4280    for ac_exec_ext in '' $ac_executable_extensions; do
4281      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4282      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4283# Check for GNU ac_path_GREP and select it if it is found.
4284  # Check for GNU $ac_path_GREP
4285case `"$ac_path_GREP" --version 2>&1` in
4286*GNU*)
4287  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4288*)
4289  ac_count=0
4290  $as_echo_n 0123456789 >"conftest.in"
4291  while :
4292  do
4293    cat "conftest.in" "conftest.in" >"conftest.tmp"
4294    mv "conftest.tmp" "conftest.in"
4295    cp "conftest.in" "conftest.nl"
4296    $as_echo 'GREP' >> "conftest.nl"
4297    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4298    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4299    as_fn_arith $ac_count + 1 && ac_count=$as_val
4300    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4301      # Best one so far, save it but keep looking for a better one
4302      ac_cv_path_GREP="$ac_path_GREP"
4303      ac_path_GREP_max=$ac_count
4304    fi
4305    # 10*(2^10) chars as input seems more than enough
4306    test $ac_count -gt 10 && break
4307  done
4308  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4309esac
4310
4311      $ac_path_GREP_found && break 3
4312    done
4313  done
4314  done
4315IFS=$as_save_IFS
4316  if test -z "$ac_cv_path_GREP"; then
4317    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4318  fi
4319else
4320  ac_cv_path_GREP=$GREP
4321fi
4322
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4325$as_echo "$ac_cv_path_GREP" >&6; }
4326 GREP="$ac_cv_path_GREP"
4327
4328
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4330$as_echo_n "checking for egrep... " >&6; }
4331if ${ac_cv_path_EGREP+:} false; then :
4332  $as_echo_n "(cached) " >&6
4333else
4334  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4335   then ac_cv_path_EGREP="$GREP -E"
4336   else
4337     if test -z "$EGREP"; then
4338  ac_path_EGREP_found=false
4339  # Loop through the user's path and test for each of PROGNAME-LIST
4340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342do
4343  IFS=$as_save_IFS
4344  test -z "$as_dir" && as_dir=.
4345    for ac_prog in egrep; do
4346    for ac_exec_ext in '' $ac_executable_extensions; do
4347      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4348      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4349# Check for GNU ac_path_EGREP and select it if it is found.
4350  # Check for GNU $ac_path_EGREP
4351case `"$ac_path_EGREP" --version 2>&1` in
4352*GNU*)
4353  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4354*)
4355  ac_count=0
4356  $as_echo_n 0123456789 >"conftest.in"
4357  while :
4358  do
4359    cat "conftest.in" "conftest.in" >"conftest.tmp"
4360    mv "conftest.tmp" "conftest.in"
4361    cp "conftest.in" "conftest.nl"
4362    $as_echo 'EGREP' >> "conftest.nl"
4363    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365    as_fn_arith $ac_count + 1 && ac_count=$as_val
4366    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4367      # Best one so far, save it but keep looking for a better one
4368      ac_cv_path_EGREP="$ac_path_EGREP"
4369      ac_path_EGREP_max=$ac_count
4370    fi
4371    # 10*(2^10) chars as input seems more than enough
4372    test $ac_count -gt 10 && break
4373  done
4374  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375esac
4376
4377      $ac_path_EGREP_found && break 3
4378    done
4379  done
4380  done
4381IFS=$as_save_IFS
4382  if test -z "$ac_cv_path_EGREP"; then
4383    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4384  fi
4385else
4386  ac_cv_path_EGREP=$EGREP
4387fi
4388
4389   fi
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4392$as_echo "$ac_cv_path_EGREP" >&6; }
4393 EGREP="$ac_cv_path_EGREP"
4394
4395
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4397$as_echo_n "checking for fgrep... " >&6; }
4398if ${ac_cv_path_FGREP+:} false; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4402   then ac_cv_path_FGREP="$GREP -F"
4403   else
4404     if test -z "$FGREP"; then
4405  ac_path_FGREP_found=false
4406  # Loop through the user's path and test for each of PROGNAME-LIST
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_prog in fgrep; do
4413    for ac_exec_ext in '' $ac_executable_extensions; do
4414      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4415      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4416# Check for GNU ac_path_FGREP and select it if it is found.
4417  # Check for GNU $ac_path_FGREP
4418case `"$ac_path_FGREP" --version 2>&1` in
4419*GNU*)
4420  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4421*)
4422  ac_count=0
4423  $as_echo_n 0123456789 >"conftest.in"
4424  while :
4425  do
4426    cat "conftest.in" "conftest.in" >"conftest.tmp"
4427    mv "conftest.tmp" "conftest.in"
4428    cp "conftest.in" "conftest.nl"
4429    $as_echo 'FGREP' >> "conftest.nl"
4430    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432    as_fn_arith $ac_count + 1 && ac_count=$as_val
4433    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4434      # Best one so far, save it but keep looking for a better one
4435      ac_cv_path_FGREP="$ac_path_FGREP"
4436      ac_path_FGREP_max=$ac_count
4437    fi
4438    # 10*(2^10) chars as input seems more than enough
4439    test $ac_count -gt 10 && break
4440  done
4441  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442esac
4443
4444      $ac_path_FGREP_found && break 3
4445    done
4446  done
4447  done
4448IFS=$as_save_IFS
4449  if test -z "$ac_cv_path_FGREP"; then
4450    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451  fi
4452else
4453  ac_cv_path_FGREP=$FGREP
4454fi
4455
4456   fi
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4459$as_echo "$ac_cv_path_FGREP" >&6; }
4460 FGREP="$ac_cv_path_FGREP"
4461
4462
4463test -z "$GREP" && GREP=grep
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483# Check whether --with-gnu-ld was given.
4484if test "${with_gnu_ld+set}" = set; then :
4485  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4486else
4487  with_gnu_ld=no
4488fi
4489
4490ac_prog=ld
4491if test "$GCC" = yes; then
4492  # Check if gcc -print-prog-name=ld gives a path.
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4494$as_echo_n "checking for ld used by $CC... " >&6; }
4495  case $host in
4496  *-*-mingw*)
4497    # gcc leaves a trailing carriage return which upsets mingw
4498    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4499  *)
4500    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4501  esac
4502  case $ac_prog in
4503    # Accept absolute paths.
4504    [\\/]* | ?:[\\/]*)
4505      re_direlt='/[^/][^/]*/\.\./'
4506      # Canonicalize the pathname of ld
4507      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4508      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4509	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4510      done
4511      test -z "$LD" && LD="$ac_prog"
4512      ;;
4513  "")
4514    # If it fails, then pretend we aren't using GCC.
4515    ac_prog=ld
4516    ;;
4517  *)
4518    # If it is relative, then search for the first ld in PATH.
4519    with_gnu_ld=unknown
4520    ;;
4521  esac
4522elif test "$with_gnu_ld" = yes; then
4523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4524$as_echo_n "checking for GNU ld... " >&6; }
4525else
4526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4527$as_echo_n "checking for non-GNU ld... " >&6; }
4528fi
4529if ${lt_cv_path_LD+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  if test -z "$LD"; then
4533  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4534  for ac_dir in $PATH; do
4535    IFS="$lt_save_ifs"
4536    test -z "$ac_dir" && ac_dir=.
4537    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4538      lt_cv_path_LD="$ac_dir/$ac_prog"
4539      # Check to see if the program is GNU ld.  I'd rather use --version,
4540      # but apparently some variants of GNU ld only accept -v.
4541      # Break only if it was the GNU/non-GNU ld that we prefer.
4542      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4543      *GNU* | *'with BFD'*)
4544	test "$with_gnu_ld" != no && break
4545	;;
4546      *)
4547	test "$with_gnu_ld" != yes && break
4548	;;
4549      esac
4550    fi
4551  done
4552  IFS="$lt_save_ifs"
4553else
4554  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4555fi
4556fi
4557
4558LD="$lt_cv_path_LD"
4559if test -n "$LD"; then
4560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4561$as_echo "$LD" >&6; }
4562else
4563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564$as_echo "no" >&6; }
4565fi
4566test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4568$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4569if ${lt_cv_prog_gnu_ld+:} false; then :
4570  $as_echo_n "(cached) " >&6
4571else
4572  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4573case `$LD -v 2>&1 </dev/null` in
4574*GNU* | *'with BFD'*)
4575  lt_cv_prog_gnu_ld=yes
4576  ;;
4577*)
4578  lt_cv_prog_gnu_ld=no
4579  ;;
4580esac
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4583$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4584with_gnu_ld=$lt_cv_prog_gnu_ld
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4595$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4596if ${lt_cv_path_NM+:} false; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599  if test -n "$NM"; then
4600  # Let the user override the test.
4601  lt_cv_path_NM="$NM"
4602else
4603  lt_nm_to_check="${ac_tool_prefix}nm"
4604  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4605    lt_nm_to_check="$lt_nm_to_check nm"
4606  fi
4607  for lt_tmp_nm in $lt_nm_to_check; do
4608    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4609    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4610      IFS="$lt_save_ifs"
4611      test -z "$ac_dir" && ac_dir=.
4612      tmp_nm="$ac_dir/$lt_tmp_nm"
4613      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4614	# Check to see if the nm accepts a BSD-compat flag.
4615	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4616	#   nm: unknown option "B" ignored
4617	# Tru64's nm complains that /dev/null is an invalid object file
4618	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4619	*/dev/null* | *'Invalid file or object type'*)
4620	  lt_cv_path_NM="$tmp_nm -B"
4621	  break
4622	  ;;
4623	*)
4624	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4625	  */dev/null*)
4626	    lt_cv_path_NM="$tmp_nm -p"
4627	    break
4628	    ;;
4629	  *)
4630	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4631	    continue # so that we can try to find one that supports BSD flags
4632	    ;;
4633	  esac
4634	  ;;
4635	esac
4636      fi
4637    done
4638    IFS="$lt_save_ifs"
4639  done
4640  : ${lt_cv_path_NM=no}
4641fi
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4644$as_echo "$lt_cv_path_NM" >&6; }
4645if test "$lt_cv_path_NM" != "no"; then
4646  NM="$lt_cv_path_NM"
4647else
4648  # Didn't find any BSD compatible name lister, look for dumpbin.
4649  if test -n "$DUMPBIN"; then :
4650    # Let the user override the test.
4651  else
4652    if test -n "$ac_tool_prefix"; then
4653  for ac_prog in dumpbin "link -dump"
4654  do
4655    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
4659if ${ac_cv_prog_DUMPBIN+:} false; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  if test -n "$DUMPBIN"; then
4663  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677  done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682DUMPBIN=$ac_cv_prog_DUMPBIN
4683if test -n "$DUMPBIN"; then
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4685$as_echo "$DUMPBIN" >&6; }
4686else
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689fi
4690
4691
4692    test -n "$DUMPBIN" && break
4693  done
4694fi
4695if test -z "$DUMPBIN"; then
4696  ac_ct_DUMPBIN=$DUMPBIN
4697  for ac_prog in dumpbin "link -dump"
4698do
4699  # Extract the first word of "$ac_prog", so it can be a program name with args.
4700set dummy $ac_prog; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
4703if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  if test -n "$ac_ct_DUMPBIN"; then
4707  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712  IFS=$as_save_IFS
4713  test -z "$as_dir" && as_dir=.
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4727if test -n "$ac_ct_DUMPBIN"; then
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4729$as_echo "$ac_ct_DUMPBIN" >&6; }
4730else
4731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736  test -n "$ac_ct_DUMPBIN" && break
4737done
4738
4739  if test "x$ac_ct_DUMPBIN" = x; then
4740    DUMPBIN=":"
4741  else
4742    case $cross_compiling:$ac_tool_warned in
4743yes:)
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4746ac_tool_warned=yes ;;
4747esac
4748    DUMPBIN=$ac_ct_DUMPBIN
4749  fi
4750fi
4751
4752    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4753    *COFF*)
4754      DUMPBIN="$DUMPBIN -symbols"
4755      ;;
4756    *)
4757      DUMPBIN=:
4758      ;;
4759    esac
4760  fi
4761
4762  if test "$DUMPBIN" != ":"; then
4763    NM="$DUMPBIN"
4764  fi
4765fi
4766test -z "$NM" && NM=nm
4767
4768
4769
4770
4771
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4774$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4775if ${lt_cv_nm_interface+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  lt_cv_nm_interface="BSD nm"
4779  echo "int some_variable = 0;" > conftest.$ac_ext
4780  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4781  (eval "$ac_compile" 2>conftest.err)
4782  cat conftest.err >&5
4783  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4784  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4785  cat conftest.err >&5
4786  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4787  cat conftest.out >&5
4788  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4789    lt_cv_nm_interface="MS dumpbin"
4790  fi
4791  rm -f conftest*
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4794$as_echo "$lt_cv_nm_interface" >&6; }
4795
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4797$as_echo_n "checking whether ln -s works... " >&6; }
4798LN_S=$as_ln_s
4799if test "$LN_S" = "ln -s"; then
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801$as_echo "yes" >&6; }
4802else
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4804$as_echo "no, using $LN_S" >&6; }
4805fi
4806
4807# find the maximum length of command line arguments
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4809$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4810if ${lt_cv_sys_max_cmd_len+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813    i=0
4814  teststring="ABCD"
4815
4816  case $build_os in
4817  msdosdjgpp*)
4818    # On DJGPP, this test can blow up pretty badly due to problems in libc
4819    # (any single argument exceeding 2000 bytes causes a buffer overrun
4820    # during glob expansion).  Even if it were fixed, the result of this
4821    # check would be larger than it should be.
4822    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4823    ;;
4824
4825  gnu*)
4826    # Under GNU Hurd, this test is not required because there is
4827    # no limit to the length of command line arguments.
4828    # Libtool will interpret -1 as no limit whatsoever
4829    lt_cv_sys_max_cmd_len=-1;
4830    ;;
4831
4832  cygwin* | mingw* | cegcc*)
4833    # On Win9x/ME, this test blows up -- it succeeds, but takes
4834    # about 5 minutes as the teststring grows exponentially.
4835    # Worse, since 9x/ME are not pre-emptively multitasking,
4836    # you end up with a "frozen" computer, even though with patience
4837    # the test eventually succeeds (with a max line length of 256k).
4838    # Instead, let's just punt: use the minimum linelength reported by
4839    # all of the supported platforms: 8192 (on NT/2K/XP).
4840    lt_cv_sys_max_cmd_len=8192;
4841    ;;
4842
4843  mint*)
4844    # On MiNT this can take a long time and run out of memory.
4845    lt_cv_sys_max_cmd_len=8192;
4846    ;;
4847
4848  amigaos*)
4849    # On AmigaOS with pdksh, this test takes hours, literally.
4850    # So we just punt and use a minimum line length of 8192.
4851    lt_cv_sys_max_cmd_len=8192;
4852    ;;
4853
4854  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4855    # This has been around since 386BSD, at least.  Likely further.
4856    if test -x /sbin/sysctl; then
4857      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4858    elif test -x /usr/sbin/sysctl; then
4859      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4860    else
4861      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4862    fi
4863    # And add a safety zone
4864    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4865    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4866    ;;
4867
4868  interix*)
4869    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4870    lt_cv_sys_max_cmd_len=196608
4871    ;;
4872
4873  os2*)
4874    # The test takes a long time on OS/2.
4875    lt_cv_sys_max_cmd_len=8192
4876    ;;
4877
4878  osf*)
4879    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4880    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4881    # nice to cause kernel panics so lets avoid the loop below.
4882    # First set a reasonable default.
4883    lt_cv_sys_max_cmd_len=16384
4884    #
4885    if test -x /sbin/sysconfig; then
4886      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4887        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4888      esac
4889    fi
4890    ;;
4891  sco3.2v5*)
4892    lt_cv_sys_max_cmd_len=102400
4893    ;;
4894  sysv5* | sco5v6* | sysv4.2uw2*)
4895    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4896    if test -n "$kargmax"; then
4897      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4898    else
4899      lt_cv_sys_max_cmd_len=32768
4900    fi
4901    ;;
4902  *)
4903    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4904    if test -n "$lt_cv_sys_max_cmd_len"; then
4905      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4906      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4907    else
4908      # Make teststring a little bigger before we do anything with it.
4909      # a 1K string should be a reasonable start.
4910      for i in 1 2 3 4 5 6 7 8 ; do
4911        teststring=$teststring$teststring
4912      done
4913      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4914      # If test is not a shell built-in, we'll probably end up computing a
4915      # maximum length that is only half of the actual maximum length, but
4916      # we can't tell.
4917      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4918	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4919	      test $i != 17 # 1/2 MB should be enough
4920      do
4921        i=`expr $i + 1`
4922        teststring=$teststring$teststring
4923      done
4924      # Only check the string length outside the loop.
4925      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4926      teststring=
4927      # Add a significant safety factor because C++ compilers can tack on
4928      # massive amounts of additional arguments before passing them to the
4929      # linker.  It appears as though 1/2 is a usable value.
4930      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4931    fi
4932    ;;
4933  esac
4934
4935fi
4936
4937if test -n $lt_cv_sys_max_cmd_len ; then
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4939$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4940else
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4942$as_echo "none" >&6; }
4943fi
4944max_cmd_len=$lt_cv_sys_max_cmd_len
4945
4946
4947
4948
4949
4950
4951: ${CP="cp -f"}
4952: ${MV="mv -f"}
4953: ${RM="rm -f"}
4954
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4956$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4957# Try some XSI features
4958xsi_shell=no
4959( _lt_dummy="a/b/c"
4960  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4961      = c,a/b,b/c, \
4962    && eval 'test $(( 1 + 1 )) -eq 2 \
4963    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4964  && xsi_shell=yes
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4966$as_echo "$xsi_shell" >&6; }
4967
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4970$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4971lt_shell_append=no
4972( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4973    >/dev/null 2>&1 \
4974  && lt_shell_append=yes
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4976$as_echo "$lt_shell_append" >&6; }
4977
4978
4979if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4980  lt_unset=unset
4981else
4982  lt_unset=false
4983fi
4984
4985
4986
4987
4988
4989# test EBCDIC or ASCII
4990case `echo X|tr X '\101'` in
4991 A) # ASCII based system
4992    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4993  lt_SP2NL='tr \040 \012'
4994  lt_NL2SP='tr \015\012 \040\040'
4995  ;;
4996 *) # EBCDIC based system
4997  lt_SP2NL='tr \100 \n'
4998  lt_NL2SP='tr \r\n \100\100'
4999  ;;
5000esac
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5011$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5012if ${lt_cv_to_host_file_cmd+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015  case $host in
5016  *-*-mingw* )
5017    case $build in
5018      *-*-mingw* ) # actually msys
5019        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5020        ;;
5021      *-*-cygwin* )
5022        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5023        ;;
5024      * ) # otherwise, assume *nix
5025        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5026        ;;
5027    esac
5028    ;;
5029  *-*-cygwin* )
5030    case $build in
5031      *-*-mingw* ) # actually msys
5032        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5033        ;;
5034      *-*-cygwin* )
5035        lt_cv_to_host_file_cmd=func_convert_file_noop
5036        ;;
5037      * ) # otherwise, assume *nix
5038        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5039        ;;
5040    esac
5041    ;;
5042  * ) # unhandled hosts (and "normal" native builds)
5043    lt_cv_to_host_file_cmd=func_convert_file_noop
5044    ;;
5045esac
5046
5047fi
5048
5049to_host_file_cmd=$lt_cv_to_host_file_cmd
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5051$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5052
5053
5054
5055
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5058$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5059if ${lt_cv_to_tool_file_cmd+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062  #assume ordinary cross tools, or native build.
5063lt_cv_to_tool_file_cmd=func_convert_file_noop
5064case $host in
5065  *-*-mingw* )
5066    case $build in
5067      *-*-mingw* ) # actually msys
5068        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5069        ;;
5070    esac
5071    ;;
5072esac
5073
5074fi
5075
5076to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5078$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5079
5080
5081
5082
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5085$as_echo_n "checking for $LD option to reload object files... " >&6; }
5086if ${lt_cv_ld_reload_flag+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  lt_cv_ld_reload_flag='-r'
5090fi
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5092$as_echo "$lt_cv_ld_reload_flag" >&6; }
5093reload_flag=$lt_cv_ld_reload_flag
5094case $reload_flag in
5095"" | " "*) ;;
5096*) reload_flag=" $reload_flag" ;;
5097esac
5098reload_cmds='$LD$reload_flag -o $output$reload_objs'
5099case $host_os in
5100  cygwin* | mingw* | pw32* | cegcc*)
5101    if test "$GCC" != yes; then
5102      reload_cmds=false
5103    fi
5104    ;;
5105  darwin*)
5106    if test "$GCC" = yes; then
5107      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5108    else
5109      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5110    fi
5111    ;;
5112esac
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122if test -n "$ac_tool_prefix"; then
5123  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}objdump; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if ${ac_cv_prog_OBJDUMP+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -n "$OBJDUMP"; then
5131  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_exec_ext in '' $ac_executable_extensions; do
5139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145  done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150OBJDUMP=$ac_cv_prog_OBJDUMP
5151if test -n "$OBJDUMP"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5153$as_echo "$OBJDUMP" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160fi
5161if test -z "$ac_cv_prog_OBJDUMP"; then
5162  ac_ct_OBJDUMP=$OBJDUMP
5163  # Extract the first word of "objdump", so it can be a program name with args.
5164set dummy objdump; ac_word=$2
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166$as_echo_n "checking for $ac_word... " >&6; }
5167if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  if test -n "$ac_ct_OBJDUMP"; then
5171  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176  IFS=$as_save_IFS
5177  test -z "$as_dir" && as_dir=.
5178    for ac_exec_ext in '' $ac_executable_extensions; do
5179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182    break 2
5183  fi
5184done
5185  done
5186IFS=$as_save_IFS
5187
5188fi
5189fi
5190ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5191if test -n "$ac_ct_OBJDUMP"; then
5192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5193$as_echo "$ac_ct_OBJDUMP" >&6; }
5194else
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
5197fi
5198
5199  if test "x$ac_ct_OBJDUMP" = x; then
5200    OBJDUMP="false"
5201  else
5202    case $cross_compiling:$ac_tool_warned in
5203yes:)
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206ac_tool_warned=yes ;;
5207esac
5208    OBJDUMP=$ac_ct_OBJDUMP
5209  fi
5210else
5211  OBJDUMP="$ac_cv_prog_OBJDUMP"
5212fi
5213
5214test -z "$OBJDUMP" && OBJDUMP=objdump
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5225$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5226if ${lt_cv_deplibs_check_method+:} false; then :
5227  $as_echo_n "(cached) " >&6
5228else
5229  lt_cv_file_magic_cmd='$MAGIC_CMD'
5230lt_cv_file_magic_test_file=
5231lt_cv_deplibs_check_method='unknown'
5232# Need to set the preceding variable on all platforms that support
5233# interlibrary dependencies.
5234# 'none' -- dependencies not supported.
5235# `unknown' -- same as none, but documents that we really don't know.
5236# 'pass_all' -- all dependencies passed with no checks.
5237# 'test_compile' -- check by making test program.
5238# 'file_magic [[regex]]' -- check by looking for files in library path
5239# which responds to the $file_magic_cmd with a given extended regex.
5240# If you have `file' or equivalent on your system and you're not sure
5241# whether `pass_all' will *always* work, you probably want this one.
5242
5243case $host_os in
5244aix[4-9]*)
5245  lt_cv_deplibs_check_method=pass_all
5246  ;;
5247
5248beos*)
5249  lt_cv_deplibs_check_method=pass_all
5250  ;;
5251
5252bsdi[45]*)
5253  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5254  lt_cv_file_magic_cmd='/usr/bin/file -L'
5255  lt_cv_file_magic_test_file=/shlib/libc.so
5256  ;;
5257
5258cygwin*)
5259  # func_win32_libid is a shell function defined in ltmain.sh
5260  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5261  lt_cv_file_magic_cmd='func_win32_libid'
5262  ;;
5263
5264mingw* | pw32*)
5265  # Base MSYS/MinGW do not provide the 'file' command needed by
5266  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5267  # unless we find 'file', for example because we are cross-compiling.
5268  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5269  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5270    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5271    lt_cv_file_magic_cmd='func_win32_libid'
5272  else
5273    # Keep this pattern in sync with the one in func_win32_libid.
5274    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5275    lt_cv_file_magic_cmd='$OBJDUMP -f'
5276  fi
5277  ;;
5278
5279cegcc*)
5280  # use the weaker test based on 'objdump'. See mingw*.
5281  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5282  lt_cv_file_magic_cmd='$OBJDUMP -f'
5283  ;;
5284
5285darwin* | rhapsody*)
5286  lt_cv_deplibs_check_method=pass_all
5287  ;;
5288
5289freebsd* | dragonfly*)
5290  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5291    case $host_cpu in
5292    i*86 )
5293      # Not sure whether the presence of OpenBSD here was a mistake.
5294      # Let's accept both of them until this is cleared up.
5295      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5296      lt_cv_file_magic_cmd=/usr/bin/file
5297      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5298      ;;
5299    esac
5300  else
5301    lt_cv_deplibs_check_method=pass_all
5302  fi
5303  ;;
5304
5305gnu*)
5306  lt_cv_deplibs_check_method=pass_all
5307  ;;
5308
5309haiku*)
5310  lt_cv_deplibs_check_method=pass_all
5311  ;;
5312
5313hpux10.20* | hpux11*)
5314  lt_cv_file_magic_cmd=/usr/bin/file
5315  case $host_cpu in
5316  ia64*)
5317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5318    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5319    ;;
5320  hppa*64*)
5321    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]'
5322    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5323    ;;
5324  *)
5325    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5326    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5327    ;;
5328  esac
5329  ;;
5330
5331interix[3-9]*)
5332  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5333  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5334  ;;
5335
5336irix5* | irix6* | nonstopux*)
5337  case $LD in
5338  *-32|*"-32 ") libmagic=32-bit;;
5339  *-n32|*"-n32 ") libmagic=N32;;
5340  *-64|*"-64 ") libmagic=64-bit;;
5341  *) libmagic=never-match;;
5342  esac
5343  lt_cv_deplibs_check_method=pass_all
5344  ;;
5345
5346# This must be glibc/ELF.
5347linux* | k*bsd*-gnu | kopensolaris*-gnu)
5348  lt_cv_deplibs_check_method=pass_all
5349  ;;
5350
5351netbsd* | netbsdelf*-gnu)
5352  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5354  else
5355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5356  fi
5357  ;;
5358
5359newos6*)
5360  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5361  lt_cv_file_magic_cmd=/usr/bin/file
5362  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5363  ;;
5364
5365*nto* | *qnx*)
5366  lt_cv_deplibs_check_method=pass_all
5367  ;;
5368
5369openbsd*)
5370  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5372  else
5373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5374  fi
5375  ;;
5376
5377osf3* | osf4* | osf5*)
5378  lt_cv_deplibs_check_method=pass_all
5379  ;;
5380
5381rdos*)
5382  lt_cv_deplibs_check_method=pass_all
5383  ;;
5384
5385solaris*)
5386  lt_cv_deplibs_check_method=pass_all
5387  ;;
5388
5389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5390  lt_cv_deplibs_check_method=pass_all
5391  ;;
5392
5393sysv4 | sysv4.3*)
5394  case $host_vendor in
5395  motorola)
5396    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]'
5397    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5398    ;;
5399  ncr)
5400    lt_cv_deplibs_check_method=pass_all
5401    ;;
5402  sequent)
5403    lt_cv_file_magic_cmd='/bin/file'
5404    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5405    ;;
5406  sni)
5407    lt_cv_file_magic_cmd='/bin/file'
5408    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5409    lt_cv_file_magic_test_file=/lib/libc.so
5410    ;;
5411  siemens)
5412    lt_cv_deplibs_check_method=pass_all
5413    ;;
5414  pc)
5415    lt_cv_deplibs_check_method=pass_all
5416    ;;
5417  esac
5418  ;;
5419
5420tpf*)
5421  lt_cv_deplibs_check_method=pass_all
5422  ;;
5423esac
5424
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5427$as_echo "$lt_cv_deplibs_check_method" >&6; }
5428
5429file_magic_glob=
5430want_nocaseglob=no
5431if test "$build" = "$host"; then
5432  case $host_os in
5433  mingw* | pw32*)
5434    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5435      want_nocaseglob=yes
5436    else
5437      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5438    fi
5439    ;;
5440  esac
5441fi
5442
5443file_magic_cmd=$lt_cv_file_magic_cmd
5444deplibs_check_method=$lt_cv_deplibs_check_method
5445test -z "$deplibs_check_method" && deplibs_check_method=unknown
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468if test -n "$ac_tool_prefix"; then
5469  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5470set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if ${ac_cv_prog_DLLTOOL+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  if test -n "$DLLTOOL"; then
5477  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484    for ac_exec_ext in '' $ac_executable_extensions; do
5485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491  done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496DLLTOOL=$ac_cv_prog_DLLTOOL
5497if test -n "$DLLTOOL"; then
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5499$as_echo "$DLLTOOL" >&6; }
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505
5506fi
5507if test -z "$ac_cv_prog_DLLTOOL"; then
5508  ac_ct_DLLTOOL=$DLLTOOL
5509  # Extract the first word of "dlltool", so it can be a program name with args.
5510set dummy dlltool; ac_word=$2
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
5513if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  if test -n "$ac_ct_DLLTOOL"; then
5517  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522  IFS=$as_save_IFS
5523  test -z "$as_dir" && as_dir=.
5524    for ac_exec_ext in '' $ac_executable_extensions; do
5525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528    break 2
5529  fi
5530done
5531  done
5532IFS=$as_save_IFS
5533
5534fi
5535fi
5536ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5537if test -n "$ac_ct_DLLTOOL"; then
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5539$as_echo "$ac_ct_DLLTOOL" >&6; }
5540else
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544
5545  if test "x$ac_ct_DLLTOOL" = x; then
5546    DLLTOOL="false"
5547  else
5548    case $cross_compiling:$ac_tool_warned in
5549yes:)
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552ac_tool_warned=yes ;;
5553esac
5554    DLLTOOL=$ac_ct_DLLTOOL
5555  fi
5556else
5557  DLLTOOL="$ac_cv_prog_DLLTOOL"
5558fi
5559
5560test -z "$DLLTOOL" && DLLTOOL=dlltool
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5572$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5573if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  lt_cv_sharedlib_from_linklib_cmd='unknown'
5577
5578case $host_os in
5579cygwin* | mingw* | pw32* | cegcc*)
5580  # two different shell functions defined in ltmain.sh
5581  # decide which to use based on capabilities of $DLLTOOL
5582  case `$DLLTOOL --help 2>&1` in
5583  *--identify-strict*)
5584    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5585    ;;
5586  *)
5587    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5588    ;;
5589  esac
5590  ;;
5591*)
5592  # fallback: assume linklib IS sharedlib
5593  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5594  ;;
5595esac
5596
5597fi
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5599$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5600sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5601test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5602
5603
5604
5605
5606
5607
5608
5609
5610if test -n "$ac_tool_prefix"; then
5611  for ac_prog in ar
5612  do
5613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if ${ac_cv_prog_AR+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  if test -n "$AR"; then
5621  ac_cv_prog_AR="$AR" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626  IFS=$as_save_IFS
5627  test -z "$as_dir" && as_dir=.
5628    for ac_exec_ext in '' $ac_executable_extensions; do
5629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632    break 2
5633  fi
5634done
5635  done
5636IFS=$as_save_IFS
5637
5638fi
5639fi
5640AR=$ac_cv_prog_AR
5641if test -n "$AR"; then
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5643$as_echo "$AR" >&6; }
5644else
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647fi
5648
5649
5650    test -n "$AR" && break
5651  done
5652fi
5653if test -z "$AR"; then
5654  ac_ct_AR=$AR
5655  for ac_prog in ar
5656do
5657  # Extract the first word of "$ac_prog", so it can be a program name with args.
5658set dummy $ac_prog; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if ${ac_cv_prog_ac_ct_AR+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  if test -n "$ac_ct_AR"; then
5665  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  test -z "$as_dir" && as_dir=.
5672    for ac_exec_ext in '' $ac_executable_extensions; do
5673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674    ac_cv_prog_ac_ct_AR="$ac_prog"
5675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676    break 2
5677  fi
5678done
5679  done
5680IFS=$as_save_IFS
5681
5682fi
5683fi
5684ac_ct_AR=$ac_cv_prog_ac_ct_AR
5685if test -n "$ac_ct_AR"; then
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5687$as_echo "$ac_ct_AR" >&6; }
5688else
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691fi
5692
5693
5694  test -n "$ac_ct_AR" && break
5695done
5696
5697  if test "x$ac_ct_AR" = x; then
5698    AR="false"
5699  else
5700    case $cross_compiling:$ac_tool_warned in
5701yes:)
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704ac_tool_warned=yes ;;
5705esac
5706    AR=$ac_ct_AR
5707  fi
5708fi
5709
5710: ${AR=ar}
5711: ${AR_FLAGS=cru}
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5724$as_echo_n "checking for archiver @FILE support... " >&6; }
5725if ${lt_cv_ar_at_file+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  lt_cv_ar_at_file=no
5729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731
5732int
5733main ()
5734{
5735
5736  ;
5737  return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_compile "$LINENO"; then :
5741  echo conftest.$ac_objext > conftest.lst
5742      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5743      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5744  (eval $lt_ar_try) 2>&5
5745  ac_status=$?
5746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747  test $ac_status = 0; }
5748      if test "$ac_status" -eq 0; then
5749	# Ensure the archiver fails upon bogus file names.
5750	rm -f conftest.$ac_objext libconftest.a
5751	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5752  (eval $lt_ar_try) 2>&5
5753  ac_status=$?
5754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755  test $ac_status = 0; }
5756	if test "$ac_status" -ne 0; then
5757          lt_cv_ar_at_file=@
5758        fi
5759      fi
5760      rm -f conftest.* libconftest.a
5761
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5767$as_echo "$lt_cv_ar_at_file" >&6; }
5768
5769if test "x$lt_cv_ar_at_file" = xno; then
5770  archiver_list_spec=
5771else
5772  archiver_list_spec=$lt_cv_ar_at_file
5773fi
5774
5775
5776
5777
5778
5779
5780
5781if test -n "$ac_tool_prefix"; then
5782  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5783set dummy ${ac_tool_prefix}strip; ac_word=$2
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785$as_echo_n "checking for $ac_word... " >&6; }
5786if ${ac_cv_prog_STRIP+:} false; then :
5787  $as_echo_n "(cached) " >&6
5788else
5789  if test -n "$STRIP"; then
5790  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795  IFS=$as_save_IFS
5796  test -z "$as_dir" && as_dir=.
5797    for ac_exec_ext in '' $ac_executable_extensions; do
5798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801    break 2
5802  fi
5803done
5804  done
5805IFS=$as_save_IFS
5806
5807fi
5808fi
5809STRIP=$ac_cv_prog_STRIP
5810if test -n "$STRIP"; then
5811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5812$as_echo "$STRIP" >&6; }
5813else
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }
5816fi
5817
5818
5819fi
5820if test -z "$ac_cv_prog_STRIP"; then
5821  ac_ct_STRIP=$STRIP
5822  # Extract the first word of "strip", so it can be a program name with args.
5823set dummy strip; ac_word=$2
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
5826if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  if test -n "$ac_ct_STRIP"; then
5830  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835  IFS=$as_save_IFS
5836  test -z "$as_dir" && as_dir=.
5837    for ac_exec_ext in '' $ac_executable_extensions; do
5838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839    ac_cv_prog_ac_ct_STRIP="strip"
5840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841    break 2
5842  fi
5843done
5844  done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5850if test -n "$ac_ct_STRIP"; then
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5852$as_echo "$ac_ct_STRIP" >&6; }
5853else
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858  if test "x$ac_ct_STRIP" = x; then
5859    STRIP=":"
5860  else
5861    case $cross_compiling:$ac_tool_warned in
5862yes:)
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865ac_tool_warned=yes ;;
5866esac
5867    STRIP=$ac_ct_STRIP
5868  fi
5869else
5870  STRIP="$ac_cv_prog_STRIP"
5871fi
5872
5873test -z "$STRIP" && STRIP=:
5874
5875
5876
5877
5878
5879
5880if test -n "$ac_tool_prefix"; then
5881  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5882set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
5885if ${ac_cv_prog_RANLIB+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  if test -n "$RANLIB"; then
5889  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896    for ac_exec_ext in '' $ac_executable_extensions; do
5897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903  done
5904IFS=$as_save_IFS
5905
5906fi
5907fi
5908RANLIB=$ac_cv_prog_RANLIB
5909if test -n "$RANLIB"; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5911$as_echo "$RANLIB" >&6; }
5912else
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914$as_echo "no" >&6; }
5915fi
5916
5917
5918fi
5919if test -z "$ac_cv_prog_RANLIB"; then
5920  ac_ct_RANLIB=$RANLIB
5921  # Extract the first word of "ranlib", so it can be a program name with args.
5922set dummy ranlib; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
5925if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  if test -n "$ac_ct_RANLIB"; then
5929  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936    for ac_exec_ext in '' $ac_executable_extensions; do
5937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938    ac_cv_prog_ac_ct_RANLIB="ranlib"
5939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940    break 2
5941  fi
5942done
5943  done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5949if test -n "$ac_ct_RANLIB"; then
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5951$as_echo "$ac_ct_RANLIB" >&6; }
5952else
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957  if test "x$ac_ct_RANLIB" = x; then
5958    RANLIB=":"
5959  else
5960    case $cross_compiling:$ac_tool_warned in
5961yes:)
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964ac_tool_warned=yes ;;
5965esac
5966    RANLIB=$ac_ct_RANLIB
5967  fi
5968else
5969  RANLIB="$ac_cv_prog_RANLIB"
5970fi
5971
5972test -z "$RANLIB" && RANLIB=:
5973
5974
5975
5976
5977
5978
5979# Determine commands to create old-style static archives.
5980old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5981old_postinstall_cmds='chmod 644 $oldlib'
5982old_postuninstall_cmds=
5983
5984if test -n "$RANLIB"; then
5985  case $host_os in
5986  openbsd*)
5987    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5988    ;;
5989  *)
5990    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5991    ;;
5992  esac
5993  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5994fi
5995
5996case $host_os in
5997  darwin*)
5998    lock_old_archive_extraction=yes ;;
5999  *)
6000    lock_old_archive_extraction=no ;;
6001esac
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041# If no C compiler was specified, use CC.
6042LTCC=${LTCC-"$CC"}
6043
6044# If no C compiler flags were specified, use CFLAGS.
6045LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6046
6047# Allow CC to be a program name with arguments.
6048compiler=$CC
6049
6050
6051# Check for command to grab the raw symbol name followed by C symbol from nm.
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6053$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6054if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057
6058# These are sane defaults that work on at least a few old systems.
6059# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6060
6061# Character class describing NM global symbol codes.
6062symcode='[BCDEGRST]'
6063
6064# Regexp to match symbols that can be accessed directly from C.
6065sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6066
6067# Define system-specific variables.
6068case $host_os in
6069aix*)
6070  symcode='[BCDT]'
6071  ;;
6072cygwin* | mingw* | pw32* | cegcc*)
6073  symcode='[ABCDGISTW]'
6074  ;;
6075hpux*)
6076  if test "$host_cpu" = ia64; then
6077    symcode='[ABCDEGRST]'
6078  fi
6079  ;;
6080irix* | nonstopux*)
6081  symcode='[BCDEGRST]'
6082  ;;
6083osf*)
6084  symcode='[BCDEGQRST]'
6085  ;;
6086solaris*)
6087  symcode='[BDRT]'
6088  ;;
6089sco3.2v5*)
6090  symcode='[DT]'
6091  ;;
6092sysv4.2uw2*)
6093  symcode='[DT]'
6094  ;;
6095sysv5* | sco5v6* | unixware* | OpenUNIX*)
6096  symcode='[ABDT]'
6097  ;;
6098sysv4)
6099  symcode='[DFNSTU]'
6100  ;;
6101esac
6102
6103# If we're using GNU nm, then use its standard symbol codes.
6104case `$NM -V 2>&1` in
6105*GNU* | *'with BFD'*)
6106  symcode='[ABCDGIRSTW]' ;;
6107esac
6108
6109# Transform an extracted symbol line into a proper C declaration.
6110# Some systems (esp. on ia64) link data and code symbols differently,
6111# so use this general approach.
6112lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6113
6114# Transform an extracted symbol line into symbol name and symbol address
6115lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6116lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6117
6118# Handle CRLF in mingw tool chain
6119opt_cr=
6120case $build_os in
6121mingw*)
6122  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6123  ;;
6124esac
6125
6126# Try without a prefix underscore, then with it.
6127for ac_symprfx in "" "_"; do
6128
6129  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6130  symxfrm="\\1 $ac_symprfx\\2 \\2"
6131
6132  # Write the raw and C identifiers.
6133  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6134    # Fake it for dumpbin and say T for any non-static function
6135    # and D for any global variable.
6136    # Also find C++ and __fastcall symbols from MSVC++,
6137    # which start with @ or ?.
6138    lt_cv_sys_global_symbol_pipe="$AWK '"\
6139"     {last_section=section; section=\$ 3};"\
6140"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6141"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6142"     \$ 0!~/External *\|/{next};"\
6143"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6144"     {if(hide[section]) next};"\
6145"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6146"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6147"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6148"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6149"     ' prfx=^$ac_symprfx"
6150  else
6151    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6152  fi
6153  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6154
6155  # Check to see that the pipe works correctly.
6156  pipe_works=no
6157
6158  rm -f conftest*
6159  cat > conftest.$ac_ext <<_LT_EOF
6160#ifdef __cplusplus
6161extern "C" {
6162#endif
6163char nm_test_var;
6164void nm_test_func(void);
6165void nm_test_func(void){}
6166#ifdef __cplusplus
6167}
6168#endif
6169int main(){nm_test_var='a';nm_test_func();return(0);}
6170_LT_EOF
6171
6172  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6173  (eval $ac_compile) 2>&5
6174  ac_status=$?
6175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176  test $ac_status = 0; }; then
6177    # Now try to grab the symbols.
6178    nlist=conftest.nm
6179    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6180  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6181  ac_status=$?
6182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183  test $ac_status = 0; } && test -s "$nlist"; then
6184      # Try sorting and uniquifying the output.
6185      if sort "$nlist" | uniq > "$nlist"T; then
6186	mv -f "$nlist"T "$nlist"
6187      else
6188	rm -f "$nlist"T
6189      fi
6190
6191      # Make sure that we snagged all the symbols we need.
6192      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6193	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6194	  cat <<_LT_EOF > conftest.$ac_ext
6195/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6196#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6197/* DATA imports from DLLs on WIN32 con't be const, because runtime
6198   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6199# define LT_DLSYM_CONST
6200#elif defined(__osf__)
6201/* This system does not cope well with relocations in const data.  */
6202# define LT_DLSYM_CONST
6203#else
6204# define LT_DLSYM_CONST const
6205#endif
6206
6207#ifdef __cplusplus
6208extern "C" {
6209#endif
6210
6211_LT_EOF
6212	  # Now generate the symbol file.
6213	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6214
6215	  cat <<_LT_EOF >> conftest.$ac_ext
6216
6217/* The mapping between symbol names and symbols.  */
6218LT_DLSYM_CONST struct {
6219  const char *name;
6220  void       *address;
6221}
6222lt__PROGRAM__LTX_preloaded_symbols[] =
6223{
6224  { "@PROGRAM@", (void *) 0 },
6225_LT_EOF
6226	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6227	  cat <<\_LT_EOF >> conftest.$ac_ext
6228  {0, (void *) 0}
6229};
6230
6231/* This works around a problem in FreeBSD linker */
6232#ifdef FREEBSD_WORKAROUND
6233static const void *lt_preloaded_setup() {
6234  return lt__PROGRAM__LTX_preloaded_symbols;
6235}
6236#endif
6237
6238#ifdef __cplusplus
6239}
6240#endif
6241_LT_EOF
6242	  # Now try linking the two files.
6243	  mv conftest.$ac_objext conftstm.$ac_objext
6244	  lt_globsym_save_LIBS=$LIBS
6245	  lt_globsym_save_CFLAGS=$CFLAGS
6246	  LIBS="conftstm.$ac_objext"
6247	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6248	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6249  (eval $ac_link) 2>&5
6250  ac_status=$?
6251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6253	    pipe_works=yes
6254	  fi
6255	  LIBS=$lt_globsym_save_LIBS
6256	  CFLAGS=$lt_globsym_save_CFLAGS
6257	else
6258	  echo "cannot find nm_test_func in $nlist" >&5
6259	fi
6260      else
6261	echo "cannot find nm_test_var in $nlist" >&5
6262      fi
6263    else
6264      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6265    fi
6266  else
6267    echo "$progname: failed program was:" >&5
6268    cat conftest.$ac_ext >&5
6269  fi
6270  rm -rf conftest* conftst*
6271
6272  # Do not use the global_symbol_pipe unless it works.
6273  if test "$pipe_works" = yes; then
6274    break
6275  else
6276    lt_cv_sys_global_symbol_pipe=
6277  fi
6278done
6279
6280fi
6281
6282if test -z "$lt_cv_sys_global_symbol_pipe"; then
6283  lt_cv_sys_global_symbol_to_cdecl=
6284fi
6285if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6287$as_echo "failed" >&6; }
6288else
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6290$as_echo "ok" >&6; }
6291fi
6292
6293# Response file support.
6294if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6295  nm_file_list_spec='@'
6296elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6297  nm_file_list_spec='@'
6298fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6327$as_echo_n "checking for sysroot... " >&6; }
6328
6329# Check whether --with-sysroot was given.
6330if test "${with_sysroot+set}" = set; then :
6331  withval=$with_sysroot;
6332else
6333  with_sysroot=no
6334fi
6335
6336
6337lt_sysroot=
6338case ${with_sysroot} in #(
6339 yes)
6340   if test "$GCC" = yes; then
6341     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6342   fi
6343   ;; #(
6344 /*)
6345   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6346   ;; #(
6347 no|'')
6348   ;; #(
6349 *)
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6351$as_echo "${with_sysroot}" >&6; }
6352   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6353   ;;
6354esac
6355
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6357$as_echo "${lt_sysroot:-no}" >&6; }
6358
6359
6360
6361
6362
6363# Check whether --enable-libtool-lock was given.
6364if test "${enable_libtool_lock+set}" = set; then :
6365  enableval=$enable_libtool_lock;
6366fi
6367
6368test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6369
6370# Some flags need to be propagated to the compiler or linker for good
6371# libtool support.
6372case $host in
6373ia64-*-hpux*)
6374  # Find out which ABI we are using.
6375  echo 'int i;' > conftest.$ac_ext
6376  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377  (eval $ac_compile) 2>&5
6378  ac_status=$?
6379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380  test $ac_status = 0; }; then
6381    case `/usr/bin/file conftest.$ac_objext` in
6382      *ELF-32*)
6383	HPUX_IA64_MODE="32"
6384	;;
6385      *ELF-64*)
6386	HPUX_IA64_MODE="64"
6387	;;
6388    esac
6389  fi
6390  rm -rf conftest*
6391  ;;
6392*-*-irix6*)
6393  # Find out which ABI we are using.
6394  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6395  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6396  (eval $ac_compile) 2>&5
6397  ac_status=$?
6398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399  test $ac_status = 0; }; then
6400    if test "$lt_cv_prog_gnu_ld" = yes; then
6401      case `/usr/bin/file conftest.$ac_objext` in
6402	*32-bit*)
6403	  LD="${LD-ld} -melf32bsmip"
6404	  ;;
6405	*N32*)
6406	  LD="${LD-ld} -melf32bmipn32"
6407	  ;;
6408	*64-bit*)
6409	  LD="${LD-ld} -melf64bmip"
6410	;;
6411      esac
6412    else
6413      case `/usr/bin/file conftest.$ac_objext` in
6414	*32-bit*)
6415	  LD="${LD-ld} -32"
6416	  ;;
6417	*N32*)
6418	  LD="${LD-ld} -n32"
6419	  ;;
6420	*64-bit*)
6421	  LD="${LD-ld} -64"
6422	  ;;
6423      esac
6424    fi
6425  fi
6426  rm -rf conftest*
6427  ;;
6428
6429x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6430s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6431  # Find out which ABI we are using.
6432  echo 'int i;' > conftest.$ac_ext
6433  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6434  (eval $ac_compile) 2>&5
6435  ac_status=$?
6436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6437  test $ac_status = 0; }; then
6438    case `/usr/bin/file conftest.o` in
6439      *32-bit*)
6440	case $host in
6441	  x86_64-*kfreebsd*-gnu)
6442	    LD="${LD-ld} -m elf_i386_fbsd"
6443	    ;;
6444	  x86_64-*linux*)
6445	    LD="${LD-ld} -m elf_i386"
6446	    ;;
6447	  ppc64-*linux*|powerpc64-*linux*)
6448	    LD="${LD-ld} -m elf32ppclinux"
6449	    ;;
6450	  s390x-*linux*)
6451	    LD="${LD-ld} -m elf_s390"
6452	    ;;
6453	  sparc64-*linux*)
6454	    LD="${LD-ld} -m elf32_sparc"
6455	    ;;
6456	esac
6457	;;
6458      *64-bit*)
6459	case $host in
6460	  x86_64-*kfreebsd*-gnu)
6461	    LD="${LD-ld} -m elf_x86_64_fbsd"
6462	    ;;
6463	  x86_64-*linux*)
6464	    LD="${LD-ld} -m elf_x86_64"
6465	    ;;
6466	  ppc*-*linux*|powerpc*-*linux*)
6467	    LD="${LD-ld} -m elf64ppc"
6468	    ;;
6469	  s390*-*linux*|s390*-*tpf*)
6470	    LD="${LD-ld} -m elf64_s390"
6471	    ;;
6472	  sparc*-*linux*)
6473	    LD="${LD-ld} -m elf64_sparc"
6474	    ;;
6475	esac
6476	;;
6477    esac
6478  fi
6479  rm -rf conftest*
6480  ;;
6481
6482*-*-sco3.2v5*)
6483  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6484  SAVE_CFLAGS="$CFLAGS"
6485  CFLAGS="$CFLAGS -belf"
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6487$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6488if ${lt_cv_cc_needs_belf+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  ac_ext=c
6492ac_cpp='$CPP $CPPFLAGS'
6493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496
6497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499
6500int
6501main ()
6502{
6503
6504  ;
6505  return 0;
6506}
6507_ACEOF
6508if ac_fn_c_try_link "$LINENO"; then :
6509  lt_cv_cc_needs_belf=yes
6510else
6511  lt_cv_cc_needs_belf=no
6512fi
6513rm -f core conftest.err conftest.$ac_objext \
6514    conftest$ac_exeext conftest.$ac_ext
6515     ac_ext=c
6516ac_cpp='$CPP $CPPFLAGS'
6517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519ac_compiler_gnu=$ac_cv_c_compiler_gnu
6520
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6523$as_echo "$lt_cv_cc_needs_belf" >&6; }
6524  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6525    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6526    CFLAGS="$SAVE_CFLAGS"
6527  fi
6528  ;;
6529*-*solaris*)
6530  # Find out which ABI we are using.
6531  echo 'int i;' > conftest.$ac_ext
6532  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533  (eval $ac_compile) 2>&5
6534  ac_status=$?
6535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536  test $ac_status = 0; }; then
6537    case `/usr/bin/file conftest.o` in
6538    *64-bit*)
6539      case $lt_cv_prog_gnu_ld in
6540      yes*)
6541        case $host in
6542        i?86-*-solaris*)
6543          LD="${LD-ld} -m elf_x86_64"
6544          ;;
6545        sparc*-*-solaris*)
6546          LD="${LD-ld} -m elf64_sparc"
6547          ;;
6548        esac
6549        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6550        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6551          LD="${LD-ld}_sol2"
6552        fi
6553        ;;
6554      *)
6555	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6556	  LD="${LD-ld} -64"
6557	fi
6558	;;
6559      esac
6560      ;;
6561    esac
6562  fi
6563  rm -rf conftest*
6564  ;;
6565esac
6566
6567need_locks="$enable_libtool_lock"
6568
6569if test -n "$ac_tool_prefix"; then
6570  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6571set dummy ${ac_tool_prefix}mt; ac_word=$2
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573$as_echo_n "checking for $ac_word... " >&6; }
6574if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6575  $as_echo_n "(cached) " >&6
6576else
6577  if test -n "$MANIFEST_TOOL"; then
6578  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6579else
6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583  IFS=$as_save_IFS
6584  test -z "$as_dir" && as_dir=.
6585    for ac_exec_ext in '' $ac_executable_extensions; do
6586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589    break 2
6590  fi
6591done
6592  done
6593IFS=$as_save_IFS
6594
6595fi
6596fi
6597MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6598if test -n "$MANIFEST_TOOL"; then
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6600$as_echo "$MANIFEST_TOOL" >&6; }
6601else
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603$as_echo "no" >&6; }
6604fi
6605
6606
6607fi
6608if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6609  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6610  # Extract the first word of "mt", so it can be a program name with args.
6611set dummy mt; ac_word=$2
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613$as_echo_n "checking for $ac_word... " >&6; }
6614if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6615  $as_echo_n "(cached) " >&6
6616else
6617  if test -n "$ac_ct_MANIFEST_TOOL"; then
6618  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6619else
6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621for as_dir in $PATH
6622do
6623  IFS=$as_save_IFS
6624  test -z "$as_dir" && as_dir=.
6625    for ac_exec_ext in '' $ac_executable_extensions; do
6626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629    break 2
6630  fi
6631done
6632  done
6633IFS=$as_save_IFS
6634
6635fi
6636fi
6637ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6638if test -n "$ac_ct_MANIFEST_TOOL"; then
6639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6640$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6641else
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643$as_echo "no" >&6; }
6644fi
6645
6646  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6647    MANIFEST_TOOL=":"
6648  else
6649    case $cross_compiling:$ac_tool_warned in
6650yes:)
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653ac_tool_warned=yes ;;
6654esac
6655    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6656  fi
6657else
6658  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6659fi
6660
6661test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6663$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6664if ${lt_cv_path_mainfest_tool+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  lt_cv_path_mainfest_tool=no
6668  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6669  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6670  cat conftest.err >&5
6671  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6672    lt_cv_path_mainfest_tool=yes
6673  fi
6674  rm -f conftest*
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6677$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6678if test "x$lt_cv_path_mainfest_tool" != xyes; then
6679  MANIFEST_TOOL=:
6680fi
6681
6682
6683
6684
6685
6686
6687  case $host_os in
6688    rhapsody* | darwin*)
6689    if test -n "$ac_tool_prefix"; then
6690  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6691set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if ${ac_cv_prog_DSYMUTIL+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  if test -n "$DSYMUTIL"; then
6698  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703  IFS=$as_save_IFS
6704  test -z "$as_dir" && as_dir=.
6705    for ac_exec_ext in '' $ac_executable_extensions; do
6706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709    break 2
6710  fi
6711done
6712  done
6713IFS=$as_save_IFS
6714
6715fi
6716fi
6717DSYMUTIL=$ac_cv_prog_DSYMUTIL
6718if test -n "$DSYMUTIL"; then
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6720$as_echo "$DSYMUTIL" >&6; }
6721else
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723$as_echo "no" >&6; }
6724fi
6725
6726
6727fi
6728if test -z "$ac_cv_prog_DSYMUTIL"; then
6729  ac_ct_DSYMUTIL=$DSYMUTIL
6730  # Extract the first word of "dsymutil", so it can be a program name with args.
6731set dummy dsymutil; ac_word=$2
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  if test -n "$ac_ct_DSYMUTIL"; then
6738  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6739else
6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743  IFS=$as_save_IFS
6744  test -z "$as_dir" && as_dir=.
6745    for ac_exec_ext in '' $ac_executable_extensions; do
6746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749    break 2
6750  fi
6751done
6752  done
6753IFS=$as_save_IFS
6754
6755fi
6756fi
6757ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6758if test -n "$ac_ct_DSYMUTIL"; then
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6760$as_echo "$ac_ct_DSYMUTIL" >&6; }
6761else
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763$as_echo "no" >&6; }
6764fi
6765
6766  if test "x$ac_ct_DSYMUTIL" = x; then
6767    DSYMUTIL=":"
6768  else
6769    case $cross_compiling:$ac_tool_warned in
6770yes:)
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773ac_tool_warned=yes ;;
6774esac
6775    DSYMUTIL=$ac_ct_DSYMUTIL
6776  fi
6777else
6778  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6779fi
6780
6781    if test -n "$ac_tool_prefix"; then
6782  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6783set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785$as_echo_n "checking for $ac_word... " >&6; }
6786if ${ac_cv_prog_NMEDIT+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  if test -n "$NMEDIT"; then
6790  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795  IFS=$as_save_IFS
6796  test -z "$as_dir" && as_dir=.
6797    for ac_exec_ext in '' $ac_executable_extensions; do
6798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801    break 2
6802  fi
6803done
6804  done
6805IFS=$as_save_IFS
6806
6807fi
6808fi
6809NMEDIT=$ac_cv_prog_NMEDIT
6810if test -n "$NMEDIT"; then
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6812$as_echo "$NMEDIT" >&6; }
6813else
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
6816fi
6817
6818
6819fi
6820if test -z "$ac_cv_prog_NMEDIT"; then
6821  ac_ct_NMEDIT=$NMEDIT
6822  # Extract the first word of "nmedit", so it can be a program name with args.
6823set dummy nmedit; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$ac_ct_NMEDIT"; then
6830  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6850if test -n "$ac_ct_NMEDIT"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6852$as_echo "$ac_ct_NMEDIT" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858  if test "x$ac_ct_NMEDIT" = x; then
6859    NMEDIT=":"
6860  else
6861    case $cross_compiling:$ac_tool_warned in
6862yes:)
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865ac_tool_warned=yes ;;
6866esac
6867    NMEDIT=$ac_ct_NMEDIT
6868  fi
6869else
6870  NMEDIT="$ac_cv_prog_NMEDIT"
6871fi
6872
6873    if test -n "$ac_tool_prefix"; then
6874  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6875set dummy ${ac_tool_prefix}lipo; ac_word=$2
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877$as_echo_n "checking for $ac_word... " >&6; }
6878if ${ac_cv_prog_LIPO+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  if test -n "$LIPO"; then
6882  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  test -z "$as_dir" && as_dir=.
6889    for ac_exec_ext in '' $ac_executable_extensions; do
6890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893    break 2
6894  fi
6895done
6896  done
6897IFS=$as_save_IFS
6898
6899fi
6900fi
6901LIPO=$ac_cv_prog_LIPO
6902if test -n "$LIPO"; then
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6904$as_echo "$LIPO" >&6; }
6905else
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907$as_echo "no" >&6; }
6908fi
6909
6910
6911fi
6912if test -z "$ac_cv_prog_LIPO"; then
6913  ac_ct_LIPO=$LIPO
6914  # Extract the first word of "lipo", so it can be a program name with args.
6915set dummy lipo; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
6918if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  if test -n "$ac_ct_LIPO"; then
6922  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  test -z "$as_dir" && as_dir=.
6929    for ac_exec_ext in '' $ac_executable_extensions; do
6930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931    ac_cv_prog_ac_ct_LIPO="lipo"
6932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933    break 2
6934  fi
6935done
6936  done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6942if test -n "$ac_ct_LIPO"; then
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6944$as_echo "$ac_ct_LIPO" >&6; }
6945else
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950  if test "x$ac_ct_LIPO" = x; then
6951    LIPO=":"
6952  else
6953    case $cross_compiling:$ac_tool_warned in
6954yes:)
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957ac_tool_warned=yes ;;
6958esac
6959    LIPO=$ac_ct_LIPO
6960  fi
6961else
6962  LIPO="$ac_cv_prog_LIPO"
6963fi
6964
6965    if test -n "$ac_tool_prefix"; then
6966  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6967set dummy ${ac_tool_prefix}otool; ac_word=$2
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969$as_echo_n "checking for $ac_word... " >&6; }
6970if ${ac_cv_prog_OTOOL+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  if test -n "$OTOOL"; then
6974  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6975else
6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979  IFS=$as_save_IFS
6980  test -z "$as_dir" && as_dir=.
6981    for ac_exec_ext in '' $ac_executable_extensions; do
6982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985    break 2
6986  fi
6987done
6988  done
6989IFS=$as_save_IFS
6990
6991fi
6992fi
6993OTOOL=$ac_cv_prog_OTOOL
6994if test -n "$OTOOL"; then
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6996$as_echo "$OTOOL" >&6; }
6997else
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999$as_echo "no" >&6; }
7000fi
7001
7002
7003fi
7004if test -z "$ac_cv_prog_OTOOL"; then
7005  ac_ct_OTOOL=$OTOOL
7006  # Extract the first word of "otool", so it can be a program name with args.
7007set dummy otool; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  if test -n "$ac_ct_OTOOL"; then
7014  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019  IFS=$as_save_IFS
7020  test -z "$as_dir" && as_dir=.
7021    for ac_exec_ext in '' $ac_executable_extensions; do
7022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023    ac_cv_prog_ac_ct_OTOOL="otool"
7024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025    break 2
7026  fi
7027done
7028  done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7034if test -n "$ac_ct_OTOOL"; then
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7036$as_echo "$ac_ct_OTOOL" >&6; }
7037else
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042  if test "x$ac_ct_OTOOL" = x; then
7043    OTOOL=":"
7044  else
7045    case $cross_compiling:$ac_tool_warned in
7046yes:)
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049ac_tool_warned=yes ;;
7050esac
7051    OTOOL=$ac_ct_OTOOL
7052  fi
7053else
7054  OTOOL="$ac_cv_prog_OTOOL"
7055fi
7056
7057    if test -n "$ac_tool_prefix"; then
7058  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7059set dummy ${ac_tool_prefix}otool64; ac_word=$2
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061$as_echo_n "checking for $ac_word... " >&6; }
7062if ${ac_cv_prog_OTOOL64+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  if test -n "$OTOOL64"; then
7066  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071  IFS=$as_save_IFS
7072  test -z "$as_dir" && as_dir=.
7073    for ac_exec_ext in '' $ac_executable_extensions; do
7074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077    break 2
7078  fi
7079done
7080  done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085OTOOL64=$ac_cv_prog_OTOOL64
7086if test -n "$OTOOL64"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7088$as_echo "$OTOOL64" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094
7095fi
7096if test -z "$ac_cv_prog_OTOOL64"; then
7097  ac_ct_OTOOL64=$OTOOL64
7098  # Extract the first word of "otool64", so it can be a program name with args.
7099set dummy otool64; ac_word=$2
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101$as_echo_n "checking for $ac_word... " >&6; }
7102if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  if test -n "$ac_ct_OTOOL64"; then
7106  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111  IFS=$as_save_IFS
7112  test -z "$as_dir" && as_dir=.
7113    for ac_exec_ext in '' $ac_executable_extensions; do
7114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115    ac_cv_prog_ac_ct_OTOOL64="otool64"
7116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117    break 2
7118  fi
7119done
7120  done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7126if test -n "$ac_ct_OTOOL64"; then
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7128$as_echo "$ac_ct_OTOOL64" >&6; }
7129else
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132fi
7133
7134  if test "x$ac_ct_OTOOL64" = x; then
7135    OTOOL64=":"
7136  else
7137    case $cross_compiling:$ac_tool_warned in
7138yes:)
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141ac_tool_warned=yes ;;
7142esac
7143    OTOOL64=$ac_ct_OTOOL64
7144  fi
7145else
7146  OTOOL64="$ac_cv_prog_OTOOL64"
7147fi
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7176$as_echo_n "checking for -single_module linker flag... " >&6; }
7177if ${lt_cv_apple_cc_single_mod+:} false; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  lt_cv_apple_cc_single_mod=no
7181      if test -z "${LT_MULTI_MODULE}"; then
7182	# By default we will add the -single_module flag. You can override
7183	# by either setting the environment variable LT_MULTI_MODULE
7184	# non-empty at configure time, or by adding -multi_module to the
7185	# link flags.
7186	rm -rf libconftest.dylib*
7187	echo "int foo(void){return 1;}" > conftest.c
7188	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7189-dynamiclib -Wl,-single_module conftest.c" >&5
7190	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7191	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7192        _lt_result=$?
7193	# If there is a non-empty error log, and "single_module"
7194	# appears in it, assume the flag caused a linker warning
7195        if test -s conftest.err && $GREP single_module conftest.err; then
7196	  cat conftest.err >&5
7197	# Otherwise, if the output was created with a 0 exit code from
7198	# the compiler, it worked.
7199	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7200	  lt_cv_apple_cc_single_mod=yes
7201	else
7202	  cat conftest.err >&5
7203	fi
7204	rm -rf libconftest.dylib*
7205	rm -f conftest.*
7206      fi
7207fi
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7209$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7210
7211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7212$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7213if ${lt_cv_ld_exported_symbols_list+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  lt_cv_ld_exported_symbols_list=no
7217      save_LDFLAGS=$LDFLAGS
7218      echo "_main" > conftest.sym
7219      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7220      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222
7223int
7224main ()
7225{
7226
7227  ;
7228  return 0;
7229}
7230_ACEOF
7231if ac_fn_c_try_link "$LINENO"; then :
7232  lt_cv_ld_exported_symbols_list=yes
7233else
7234  lt_cv_ld_exported_symbols_list=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext \
7237    conftest$ac_exeext conftest.$ac_ext
7238	LDFLAGS="$save_LDFLAGS"
7239
7240fi
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7242$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7243
7244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7245$as_echo_n "checking for -force_load linker flag... " >&6; }
7246if ${lt_cv_ld_force_load+:} false; then :
7247  $as_echo_n "(cached) " >&6
7248else
7249  lt_cv_ld_force_load=no
7250      cat > conftest.c << _LT_EOF
7251int forced_loaded() { return 2;}
7252_LT_EOF
7253      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7254      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7255      echo "$AR cru libconftest.a conftest.o" >&5
7256      $AR cru libconftest.a conftest.o 2>&5
7257      echo "$RANLIB libconftest.a" >&5
7258      $RANLIB libconftest.a 2>&5
7259      cat > conftest.c << _LT_EOF
7260int main() { return 0;}
7261_LT_EOF
7262      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7263      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7264      _lt_result=$?
7265      if test -s conftest.err && $GREP force_load conftest.err; then
7266	cat conftest.err >&5
7267      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7268	lt_cv_ld_force_load=yes
7269      else
7270	cat conftest.err >&5
7271      fi
7272        rm -f conftest.err libconftest.a conftest conftest.c
7273        rm -rf conftest.dSYM
7274
7275fi
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7277$as_echo "$lt_cv_ld_force_load" >&6; }
7278    case $host_os in
7279    rhapsody* | darwin1.[012])
7280      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7281    darwin1.*)
7282      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7283    darwin*) # darwin 5.x on
7284      # if running on 10.5 or later, the deployment target defaults
7285      # to the OS version, if on x86, and 10.4, the deployment
7286      # target defaults to 10.4. Don't you love it?
7287      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7288	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7289	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7290	10.[012]*)
7291	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7292	10.*)
7293	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7294      esac
7295    ;;
7296  esac
7297    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7298      _lt_dar_single_mod='$single_module'
7299    fi
7300    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7301      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7302    else
7303      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7304    fi
7305    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7306      _lt_dsymutil='~$DSYMUTIL $lib || :'
7307    else
7308      _lt_dsymutil=
7309    fi
7310    ;;
7311  esac
7312
7313ac_ext=c
7314ac_cpp='$CPP $CPPFLAGS'
7315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7319$as_echo_n "checking how to run the C preprocessor... " >&6; }
7320# On Suns, sometimes $CPP names a directory.
7321if test -n "$CPP" && test -d "$CPP"; then
7322  CPP=
7323fi
7324if test -z "$CPP"; then
7325  if ${ac_cv_prog_CPP+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328      # Double quotes because CPP needs to be expanded
7329    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7330    do
7331      ac_preproc_ok=false
7332for ac_c_preproc_warn_flag in '' yes
7333do
7334  # Use a header file that comes with gcc, so configuring glibc
7335  # with a fresh cross-compiler works.
7336  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7337  # <limits.h> exists even on freestanding compilers.
7338  # On the NeXT, cc -E runs the code through the compiler's parser,
7339  # not just through cpp. "Syntax error" is here to catch this case.
7340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342#ifdef __STDC__
7343# include <limits.h>
7344#else
7345# include <assert.h>
7346#endif
7347		     Syntax error
7348_ACEOF
7349if ac_fn_c_try_cpp "$LINENO"; then :
7350
7351else
7352  # Broken: fails on valid input.
7353continue
7354fi
7355rm -f conftest.err conftest.i conftest.$ac_ext
7356
7357  # OK, works on sane cases.  Now check whether nonexistent headers
7358  # can be detected and how.
7359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361#include <ac_nonexistent.h>
7362_ACEOF
7363if ac_fn_c_try_cpp "$LINENO"; then :
7364  # Broken: success on invalid input.
7365continue
7366else
7367  # Passes both tests.
7368ac_preproc_ok=:
7369break
7370fi
7371rm -f conftest.err conftest.i conftest.$ac_ext
7372
7373done
7374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7375rm -f conftest.i conftest.err conftest.$ac_ext
7376if $ac_preproc_ok; then :
7377  break
7378fi
7379
7380    done
7381    ac_cv_prog_CPP=$CPP
7382
7383fi
7384  CPP=$ac_cv_prog_CPP
7385else
7386  ac_cv_prog_CPP=$CPP
7387fi
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7389$as_echo "$CPP" >&6; }
7390ac_preproc_ok=false
7391for ac_c_preproc_warn_flag in '' yes
7392do
7393  # Use a header file that comes with gcc, so configuring glibc
7394  # with a fresh cross-compiler works.
7395  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7396  # <limits.h> exists even on freestanding compilers.
7397  # On the NeXT, cc -E runs the code through the compiler's parser,
7398  # not just through cpp. "Syntax error" is here to catch this case.
7399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401#ifdef __STDC__
7402# include <limits.h>
7403#else
7404# include <assert.h>
7405#endif
7406		     Syntax error
7407_ACEOF
7408if ac_fn_c_try_cpp "$LINENO"; then :
7409
7410else
7411  # Broken: fails on valid input.
7412continue
7413fi
7414rm -f conftest.err conftest.i conftest.$ac_ext
7415
7416  # OK, works on sane cases.  Now check whether nonexistent headers
7417  # can be detected and how.
7418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h.  */
7420#include <ac_nonexistent.h>
7421_ACEOF
7422if ac_fn_c_try_cpp "$LINENO"; then :
7423  # Broken: success on invalid input.
7424continue
7425else
7426  # Passes both tests.
7427ac_preproc_ok=:
7428break
7429fi
7430rm -f conftest.err conftest.i conftest.$ac_ext
7431
7432done
7433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7434rm -f conftest.i conftest.err conftest.$ac_ext
7435if $ac_preproc_ok; then :
7436
7437else
7438  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7440as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7441See \`config.log' for more details" "$LINENO" 5; }
7442fi
7443
7444ac_ext=c
7445ac_cpp='$CPP $CPPFLAGS'
7446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449
7450
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7452$as_echo_n "checking for ANSI C header files... " >&6; }
7453if ${ac_cv_header_stdc+:} false; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457/* end confdefs.h.  */
7458#include <stdlib.h>
7459#include <stdarg.h>
7460#include <string.h>
7461#include <float.h>
7462
7463int
7464main ()
7465{
7466
7467  ;
7468  return 0;
7469}
7470_ACEOF
7471if ac_fn_c_try_compile "$LINENO"; then :
7472  ac_cv_header_stdc=yes
7473else
7474  ac_cv_header_stdc=no
7475fi
7476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477
7478if test $ac_cv_header_stdc = yes; then
7479  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482#include <string.h>
7483
7484_ACEOF
7485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7486  $EGREP "memchr" >/dev/null 2>&1; then :
7487
7488else
7489  ac_cv_header_stdc=no
7490fi
7491rm -f conftest*
7492
7493fi
7494
7495if test $ac_cv_header_stdc = yes; then
7496  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h.  */
7499#include <stdlib.h>
7500
7501_ACEOF
7502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7503  $EGREP "free" >/dev/null 2>&1; then :
7504
7505else
7506  ac_cv_header_stdc=no
7507fi
7508rm -f conftest*
7509
7510fi
7511
7512if test $ac_cv_header_stdc = yes; then
7513  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7514  if test "$cross_compiling" = yes; then :
7515  :
7516else
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519#include <ctype.h>
7520#include <stdlib.h>
7521#if ((' ' & 0x0FF) == 0x020)
7522# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7523# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7524#else
7525# define ISLOWER(c) \
7526		   (('a' <= (c) && (c) <= 'i') \
7527		     || ('j' <= (c) && (c) <= 'r') \
7528		     || ('s' <= (c) && (c) <= 'z'))
7529# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7530#endif
7531
7532#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7533int
7534main ()
7535{
7536  int i;
7537  for (i = 0; i < 256; i++)
7538    if (XOR (islower (i), ISLOWER (i))
7539	|| toupper (i) != TOUPPER (i))
7540      return 2;
7541  return 0;
7542}
7543_ACEOF
7544if ac_fn_c_try_run "$LINENO"; then :
7545
7546else
7547  ac_cv_header_stdc=no
7548fi
7549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7550  conftest.$ac_objext conftest.beam conftest.$ac_ext
7551fi
7552
7553fi
7554fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7556$as_echo "$ac_cv_header_stdc" >&6; }
7557if test $ac_cv_header_stdc = yes; then
7558
7559$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7560
7561fi
7562
7563# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7565		  inttypes.h stdint.h unistd.h
7566do :
7567  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7569"
7570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7571  cat >>confdefs.h <<_ACEOF
7572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7573_ACEOF
7574
7575fi
7576
7577done
7578
7579
7580for ac_header in dlfcn.h
7581do :
7582  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7583"
7584if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7585  cat >>confdefs.h <<_ACEOF
7586#define HAVE_DLFCN_H 1
7587_ACEOF
7588
7589fi
7590
7591done
7592
7593
7594
7595
7596
7597# Set options
7598
7599
7600
7601        enable_dlopen=no
7602
7603
7604  enable_win32_dll=no
7605
7606
7607            # Check whether --enable-shared was given.
7608if test "${enable_shared+set}" = set; then :
7609  enableval=$enable_shared; p=${PACKAGE-default}
7610    case $enableval in
7611    yes) enable_shared=yes ;;
7612    no) enable_shared=no ;;
7613    *)
7614      enable_shared=no
7615      # Look at the argument we got.  We use all the common list separators.
7616      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7617      for pkg in $enableval; do
7618	IFS="$lt_save_ifs"
7619	if test "X$pkg" = "X$p"; then
7620	  enable_shared=yes
7621	fi
7622      done
7623      IFS="$lt_save_ifs"
7624      ;;
7625    esac
7626else
7627  enable_shared=yes
7628fi
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638  # Check whether --enable-static was given.
7639if test "${enable_static+set}" = set; then :
7640  enableval=$enable_static; p=${PACKAGE-default}
7641    case $enableval in
7642    yes) enable_static=yes ;;
7643    no) enable_static=no ;;
7644    *)
7645     enable_static=no
7646      # Look at the argument we got.  We use all the common list separators.
7647      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7648      for pkg in $enableval; do
7649	IFS="$lt_save_ifs"
7650	if test "X$pkg" = "X$p"; then
7651	  enable_static=yes
7652	fi
7653      done
7654      IFS="$lt_save_ifs"
7655      ;;
7656    esac
7657else
7658  enable_static=yes
7659fi
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670# Check whether --with-pic was given.
7671if test "${with_pic+set}" = set; then :
7672  withval=$with_pic; lt_p=${PACKAGE-default}
7673    case $withval in
7674    yes|no) pic_mode=$withval ;;
7675    *)
7676      pic_mode=default
7677      # Look at the argument we got.  We use all the common list separators.
7678      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7679      for lt_pkg in $withval; do
7680	IFS="$lt_save_ifs"
7681	if test "X$lt_pkg" = "X$lt_p"; then
7682	  pic_mode=yes
7683	fi
7684      done
7685      IFS="$lt_save_ifs"
7686      ;;
7687    esac
7688else
7689  pic_mode=default
7690fi
7691
7692
7693test -z "$pic_mode" && pic_mode=default
7694
7695
7696
7697
7698
7699
7700
7701  # Check whether --enable-fast-install was given.
7702if test "${enable_fast_install+set}" = set; then :
7703  enableval=$enable_fast_install; p=${PACKAGE-default}
7704    case $enableval in
7705    yes) enable_fast_install=yes ;;
7706    no) enable_fast_install=no ;;
7707    *)
7708      enable_fast_install=no
7709      # Look at the argument we got.  We use all the common list separators.
7710      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711      for pkg in $enableval; do
7712	IFS="$lt_save_ifs"
7713	if test "X$pkg" = "X$p"; then
7714	  enable_fast_install=yes
7715	fi
7716      done
7717      IFS="$lt_save_ifs"
7718      ;;
7719    esac
7720else
7721  enable_fast_install=yes
7722fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734# This can be used to rebuild libtool when needed
7735LIBTOOL_DEPS="$ltmain"
7736
7737# Always use our own libtool.
7738LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769test -z "$LN_S" && LN_S="ln -s"
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784if test -n "${ZSH_VERSION+set}" ; then
7785   setopt NO_GLOB_SUBST
7786fi
7787
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7789$as_echo_n "checking for objdir... " >&6; }
7790if ${lt_cv_objdir+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  rm -f .libs 2>/dev/null
7794mkdir .libs 2>/dev/null
7795if test -d .libs; then
7796  lt_cv_objdir=.libs
7797else
7798  # MS-DOS does not allow filenames that begin with a dot.
7799  lt_cv_objdir=_libs
7800fi
7801rmdir .libs 2>/dev/null
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7804$as_echo "$lt_cv_objdir" >&6; }
7805objdir=$lt_cv_objdir
7806
7807
7808
7809
7810
7811cat >>confdefs.h <<_ACEOF
7812#define LT_OBJDIR "$lt_cv_objdir/"
7813_ACEOF
7814
7815
7816
7817
7818case $host_os in
7819aix3*)
7820  # AIX sometimes has problems with the GCC collect2 program.  For some
7821  # reason, if we set the COLLECT_NAMES environment variable, the problems
7822  # vanish in a puff of smoke.
7823  if test "X${COLLECT_NAMES+set}" != Xset; then
7824    COLLECT_NAMES=
7825    export COLLECT_NAMES
7826  fi
7827  ;;
7828esac
7829
7830# Global variables:
7831ofile=libtool
7832can_build_shared=yes
7833
7834# All known linkers require a `.a' archive for static linking (except MSVC,
7835# which needs '.lib').
7836libext=a
7837
7838with_gnu_ld="$lt_cv_prog_gnu_ld"
7839
7840old_CC="$CC"
7841old_CFLAGS="$CFLAGS"
7842
7843# Set sane defaults for various variables
7844test -z "$CC" && CC=cc
7845test -z "$LTCC" && LTCC=$CC
7846test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7847test -z "$LD" && LD=ld
7848test -z "$ac_objext" && ac_objext=o
7849
7850for cc_temp in $compiler""; do
7851  case $cc_temp in
7852    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7853    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7854    \-*) ;;
7855    *) break;;
7856  esac
7857done
7858cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7859
7860
7861# Only perform the check for file, if the check method requires it
7862test -z "$MAGIC_CMD" && MAGIC_CMD=file
7863case $deplibs_check_method in
7864file_magic*)
7865  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7867$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7868if ${lt_cv_path_MAGIC_CMD+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  case $MAGIC_CMD in
7872[\\/*] |  ?:[\\/]*)
7873  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7874  ;;
7875*)
7876  lt_save_MAGIC_CMD="$MAGIC_CMD"
7877  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7878  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7879  for ac_dir in $ac_dummy; do
7880    IFS="$lt_save_ifs"
7881    test -z "$ac_dir" && ac_dir=.
7882    if test -f $ac_dir/${ac_tool_prefix}file; then
7883      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7884      if test -n "$file_magic_test_file"; then
7885	case $deplibs_check_method in
7886	"file_magic "*)
7887	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7888	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7889	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7890	    $EGREP "$file_magic_regex" > /dev/null; then
7891	    :
7892	  else
7893	    cat <<_LT_EOF 1>&2
7894
7895*** Warning: the command libtool uses to detect shared libraries,
7896*** $file_magic_cmd, produces output that libtool cannot recognize.
7897*** The result is that libtool may fail to recognize shared libraries
7898*** as such.  This will affect the creation of libtool libraries that
7899*** depend on shared libraries, but programs linked with such libtool
7900*** libraries will work regardless of this problem.  Nevertheless, you
7901*** may want to report the problem to your system manager and/or to
7902*** bug-libtool@gnu.org
7903
7904_LT_EOF
7905	  fi ;;
7906	esac
7907      fi
7908      break
7909    fi
7910  done
7911  IFS="$lt_save_ifs"
7912  MAGIC_CMD="$lt_save_MAGIC_CMD"
7913  ;;
7914esac
7915fi
7916
7917MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918if test -n "$MAGIC_CMD"; then
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7920$as_echo "$MAGIC_CMD" >&6; }
7921else
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923$as_echo "no" >&6; }
7924fi
7925
7926
7927
7928
7929
7930if test -z "$lt_cv_path_MAGIC_CMD"; then
7931  if test -n "$ac_tool_prefix"; then
7932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7933$as_echo_n "checking for file... " >&6; }
7934if ${lt_cv_path_MAGIC_CMD+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  case $MAGIC_CMD in
7938[\\/*] |  ?:[\\/]*)
7939  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7940  ;;
7941*)
7942  lt_save_MAGIC_CMD="$MAGIC_CMD"
7943  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7944  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7945  for ac_dir in $ac_dummy; do
7946    IFS="$lt_save_ifs"
7947    test -z "$ac_dir" && ac_dir=.
7948    if test -f $ac_dir/file; then
7949      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7950      if test -n "$file_magic_test_file"; then
7951	case $deplibs_check_method in
7952	"file_magic "*)
7953	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7954	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7956	    $EGREP "$file_magic_regex" > /dev/null; then
7957	    :
7958	  else
7959	    cat <<_LT_EOF 1>&2
7960
7961*** Warning: the command libtool uses to detect shared libraries,
7962*** $file_magic_cmd, produces output that libtool cannot recognize.
7963*** The result is that libtool may fail to recognize shared libraries
7964*** as such.  This will affect the creation of libtool libraries that
7965*** depend on shared libraries, but programs linked with such libtool
7966*** libraries will work regardless of this problem.  Nevertheless, you
7967*** may want to report the problem to your system manager and/or to
7968*** bug-libtool@gnu.org
7969
7970_LT_EOF
7971	  fi ;;
7972	esac
7973      fi
7974      break
7975    fi
7976  done
7977  IFS="$lt_save_ifs"
7978  MAGIC_CMD="$lt_save_MAGIC_CMD"
7979  ;;
7980esac
7981fi
7982
7983MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7984if test -n "$MAGIC_CMD"; then
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7986$as_echo "$MAGIC_CMD" >&6; }
7987else
7988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
7990fi
7991
7992
7993  else
7994    MAGIC_CMD=:
7995  fi
7996fi
7997
7998  fi
7999  ;;
8000esac
8001
8002# Use C for the default configuration in the libtool script
8003
8004lt_save_CC="$CC"
8005ac_ext=c
8006ac_cpp='$CPP $CPPFLAGS'
8007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012# Source file extension for C test sources.
8013ac_ext=c
8014
8015# Object file extension for compiled C test sources.
8016objext=o
8017objext=$objext
8018
8019# Code to be used in simple compile tests
8020lt_simple_compile_test_code="int some_variable = 0;"
8021
8022# Code to be used in simple link tests
8023lt_simple_link_test_code='int main(){return(0);}'
8024
8025
8026
8027
8028
8029
8030
8031# If no C compiler was specified, use CC.
8032LTCC=${LTCC-"$CC"}
8033
8034# If no C compiler flags were specified, use CFLAGS.
8035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8036
8037# Allow CC to be a program name with arguments.
8038compiler=$CC
8039
8040# Save the default compiler, since it gets overwritten when the other
8041# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8042compiler_DEFAULT=$CC
8043
8044# save warnings/boilerplate of simple test code
8045ac_outfile=conftest.$ac_objext
8046echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8047eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8048_lt_compiler_boilerplate=`cat conftest.err`
8049$RM conftest*
8050
8051ac_outfile=conftest.$ac_objext
8052echo "$lt_simple_link_test_code" >conftest.$ac_ext
8053eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8054_lt_linker_boilerplate=`cat conftest.err`
8055$RM -r conftest*
8056
8057
8058if test -n "$compiler"; then
8059
8060lt_prog_compiler_no_builtin_flag=
8061
8062if test "$GCC" = yes; then
8063  case $cc_basename in
8064  nvcc*)
8065    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8066  *)
8067    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8068  esac
8069
8070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8071$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8072if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  lt_cv_prog_compiler_rtti_exceptions=no
8076   ac_outfile=conftest.$ac_objext
8077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8078   lt_compiler_flag="-fno-rtti -fno-exceptions"
8079   # Insert the option either (1) after the last *FLAGS variable, or
8080   # (2) before a word containing "conftest.", or (3) at the end.
8081   # Note that $ac_compile itself does not contain backslashes and begins
8082   # with a dollar sign (not a hyphen), so the echo should work correctly.
8083   # The option is referenced via a variable to avoid confusing sed.
8084   lt_compile=`echo "$ac_compile" | $SED \
8085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087   -e 's:$: $lt_compiler_flag:'`
8088   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8089   (eval "$lt_compile" 2>conftest.err)
8090   ac_status=$?
8091   cat conftest.err >&5
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   if (exit $ac_status) && test -s "$ac_outfile"; then
8094     # The compiler can only warn and ignore the option if not recognized
8095     # So say no if there are warnings other than the usual output.
8096     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8097     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8099       lt_cv_prog_compiler_rtti_exceptions=yes
8100     fi
8101   fi
8102   $RM conftest*
8103
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8106$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8107
8108if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8109    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8110else
8111    :
8112fi
8113
8114fi
8115
8116
8117
8118
8119
8120
8121  lt_prog_compiler_wl=
8122lt_prog_compiler_pic=
8123lt_prog_compiler_static=
8124
8125
8126  if test "$GCC" = yes; then
8127    lt_prog_compiler_wl='-Wl,'
8128    lt_prog_compiler_static='-static'
8129
8130    case $host_os in
8131      aix*)
8132      # All AIX code is PIC.
8133      if test "$host_cpu" = ia64; then
8134	# AIX 5 now supports IA64 processor
8135	lt_prog_compiler_static='-Bstatic'
8136      fi
8137      ;;
8138
8139    amigaos*)
8140      case $host_cpu in
8141      powerpc)
8142            # see comment about AmigaOS4 .so support
8143            lt_prog_compiler_pic='-fPIC'
8144        ;;
8145      m68k)
8146            # FIXME: we need at least 68020 code to build shared libraries, but
8147            # adding the `-m68020' flag to GCC prevents building anything better,
8148            # like `-m68040'.
8149            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8150        ;;
8151      esac
8152      ;;
8153
8154    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8155      # PIC is the default for these OSes.
8156      ;;
8157
8158    mingw* | cygwin* | pw32* | os2* | cegcc*)
8159      # This hack is so that the source file can tell whether it is being
8160      # built for inclusion in a dll (and should export symbols for example).
8161      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8162      # (--disable-auto-import) libraries
8163      lt_prog_compiler_pic='-DDLL_EXPORT'
8164      ;;
8165
8166    darwin* | rhapsody*)
8167      # PIC is the default on this platform
8168      # Common symbols not allowed in MH_DYLIB files
8169      lt_prog_compiler_pic='-fno-common'
8170      ;;
8171
8172    haiku*)
8173      # PIC is the default for Haiku.
8174      # The "-static" flag exists, but is broken.
8175      lt_prog_compiler_static=
8176      ;;
8177
8178    hpux*)
8179      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8180      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8181      # sets the default TLS model and affects inlining.
8182      case $host_cpu in
8183      hppa*64*)
8184	# +Z the default
8185	;;
8186      *)
8187	lt_prog_compiler_pic='-fPIC'
8188	;;
8189      esac
8190      ;;
8191
8192    interix[3-9]*)
8193      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8194      # Instead, we relocate shared libraries at runtime.
8195      ;;
8196
8197    msdosdjgpp*)
8198      # Just because we use GCC doesn't mean we suddenly get shared libraries
8199      # on systems that don't support them.
8200      lt_prog_compiler_can_build_shared=no
8201      enable_shared=no
8202      ;;
8203
8204    *nto* | *qnx*)
8205      # QNX uses GNU C++, but need to define -shared option too, otherwise
8206      # it will coredump.
8207      lt_prog_compiler_pic='-fPIC -shared'
8208      ;;
8209
8210    sysv4*MP*)
8211      if test -d /usr/nec; then
8212	lt_prog_compiler_pic=-Kconform_pic
8213      fi
8214      ;;
8215
8216    *)
8217      lt_prog_compiler_pic='-fPIC'
8218      ;;
8219    esac
8220
8221    case $cc_basename in
8222    nvcc*) # Cuda Compiler Driver 2.2
8223      lt_prog_compiler_wl='-Xlinker '
8224      if test -n "$lt_prog_compiler_pic"; then
8225        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8226      fi
8227      ;;
8228    esac
8229  else
8230    # PORTME Check for flag to pass linker flags through the system compiler.
8231    case $host_os in
8232    aix*)
8233      lt_prog_compiler_wl='-Wl,'
8234      if test "$host_cpu" = ia64; then
8235	# AIX 5 now supports IA64 processor
8236	lt_prog_compiler_static='-Bstatic'
8237      else
8238	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8239      fi
8240      ;;
8241
8242    mingw* | cygwin* | pw32* | os2* | cegcc*)
8243      # This hack is so that the source file can tell whether it is being
8244      # built for inclusion in a dll (and should export symbols for example).
8245      lt_prog_compiler_pic='-DDLL_EXPORT'
8246      ;;
8247
8248    hpux9* | hpux10* | hpux11*)
8249      lt_prog_compiler_wl='-Wl,'
8250      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8251      # not for PA HP-UX.
8252      case $host_cpu in
8253      hppa*64*|ia64*)
8254	# +Z the default
8255	;;
8256      *)
8257	lt_prog_compiler_pic='+Z'
8258	;;
8259      esac
8260      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8261      lt_prog_compiler_static='${wl}-a ${wl}archive'
8262      ;;
8263
8264    irix5* | irix6* | nonstopux*)
8265      lt_prog_compiler_wl='-Wl,'
8266      # PIC (with -KPIC) is the default.
8267      lt_prog_compiler_static='-non_shared'
8268      ;;
8269
8270    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8271      case $cc_basename in
8272      # old Intel for x86_64 which still supported -KPIC.
8273      ecc*)
8274	lt_prog_compiler_wl='-Wl,'
8275	lt_prog_compiler_pic='-KPIC'
8276	lt_prog_compiler_static='-static'
8277        ;;
8278      # icc used to be incompatible with GCC.
8279      # ICC 10 doesn't accept -KPIC any more.
8280      icc* | ifort*)
8281	lt_prog_compiler_wl='-Wl,'
8282	lt_prog_compiler_pic='-fPIC'
8283	lt_prog_compiler_static='-static'
8284        ;;
8285      # Lahey Fortran 8.1.
8286      lf95*)
8287	lt_prog_compiler_wl='-Wl,'
8288	lt_prog_compiler_pic='--shared'
8289	lt_prog_compiler_static='--static'
8290	;;
8291      nagfor*)
8292	# NAG Fortran compiler
8293	lt_prog_compiler_wl='-Wl,-Wl,,'
8294	lt_prog_compiler_pic='-PIC'
8295	lt_prog_compiler_static='-Bstatic'
8296	;;
8297      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8298        # Portland Group compilers (*not* the Pentium gcc compiler,
8299	# which looks to be a dead project)
8300	lt_prog_compiler_wl='-Wl,'
8301	lt_prog_compiler_pic='-fpic'
8302	lt_prog_compiler_static='-Bstatic'
8303        ;;
8304      ccc*)
8305        lt_prog_compiler_wl='-Wl,'
8306        # All Alpha code is PIC.
8307        lt_prog_compiler_static='-non_shared'
8308        ;;
8309      xl* | bgxl* | bgf* | mpixl*)
8310	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8311	lt_prog_compiler_wl='-Wl,'
8312	lt_prog_compiler_pic='-qpic'
8313	lt_prog_compiler_static='-qstaticlink'
8314	;;
8315      *)
8316	case `$CC -V 2>&1 | sed 5q` in
8317	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8318	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8319	  lt_prog_compiler_pic='-KPIC'
8320	  lt_prog_compiler_static='-Bstatic'
8321	  lt_prog_compiler_wl=''
8322	  ;;
8323	*Sun\ F* | *Sun*Fortran*)
8324	  lt_prog_compiler_pic='-KPIC'
8325	  lt_prog_compiler_static='-Bstatic'
8326	  lt_prog_compiler_wl='-Qoption ld '
8327	  ;;
8328	*Sun\ C*)
8329	  # Sun C 5.9
8330	  lt_prog_compiler_pic='-KPIC'
8331	  lt_prog_compiler_static='-Bstatic'
8332	  lt_prog_compiler_wl='-Wl,'
8333	  ;;
8334        *Intel*\ [CF]*Compiler*)
8335	  lt_prog_compiler_wl='-Wl,'
8336	  lt_prog_compiler_pic='-fPIC'
8337	  lt_prog_compiler_static='-static'
8338	  ;;
8339	*Portland\ Group*)
8340	  lt_prog_compiler_wl='-Wl,'
8341	  lt_prog_compiler_pic='-fpic'
8342	  lt_prog_compiler_static='-Bstatic'
8343	  ;;
8344	esac
8345	;;
8346      esac
8347      ;;
8348
8349    newsos6)
8350      lt_prog_compiler_pic='-KPIC'
8351      lt_prog_compiler_static='-Bstatic'
8352      ;;
8353
8354    *nto* | *qnx*)
8355      # QNX uses GNU C++, but need to define -shared option too, otherwise
8356      # it will coredump.
8357      lt_prog_compiler_pic='-fPIC -shared'
8358      ;;
8359
8360    osf3* | osf4* | osf5*)
8361      lt_prog_compiler_wl='-Wl,'
8362      # All OSF/1 code is PIC.
8363      lt_prog_compiler_static='-non_shared'
8364      ;;
8365
8366    rdos*)
8367      lt_prog_compiler_static='-non_shared'
8368      ;;
8369
8370    solaris*)
8371      lt_prog_compiler_pic='-KPIC'
8372      lt_prog_compiler_static='-Bstatic'
8373      case $cc_basename in
8374      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8375	lt_prog_compiler_wl='-Qoption ld ';;
8376      *)
8377	lt_prog_compiler_wl='-Wl,';;
8378      esac
8379      ;;
8380
8381    sunos4*)
8382      lt_prog_compiler_wl='-Qoption ld '
8383      lt_prog_compiler_pic='-PIC'
8384      lt_prog_compiler_static='-Bstatic'
8385      ;;
8386
8387    sysv4 | sysv4.2uw2* | sysv4.3*)
8388      lt_prog_compiler_wl='-Wl,'
8389      lt_prog_compiler_pic='-KPIC'
8390      lt_prog_compiler_static='-Bstatic'
8391      ;;
8392
8393    sysv4*MP*)
8394      if test -d /usr/nec ;then
8395	lt_prog_compiler_pic='-Kconform_pic'
8396	lt_prog_compiler_static='-Bstatic'
8397      fi
8398      ;;
8399
8400    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8401      lt_prog_compiler_wl='-Wl,'
8402      lt_prog_compiler_pic='-KPIC'
8403      lt_prog_compiler_static='-Bstatic'
8404      ;;
8405
8406    unicos*)
8407      lt_prog_compiler_wl='-Wl,'
8408      lt_prog_compiler_can_build_shared=no
8409      ;;
8410
8411    uts4*)
8412      lt_prog_compiler_pic='-pic'
8413      lt_prog_compiler_static='-Bstatic'
8414      ;;
8415
8416    *)
8417      lt_prog_compiler_can_build_shared=no
8418      ;;
8419    esac
8420  fi
8421
8422case $host_os in
8423  # For platforms which do not support PIC, -DPIC is meaningless:
8424  *djgpp*)
8425    lt_prog_compiler_pic=
8426    ;;
8427  *)
8428    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8429    ;;
8430esac
8431
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8433$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8434if ${lt_cv_prog_compiler_pic+:} false; then :
8435  $as_echo_n "(cached) " >&6
8436else
8437  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8440$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8441lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8442
8443#
8444# Check to make sure the PIC flag actually works.
8445#
8446if test -n "$lt_prog_compiler_pic"; then
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8448$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8449if ${lt_cv_prog_compiler_pic_works+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  lt_cv_prog_compiler_pic_works=no
8453   ac_outfile=conftest.$ac_objext
8454   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8456   # Insert the option either (1) after the last *FLAGS variable, or
8457   # (2) before a word containing "conftest.", or (3) at the end.
8458   # Note that $ac_compile itself does not contain backslashes and begins
8459   # with a dollar sign (not a hyphen), so the echo should work correctly.
8460   # The option is referenced via a variable to avoid confusing sed.
8461   lt_compile=`echo "$ac_compile" | $SED \
8462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464   -e 's:$: $lt_compiler_flag:'`
8465   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8466   (eval "$lt_compile" 2>conftest.err)
8467   ac_status=$?
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   if (exit $ac_status) && test -s "$ac_outfile"; then
8471     # The compiler can only warn and ignore the option if not recognized
8472     # So say no if there are warnings other than the usual output.
8473     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8474     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8476       lt_cv_prog_compiler_pic_works=yes
8477     fi
8478   fi
8479   $RM conftest*
8480
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8483$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8484
8485if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8486    case $lt_prog_compiler_pic in
8487     "" | " "*) ;;
8488     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8489     esac
8490else
8491    lt_prog_compiler_pic=
8492     lt_prog_compiler_can_build_shared=no
8493fi
8494
8495fi
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507#
8508# Check to make sure the static flag actually works.
8509#
8510wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8512$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8513if ${lt_cv_prog_compiler_static_works+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  lt_cv_prog_compiler_static_works=no
8517   save_LDFLAGS="$LDFLAGS"
8518   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8519   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8520   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8521     # The linker can only warn and ignore the option if not recognized
8522     # So say no if there are warnings
8523     if test -s conftest.err; then
8524       # Append any errors to the config.log.
8525       cat conftest.err 1>&5
8526       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8527       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8528       if diff conftest.exp conftest.er2 >/dev/null; then
8529         lt_cv_prog_compiler_static_works=yes
8530       fi
8531     else
8532       lt_cv_prog_compiler_static_works=yes
8533     fi
8534   fi
8535   $RM -r conftest*
8536   LDFLAGS="$save_LDFLAGS"
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8540$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8541
8542if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8543    :
8544else
8545    lt_prog_compiler_static=
8546fi
8547
8548
8549
8550
8551
8552
8553
8554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8555$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8556if ${lt_cv_prog_compiler_c_o+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  lt_cv_prog_compiler_c_o=no
8560   $RM -r conftest 2>/dev/null
8561   mkdir conftest
8562   cd conftest
8563   mkdir out
8564   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565
8566   lt_compiler_flag="-o out/conftest2.$ac_objext"
8567   # Insert the option either (1) after the last *FLAGS variable, or
8568   # (2) before a word containing "conftest.", or (3) at the end.
8569   # Note that $ac_compile itself does not contain backslashes and begins
8570   # with a dollar sign (not a hyphen), so the echo should work correctly.
8571   lt_compile=`echo "$ac_compile" | $SED \
8572   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574   -e 's:$: $lt_compiler_flag:'`
8575   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8576   (eval "$lt_compile" 2>out/conftest.err)
8577   ac_status=$?
8578   cat out/conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8581   then
8582     # The compiler can only warn and ignore the option if not recognized
8583     # So say no if there are warnings
8584     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8585     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8586     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8587       lt_cv_prog_compiler_c_o=yes
8588     fi
8589   fi
8590   chmod u+w . 2>&5
8591   $RM conftest*
8592   # SGI C++ compiler will create directory out/ii_files/ for
8593   # template instantiation
8594   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8595   $RM out/* && rmdir out
8596   cd ..
8597   $RM -r conftest
8598   $RM conftest*
8599
8600fi
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8602$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8603
8604
8605
8606
8607
8608
8609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8610$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8611if ${lt_cv_prog_compiler_c_o+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  lt_cv_prog_compiler_c_o=no
8615   $RM -r conftest 2>/dev/null
8616   mkdir conftest
8617   cd conftest
8618   mkdir out
8619   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8620
8621   lt_compiler_flag="-o out/conftest2.$ac_objext"
8622   # Insert the option either (1) after the last *FLAGS variable, or
8623   # (2) before a word containing "conftest.", or (3) at the end.
8624   # Note that $ac_compile itself does not contain backslashes and begins
8625   # with a dollar sign (not a hyphen), so the echo should work correctly.
8626   lt_compile=`echo "$ac_compile" | $SED \
8627   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8628   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8629   -e 's:$: $lt_compiler_flag:'`
8630   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8631   (eval "$lt_compile" 2>out/conftest.err)
8632   ac_status=$?
8633   cat out/conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8636   then
8637     # The compiler can only warn and ignore the option if not recognized
8638     # So say no if there are warnings
8639     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8640     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8641     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8642       lt_cv_prog_compiler_c_o=yes
8643     fi
8644   fi
8645   chmod u+w . 2>&5
8646   $RM conftest*
8647   # SGI C++ compiler will create directory out/ii_files/ for
8648   # template instantiation
8649   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8650   $RM out/* && rmdir out
8651   cd ..
8652   $RM -r conftest
8653   $RM conftest*
8654
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8657$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8658
8659
8660
8661
8662hard_links="nottested"
8663if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8664  # do not overwrite the value of need_locks provided by the user
8665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8666$as_echo_n "checking if we can lock with hard links... " >&6; }
8667  hard_links=yes
8668  $RM conftest*
8669  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8670  touch conftest.a
8671  ln conftest.a conftest.b 2>&5 || hard_links=no
8672  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8674$as_echo "$hard_links" >&6; }
8675  if test "$hard_links" = no; then
8676    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8677$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8678    need_locks=warn
8679  fi
8680else
8681  need_locks=no
8682fi
8683
8684
8685
8686
8687
8688
8689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8690$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8691
8692  runpath_var=
8693  allow_undefined_flag=
8694  always_export_symbols=no
8695  archive_cmds=
8696  archive_expsym_cmds=
8697  compiler_needs_object=no
8698  enable_shared_with_static_runtimes=no
8699  export_dynamic_flag_spec=
8700  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8701  hardcode_automatic=no
8702  hardcode_direct=no
8703  hardcode_direct_absolute=no
8704  hardcode_libdir_flag_spec=
8705  hardcode_libdir_separator=
8706  hardcode_minus_L=no
8707  hardcode_shlibpath_var=unsupported
8708  inherit_rpath=no
8709  link_all_deplibs=unknown
8710  module_cmds=
8711  module_expsym_cmds=
8712  old_archive_from_new_cmds=
8713  old_archive_from_expsyms_cmds=
8714  thread_safe_flag_spec=
8715  whole_archive_flag_spec=
8716  # include_expsyms should be a list of space-separated symbols to be *always*
8717  # included in the symbol list
8718  include_expsyms=
8719  # exclude_expsyms can be an extended regexp of symbols to exclude
8720  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8721  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8722  # as well as any symbol that contains `d'.
8723  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8724  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8725  # platforms (ab)use it in PIC code, but their linkers get confused if
8726  # the symbol is explicitly referenced.  Since portable code cannot
8727  # rely on this symbol name, it's probably fine to never include it in
8728  # preloaded symbol tables.
8729  # Exclude shared library initialization/finalization symbols.
8730  extract_expsyms_cmds=
8731
8732  case $host_os in
8733  cygwin* | mingw* | pw32* | cegcc*)
8734    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8735    # When not using gcc, we currently assume that we are using
8736    # Microsoft Visual C++.
8737    if test "$GCC" != yes; then
8738      with_gnu_ld=no
8739    fi
8740    ;;
8741  interix*)
8742    # we just hope/assume this is gcc and not c89 (= MSVC++)
8743    with_gnu_ld=yes
8744    ;;
8745  openbsd*)
8746    with_gnu_ld=no
8747    ;;
8748  linux* | k*bsd*-gnu | gnu*)
8749    link_all_deplibs=no
8750    ;;
8751  esac
8752
8753  ld_shlibs=yes
8754
8755  # On some targets, GNU ld is compatible enough with the native linker
8756  # that we're better off using the native interface for both.
8757  lt_use_gnu_ld_interface=no
8758  if test "$with_gnu_ld" = yes; then
8759    case $host_os in
8760      aix*)
8761	# The AIX port of GNU ld has always aspired to compatibility
8762	# with the native linker.  However, as the warning in the GNU ld
8763	# block says, versions before 2.19.5* couldn't really create working
8764	# shared libraries, regardless of the interface used.
8765	case `$LD -v 2>&1` in
8766	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8767	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8768	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8769	  *)
8770	    lt_use_gnu_ld_interface=yes
8771	    ;;
8772	esac
8773	;;
8774      *)
8775	lt_use_gnu_ld_interface=yes
8776	;;
8777    esac
8778  fi
8779
8780  if test "$lt_use_gnu_ld_interface" = yes; then
8781    # If archive_cmds runs LD, not CC, wlarc should be empty
8782    wlarc='${wl}'
8783
8784    # Set some defaults for GNU ld with shared library support. These
8785    # are reset later if shared libraries are not supported. Putting them
8786    # here allows them to be overridden if necessary.
8787    runpath_var=LD_RUN_PATH
8788    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789    export_dynamic_flag_spec='${wl}--export-dynamic'
8790    # ancient GNU ld didn't support --whole-archive et. al.
8791    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8792      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8793    else
8794      whole_archive_flag_spec=
8795    fi
8796    supports_anon_versioning=no
8797    case `$LD -v 2>&1` in
8798      *GNU\ gold*) supports_anon_versioning=yes ;;
8799      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8800      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8801      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8802      *\ 2.11.*) ;; # other 2.11 versions
8803      *) supports_anon_versioning=yes ;;
8804    esac
8805
8806    # See if GNU ld supports shared libraries.
8807    case $host_os in
8808    aix[3-9]*)
8809      # On AIX/PPC, the GNU linker is very broken
8810      if test "$host_cpu" != ia64; then
8811	ld_shlibs=no
8812	cat <<_LT_EOF 1>&2
8813
8814*** Warning: the GNU linker, at least up to release 2.19, is reported
8815*** to be unable to reliably create shared libraries on AIX.
8816*** Therefore, libtool is disabling shared libraries support.  If you
8817*** really care for shared libraries, you may want to install binutils
8818*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8819*** You will then need to restart the configuration process.
8820
8821_LT_EOF
8822      fi
8823      ;;
8824
8825    amigaos*)
8826      case $host_cpu in
8827      powerpc)
8828            # see comment about AmigaOS4 .so support
8829            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830            archive_expsym_cmds=''
8831        ;;
8832      m68k)
8833            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)'
8834            hardcode_libdir_flag_spec='-L$libdir'
8835            hardcode_minus_L=yes
8836        ;;
8837      esac
8838      ;;
8839
8840    beos*)
8841      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842	allow_undefined_flag=unsupported
8843	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8844	# support --undefined.  This deserves some investigation.  FIXME
8845	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846      else
8847	ld_shlibs=no
8848      fi
8849      ;;
8850
8851    cygwin* | mingw* | pw32* | cegcc*)
8852      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8853      # as there is no search path for DLLs.
8854      hardcode_libdir_flag_spec='-L$libdir'
8855      export_dynamic_flag_spec='${wl}--export-all-symbols'
8856      allow_undefined_flag=unsupported
8857      always_export_symbols=no
8858      enable_shared_with_static_runtimes=yes
8859      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'
8860      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8861
8862      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8863        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864	# If the export-symbols file already is a .def file (1st line
8865	# is EXPORTS), use it as is; otherwise, prepend...
8866	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8867	  cp $export_symbols $output_objdir/$soname.def;
8868	else
8869	  echo EXPORTS > $output_objdir/$soname.def;
8870	  cat $export_symbols >> $output_objdir/$soname.def;
8871	fi~
8872	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8873      else
8874	ld_shlibs=no
8875      fi
8876      ;;
8877
8878    haiku*)
8879      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880      link_all_deplibs=yes
8881      ;;
8882
8883    interix[3-9]*)
8884      hardcode_direct=no
8885      hardcode_shlibpath_var=no
8886      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8887      export_dynamic_flag_spec='${wl}-E'
8888      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8889      # Instead, shared libraries are loaded at an image base (0x10000000 by
8890      # default) and relocated if they conflict, which is a slow very memory
8891      # consuming and fragmenting process.  To avoid this, we pick a random,
8892      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8893      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8894      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8895      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'
8896      ;;
8897
8898    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8899      tmp_diet=no
8900      if test "$host_os" = linux-dietlibc; then
8901	case $cc_basename in
8902	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8903	esac
8904      fi
8905      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8906	 && test "$tmp_diet" = no
8907      then
8908	tmp_addflag=' $pic_flag'
8909	tmp_sharedflag='-shared'
8910	case $cc_basename,$host_cpu in
8911        pgcc*)				# Portland Group C compiler
8912	  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'
8913	  tmp_addflag=' $pic_flag'
8914	  ;;
8915	pgf77* | pgf90* | pgf95* | pgfortran*)
8916					# Portland Group f77 and f90 compilers
8917	  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'
8918	  tmp_addflag=' $pic_flag -Mnomain' ;;
8919	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8920	  tmp_addflag=' -i_dynamic' ;;
8921	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8922	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8923	ifc* | ifort*)			# Intel Fortran compiler
8924	  tmp_addflag=' -nofor_main' ;;
8925	lf95*)				# Lahey Fortran 8.1
8926	  whole_archive_flag_spec=
8927	  tmp_sharedflag='--shared' ;;
8928	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8929	  tmp_sharedflag='-qmkshrobj'
8930	  tmp_addflag= ;;
8931	nvcc*)	# Cuda Compiler Driver 2.2
8932	  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'
8933	  compiler_needs_object=yes
8934	  ;;
8935	esac
8936	case `$CC -V 2>&1 | sed 5q` in
8937	*Sun\ C*)			# Sun C 5.9
8938	  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'
8939	  compiler_needs_object=yes
8940	  tmp_sharedflag='-G' ;;
8941	*Sun\ F*)			# Sun Fortran 8.3
8942	  tmp_sharedflag='-G' ;;
8943	esac
8944	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8945
8946        if test "x$supports_anon_versioning" = xyes; then
8947          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8948	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8949	    echo "local: *; };" >> $output_objdir/$libname.ver~
8950	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8951        fi
8952
8953	case $cc_basename in
8954	xlf* | bgf* | bgxlf* | mpixlf*)
8955	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8956	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8957	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8958	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8959	  if test "x$supports_anon_versioning" = xyes; then
8960	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8961	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8962	      echo "local: *; };" >> $output_objdir/$libname.ver~
8963	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8964	  fi
8965	  ;;
8966	esac
8967      else
8968        ld_shlibs=no
8969      fi
8970      ;;
8971
8972    netbsd* | netbsdelf*-gnu)
8973      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8974	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8975	wlarc=
8976      else
8977	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8979      fi
8980      ;;
8981
8982    solaris*)
8983      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8984	ld_shlibs=no
8985	cat <<_LT_EOF 1>&2
8986
8987*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8988*** create shared libraries on Solaris systems.  Therefore, libtool
8989*** is disabling shared libraries support.  We urge you to upgrade GNU
8990*** binutils to release 2.9.1 or newer.  Another option is to modify
8991*** your PATH or compiler configuration so that the native linker is
8992*** used, and then restart.
8993
8994_LT_EOF
8995      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998      else
8999	ld_shlibs=no
9000      fi
9001      ;;
9002
9003    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9004      case `$LD -v 2>&1` in
9005        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9006	ld_shlibs=no
9007	cat <<_LT_EOF 1>&2
9008
9009*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9010*** reliably create shared libraries on SCO systems.  Therefore, libtool
9011*** is disabling shared libraries support.  We urge you to upgrade GNU
9012*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9013*** your PATH or compiler configuration so that the native linker is
9014*** used, and then restart.
9015
9016_LT_EOF
9017	;;
9018	*)
9019	  # For security reasons, it is highly recommended that you always
9020	  # use absolute paths for naming shared libraries, and exclude the
9021	  # DT_RUNPATH tag from executables and libraries.  But doing so
9022	  # requires that you compile everything twice, which is a pain.
9023	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9024	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027	  else
9028	    ld_shlibs=no
9029	  fi
9030	;;
9031      esac
9032      ;;
9033
9034    sunos4*)
9035      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9036      wlarc=
9037      hardcode_direct=yes
9038      hardcode_shlibpath_var=no
9039      ;;
9040
9041    *)
9042      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9043	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045      else
9046	ld_shlibs=no
9047      fi
9048      ;;
9049    esac
9050
9051    if test "$ld_shlibs" = no; then
9052      runpath_var=
9053      hardcode_libdir_flag_spec=
9054      export_dynamic_flag_spec=
9055      whole_archive_flag_spec=
9056    fi
9057  else
9058    # PORTME fill in a description of your system's linker (not GNU ld)
9059    case $host_os in
9060    aix3*)
9061      allow_undefined_flag=unsupported
9062      always_export_symbols=yes
9063      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'
9064      # Note: this linker hardcodes the directories in LIBPATH if there
9065      # are no directories specified by -L.
9066      hardcode_minus_L=yes
9067      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9068	# Neither direct hardcoding nor static linking is supported with a
9069	# broken collect2.
9070	hardcode_direct=unsupported
9071      fi
9072      ;;
9073
9074    aix[4-9]*)
9075      if test "$host_cpu" = ia64; then
9076	# On IA64, the linker does run time linking by default, so we don't
9077	# have to do anything special.
9078	aix_use_runtimelinking=no
9079	exp_sym_flag='-Bexport'
9080	no_entry_flag=""
9081      else
9082	# If we're using GNU nm, then we don't want the "-C" option.
9083	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9084	# Also, AIX nm treats weak defined symbols like other global
9085	# defined symbols, whereas GNU nm marks them as "W".
9086	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9087	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9088	else
9089	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9090	fi
9091	aix_use_runtimelinking=no
9092
9093	# Test if we are trying to use run time linking or normal
9094	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9095	# need to do runtime linking.
9096	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9097	  for ld_flag in $LDFLAGS; do
9098	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9099	    aix_use_runtimelinking=yes
9100	    break
9101	  fi
9102	  done
9103	  ;;
9104	esac
9105
9106	exp_sym_flag='-bexport'
9107	no_entry_flag='-bnoentry'
9108      fi
9109
9110      # When large executables or shared objects are built, AIX ld can
9111      # have problems creating the table of contents.  If linking a library
9112      # or program results in "error TOC overflow" add -mminimal-toc to
9113      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9114      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9115
9116      archive_cmds=''
9117      hardcode_direct=yes
9118      hardcode_direct_absolute=yes
9119      hardcode_libdir_separator=':'
9120      link_all_deplibs=yes
9121      file_list_spec='${wl}-f,'
9122
9123      if test "$GCC" = yes; then
9124	case $host_os in aix4.[012]|aix4.[012].*)
9125	# We only want to do this on AIX 4.2 and lower, the check
9126	# below for broken collect2 doesn't work under 4.3+
9127	  collect2name=`${CC} -print-prog-name=collect2`
9128	  if test -f "$collect2name" &&
9129	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9130	  then
9131	  # We have reworked collect2
9132	  :
9133	  else
9134	  # We have old collect2
9135	  hardcode_direct=unsupported
9136	  # It fails to find uninstalled libraries when the uninstalled
9137	  # path is not listed in the libpath.  Setting hardcode_minus_L
9138	  # to unsupported forces relinking
9139	  hardcode_minus_L=yes
9140	  hardcode_libdir_flag_spec='-L$libdir'
9141	  hardcode_libdir_separator=
9142	  fi
9143	  ;;
9144	esac
9145	shared_flag='-shared'
9146	if test "$aix_use_runtimelinking" = yes; then
9147	  shared_flag="$shared_flag "'${wl}-G'
9148	fi
9149	link_all_deplibs=no
9150      else
9151	# not using gcc
9152	if test "$host_cpu" = ia64; then
9153	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9154	# chokes on -Wl,-G. The following line is correct:
9155	  shared_flag='-G'
9156	else
9157	  if test "$aix_use_runtimelinking" = yes; then
9158	    shared_flag='${wl}-G'
9159	  else
9160	    shared_flag='${wl}-bM:SRE'
9161	  fi
9162	fi
9163      fi
9164
9165      export_dynamic_flag_spec='${wl}-bexpall'
9166      # It seems that -bexpall does not export symbols beginning with
9167      # underscore (_), so it is better to generate a list of symbols to export.
9168      always_export_symbols=yes
9169      if test "$aix_use_runtimelinking" = yes; then
9170	# Warning - without using the other runtime loading flags (-brtl),
9171	# -berok will link without error, but may produce a broken library.
9172	allow_undefined_flag='-berok'
9173        # Determine the default libpath from the value encoded in an
9174        # empty executable.
9175        if test "${lt_cv_aix_libpath+set}" = set; then
9176  aix_libpath=$lt_cv_aix_libpath
9177else
9178  if ${lt_cv_aix_libpath_+:} false; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182/* end confdefs.h.  */
9183
9184int
9185main ()
9186{
9187
9188  ;
9189  return 0;
9190}
9191_ACEOF
9192if ac_fn_c_try_link "$LINENO"; then :
9193
9194  lt_aix_libpath_sed='
9195      /Import File Strings/,/^$/ {
9196	  /^0/ {
9197	      s/^0  *\([^ ]*\) *$/\1/
9198	      p
9199	  }
9200      }'
9201  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202  # Check for a 64-bit object if we didn't find anything.
9203  if test -z "$lt_cv_aix_libpath_"; then
9204    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205  fi
9206fi
9207rm -f core conftest.err conftest.$ac_objext \
9208    conftest$ac_exeext conftest.$ac_ext
9209  if test -z "$lt_cv_aix_libpath_"; then
9210    lt_cv_aix_libpath_="/usr/lib:/lib"
9211  fi
9212
9213fi
9214
9215  aix_libpath=$lt_cv_aix_libpath_
9216fi
9217
9218        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9219        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9220      else
9221	if test "$host_cpu" = ia64; then
9222	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9223	  allow_undefined_flag="-z nodefs"
9224	  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"
9225	else
9226	 # Determine the default libpath from the value encoded in an
9227	 # empty executable.
9228	 if test "${lt_cv_aix_libpath+set}" = set; then
9229  aix_libpath=$lt_cv_aix_libpath
9230else
9231  if ${lt_cv_aix_libpath_+:} false; then :
9232  $as_echo_n "(cached) " >&6
9233else
9234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h.  */
9236
9237int
9238main ()
9239{
9240
9241  ;
9242  return 0;
9243}
9244_ACEOF
9245if ac_fn_c_try_link "$LINENO"; then :
9246
9247  lt_aix_libpath_sed='
9248      /Import File Strings/,/^$/ {
9249	  /^0/ {
9250	      s/^0  *\([^ ]*\) *$/\1/
9251	      p
9252	  }
9253      }'
9254  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9255  # Check for a 64-bit object if we didn't find anything.
9256  if test -z "$lt_cv_aix_libpath_"; then
9257    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9258  fi
9259fi
9260rm -f core conftest.err conftest.$ac_objext \
9261    conftest$ac_exeext conftest.$ac_ext
9262  if test -z "$lt_cv_aix_libpath_"; then
9263    lt_cv_aix_libpath_="/usr/lib:/lib"
9264  fi
9265
9266fi
9267
9268  aix_libpath=$lt_cv_aix_libpath_
9269fi
9270
9271	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272	  # Warning - without using the other run time loading flags,
9273	  # -berok will link without error, but may produce a broken library.
9274	  no_undefined_flag=' ${wl}-bernotok'
9275	  allow_undefined_flag=' ${wl}-berok'
9276	  if test "$with_gnu_ld" = yes; then
9277	    # We only use this code for GNU lds that support --whole-archive.
9278	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9279	  else
9280	    # Exported symbols can be pulled into shared objects from archives
9281	    whole_archive_flag_spec='$convenience'
9282	  fi
9283	  archive_cmds_need_lc=yes
9284	  # This is similar to how AIX traditionally builds its shared libraries.
9285	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9286	fi
9287      fi
9288      ;;
9289
9290    amigaos*)
9291      case $host_cpu in
9292      powerpc)
9293            # see comment about AmigaOS4 .so support
9294            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295            archive_expsym_cmds=''
9296        ;;
9297      m68k)
9298            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)'
9299            hardcode_libdir_flag_spec='-L$libdir'
9300            hardcode_minus_L=yes
9301        ;;
9302      esac
9303      ;;
9304
9305    bsdi[45]*)
9306      export_dynamic_flag_spec=-rdynamic
9307      ;;
9308
9309    cygwin* | mingw* | pw32* | cegcc*)
9310      # When not using gcc, we currently assume that we are using
9311      # Microsoft Visual C++.
9312      # hardcode_libdir_flag_spec is actually meaningless, as there is
9313      # no search path for DLLs.
9314      case $cc_basename in
9315      cl*)
9316	# Native MSVC
9317	hardcode_libdir_flag_spec=' '
9318	allow_undefined_flag=unsupported
9319	always_export_symbols=yes
9320	file_list_spec='@'
9321	# Tell ltmain to make .lib files, not .a files.
9322	libext=lib
9323	# Tell ltmain to make .dll files, not .so files.
9324	shrext_cmds=".dll"
9325	# FIXME: Setting linknames here is a bad hack.
9326	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9327	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9328	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9329	  else
9330	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9331	  fi~
9332	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9333	  linknames='
9334	# The linker will not automatically build a static lib if we build a DLL.
9335	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9336	enable_shared_with_static_runtimes=yes
9337	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9338	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9339	# Don't use ranlib
9340	old_postinstall_cmds='chmod 644 $oldlib'
9341	postlink_cmds='lt_outputfile="@OUTPUT@"~
9342	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9343	  case $lt_outputfile in
9344	    *.exe|*.EXE) ;;
9345	    *)
9346	      lt_outputfile="$lt_outputfile.exe"
9347	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9348	      ;;
9349	  esac~
9350	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9351	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9352	    $RM "$lt_outputfile.manifest";
9353	  fi'
9354	;;
9355      *)
9356	# Assume MSVC wrapper
9357	hardcode_libdir_flag_spec=' '
9358	allow_undefined_flag=unsupported
9359	# Tell ltmain to make .lib files, not .a files.
9360	libext=lib
9361	# Tell ltmain to make .dll files, not .so files.
9362	shrext_cmds=".dll"
9363	# FIXME: Setting linknames here is a bad hack.
9364	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9365	# The linker will automatically build a .lib file if we build a DLL.
9366	old_archive_from_new_cmds='true'
9367	# FIXME: Should let the user specify the lib program.
9368	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9369	enable_shared_with_static_runtimes=yes
9370	;;
9371      esac
9372      ;;
9373
9374    darwin* | rhapsody*)
9375
9376
9377  archive_cmds_need_lc=no
9378  hardcode_direct=no
9379  hardcode_automatic=yes
9380  hardcode_shlibpath_var=unsupported
9381  if test "$lt_cv_ld_force_load" = "yes"; then
9382    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\"`'
9383
9384  else
9385    whole_archive_flag_spec=''
9386  fi
9387  link_all_deplibs=yes
9388  allow_undefined_flag="$_lt_dar_allow_undefined"
9389  case $cc_basename in
9390     ifort*) _lt_dar_can_shared=yes ;;
9391     *) _lt_dar_can_shared=$GCC ;;
9392  esac
9393  if test "$_lt_dar_can_shared" = "yes"; then
9394    output_verbose_link_cmd=func_echo_all
9395    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9396    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9397    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}"
9398    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}"
9399
9400  else
9401  ld_shlibs=no
9402  fi
9403
9404      ;;
9405
9406    dgux*)
9407      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408      hardcode_libdir_flag_spec='-L$libdir'
9409      hardcode_shlibpath_var=no
9410      ;;
9411
9412    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9413    # support.  Future versions do this automatically, but an explicit c++rt0.o
9414    # does not break anything, and helps significantly (at the cost of a little
9415    # extra space).
9416    freebsd2.2*)
9417      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9418      hardcode_libdir_flag_spec='-R$libdir'
9419      hardcode_direct=yes
9420      hardcode_shlibpath_var=no
9421      ;;
9422
9423    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9424    freebsd2.*)
9425      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9426      hardcode_direct=yes
9427      hardcode_minus_L=yes
9428      hardcode_shlibpath_var=no
9429      ;;
9430
9431    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9432    freebsd* | dragonfly*)
9433      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9434      hardcode_libdir_flag_spec='-R$libdir'
9435      hardcode_direct=yes
9436      hardcode_shlibpath_var=no
9437      ;;
9438
9439    hpux9*)
9440      if test "$GCC" = yes; then
9441	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9442      else
9443	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9444      fi
9445      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9446      hardcode_libdir_separator=:
9447      hardcode_direct=yes
9448
9449      # hardcode_minus_L: Not really in the search PATH,
9450      # but as the default location of the library.
9451      hardcode_minus_L=yes
9452      export_dynamic_flag_spec='${wl}-E'
9453      ;;
9454
9455    hpux10*)
9456      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9457	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9458      else
9459	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9460      fi
9461      if test "$with_gnu_ld" = no; then
9462	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9463	hardcode_libdir_separator=:
9464	hardcode_direct=yes
9465	hardcode_direct_absolute=yes
9466	export_dynamic_flag_spec='${wl}-E'
9467	# hardcode_minus_L: Not really in the search PATH,
9468	# but as the default location of the library.
9469	hardcode_minus_L=yes
9470      fi
9471      ;;
9472
9473    hpux11*)
9474      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9475	case $host_cpu in
9476	hppa*64*)
9477	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9478	  ;;
9479	ia64*)
9480	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9481	  ;;
9482	*)
9483	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9484	  ;;
9485	esac
9486      else
9487	case $host_cpu in
9488	hppa*64*)
9489	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9490	  ;;
9491	ia64*)
9492	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9493	  ;;
9494	*)
9495
9496	  # Older versions of the 11.00 compiler do not understand -b yet
9497	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9498	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9499$as_echo_n "checking if $CC understands -b... " >&6; }
9500if ${lt_cv_prog_compiler__b+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  lt_cv_prog_compiler__b=no
9504   save_LDFLAGS="$LDFLAGS"
9505   LDFLAGS="$LDFLAGS -b"
9506   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9507   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9508     # The linker can only warn and ignore the option if not recognized
9509     # So say no if there are warnings
9510     if test -s conftest.err; then
9511       # Append any errors to the config.log.
9512       cat conftest.err 1>&5
9513       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9514       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515       if diff conftest.exp conftest.er2 >/dev/null; then
9516         lt_cv_prog_compiler__b=yes
9517       fi
9518     else
9519       lt_cv_prog_compiler__b=yes
9520     fi
9521   fi
9522   $RM -r conftest*
9523   LDFLAGS="$save_LDFLAGS"
9524
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9527$as_echo "$lt_cv_prog_compiler__b" >&6; }
9528
9529if test x"$lt_cv_prog_compiler__b" = xyes; then
9530    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9531else
9532    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9533fi
9534
9535	  ;;
9536	esac
9537      fi
9538      if test "$with_gnu_ld" = no; then
9539	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9540	hardcode_libdir_separator=:
9541
9542	case $host_cpu in
9543	hppa*64*|ia64*)
9544	  hardcode_direct=no
9545	  hardcode_shlibpath_var=no
9546	  ;;
9547	*)
9548	  hardcode_direct=yes
9549	  hardcode_direct_absolute=yes
9550	  export_dynamic_flag_spec='${wl}-E'
9551
9552	  # hardcode_minus_L: Not really in the search PATH,
9553	  # but as the default location of the library.
9554	  hardcode_minus_L=yes
9555	  ;;
9556	esac
9557      fi
9558      ;;
9559
9560    irix5* | irix6* | nonstopux*)
9561      if test "$GCC" = yes; then
9562	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'
9563	# Try to use the -exported_symbol ld option, if it does not
9564	# work, assume that -exports_file does not work either and
9565	# implicitly export all symbols.
9566	# This should be the same for all languages, so no per-tag cache variable.
9567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9568$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9569if ${lt_cv_irix_exported_symbol+:} false; then :
9570  $as_echo_n "(cached) " >&6
9571else
9572  save_LDFLAGS="$LDFLAGS"
9573	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9574	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h.  */
9576int foo (void) { return 0; }
9577_ACEOF
9578if ac_fn_c_try_link "$LINENO"; then :
9579  lt_cv_irix_exported_symbol=yes
9580else
9581  lt_cv_irix_exported_symbol=no
9582fi
9583rm -f core conftest.err conftest.$ac_objext \
9584    conftest$ac_exeext conftest.$ac_ext
9585           LDFLAGS="$save_LDFLAGS"
9586fi
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9588$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9589	if test "$lt_cv_irix_exported_symbol" = yes; then
9590          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'
9591	fi
9592      else
9593	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'
9594	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'
9595      fi
9596      archive_cmds_need_lc='no'
9597      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598      hardcode_libdir_separator=:
9599      inherit_rpath=yes
9600      link_all_deplibs=yes
9601      ;;
9602
9603    netbsd* | netbsdelf*-gnu)
9604      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9605	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9606      else
9607	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9608      fi
9609      hardcode_libdir_flag_spec='-R$libdir'
9610      hardcode_direct=yes
9611      hardcode_shlibpath_var=no
9612      ;;
9613
9614    newsos6)
9615      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616      hardcode_direct=yes
9617      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9618      hardcode_libdir_separator=:
9619      hardcode_shlibpath_var=no
9620      ;;
9621
9622    *nto* | *qnx*)
9623      ;;
9624
9625    openbsd*)
9626      if test -f /usr/libexec/ld.so; then
9627	hardcode_direct=yes
9628	hardcode_shlibpath_var=no
9629	hardcode_direct_absolute=yes
9630	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9631	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9632	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9633	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9634	  export_dynamic_flag_spec='${wl}-E'
9635	else
9636	  case $host_os in
9637	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9638	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9639	     hardcode_libdir_flag_spec='-R$libdir'
9640	     ;;
9641	   *)
9642	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9643	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9644	     ;;
9645	  esac
9646	fi
9647      else
9648	ld_shlibs=no
9649      fi
9650      ;;
9651
9652    os2*)
9653      hardcode_libdir_flag_spec='-L$libdir'
9654      hardcode_minus_L=yes
9655      allow_undefined_flag=unsupported
9656      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9657      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9658      ;;
9659
9660    osf3*)
9661      if test "$GCC" = yes; then
9662	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9663	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'
9664      else
9665	allow_undefined_flag=' -expect_unresolved \*'
9666	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'
9667      fi
9668      archive_cmds_need_lc='no'
9669      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9670      hardcode_libdir_separator=:
9671      ;;
9672
9673    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9674      if test "$GCC" = yes; then
9675	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9676	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'
9677	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678      else
9679	allow_undefined_flag=' -expect_unresolved \*'
9680	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'
9681	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~
9682	$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'
9683
9684	# Both c and cxx compiler support -rpath directly
9685	hardcode_libdir_flag_spec='-rpath $libdir'
9686      fi
9687      archive_cmds_need_lc='no'
9688      hardcode_libdir_separator=:
9689      ;;
9690
9691    solaris*)
9692      no_undefined_flag=' -z defs'
9693      if test "$GCC" = yes; then
9694	wlarc='${wl}'
9695	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9696	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9697	  $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'
9698      else
9699	case `$CC -V 2>&1` in
9700	*"Compilers 5.0"*)
9701	  wlarc=''
9702	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9704	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9705	  ;;
9706	*)
9707	  wlarc='${wl}'
9708	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9709	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9710	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9711	  ;;
9712	esac
9713      fi
9714      hardcode_libdir_flag_spec='-R$libdir'
9715      hardcode_shlibpath_var=no
9716      case $host_os in
9717      solaris2.[0-5] | solaris2.[0-5].*) ;;
9718      *)
9719	# The compiler driver will combine and reorder linker options,
9720	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9721	# but is careful enough not to reorder.
9722	# Supported since Solaris 2.6 (maybe 2.5.1?)
9723	if test "$GCC" = yes; then
9724	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9725	else
9726	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9727	fi
9728	;;
9729      esac
9730      link_all_deplibs=yes
9731      ;;
9732
9733    sunos4*)
9734      if test "x$host_vendor" = xsequent; then
9735	# Use $CC to link under sequent, because it throws in some extra .o
9736	# files that make .init and .fini sections work.
9737	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9738      else
9739	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9740      fi
9741      hardcode_libdir_flag_spec='-L$libdir'
9742      hardcode_direct=yes
9743      hardcode_minus_L=yes
9744      hardcode_shlibpath_var=no
9745      ;;
9746
9747    sysv4)
9748      case $host_vendor in
9749	sni)
9750	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751	  hardcode_direct=yes # is this really true???
9752	;;
9753	siemens)
9754	  ## LD is ld it makes a PLAMLIB
9755	  ## CC just makes a GrossModule.
9756	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9757	  reload_cmds='$CC -r -o $output$reload_objs'
9758	  hardcode_direct=no
9759        ;;
9760	motorola)
9761	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9763	;;
9764      esac
9765      runpath_var='LD_RUN_PATH'
9766      hardcode_shlibpath_var=no
9767      ;;
9768
9769    sysv4.3*)
9770      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771      hardcode_shlibpath_var=no
9772      export_dynamic_flag_spec='-Bexport'
9773      ;;
9774
9775    sysv4*MP*)
9776      if test -d /usr/nec; then
9777	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778	hardcode_shlibpath_var=no
9779	runpath_var=LD_RUN_PATH
9780	hardcode_runpath_var=yes
9781	ld_shlibs=yes
9782      fi
9783      ;;
9784
9785    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9786      no_undefined_flag='${wl}-z,text'
9787      archive_cmds_need_lc=no
9788      hardcode_shlibpath_var=no
9789      runpath_var='LD_RUN_PATH'
9790
9791      if test "$GCC" = yes; then
9792	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9793	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794      else
9795	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797      fi
9798      ;;
9799
9800    sysv5* | sco3.2v5* | sco5v6*)
9801      # Note: We can NOT use -z defs as we might desire, because we do not
9802      # link with -lc, and that would cause any symbols used from libc to
9803      # always be unresolved, which means just about no library would
9804      # ever link correctly.  If we're not using GNU ld we use -z text
9805      # though, which does catch some bad symbols but isn't as heavy-handed
9806      # as -z defs.
9807      no_undefined_flag='${wl}-z,text'
9808      allow_undefined_flag='${wl}-z,nodefs'
9809      archive_cmds_need_lc=no
9810      hardcode_shlibpath_var=no
9811      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9812      hardcode_libdir_separator=':'
9813      link_all_deplibs=yes
9814      export_dynamic_flag_spec='${wl}-Bexport'
9815      runpath_var='LD_RUN_PATH'
9816
9817      if test "$GCC" = yes; then
9818	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820      else
9821	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823      fi
9824      ;;
9825
9826    uts4*)
9827      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828      hardcode_libdir_flag_spec='-L$libdir'
9829      hardcode_shlibpath_var=no
9830      ;;
9831
9832    *)
9833      ld_shlibs=no
9834      ;;
9835    esac
9836
9837    if test x$host_vendor = xsni; then
9838      case $host in
9839      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9840	export_dynamic_flag_spec='${wl}-Blargedynsym'
9841	;;
9842      esac
9843    fi
9844  fi
9845
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9847$as_echo "$ld_shlibs" >&6; }
9848test "$ld_shlibs" = no && can_build_shared=no
9849
9850with_gnu_ld=$with_gnu_ld
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866#
9867# Do we need to explicitly link libc?
9868#
9869case "x$archive_cmds_need_lc" in
9870x|xyes)
9871  # Assume -lc should be added
9872  archive_cmds_need_lc=yes
9873
9874  if test "$enable_shared" = yes && test "$GCC" = yes; then
9875    case $archive_cmds in
9876    *'~'*)
9877      # FIXME: we may have to deal with multi-command sequences.
9878      ;;
9879    '$CC '*)
9880      # Test whether the compiler implicitly links with -lc since on some
9881      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9882      # to ld, don't add -lc before -lgcc.
9883      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9884$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9885if ${lt_cv_archive_cmds_need_lc+:} false; then :
9886  $as_echo_n "(cached) " >&6
9887else
9888  $RM conftest*
9889	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9890
9891	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9892  (eval $ac_compile) 2>&5
9893  ac_status=$?
9894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9895  test $ac_status = 0; } 2>conftest.err; then
9896	  soname=conftest
9897	  lib=conftest
9898	  libobjs=conftest.$ac_objext
9899	  deplibs=
9900	  wl=$lt_prog_compiler_wl
9901	  pic_flag=$lt_prog_compiler_pic
9902	  compiler_flags=-v
9903	  linker_flags=-v
9904	  verstring=
9905	  output_objdir=.
9906	  libname=conftest
9907	  lt_save_allow_undefined_flag=$allow_undefined_flag
9908	  allow_undefined_flag=
9909	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9910  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9911  ac_status=$?
9912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9913  test $ac_status = 0; }
9914	  then
9915	    lt_cv_archive_cmds_need_lc=no
9916	  else
9917	    lt_cv_archive_cmds_need_lc=yes
9918	  fi
9919	  allow_undefined_flag=$lt_save_allow_undefined_flag
9920	else
9921	  cat conftest.err 1>&5
9922	fi
9923	$RM conftest*
9924
9925fi
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9927$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9928      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9929      ;;
9930    esac
9931  fi
9932  ;;
9933esac
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10087$as_echo_n "checking dynamic linker characteristics... " >&6; }
10088
10089if test "$GCC" = yes; then
10090  case $host_os in
10091    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10092    *) lt_awk_arg="/^libraries:/" ;;
10093  esac
10094  case $host_os in
10095    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10096    *) lt_sed_strip_eq="s,=/,/,g" ;;
10097  esac
10098  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10099  case $lt_search_path_spec in
10100  *\;*)
10101    # if the path contains ";" then we assume it to be the separator
10102    # otherwise default to the standard path separator (i.e. ":") - it is
10103    # assumed that no part of a normal pathname contains ";" but that should
10104    # okay in the real world where ";" in dirpaths is itself problematic.
10105    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10106    ;;
10107  *)
10108    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10109    ;;
10110  esac
10111  # Ok, now we have the path, separated by spaces, we can step through it
10112  # and add multilib dir if necessary.
10113  lt_tmp_lt_search_path_spec=
10114  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10115  for lt_sys_path in $lt_search_path_spec; do
10116    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10117      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10118    else
10119      test -d "$lt_sys_path" && \
10120	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10121    fi
10122  done
10123  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10124BEGIN {RS=" "; FS="/|\n";} {
10125  lt_foo="";
10126  lt_count=0;
10127  for (lt_i = NF; lt_i > 0; lt_i--) {
10128    if ($lt_i != "" && $lt_i != ".") {
10129      if ($lt_i == "..") {
10130        lt_count++;
10131      } else {
10132        if (lt_count == 0) {
10133          lt_foo="/" $lt_i lt_foo;
10134        } else {
10135          lt_count--;
10136        }
10137      }
10138    }
10139  }
10140  if (lt_foo != "") { lt_freq[lt_foo]++; }
10141  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10142}'`
10143  # AWK program above erroneously prepends '/' to C:/dos/paths
10144  # for these hosts.
10145  case $host_os in
10146    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10147      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10148  esac
10149  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10150else
10151  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10152fi
10153library_names_spec=
10154libname_spec='lib$name'
10155soname_spec=
10156shrext_cmds=".so"
10157postinstall_cmds=
10158postuninstall_cmds=
10159finish_cmds=
10160finish_eval=
10161shlibpath_var=
10162shlibpath_overrides_runpath=unknown
10163version_type=none
10164dynamic_linker="$host_os ld.so"
10165sys_lib_dlsearch_path_spec="/lib /usr/lib"
10166need_lib_prefix=unknown
10167hardcode_into_libs=no
10168
10169# when you set need_version to no, make sure it does not cause -set_version
10170# flags to be left without arguments
10171need_version=unknown
10172
10173case $host_os in
10174aix3*)
10175  version_type=linux # correct to gnu/linux during the next big refactor
10176  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10177  shlibpath_var=LIBPATH
10178
10179  # AIX 3 has no versioning support, so we append a major version to the name.
10180  soname_spec='${libname}${release}${shared_ext}$major'
10181  ;;
10182
10183aix[4-9]*)
10184  version_type=linux # correct to gnu/linux during the next big refactor
10185  need_lib_prefix=no
10186  need_version=no
10187  hardcode_into_libs=yes
10188  if test "$host_cpu" = ia64; then
10189    # AIX 5 supports IA64
10190    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10191    shlibpath_var=LD_LIBRARY_PATH
10192  else
10193    # With GCC up to 2.95.x, collect2 would create an import file
10194    # for dependence libraries.  The import file would start with
10195    # the line `#! .'.  This would cause the generated library to
10196    # depend on `.', always an invalid library.  This was fixed in
10197    # development snapshots of GCC prior to 3.0.
10198    case $host_os in
10199      aix4 | aix4.[01] | aix4.[01].*)
10200      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10201	   echo ' yes '
10202	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10203	:
10204      else
10205	can_build_shared=no
10206      fi
10207      ;;
10208    esac
10209    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10210    # soname into executable. Probably we can add versioning support to
10211    # collect2, so additional links can be useful in future.
10212    if test "$aix_use_runtimelinking" = yes; then
10213      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10214      # instead of lib<name>.a to let people know that these are not
10215      # typical AIX shared libraries.
10216      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217    else
10218      # We preserve .a as extension for shared libraries through AIX4.2
10219      # and later when we are not doing run time linking.
10220      library_names_spec='${libname}${release}.a $libname.a'
10221      soname_spec='${libname}${release}${shared_ext}$major'
10222    fi
10223    shlibpath_var=LIBPATH
10224  fi
10225  ;;
10226
10227amigaos*)
10228  case $host_cpu in
10229  powerpc)
10230    # Since July 2007 AmigaOS4 officially supports .so libraries.
10231    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10232    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233    ;;
10234  m68k)
10235    library_names_spec='$libname.ixlibrary $libname.a'
10236    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10237    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10238    ;;
10239  esac
10240  ;;
10241
10242beos*)
10243  library_names_spec='${libname}${shared_ext}'
10244  dynamic_linker="$host_os ld.so"
10245  shlibpath_var=LIBRARY_PATH
10246  ;;
10247
10248bsdi[45]*)
10249  version_type=linux # correct to gnu/linux during the next big refactor
10250  need_version=no
10251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252  soname_spec='${libname}${release}${shared_ext}$major'
10253  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10254  shlibpath_var=LD_LIBRARY_PATH
10255  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10256  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10257  # the default ld.so.conf also contains /usr/contrib/lib and
10258  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10259  # libtool to hard-code these into programs
10260  ;;
10261
10262cygwin* | mingw* | pw32* | cegcc*)
10263  version_type=windows
10264  shrext_cmds=".dll"
10265  need_version=no
10266  need_lib_prefix=no
10267
10268  case $GCC,$cc_basename in
10269  yes,*)
10270    # gcc
10271    library_names_spec='$libname.dll.a'
10272    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10273    postinstall_cmds='base_file=`basename \${file}`~
10274      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10275      dldir=$destdir/`dirname \$dlpath`~
10276      test -d \$dldir || mkdir -p \$dldir~
10277      $install_prog $dir/$dlname \$dldir/$dlname~
10278      chmod a+x \$dldir/$dlname~
10279      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10280        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10281      fi'
10282    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10283      dlpath=$dir/\$dldll~
10284       $RM \$dlpath'
10285    shlibpath_overrides_runpath=yes
10286
10287    case $host_os in
10288    cygwin*)
10289      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10290      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10291
10292      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10293      ;;
10294    mingw* | cegcc*)
10295      # MinGW DLLs use traditional 'lib' prefix
10296      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10297      ;;
10298    pw32*)
10299      # pw32 DLLs use 'pw' prefix rather than 'lib'
10300      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301      ;;
10302    esac
10303    dynamic_linker='Win32 ld.exe'
10304    ;;
10305
10306  *,cl*)
10307    # Native MSVC
10308    libname_spec='$name'
10309    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310    library_names_spec='${libname}.dll.lib'
10311
10312    case $build_os in
10313    mingw*)
10314      sys_lib_search_path_spec=
10315      lt_save_ifs=$IFS
10316      IFS=';'
10317      for lt_path in $LIB
10318      do
10319        IFS=$lt_save_ifs
10320        # Let DOS variable expansion print the short 8.3 style file name.
10321        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10322        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10323      done
10324      IFS=$lt_save_ifs
10325      # Convert to MSYS style.
10326      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10327      ;;
10328    cygwin*)
10329      # Convert to unix form, then to dos form, then back to unix form
10330      # but this time dos style (no spaces!) so that the unix form looks
10331      # like /cygdrive/c/PROGRA~1:/cygdr...
10332      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10333      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10334      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10335      ;;
10336    *)
10337      sys_lib_search_path_spec="$LIB"
10338      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10339        # It is most probably a Windows format PATH.
10340        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10341      else
10342        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10343      fi
10344      # FIXME: find the short name or the path components, as spaces are
10345      # common. (e.g. "Program Files" -> "PROGRA~1")
10346      ;;
10347    esac
10348
10349    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10350    postinstall_cmds='base_file=`basename \${file}`~
10351      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10352      dldir=$destdir/`dirname \$dlpath`~
10353      test -d \$dldir || mkdir -p \$dldir~
10354      $install_prog $dir/$dlname \$dldir/$dlname'
10355    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10356      dlpath=$dir/\$dldll~
10357       $RM \$dlpath'
10358    shlibpath_overrides_runpath=yes
10359    dynamic_linker='Win32 link.exe'
10360    ;;
10361
10362  *)
10363    # Assume MSVC wrapper
10364    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10365    dynamic_linker='Win32 ld.exe'
10366    ;;
10367  esac
10368  # FIXME: first we should search . and the directory the executable is in
10369  shlibpath_var=PATH
10370  ;;
10371
10372darwin* | rhapsody*)
10373  dynamic_linker="$host_os dyld"
10374  version_type=darwin
10375  need_lib_prefix=no
10376  need_version=no
10377  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10378  soname_spec='${libname}${release}${major}$shared_ext'
10379  shlibpath_overrides_runpath=yes
10380  shlibpath_var=DYLD_LIBRARY_PATH
10381  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10382
10383  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10384  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10385  ;;
10386
10387dgux*)
10388  version_type=linux # correct to gnu/linux during the next big refactor
10389  need_lib_prefix=no
10390  need_version=no
10391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10392  soname_spec='${libname}${release}${shared_ext}$major'
10393  shlibpath_var=LD_LIBRARY_PATH
10394  ;;
10395
10396freebsd* | dragonfly*)
10397  # DragonFly does not have aout.  When/if they implement a new
10398  # versioning mechanism, adjust this.
10399  if test -x /usr/bin/objformat; then
10400    objformat=`/usr/bin/objformat`
10401  else
10402    case $host_os in
10403    freebsd[23].*) objformat=aout ;;
10404    *) objformat=elf ;;
10405    esac
10406  fi
10407  version_type=freebsd-$objformat
10408  case $version_type in
10409    freebsd-elf*)
10410      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10411      need_version=no
10412      need_lib_prefix=no
10413      ;;
10414    freebsd-*)
10415      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10416      need_version=yes
10417      ;;
10418  esac
10419  shlibpath_var=LD_LIBRARY_PATH
10420  case $host_os in
10421  freebsd2.*)
10422    shlibpath_overrides_runpath=yes
10423    ;;
10424  freebsd3.[01]* | freebsdelf3.[01]*)
10425    shlibpath_overrides_runpath=yes
10426    hardcode_into_libs=yes
10427    ;;
10428  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10429  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10430    shlibpath_overrides_runpath=no
10431    hardcode_into_libs=yes
10432    ;;
10433  *) # from 4.6 on, and DragonFly
10434    shlibpath_overrides_runpath=yes
10435    hardcode_into_libs=yes
10436    ;;
10437  esac
10438  ;;
10439
10440gnu*)
10441  version_type=linux # correct to gnu/linux during the next big refactor
10442  need_lib_prefix=no
10443  need_version=no
10444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10445  soname_spec='${libname}${release}${shared_ext}$major'
10446  shlibpath_var=LD_LIBRARY_PATH
10447  shlibpath_overrides_runpath=no
10448  hardcode_into_libs=yes
10449  ;;
10450
10451haiku*)
10452  version_type=linux # correct to gnu/linux during the next big refactor
10453  need_lib_prefix=no
10454  need_version=no
10455  dynamic_linker="$host_os runtime_loader"
10456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10457  soname_spec='${libname}${release}${shared_ext}$major'
10458  shlibpath_var=LIBRARY_PATH
10459  shlibpath_overrides_runpath=yes
10460  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10461  hardcode_into_libs=yes
10462  ;;
10463
10464hpux9* | hpux10* | hpux11*)
10465  # Give a soname corresponding to the major version so that dld.sl refuses to
10466  # link against other versions.
10467  version_type=sunos
10468  need_lib_prefix=no
10469  need_version=no
10470  case $host_cpu in
10471  ia64*)
10472    shrext_cmds='.so'
10473    hardcode_into_libs=yes
10474    dynamic_linker="$host_os dld.so"
10475    shlibpath_var=LD_LIBRARY_PATH
10476    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478    soname_spec='${libname}${release}${shared_ext}$major'
10479    if test "X$HPUX_IA64_MODE" = X32; then
10480      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10481    else
10482      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10483    fi
10484    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10485    ;;
10486  hppa*64*)
10487    shrext_cmds='.sl'
10488    hardcode_into_libs=yes
10489    dynamic_linker="$host_os dld.sl"
10490    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10491    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493    soname_spec='${libname}${release}${shared_ext}$major'
10494    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10495    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10496    ;;
10497  *)
10498    shrext_cmds='.sl'
10499    dynamic_linker="$host_os dld.sl"
10500    shlibpath_var=SHLIB_PATH
10501    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503    soname_spec='${libname}${release}${shared_ext}$major'
10504    ;;
10505  esac
10506  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10507  postinstall_cmds='chmod 555 $lib'
10508  # or fails outright, so override atomically:
10509  install_override_mode=555
10510  ;;
10511
10512interix[3-9]*)
10513  version_type=linux # correct to gnu/linux during the next big refactor
10514  need_lib_prefix=no
10515  need_version=no
10516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10517  soname_spec='${libname}${release}${shared_ext}$major'
10518  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10519  shlibpath_var=LD_LIBRARY_PATH
10520  shlibpath_overrides_runpath=no
10521  hardcode_into_libs=yes
10522  ;;
10523
10524irix5* | irix6* | nonstopux*)
10525  case $host_os in
10526    nonstopux*) version_type=nonstopux ;;
10527    *)
10528	if test "$lt_cv_prog_gnu_ld" = yes; then
10529		version_type=linux # correct to gnu/linux during the next big refactor
10530	else
10531		version_type=irix
10532	fi ;;
10533  esac
10534  need_lib_prefix=no
10535  need_version=no
10536  soname_spec='${libname}${release}${shared_ext}$major'
10537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10538  case $host_os in
10539  irix5* | nonstopux*)
10540    libsuff= shlibsuff=
10541    ;;
10542  *)
10543    case $LD in # libtool.m4 will add one of these switches to LD
10544    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10545      libsuff= shlibsuff= libmagic=32-bit;;
10546    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10547      libsuff=32 shlibsuff=N32 libmagic=N32;;
10548    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10549      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10550    *) libsuff= shlibsuff= libmagic=never-match;;
10551    esac
10552    ;;
10553  esac
10554  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10555  shlibpath_overrides_runpath=no
10556  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10557  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10558  hardcode_into_libs=yes
10559  ;;
10560
10561# No shared lib support for Linux oldld, aout, or coff.
10562linux*oldld* | linux*aout* | linux*coff*)
10563  dynamic_linker=no
10564  ;;
10565
10566# This must be glibc/ELF.
10567linux* | k*bsd*-gnu | kopensolaris*-gnu)
10568  version_type=linux # correct to gnu/linux during the next big refactor
10569  need_lib_prefix=no
10570  need_version=no
10571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572  soname_spec='${libname}${release}${shared_ext}$major'
10573  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10574  shlibpath_var=LD_LIBRARY_PATH
10575  shlibpath_overrides_runpath=no
10576
10577  # Some binutils ld are patched to set DT_RUNPATH
10578  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10579  $as_echo_n "(cached) " >&6
10580else
10581  lt_cv_shlibpath_overrides_runpath=no
10582    save_LDFLAGS=$LDFLAGS
10583    save_libdir=$libdir
10584    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10585	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10586    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587/* end confdefs.h.  */
10588
10589int
10590main ()
10591{
10592
10593  ;
10594  return 0;
10595}
10596_ACEOF
10597if ac_fn_c_try_link "$LINENO"; then :
10598  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10599  lt_cv_shlibpath_overrides_runpath=yes
10600fi
10601fi
10602rm -f core conftest.err conftest.$ac_objext \
10603    conftest$ac_exeext conftest.$ac_ext
10604    LDFLAGS=$save_LDFLAGS
10605    libdir=$save_libdir
10606
10607fi
10608
10609  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10610
10611  # This implies no fast_install, which is unacceptable.
10612  # Some rework will be needed to allow for fast_install
10613  # before this can be enabled.
10614  hardcode_into_libs=yes
10615
10616  # Append ld.so.conf contents to the search path
10617  if test -f /etc/ld.so.conf; then
10618    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' ' '`
10619    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10620  fi
10621
10622  # We used to test for /lib/ld.so.1 and disable shared libraries on
10623  # powerpc, because MkLinux only supported shared libraries with the
10624  # GNU dynamic linker.  Since this was broken with cross compilers,
10625  # most powerpc-linux boxes support dynamic linking these days and
10626  # people can always --disable-shared, the test was removed, and we
10627  # assume the GNU/Linux dynamic linker is in use.
10628  dynamic_linker='GNU/Linux ld.so'
10629  ;;
10630
10631netbsdelf*-gnu)
10632  version_type=linux
10633  need_lib_prefix=no
10634  need_version=no
10635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10636  soname_spec='${libname}${release}${shared_ext}$major'
10637  shlibpath_var=LD_LIBRARY_PATH
10638  shlibpath_overrides_runpath=no
10639  hardcode_into_libs=yes
10640  dynamic_linker='NetBSD ld.elf_so'
10641  ;;
10642
10643netbsd*)
10644  version_type=sunos
10645  need_lib_prefix=no
10646  need_version=no
10647  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10648    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10649    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10650    dynamic_linker='NetBSD (a.out) ld.so'
10651  else
10652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10653    soname_spec='${libname}${release}${shared_ext}$major'
10654    dynamic_linker='NetBSD ld.elf_so'
10655  fi
10656  shlibpath_var=LD_LIBRARY_PATH
10657  shlibpath_overrides_runpath=yes
10658  hardcode_into_libs=yes
10659  ;;
10660
10661newsos6)
10662  version_type=linux # correct to gnu/linux during the next big refactor
10663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664  shlibpath_var=LD_LIBRARY_PATH
10665  shlibpath_overrides_runpath=yes
10666  ;;
10667
10668*nto* | *qnx*)
10669  version_type=qnx
10670  need_lib_prefix=no
10671  need_version=no
10672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673  soname_spec='${libname}${release}${shared_ext}$major'
10674  shlibpath_var=LD_LIBRARY_PATH
10675  shlibpath_overrides_runpath=no
10676  hardcode_into_libs=yes
10677  dynamic_linker='ldqnx.so'
10678  ;;
10679
10680openbsd*)
10681  version_type=sunos
10682  sys_lib_dlsearch_path_spec="/usr/lib"
10683  need_lib_prefix=no
10684  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10685  case $host_os in
10686    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10687    *)				need_version=no  ;;
10688  esac
10689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10691  shlibpath_var=LD_LIBRARY_PATH
10692  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10693    case $host_os in
10694      openbsd2.[89] | openbsd2.[89].*)
10695	shlibpath_overrides_runpath=no
10696	;;
10697      *)
10698	shlibpath_overrides_runpath=yes
10699	;;
10700      esac
10701  else
10702    shlibpath_overrides_runpath=yes
10703  fi
10704  ;;
10705
10706os2*)
10707  libname_spec='$name'
10708  shrext_cmds=".dll"
10709  need_lib_prefix=no
10710  library_names_spec='$libname${shared_ext} $libname.a'
10711  dynamic_linker='OS/2 ld.exe'
10712  shlibpath_var=LIBPATH
10713  ;;
10714
10715osf3* | osf4* | osf5*)
10716  version_type=osf
10717  need_lib_prefix=no
10718  need_version=no
10719  soname_spec='${libname}${release}${shared_ext}$major'
10720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10721  shlibpath_var=LD_LIBRARY_PATH
10722  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10723  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10724  ;;
10725
10726rdos*)
10727  dynamic_linker=no
10728  ;;
10729
10730solaris*)
10731  version_type=linux # correct to gnu/linux during the next big refactor
10732  need_lib_prefix=no
10733  need_version=no
10734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735  soname_spec='${libname}${release}${shared_ext}$major'
10736  shlibpath_var=LD_LIBRARY_PATH
10737  shlibpath_overrides_runpath=yes
10738  hardcode_into_libs=yes
10739  # ldd complains unless libraries are executable
10740  postinstall_cmds='chmod +x $lib'
10741  ;;
10742
10743sunos4*)
10744  version_type=sunos
10745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10746  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10747  shlibpath_var=LD_LIBRARY_PATH
10748  shlibpath_overrides_runpath=yes
10749  if test "$with_gnu_ld" = yes; then
10750    need_lib_prefix=no
10751  fi
10752  need_version=yes
10753  ;;
10754
10755sysv4 | sysv4.3*)
10756  version_type=linux # correct to gnu/linux during the next big refactor
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  case $host_vendor in
10761    sni)
10762      shlibpath_overrides_runpath=no
10763      need_lib_prefix=no
10764      runpath_var=LD_RUN_PATH
10765      ;;
10766    siemens)
10767      need_lib_prefix=no
10768      ;;
10769    motorola)
10770      need_lib_prefix=no
10771      need_version=no
10772      shlibpath_overrides_runpath=no
10773      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10774      ;;
10775  esac
10776  ;;
10777
10778sysv4*MP*)
10779  if test -d /usr/nec ;then
10780    version_type=linux # correct to gnu/linux during the next big refactor
10781    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10782    soname_spec='$libname${shared_ext}.$major'
10783    shlibpath_var=LD_LIBRARY_PATH
10784  fi
10785  ;;
10786
10787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10788  version_type=freebsd-elf
10789  need_lib_prefix=no
10790  need_version=no
10791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10792  soname_spec='${libname}${release}${shared_ext}$major'
10793  shlibpath_var=LD_LIBRARY_PATH
10794  shlibpath_overrides_runpath=yes
10795  hardcode_into_libs=yes
10796  if test "$with_gnu_ld" = yes; then
10797    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10798  else
10799    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10800    case $host_os in
10801      sco3.2v5*)
10802        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10803	;;
10804    esac
10805  fi
10806  sys_lib_dlsearch_path_spec='/usr/lib'
10807  ;;
10808
10809tpf*)
10810  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10811  version_type=linux # correct to gnu/linux during the next big refactor
10812  need_lib_prefix=no
10813  need_version=no
10814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815  shlibpath_var=LD_LIBRARY_PATH
10816  shlibpath_overrides_runpath=no
10817  hardcode_into_libs=yes
10818  ;;
10819
10820uts4*)
10821  version_type=linux # correct to gnu/linux during the next big refactor
10822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823  soname_spec='${libname}${release}${shared_ext}$major'
10824  shlibpath_var=LD_LIBRARY_PATH
10825  ;;
10826
10827*)
10828  dynamic_linker=no
10829  ;;
10830esac
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10832$as_echo "$dynamic_linker" >&6; }
10833test "$dynamic_linker" = no && can_build_shared=no
10834
10835variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10836if test "$GCC" = yes; then
10837  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10838fi
10839
10840if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10841  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10842fi
10843if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10844  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10845fi
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10939$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10940hardcode_action=
10941if test -n "$hardcode_libdir_flag_spec" ||
10942   test -n "$runpath_var" ||
10943   test "X$hardcode_automatic" = "Xyes" ; then
10944
10945  # We can hardcode non-existent directories.
10946  if test "$hardcode_direct" != no &&
10947     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10948     # have to relink, otherwise we might link with an installed library
10949     # when we should be linking with a yet-to-be-installed one
10950     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10951     test "$hardcode_minus_L" != no; then
10952    # Linking always hardcodes the temporary library directory.
10953    hardcode_action=relink
10954  else
10955    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10956    hardcode_action=immediate
10957  fi
10958else
10959  # We cannot hardcode anything, or else we can only hardcode existing
10960  # directories.
10961  hardcode_action=unsupported
10962fi
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10964$as_echo "$hardcode_action" >&6; }
10965
10966if test "$hardcode_action" = relink ||
10967   test "$inherit_rpath" = yes; then
10968  # Fast installation is not supported
10969  enable_fast_install=no
10970elif test "$shlibpath_overrides_runpath" = yes ||
10971     test "$enable_shared" = no; then
10972  # Fast installation is not necessary
10973  enable_fast_install=needless
10974fi
10975
10976
10977
10978
10979
10980
10981  if test "x$enable_dlopen" != xyes; then
10982  enable_dlopen=unknown
10983  enable_dlopen_self=unknown
10984  enable_dlopen_self_static=unknown
10985else
10986  lt_cv_dlopen=no
10987  lt_cv_dlopen_libs=
10988
10989  case $host_os in
10990  beos*)
10991    lt_cv_dlopen="load_add_on"
10992    lt_cv_dlopen_libs=
10993    lt_cv_dlopen_self=yes
10994    ;;
10995
10996  mingw* | pw32* | cegcc*)
10997    lt_cv_dlopen="LoadLibrary"
10998    lt_cv_dlopen_libs=
10999    ;;
11000
11001  cygwin*)
11002    lt_cv_dlopen="dlopen"
11003    lt_cv_dlopen_libs=
11004    ;;
11005
11006  darwin*)
11007  # if libdl is installed we need to link against it
11008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11009$as_echo_n "checking for dlopen in -ldl... " >&6; }
11010if ${ac_cv_lib_dl_dlopen+:} false; then :
11011  $as_echo_n "(cached) " >&6
11012else
11013  ac_check_lib_save_LIBS=$LIBS
11014LIBS="-ldl  $LIBS"
11015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017
11018/* Override any GCC internal prototype to avoid an error.
11019   Use char because int might match the return type of a GCC
11020   builtin and then its argument prototype would still apply.  */
11021#ifdef __cplusplus
11022extern "C"
11023#endif
11024char dlopen ();
11025int
11026main ()
11027{
11028return dlopen ();
11029  ;
11030  return 0;
11031}
11032_ACEOF
11033if ac_fn_c_try_link "$LINENO"; then :
11034  ac_cv_lib_dl_dlopen=yes
11035else
11036  ac_cv_lib_dl_dlopen=no
11037fi
11038rm -f core conftest.err conftest.$ac_objext \
11039    conftest$ac_exeext conftest.$ac_ext
11040LIBS=$ac_check_lib_save_LIBS
11041fi
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11043$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11044if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11045  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11046else
11047
11048    lt_cv_dlopen="dyld"
11049    lt_cv_dlopen_libs=
11050    lt_cv_dlopen_self=yes
11051
11052fi
11053
11054    ;;
11055
11056  *)
11057    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11058if test "x$ac_cv_func_shl_load" = xyes; then :
11059  lt_cv_dlopen="shl_load"
11060else
11061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11062$as_echo_n "checking for shl_load in -ldld... " >&6; }
11063if ${ac_cv_lib_dld_shl_load+:} false; then :
11064  $as_echo_n "(cached) " >&6
11065else
11066  ac_check_lib_save_LIBS=$LIBS
11067LIBS="-ldld  $LIBS"
11068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h.  */
11070
11071/* Override any GCC internal prototype to avoid an error.
11072   Use char because int might match the return type of a GCC
11073   builtin and then its argument prototype would still apply.  */
11074#ifdef __cplusplus
11075extern "C"
11076#endif
11077char shl_load ();
11078int
11079main ()
11080{
11081return shl_load ();
11082  ;
11083  return 0;
11084}
11085_ACEOF
11086if ac_fn_c_try_link "$LINENO"; then :
11087  ac_cv_lib_dld_shl_load=yes
11088else
11089  ac_cv_lib_dld_shl_load=no
11090fi
11091rm -f core conftest.err conftest.$ac_objext \
11092    conftest$ac_exeext conftest.$ac_ext
11093LIBS=$ac_check_lib_save_LIBS
11094fi
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11096$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11097if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11098  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11099else
11100  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11101if test "x$ac_cv_func_dlopen" = xyes; then :
11102  lt_cv_dlopen="dlopen"
11103else
11104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11105$as_echo_n "checking for dlopen in -ldl... " >&6; }
11106if ${ac_cv_lib_dl_dlopen+:} false; then :
11107  $as_echo_n "(cached) " >&6
11108else
11109  ac_check_lib_save_LIBS=$LIBS
11110LIBS="-ldl  $LIBS"
11111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112/* end confdefs.h.  */
11113
11114/* Override any GCC internal prototype to avoid an error.
11115   Use char because int might match the return type of a GCC
11116   builtin and then its argument prototype would still apply.  */
11117#ifdef __cplusplus
11118extern "C"
11119#endif
11120char dlopen ();
11121int
11122main ()
11123{
11124return dlopen ();
11125  ;
11126  return 0;
11127}
11128_ACEOF
11129if ac_fn_c_try_link "$LINENO"; then :
11130  ac_cv_lib_dl_dlopen=yes
11131else
11132  ac_cv_lib_dl_dlopen=no
11133fi
11134rm -f core conftest.err conftest.$ac_objext \
11135    conftest$ac_exeext conftest.$ac_ext
11136LIBS=$ac_check_lib_save_LIBS
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11139$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11140if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11141  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11142else
11143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11144$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11145if ${ac_cv_lib_svld_dlopen+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  ac_check_lib_save_LIBS=$LIBS
11149LIBS="-lsvld  $LIBS"
11150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h.  */
11152
11153/* Override any GCC internal prototype to avoid an error.
11154   Use char because int might match the return type of a GCC
11155   builtin and then its argument prototype would still apply.  */
11156#ifdef __cplusplus
11157extern "C"
11158#endif
11159char dlopen ();
11160int
11161main ()
11162{
11163return dlopen ();
11164  ;
11165  return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_link "$LINENO"; then :
11169  ac_cv_lib_svld_dlopen=yes
11170else
11171  ac_cv_lib_svld_dlopen=no
11172fi
11173rm -f core conftest.err conftest.$ac_objext \
11174    conftest$ac_exeext conftest.$ac_ext
11175LIBS=$ac_check_lib_save_LIBS
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11178$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11179if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11180  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11181else
11182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11183$as_echo_n "checking for dld_link in -ldld... " >&6; }
11184if ${ac_cv_lib_dld_dld_link+:} false; then :
11185  $as_echo_n "(cached) " >&6
11186else
11187  ac_check_lib_save_LIBS=$LIBS
11188LIBS="-ldld  $LIBS"
11189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191
11192/* Override any GCC internal prototype to avoid an error.
11193   Use char because int might match the return type of a GCC
11194   builtin and then its argument prototype would still apply.  */
11195#ifdef __cplusplus
11196extern "C"
11197#endif
11198char dld_link ();
11199int
11200main ()
11201{
11202return dld_link ();
11203  ;
11204  return 0;
11205}
11206_ACEOF
11207if ac_fn_c_try_link "$LINENO"; then :
11208  ac_cv_lib_dld_dld_link=yes
11209else
11210  ac_cv_lib_dld_dld_link=no
11211fi
11212rm -f core conftest.err conftest.$ac_objext \
11213    conftest$ac_exeext conftest.$ac_ext
11214LIBS=$ac_check_lib_save_LIBS
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11217$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11218if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11219  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11220fi
11221
11222
11223fi
11224
11225
11226fi
11227
11228
11229fi
11230
11231
11232fi
11233
11234
11235fi
11236
11237    ;;
11238  esac
11239
11240  if test "x$lt_cv_dlopen" != xno; then
11241    enable_dlopen=yes
11242  else
11243    enable_dlopen=no
11244  fi
11245
11246  case $lt_cv_dlopen in
11247  dlopen)
11248    save_CPPFLAGS="$CPPFLAGS"
11249    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11250
11251    save_LDFLAGS="$LDFLAGS"
11252    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11253
11254    save_LIBS="$LIBS"
11255    LIBS="$lt_cv_dlopen_libs $LIBS"
11256
11257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11258$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11259if ${lt_cv_dlopen_self+:} false; then :
11260  $as_echo_n "(cached) " >&6
11261else
11262  	  if test "$cross_compiling" = yes; then :
11263  lt_cv_dlopen_self=cross
11264else
11265  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11266  lt_status=$lt_dlunknown
11267  cat > conftest.$ac_ext <<_LT_EOF
11268#line $LINENO "configure"
11269#include "confdefs.h"
11270
11271#if HAVE_DLFCN_H
11272#include <dlfcn.h>
11273#endif
11274
11275#include <stdio.h>
11276
11277#ifdef RTLD_GLOBAL
11278#  define LT_DLGLOBAL		RTLD_GLOBAL
11279#else
11280#  ifdef DL_GLOBAL
11281#    define LT_DLGLOBAL		DL_GLOBAL
11282#  else
11283#    define LT_DLGLOBAL		0
11284#  endif
11285#endif
11286
11287/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11288   find out it does not work in some platform. */
11289#ifndef LT_DLLAZY_OR_NOW
11290#  ifdef RTLD_LAZY
11291#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11292#  else
11293#    ifdef DL_LAZY
11294#      define LT_DLLAZY_OR_NOW		DL_LAZY
11295#    else
11296#      ifdef RTLD_NOW
11297#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11298#      else
11299#        ifdef DL_NOW
11300#          define LT_DLLAZY_OR_NOW	DL_NOW
11301#        else
11302#          define LT_DLLAZY_OR_NOW	0
11303#        endif
11304#      endif
11305#    endif
11306#  endif
11307#endif
11308
11309/* When -fvisbility=hidden is used, assume the code has been annotated
11310   correspondingly for the symbols needed.  */
11311#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11312int fnord () __attribute__((visibility("default")));
11313#endif
11314
11315int fnord () { return 42; }
11316int main ()
11317{
11318  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11319  int status = $lt_dlunknown;
11320
11321  if (self)
11322    {
11323      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11324      else
11325        {
11326	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11327          else puts (dlerror ());
11328	}
11329      /* dlclose (self); */
11330    }
11331  else
11332    puts (dlerror ());
11333
11334  return status;
11335}
11336_LT_EOF
11337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11338  (eval $ac_link) 2>&5
11339  ac_status=$?
11340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11342    (./conftest; exit; ) >&5 2>/dev/null
11343    lt_status=$?
11344    case x$lt_status in
11345      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11346      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11347      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11348    esac
11349  else :
11350    # compilation failed
11351    lt_cv_dlopen_self=no
11352  fi
11353fi
11354rm -fr conftest*
11355
11356
11357fi
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11359$as_echo "$lt_cv_dlopen_self" >&6; }
11360
11361    if test "x$lt_cv_dlopen_self" = xyes; then
11362      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11363      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11364$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11365if ${lt_cv_dlopen_self_static+:} false; then :
11366  $as_echo_n "(cached) " >&6
11367else
11368  	  if test "$cross_compiling" = yes; then :
11369  lt_cv_dlopen_self_static=cross
11370else
11371  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11372  lt_status=$lt_dlunknown
11373  cat > conftest.$ac_ext <<_LT_EOF
11374#line $LINENO "configure"
11375#include "confdefs.h"
11376
11377#if HAVE_DLFCN_H
11378#include <dlfcn.h>
11379#endif
11380
11381#include <stdio.h>
11382
11383#ifdef RTLD_GLOBAL
11384#  define LT_DLGLOBAL		RTLD_GLOBAL
11385#else
11386#  ifdef DL_GLOBAL
11387#    define LT_DLGLOBAL		DL_GLOBAL
11388#  else
11389#    define LT_DLGLOBAL		0
11390#  endif
11391#endif
11392
11393/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11394   find out it does not work in some platform. */
11395#ifndef LT_DLLAZY_OR_NOW
11396#  ifdef RTLD_LAZY
11397#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11398#  else
11399#    ifdef DL_LAZY
11400#      define LT_DLLAZY_OR_NOW		DL_LAZY
11401#    else
11402#      ifdef RTLD_NOW
11403#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11404#      else
11405#        ifdef DL_NOW
11406#          define LT_DLLAZY_OR_NOW	DL_NOW
11407#        else
11408#          define LT_DLLAZY_OR_NOW	0
11409#        endif
11410#      endif
11411#    endif
11412#  endif
11413#endif
11414
11415/* When -fvisbility=hidden is used, assume the code has been annotated
11416   correspondingly for the symbols needed.  */
11417#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11418int fnord () __attribute__((visibility("default")));
11419#endif
11420
11421int fnord () { return 42; }
11422int main ()
11423{
11424  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11425  int status = $lt_dlunknown;
11426
11427  if (self)
11428    {
11429      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11430      else
11431        {
11432	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11433          else puts (dlerror ());
11434	}
11435      /* dlclose (self); */
11436    }
11437  else
11438    puts (dlerror ());
11439
11440  return status;
11441}
11442_LT_EOF
11443  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11444  (eval $ac_link) 2>&5
11445  ac_status=$?
11446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11448    (./conftest; exit; ) >&5 2>/dev/null
11449    lt_status=$?
11450    case x$lt_status in
11451      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11452      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11453      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11454    esac
11455  else :
11456    # compilation failed
11457    lt_cv_dlopen_self_static=no
11458  fi
11459fi
11460rm -fr conftest*
11461
11462
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11465$as_echo "$lt_cv_dlopen_self_static" >&6; }
11466    fi
11467
11468    CPPFLAGS="$save_CPPFLAGS"
11469    LDFLAGS="$save_LDFLAGS"
11470    LIBS="$save_LIBS"
11471    ;;
11472  esac
11473
11474  case $lt_cv_dlopen_self in
11475  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11476  *) enable_dlopen_self=unknown ;;
11477  esac
11478
11479  case $lt_cv_dlopen_self_static in
11480  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11481  *) enable_dlopen_self_static=unknown ;;
11482  esac
11483fi
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501striplib=
11502old_striplib=
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11504$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11505if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11506  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11507  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11509$as_echo "yes" >&6; }
11510else
11511# FIXME - insert some real tests, host_os isn't really good enough
11512  case $host_os in
11513  darwin*)
11514    if test -n "$STRIP" ; then
11515      striplib="$STRIP -x"
11516      old_striplib="$STRIP -S"
11517      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518$as_echo "yes" >&6; }
11519    else
11520      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521$as_echo "no" >&6; }
11522    fi
11523    ;;
11524  *)
11525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
11527    ;;
11528  esac
11529fi
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542  # Report which library types will actually be built
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11544$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11546$as_echo "$can_build_shared" >&6; }
11547
11548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11549$as_echo_n "checking whether to build shared libraries... " >&6; }
11550  test "$can_build_shared" = "no" && enable_shared=no
11551
11552  # On AIX, shared libraries and static libraries use the same namespace, and
11553  # are all built from PIC.
11554  case $host_os in
11555  aix3*)
11556    test "$enable_shared" = yes && enable_static=no
11557    if test -n "$RANLIB"; then
11558      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11559      postinstall_cmds='$RANLIB $lib'
11560    fi
11561    ;;
11562
11563  aix[4-9]*)
11564    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11565      test "$enable_shared" = yes && enable_static=no
11566    fi
11567    ;;
11568  esac
11569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11570$as_echo "$enable_shared" >&6; }
11571
11572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11573$as_echo_n "checking whether to build static libraries... " >&6; }
11574  # Make sure either enable_shared or enable_static is yes.
11575  test "$enable_shared" = yes || enable_static=yes
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11577$as_echo "$enable_static" >&6; }
11578
11579
11580
11581
11582fi
11583ac_ext=c
11584ac_cpp='$CPP $CPPFLAGS'
11585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11587ac_compiler_gnu=$ac_cv_c_compiler_gnu
11588
11589CC="$lt_save_CC"
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605        ac_config_commands="$ac_config_commands libtool"
11606
11607
11608
11609
11610# Only expand once:
11611
11612
11613
11614ac_ext=cpp
11615ac_cpp='$CXXCPP $CPPFLAGS'
11616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11619if test -z "$CXX"; then
11620  if test -n "$CCC"; then
11621    CXX=$CCC
11622  else
11623    if test -n "$ac_tool_prefix"; then
11624  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11625  do
11626    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11627set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629$as_echo_n "checking for $ac_word... " >&6; }
11630if ${ac_cv_prog_CXX+:} false; then :
11631  $as_echo_n "(cached) " >&6
11632else
11633  if test -n "$CXX"; then
11634  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11635else
11636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639  IFS=$as_save_IFS
11640  test -z "$as_dir" && as_dir=.
11641    for ac_exec_ext in '' $ac_executable_extensions; do
11642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11643    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645    break 2
11646  fi
11647done
11648  done
11649IFS=$as_save_IFS
11650
11651fi
11652fi
11653CXX=$ac_cv_prog_CXX
11654if test -n "$CXX"; then
11655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11656$as_echo "$CXX" >&6; }
11657else
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
11660fi
11661
11662
11663    test -n "$CXX" && break
11664  done
11665fi
11666if test -z "$CXX"; then
11667  ac_ct_CXX=$CXX
11668  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11669do
11670  # Extract the first word of "$ac_prog", so it can be a program name with args.
11671set dummy $ac_prog; ac_word=$2
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673$as_echo_n "checking for $ac_word... " >&6; }
11674if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11675  $as_echo_n "(cached) " >&6
11676else
11677  if test -n "$ac_ct_CXX"; then
11678  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11679else
11680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681for as_dir in $PATH
11682do
11683  IFS=$as_save_IFS
11684  test -z "$as_dir" && as_dir=.
11685    for ac_exec_ext in '' $ac_executable_extensions; do
11686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687    ac_cv_prog_ac_ct_CXX="$ac_prog"
11688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689    break 2
11690  fi
11691done
11692  done
11693IFS=$as_save_IFS
11694
11695fi
11696fi
11697ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11698if test -n "$ac_ct_CXX"; then
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11700$as_echo "$ac_ct_CXX" >&6; }
11701else
11702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
11704fi
11705
11706
11707  test -n "$ac_ct_CXX" && break
11708done
11709
11710  if test "x$ac_ct_CXX" = x; then
11711    CXX="g++"
11712  else
11713    case $cross_compiling:$ac_tool_warned in
11714yes:)
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11717ac_tool_warned=yes ;;
11718esac
11719    CXX=$ac_ct_CXX
11720  fi
11721fi
11722
11723  fi
11724fi
11725# Provide some information about the compiler.
11726$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11727set X $ac_compile
11728ac_compiler=$2
11729for ac_option in --version -v -V -qversion; do
11730  { { ac_try="$ac_compiler $ac_option >&5"
11731case "(($ac_try" in
11732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733  *) ac_try_echo=$ac_try;;
11734esac
11735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11736$as_echo "$ac_try_echo"; } >&5
11737  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11738  ac_status=$?
11739  if test -s conftest.err; then
11740    sed '10a\
11741... rest of stderr output deleted ...
11742         10q' conftest.err >conftest.er1
11743    cat conftest.er1 >&5
11744  fi
11745  rm -f conftest.er1 conftest.err
11746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11747  test $ac_status = 0; }
11748done
11749
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11751$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11752if ${ac_cv_cxx_compiler_gnu+:} false; then :
11753  $as_echo_n "(cached) " >&6
11754else
11755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756/* end confdefs.h.  */
11757
11758int
11759main ()
11760{
11761#ifndef __GNUC__
11762       choke me
11763#endif
11764
11765  ;
11766  return 0;
11767}
11768_ACEOF
11769if ac_fn_cxx_try_compile "$LINENO"; then :
11770  ac_compiler_gnu=yes
11771else
11772  ac_compiler_gnu=no
11773fi
11774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11776
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11779$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11780if test $ac_compiler_gnu = yes; then
11781  GXX=yes
11782else
11783  GXX=
11784fi
11785ac_test_CXXFLAGS=${CXXFLAGS+set}
11786ac_save_CXXFLAGS=$CXXFLAGS
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11788$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11789if ${ac_cv_prog_cxx_g+:} false; then :
11790  $as_echo_n "(cached) " >&6
11791else
11792  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11793   ac_cxx_werror_flag=yes
11794   ac_cv_prog_cxx_g=no
11795   CXXFLAGS="-g"
11796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797/* end confdefs.h.  */
11798
11799int
11800main ()
11801{
11802
11803  ;
11804  return 0;
11805}
11806_ACEOF
11807if ac_fn_cxx_try_compile "$LINENO"; then :
11808  ac_cv_prog_cxx_g=yes
11809else
11810  CXXFLAGS=""
11811      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812/* end confdefs.h.  */
11813
11814int
11815main ()
11816{
11817
11818  ;
11819  return 0;
11820}
11821_ACEOF
11822if ac_fn_cxx_try_compile "$LINENO"; then :
11823
11824else
11825  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11826	 CXXFLAGS="-g"
11827	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828/* end confdefs.h.  */
11829
11830int
11831main ()
11832{
11833
11834  ;
11835  return 0;
11836}
11837_ACEOF
11838if ac_fn_cxx_try_compile "$LINENO"; then :
11839  ac_cv_prog_cxx_g=yes
11840fi
11841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842fi
11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844fi
11845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11849$as_echo "$ac_cv_prog_cxx_g" >&6; }
11850if test "$ac_test_CXXFLAGS" = set; then
11851  CXXFLAGS=$ac_save_CXXFLAGS
11852elif test $ac_cv_prog_cxx_g = yes; then
11853  if test "$GXX" = yes; then
11854    CXXFLAGS="-g -O2"
11855  else
11856    CXXFLAGS="-g"
11857  fi
11858else
11859  if test "$GXX" = yes; then
11860    CXXFLAGS="-O2"
11861  else
11862    CXXFLAGS=
11863  fi
11864fi
11865ac_ext=c
11866ac_cpp='$CPP $CPPFLAGS'
11867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11869ac_compiler_gnu=$ac_cv_c_compiler_gnu
11870
11871depcc="$CXX"  am_compiler_list=
11872
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11874$as_echo_n "checking dependency style of $depcc... " >&6; }
11875if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11876  $as_echo_n "(cached) " >&6
11877else
11878  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11879  # We make a subdir and do the tests there.  Otherwise we can end up
11880  # making bogus files that we don't know about and never remove.  For
11881  # instance it was reported that on HP-UX the gcc test will end up
11882  # making a dummy file named `D' -- because `-MD' means `put the output
11883  # in D'.
11884  rm -rf conftest.dir
11885  mkdir conftest.dir
11886  # Copy depcomp to subdir because otherwise we won't find it if we're
11887  # using a relative directory.
11888  cp "$am_depcomp" conftest.dir
11889  cd conftest.dir
11890  # We will build objects and dependencies in a subdirectory because
11891  # it helps to detect inapplicable dependency modes.  For instance
11892  # both Tru64's cc and ICC support -MD to output dependencies as a
11893  # side effect of compilation, but ICC will put the dependencies in
11894  # the current directory while Tru64 will put them in the object
11895  # directory.
11896  mkdir sub
11897
11898  am_cv_CXX_dependencies_compiler_type=none
11899  if test "$am_compiler_list" = ""; then
11900     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11901  fi
11902  am__universal=false
11903  case " $depcc " in #(
11904     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11905     esac
11906
11907  for depmode in $am_compiler_list; do
11908    # Setup a source with many dependencies, because some compilers
11909    # like to wrap large dependency lists on column 80 (with \), and
11910    # we should not choose a depcomp mode which is confused by this.
11911    #
11912    # We need to recreate these files for each test, as the compiler may
11913    # overwrite some of them when testing with obscure command lines.
11914    # This happens at least with the AIX C compiler.
11915    : > sub/conftest.c
11916    for i in 1 2 3 4 5 6; do
11917      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11918      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11919      # Solaris 8's {/usr,}/bin/sh.
11920      touch sub/conftst$i.h
11921    done
11922    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11923
11924    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11925    # mode.  It turns out that the SunPro C++ compiler does not properly
11926    # handle `-M -o', and we need to detect this.  Also, some Intel
11927    # versions had trouble with output in subdirs
11928    am__obj=sub/conftest.${OBJEXT-o}
11929    am__minus_obj="-o $am__obj"
11930    case $depmode in
11931    gcc)
11932      # This depmode causes a compiler race in universal mode.
11933      test "$am__universal" = false || continue
11934      ;;
11935    nosideeffect)
11936      # after this tag, mechanisms are not by side-effect, so they'll
11937      # only be used when explicitly requested
11938      if test "x$enable_dependency_tracking" = xyes; then
11939	continue
11940      else
11941	break
11942      fi
11943      ;;
11944    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11945      # This compiler won't grok `-c -o', but also, the minuso test has
11946      # not run yet.  These depmodes are late enough in the game, and
11947      # so weak that their functioning should not be impacted.
11948      am__obj=conftest.${OBJEXT-o}
11949      am__minus_obj=
11950      ;;
11951    none) break ;;
11952    esac
11953    if depmode=$depmode \
11954       source=sub/conftest.c object=$am__obj \
11955       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11956       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11957         >/dev/null 2>conftest.err &&
11958       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11959       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11960       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11961       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11962      # icc doesn't choke on unknown options, it will just issue warnings
11963      # or remarks (even with -Werror).  So we grep stderr for any message
11964      # that says an option was ignored or not supported.
11965      # When given -MP, icc 7.0 and 7.1 complain thusly:
11966      #   icc: Command line warning: ignoring option '-M'; no argument required
11967      # The diagnosis changed in icc 8.0:
11968      #   icc: Command line remark: option '-MP' not supported
11969      if (grep 'ignoring option' conftest.err ||
11970          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11971        am_cv_CXX_dependencies_compiler_type=$depmode
11972        break
11973      fi
11974    fi
11975  done
11976
11977  cd ..
11978  rm -rf conftest.dir
11979else
11980  am_cv_CXX_dependencies_compiler_type=none
11981fi
11982
11983fi
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11985$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11986CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11987
11988 if
11989  test "x$enable_dependency_tracking" != xno \
11990  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11991  am__fastdepCXX_TRUE=
11992  am__fastdepCXX_FALSE='#'
11993else
11994  am__fastdepCXX_TRUE='#'
11995  am__fastdepCXX_FALSE=
11996fi
11997
11998
11999
12000
12001func_stripname_cnf ()
12002{
12003  case ${2} in
12004  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12005  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12006  esac
12007} # func_stripname_cnf
12008
12009      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12010    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12011    (test "X$CXX" != "Xg++"))) ; then
12012  ac_ext=cpp
12013ac_cpp='$CXXCPP $CPPFLAGS'
12014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12018$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12019if test -z "$CXXCPP"; then
12020  if ${ac_cv_prog_CXXCPP+:} false; then :
12021  $as_echo_n "(cached) " >&6
12022else
12023      # Double quotes because CXXCPP needs to be expanded
12024    for CXXCPP in "$CXX -E" "/lib/cpp"
12025    do
12026      ac_preproc_ok=false
12027for ac_cxx_preproc_warn_flag in '' yes
12028do
12029  # Use a header file that comes with gcc, so configuring glibc
12030  # with a fresh cross-compiler works.
12031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12032  # <limits.h> exists even on freestanding compilers.
12033  # On the NeXT, cc -E runs the code through the compiler's parser,
12034  # not just through cpp. "Syntax error" is here to catch this case.
12035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h.  */
12037#ifdef __STDC__
12038# include <limits.h>
12039#else
12040# include <assert.h>
12041#endif
12042		     Syntax error
12043_ACEOF
12044if ac_fn_cxx_try_cpp "$LINENO"; then :
12045
12046else
12047  # Broken: fails on valid input.
12048continue
12049fi
12050rm -f conftest.err conftest.i conftest.$ac_ext
12051
12052  # OK, works on sane cases.  Now check whether nonexistent headers
12053  # can be detected and how.
12054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h.  */
12056#include <ac_nonexistent.h>
12057_ACEOF
12058if ac_fn_cxx_try_cpp "$LINENO"; then :
12059  # Broken: success on invalid input.
12060continue
12061else
12062  # Passes both tests.
12063ac_preproc_ok=:
12064break
12065fi
12066rm -f conftest.err conftest.i conftest.$ac_ext
12067
12068done
12069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12070rm -f conftest.i conftest.err conftest.$ac_ext
12071if $ac_preproc_ok; then :
12072  break
12073fi
12074
12075    done
12076    ac_cv_prog_CXXCPP=$CXXCPP
12077
12078fi
12079  CXXCPP=$ac_cv_prog_CXXCPP
12080else
12081  ac_cv_prog_CXXCPP=$CXXCPP
12082fi
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12084$as_echo "$CXXCPP" >&6; }
12085ac_preproc_ok=false
12086for ac_cxx_preproc_warn_flag in '' yes
12087do
12088  # Use a header file that comes with gcc, so configuring glibc
12089  # with a fresh cross-compiler works.
12090  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091  # <limits.h> exists even on freestanding compilers.
12092  # On the NeXT, cc -E runs the code through the compiler's parser,
12093  # not just through cpp. "Syntax error" is here to catch this case.
12094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h.  */
12096#ifdef __STDC__
12097# include <limits.h>
12098#else
12099# include <assert.h>
12100#endif
12101		     Syntax error
12102_ACEOF
12103if ac_fn_cxx_try_cpp "$LINENO"; then :
12104
12105else
12106  # Broken: fails on valid input.
12107continue
12108fi
12109rm -f conftest.err conftest.i conftest.$ac_ext
12110
12111  # OK, works on sane cases.  Now check whether nonexistent headers
12112  # can be detected and how.
12113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h.  */
12115#include <ac_nonexistent.h>
12116_ACEOF
12117if ac_fn_cxx_try_cpp "$LINENO"; then :
12118  # Broken: success on invalid input.
12119continue
12120else
12121  # Passes both tests.
12122ac_preproc_ok=:
12123break
12124fi
12125rm -f conftest.err conftest.i conftest.$ac_ext
12126
12127done
12128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12129rm -f conftest.i conftest.err conftest.$ac_ext
12130if $ac_preproc_ok; then :
12131
12132else
12133  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12135as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12136See \`config.log' for more details" "$LINENO" 5; }
12137fi
12138
12139ac_ext=c
12140ac_cpp='$CPP $CPPFLAGS'
12141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143ac_compiler_gnu=$ac_cv_c_compiler_gnu
12144
12145else
12146  _lt_caught_CXX_error=yes
12147fi
12148
12149ac_ext=cpp
12150ac_cpp='$CXXCPP $CPPFLAGS'
12151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12154
12155archive_cmds_need_lc_CXX=no
12156allow_undefined_flag_CXX=
12157always_export_symbols_CXX=no
12158archive_expsym_cmds_CXX=
12159compiler_needs_object_CXX=no
12160export_dynamic_flag_spec_CXX=
12161hardcode_direct_CXX=no
12162hardcode_direct_absolute_CXX=no
12163hardcode_libdir_flag_spec_CXX=
12164hardcode_libdir_separator_CXX=
12165hardcode_minus_L_CXX=no
12166hardcode_shlibpath_var_CXX=unsupported
12167hardcode_automatic_CXX=no
12168inherit_rpath_CXX=no
12169module_cmds_CXX=
12170module_expsym_cmds_CXX=
12171link_all_deplibs_CXX=unknown
12172old_archive_cmds_CXX=$old_archive_cmds
12173reload_flag_CXX=$reload_flag
12174reload_cmds_CXX=$reload_cmds
12175no_undefined_flag_CXX=
12176whole_archive_flag_spec_CXX=
12177enable_shared_with_static_runtimes_CXX=no
12178
12179# Source file extension for C++ test sources.
12180ac_ext=cpp
12181
12182# Object file extension for compiled C++ test sources.
12183objext=o
12184objext_CXX=$objext
12185
12186# No sense in running all these tests if we already determined that
12187# the CXX compiler isn't working.  Some variables (like enable_shared)
12188# are currently assumed to apply to all compilers on this platform,
12189# and will be corrupted by setting them based on a non-working compiler.
12190if test "$_lt_caught_CXX_error" != yes; then
12191  # Code to be used in simple compile tests
12192  lt_simple_compile_test_code="int some_variable = 0;"
12193
12194  # Code to be used in simple link tests
12195  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12196
12197  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12198
12199
12200
12201
12202
12203
12204# If no C compiler was specified, use CC.
12205LTCC=${LTCC-"$CC"}
12206
12207# If no C compiler flags were specified, use CFLAGS.
12208LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12209
12210# Allow CC to be a program name with arguments.
12211compiler=$CC
12212
12213
12214  # save warnings/boilerplate of simple test code
12215  ac_outfile=conftest.$ac_objext
12216echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12217eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12218_lt_compiler_boilerplate=`cat conftest.err`
12219$RM conftest*
12220
12221  ac_outfile=conftest.$ac_objext
12222echo "$lt_simple_link_test_code" >conftest.$ac_ext
12223eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12224_lt_linker_boilerplate=`cat conftest.err`
12225$RM -r conftest*
12226
12227
12228  # Allow CC to be a program name with arguments.
12229  lt_save_CC=$CC
12230  lt_save_CFLAGS=$CFLAGS
12231  lt_save_LD=$LD
12232  lt_save_GCC=$GCC
12233  GCC=$GXX
12234  lt_save_with_gnu_ld=$with_gnu_ld
12235  lt_save_path_LD=$lt_cv_path_LD
12236  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12237    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12238  else
12239    $as_unset lt_cv_prog_gnu_ld
12240  fi
12241  if test -n "${lt_cv_path_LDCXX+set}"; then
12242    lt_cv_path_LD=$lt_cv_path_LDCXX
12243  else
12244    $as_unset lt_cv_path_LD
12245  fi
12246  test -z "${LDCXX+set}" || LD=$LDCXX
12247  CC=${CXX-"c++"}
12248  CFLAGS=$CXXFLAGS
12249  compiler=$CC
12250  compiler_CXX=$CC
12251  for cc_temp in $compiler""; do
12252  case $cc_temp in
12253    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12254    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12255    \-*) ;;
12256    *) break;;
12257  esac
12258done
12259cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12260
12261
12262  if test -n "$compiler"; then
12263    # We don't want -fno-exception when compiling C++ code, so set the
12264    # no_builtin_flag separately
12265    if test "$GXX" = yes; then
12266      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12267    else
12268      lt_prog_compiler_no_builtin_flag_CXX=
12269    fi
12270
12271    if test "$GXX" = yes; then
12272      # Set up default GNU C++ configuration
12273
12274
12275
12276# Check whether --with-gnu-ld was given.
12277if test "${with_gnu_ld+set}" = set; then :
12278  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12279else
12280  with_gnu_ld=no
12281fi
12282
12283ac_prog=ld
12284if test "$GCC" = yes; then
12285  # Check if gcc -print-prog-name=ld gives a path.
12286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12287$as_echo_n "checking for ld used by $CC... " >&6; }
12288  case $host in
12289  *-*-mingw*)
12290    # gcc leaves a trailing carriage return which upsets mingw
12291    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12292  *)
12293    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12294  esac
12295  case $ac_prog in
12296    # Accept absolute paths.
12297    [\\/]* | ?:[\\/]*)
12298      re_direlt='/[^/][^/]*/\.\./'
12299      # Canonicalize the pathname of ld
12300      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12301      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12302	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12303      done
12304      test -z "$LD" && LD="$ac_prog"
12305      ;;
12306  "")
12307    # If it fails, then pretend we aren't using GCC.
12308    ac_prog=ld
12309    ;;
12310  *)
12311    # If it is relative, then search for the first ld in PATH.
12312    with_gnu_ld=unknown
12313    ;;
12314  esac
12315elif test "$with_gnu_ld" = yes; then
12316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12317$as_echo_n "checking for GNU ld... " >&6; }
12318else
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12320$as_echo_n "checking for non-GNU ld... " >&6; }
12321fi
12322if ${lt_cv_path_LD+:} false; then :
12323  $as_echo_n "(cached) " >&6
12324else
12325  if test -z "$LD"; then
12326  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12327  for ac_dir in $PATH; do
12328    IFS="$lt_save_ifs"
12329    test -z "$ac_dir" && ac_dir=.
12330    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12331      lt_cv_path_LD="$ac_dir/$ac_prog"
12332      # Check to see if the program is GNU ld.  I'd rather use --version,
12333      # but apparently some variants of GNU ld only accept -v.
12334      # Break only if it was the GNU/non-GNU ld that we prefer.
12335      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12336      *GNU* | *'with BFD'*)
12337	test "$with_gnu_ld" != no && break
12338	;;
12339      *)
12340	test "$with_gnu_ld" != yes && break
12341	;;
12342      esac
12343    fi
12344  done
12345  IFS="$lt_save_ifs"
12346else
12347  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12348fi
12349fi
12350
12351LD="$lt_cv_path_LD"
12352if test -n "$LD"; then
12353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12354$as_echo "$LD" >&6; }
12355else
12356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357$as_echo "no" >&6; }
12358fi
12359test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12361$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12362if ${lt_cv_prog_gnu_ld+:} false; then :
12363  $as_echo_n "(cached) " >&6
12364else
12365  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12366case `$LD -v 2>&1 </dev/null` in
12367*GNU* | *'with BFD'*)
12368  lt_cv_prog_gnu_ld=yes
12369  ;;
12370*)
12371  lt_cv_prog_gnu_ld=no
12372  ;;
12373esac
12374fi
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12376$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12377with_gnu_ld=$lt_cv_prog_gnu_ld
12378
12379
12380
12381
12382
12383
12384
12385      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12386      # archiving commands below assume that GNU ld is being used.
12387      if test "$with_gnu_ld" = yes; then
12388        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12389        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'
12390
12391        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12392        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12393
12394        # If archive_cmds runs LD, not CC, wlarc should be empty
12395        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12396        #     investigate it a little bit more. (MM)
12397        wlarc='${wl}'
12398
12399        # ancient GNU ld didn't support --whole-archive et. al.
12400        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12401	  $GREP 'no-whole-archive' > /dev/null; then
12402          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12403        else
12404          whole_archive_flag_spec_CXX=
12405        fi
12406      else
12407        with_gnu_ld=no
12408        wlarc=
12409
12410        # A generic and very simple default shared library creation
12411        # command for GNU C++ for the case where it uses the native
12412        # linker, instead of GNU ld.  If possible, this setting should
12413        # overridden to take advantage of the native linker features on
12414        # the platform it is being used on.
12415        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12416      fi
12417
12418      # Commands to make compiler produce verbose output that lists
12419      # what "hidden" libraries, object files and flags are used when
12420      # linking a shared library.
12421      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12422
12423    else
12424      GXX=no
12425      with_gnu_ld=no
12426      wlarc=
12427    fi
12428
12429    # PORTME: fill in a description of your system's C++ link characteristics
12430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12432    ld_shlibs_CXX=yes
12433    case $host_os in
12434      aix3*)
12435        # FIXME: insert proper C++ library support
12436        ld_shlibs_CXX=no
12437        ;;
12438      aix[4-9]*)
12439        if test "$host_cpu" = ia64; then
12440          # On IA64, the linker does run time linking by default, so we don't
12441          # have to do anything special.
12442          aix_use_runtimelinking=no
12443          exp_sym_flag='-Bexport'
12444          no_entry_flag=""
12445        else
12446          aix_use_runtimelinking=no
12447
12448          # Test if we are trying to use run time linking or normal
12449          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12450          # need to do runtime linking.
12451          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12452	    for ld_flag in $LDFLAGS; do
12453	      case $ld_flag in
12454	      *-brtl*)
12455	        aix_use_runtimelinking=yes
12456	        break
12457	        ;;
12458	      esac
12459	    done
12460	    ;;
12461          esac
12462
12463          exp_sym_flag='-bexport'
12464          no_entry_flag='-bnoentry'
12465        fi
12466
12467        # When large executables or shared objects are built, AIX ld can
12468        # have problems creating the table of contents.  If linking a library
12469        # or program results in "error TOC overflow" add -mminimal-toc to
12470        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12471        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12472
12473        archive_cmds_CXX=''
12474        hardcode_direct_CXX=yes
12475        hardcode_direct_absolute_CXX=yes
12476        hardcode_libdir_separator_CXX=':'
12477        link_all_deplibs_CXX=yes
12478        file_list_spec_CXX='${wl}-f,'
12479
12480        if test "$GXX" = yes; then
12481          case $host_os in aix4.[012]|aix4.[012].*)
12482          # We only want to do this on AIX 4.2 and lower, the check
12483          # below for broken collect2 doesn't work under 4.3+
12484	  collect2name=`${CC} -print-prog-name=collect2`
12485	  if test -f "$collect2name" &&
12486	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12487	  then
12488	    # We have reworked collect2
12489	    :
12490	  else
12491	    # We have old collect2
12492	    hardcode_direct_CXX=unsupported
12493	    # It fails to find uninstalled libraries when the uninstalled
12494	    # path is not listed in the libpath.  Setting hardcode_minus_L
12495	    # to unsupported forces relinking
12496	    hardcode_minus_L_CXX=yes
12497	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12498	    hardcode_libdir_separator_CXX=
12499	  fi
12500          esac
12501          shared_flag='-shared'
12502	  if test "$aix_use_runtimelinking" = yes; then
12503	    shared_flag="$shared_flag "'${wl}-G'
12504	  fi
12505        else
12506          # not using gcc
12507          if test "$host_cpu" = ia64; then
12508	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12509	  # chokes on -Wl,-G. The following line is correct:
12510	  shared_flag='-G'
12511          else
12512	    if test "$aix_use_runtimelinking" = yes; then
12513	      shared_flag='${wl}-G'
12514	    else
12515	      shared_flag='${wl}-bM:SRE'
12516	    fi
12517          fi
12518        fi
12519
12520        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12521        # It seems that -bexpall does not export symbols beginning with
12522        # underscore (_), so it is better to generate a list of symbols to
12523	# export.
12524        always_export_symbols_CXX=yes
12525        if test "$aix_use_runtimelinking" = yes; then
12526          # Warning - without using the other runtime loading flags (-brtl),
12527          # -berok will link without error, but may produce a broken library.
12528          allow_undefined_flag_CXX='-berok'
12529          # Determine the default libpath from the value encoded in an empty
12530          # executable.
12531          if test "${lt_cv_aix_libpath+set}" = set; then
12532  aix_libpath=$lt_cv_aix_libpath
12533else
12534  if ${lt_cv_aix_libpath__CXX+:} false; then :
12535  $as_echo_n "(cached) " >&6
12536else
12537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h.  */
12539
12540int
12541main ()
12542{
12543
12544  ;
12545  return 0;
12546}
12547_ACEOF
12548if ac_fn_cxx_try_link "$LINENO"; then :
12549
12550  lt_aix_libpath_sed='
12551      /Import File Strings/,/^$/ {
12552	  /^0/ {
12553	      s/^0  *\([^ ]*\) *$/\1/
12554	      p
12555	  }
12556      }'
12557  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12558  # Check for a 64-bit object if we didn't find anything.
12559  if test -z "$lt_cv_aix_libpath__CXX"; then
12560    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12561  fi
12562fi
12563rm -f core conftest.err conftest.$ac_objext \
12564    conftest$ac_exeext conftest.$ac_ext
12565  if test -z "$lt_cv_aix_libpath__CXX"; then
12566    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12567  fi
12568
12569fi
12570
12571  aix_libpath=$lt_cv_aix_libpath__CXX
12572fi
12573
12574          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12575
12576          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12577        else
12578          if test "$host_cpu" = ia64; then
12579	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12580	    allow_undefined_flag_CXX="-z nodefs"
12581	    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"
12582          else
12583	    # Determine the default libpath from the value encoded in an
12584	    # empty executable.
12585	    if test "${lt_cv_aix_libpath+set}" = set; then
12586  aix_libpath=$lt_cv_aix_libpath
12587else
12588  if ${lt_cv_aix_libpath__CXX+:} false; then :
12589  $as_echo_n "(cached) " >&6
12590else
12591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592/* end confdefs.h.  */
12593
12594int
12595main ()
12596{
12597
12598  ;
12599  return 0;
12600}
12601_ACEOF
12602if ac_fn_cxx_try_link "$LINENO"; then :
12603
12604  lt_aix_libpath_sed='
12605      /Import File Strings/,/^$/ {
12606	  /^0/ {
12607	      s/^0  *\([^ ]*\) *$/\1/
12608	      p
12609	  }
12610      }'
12611  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12612  # Check for a 64-bit object if we didn't find anything.
12613  if test -z "$lt_cv_aix_libpath__CXX"; then
12614    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615  fi
12616fi
12617rm -f core conftest.err conftest.$ac_objext \
12618    conftest$ac_exeext conftest.$ac_ext
12619  if test -z "$lt_cv_aix_libpath__CXX"; then
12620    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12621  fi
12622
12623fi
12624
12625  aix_libpath=$lt_cv_aix_libpath__CXX
12626fi
12627
12628	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12629	    # Warning - without using the other run time loading flags,
12630	    # -berok will link without error, but may produce a broken library.
12631	    no_undefined_flag_CXX=' ${wl}-bernotok'
12632	    allow_undefined_flag_CXX=' ${wl}-berok'
12633	    if test "$with_gnu_ld" = yes; then
12634	      # We only use this code for GNU lds that support --whole-archive.
12635	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12636	    else
12637	      # Exported symbols can be pulled into shared objects from archives
12638	      whole_archive_flag_spec_CXX='$convenience'
12639	    fi
12640	    archive_cmds_need_lc_CXX=yes
12641	    # This is similar to how AIX traditionally builds its shared
12642	    # libraries.
12643	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12644          fi
12645        fi
12646        ;;
12647
12648      beos*)
12649	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12650	  allow_undefined_flag_CXX=unsupported
12651	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12652	  # support --undefined.  This deserves some investigation.  FIXME
12653	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12654	else
12655	  ld_shlibs_CXX=no
12656	fi
12657	;;
12658
12659      chorus*)
12660        case $cc_basename in
12661          *)
12662	  # FIXME: insert proper C++ library support
12663	  ld_shlibs_CXX=no
12664	  ;;
12665        esac
12666        ;;
12667
12668      cygwin* | mingw* | pw32* | cegcc*)
12669	case $GXX,$cc_basename in
12670	,cl* | no,cl*)
12671	  # Native MSVC
12672	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12673	  # no search path for DLLs.
12674	  hardcode_libdir_flag_spec_CXX=' '
12675	  allow_undefined_flag_CXX=unsupported
12676	  always_export_symbols_CXX=yes
12677	  file_list_spec_CXX='@'
12678	  # Tell ltmain to make .lib files, not .a files.
12679	  libext=lib
12680	  # Tell ltmain to make .dll files, not .so files.
12681	  shrext_cmds=".dll"
12682	  # FIXME: Setting linknames here is a bad hack.
12683	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12684	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12685	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12686	    else
12687	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12688	    fi~
12689	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12690	    linknames='
12691	  # The linker will not automatically build a static lib if we build a DLL.
12692	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12693	  enable_shared_with_static_runtimes_CXX=yes
12694	  # Don't use ranlib
12695	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12696	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12697	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12698	    case $lt_outputfile in
12699	      *.exe|*.EXE) ;;
12700	      *)
12701		lt_outputfile="$lt_outputfile.exe"
12702		lt_tool_outputfile="$lt_tool_outputfile.exe"
12703		;;
12704	    esac~
12705	    func_to_tool_file "$lt_outputfile"~
12706	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12707	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12708	      $RM "$lt_outputfile.manifest";
12709	    fi'
12710	  ;;
12711	*)
12712	  # g++
12713	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12714	  # as there is no search path for DLLs.
12715	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12716	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12717	  allow_undefined_flag_CXX=unsupported
12718	  always_export_symbols_CXX=no
12719	  enable_shared_with_static_runtimes_CXX=yes
12720
12721	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12722	    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'
12723	    # If the export-symbols file already is a .def file (1st line
12724	    # is EXPORTS), use it as is; otherwise, prepend...
12725	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12726	      cp $export_symbols $output_objdir/$soname.def;
12727	    else
12728	      echo EXPORTS > $output_objdir/$soname.def;
12729	      cat $export_symbols >> $output_objdir/$soname.def;
12730	    fi~
12731	    $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'
12732	  else
12733	    ld_shlibs_CXX=no
12734	  fi
12735	  ;;
12736	esac
12737	;;
12738      darwin* | rhapsody*)
12739
12740
12741  archive_cmds_need_lc_CXX=no
12742  hardcode_direct_CXX=no
12743  hardcode_automatic_CXX=yes
12744  hardcode_shlibpath_var_CXX=unsupported
12745  if test "$lt_cv_ld_force_load" = "yes"; then
12746    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\"`'
12747
12748  else
12749    whole_archive_flag_spec_CXX=''
12750  fi
12751  link_all_deplibs_CXX=yes
12752  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12753  case $cc_basename in
12754     ifort*) _lt_dar_can_shared=yes ;;
12755     *) _lt_dar_can_shared=$GCC ;;
12756  esac
12757  if test "$_lt_dar_can_shared" = "yes"; then
12758    output_verbose_link_cmd=func_echo_all
12759    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}"
12760    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12761    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}"
12762    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}"
12763       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12764      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}"
12765      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}"
12766    fi
12767
12768  else
12769  ld_shlibs_CXX=no
12770  fi
12771
12772	;;
12773
12774      dgux*)
12775        case $cc_basename in
12776          ec++*)
12777	    # FIXME: insert proper C++ library support
12778	    ld_shlibs_CXX=no
12779	    ;;
12780          ghcx*)
12781	    # Green Hills C++ Compiler
12782	    # FIXME: insert proper C++ library support
12783	    ld_shlibs_CXX=no
12784	    ;;
12785          *)
12786	    # FIXME: insert proper C++ library support
12787	    ld_shlibs_CXX=no
12788	    ;;
12789        esac
12790        ;;
12791
12792      freebsd2.*)
12793        # C++ shared libraries reported to be fairly broken before
12794	# switch to ELF
12795        ld_shlibs_CXX=no
12796        ;;
12797
12798      freebsd-elf*)
12799        archive_cmds_need_lc_CXX=no
12800        ;;
12801
12802      freebsd* | dragonfly*)
12803        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12804        # conventions
12805        ld_shlibs_CXX=yes
12806        ;;
12807
12808      gnu*)
12809        ;;
12810
12811      haiku*)
12812        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813        link_all_deplibs_CXX=yes
12814        ;;
12815
12816      hpux9*)
12817        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12818        hardcode_libdir_separator_CXX=:
12819        export_dynamic_flag_spec_CXX='${wl}-E'
12820        hardcode_direct_CXX=yes
12821        hardcode_minus_L_CXX=yes # Not in the search PATH,
12822				             # but as the default
12823				             # location of the library.
12824
12825        case $cc_basename in
12826          CC*)
12827            # FIXME: insert proper C++ library support
12828            ld_shlibs_CXX=no
12829            ;;
12830          aCC*)
12831            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12832            # Commands to make compiler produce verbose output that lists
12833            # what "hidden" libraries, object files and flags are used when
12834            # linking a shared library.
12835            #
12836            # There doesn't appear to be a way to prevent this compiler from
12837            # explicitly linking system object files so we need to strip them
12838            # from the output so that they don't get included in the library
12839            # dependencies.
12840            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"'
12841            ;;
12842          *)
12843            if test "$GXX" = yes; then
12844              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12845            else
12846              # FIXME: insert proper C++ library support
12847              ld_shlibs_CXX=no
12848            fi
12849            ;;
12850        esac
12851        ;;
12852
12853      hpux10*|hpux11*)
12854        if test $with_gnu_ld = no; then
12855	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12856	  hardcode_libdir_separator_CXX=:
12857
12858          case $host_cpu in
12859            hppa*64*|ia64*)
12860              ;;
12861            *)
12862	      export_dynamic_flag_spec_CXX='${wl}-E'
12863              ;;
12864          esac
12865        fi
12866        case $host_cpu in
12867          hppa*64*|ia64*)
12868            hardcode_direct_CXX=no
12869            hardcode_shlibpath_var_CXX=no
12870            ;;
12871          *)
12872            hardcode_direct_CXX=yes
12873            hardcode_direct_absolute_CXX=yes
12874            hardcode_minus_L_CXX=yes # Not in the search PATH,
12875					         # but as the default
12876					         # location of the library.
12877            ;;
12878        esac
12879
12880        case $cc_basename in
12881          CC*)
12882	    # FIXME: insert proper C++ library support
12883	    ld_shlibs_CXX=no
12884	    ;;
12885          aCC*)
12886	    case $host_cpu in
12887	      hppa*64*)
12888	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12889	        ;;
12890	      ia64*)
12891	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12892	        ;;
12893	      *)
12894	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12895	        ;;
12896	    esac
12897	    # Commands to make compiler produce verbose output that lists
12898	    # what "hidden" libraries, object files and flags are used when
12899	    # linking a shared library.
12900	    #
12901	    # There doesn't appear to be a way to prevent this compiler from
12902	    # explicitly linking system object files so we need to strip them
12903	    # from the output so that they don't get included in the library
12904	    # dependencies.
12905	    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"'
12906	    ;;
12907          *)
12908	    if test "$GXX" = yes; then
12909	      if test $with_gnu_ld = no; then
12910	        case $host_cpu in
12911	          hppa*64*)
12912	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12913	            ;;
12914	          ia64*)
12915	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12916	            ;;
12917	          *)
12918	            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'
12919	            ;;
12920	        esac
12921	      fi
12922	    else
12923	      # FIXME: insert proper C++ library support
12924	      ld_shlibs_CXX=no
12925	    fi
12926	    ;;
12927        esac
12928        ;;
12929
12930      interix[3-9]*)
12931	hardcode_direct_CXX=no
12932	hardcode_shlibpath_var_CXX=no
12933	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12934	export_dynamic_flag_spec_CXX='${wl}-E'
12935	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12936	# Instead, shared libraries are loaded at an image base (0x10000000 by
12937	# default) and relocated if they conflict, which is a slow very memory
12938	# consuming and fragmenting process.  To avoid this, we pick a random,
12939	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12940	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12941	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'
12942	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'
12943	;;
12944      irix5* | irix6*)
12945        case $cc_basename in
12946          CC*)
12947	    # SGI C++
12948	    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'
12949
12950	    # Archives containing C++ object files must be created using
12951	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12952	    # necessary to make sure instantiated templates are included
12953	    # in the archive.
12954	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12955	    ;;
12956          *)
12957	    if test "$GXX" = yes; then
12958	      if test "$with_gnu_ld" = no; then
12959	        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'
12960	      else
12961	        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'
12962	      fi
12963	    fi
12964	    link_all_deplibs_CXX=yes
12965	    ;;
12966        esac
12967        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12968        hardcode_libdir_separator_CXX=:
12969        inherit_rpath_CXX=yes
12970        ;;
12971
12972      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12973        case $cc_basename in
12974          KCC*)
12975	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12976
12977	    # KCC will only create a shared library if the output file
12978	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12979	    # to its proper name (with version) after linking.
12980	    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'
12981	    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'
12982	    # Commands to make compiler produce verbose output that lists
12983	    # what "hidden" libraries, object files and flags are used when
12984	    # linking a shared library.
12985	    #
12986	    # There doesn't appear to be a way to prevent this compiler from
12987	    # explicitly linking system object files so we need to strip them
12988	    # from the output so that they don't get included in the library
12989	    # dependencies.
12990	    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"'
12991
12992	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12993	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12994
12995	    # Archives containing C++ object files must be created using
12996	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12997	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12998	    ;;
12999	  icpc* | ecpc* )
13000	    # Intel C++
13001	    with_gnu_ld=yes
13002	    # version 8.0 and above of icpc choke on multiply defined symbols
13003	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13004	    # earlier do not add the objects themselves.
13005	    case `$CC -V 2>&1` in
13006	      *"Version 7."*)
13007	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13008		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'
13009		;;
13010	      *)  # Version 8.0 or newer
13011	        tmp_idyn=
13012	        case $host_cpu in
13013		  ia64*) tmp_idyn=' -i_dynamic';;
13014		esac
13015	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016		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'
13017		;;
13018	    esac
13019	    archive_cmds_need_lc_CXX=no
13020	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13021	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13022	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13023	    ;;
13024          pgCC* | pgcpp*)
13025            # Portland Group C++ compiler
13026	    case `$CC -V` in
13027	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13028	      prelink_cmds_CXX='tpldir=Template.dir~
13029		rm -rf $tpldir~
13030		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13031		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13032	      old_archive_cmds_CXX='tpldir=Template.dir~
13033		rm -rf $tpldir~
13034		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13035		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13036		$RANLIB $oldlib'
13037	      archive_cmds_CXX='tpldir=Template.dir~
13038		rm -rf $tpldir~
13039		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13040		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13041	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13042		rm -rf $tpldir~
13043		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13044		$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'
13045	      ;;
13046	    *) # Version 6 and above use weak symbols
13047	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13048	      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'
13049	      ;;
13050	    esac
13051
13052	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13053	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13054	    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'
13055            ;;
13056	  cxx*)
13057	    # Compaq C++
13058	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13059	    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'
13060
13061	    runpath_var=LD_RUN_PATH
13062	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13063	    hardcode_libdir_separator_CXX=:
13064
13065	    # Commands to make compiler produce verbose output that lists
13066	    # what "hidden" libraries, object files and flags are used when
13067	    # linking a shared library.
13068	    #
13069	    # There doesn't appear to be a way to prevent this compiler from
13070	    # explicitly linking system object files so we need to strip them
13071	    # from the output so that they don't get included in the library
13072	    # dependencies.
13073	    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'
13074	    ;;
13075	  xl* | mpixl* | bgxl*)
13076	    # IBM XL 8.0 on PPC, with GNU ld
13077	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13078	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13079	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080	    if test "x$supports_anon_versioning" = xyes; then
13081	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13082		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13083		echo "local: *; };" >> $output_objdir/$libname.ver~
13084		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13085	    fi
13086	    ;;
13087	  *)
13088	    case `$CC -V 2>&1 | sed 5q` in
13089	    *Sun\ C*)
13090	      # Sun C++ 5.9
13091	      no_undefined_flag_CXX=' -zdefs'
13092	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13093	      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'
13094	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13095	      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'
13096	      compiler_needs_object_CXX=yes
13097
13098	      # Not sure whether something based on
13099	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13100	      # would be better.
13101	      output_verbose_link_cmd='func_echo_all'
13102
13103	      # Archives containing C++ object files must be created using
13104	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13105	      # necessary to make sure instantiated templates are included
13106	      # in the archive.
13107	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13108	      ;;
13109	    esac
13110	    ;;
13111	esac
13112	;;
13113
13114      lynxos*)
13115        # FIXME: insert proper C++ library support
13116	ld_shlibs_CXX=no
13117	;;
13118
13119      m88k*)
13120        # FIXME: insert proper C++ library support
13121        ld_shlibs_CXX=no
13122	;;
13123
13124      mvs*)
13125        case $cc_basename in
13126          cxx*)
13127	    # FIXME: insert proper C++ library support
13128	    ld_shlibs_CXX=no
13129	    ;;
13130	  *)
13131	    # FIXME: insert proper C++ library support
13132	    ld_shlibs_CXX=no
13133	    ;;
13134	esac
13135	;;
13136
13137      netbsd*)
13138        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13139	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13140	  wlarc=
13141	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13142	  hardcode_direct_CXX=yes
13143	  hardcode_shlibpath_var_CXX=no
13144	fi
13145	# Workaround some broken pre-1.5 toolchains
13146	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13147	;;
13148
13149      *nto* | *qnx*)
13150        ld_shlibs_CXX=yes
13151	;;
13152
13153      openbsd2*)
13154        # C++ shared libraries are fairly broken
13155	ld_shlibs_CXX=no
13156	;;
13157
13158      openbsd*)
13159	if test -f /usr/libexec/ld.so; then
13160	  hardcode_direct_CXX=yes
13161	  hardcode_shlibpath_var_CXX=no
13162	  hardcode_direct_absolute_CXX=yes
13163	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13164	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13165	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13166	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13167	    export_dynamic_flag_spec_CXX='${wl}-E'
13168	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13169	  fi
13170	  output_verbose_link_cmd=func_echo_all
13171	else
13172	  ld_shlibs_CXX=no
13173	fi
13174	;;
13175
13176      osf3* | osf4* | osf5*)
13177        case $cc_basename in
13178          KCC*)
13179	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13180
13181	    # KCC will only create a shared library if the output file
13182	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13183	    # to its proper name (with version) after linking.
13184	    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'
13185
13186	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13187	    hardcode_libdir_separator_CXX=:
13188
13189	    # Archives containing C++ object files must be created using
13190	    # the KAI C++ compiler.
13191	    case $host in
13192	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13193	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13194	    esac
13195	    ;;
13196          RCC*)
13197	    # Rational C++ 2.4.1
13198	    # FIXME: insert proper C++ library support
13199	    ld_shlibs_CXX=no
13200	    ;;
13201          cxx*)
13202	    case $host in
13203	      osf3*)
13204	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13205	        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'
13206	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13207		;;
13208	      *)
13209	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13210	        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'
13211	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13212	          echo "-hidden">> $lib.exp~
13213	          $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~
13214	          $RM $lib.exp'
13215	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13216		;;
13217	    esac
13218
13219	    hardcode_libdir_separator_CXX=:
13220
13221	    # Commands to make compiler produce verbose output that lists
13222	    # what "hidden" libraries, object files and flags are used when
13223	    # linking a shared library.
13224	    #
13225	    # There doesn't appear to be a way to prevent this compiler from
13226	    # explicitly linking system object files so we need to strip them
13227	    # from the output so that they don't get included in the library
13228	    # dependencies.
13229	    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"'
13230	    ;;
13231	  *)
13232	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13233	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13234	      case $host in
13235	        osf3*)
13236	          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'
13237		  ;;
13238	        *)
13239	          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'
13240		  ;;
13241	      esac
13242
13243	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13244	      hardcode_libdir_separator_CXX=:
13245
13246	      # Commands to make compiler produce verbose output that lists
13247	      # what "hidden" libraries, object files and flags are used when
13248	      # linking a shared library.
13249	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13250
13251	    else
13252	      # FIXME: insert proper C++ library support
13253	      ld_shlibs_CXX=no
13254	    fi
13255	    ;;
13256        esac
13257        ;;
13258
13259      psos*)
13260        # FIXME: insert proper C++ library support
13261        ld_shlibs_CXX=no
13262        ;;
13263
13264      sunos4*)
13265        case $cc_basename in
13266          CC*)
13267	    # Sun C++ 4.x
13268	    # FIXME: insert proper C++ library support
13269	    ld_shlibs_CXX=no
13270	    ;;
13271          lcc*)
13272	    # Lucid
13273	    # FIXME: insert proper C++ library support
13274	    ld_shlibs_CXX=no
13275	    ;;
13276          *)
13277	    # FIXME: insert proper C++ library support
13278	    ld_shlibs_CXX=no
13279	    ;;
13280        esac
13281        ;;
13282
13283      solaris*)
13284        case $cc_basename in
13285          CC* | sunCC*)
13286	    # Sun C++ 4.2, 5.x and Centerline C++
13287            archive_cmds_need_lc_CXX=yes
13288	    no_undefined_flag_CXX=' -zdefs'
13289	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13290	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13291	      $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'
13292
13293	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13294	    hardcode_shlibpath_var_CXX=no
13295	    case $host_os in
13296	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13297	      *)
13298		# The compiler driver will combine and reorder linker options,
13299		# but understands `-z linker_flag'.
13300	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13301		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13302	        ;;
13303	    esac
13304	    link_all_deplibs_CXX=yes
13305
13306	    output_verbose_link_cmd='func_echo_all'
13307
13308	    # Archives containing C++ object files must be created using
13309	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13310	    # necessary to make sure instantiated templates are included
13311	    # in the archive.
13312	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13313	    ;;
13314          gcx*)
13315	    # Green Hills C++ Compiler
13316	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13317
13318	    # The C++ compiler must be used to create the archive.
13319	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13320	    ;;
13321          *)
13322	    # GNU C++ compiler with Solaris linker
13323	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13324	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13325	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13326	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13327	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13328		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13329
13330	        # Commands to make compiler produce verbose output that lists
13331	        # what "hidden" libraries, object files and flags are used when
13332	        # linking a shared library.
13333	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13334	      else
13335	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13336	        # platform.
13337	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13338	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13339		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13340
13341	        # Commands to make compiler produce verbose output that lists
13342	        # what "hidden" libraries, object files and flags are used when
13343	        # linking a shared library.
13344	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13345	      fi
13346
13347	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13348	      case $host_os in
13349		solaris2.[0-5] | solaris2.[0-5].*) ;;
13350		*)
13351		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13352		  ;;
13353	      esac
13354	    fi
13355	    ;;
13356        esac
13357        ;;
13358
13359    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13360      no_undefined_flag_CXX='${wl}-z,text'
13361      archive_cmds_need_lc_CXX=no
13362      hardcode_shlibpath_var_CXX=no
13363      runpath_var='LD_RUN_PATH'
13364
13365      case $cc_basename in
13366        CC*)
13367	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13368	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13369	  ;;
13370	*)
13371	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13372	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13373	  ;;
13374      esac
13375      ;;
13376
13377      sysv5* | sco3.2v5* | sco5v6*)
13378	# Note: We can NOT use -z defs as we might desire, because we do not
13379	# link with -lc, and that would cause any symbols used from libc to
13380	# always be unresolved, which means just about no library would
13381	# ever link correctly.  If we're not using GNU ld we use -z text
13382	# though, which does catch some bad symbols but isn't as heavy-handed
13383	# as -z defs.
13384	no_undefined_flag_CXX='${wl}-z,text'
13385	allow_undefined_flag_CXX='${wl}-z,nodefs'
13386	archive_cmds_need_lc_CXX=no
13387	hardcode_shlibpath_var_CXX=no
13388	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13389	hardcode_libdir_separator_CXX=':'
13390	link_all_deplibs_CXX=yes
13391	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13392	runpath_var='LD_RUN_PATH'
13393
13394	case $cc_basename in
13395          CC*)
13396	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13397	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13398	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13399	      '"$old_archive_cmds_CXX"
13400	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13401	      '"$reload_cmds_CXX"
13402	    ;;
13403	  *)
13404	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13405	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13406	    ;;
13407	esac
13408      ;;
13409
13410      tandem*)
13411        case $cc_basename in
13412          NCC*)
13413	    # NonStop-UX NCC 3.20
13414	    # FIXME: insert proper C++ library support
13415	    ld_shlibs_CXX=no
13416	    ;;
13417          *)
13418	    # FIXME: insert proper C++ library support
13419	    ld_shlibs_CXX=no
13420	    ;;
13421        esac
13422        ;;
13423
13424      vxworks*)
13425        # FIXME: insert proper C++ library support
13426        ld_shlibs_CXX=no
13427        ;;
13428
13429      *)
13430        # FIXME: insert proper C++ library support
13431        ld_shlibs_CXX=no
13432        ;;
13433    esac
13434
13435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13436$as_echo "$ld_shlibs_CXX" >&6; }
13437    test "$ld_shlibs_CXX" = no && can_build_shared=no
13438
13439    GCC_CXX="$GXX"
13440    LD_CXX="$LD"
13441
13442    ## CAVEAT EMPTOR:
13443    ## There is no encapsulation within the following macros, do not change
13444    ## the running order or otherwise move them around unless you know exactly
13445    ## what you are doing...
13446    # Dependencies to place before and after the object being linked:
13447predep_objects_CXX=
13448postdep_objects_CXX=
13449predeps_CXX=
13450postdeps_CXX=
13451compiler_lib_search_path_CXX=
13452
13453cat > conftest.$ac_ext <<_LT_EOF
13454class Foo
13455{
13456public:
13457  Foo (void) { a = 0; }
13458private:
13459  int a;
13460};
13461_LT_EOF
13462
13463
13464_lt_libdeps_save_CFLAGS=$CFLAGS
13465case "$CC $CFLAGS " in #(
13466*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13467*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13468*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13469esac
13470
13471if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13472  (eval $ac_compile) 2>&5
13473  ac_status=$?
13474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475  test $ac_status = 0; }; then
13476  # Parse the compiler output and extract the necessary
13477  # objects, libraries and library flags.
13478
13479  # Sentinel used to keep track of whether or not we are before
13480  # the conftest object file.
13481  pre_test_object_deps_done=no
13482
13483  for p in `eval "$output_verbose_link_cmd"`; do
13484    case ${prev}${p} in
13485
13486    -L* | -R* | -l*)
13487       # Some compilers place space between "-{L,R}" and the path.
13488       # Remove the space.
13489       if test $p = "-L" ||
13490          test $p = "-R"; then
13491	 prev=$p
13492	 continue
13493       fi
13494
13495       # Expand the sysroot to ease extracting the directories later.
13496       if test -z "$prev"; then
13497         case $p in
13498         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13499         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13500         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13501         esac
13502       fi
13503       case $p in
13504       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13505       esac
13506       if test "$pre_test_object_deps_done" = no; then
13507	 case ${prev} in
13508	 -L | -R)
13509	   # Internal compiler library paths should come after those
13510	   # provided the user.  The postdeps already come after the
13511	   # user supplied libs so there is no need to process them.
13512	   if test -z "$compiler_lib_search_path_CXX"; then
13513	     compiler_lib_search_path_CXX="${prev}${p}"
13514	   else
13515	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13516	   fi
13517	   ;;
13518	 # The "-l" case would never come before the object being
13519	 # linked, so don't bother handling this case.
13520	 esac
13521       else
13522	 if test -z "$postdeps_CXX"; then
13523	   postdeps_CXX="${prev}${p}"
13524	 else
13525	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13526	 fi
13527       fi
13528       prev=
13529       ;;
13530
13531    *.lto.$objext) ;; # Ignore GCC LTO objects
13532    *.$objext)
13533       # This assumes that the test object file only shows up
13534       # once in the compiler output.
13535       if test "$p" = "conftest.$objext"; then
13536	 pre_test_object_deps_done=yes
13537	 continue
13538       fi
13539
13540       if test "$pre_test_object_deps_done" = no; then
13541	 if test -z "$predep_objects_CXX"; then
13542	   predep_objects_CXX="$p"
13543	 else
13544	   predep_objects_CXX="$predep_objects_CXX $p"
13545	 fi
13546       else
13547	 if test -z "$postdep_objects_CXX"; then
13548	   postdep_objects_CXX="$p"
13549	 else
13550	   postdep_objects_CXX="$postdep_objects_CXX $p"
13551	 fi
13552       fi
13553       ;;
13554
13555    *) ;; # Ignore the rest.
13556
13557    esac
13558  done
13559
13560  # Clean up.
13561  rm -f a.out a.exe
13562else
13563  echo "libtool.m4: error: problem compiling CXX test program"
13564fi
13565
13566$RM -f confest.$objext
13567CFLAGS=$_lt_libdeps_save_CFLAGS
13568
13569# PORTME: override above test on systems where it is broken
13570case $host_os in
13571interix[3-9]*)
13572  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13573  # hack all around it, let's just trust "g++" to DTRT.
13574  predep_objects_CXX=
13575  postdep_objects_CXX=
13576  postdeps_CXX=
13577  ;;
13578
13579linux*)
13580  case `$CC -V 2>&1 | sed 5q` in
13581  *Sun\ C*)
13582    # Sun C++ 5.9
13583
13584    # The more standards-conforming stlport4 library is
13585    # incompatible with the Cstd library. Avoid specifying
13586    # it if it's in CXXFLAGS. Ignore libCrun as
13587    # -library=stlport4 depends on it.
13588    case " $CXX $CXXFLAGS " in
13589    *" -library=stlport4 "*)
13590      solaris_use_stlport4=yes
13591      ;;
13592    esac
13593
13594    if test "$solaris_use_stlport4" != yes; then
13595      postdeps_CXX='-library=Cstd -library=Crun'
13596    fi
13597    ;;
13598  esac
13599  ;;
13600
13601solaris*)
13602  case $cc_basename in
13603  CC* | sunCC*)
13604    # The more standards-conforming stlport4 library is
13605    # incompatible with the Cstd library. Avoid specifying
13606    # it if it's in CXXFLAGS. Ignore libCrun as
13607    # -library=stlport4 depends on it.
13608    case " $CXX $CXXFLAGS " in
13609    *" -library=stlport4 "*)
13610      solaris_use_stlport4=yes
13611      ;;
13612    esac
13613
13614    # Adding this requires a known-good setup of shared libraries for
13615    # Sun compiler versions before 5.6, else PIC objects from an old
13616    # archive will be linked into the output, leading to subtle bugs.
13617    if test "$solaris_use_stlport4" != yes; then
13618      postdeps_CXX='-library=Cstd -library=Crun'
13619    fi
13620    ;;
13621  esac
13622  ;;
13623esac
13624
13625
13626case " $postdeps_CXX " in
13627*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13628esac
13629 compiler_lib_search_dirs_CXX=
13630if test -n "${compiler_lib_search_path_CXX}"; then
13631 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13632fi
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664    lt_prog_compiler_wl_CXX=
13665lt_prog_compiler_pic_CXX=
13666lt_prog_compiler_static_CXX=
13667
13668
13669  # C++ specific cases for pic, static, wl, etc.
13670  if test "$GXX" = yes; then
13671    lt_prog_compiler_wl_CXX='-Wl,'
13672    lt_prog_compiler_static_CXX='-static'
13673
13674    case $host_os in
13675    aix*)
13676      # All AIX code is PIC.
13677      if test "$host_cpu" = ia64; then
13678	# AIX 5 now supports IA64 processor
13679	lt_prog_compiler_static_CXX='-Bstatic'
13680      fi
13681      ;;
13682
13683    amigaos*)
13684      case $host_cpu in
13685      powerpc)
13686            # see comment about AmigaOS4 .so support
13687            lt_prog_compiler_pic_CXX='-fPIC'
13688        ;;
13689      m68k)
13690            # FIXME: we need at least 68020 code to build shared libraries, but
13691            # adding the `-m68020' flag to GCC prevents building anything better,
13692            # like `-m68040'.
13693            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13694        ;;
13695      esac
13696      ;;
13697
13698    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13699      # PIC is the default for these OSes.
13700      ;;
13701    mingw* | cygwin* | os2* | pw32* | cegcc*)
13702      # This hack is so that the source file can tell whether it is being
13703      # built for inclusion in a dll (and should export symbols for example).
13704      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13705      # (--disable-auto-import) libraries
13706      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13707      ;;
13708    darwin* | rhapsody*)
13709      # PIC is the default on this platform
13710      # Common symbols not allowed in MH_DYLIB files
13711      lt_prog_compiler_pic_CXX='-fno-common'
13712      ;;
13713    *djgpp*)
13714      # DJGPP does not support shared libraries at all
13715      lt_prog_compiler_pic_CXX=
13716      ;;
13717    haiku*)
13718      # PIC is the default for Haiku.
13719      # The "-static" flag exists, but is broken.
13720      lt_prog_compiler_static_CXX=
13721      ;;
13722    interix[3-9]*)
13723      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13724      # Instead, we relocate shared libraries at runtime.
13725      ;;
13726    sysv4*MP*)
13727      if test -d /usr/nec; then
13728	lt_prog_compiler_pic_CXX=-Kconform_pic
13729      fi
13730      ;;
13731    hpux*)
13732      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13733      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13734      # sets the default TLS model and affects inlining.
13735      case $host_cpu in
13736      hppa*64*)
13737	;;
13738      *)
13739	lt_prog_compiler_pic_CXX='-fPIC'
13740	;;
13741      esac
13742      ;;
13743    *qnx* | *nto*)
13744      # QNX uses GNU C++, but need to define -shared option too, otherwise
13745      # it will coredump.
13746      lt_prog_compiler_pic_CXX='-fPIC -shared'
13747      ;;
13748    *)
13749      lt_prog_compiler_pic_CXX='-fPIC'
13750      ;;
13751    esac
13752  else
13753    case $host_os in
13754      aix[4-9]*)
13755	# All AIX code is PIC.
13756	if test "$host_cpu" = ia64; then
13757	  # AIX 5 now supports IA64 processor
13758	  lt_prog_compiler_static_CXX='-Bstatic'
13759	else
13760	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13761	fi
13762	;;
13763      chorus*)
13764	case $cc_basename in
13765	cxch68*)
13766	  # Green Hills C++ Compiler
13767	  # _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"
13768	  ;;
13769	esac
13770	;;
13771      mingw* | cygwin* | os2* | pw32* | cegcc*)
13772	# This hack is so that the source file can tell whether it is being
13773	# built for inclusion in a dll (and should export symbols for example).
13774	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13775	;;
13776      dgux*)
13777	case $cc_basename in
13778	  ec++*)
13779	    lt_prog_compiler_pic_CXX='-KPIC'
13780	    ;;
13781	  ghcx*)
13782	    # Green Hills C++ Compiler
13783	    lt_prog_compiler_pic_CXX='-pic'
13784	    ;;
13785	  *)
13786	    ;;
13787	esac
13788	;;
13789      freebsd* | dragonfly*)
13790	# FreeBSD uses GNU C++
13791	;;
13792      hpux9* | hpux10* | hpux11*)
13793	case $cc_basename in
13794	  CC*)
13795	    lt_prog_compiler_wl_CXX='-Wl,'
13796	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13797	    if test "$host_cpu" != ia64; then
13798	      lt_prog_compiler_pic_CXX='+Z'
13799	    fi
13800	    ;;
13801	  aCC*)
13802	    lt_prog_compiler_wl_CXX='-Wl,'
13803	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13804	    case $host_cpu in
13805	    hppa*64*|ia64*)
13806	      # +Z the default
13807	      ;;
13808	    *)
13809	      lt_prog_compiler_pic_CXX='+Z'
13810	      ;;
13811	    esac
13812	    ;;
13813	  *)
13814	    ;;
13815	esac
13816	;;
13817      interix*)
13818	# This is c89, which is MS Visual C++ (no shared libs)
13819	# Anyone wants to do a port?
13820	;;
13821      irix5* | irix6* | nonstopux*)
13822	case $cc_basename in
13823	  CC*)
13824	    lt_prog_compiler_wl_CXX='-Wl,'
13825	    lt_prog_compiler_static_CXX='-non_shared'
13826	    # CC pic flag -KPIC is the default.
13827	    ;;
13828	  *)
13829	    ;;
13830	esac
13831	;;
13832      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13833	case $cc_basename in
13834	  KCC*)
13835	    # KAI C++ Compiler
13836	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13837	    lt_prog_compiler_pic_CXX='-fPIC'
13838	    ;;
13839	  ecpc* )
13840	    # old Intel C++ for x86_64 which still supported -KPIC.
13841	    lt_prog_compiler_wl_CXX='-Wl,'
13842	    lt_prog_compiler_pic_CXX='-KPIC'
13843	    lt_prog_compiler_static_CXX='-static'
13844	    ;;
13845	  icpc* )
13846	    # Intel C++, used to be incompatible with GCC.
13847	    # ICC 10 doesn't accept -KPIC any more.
13848	    lt_prog_compiler_wl_CXX='-Wl,'
13849	    lt_prog_compiler_pic_CXX='-fPIC'
13850	    lt_prog_compiler_static_CXX='-static'
13851	    ;;
13852	  pgCC* | pgcpp*)
13853	    # Portland Group C++ compiler
13854	    lt_prog_compiler_wl_CXX='-Wl,'
13855	    lt_prog_compiler_pic_CXX='-fpic'
13856	    lt_prog_compiler_static_CXX='-Bstatic'
13857	    ;;
13858	  cxx*)
13859	    # Compaq C++
13860	    # Make sure the PIC flag is empty.  It appears that all Alpha
13861	    # Linux and Compaq Tru64 Unix objects are PIC.
13862	    lt_prog_compiler_pic_CXX=
13863	    lt_prog_compiler_static_CXX='-non_shared'
13864	    ;;
13865	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13866	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13867	    lt_prog_compiler_wl_CXX='-Wl,'
13868	    lt_prog_compiler_pic_CXX='-qpic'
13869	    lt_prog_compiler_static_CXX='-qstaticlink'
13870	    ;;
13871	  *)
13872	    case `$CC -V 2>&1 | sed 5q` in
13873	    *Sun\ C*)
13874	      # Sun C++ 5.9
13875	      lt_prog_compiler_pic_CXX='-KPIC'
13876	      lt_prog_compiler_static_CXX='-Bstatic'
13877	      lt_prog_compiler_wl_CXX='-Qoption ld '
13878	      ;;
13879	    esac
13880	    ;;
13881	esac
13882	;;
13883      lynxos*)
13884	;;
13885      m88k*)
13886	;;
13887      mvs*)
13888	case $cc_basename in
13889	  cxx*)
13890	    lt_prog_compiler_pic_CXX='-W c,exportall'
13891	    ;;
13892	  *)
13893	    ;;
13894	esac
13895	;;
13896      netbsd* | netbsdelf*-gnu)
13897	;;
13898      *qnx* | *nto*)
13899        # QNX uses GNU C++, but need to define -shared option too, otherwise
13900        # it will coredump.
13901        lt_prog_compiler_pic_CXX='-fPIC -shared'
13902        ;;
13903      osf3* | osf4* | osf5*)
13904	case $cc_basename in
13905	  KCC*)
13906	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13907	    ;;
13908	  RCC*)
13909	    # Rational C++ 2.4.1
13910	    lt_prog_compiler_pic_CXX='-pic'
13911	    ;;
13912	  cxx*)
13913	    # Digital/Compaq C++
13914	    lt_prog_compiler_wl_CXX='-Wl,'
13915	    # Make sure the PIC flag is empty.  It appears that all Alpha
13916	    # Linux and Compaq Tru64 Unix objects are PIC.
13917	    lt_prog_compiler_pic_CXX=
13918	    lt_prog_compiler_static_CXX='-non_shared'
13919	    ;;
13920	  *)
13921	    ;;
13922	esac
13923	;;
13924      psos*)
13925	;;
13926      solaris*)
13927	case $cc_basename in
13928	  CC* | sunCC*)
13929	    # Sun C++ 4.2, 5.x and Centerline C++
13930	    lt_prog_compiler_pic_CXX='-KPIC'
13931	    lt_prog_compiler_static_CXX='-Bstatic'
13932	    lt_prog_compiler_wl_CXX='-Qoption ld '
13933	    ;;
13934	  gcx*)
13935	    # Green Hills C++ Compiler
13936	    lt_prog_compiler_pic_CXX='-PIC'
13937	    ;;
13938	  *)
13939	    ;;
13940	esac
13941	;;
13942      sunos4*)
13943	case $cc_basename in
13944	  CC*)
13945	    # Sun C++ 4.x
13946	    lt_prog_compiler_pic_CXX='-pic'
13947	    lt_prog_compiler_static_CXX='-Bstatic'
13948	    ;;
13949	  lcc*)
13950	    # Lucid
13951	    lt_prog_compiler_pic_CXX='-pic'
13952	    ;;
13953	  *)
13954	    ;;
13955	esac
13956	;;
13957      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13958	case $cc_basename in
13959	  CC*)
13960	    lt_prog_compiler_wl_CXX='-Wl,'
13961	    lt_prog_compiler_pic_CXX='-KPIC'
13962	    lt_prog_compiler_static_CXX='-Bstatic'
13963	    ;;
13964	esac
13965	;;
13966      tandem*)
13967	case $cc_basename in
13968	  NCC*)
13969	    # NonStop-UX NCC 3.20
13970	    lt_prog_compiler_pic_CXX='-KPIC'
13971	    ;;
13972	  *)
13973	    ;;
13974	esac
13975	;;
13976      vxworks*)
13977	;;
13978      *)
13979	lt_prog_compiler_can_build_shared_CXX=no
13980	;;
13981    esac
13982  fi
13983
13984case $host_os in
13985  # For platforms which do not support PIC, -DPIC is meaningless:
13986  *djgpp*)
13987    lt_prog_compiler_pic_CXX=
13988    ;;
13989  *)
13990    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13991    ;;
13992esac
13993
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13995$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13996if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13997  $as_echo_n "(cached) " >&6
13998else
13999  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14000fi
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14002$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14003lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14004
14005#
14006# Check to make sure the PIC flag actually works.
14007#
14008if test -n "$lt_prog_compiler_pic_CXX"; then
14009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14010$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14011if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14012  $as_echo_n "(cached) " >&6
14013else
14014  lt_cv_prog_compiler_pic_works_CXX=no
14015   ac_outfile=conftest.$ac_objext
14016   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14017   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14018   # Insert the option either (1) after the last *FLAGS variable, or
14019   # (2) before a word containing "conftest.", or (3) at the end.
14020   # Note that $ac_compile itself does not contain backslashes and begins
14021   # with a dollar sign (not a hyphen), so the echo should work correctly.
14022   # The option is referenced via a variable to avoid confusing sed.
14023   lt_compile=`echo "$ac_compile" | $SED \
14024   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14026   -e 's:$: $lt_compiler_flag:'`
14027   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14028   (eval "$lt_compile" 2>conftest.err)
14029   ac_status=$?
14030   cat conftest.err >&5
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   if (exit $ac_status) && test -s "$ac_outfile"; then
14033     # The compiler can only warn and ignore the option if not recognized
14034     # So say no if there are warnings other than the usual output.
14035     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14036     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14037     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14038       lt_cv_prog_compiler_pic_works_CXX=yes
14039     fi
14040   fi
14041   $RM conftest*
14042
14043fi
14044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14045$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14046
14047if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14048    case $lt_prog_compiler_pic_CXX in
14049     "" | " "*) ;;
14050     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14051     esac
14052else
14053    lt_prog_compiler_pic_CXX=
14054     lt_prog_compiler_can_build_shared_CXX=no
14055fi
14056
14057fi
14058
14059
14060
14061
14062
14063#
14064# Check to make sure the static flag actually works.
14065#
14066wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14068$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14069if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14070  $as_echo_n "(cached) " >&6
14071else
14072  lt_cv_prog_compiler_static_works_CXX=no
14073   save_LDFLAGS="$LDFLAGS"
14074   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14075   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14076   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14077     # The linker can only warn and ignore the option if not recognized
14078     # So say no if there are warnings
14079     if test -s conftest.err; then
14080       # Append any errors to the config.log.
14081       cat conftest.err 1>&5
14082       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14083       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14084       if diff conftest.exp conftest.er2 >/dev/null; then
14085         lt_cv_prog_compiler_static_works_CXX=yes
14086       fi
14087     else
14088       lt_cv_prog_compiler_static_works_CXX=yes
14089     fi
14090   fi
14091   $RM -r conftest*
14092   LDFLAGS="$save_LDFLAGS"
14093
14094fi
14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14096$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14097
14098if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14099    :
14100else
14101    lt_prog_compiler_static_CXX=
14102fi
14103
14104
14105
14106
14107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14108$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14109if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14110  $as_echo_n "(cached) " >&6
14111else
14112  lt_cv_prog_compiler_c_o_CXX=no
14113   $RM -r conftest 2>/dev/null
14114   mkdir conftest
14115   cd conftest
14116   mkdir out
14117   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14118
14119   lt_compiler_flag="-o out/conftest2.$ac_objext"
14120   # Insert the option either (1) after the last *FLAGS variable, or
14121   # (2) before a word containing "conftest.", or (3) at the end.
14122   # Note that $ac_compile itself does not contain backslashes and begins
14123   # with a dollar sign (not a hyphen), so the echo should work correctly.
14124   lt_compile=`echo "$ac_compile" | $SED \
14125   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127   -e 's:$: $lt_compiler_flag:'`
14128   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14129   (eval "$lt_compile" 2>out/conftest.err)
14130   ac_status=$?
14131   cat out/conftest.err >&5
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14134   then
14135     # The compiler can only warn and ignore the option if not recognized
14136     # So say no if there are warnings
14137     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14138     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14139     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14140       lt_cv_prog_compiler_c_o_CXX=yes
14141     fi
14142   fi
14143   chmod u+w . 2>&5
14144   $RM conftest*
14145   # SGI C++ compiler will create directory out/ii_files/ for
14146   # template instantiation
14147   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14148   $RM out/* && rmdir out
14149   cd ..
14150   $RM -r conftest
14151   $RM conftest*
14152
14153fi
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14155$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14156
14157
14158
14159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14160$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14161if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14162  $as_echo_n "(cached) " >&6
14163else
14164  lt_cv_prog_compiler_c_o_CXX=no
14165   $RM -r conftest 2>/dev/null
14166   mkdir conftest
14167   cd conftest
14168   mkdir out
14169   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14170
14171   lt_compiler_flag="-o out/conftest2.$ac_objext"
14172   # Insert the option either (1) after the last *FLAGS variable, or
14173   # (2) before a word containing "conftest.", or (3) at the end.
14174   # Note that $ac_compile itself does not contain backslashes and begins
14175   # with a dollar sign (not a hyphen), so the echo should work correctly.
14176   lt_compile=`echo "$ac_compile" | $SED \
14177   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14178   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14179   -e 's:$: $lt_compiler_flag:'`
14180   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14181   (eval "$lt_compile" 2>out/conftest.err)
14182   ac_status=$?
14183   cat out/conftest.err >&5
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14186   then
14187     # The compiler can only warn and ignore the option if not recognized
14188     # So say no if there are warnings
14189     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14190     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14191     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14192       lt_cv_prog_compiler_c_o_CXX=yes
14193     fi
14194   fi
14195   chmod u+w . 2>&5
14196   $RM conftest*
14197   # SGI C++ compiler will create directory out/ii_files/ for
14198   # template instantiation
14199   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14200   $RM out/* && rmdir out
14201   cd ..
14202   $RM -r conftest
14203   $RM conftest*
14204
14205fi
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14207$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14208
14209
14210
14211
14212hard_links="nottested"
14213if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14214  # do not overwrite the value of need_locks provided by the user
14215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14216$as_echo_n "checking if we can lock with hard links... " >&6; }
14217  hard_links=yes
14218  $RM conftest*
14219  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14220  touch conftest.a
14221  ln conftest.a conftest.b 2>&5 || hard_links=no
14222  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14224$as_echo "$hard_links" >&6; }
14225  if test "$hard_links" = no; then
14226    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14227$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14228    need_locks=warn
14229  fi
14230else
14231  need_locks=no
14232fi
14233
14234
14235
14236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14237$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14238
14239  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14240  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14241  case $host_os in
14242  aix[4-9]*)
14243    # If we're using GNU nm, then we don't want the "-C" option.
14244    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14245    # Also, AIX nm treats weak defined symbols like other global defined
14246    # symbols, whereas GNU nm marks them as "W".
14247    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14248      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14249    else
14250      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14251    fi
14252    ;;
14253  pw32*)
14254    export_symbols_cmds_CXX="$ltdll_cmds"
14255    ;;
14256  cygwin* | mingw* | cegcc*)
14257    case $cc_basename in
14258    cl*)
14259      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14260      ;;
14261    *)
14262      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'
14263      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14264      ;;
14265    esac
14266    ;;
14267  linux* | k*bsd*-gnu | gnu*)
14268    link_all_deplibs_CXX=no
14269    ;;
14270  *)
14271    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14272    ;;
14273  esac
14274
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14276$as_echo "$ld_shlibs_CXX" >&6; }
14277test "$ld_shlibs_CXX" = no && can_build_shared=no
14278
14279with_gnu_ld_CXX=$with_gnu_ld
14280
14281
14282
14283
14284
14285
14286#
14287# Do we need to explicitly link libc?
14288#
14289case "x$archive_cmds_need_lc_CXX" in
14290x|xyes)
14291  # Assume -lc should be added
14292  archive_cmds_need_lc_CXX=yes
14293
14294  if test "$enable_shared" = yes && test "$GCC" = yes; then
14295    case $archive_cmds_CXX in
14296    *'~'*)
14297      # FIXME: we may have to deal with multi-command sequences.
14298      ;;
14299    '$CC '*)
14300      # Test whether the compiler implicitly links with -lc since on some
14301      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14302      # to ld, don't add -lc before -lgcc.
14303      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14304$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14305if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14306  $as_echo_n "(cached) " >&6
14307else
14308  $RM conftest*
14309	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14310
14311	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14312  (eval $ac_compile) 2>&5
14313  ac_status=$?
14314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14315  test $ac_status = 0; } 2>conftest.err; then
14316	  soname=conftest
14317	  lib=conftest
14318	  libobjs=conftest.$ac_objext
14319	  deplibs=
14320	  wl=$lt_prog_compiler_wl_CXX
14321	  pic_flag=$lt_prog_compiler_pic_CXX
14322	  compiler_flags=-v
14323	  linker_flags=-v
14324	  verstring=
14325	  output_objdir=.
14326	  libname=conftest
14327	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14328	  allow_undefined_flag_CXX=
14329	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14330  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14331  ac_status=$?
14332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14333  test $ac_status = 0; }
14334	  then
14335	    lt_cv_archive_cmds_need_lc_CXX=no
14336	  else
14337	    lt_cv_archive_cmds_need_lc_CXX=yes
14338	  fi
14339	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14340	else
14341	  cat conftest.err 1>&5
14342	fi
14343	$RM conftest*
14344
14345fi
14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14347$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14348      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14349      ;;
14350    esac
14351  fi
14352  ;;
14353esac
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14417$as_echo_n "checking dynamic linker characteristics... " >&6; }
14418
14419library_names_spec=
14420libname_spec='lib$name'
14421soname_spec=
14422shrext_cmds=".so"
14423postinstall_cmds=
14424postuninstall_cmds=
14425finish_cmds=
14426finish_eval=
14427shlibpath_var=
14428shlibpath_overrides_runpath=unknown
14429version_type=none
14430dynamic_linker="$host_os ld.so"
14431sys_lib_dlsearch_path_spec="/lib /usr/lib"
14432need_lib_prefix=unknown
14433hardcode_into_libs=no
14434
14435# when you set need_version to no, make sure it does not cause -set_version
14436# flags to be left without arguments
14437need_version=unknown
14438
14439case $host_os in
14440aix3*)
14441  version_type=linux # correct to gnu/linux during the next big refactor
14442  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14443  shlibpath_var=LIBPATH
14444
14445  # AIX 3 has no versioning support, so we append a major version to the name.
14446  soname_spec='${libname}${release}${shared_ext}$major'
14447  ;;
14448
14449aix[4-9]*)
14450  version_type=linux # correct to gnu/linux during the next big refactor
14451  need_lib_prefix=no
14452  need_version=no
14453  hardcode_into_libs=yes
14454  if test "$host_cpu" = ia64; then
14455    # AIX 5 supports IA64
14456    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14457    shlibpath_var=LD_LIBRARY_PATH
14458  else
14459    # With GCC up to 2.95.x, collect2 would create an import file
14460    # for dependence libraries.  The import file would start with
14461    # the line `#! .'.  This would cause the generated library to
14462    # depend on `.', always an invalid library.  This was fixed in
14463    # development snapshots of GCC prior to 3.0.
14464    case $host_os in
14465      aix4 | aix4.[01] | aix4.[01].*)
14466      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14467	   echo ' yes '
14468	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14469	:
14470      else
14471	can_build_shared=no
14472      fi
14473      ;;
14474    esac
14475    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14476    # soname into executable. Probably we can add versioning support to
14477    # collect2, so additional links can be useful in future.
14478    if test "$aix_use_runtimelinking" = yes; then
14479      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14480      # instead of lib<name>.a to let people know that these are not
14481      # typical AIX shared libraries.
14482      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483    else
14484      # We preserve .a as extension for shared libraries through AIX4.2
14485      # and later when we are not doing run time linking.
14486      library_names_spec='${libname}${release}.a $libname.a'
14487      soname_spec='${libname}${release}${shared_ext}$major'
14488    fi
14489    shlibpath_var=LIBPATH
14490  fi
14491  ;;
14492
14493amigaos*)
14494  case $host_cpu in
14495  powerpc)
14496    # Since July 2007 AmigaOS4 officially supports .so libraries.
14497    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14498    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499    ;;
14500  m68k)
14501    library_names_spec='$libname.ixlibrary $libname.a'
14502    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14503    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14504    ;;
14505  esac
14506  ;;
14507
14508beos*)
14509  library_names_spec='${libname}${shared_ext}'
14510  dynamic_linker="$host_os ld.so"
14511  shlibpath_var=LIBRARY_PATH
14512  ;;
14513
14514bsdi[45]*)
14515  version_type=linux # correct to gnu/linux during the next big refactor
14516  need_version=no
14517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518  soname_spec='${libname}${release}${shared_ext}$major'
14519  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14520  shlibpath_var=LD_LIBRARY_PATH
14521  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14522  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14523  # the default ld.so.conf also contains /usr/contrib/lib and
14524  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14525  # libtool to hard-code these into programs
14526  ;;
14527
14528cygwin* | mingw* | pw32* | cegcc*)
14529  version_type=windows
14530  shrext_cmds=".dll"
14531  need_version=no
14532  need_lib_prefix=no
14533
14534  case $GCC,$cc_basename in
14535  yes,*)
14536    # gcc
14537    library_names_spec='$libname.dll.a'
14538    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14539    postinstall_cmds='base_file=`basename \${file}`~
14540      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14541      dldir=$destdir/`dirname \$dlpath`~
14542      test -d \$dldir || mkdir -p \$dldir~
14543      $install_prog $dir/$dlname \$dldir/$dlname~
14544      chmod a+x \$dldir/$dlname~
14545      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14546        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14547      fi'
14548    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14549      dlpath=$dir/\$dldll~
14550       $RM \$dlpath'
14551    shlibpath_overrides_runpath=yes
14552
14553    case $host_os in
14554    cygwin*)
14555      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14556      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14557
14558      ;;
14559    mingw* | cegcc*)
14560      # MinGW DLLs use traditional 'lib' prefix
14561      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14562      ;;
14563    pw32*)
14564      # pw32 DLLs use 'pw' prefix rather than 'lib'
14565      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566      ;;
14567    esac
14568    dynamic_linker='Win32 ld.exe'
14569    ;;
14570
14571  *,cl*)
14572    # Native MSVC
14573    libname_spec='$name'
14574    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575    library_names_spec='${libname}.dll.lib'
14576
14577    case $build_os in
14578    mingw*)
14579      sys_lib_search_path_spec=
14580      lt_save_ifs=$IFS
14581      IFS=';'
14582      for lt_path in $LIB
14583      do
14584        IFS=$lt_save_ifs
14585        # Let DOS variable expansion print the short 8.3 style file name.
14586        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14587        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14588      done
14589      IFS=$lt_save_ifs
14590      # Convert to MSYS style.
14591      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14592      ;;
14593    cygwin*)
14594      # Convert to unix form, then to dos form, then back to unix form
14595      # but this time dos style (no spaces!) so that the unix form looks
14596      # like /cygdrive/c/PROGRA~1:/cygdr...
14597      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14598      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14599      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14600      ;;
14601    *)
14602      sys_lib_search_path_spec="$LIB"
14603      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14604        # It is most probably a Windows format PATH.
14605        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14606      else
14607        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14608      fi
14609      # FIXME: find the short name or the path components, as spaces are
14610      # common. (e.g. "Program Files" -> "PROGRA~1")
14611      ;;
14612    esac
14613
14614    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14615    postinstall_cmds='base_file=`basename \${file}`~
14616      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14617      dldir=$destdir/`dirname \$dlpath`~
14618      test -d \$dldir || mkdir -p \$dldir~
14619      $install_prog $dir/$dlname \$dldir/$dlname'
14620    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14621      dlpath=$dir/\$dldll~
14622       $RM \$dlpath'
14623    shlibpath_overrides_runpath=yes
14624    dynamic_linker='Win32 link.exe'
14625    ;;
14626
14627  *)
14628    # Assume MSVC wrapper
14629    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14630    dynamic_linker='Win32 ld.exe'
14631    ;;
14632  esac
14633  # FIXME: first we should search . and the directory the executable is in
14634  shlibpath_var=PATH
14635  ;;
14636
14637darwin* | rhapsody*)
14638  dynamic_linker="$host_os dyld"
14639  version_type=darwin
14640  need_lib_prefix=no
14641  need_version=no
14642  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14643  soname_spec='${libname}${release}${major}$shared_ext'
14644  shlibpath_overrides_runpath=yes
14645  shlibpath_var=DYLD_LIBRARY_PATH
14646  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14647
14648  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14649  ;;
14650
14651dgux*)
14652  version_type=linux # correct to gnu/linux during the next big refactor
14653  need_lib_prefix=no
14654  need_version=no
14655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14656  soname_spec='${libname}${release}${shared_ext}$major'
14657  shlibpath_var=LD_LIBRARY_PATH
14658  ;;
14659
14660freebsd* | dragonfly*)
14661  # DragonFly does not have aout.  When/if they implement a new
14662  # versioning mechanism, adjust this.
14663  if test -x /usr/bin/objformat; then
14664    objformat=`/usr/bin/objformat`
14665  else
14666    case $host_os in
14667    freebsd[23].*) objformat=aout ;;
14668    *) objformat=elf ;;
14669    esac
14670  fi
14671  version_type=freebsd-$objformat
14672  case $version_type in
14673    freebsd-elf*)
14674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14675      need_version=no
14676      need_lib_prefix=no
14677      ;;
14678    freebsd-*)
14679      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14680      need_version=yes
14681      ;;
14682  esac
14683  shlibpath_var=LD_LIBRARY_PATH
14684  case $host_os in
14685  freebsd2.*)
14686    shlibpath_overrides_runpath=yes
14687    ;;
14688  freebsd3.[01]* | freebsdelf3.[01]*)
14689    shlibpath_overrides_runpath=yes
14690    hardcode_into_libs=yes
14691    ;;
14692  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14693  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14694    shlibpath_overrides_runpath=no
14695    hardcode_into_libs=yes
14696    ;;
14697  *) # from 4.6 on, and DragonFly
14698    shlibpath_overrides_runpath=yes
14699    hardcode_into_libs=yes
14700    ;;
14701  esac
14702  ;;
14703
14704gnu*)
14705  version_type=linux # correct to gnu/linux during the next big refactor
14706  need_lib_prefix=no
14707  need_version=no
14708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14709  soname_spec='${libname}${release}${shared_ext}$major'
14710  shlibpath_var=LD_LIBRARY_PATH
14711  shlibpath_overrides_runpath=no
14712  hardcode_into_libs=yes
14713  ;;
14714
14715haiku*)
14716  version_type=linux # correct to gnu/linux during the next big refactor
14717  need_lib_prefix=no
14718  need_version=no
14719  dynamic_linker="$host_os runtime_loader"
14720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14721  soname_spec='${libname}${release}${shared_ext}$major'
14722  shlibpath_var=LIBRARY_PATH
14723  shlibpath_overrides_runpath=yes
14724  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14725  hardcode_into_libs=yes
14726  ;;
14727
14728hpux9* | hpux10* | hpux11*)
14729  # Give a soname corresponding to the major version so that dld.sl refuses to
14730  # link against other versions.
14731  version_type=sunos
14732  need_lib_prefix=no
14733  need_version=no
14734  case $host_cpu in
14735  ia64*)
14736    shrext_cmds='.so'
14737    hardcode_into_libs=yes
14738    dynamic_linker="$host_os dld.so"
14739    shlibpath_var=LD_LIBRARY_PATH
14740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742    soname_spec='${libname}${release}${shared_ext}$major'
14743    if test "X$HPUX_IA64_MODE" = X32; then
14744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14745    else
14746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14747    fi
14748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14749    ;;
14750  hppa*64*)
14751    shrext_cmds='.sl'
14752    hardcode_into_libs=yes
14753    dynamic_linker="$host_os dld.sl"
14754    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14755    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14756    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757    soname_spec='${libname}${release}${shared_ext}$major'
14758    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14759    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14760    ;;
14761  *)
14762    shrext_cmds='.sl'
14763    dynamic_linker="$host_os dld.sl"
14764    shlibpath_var=SHLIB_PATH
14765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767    soname_spec='${libname}${release}${shared_ext}$major'
14768    ;;
14769  esac
14770  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14771  postinstall_cmds='chmod 555 $lib'
14772  # or fails outright, so override atomically:
14773  install_override_mode=555
14774  ;;
14775
14776interix[3-9]*)
14777  version_type=linux # correct to gnu/linux during the next big refactor
14778  need_lib_prefix=no
14779  need_version=no
14780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14781  soname_spec='${libname}${release}${shared_ext}$major'
14782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14783  shlibpath_var=LD_LIBRARY_PATH
14784  shlibpath_overrides_runpath=no
14785  hardcode_into_libs=yes
14786  ;;
14787
14788irix5* | irix6* | nonstopux*)
14789  case $host_os in
14790    nonstopux*) version_type=nonstopux ;;
14791    *)
14792	if test "$lt_cv_prog_gnu_ld" = yes; then
14793		version_type=linux # correct to gnu/linux during the next big refactor
14794	else
14795		version_type=irix
14796	fi ;;
14797  esac
14798  need_lib_prefix=no
14799  need_version=no
14800  soname_spec='${libname}${release}${shared_ext}$major'
14801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14802  case $host_os in
14803  irix5* | nonstopux*)
14804    libsuff= shlibsuff=
14805    ;;
14806  *)
14807    case $LD in # libtool.m4 will add one of these switches to LD
14808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14809      libsuff= shlibsuff= libmagic=32-bit;;
14810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14811      libsuff=32 shlibsuff=N32 libmagic=N32;;
14812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14814    *) libsuff= shlibsuff= libmagic=never-match;;
14815    esac
14816    ;;
14817  esac
14818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14819  shlibpath_overrides_runpath=no
14820  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14821  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14822  hardcode_into_libs=yes
14823  ;;
14824
14825# No shared lib support for Linux oldld, aout, or coff.
14826linux*oldld* | linux*aout* | linux*coff*)
14827  dynamic_linker=no
14828  ;;
14829
14830# This must be glibc/ELF.
14831linux* | k*bsd*-gnu | kopensolaris*-gnu)
14832  version_type=linux # correct to gnu/linux during the next big refactor
14833  need_lib_prefix=no
14834  need_version=no
14835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836  soname_spec='${libname}${release}${shared_ext}$major'
14837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14838  shlibpath_var=LD_LIBRARY_PATH
14839  shlibpath_overrides_runpath=no
14840
14841  # Some binutils ld are patched to set DT_RUNPATH
14842  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14843  $as_echo_n "(cached) " >&6
14844else
14845  lt_cv_shlibpath_overrides_runpath=no
14846    save_LDFLAGS=$LDFLAGS
14847    save_libdir=$libdir
14848    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14849	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851/* end confdefs.h.  */
14852
14853int
14854main ()
14855{
14856
14857  ;
14858  return 0;
14859}
14860_ACEOF
14861if ac_fn_cxx_try_link "$LINENO"; then :
14862  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14863  lt_cv_shlibpath_overrides_runpath=yes
14864fi
14865fi
14866rm -f core conftest.err conftest.$ac_objext \
14867    conftest$ac_exeext conftest.$ac_ext
14868    LDFLAGS=$save_LDFLAGS
14869    libdir=$save_libdir
14870
14871fi
14872
14873  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14874
14875  # This implies no fast_install, which is unacceptable.
14876  # Some rework will be needed to allow for fast_install
14877  # before this can be enabled.
14878  hardcode_into_libs=yes
14879
14880  # Append ld.so.conf contents to the search path
14881  if test -f /etc/ld.so.conf; then
14882    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' ' '`
14883    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14884  fi
14885
14886  # We used to test for /lib/ld.so.1 and disable shared libraries on
14887  # powerpc, because MkLinux only supported shared libraries with the
14888  # GNU dynamic linker.  Since this was broken with cross compilers,
14889  # most powerpc-linux boxes support dynamic linking these days and
14890  # people can always --disable-shared, the test was removed, and we
14891  # assume the GNU/Linux dynamic linker is in use.
14892  dynamic_linker='GNU/Linux ld.so'
14893  ;;
14894
14895netbsdelf*-gnu)
14896  version_type=linux
14897  need_lib_prefix=no
14898  need_version=no
14899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14900  soname_spec='${libname}${release}${shared_ext}$major'
14901  shlibpath_var=LD_LIBRARY_PATH
14902  shlibpath_overrides_runpath=no
14903  hardcode_into_libs=yes
14904  dynamic_linker='NetBSD ld.elf_so'
14905  ;;
14906
14907netbsd*)
14908  version_type=sunos
14909  need_lib_prefix=no
14910  need_version=no
14911  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14913    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14914    dynamic_linker='NetBSD (a.out) ld.so'
14915  else
14916    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14917    soname_spec='${libname}${release}${shared_ext}$major'
14918    dynamic_linker='NetBSD ld.elf_so'
14919  fi
14920  shlibpath_var=LD_LIBRARY_PATH
14921  shlibpath_overrides_runpath=yes
14922  hardcode_into_libs=yes
14923  ;;
14924
14925newsos6)
14926  version_type=linux # correct to gnu/linux during the next big refactor
14927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928  shlibpath_var=LD_LIBRARY_PATH
14929  shlibpath_overrides_runpath=yes
14930  ;;
14931
14932*nto* | *qnx*)
14933  version_type=qnx
14934  need_lib_prefix=no
14935  need_version=no
14936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937  soname_spec='${libname}${release}${shared_ext}$major'
14938  shlibpath_var=LD_LIBRARY_PATH
14939  shlibpath_overrides_runpath=no
14940  hardcode_into_libs=yes
14941  dynamic_linker='ldqnx.so'
14942  ;;
14943
14944openbsd*)
14945  version_type=sunos
14946  sys_lib_dlsearch_path_spec="/usr/lib"
14947  need_lib_prefix=no
14948  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14949  case $host_os in
14950    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14951    *)				need_version=no  ;;
14952  esac
14953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14954  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14955  shlibpath_var=LD_LIBRARY_PATH
14956  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14957    case $host_os in
14958      openbsd2.[89] | openbsd2.[89].*)
14959	shlibpath_overrides_runpath=no
14960	;;
14961      *)
14962	shlibpath_overrides_runpath=yes
14963	;;
14964      esac
14965  else
14966    shlibpath_overrides_runpath=yes
14967  fi
14968  ;;
14969
14970os2*)
14971  libname_spec='$name'
14972  shrext_cmds=".dll"
14973  need_lib_prefix=no
14974  library_names_spec='$libname${shared_ext} $libname.a'
14975  dynamic_linker='OS/2 ld.exe'
14976  shlibpath_var=LIBPATH
14977  ;;
14978
14979osf3* | osf4* | osf5*)
14980  version_type=osf
14981  need_lib_prefix=no
14982  need_version=no
14983  soname_spec='${libname}${release}${shared_ext}$major'
14984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985  shlibpath_var=LD_LIBRARY_PATH
14986  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14987  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14988  ;;
14989
14990rdos*)
14991  dynamic_linker=no
14992  ;;
14993
14994solaris*)
14995  version_type=linux # correct to gnu/linux during the next big refactor
14996  need_lib_prefix=no
14997  need_version=no
14998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999  soname_spec='${libname}${release}${shared_ext}$major'
15000  shlibpath_var=LD_LIBRARY_PATH
15001  shlibpath_overrides_runpath=yes
15002  hardcode_into_libs=yes
15003  # ldd complains unless libraries are executable
15004  postinstall_cmds='chmod +x $lib'
15005  ;;
15006
15007sunos4*)
15008  version_type=sunos
15009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15010  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15011  shlibpath_var=LD_LIBRARY_PATH
15012  shlibpath_overrides_runpath=yes
15013  if test "$with_gnu_ld" = yes; then
15014    need_lib_prefix=no
15015  fi
15016  need_version=yes
15017  ;;
15018
15019sysv4 | sysv4.3*)
15020  version_type=linux # correct to gnu/linux during the next big refactor
15021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022  soname_spec='${libname}${release}${shared_ext}$major'
15023  shlibpath_var=LD_LIBRARY_PATH
15024  case $host_vendor in
15025    sni)
15026      shlibpath_overrides_runpath=no
15027      need_lib_prefix=no
15028      runpath_var=LD_RUN_PATH
15029      ;;
15030    siemens)
15031      need_lib_prefix=no
15032      ;;
15033    motorola)
15034      need_lib_prefix=no
15035      need_version=no
15036      shlibpath_overrides_runpath=no
15037      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15038      ;;
15039  esac
15040  ;;
15041
15042sysv4*MP*)
15043  if test -d /usr/nec ;then
15044    version_type=linux # correct to gnu/linux during the next big refactor
15045    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15046    soname_spec='$libname${shared_ext}.$major'
15047    shlibpath_var=LD_LIBRARY_PATH
15048  fi
15049  ;;
15050
15051sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15052  version_type=freebsd-elf
15053  need_lib_prefix=no
15054  need_version=no
15055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15056  soname_spec='${libname}${release}${shared_ext}$major'
15057  shlibpath_var=LD_LIBRARY_PATH
15058  shlibpath_overrides_runpath=yes
15059  hardcode_into_libs=yes
15060  if test "$with_gnu_ld" = yes; then
15061    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15062  else
15063    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15064    case $host_os in
15065      sco3.2v5*)
15066        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15067	;;
15068    esac
15069  fi
15070  sys_lib_dlsearch_path_spec='/usr/lib'
15071  ;;
15072
15073tpf*)
15074  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15075  version_type=linux # correct to gnu/linux during the next big refactor
15076  need_lib_prefix=no
15077  need_version=no
15078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079  shlibpath_var=LD_LIBRARY_PATH
15080  shlibpath_overrides_runpath=no
15081  hardcode_into_libs=yes
15082  ;;
15083
15084uts4*)
15085  version_type=linux # correct to gnu/linux during the next big refactor
15086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087  soname_spec='${libname}${release}${shared_ext}$major'
15088  shlibpath_var=LD_LIBRARY_PATH
15089  ;;
15090
15091*)
15092  dynamic_linker=no
15093  ;;
15094esac
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15096$as_echo "$dynamic_linker" >&6; }
15097test "$dynamic_linker" = no && can_build_shared=no
15098
15099variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15100if test "$GCC" = yes; then
15101  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15102fi
15103
15104if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15105  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15106fi
15107if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15108  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15109fi
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15149$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15150hardcode_action_CXX=
15151if test -n "$hardcode_libdir_flag_spec_CXX" ||
15152   test -n "$runpath_var_CXX" ||
15153   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15154
15155  # We can hardcode non-existent directories.
15156  if test "$hardcode_direct_CXX" != no &&
15157     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15158     # have to relink, otherwise we might link with an installed library
15159     # when we should be linking with a yet-to-be-installed one
15160     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15161     test "$hardcode_minus_L_CXX" != no; then
15162    # Linking always hardcodes the temporary library directory.
15163    hardcode_action_CXX=relink
15164  else
15165    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15166    hardcode_action_CXX=immediate
15167  fi
15168else
15169  # We cannot hardcode anything, or else we can only hardcode existing
15170  # directories.
15171  hardcode_action_CXX=unsupported
15172fi
15173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15174$as_echo "$hardcode_action_CXX" >&6; }
15175
15176if test "$hardcode_action_CXX" = relink ||
15177   test "$inherit_rpath_CXX" = yes; then
15178  # Fast installation is not supported
15179  enable_fast_install=no
15180elif test "$shlibpath_overrides_runpath" = yes ||
15181     test "$enable_shared" = no; then
15182  # Fast installation is not necessary
15183  enable_fast_install=needless
15184fi
15185
15186
15187
15188
15189
15190
15191
15192  fi # test -n "$compiler"
15193
15194  CC=$lt_save_CC
15195  CFLAGS=$lt_save_CFLAGS
15196  LDCXX=$LD
15197  LD=$lt_save_LD
15198  GCC=$lt_save_GCC
15199  with_gnu_ld=$lt_save_with_gnu_ld
15200  lt_cv_path_LDCXX=$lt_cv_path_LD
15201  lt_cv_path_LD=$lt_save_path_LD
15202  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15203  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15204fi # test "$_lt_caught_CXX_error" != yes
15205
15206ac_ext=c
15207ac_cpp='$CPP $CPPFLAGS'
15208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15210ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211
15212
15213ac_ext=cpp
15214ac_cpp='$CXXCPP $CPPFLAGS'
15215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15220$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15221if ${ac_cv_c_bigendian+:} false; then :
15222  $as_echo_n "(cached) " >&6
15223else
15224  ac_cv_c_bigendian=unknown
15225    # See if we're dealing with a universal compiler.
15226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h.  */
15228#ifndef __APPLE_CC__
15229	       not a universal capable compiler
15230	     #endif
15231	     typedef int dummy;
15232
15233_ACEOF
15234if ac_fn_cxx_try_compile "$LINENO"; then :
15235
15236	# Check for potential -arch flags.  It is not universal unless
15237	# there are at least two -arch flags with different values.
15238	ac_arch=
15239	ac_prev=
15240	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15241	 if test -n "$ac_prev"; then
15242	   case $ac_word in
15243	     i?86 | x86_64 | ppc | ppc64)
15244	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15245		 ac_arch=$ac_word
15246	       else
15247		 ac_cv_c_bigendian=universal
15248		 break
15249	       fi
15250	       ;;
15251	   esac
15252	   ac_prev=
15253	 elif test "x$ac_word" = "x-arch"; then
15254	   ac_prev=arch
15255	 fi
15256       done
15257fi
15258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259    if test $ac_cv_c_bigendian = unknown; then
15260      # See if sys/param.h defines the BYTE_ORDER macro.
15261      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263#include <sys/types.h>
15264	     #include <sys/param.h>
15265
15266int
15267main ()
15268{
15269#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15270		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15271		     && LITTLE_ENDIAN)
15272	      bogus endian macros
15273	     #endif
15274
15275  ;
15276  return 0;
15277}
15278_ACEOF
15279if ac_fn_cxx_try_compile "$LINENO"; then :
15280  # It does; now see whether it defined to BIG_ENDIAN or not.
15281	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282/* end confdefs.h.  */
15283#include <sys/types.h>
15284		#include <sys/param.h>
15285
15286int
15287main ()
15288{
15289#if BYTE_ORDER != BIG_ENDIAN
15290		 not big endian
15291		#endif
15292
15293  ;
15294  return 0;
15295}
15296_ACEOF
15297if ac_fn_cxx_try_compile "$LINENO"; then :
15298  ac_cv_c_bigendian=yes
15299else
15300  ac_cv_c_bigendian=no
15301fi
15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303fi
15304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305    fi
15306    if test $ac_cv_c_bigendian = unknown; then
15307      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15308      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309/* end confdefs.h.  */
15310#include <limits.h>
15311
15312int
15313main ()
15314{
15315#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15316	      bogus endian macros
15317	     #endif
15318
15319  ;
15320  return 0;
15321}
15322_ACEOF
15323if ac_fn_cxx_try_compile "$LINENO"; then :
15324  # It does; now see whether it defined to _BIG_ENDIAN or not.
15325	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h.  */
15327#include <limits.h>
15328
15329int
15330main ()
15331{
15332#ifndef _BIG_ENDIAN
15333		 not big endian
15334		#endif
15335
15336  ;
15337  return 0;
15338}
15339_ACEOF
15340if ac_fn_cxx_try_compile "$LINENO"; then :
15341  ac_cv_c_bigendian=yes
15342else
15343  ac_cv_c_bigendian=no
15344fi
15345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346fi
15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348    fi
15349    if test $ac_cv_c_bigendian = unknown; then
15350      # Compile a test program.
15351      if test "$cross_compiling" = yes; then :
15352  # Try to guess by grepping values from an object file.
15353	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354/* end confdefs.h.  */
15355short int ascii_mm[] =
15356		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15357		short int ascii_ii[] =
15358		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15359		int use_ascii (int i) {
15360		  return ascii_mm[i] + ascii_ii[i];
15361		}
15362		short int ebcdic_ii[] =
15363		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15364		short int ebcdic_mm[] =
15365		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15366		int use_ebcdic (int i) {
15367		  return ebcdic_mm[i] + ebcdic_ii[i];
15368		}
15369		extern int foo;
15370
15371int
15372main ()
15373{
15374return use_ascii (foo) == use_ebcdic (foo);
15375  ;
15376  return 0;
15377}
15378_ACEOF
15379if ac_fn_cxx_try_compile "$LINENO"; then :
15380  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15381	      ac_cv_c_bigendian=yes
15382	    fi
15383	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15384	      if test "$ac_cv_c_bigendian" = unknown; then
15385		ac_cv_c_bigendian=no
15386	      else
15387		# finding both strings is unlikely to happen, but who knows?
15388		ac_cv_c_bigendian=unknown
15389	      fi
15390	    fi
15391fi
15392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393else
15394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395/* end confdefs.h.  */
15396$ac_includes_default
15397int
15398main ()
15399{
15400
15401	     /* Are we little or big endian?  From Harbison&Steele.  */
15402	     union
15403	     {
15404	       long int l;
15405	       char c[sizeof (long int)];
15406	     } u;
15407	     u.l = 1;
15408	     return u.c[sizeof (long int) - 1] == 1;
15409
15410  ;
15411  return 0;
15412}
15413_ACEOF
15414if ac_fn_cxx_try_run "$LINENO"; then :
15415  ac_cv_c_bigendian=no
15416else
15417  ac_cv_c_bigendian=yes
15418fi
15419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15420  conftest.$ac_objext conftest.beam conftest.$ac_ext
15421fi
15422
15423    fi
15424fi
15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15426$as_echo "$ac_cv_c_bigendian" >&6; }
15427 case $ac_cv_c_bigendian in #(
15428   yes)
15429     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15430;; #(
15431   no)
15432      ;; #(
15433   universal)
15434
15435$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15436
15437     ;; #(
15438   *)
15439     as_fn_error $? "unknown endianness
15440 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15441 esac
15442
15443ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15444if test "x$ac_cv_type_size_t" = xyes; then :
15445
15446else
15447
15448cat >>confdefs.h <<_ACEOF
15449#define size_t unsigned int
15450_ACEOF
15451
15452fi
15453
15454ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15455if test "x$ac_cv_type_ssize_t" = xyes; then :
15456
15457else
15458
15459cat >>confdefs.h <<_ACEOF
15460#define ssize_t int
15461_ACEOF
15462
15463fi
15464
15465
15466for ac_header in stdint.h stddef.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h sys/time.h
15467do :
15468  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15469ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15470if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15471  cat >>confdefs.h <<_ACEOF
15472#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15473_ACEOF
15474
15475fi
15476
15477done
15478
15479
15480# Don't use AC_FUNC_MMAP, as it checks for mappings of already-mapped memory,
15481# which we don't need (and does not exist on Windows).
15482ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15483if test "x$ac_cv_func_mmap" = xyes; then :
15484
15485fi
15486
15487
15488
15489# Check whether --enable-gtest was given.
15490if test "${enable_gtest+set}" = set; then :
15491  enableval=$enable_gtest;
15492else
15493  enable_gtest=
15494fi
15495
15496
15497
15498
15499
15500
15501
15502HAVE_GTEST="no"
15503if test "x${enable_gtest}" != "xno"; then :
15504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'gtest-config'" >&5
15505$as_echo_n "checking for 'gtest-config'... " >&6; }
15506   if test "x${enable_gtest}" = "xyes"; then :
15507  if test -x "${enable_gtest}/scripts/gtest-config"; then :
15508  GTEST_CONFIG="${enable_gtest}/scripts/gtest-config"
15509else
15510  GTEST_CONFIG="${enable_gtest}/bin/gtest-config"
15511fi
15512      if test -x "${GTEST_CONFIG}"; then :
15513
15514else
15515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516$as_echo "no" >&6; }
15517         as_fn_error $? "Unable to locate either a built or installed Google Test.
15518The specific location '${enable_gtest}' was provided for a built or installed
15519Google Test, but no 'gtest-config' script could be found at this location." "$LINENO" 5
15520
15521fi
15522else
15523  # Extract the first word of "gtest-config", so it can be a program name with args.
15524set dummy gtest-config; ac_word=$2
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526$as_echo_n "checking for $ac_word... " >&6; }
15527if ${ac_cv_path_GTEST_CONFIG+:} false; then :
15528  $as_echo_n "(cached) " >&6
15529else
15530  case $GTEST_CONFIG in
15531  [\\/]* | ?:[\\/]*)
15532  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
15533  ;;
15534  *)
15535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15536for as_dir in $PATH
15537do
15538  IFS=$as_save_IFS
15539  test -z "$as_dir" && as_dir=.
15540    for ac_exec_ext in '' $ac_executable_extensions; do
15541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15542    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15544    break 2
15545  fi
15546done
15547  done
15548IFS=$as_save_IFS
15549
15550  ;;
15551esac
15552fi
15553GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
15554if test -n "$GTEST_CONFIG"; then
15555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
15556$as_echo "$GTEST_CONFIG" >&6; }
15557else
15558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15559$as_echo "no" >&6; }
15560fi
15561
15562
15563fi
15564   if test -x "${GTEST_CONFIG}"; then :
15565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GTEST_CONFIG}" >&5
15566$as_echo "${GTEST_CONFIG}" >&6; }
15567      _gtest_min_version="--min-version=0"
15568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google Test" >&5
15569$as_echo_n "checking for Google Test... " >&6; }
15570      if ${GTEST_CONFIG} ${_gtest_min_version}; then :
15571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15572$as_echo "yes" >&6; }
15573         HAVE_GTEST='yes'
15574else
15575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576$as_echo "no" >&6; }
15577fi
15578else
15579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15580$as_echo "no" >&6; }
15581fi
15582   if test "x${HAVE_GTEST}" = "xyes"; then :
15583  GTEST_CPPFLAGS=`${GTEST_CONFIG} --cppflags`
15584      GTEST_CXXFLAGS=`${GTEST_CONFIG} --cxxflags`
15585      GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
15586      GTEST_LIBS=`${GTEST_CONFIG} --libs`
15587      GTEST_VERSION=`${GTEST_CONFIG} --version`
15588
15589$as_echo "#define HAVE_GTEST 1" >>confdefs.h
15590
15591else
15592  if test "x${enable_gtest}" = "xyes"; then :
15593  as_fn_error $? "Google Test was enabled, but no viable version could be found." "$LINENO" 5
15594
15595fi
15596fi
15597fi
15598
15599 if test "x$HAVE_GTEST" = "xyes"; then
15600  HAVE_GTEST_TRUE=
15601  HAVE_GTEST_FALSE='#'
15602else
15603  HAVE_GTEST_TRUE='#'
15604  HAVE_GTEST_FALSE=
15605fi
15606
15607if test "x$HAVE_GTEST" = "xyes"; then :
15608  true
15609else
15610  true # Ignore; we can live without it.
15611fi
15612
15613
15614
15615# Check whether --with-gflags was given.
15616if test "${with_gflags+set}" = set; then :
15617  withval=$with_gflags;
15618else
15619  with_gflags=check
15620fi
15621
15622
15623if test "x$with_gflags" != "xno"; then
15624
15625
15626
15627
15628
15629
15630
15631if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15632	if test -n "$ac_tool_prefix"; then
15633  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15634set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15636$as_echo_n "checking for $ac_word... " >&6; }
15637if ${ac_cv_path_PKG_CONFIG+:} false; then :
15638  $as_echo_n "(cached) " >&6
15639else
15640  case $PKG_CONFIG in
15641  [\\/]* | ?:[\\/]*)
15642  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15643  ;;
15644  *)
15645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15646for as_dir in $PATH
15647do
15648  IFS=$as_save_IFS
15649  test -z "$as_dir" && as_dir=.
15650    for ac_exec_ext in '' $ac_executable_extensions; do
15651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15652    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15654    break 2
15655  fi
15656done
15657  done
15658IFS=$as_save_IFS
15659
15660  ;;
15661esac
15662fi
15663PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15664if test -n "$PKG_CONFIG"; then
15665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15666$as_echo "$PKG_CONFIG" >&6; }
15667else
15668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669$as_echo "no" >&6; }
15670fi
15671
15672
15673fi
15674if test -z "$ac_cv_path_PKG_CONFIG"; then
15675  ac_pt_PKG_CONFIG=$PKG_CONFIG
15676  # Extract the first word of "pkg-config", so it can be a program name with args.
15677set dummy pkg-config; ac_word=$2
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15679$as_echo_n "checking for $ac_word... " >&6; }
15680if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15681  $as_echo_n "(cached) " >&6
15682else
15683  case $ac_pt_PKG_CONFIG in
15684  [\\/]* | ?:[\\/]*)
15685  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15686  ;;
15687  *)
15688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689for as_dir in $PATH
15690do
15691  IFS=$as_save_IFS
15692  test -z "$as_dir" && as_dir=.
15693    for ac_exec_ext in '' $ac_executable_extensions; do
15694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15695    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15697    break 2
15698  fi
15699done
15700  done
15701IFS=$as_save_IFS
15702
15703  ;;
15704esac
15705fi
15706ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15707if test -n "$ac_pt_PKG_CONFIG"; then
15708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15709$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15710else
15711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712$as_echo "no" >&6; }
15713fi
15714
15715  if test "x$ac_pt_PKG_CONFIG" = x; then
15716    PKG_CONFIG=""
15717  else
15718    case $cross_compiling:$ac_tool_warned in
15719yes:)
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15722ac_tool_warned=yes ;;
15723esac
15724    PKG_CONFIG=$ac_pt_PKG_CONFIG
15725  fi
15726else
15727  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15728fi
15729
15730fi
15731if test -n "$PKG_CONFIG"; then
15732	_pkg_min_version=0.9.0
15733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15734$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15735	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737$as_echo "yes" >&6; }
15738	else
15739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15740$as_echo "no" >&6; }
15741		PKG_CONFIG=""
15742	fi
15743fi
15744
15745pkg_failed=no
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gflags" >&5
15747$as_echo_n "checking for gflags... " >&6; }
15748
15749if test -n "$gflags_CFLAGS"; then
15750    pkg_cv_gflags_CFLAGS="$gflags_CFLAGS"
15751 elif test -n "$PKG_CONFIG"; then
15752    if test -n "$PKG_CONFIG" && \
15753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgflags\""; } >&5
15754  ($PKG_CONFIG --exists --print-errors "libgflags") 2>&5
15755  ac_status=$?
15756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757  test $ac_status = 0; }; then
15758  pkg_cv_gflags_CFLAGS=`$PKG_CONFIG --cflags "libgflags" 2>/dev/null`
15759		      test "x$?" != "x0" && pkg_failed=yes
15760else
15761  pkg_failed=yes
15762fi
15763 else
15764    pkg_failed=untried
15765fi
15766if test -n "$gflags_LIBS"; then
15767    pkg_cv_gflags_LIBS="$gflags_LIBS"
15768 elif test -n "$PKG_CONFIG"; then
15769    if test -n "$PKG_CONFIG" && \
15770    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgflags\""; } >&5
15771  ($PKG_CONFIG --exists --print-errors "libgflags") 2>&5
15772  ac_status=$?
15773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15774  test $ac_status = 0; }; then
15775  pkg_cv_gflags_LIBS=`$PKG_CONFIG --libs "libgflags" 2>/dev/null`
15776		      test "x$?" != "x0" && pkg_failed=yes
15777else
15778  pkg_failed=yes
15779fi
15780 else
15781    pkg_failed=untried
15782fi
15783
15784
15785
15786if test $pkg_failed = yes; then
15787   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788$as_echo "no" >&6; }
15789
15790if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15791        _pkg_short_errors_supported=yes
15792else
15793        _pkg_short_errors_supported=no
15794fi
15795        if test $_pkg_short_errors_supported = yes; then
15796	        gflags_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgflags" 2>&1`
15797        else
15798	        gflags_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgflags" 2>&1`
15799        fi
15800	# Put the nasty error message in config.log where it belongs
15801	echo "$gflags_PKG_ERRORS" >&5
15802
15803	if test "x$with_gflags" != "xcheck"; then
15804      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15806as_fn_error $? "--with-gflags was given, but test for gflags failed
15807See \`config.log' for more details" "$LINENO" 5; }
15808    fi
15809elif test $pkg_failed = untried; then
15810     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811$as_echo "no" >&6; }
15812	if test "x$with_gflags" != "xcheck"; then
15813      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15815as_fn_error $? "--with-gflags was given, but test for gflags failed
15816See \`config.log' for more details" "$LINENO" 5; }
15817    fi
15818else
15819	gflags_CFLAGS=$pkg_cv_gflags_CFLAGS
15820	gflags_LIBS=$pkg_cv_gflags_LIBS
15821        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15822$as_echo "yes" >&6; }
15823
15824$as_echo "#define HAVE_GFLAGS 1" >>confdefs.h
15825
15826fi
15827fi
15828
15829# See if we have __builtin_expect.
15830# TODO: Use AC_CACHE.
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports __builtin_expect" >&5
15832$as_echo_n "checking if the compiler supports __builtin_expect... " >&6; }
15833
15834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835/* end confdefs.h.  */
15836
15837int
15838main ()
15839{
15840
15841    return __builtin_expect(1, 1) ? 1 : 0
15842
15843  ;
15844  return 0;
15845}
15846_ACEOF
15847if ac_fn_cxx_try_compile "$LINENO"; then :
15848
15849    snappy_have_builtin_expect=yes
15850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15851$as_echo "yes" >&6; }
15852
15853else
15854
15855    snappy_have_builtin_expect=no
15856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15857$as_echo "no" >&6; }
15858
15859fi
15860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861if test x$snappy_have_builtin_expect = xyes ; then
15862
15863$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
15864
15865fi
15866
15867# See if we have working count-trailing-zeros intrinsics.
15868# TODO: Use AC_CACHE.
15869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports __builtin_ctzll" >&5
15870$as_echo_n "checking if the compiler supports __builtin_ctzll... " >&6; }
15871
15872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873/* end confdefs.h.  */
15874
15875int
15876main ()
15877{
15878
15879    return (__builtin_ctzll(0x100000000LL) == 32) ? 1 : 0
15880
15881  ;
15882  return 0;
15883}
15884_ACEOF
15885if ac_fn_cxx_try_compile "$LINENO"; then :
15886
15887    snappy_have_builtin_ctz=yes
15888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15889$as_echo "yes" >&6; }
15890
15891else
15892
15893    snappy_have_builtin_ctz=no
15894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895$as_echo "no" >&6; }
15896
15897fi
15898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899if test x$snappy_have_builtin_ctz = xyes ; then
15900
15901$as_echo "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
15902
15903fi
15904
15905# Other compression libraries; the unit test can use these for comparison
15906# if they are available. If they are not found, just ignore.
15907UNITTEST_LIBS=""
15908
15909
15910
15911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
15912$as_echo_n "checking for zlibVersion in -lz... " >&6; }
15913if ${ac_cv_lib_z_zlibVersion+:} false; then :
15914  $as_echo_n "(cached) " >&6
15915else
15916  ac_check_lib_save_LIBS=$LIBS
15917LIBS="-lz  $LIBS"
15918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919/* end confdefs.h.  */
15920
15921/* Override any GCC internal prototype to avoid an error.
15922   Use char because int might match the return type of a GCC
15923   builtin and then its argument prototype would still apply.  */
15924#ifdef __cplusplus
15925extern "C"
15926#endif
15927char zlibVersion ();
15928int
15929main ()
15930{
15931return zlibVersion ();
15932  ;
15933  return 0;
15934}
15935_ACEOF
15936if ac_fn_cxx_try_link "$LINENO"; then :
15937  ac_cv_lib_z_zlibVersion=yes
15938else
15939  ac_cv_lib_z_zlibVersion=no
15940fi
15941rm -f core conftest.err conftest.$ac_objext \
15942    conftest$ac_exeext conftest.$ac_ext
15943LIBS=$ac_check_lib_save_LIBS
15944fi
15945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
15946$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
15947if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
15948
15949      cat >>confdefs.h <<_ACEOF
15950#define HAVE_LIBZ 1
15951_ACEOF
15952
15953      UNITTEST_LIBS="-lz $UNITTEST_LIBS"
15954
15955else
15956  true
15957
15958fi
15959
15960
15961
15962
15963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
15964$as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
15965if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false; then :
15966  $as_echo_n "(cached) " >&6
15967else
15968  ac_check_lib_save_LIBS=$LIBS
15969LIBS="-llzo2  $LIBS"
15970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971/* end confdefs.h.  */
15972
15973/* Override any GCC internal prototype to avoid an error.
15974   Use char because int might match the return type of a GCC
15975   builtin and then its argument prototype would still apply.  */
15976#ifdef __cplusplus
15977extern "C"
15978#endif
15979char lzo1x_1_15_compress ();
15980int
15981main ()
15982{
15983return lzo1x_1_15_compress ();
15984  ;
15985  return 0;
15986}
15987_ACEOF
15988if ac_fn_cxx_try_link "$LINENO"; then :
15989  ac_cv_lib_lzo2_lzo1x_1_15_compress=yes
15990else
15991  ac_cv_lib_lzo2_lzo1x_1_15_compress=no
15992fi
15993rm -f core conftest.err conftest.$ac_objext \
15994    conftest$ac_exeext conftest.$ac_ext
15995LIBS=$ac_check_lib_save_LIBS
15996fi
15997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
15998$as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
15999if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes; then :
16000
16001      cat >>confdefs.h <<_ACEOF
16002#define HAVE_LIBLZO2 1
16003_ACEOF
16004
16005      UNITTEST_LIBS="-llzo2 $UNITTEST_LIBS"
16006
16007else
16008  true
16009
16010fi
16011
16012
16013
16014
16015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzf_compress in -llzf" >&5
16016$as_echo_n "checking for lzf_compress in -llzf... " >&6; }
16017if ${ac_cv_lib_lzf_lzf_compress+:} false; then :
16018  $as_echo_n "(cached) " >&6
16019else
16020  ac_check_lib_save_LIBS=$LIBS
16021LIBS="-llzf  $LIBS"
16022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023/* end confdefs.h.  */
16024
16025/* Override any GCC internal prototype to avoid an error.
16026   Use char because int might match the return type of a GCC
16027   builtin and then its argument prototype would still apply.  */
16028#ifdef __cplusplus
16029extern "C"
16030#endif
16031char lzf_compress ();
16032int
16033main ()
16034{
16035return lzf_compress ();
16036  ;
16037  return 0;
16038}
16039_ACEOF
16040if ac_fn_cxx_try_link "$LINENO"; then :
16041  ac_cv_lib_lzf_lzf_compress=yes
16042else
16043  ac_cv_lib_lzf_lzf_compress=no
16044fi
16045rm -f core conftest.err conftest.$ac_objext \
16046    conftest$ac_exeext conftest.$ac_ext
16047LIBS=$ac_check_lib_save_LIBS
16048fi
16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzf_lzf_compress" >&5
16050$as_echo "$ac_cv_lib_lzf_lzf_compress" >&6; }
16051if test "x$ac_cv_lib_lzf_lzf_compress" = xyes; then :
16052
16053      cat >>confdefs.h <<_ACEOF
16054#define HAVE_LIBLZF 1
16055_ACEOF
16056
16057      UNITTEST_LIBS="-llzf $UNITTEST_LIBS"
16058
16059else
16060  true
16061
16062fi
16063
16064
16065
16066
16067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fastlz_compress in -lfastlz" >&5
16068$as_echo_n "checking for fastlz_compress in -lfastlz... " >&6; }
16069if ${ac_cv_lib_fastlz_fastlz_compress+:} false; then :
16070  $as_echo_n "(cached) " >&6
16071else
16072  ac_check_lib_save_LIBS=$LIBS
16073LIBS="-lfastlz  $LIBS"
16074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075/* end confdefs.h.  */
16076
16077/* Override any GCC internal prototype to avoid an error.
16078   Use char because int might match the return type of a GCC
16079   builtin and then its argument prototype would still apply.  */
16080#ifdef __cplusplus
16081extern "C"
16082#endif
16083char fastlz_compress ();
16084int
16085main ()
16086{
16087return fastlz_compress ();
16088  ;
16089  return 0;
16090}
16091_ACEOF
16092if ac_fn_cxx_try_link "$LINENO"; then :
16093  ac_cv_lib_fastlz_fastlz_compress=yes
16094else
16095  ac_cv_lib_fastlz_fastlz_compress=no
16096fi
16097rm -f core conftest.err conftest.$ac_objext \
16098    conftest$ac_exeext conftest.$ac_ext
16099LIBS=$ac_check_lib_save_LIBS
16100fi
16101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fastlz_fastlz_compress" >&5
16102$as_echo "$ac_cv_lib_fastlz_fastlz_compress" >&6; }
16103if test "x$ac_cv_lib_fastlz_fastlz_compress" = xyes; then :
16104
16105      cat >>confdefs.h <<_ACEOF
16106#define HAVE_LIBFASTLZ 1
16107_ACEOF
16108
16109      UNITTEST_LIBS="-lfastlz $UNITTEST_LIBS"
16110
16111else
16112  true
16113
16114fi
16115
16116
16117
16118
16119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qlz_compress in -lquicklz" >&5
16120$as_echo_n "checking for qlz_compress in -lquicklz... " >&6; }
16121if ${ac_cv_lib_quicklz_qlz_compress+:} false; then :
16122  $as_echo_n "(cached) " >&6
16123else
16124  ac_check_lib_save_LIBS=$LIBS
16125LIBS="-lquicklz  $LIBS"
16126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127/* end confdefs.h.  */
16128
16129/* Override any GCC internal prototype to avoid an error.
16130   Use char because int might match the return type of a GCC
16131   builtin and then its argument prototype would still apply.  */
16132#ifdef __cplusplus
16133extern "C"
16134#endif
16135char qlz_compress ();
16136int
16137main ()
16138{
16139return qlz_compress ();
16140  ;
16141  return 0;
16142}
16143_ACEOF
16144if ac_fn_cxx_try_link "$LINENO"; then :
16145  ac_cv_lib_quicklz_qlz_compress=yes
16146else
16147  ac_cv_lib_quicklz_qlz_compress=no
16148fi
16149rm -f core conftest.err conftest.$ac_objext \
16150    conftest$ac_exeext conftest.$ac_ext
16151LIBS=$ac_check_lib_save_LIBS
16152fi
16153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicklz_qlz_compress" >&5
16154$as_echo "$ac_cv_lib_quicklz_qlz_compress" >&6; }
16155if test "x$ac_cv_lib_quicklz_qlz_compress" = xyes; then :
16156
16157      cat >>confdefs.h <<_ACEOF
16158#define HAVE_LIBQUICKLZ 1
16159_ACEOF
16160
16161      UNITTEST_LIBS="-lquicklz $UNITTEST_LIBS"
16162
16163else
16164  true
16165
16166fi
16167
16168
16169
16170
16171# These are used by snappy-stubs-public.h.in.
16172if test "$ac_cv_header_stdint_h" = "yes"; then
16173    ac_cv_have_stdint_h=1
16174
16175else
16176    ac_cv_have_stdint_h=0
16177
16178fi
16179if test "$ac_cv_header_stddef_h" = "yes"; then
16180    ac_cv_have_stddef_h=1
16181
16182else
16183    ac_cv_have_stddef_h=0
16184
16185fi
16186if test "$ac_cv_header_sys_uio_h" = "yes"; then
16187    ac_cv_have_sys_uio_h=1
16188
16189else
16190    ac_cv_have_sys_uio_h=0
16191
16192fi
16193
16194# Export the version to snappy-stubs-public.h.
16195SNAPPY_MAJOR="1"
16196SNAPPY_MINOR="1"
16197SNAPPY_PATCHLEVEL="2"
16198
16199
16200
16201
16202SNAPPY_LTVERSION=3:1:2
16203
16204
16205ac_config_headers="$ac_config_headers config.h"
16206
16207ac_config_files="$ac_config_files Makefile snappy-stubs-public.h"
16208
16209cat >confcache <<\_ACEOF
16210# This file is a shell script that caches the results of configure
16211# tests run on this system so they can be shared between configure
16212# scripts and configure runs, see configure's option --config-cache.
16213# It is not useful on other systems.  If it contains results you don't
16214# want to keep, you may remove or edit it.
16215#
16216# config.status only pays attention to the cache file if you give it
16217# the --recheck option to rerun configure.
16218#
16219# `ac_cv_env_foo' variables (set or unset) will be overridden when
16220# loading this file, other *unset* `ac_cv_foo' will be assigned the
16221# following values.
16222
16223_ACEOF
16224
16225# The following way of writing the cache mishandles newlines in values,
16226# but we know of no workaround that is simple, portable, and efficient.
16227# So, we kill variables containing newlines.
16228# Ultrix sh set writes to stderr and can't be redirected directly,
16229# and sets the high bit in the cache file unless we assign to the vars.
16230(
16231  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16232    eval ac_val=\$$ac_var
16233    case $ac_val in #(
16234    *${as_nl}*)
16235      case $ac_var in #(
16236      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16238      esac
16239      case $ac_var in #(
16240      _ | IFS | as_nl) ;; #(
16241      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16242      *) { eval $ac_var=; unset $ac_var;} ;;
16243      esac ;;
16244    esac
16245  done
16246
16247  (set) 2>&1 |
16248    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16249    *${as_nl}ac_space=\ *)
16250      # `set' does not quote correctly, so add quotes: double-quote
16251      # substitution turns \\\\ into \\, and sed turns \\ into \.
16252      sed -n \
16253	"s/'/'\\\\''/g;
16254	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16255      ;; #(
16256    *)
16257      # `set' quotes correctly as required by POSIX, so do not add quotes.
16258      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16259      ;;
16260    esac |
16261    sort
16262) |
16263  sed '
16264     /^ac_cv_env_/b end
16265     t clear
16266     :clear
16267     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16268     t end
16269     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16270     :end' >>confcache
16271if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16272  if test -w "$cache_file"; then
16273    if test "x$cache_file" != "x/dev/null"; then
16274      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16275$as_echo "$as_me: updating cache $cache_file" >&6;}
16276      if test ! -f "$cache_file" || test -h "$cache_file"; then
16277	cat confcache >"$cache_file"
16278      else
16279        case $cache_file in #(
16280        */* | ?:*)
16281	  mv -f confcache "$cache_file"$$ &&
16282	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16283        *)
16284	  mv -f confcache "$cache_file" ;;
16285	esac
16286      fi
16287    fi
16288  else
16289    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16290$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16291  fi
16292fi
16293rm -f confcache
16294
16295test "x$prefix" = xNONE && prefix=$ac_default_prefix
16296# Let make expand exec_prefix.
16297test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16298
16299DEFS=-DHAVE_CONFIG_H
16300
16301ac_libobjs=
16302ac_ltlibobjs=
16303U=
16304for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16305  # 1. Remove the extension, and $U if already installed.
16306  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16307  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16308  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16309  #    will be set to the directory where LIBOBJS objects are built.
16310  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16311  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16312done
16313LIBOBJS=$ac_libobjs
16314
16315LTLIBOBJS=$ac_ltlibobjs
16316
16317
16318 if test -n "$EXEEXT"; then
16319  am__EXEEXT_TRUE=
16320  am__EXEEXT_FALSE='#'
16321else
16322  am__EXEEXT_TRUE='#'
16323  am__EXEEXT_FALSE=
16324fi
16325
16326if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16327  as_fn_error $? "conditional \"AMDEP\" was never defined.
16328Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329fi
16330if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16331  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16332Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333fi
16334if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16335  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16336Usually this means the macro was only invoked conditionally." "$LINENO" 5
16337fi
16338
16339if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then
16340  as_fn_error $? "conditional \"HAVE_GTEST\" was never defined.
16341Usually this means the macro was only invoked conditionally." "$LINENO" 5
16342fi
16343
16344: "${CONFIG_STATUS=./config.status}"
16345ac_write_fail=0
16346ac_clean_files_save=$ac_clean_files
16347ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16349$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16350as_write_fail=0
16351cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16352#! $SHELL
16353# Generated by $as_me.
16354# Run this file to recreate the current configuration.
16355# Compiler output produced by configure, useful for debugging
16356# configure, is in config.log if it exists.
16357
16358debug=false
16359ac_cs_recheck=false
16360ac_cs_silent=false
16361
16362SHELL=\${CONFIG_SHELL-$SHELL}
16363export SHELL
16364_ASEOF
16365cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16366## -------------------- ##
16367## M4sh Initialization. ##
16368## -------------------- ##
16369
16370# Be more Bourne compatible
16371DUALCASE=1; export DUALCASE # for MKS sh
16372if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16373  emulate sh
16374  NULLCMD=:
16375  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16376  # is contrary to our usage.  Disable this feature.
16377  alias -g '${1+"$@"}'='"$@"'
16378  setopt NO_GLOB_SUBST
16379else
16380  case `(set -o) 2>/dev/null` in #(
16381  *posix*) :
16382    set -o posix ;; #(
16383  *) :
16384     ;;
16385esac
16386fi
16387
16388
16389as_nl='
16390'
16391export as_nl
16392# Printing a long string crashes Solaris 7 /usr/bin/printf.
16393as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16394as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16395as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16396# Prefer a ksh shell builtin over an external printf program on Solaris,
16397# but without wasting forks for bash or zsh.
16398if test -z "$BASH_VERSION$ZSH_VERSION" \
16399    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16400  as_echo='print -r --'
16401  as_echo_n='print -rn --'
16402elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16403  as_echo='printf %s\n'
16404  as_echo_n='printf %s'
16405else
16406  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16407    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16408    as_echo_n='/usr/ucb/echo -n'
16409  else
16410    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16411    as_echo_n_body='eval
16412      arg=$1;
16413      case $arg in #(
16414      *"$as_nl"*)
16415	expr "X$arg" : "X\\(.*\\)$as_nl";
16416	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16417      esac;
16418      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16419    '
16420    export as_echo_n_body
16421    as_echo_n='sh -c $as_echo_n_body as_echo'
16422  fi
16423  export as_echo_body
16424  as_echo='sh -c $as_echo_body as_echo'
16425fi
16426
16427# The user is always right.
16428if test "${PATH_SEPARATOR+set}" != set; then
16429  PATH_SEPARATOR=:
16430  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16431    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16432      PATH_SEPARATOR=';'
16433  }
16434fi
16435
16436
16437# IFS
16438# We need space, tab and new line, in precisely that order.  Quoting is
16439# there to prevent editors from complaining about space-tab.
16440# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16441# splitting by setting IFS to empty value.)
16442IFS=" ""	$as_nl"
16443
16444# Find who we are.  Look in the path if we contain no directory separator.
16445as_myself=
16446case $0 in #((
16447  *[\\/]* ) as_myself=$0 ;;
16448  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16449for as_dir in $PATH
16450do
16451  IFS=$as_save_IFS
16452  test -z "$as_dir" && as_dir=.
16453    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16454  done
16455IFS=$as_save_IFS
16456
16457     ;;
16458esac
16459# We did not find ourselves, most probably we were run as `sh COMMAND'
16460# in which case we are not to be found in the path.
16461if test "x$as_myself" = x; then
16462  as_myself=$0
16463fi
16464if test ! -f "$as_myself"; then
16465  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16466  exit 1
16467fi
16468
16469# Unset variables that we do not need and which cause bugs (e.g. in
16470# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16471# suppresses any "Segmentation fault" message there.  '((' could
16472# trigger a bug in pdksh 5.2.14.
16473for as_var in BASH_ENV ENV MAIL MAILPATH
16474do eval test x\${$as_var+set} = xset \
16475  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16476done
16477PS1='$ '
16478PS2='> '
16479PS4='+ '
16480
16481# NLS nuisances.
16482LC_ALL=C
16483export LC_ALL
16484LANGUAGE=C
16485export LANGUAGE
16486
16487# CDPATH.
16488(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16489
16490
16491# as_fn_error STATUS ERROR [LINENO LOG_FD]
16492# ----------------------------------------
16493# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16494# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16495# script with STATUS, using 1 if that was 0.
16496as_fn_error ()
16497{
16498  as_status=$1; test $as_status -eq 0 && as_status=1
16499  if test "$4"; then
16500    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16501    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16502  fi
16503  $as_echo "$as_me: error: $2" >&2
16504  as_fn_exit $as_status
16505} # as_fn_error
16506
16507
16508# as_fn_set_status STATUS
16509# -----------------------
16510# Set $? to STATUS, without forking.
16511as_fn_set_status ()
16512{
16513  return $1
16514} # as_fn_set_status
16515
16516# as_fn_exit STATUS
16517# -----------------
16518# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16519as_fn_exit ()
16520{
16521  set +e
16522  as_fn_set_status $1
16523  exit $1
16524} # as_fn_exit
16525
16526# as_fn_unset VAR
16527# ---------------
16528# Portably unset VAR.
16529as_fn_unset ()
16530{
16531  { eval $1=; unset $1;}
16532}
16533as_unset=as_fn_unset
16534# as_fn_append VAR VALUE
16535# ----------------------
16536# Append the text in VALUE to the end of the definition contained in VAR. Take
16537# advantage of any shell optimizations that allow amortized linear growth over
16538# repeated appends, instead of the typical quadratic growth present in naive
16539# implementations.
16540if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16541  eval 'as_fn_append ()
16542  {
16543    eval $1+=\$2
16544  }'
16545else
16546  as_fn_append ()
16547  {
16548    eval $1=\$$1\$2
16549  }
16550fi # as_fn_append
16551
16552# as_fn_arith ARG...
16553# ------------------
16554# Perform arithmetic evaluation on the ARGs, and store the result in the
16555# global $as_val. Take advantage of shells that can avoid forks. The arguments
16556# must be portable across $(()) and expr.
16557if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16558  eval 'as_fn_arith ()
16559  {
16560    as_val=$(( $* ))
16561  }'
16562else
16563  as_fn_arith ()
16564  {
16565    as_val=`expr "$@" || test $? -eq 1`
16566  }
16567fi # as_fn_arith
16568
16569
16570if expr a : '\(a\)' >/dev/null 2>&1 &&
16571   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16572  as_expr=expr
16573else
16574  as_expr=false
16575fi
16576
16577if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16578  as_basename=basename
16579else
16580  as_basename=false
16581fi
16582
16583if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16584  as_dirname=dirname
16585else
16586  as_dirname=false
16587fi
16588
16589as_me=`$as_basename -- "$0" ||
16590$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16591	 X"$0" : 'X\(//\)$' \| \
16592	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16593$as_echo X/"$0" |
16594    sed '/^.*\/\([^/][^/]*\)\/*$/{
16595	    s//\1/
16596	    q
16597	  }
16598	  /^X\/\(\/\/\)$/{
16599	    s//\1/
16600	    q
16601	  }
16602	  /^X\/\(\/\).*/{
16603	    s//\1/
16604	    q
16605	  }
16606	  s/.*/./; q'`
16607
16608# Avoid depending upon Character Ranges.
16609as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16610as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16611as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16612as_cr_digits='0123456789'
16613as_cr_alnum=$as_cr_Letters$as_cr_digits
16614
16615ECHO_C= ECHO_N= ECHO_T=
16616case `echo -n x` in #(((((
16617-n*)
16618  case `echo 'xy\c'` in
16619  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16620  xy)  ECHO_C='\c';;
16621  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16622       ECHO_T='	';;
16623  esac;;
16624*)
16625  ECHO_N='-n';;
16626esac
16627
16628rm -f conf$$ conf$$.exe conf$$.file
16629if test -d conf$$.dir; then
16630  rm -f conf$$.dir/conf$$.file
16631else
16632  rm -f conf$$.dir
16633  mkdir conf$$.dir 2>/dev/null
16634fi
16635if (echo >conf$$.file) 2>/dev/null; then
16636  if ln -s conf$$.file conf$$ 2>/dev/null; then
16637    as_ln_s='ln -s'
16638    # ... but there are two gotchas:
16639    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16640    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16641    # In both cases, we have to default to `cp -p'.
16642    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16643      as_ln_s='cp -p'
16644  elif ln conf$$.file conf$$ 2>/dev/null; then
16645    as_ln_s=ln
16646  else
16647    as_ln_s='cp -p'
16648  fi
16649else
16650  as_ln_s='cp -p'
16651fi
16652rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16653rmdir conf$$.dir 2>/dev/null
16654
16655
16656# as_fn_mkdir_p
16657# -------------
16658# Create "$as_dir" as a directory, including parents if necessary.
16659as_fn_mkdir_p ()
16660{
16661
16662  case $as_dir in #(
16663  -*) as_dir=./$as_dir;;
16664  esac
16665  test -d "$as_dir" || eval $as_mkdir_p || {
16666    as_dirs=
16667    while :; do
16668      case $as_dir in #(
16669      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16670      *) as_qdir=$as_dir;;
16671      esac
16672      as_dirs="'$as_qdir' $as_dirs"
16673      as_dir=`$as_dirname -- "$as_dir" ||
16674$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16675	 X"$as_dir" : 'X\(//\)[^/]' \| \
16676	 X"$as_dir" : 'X\(//\)$' \| \
16677	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16678$as_echo X"$as_dir" |
16679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16680	    s//\1/
16681	    q
16682	  }
16683	  /^X\(\/\/\)[^/].*/{
16684	    s//\1/
16685	    q
16686	  }
16687	  /^X\(\/\/\)$/{
16688	    s//\1/
16689	    q
16690	  }
16691	  /^X\(\/\).*/{
16692	    s//\1/
16693	    q
16694	  }
16695	  s/.*/./; q'`
16696      test -d "$as_dir" && break
16697    done
16698    test -z "$as_dirs" || eval "mkdir $as_dirs"
16699  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16700
16701
16702} # as_fn_mkdir_p
16703if mkdir -p . 2>/dev/null; then
16704  as_mkdir_p='mkdir -p "$as_dir"'
16705else
16706  test -d ./-p && rmdir ./-p
16707  as_mkdir_p=false
16708fi
16709
16710if test -x / >/dev/null 2>&1; then
16711  as_test_x='test -x'
16712else
16713  if ls -dL / >/dev/null 2>&1; then
16714    as_ls_L_option=L
16715  else
16716    as_ls_L_option=
16717  fi
16718  as_test_x='
16719    eval sh -c '\''
16720      if test -d "$1"; then
16721	test -d "$1/.";
16722      else
16723	case $1 in #(
16724	-*)set "./$1";;
16725	esac;
16726	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16727	???[sx]*):;;*)false;;esac;fi
16728    '\'' sh
16729  '
16730fi
16731as_executable_p=$as_test_x
16732
16733# Sed expression to map a string onto a valid CPP name.
16734as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16735
16736# Sed expression to map a string onto a valid variable name.
16737as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16738
16739
16740exec 6>&1
16741## ----------------------------------- ##
16742## Main body of $CONFIG_STATUS script. ##
16743## ----------------------------------- ##
16744_ASEOF
16745test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16746
16747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16748# Save the log message, to keep $0 and so on meaningful, and to
16749# report actual input values of CONFIG_FILES etc. instead of their
16750# values after options handling.
16751ac_log="
16752This file was extended by snappy $as_me 1.1.2, which was
16753generated by GNU Autoconf 2.68.  Invocation command line was
16754
16755  CONFIG_FILES    = $CONFIG_FILES
16756  CONFIG_HEADERS  = $CONFIG_HEADERS
16757  CONFIG_LINKS    = $CONFIG_LINKS
16758  CONFIG_COMMANDS = $CONFIG_COMMANDS
16759  $ $0 $@
16760
16761on `(hostname || uname -n) 2>/dev/null | sed 1q`
16762"
16763
16764_ACEOF
16765
16766case $ac_config_files in *"
16767"*) set x $ac_config_files; shift; ac_config_files=$*;;
16768esac
16769
16770case $ac_config_headers in *"
16771"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16772esac
16773
16774
16775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16776# Files that config.status was made for.
16777config_files="$ac_config_files"
16778config_headers="$ac_config_headers"
16779config_commands="$ac_config_commands"
16780
16781_ACEOF
16782
16783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16784ac_cs_usage="\
16785\`$as_me' instantiates files and other configuration actions
16786from templates according to the current configuration.  Unless the files
16787and actions are specified as TAGs, all are instantiated by default.
16788
16789Usage: $0 [OPTION]... [TAG]...
16790
16791  -h, --help       print this help, then exit
16792  -V, --version    print version number and configuration settings, then exit
16793      --config     print configuration, then exit
16794  -q, --quiet, --silent
16795                   do not print progress messages
16796  -d, --debug      don't remove temporary files
16797      --recheck    update $as_me by reconfiguring in the same conditions
16798      --file=FILE[:TEMPLATE]
16799                   instantiate the configuration file FILE
16800      --header=FILE[:TEMPLATE]
16801                   instantiate the configuration header FILE
16802
16803Configuration files:
16804$config_files
16805
16806Configuration headers:
16807$config_headers
16808
16809Configuration commands:
16810$config_commands
16811
16812Report bugs to the package provider."
16813
16814_ACEOF
16815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16816ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16817ac_cs_version="\\
16818snappy config.status 1.1.2
16819configured by $0, generated by GNU Autoconf 2.68,
16820  with options \\"\$ac_cs_config\\"
16821
16822Copyright (C) 2010 Free Software Foundation, Inc.
16823This config.status script is free software; the Free Software Foundation
16824gives unlimited permission to copy, distribute and modify it."
16825
16826ac_pwd='$ac_pwd'
16827srcdir='$srcdir'
16828INSTALL='$INSTALL'
16829MKDIR_P='$MKDIR_P'
16830AWK='$AWK'
16831test -n "\$AWK" || AWK=awk
16832_ACEOF
16833
16834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16835# The default lists apply if the user does not specify any file.
16836ac_need_defaults=:
16837while test $# != 0
16838do
16839  case $1 in
16840  --*=?*)
16841    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16842    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16843    ac_shift=:
16844    ;;
16845  --*=)
16846    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16847    ac_optarg=
16848    ac_shift=:
16849    ;;
16850  *)
16851    ac_option=$1
16852    ac_optarg=$2
16853    ac_shift=shift
16854    ;;
16855  esac
16856
16857  case $ac_option in
16858  # Handling of the options.
16859  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16860    ac_cs_recheck=: ;;
16861  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16862    $as_echo "$ac_cs_version"; exit ;;
16863  --config | --confi | --conf | --con | --co | --c )
16864    $as_echo "$ac_cs_config"; exit ;;
16865  --debug | --debu | --deb | --de | --d | -d )
16866    debug=: ;;
16867  --file | --fil | --fi | --f )
16868    $ac_shift
16869    case $ac_optarg in
16870    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16871    '') as_fn_error $? "missing file argument" ;;
16872    esac
16873    as_fn_append CONFIG_FILES " '$ac_optarg'"
16874    ac_need_defaults=false;;
16875  --header | --heade | --head | --hea )
16876    $ac_shift
16877    case $ac_optarg in
16878    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16879    esac
16880    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16881    ac_need_defaults=false;;
16882  --he | --h)
16883    # Conflict between --help and --header
16884    as_fn_error $? "ambiguous option: \`$1'
16885Try \`$0 --help' for more information.";;
16886  --help | --hel | -h )
16887    $as_echo "$ac_cs_usage"; exit ;;
16888  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16889  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16890    ac_cs_silent=: ;;
16891
16892  # This is an error.
16893  -*) as_fn_error $? "unrecognized option: \`$1'
16894Try \`$0 --help' for more information." ;;
16895
16896  *) as_fn_append ac_config_targets " $1"
16897     ac_need_defaults=false ;;
16898
16899  esac
16900  shift
16901done
16902
16903ac_configure_extra_args=
16904
16905if $ac_cs_silent; then
16906  exec 6>/dev/null
16907  ac_configure_extra_args="$ac_configure_extra_args --silent"
16908fi
16909
16910_ACEOF
16911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912if \$ac_cs_recheck; then
16913  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16914  shift
16915  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16916  CONFIG_SHELL='$SHELL'
16917  export CONFIG_SHELL
16918  exec "\$@"
16919fi
16920
16921_ACEOF
16922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16923exec 5>>config.log
16924{
16925  echo
16926  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16927## Running $as_me. ##
16928_ASBOX
16929  $as_echo "$ac_log"
16930} >&5
16931
16932_ACEOF
16933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16934#
16935# INIT-COMMANDS
16936#
16937AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16938
16939
16940# The HP-UX ksh and POSIX shell print the target directory to stdout
16941# if CDPATH is set.
16942(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16943
16944sed_quote_subst='$sed_quote_subst'
16945double_quote_subst='$double_quote_subst'
16946delay_variable_subst='$delay_variable_subst'
16947macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16948macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16949enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16950enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16951pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16952enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16953SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16954ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16955PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16956host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16957host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16958host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16959build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16960build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16961build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16962SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16963Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16964GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16965EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16966FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16967LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16968NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16969LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16970max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16971ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16972exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16973lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16974lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16975lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16976lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16977lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16978reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16979reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16980OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16981deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16982file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16983file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16984want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16985DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16986sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16987AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16988AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16989archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16990STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16991RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16992old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16993old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16994old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16995lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16996CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16997CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16998compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16999GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17000lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17001lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17002lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17003lt_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"`'
17004nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17005lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17006objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17007MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17008lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17009lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17010lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17011lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17012lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17013need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17014MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17015DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17016NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17017LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17018OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17019OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17020libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17021shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17022extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17023archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17024enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17025export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17026whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17027compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17028old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17029old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17030archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17031archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17032module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17033module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17034with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17035allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17036no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17037hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17038hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17039hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17040hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17041hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17042hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17043hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17044inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17045link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17046always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17047export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17048exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17049include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17050prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17051postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17052file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17053variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17054need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17055need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17056version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17057runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17058shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17059shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17060libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17061library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17062soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17063install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17064postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17065postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17066finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17067finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17068hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17069sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17070sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17071hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17072enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17073enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17074enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17075old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17076striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17077compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17078predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17079postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17080predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17081postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17082compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17083LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17084reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17085reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17086old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17087compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17088GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17089lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17090lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17091lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17092lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17093lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17094archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17095enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17096export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17097whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17098compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17099old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17100old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17101archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17102archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17103module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17104module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17105with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17106allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17107no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17108hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17109hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17110hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17111hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17112hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17113hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17114hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17115inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17116link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17117always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17118export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17119exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17120include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17121prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17122postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17123file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17124hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17125compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17126predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17127postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17128predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17129postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17130compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17131
17132LTCC='$LTCC'
17133LTCFLAGS='$LTCFLAGS'
17134compiler='$compiler_DEFAULT'
17135
17136# A function that is used when there is no print builtin or printf.
17137func_fallback_echo ()
17138{
17139  eval 'cat <<_LTECHO_EOF
17140\$1
17141_LTECHO_EOF'
17142}
17143
17144# Quote evaled strings.
17145for var in SHELL \
17146ECHO \
17147PATH_SEPARATOR \
17148SED \
17149GREP \
17150EGREP \
17151FGREP \
17152LD \
17153NM \
17154LN_S \
17155lt_SP2NL \
17156lt_NL2SP \
17157reload_flag \
17158OBJDUMP \
17159deplibs_check_method \
17160file_magic_cmd \
17161file_magic_glob \
17162want_nocaseglob \
17163DLLTOOL \
17164sharedlib_from_linklib_cmd \
17165AR \
17166AR_FLAGS \
17167archiver_list_spec \
17168STRIP \
17169RANLIB \
17170CC \
17171CFLAGS \
17172compiler \
17173lt_cv_sys_global_symbol_pipe \
17174lt_cv_sys_global_symbol_to_cdecl \
17175lt_cv_sys_global_symbol_to_c_name_address \
17176lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17177nm_file_list_spec \
17178lt_prog_compiler_no_builtin_flag \
17179lt_prog_compiler_pic \
17180lt_prog_compiler_wl \
17181lt_prog_compiler_static \
17182lt_cv_prog_compiler_c_o \
17183need_locks \
17184MANIFEST_TOOL \
17185DSYMUTIL \
17186NMEDIT \
17187LIPO \
17188OTOOL \
17189OTOOL64 \
17190shrext_cmds \
17191export_dynamic_flag_spec \
17192whole_archive_flag_spec \
17193compiler_needs_object \
17194with_gnu_ld \
17195allow_undefined_flag \
17196no_undefined_flag \
17197hardcode_libdir_flag_spec \
17198hardcode_libdir_separator \
17199exclude_expsyms \
17200include_expsyms \
17201file_list_spec \
17202variables_saved_for_relink \
17203libname_spec \
17204library_names_spec \
17205soname_spec \
17206install_override_mode \
17207finish_eval \
17208old_striplib \
17209striplib \
17210compiler_lib_search_dirs \
17211predep_objects \
17212postdep_objects \
17213predeps \
17214postdeps \
17215compiler_lib_search_path \
17216LD_CXX \
17217reload_flag_CXX \
17218compiler_CXX \
17219lt_prog_compiler_no_builtin_flag_CXX \
17220lt_prog_compiler_pic_CXX \
17221lt_prog_compiler_wl_CXX \
17222lt_prog_compiler_static_CXX \
17223lt_cv_prog_compiler_c_o_CXX \
17224export_dynamic_flag_spec_CXX \
17225whole_archive_flag_spec_CXX \
17226compiler_needs_object_CXX \
17227with_gnu_ld_CXX \
17228allow_undefined_flag_CXX \
17229no_undefined_flag_CXX \
17230hardcode_libdir_flag_spec_CXX \
17231hardcode_libdir_separator_CXX \
17232exclude_expsyms_CXX \
17233include_expsyms_CXX \
17234file_list_spec_CXX \
17235compiler_lib_search_dirs_CXX \
17236predep_objects_CXX \
17237postdep_objects_CXX \
17238predeps_CXX \
17239postdeps_CXX \
17240compiler_lib_search_path_CXX; do
17241    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17242    *[\\\\\\\`\\"\\\$]*)
17243      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17244      ;;
17245    *)
17246      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17247      ;;
17248    esac
17249done
17250
17251# Double-quote double-evaled strings.
17252for var in reload_cmds \
17253old_postinstall_cmds \
17254old_postuninstall_cmds \
17255old_archive_cmds \
17256extract_expsyms_cmds \
17257old_archive_from_new_cmds \
17258old_archive_from_expsyms_cmds \
17259archive_cmds \
17260archive_expsym_cmds \
17261module_cmds \
17262module_expsym_cmds \
17263export_symbols_cmds \
17264prelink_cmds \
17265postlink_cmds \
17266postinstall_cmds \
17267postuninstall_cmds \
17268finish_cmds \
17269sys_lib_search_path_spec \
17270sys_lib_dlsearch_path_spec \
17271reload_cmds_CXX \
17272old_archive_cmds_CXX \
17273old_archive_from_new_cmds_CXX \
17274old_archive_from_expsyms_cmds_CXX \
17275archive_cmds_CXX \
17276archive_expsym_cmds_CXX \
17277module_cmds_CXX \
17278module_expsym_cmds_CXX \
17279export_symbols_cmds_CXX \
17280prelink_cmds_CXX \
17281postlink_cmds_CXX; do
17282    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17283    *[\\\\\\\`\\"\\\$]*)
17284      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17285      ;;
17286    *)
17287      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17288      ;;
17289    esac
17290done
17291
17292ac_aux_dir='$ac_aux_dir'
17293xsi_shell='$xsi_shell'
17294lt_shell_append='$lt_shell_append'
17295
17296# See if we are running on zsh, and set the options which allow our
17297# commands through without removal of \ escapes INIT.
17298if test -n "\${ZSH_VERSION+set}" ; then
17299   setopt NO_GLOB_SUBST
17300fi
17301
17302
17303    PACKAGE='$PACKAGE'
17304    VERSION='$VERSION'
17305    TIMESTAMP='$TIMESTAMP'
17306    RM='$RM'
17307    ofile='$ofile'
17308
17309
17310
17311
17312
17313
17314_ACEOF
17315
17316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17317
17318# Handling of arguments.
17319for ac_config_target in $ac_config_targets
17320do
17321  case $ac_config_target in
17322    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17323    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17324    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17325    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17326    "snappy-stubs-public.h") CONFIG_FILES="$CONFIG_FILES snappy-stubs-public.h" ;;
17327
17328  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17329  esac
17330done
17331
17332
17333# If the user did not use the arguments to specify the items to instantiate,
17334# then the envvar interface is used.  Set only those that are not.
17335# We use the long form for the default assignment because of an extremely
17336# bizarre bug on SunOS 4.1.3.
17337if $ac_need_defaults; then
17338  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17339  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17340  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17341fi
17342
17343# Have a temporary directory for convenience.  Make it in the build tree
17344# simply because there is no reason against having it here, and in addition,
17345# creating and moving files from /tmp can sometimes cause problems.
17346# Hook for its removal unless debugging.
17347# Note that there is a small window in which the directory will not be cleaned:
17348# after its creation but before its name has been assigned to `$tmp'.
17349$debug ||
17350{
17351  tmp= ac_tmp=
17352  trap 'exit_status=$?
17353  : "${ac_tmp:=$tmp}"
17354  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17355' 0
17356  trap 'as_fn_exit 1' 1 2 13 15
17357}
17358# Create a (secure) tmp directory for tmp files.
17359
17360{
17361  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17362  test -d "$tmp"
17363}  ||
17364{
17365  tmp=./conf$$-$RANDOM
17366  (umask 077 && mkdir "$tmp")
17367} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17368ac_tmp=$tmp
17369
17370# Set up the scripts for CONFIG_FILES section.
17371# No need to generate them if there are no CONFIG_FILES.
17372# This happens for instance with `./config.status config.h'.
17373if test -n "$CONFIG_FILES"; then
17374
17375
17376ac_cr=`echo X | tr X '\015'`
17377# On cygwin, bash can eat \r inside `` if the user requested igncr.
17378# But we know of no other shell where ac_cr would be empty at this
17379# point, so we can use a bashism as a fallback.
17380if test "x$ac_cr" = x; then
17381  eval ac_cr=\$\'\\r\'
17382fi
17383ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17384if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17385  ac_cs_awk_cr='\\r'
17386else
17387  ac_cs_awk_cr=$ac_cr
17388fi
17389
17390echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17391_ACEOF
17392
17393
17394{
17395  echo "cat >conf$$subs.awk <<_ACEOF" &&
17396  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17397  echo "_ACEOF"
17398} >conf$$subs.sh ||
17399  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17400ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17401ac_delim='%!_!# '
17402for ac_last_try in false false false false false :; do
17403  . ./conf$$subs.sh ||
17404    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17405
17406  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17407  if test $ac_delim_n = $ac_delim_num; then
17408    break
17409  elif $ac_last_try; then
17410    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17411  else
17412    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17413  fi
17414done
17415rm -f conf$$subs.sh
17416
17417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17418cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17419_ACEOF
17420sed -n '
17421h
17422s/^/S["/; s/!.*/"]=/
17423p
17424g
17425s/^[^!]*!//
17426:repl
17427t repl
17428s/'"$ac_delim"'$//
17429t delim
17430:nl
17431h
17432s/\(.\{148\}\)..*/\1/
17433t more1
17434s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17435p
17436n
17437b repl
17438:more1
17439s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17440p
17441g
17442s/.\{148\}//
17443t nl
17444:delim
17445h
17446s/\(.\{148\}\)..*/\1/
17447t more2
17448s/["\\]/\\&/g; s/^/"/; s/$/"/
17449p
17450b
17451:more2
17452s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17453p
17454g
17455s/.\{148\}//
17456t delim
17457' <conf$$subs.awk | sed '
17458/^[^""]/{
17459  N
17460  s/\n//
17461}
17462' >>$CONFIG_STATUS || ac_write_fail=1
17463rm -f conf$$subs.awk
17464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17465_ACAWK
17466cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17467  for (key in S) S_is_set[key] = 1
17468  FS = ""
17469
17470}
17471{
17472  line = $ 0
17473  nfields = split(line, field, "@")
17474  substed = 0
17475  len = length(field[1])
17476  for (i = 2; i < nfields; i++) {
17477    key = field[i]
17478    keylen = length(key)
17479    if (S_is_set[key]) {
17480      value = S[key]
17481      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17482      len += length(value) + length(field[++i])
17483      substed = 1
17484    } else
17485      len += 1 + keylen
17486  }
17487
17488  print line
17489}
17490
17491_ACAWK
17492_ACEOF
17493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17494if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17495  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17496else
17497  cat
17498fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17499  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17500_ACEOF
17501
17502# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17503# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17504# trailing colons and then remove the whole line if VPATH becomes empty
17505# (actually we leave an empty line to preserve line numbers).
17506if test "x$srcdir" = x.; then
17507  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17508h
17509s///
17510s/^/:/
17511s/[	 ]*$/:/
17512s/:\$(srcdir):/:/g
17513s/:\${srcdir}:/:/g
17514s/:@srcdir@:/:/g
17515s/^:*//
17516s/:*$//
17517x
17518s/\(=[	 ]*\).*/\1/
17519G
17520s/\n//
17521s/^[^=]*=[	 ]*$//
17522}'
17523fi
17524
17525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17526fi # test -n "$CONFIG_FILES"
17527
17528# Set up the scripts for CONFIG_HEADERS section.
17529# No need to generate them if there are no CONFIG_HEADERS.
17530# This happens for instance with `./config.status Makefile'.
17531if test -n "$CONFIG_HEADERS"; then
17532cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17533BEGIN {
17534_ACEOF
17535
17536# Transform confdefs.h into an awk script `defines.awk', embedded as
17537# here-document in config.status, that substitutes the proper values into
17538# config.h.in to produce config.h.
17539
17540# Create a delimiter string that does not exist in confdefs.h, to ease
17541# handling of long lines.
17542ac_delim='%!_!# '
17543for ac_last_try in false false :; do
17544  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17545  if test -z "$ac_tt"; then
17546    break
17547  elif $ac_last_try; then
17548    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17549  else
17550    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17551  fi
17552done
17553
17554# For the awk script, D is an array of macro values keyed by name,
17555# likewise P contains macro parameters if any.  Preserve backslash
17556# newline sequences.
17557
17558ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17559sed -n '
17560s/.\{148\}/&'"$ac_delim"'/g
17561t rset
17562:rset
17563s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17564t def
17565d
17566:def
17567s/\\$//
17568t bsnl
17569s/["\\]/\\&/g
17570s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17571D["\1"]=" \3"/p
17572s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17573d
17574:bsnl
17575s/["\\]/\\&/g
17576s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17577D["\1"]=" \3\\\\\\n"\\/p
17578t cont
17579s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17580t cont
17581d
17582:cont
17583n
17584s/.\{148\}/&'"$ac_delim"'/g
17585t clear
17586:clear
17587s/\\$//
17588t bsnlc
17589s/["\\]/\\&/g; s/^/"/; s/$/"/p
17590d
17591:bsnlc
17592s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17593b cont
17594' <confdefs.h | sed '
17595s/'"$ac_delim"'/"\\\
17596"/g' >>$CONFIG_STATUS || ac_write_fail=1
17597
17598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17599  for (key in D) D_is_set[key] = 1
17600  FS = ""
17601}
17602/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17603  line = \$ 0
17604  split(line, arg, " ")
17605  if (arg[1] == "#") {
17606    defundef = arg[2]
17607    mac1 = arg[3]
17608  } else {
17609    defundef = substr(arg[1], 2)
17610    mac1 = arg[2]
17611  }
17612  split(mac1, mac2, "(") #)
17613  macro = mac2[1]
17614  prefix = substr(line, 1, index(line, defundef) - 1)
17615  if (D_is_set[macro]) {
17616    # Preserve the white space surrounding the "#".
17617    print prefix "define", macro P[macro] D[macro]
17618    next
17619  } else {
17620    # Replace #undef with comments.  This is necessary, for example,
17621    # in the case of _POSIX_SOURCE, which is predefined and required
17622    # on some systems where configure will not decide to define it.
17623    if (defundef == "undef") {
17624      print "/*", prefix defundef, macro, "*/"
17625      next
17626    }
17627  }
17628}
17629{ print }
17630_ACAWK
17631_ACEOF
17632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17633  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17634fi # test -n "$CONFIG_HEADERS"
17635
17636
17637eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17638shift
17639for ac_tag
17640do
17641  case $ac_tag in
17642  :[FHLC]) ac_mode=$ac_tag; continue;;
17643  esac
17644  case $ac_mode$ac_tag in
17645  :[FHL]*:*);;
17646  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17647  :[FH]-) ac_tag=-:-;;
17648  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17649  esac
17650  ac_save_IFS=$IFS
17651  IFS=:
17652  set x $ac_tag
17653  IFS=$ac_save_IFS
17654  shift
17655  ac_file=$1
17656  shift
17657
17658  case $ac_mode in
17659  :L) ac_source=$1;;
17660  :[FH])
17661    ac_file_inputs=
17662    for ac_f
17663    do
17664      case $ac_f in
17665      -) ac_f="$ac_tmp/stdin";;
17666      *) # Look for the file first in the build tree, then in the source tree
17667	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17668	 # because $ac_f cannot contain `:'.
17669	 test -f "$ac_f" ||
17670	   case $ac_f in
17671	   [\\/$]*) false;;
17672	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17673	   esac ||
17674	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17675      esac
17676      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17677      as_fn_append ac_file_inputs " '$ac_f'"
17678    done
17679
17680    # Let's still pretend it is `configure' which instantiates (i.e., don't
17681    # use $as_me), people would be surprised to read:
17682    #    /* config.h.  Generated by config.status.  */
17683    configure_input='Generated from '`
17684	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17685	`' by configure.'
17686    if test x"$ac_file" != x-; then
17687      configure_input="$ac_file.  $configure_input"
17688      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17689$as_echo "$as_me: creating $ac_file" >&6;}
17690    fi
17691    # Neutralize special characters interpreted by sed in replacement strings.
17692    case $configure_input in #(
17693    *\&* | *\|* | *\\* )
17694       ac_sed_conf_input=`$as_echo "$configure_input" |
17695       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17696    *) ac_sed_conf_input=$configure_input;;
17697    esac
17698
17699    case $ac_tag in
17700    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17701      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17702    esac
17703    ;;
17704  esac
17705
17706  ac_dir=`$as_dirname -- "$ac_file" ||
17707$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17708	 X"$ac_file" : 'X\(//\)[^/]' \| \
17709	 X"$ac_file" : 'X\(//\)$' \| \
17710	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17711$as_echo X"$ac_file" |
17712    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17713	    s//\1/
17714	    q
17715	  }
17716	  /^X\(\/\/\)[^/].*/{
17717	    s//\1/
17718	    q
17719	  }
17720	  /^X\(\/\/\)$/{
17721	    s//\1/
17722	    q
17723	  }
17724	  /^X\(\/\).*/{
17725	    s//\1/
17726	    q
17727	  }
17728	  s/.*/./; q'`
17729  as_dir="$ac_dir"; as_fn_mkdir_p
17730  ac_builddir=.
17731
17732case "$ac_dir" in
17733.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17734*)
17735  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17736  # A ".." for each directory in $ac_dir_suffix.
17737  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17738  case $ac_top_builddir_sub in
17739  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17740  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17741  esac ;;
17742esac
17743ac_abs_top_builddir=$ac_pwd
17744ac_abs_builddir=$ac_pwd$ac_dir_suffix
17745# for backward compatibility:
17746ac_top_builddir=$ac_top_build_prefix
17747
17748case $srcdir in
17749  .)  # We are building in place.
17750    ac_srcdir=.
17751    ac_top_srcdir=$ac_top_builddir_sub
17752    ac_abs_top_srcdir=$ac_pwd ;;
17753  [\\/]* | ?:[\\/]* )  # Absolute name.
17754    ac_srcdir=$srcdir$ac_dir_suffix;
17755    ac_top_srcdir=$srcdir
17756    ac_abs_top_srcdir=$srcdir ;;
17757  *) # Relative name.
17758    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17759    ac_top_srcdir=$ac_top_build_prefix$srcdir
17760    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17761esac
17762ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17763
17764
17765  case $ac_mode in
17766  :F)
17767  #
17768  # CONFIG_FILE
17769  #
17770
17771  case $INSTALL in
17772  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17773  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17774  esac
17775  ac_MKDIR_P=$MKDIR_P
17776  case $MKDIR_P in
17777  [\\/$]* | ?:[\\/]* ) ;;
17778  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17779  esac
17780_ACEOF
17781
17782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17783# If the template does not know about datarootdir, expand it.
17784# FIXME: This hack should be removed a few years after 2.60.
17785ac_datarootdir_hack=; ac_datarootdir_seen=
17786ac_sed_dataroot='
17787/datarootdir/ {
17788  p
17789  q
17790}
17791/@datadir@/p
17792/@docdir@/p
17793/@infodir@/p
17794/@localedir@/p
17795/@mandir@/p'
17796case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17797*datarootdir*) ac_datarootdir_seen=yes;;
17798*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17800$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17801_ACEOF
17802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17803  ac_datarootdir_hack='
17804  s&@datadir@&$datadir&g
17805  s&@docdir@&$docdir&g
17806  s&@infodir@&$infodir&g
17807  s&@localedir@&$localedir&g
17808  s&@mandir@&$mandir&g
17809  s&\\\${datarootdir}&$datarootdir&g' ;;
17810esac
17811_ACEOF
17812
17813# Neutralize VPATH when `$srcdir' = `.'.
17814# Shell code in configure.ac might set extrasub.
17815# FIXME: do we really want to maintain this feature?
17816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17817ac_sed_extra="$ac_vpsub
17818$extrasub
17819_ACEOF
17820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17821:t
17822/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17823s|@configure_input@|$ac_sed_conf_input|;t t
17824s&@top_builddir@&$ac_top_builddir_sub&;t t
17825s&@top_build_prefix@&$ac_top_build_prefix&;t t
17826s&@srcdir@&$ac_srcdir&;t t
17827s&@abs_srcdir@&$ac_abs_srcdir&;t t
17828s&@top_srcdir@&$ac_top_srcdir&;t t
17829s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17830s&@builddir@&$ac_builddir&;t t
17831s&@abs_builddir@&$ac_abs_builddir&;t t
17832s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17833s&@INSTALL@&$ac_INSTALL&;t t
17834s&@MKDIR_P@&$ac_MKDIR_P&;t t
17835$ac_datarootdir_hack
17836"
17837eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17838  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17839
17840test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17841  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17842  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17843      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17844  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17845which seems to be undefined.  Please make sure it is defined" >&5
17846$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17847which seems to be undefined.  Please make sure it is defined" >&2;}
17848
17849  rm -f "$ac_tmp/stdin"
17850  case $ac_file in
17851  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17852  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17853  esac \
17854  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17855 ;;
17856  :H)
17857  #
17858  # CONFIG_HEADER
17859  #
17860  if test x"$ac_file" != x-; then
17861    {
17862      $as_echo "/* $configure_input  */" \
17863      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17864    } >"$ac_tmp/config.h" \
17865      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17866    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17867      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17868$as_echo "$as_me: $ac_file is unchanged" >&6;}
17869    else
17870      rm -f "$ac_file"
17871      mv "$ac_tmp/config.h" "$ac_file" \
17872	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17873    fi
17874  else
17875    $as_echo "/* $configure_input  */" \
17876      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17877      || as_fn_error $? "could not create -" "$LINENO" 5
17878  fi
17879# Compute "$ac_file"'s index in $config_headers.
17880_am_arg="$ac_file"
17881_am_stamp_count=1
17882for _am_header in $config_headers :; do
17883  case $_am_header in
17884    $_am_arg | $_am_arg:* )
17885      break ;;
17886    * )
17887      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17888  esac
17889done
17890echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17891$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17893	 X"$_am_arg" : 'X\(//\)$' \| \
17894	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17895$as_echo X"$_am_arg" |
17896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17897	    s//\1/
17898	    q
17899	  }
17900	  /^X\(\/\/\)[^/].*/{
17901	    s//\1/
17902	    q
17903	  }
17904	  /^X\(\/\/\)$/{
17905	    s//\1/
17906	    q
17907	  }
17908	  /^X\(\/\).*/{
17909	    s//\1/
17910	    q
17911	  }
17912	  s/.*/./; q'`/stamp-h$_am_stamp_count
17913 ;;
17914
17915  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17916$as_echo "$as_me: executing $ac_file commands" >&6;}
17917 ;;
17918  esac
17919
17920
17921  case $ac_file$ac_mode in
17922    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17923  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17924  # are listed without --file.  Let's play safe and only enable the eval
17925  # if we detect the quoting.
17926  case $CONFIG_FILES in
17927  *\'*) eval set x "$CONFIG_FILES" ;;
17928  *)   set x $CONFIG_FILES ;;
17929  esac
17930  shift
17931  for mf
17932  do
17933    # Strip MF so we end up with the name of the file.
17934    mf=`echo "$mf" | sed -e 's/:.*$//'`
17935    # Check whether this is an Automake generated Makefile or not.
17936    # We used to match only the files named `Makefile.in', but
17937    # some people rename them; so instead we look at the file content.
17938    # Grep'ing the first line is not enough: some people post-process
17939    # each Makefile.in and add a new line on top of each file to say so.
17940    # Grep'ing the whole file is not good either: AIX grep has a line
17941    # limit of 2048, but all sed's we know have understand at least 4000.
17942    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17943      dirpart=`$as_dirname -- "$mf" ||
17944$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17945	 X"$mf" : 'X\(//\)[^/]' \| \
17946	 X"$mf" : 'X\(//\)$' \| \
17947	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17948$as_echo X"$mf" |
17949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17950	    s//\1/
17951	    q
17952	  }
17953	  /^X\(\/\/\)[^/].*/{
17954	    s//\1/
17955	    q
17956	  }
17957	  /^X\(\/\/\)$/{
17958	    s//\1/
17959	    q
17960	  }
17961	  /^X\(\/\).*/{
17962	    s//\1/
17963	    q
17964	  }
17965	  s/.*/./; q'`
17966    else
17967      continue
17968    fi
17969    # Extract the definition of DEPDIR, am__include, and am__quote
17970    # from the Makefile without running `make'.
17971    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17972    test -z "$DEPDIR" && continue
17973    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17974    test -z "am__include" && continue
17975    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17976    # When using ansi2knr, U may be empty or an underscore; expand it
17977    U=`sed -n 's/^U = //p' < "$mf"`
17978    # Find all dependency output files, they are included files with
17979    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17980    # simplest approach to changing $(DEPDIR) to its actual value in the
17981    # expansion.
17982    for file in `sed -n "
17983      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17984	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17985      # Make sure the directory exists.
17986      test -f "$dirpart/$file" && continue
17987      fdir=`$as_dirname -- "$file" ||
17988$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17989	 X"$file" : 'X\(//\)[^/]' \| \
17990	 X"$file" : 'X\(//\)$' \| \
17991	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17992$as_echo X"$file" |
17993    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17994	    s//\1/
17995	    q
17996	  }
17997	  /^X\(\/\/\)[^/].*/{
17998	    s//\1/
17999	    q
18000	  }
18001	  /^X\(\/\/\)$/{
18002	    s//\1/
18003	    q
18004	  }
18005	  /^X\(\/\).*/{
18006	    s//\1/
18007	    q
18008	  }
18009	  s/.*/./; q'`
18010      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18011      # echo "creating $dirpart/$file"
18012      echo '# dummy' > "$dirpart/$file"
18013    done
18014  done
18015}
18016 ;;
18017    "libtool":C)
18018
18019    # See if we are running on zsh, and set the options which allow our
18020    # commands through without removal of \ escapes.
18021    if test -n "${ZSH_VERSION+set}" ; then
18022      setopt NO_GLOB_SUBST
18023    fi
18024
18025    cfgfile="${ofile}T"
18026    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18027    $RM "$cfgfile"
18028
18029    cat <<_LT_EOF >> "$cfgfile"
18030#! $SHELL
18031
18032# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18033# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18034# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18035# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18036#
18037#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18038#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18039#                 Foundation, Inc.
18040#   Written by Gordon Matzigkeit, 1996
18041#
18042#   This file is part of GNU Libtool.
18043#
18044# GNU Libtool is free software; you can redistribute it and/or
18045# modify it under the terms of the GNU General Public License as
18046# published by the Free Software Foundation; either version 2 of
18047# the License, or (at your option) any later version.
18048#
18049# As a special exception to the GNU General Public License,
18050# if you distribute this file as part of a program or library that
18051# is built using GNU Libtool, you may include this file under the
18052# same distribution terms that you use for the rest of that program.
18053#
18054# GNU Libtool is distributed in the hope that it will be useful,
18055# but WITHOUT ANY WARRANTY; without even the implied warranty of
18056# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18057# GNU General Public License for more details.
18058#
18059# You should have received a copy of the GNU General Public License
18060# along with GNU Libtool; see the file COPYING.  If not, a copy
18061# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18062# obtained by writing to the Free Software Foundation, Inc.,
18063# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18064
18065
18066# The names of the tagged configurations supported by this script.
18067available_tags="CXX "
18068
18069# ### BEGIN LIBTOOL CONFIG
18070
18071# Which release of libtool.m4 was used?
18072macro_version=$macro_version
18073macro_revision=$macro_revision
18074
18075# Whether or not to build shared libraries.
18076build_libtool_libs=$enable_shared
18077
18078# Whether or not to build static libraries.
18079build_old_libs=$enable_static
18080
18081# What type of objects to build.
18082pic_mode=$pic_mode
18083
18084# Whether or not to optimize for fast installation.
18085fast_install=$enable_fast_install
18086
18087# Shell to use when invoking shell scripts.
18088SHELL=$lt_SHELL
18089
18090# An echo program that protects backslashes.
18091ECHO=$lt_ECHO
18092
18093# The PATH separator for the build system.
18094PATH_SEPARATOR=$lt_PATH_SEPARATOR
18095
18096# The host system.
18097host_alias=$host_alias
18098host=$host
18099host_os=$host_os
18100
18101# The build system.
18102build_alias=$build_alias
18103build=$build
18104build_os=$build_os
18105
18106# A sed program that does not truncate output.
18107SED=$lt_SED
18108
18109# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18110Xsed="\$SED -e 1s/^X//"
18111
18112# A grep program that handles long lines.
18113GREP=$lt_GREP
18114
18115# An ERE matcher.
18116EGREP=$lt_EGREP
18117
18118# A literal string matcher.
18119FGREP=$lt_FGREP
18120
18121# A BSD- or MS-compatible name lister.
18122NM=$lt_NM
18123
18124# Whether we need soft or hard links.
18125LN_S=$lt_LN_S
18126
18127# What is the maximum length of a command?
18128max_cmd_len=$max_cmd_len
18129
18130# Object file suffix (normally "o").
18131objext=$ac_objext
18132
18133# Executable file suffix (normally "").
18134exeext=$exeext
18135
18136# whether the shell understands "unset".
18137lt_unset=$lt_unset
18138
18139# turn spaces into newlines.
18140SP2NL=$lt_lt_SP2NL
18141
18142# turn newlines into spaces.
18143NL2SP=$lt_lt_NL2SP
18144
18145# convert \$build file names to \$host format.
18146to_host_file_cmd=$lt_cv_to_host_file_cmd
18147
18148# convert \$build files to toolchain format.
18149to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18150
18151# An object symbol dumper.
18152OBJDUMP=$lt_OBJDUMP
18153
18154# Method to check whether dependent libraries are shared objects.
18155deplibs_check_method=$lt_deplibs_check_method
18156
18157# Command to use when deplibs_check_method = "file_magic".
18158file_magic_cmd=$lt_file_magic_cmd
18159
18160# How to find potential files when deplibs_check_method = "file_magic".
18161file_magic_glob=$lt_file_magic_glob
18162
18163# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18164want_nocaseglob=$lt_want_nocaseglob
18165
18166# DLL creation program.
18167DLLTOOL=$lt_DLLTOOL
18168
18169# Command to associate shared and link libraries.
18170sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18171
18172# The archiver.
18173AR=$lt_AR
18174
18175# Flags to create an archive.
18176AR_FLAGS=$lt_AR_FLAGS
18177
18178# How to feed a file listing to the archiver.
18179archiver_list_spec=$lt_archiver_list_spec
18180
18181# A symbol stripping program.
18182STRIP=$lt_STRIP
18183
18184# Commands used to install an old-style archive.
18185RANLIB=$lt_RANLIB
18186old_postinstall_cmds=$lt_old_postinstall_cmds
18187old_postuninstall_cmds=$lt_old_postuninstall_cmds
18188
18189# Whether to use a lock for old archive extraction.
18190lock_old_archive_extraction=$lock_old_archive_extraction
18191
18192# A C compiler.
18193LTCC=$lt_CC
18194
18195# LTCC compiler flags.
18196LTCFLAGS=$lt_CFLAGS
18197
18198# Take the output of nm and produce a listing of raw symbols and C names.
18199global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18200
18201# Transform the output of nm in a proper C declaration.
18202global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18203
18204# Transform the output of nm in a C name address pair.
18205global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18206
18207# Transform the output of nm in a C name address pair when lib prefix is needed.
18208global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18209
18210# Specify filename containing input files for \$NM.
18211nm_file_list_spec=$lt_nm_file_list_spec
18212
18213# The root where to search for dependent libraries,and in which our libraries should be installed.
18214lt_sysroot=$lt_sysroot
18215
18216# The name of the directory that contains temporary libtool files.
18217objdir=$objdir
18218
18219# Used to examine libraries when file_magic_cmd begins with "file".
18220MAGIC_CMD=$MAGIC_CMD
18221
18222# Must we lock files when doing compilation?
18223need_locks=$lt_need_locks
18224
18225# Manifest tool.
18226MANIFEST_TOOL=$lt_MANIFEST_TOOL
18227
18228# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18229DSYMUTIL=$lt_DSYMUTIL
18230
18231# Tool to change global to local symbols on Mac OS X.
18232NMEDIT=$lt_NMEDIT
18233
18234# Tool to manipulate fat objects and archives on Mac OS X.
18235LIPO=$lt_LIPO
18236
18237# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18238OTOOL=$lt_OTOOL
18239
18240# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18241OTOOL64=$lt_OTOOL64
18242
18243# Old archive suffix (normally "a").
18244libext=$libext
18245
18246# Shared library suffix (normally ".so").
18247shrext_cmds=$lt_shrext_cmds
18248
18249# The commands to extract the exported symbol list from a shared archive.
18250extract_expsyms_cmds=$lt_extract_expsyms_cmds
18251
18252# Variables whose values should be saved in libtool wrapper scripts and
18253# restored at link time.
18254variables_saved_for_relink=$lt_variables_saved_for_relink
18255
18256# Do we need the "lib" prefix for modules?
18257need_lib_prefix=$need_lib_prefix
18258
18259# Do we need a version for libraries?
18260need_version=$need_version
18261
18262# Library versioning type.
18263version_type=$version_type
18264
18265# Shared library runtime path variable.
18266runpath_var=$runpath_var
18267
18268# Shared library path variable.
18269shlibpath_var=$shlibpath_var
18270
18271# Is shlibpath searched before the hard-coded library search path?
18272shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18273
18274# Format of library name prefix.
18275libname_spec=$lt_libname_spec
18276
18277# List of archive names.  First name is the real one, the rest are links.
18278# The last name is the one that the linker finds with -lNAME
18279library_names_spec=$lt_library_names_spec
18280
18281# The coded name of the library, if different from the real name.
18282soname_spec=$lt_soname_spec
18283
18284# Permission mode override for installation of shared libraries.
18285install_override_mode=$lt_install_override_mode
18286
18287# Command to use after installation of a shared archive.
18288postinstall_cmds=$lt_postinstall_cmds
18289
18290# Command to use after uninstallation of a shared archive.
18291postuninstall_cmds=$lt_postuninstall_cmds
18292
18293# Commands used to finish a libtool library installation in a directory.
18294finish_cmds=$lt_finish_cmds
18295
18296# As "finish_cmds", except a single script fragment to be evaled but
18297# not shown.
18298finish_eval=$lt_finish_eval
18299
18300# Whether we should hardcode library paths into libraries.
18301hardcode_into_libs=$hardcode_into_libs
18302
18303# Compile-time system search path for libraries.
18304sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18305
18306# Run-time system search path for libraries.
18307sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18308
18309# Whether dlopen is supported.
18310dlopen_support=$enable_dlopen
18311
18312# Whether dlopen of programs is supported.
18313dlopen_self=$enable_dlopen_self
18314
18315# Whether dlopen of statically linked programs is supported.
18316dlopen_self_static=$enable_dlopen_self_static
18317
18318# Commands to strip libraries.
18319old_striplib=$lt_old_striplib
18320striplib=$lt_striplib
18321
18322
18323# The linker used to build libraries.
18324LD=$lt_LD
18325
18326# How to create reloadable object files.
18327reload_flag=$lt_reload_flag
18328reload_cmds=$lt_reload_cmds
18329
18330# Commands used to build an old-style archive.
18331old_archive_cmds=$lt_old_archive_cmds
18332
18333# A language specific compiler.
18334CC=$lt_compiler
18335
18336# Is the compiler the GNU compiler?
18337with_gcc=$GCC
18338
18339# Compiler flag to turn off builtin functions.
18340no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18341
18342# Additional compiler flags for building library objects.
18343pic_flag=$lt_lt_prog_compiler_pic
18344
18345# How to pass a linker flag through the compiler.
18346wl=$lt_lt_prog_compiler_wl
18347
18348# Compiler flag to prevent dynamic linking.
18349link_static_flag=$lt_lt_prog_compiler_static
18350
18351# Does compiler simultaneously support -c and -o options?
18352compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18353
18354# Whether or not to add -lc for building shared libraries.
18355build_libtool_need_lc=$archive_cmds_need_lc
18356
18357# Whether or not to disallow shared libs when runtime libs are static.
18358allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18359
18360# Compiler flag to allow reflexive dlopens.
18361export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18362
18363# Compiler flag to generate shared objects directly from archives.
18364whole_archive_flag_spec=$lt_whole_archive_flag_spec
18365
18366# Whether the compiler copes with passing no objects directly.
18367compiler_needs_object=$lt_compiler_needs_object
18368
18369# Create an old-style archive from a shared archive.
18370old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18371
18372# Create a temporary old-style archive to link instead of a shared archive.
18373old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18374
18375# Commands used to build a shared archive.
18376archive_cmds=$lt_archive_cmds
18377archive_expsym_cmds=$lt_archive_expsym_cmds
18378
18379# Commands used to build a loadable module if different from building
18380# a shared archive.
18381module_cmds=$lt_module_cmds
18382module_expsym_cmds=$lt_module_expsym_cmds
18383
18384# Whether we are building with GNU ld or not.
18385with_gnu_ld=$lt_with_gnu_ld
18386
18387# Flag that allows shared libraries with undefined symbols to be built.
18388allow_undefined_flag=$lt_allow_undefined_flag
18389
18390# Flag that enforces no undefined symbols.
18391no_undefined_flag=$lt_no_undefined_flag
18392
18393# Flag to hardcode \$libdir into a binary during linking.
18394# This must work even if \$libdir does not exist
18395hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18396
18397# Whether we need a single "-rpath" flag with a separated argument.
18398hardcode_libdir_separator=$lt_hardcode_libdir_separator
18399
18400# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18401# DIR into the resulting binary.
18402hardcode_direct=$hardcode_direct
18403
18404# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18405# DIR into the resulting binary and the resulting library dependency is
18406# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18407# library is relocated.
18408hardcode_direct_absolute=$hardcode_direct_absolute
18409
18410# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18411# into the resulting binary.
18412hardcode_minus_L=$hardcode_minus_L
18413
18414# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18415# into the resulting binary.
18416hardcode_shlibpath_var=$hardcode_shlibpath_var
18417
18418# Set to "yes" if building a shared library automatically hardcodes DIR
18419# into the library and all subsequent libraries and executables linked
18420# against it.
18421hardcode_automatic=$hardcode_automatic
18422
18423# Set to yes if linker adds runtime paths of dependent libraries
18424# to runtime path list.
18425inherit_rpath=$inherit_rpath
18426
18427# Whether libtool must link a program against all its dependency libraries.
18428link_all_deplibs=$link_all_deplibs
18429
18430# Set to "yes" if exported symbols are required.
18431always_export_symbols=$always_export_symbols
18432
18433# The commands to list exported symbols.
18434export_symbols_cmds=$lt_export_symbols_cmds
18435
18436# Symbols that should not be listed in the preloaded symbols.
18437exclude_expsyms=$lt_exclude_expsyms
18438
18439# Symbols that must always be exported.
18440include_expsyms=$lt_include_expsyms
18441
18442# Commands necessary for linking programs (against libraries) with templates.
18443prelink_cmds=$lt_prelink_cmds
18444
18445# Commands necessary for finishing linking programs.
18446postlink_cmds=$lt_postlink_cmds
18447
18448# Specify filename containing input files.
18449file_list_spec=$lt_file_list_spec
18450
18451# How to hardcode a shared library path into an executable.
18452hardcode_action=$hardcode_action
18453
18454# The directories searched by this compiler when creating a shared library.
18455compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18456
18457# Dependencies to place before and after the objects being linked to
18458# create a shared library.
18459predep_objects=$lt_predep_objects
18460postdep_objects=$lt_postdep_objects
18461predeps=$lt_predeps
18462postdeps=$lt_postdeps
18463
18464# The library search path used internally by the compiler when linking
18465# a shared library.
18466compiler_lib_search_path=$lt_compiler_lib_search_path
18467
18468# ### END LIBTOOL CONFIG
18469
18470_LT_EOF
18471
18472  case $host_os in
18473  aix3*)
18474    cat <<\_LT_EOF >> "$cfgfile"
18475# AIX sometimes has problems with the GCC collect2 program.  For some
18476# reason, if we set the COLLECT_NAMES environment variable, the problems
18477# vanish in a puff of smoke.
18478if test "X${COLLECT_NAMES+set}" != Xset; then
18479  COLLECT_NAMES=
18480  export COLLECT_NAMES
18481fi
18482_LT_EOF
18483    ;;
18484  esac
18485
18486
18487ltmain="$ac_aux_dir/ltmain.sh"
18488
18489
18490  # We use sed instead of cat because bash on DJGPP gets confused if
18491  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18492  # text mode, it properly converts lines to CR/LF.  This bash problem
18493  # is reportedly fixed, but why not run on old versions too?
18494  sed '$q' "$ltmain" >> "$cfgfile" \
18495     || (rm -f "$cfgfile"; exit 1)
18496
18497  if test x"$xsi_shell" = xyes; then
18498  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18499func_dirname ()\
18500{\
18501\    case ${1} in\
18502\      */*) func_dirname_result="${1%/*}${2}" ;;\
18503\      *  ) func_dirname_result="${3}" ;;\
18504\    esac\
18505} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18506  && mv -f "$cfgfile.tmp" "$cfgfile" \
18507    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18508test 0 -eq $? || _lt_function_replace_fail=:
18509
18510
18511  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18512func_basename ()\
18513{\
18514\    func_basename_result="${1##*/}"\
18515} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18516  && mv -f "$cfgfile.tmp" "$cfgfile" \
18517    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18518test 0 -eq $? || _lt_function_replace_fail=:
18519
18520
18521  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18522func_dirname_and_basename ()\
18523{\
18524\    case ${1} in\
18525\      */*) func_dirname_result="${1%/*}${2}" ;;\
18526\      *  ) func_dirname_result="${3}" ;;\
18527\    esac\
18528\    func_basename_result="${1##*/}"\
18529} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18530  && mv -f "$cfgfile.tmp" "$cfgfile" \
18531    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18532test 0 -eq $? || _lt_function_replace_fail=:
18533
18534
18535  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18536func_stripname ()\
18537{\
18538\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18539\    # positional parameters, so assign one to ordinary parameter first.\
18540\    func_stripname_result=${3}\
18541\    func_stripname_result=${func_stripname_result#"${1}"}\
18542\    func_stripname_result=${func_stripname_result%"${2}"}\
18543} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18544  && mv -f "$cfgfile.tmp" "$cfgfile" \
18545    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18546test 0 -eq $? || _lt_function_replace_fail=:
18547
18548
18549  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18550func_split_long_opt ()\
18551{\
18552\    func_split_long_opt_name=${1%%=*}\
18553\    func_split_long_opt_arg=${1#*=}\
18554} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18555  && mv -f "$cfgfile.tmp" "$cfgfile" \
18556    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18557test 0 -eq $? || _lt_function_replace_fail=:
18558
18559
18560  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18561func_split_short_opt ()\
18562{\
18563\    func_split_short_opt_arg=${1#??}\
18564\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18565} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18566  && mv -f "$cfgfile.tmp" "$cfgfile" \
18567    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18568test 0 -eq $? || _lt_function_replace_fail=:
18569
18570
18571  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18572func_lo2o ()\
18573{\
18574\    case ${1} in\
18575\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18576\      *)    func_lo2o_result=${1} ;;\
18577\    esac\
18578} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18579  && mv -f "$cfgfile.tmp" "$cfgfile" \
18580    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18581test 0 -eq $? || _lt_function_replace_fail=:
18582
18583
18584  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18585func_xform ()\
18586{\
18587    func_xform_result=${1%.*}.lo\
18588} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18589  && mv -f "$cfgfile.tmp" "$cfgfile" \
18590    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18591test 0 -eq $? || _lt_function_replace_fail=:
18592
18593
18594  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18595func_arith ()\
18596{\
18597    func_arith_result=$(( $* ))\
18598} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18599  && mv -f "$cfgfile.tmp" "$cfgfile" \
18600    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18601test 0 -eq $? || _lt_function_replace_fail=:
18602
18603
18604  sed -e '/^func_len ()$/,/^} # func_len /c\
18605func_len ()\
18606{\
18607    func_len_result=${#1}\
18608} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18609  && mv -f "$cfgfile.tmp" "$cfgfile" \
18610    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18611test 0 -eq $? || _lt_function_replace_fail=:
18612
18613fi
18614
18615if test x"$lt_shell_append" = xyes; then
18616  sed -e '/^func_append ()$/,/^} # func_append /c\
18617func_append ()\
18618{\
18619    eval "${1}+=\\${2}"\
18620} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18621  && mv -f "$cfgfile.tmp" "$cfgfile" \
18622    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18623test 0 -eq $? || _lt_function_replace_fail=:
18624
18625
18626  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18627func_append_quoted ()\
18628{\
18629\    func_quote_for_eval "${2}"\
18630\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18631} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18632  && mv -f "$cfgfile.tmp" "$cfgfile" \
18633    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18634test 0 -eq $? || _lt_function_replace_fail=:
18635
18636
18637  # Save a `func_append' function call where possible by direct use of '+='
18638  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18639    && mv -f "$cfgfile.tmp" "$cfgfile" \
18640      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18641  test 0 -eq $? || _lt_function_replace_fail=:
18642else
18643  # Save a `func_append' function call even when '+=' is not available
18644  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18645    && mv -f "$cfgfile.tmp" "$cfgfile" \
18646      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18647  test 0 -eq $? || _lt_function_replace_fail=:
18648fi
18649
18650if test x"$_lt_function_replace_fail" = x":"; then
18651  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18652$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18653fi
18654
18655
18656   mv -f "$cfgfile" "$ofile" ||
18657    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18658  chmod +x "$ofile"
18659
18660
18661    cat <<_LT_EOF >> "$ofile"
18662
18663# ### BEGIN LIBTOOL TAG CONFIG: CXX
18664
18665# The linker used to build libraries.
18666LD=$lt_LD_CXX
18667
18668# How to create reloadable object files.
18669reload_flag=$lt_reload_flag_CXX
18670reload_cmds=$lt_reload_cmds_CXX
18671
18672# Commands used to build an old-style archive.
18673old_archive_cmds=$lt_old_archive_cmds_CXX
18674
18675# A language specific compiler.
18676CC=$lt_compiler_CXX
18677
18678# Is the compiler the GNU compiler?
18679with_gcc=$GCC_CXX
18680
18681# Compiler flag to turn off builtin functions.
18682no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18683
18684# Additional compiler flags for building library objects.
18685pic_flag=$lt_lt_prog_compiler_pic_CXX
18686
18687# How to pass a linker flag through the compiler.
18688wl=$lt_lt_prog_compiler_wl_CXX
18689
18690# Compiler flag to prevent dynamic linking.
18691link_static_flag=$lt_lt_prog_compiler_static_CXX
18692
18693# Does compiler simultaneously support -c and -o options?
18694compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18695
18696# Whether or not to add -lc for building shared libraries.
18697build_libtool_need_lc=$archive_cmds_need_lc_CXX
18698
18699# Whether or not to disallow shared libs when runtime libs are static.
18700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18701
18702# Compiler flag to allow reflexive dlopens.
18703export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18704
18705# Compiler flag to generate shared objects directly from archives.
18706whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18707
18708# Whether the compiler copes with passing no objects directly.
18709compiler_needs_object=$lt_compiler_needs_object_CXX
18710
18711# Create an old-style archive from a shared archive.
18712old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18713
18714# Create a temporary old-style archive to link instead of a shared archive.
18715old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18716
18717# Commands used to build a shared archive.
18718archive_cmds=$lt_archive_cmds_CXX
18719archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18720
18721# Commands used to build a loadable module if different from building
18722# a shared archive.
18723module_cmds=$lt_module_cmds_CXX
18724module_expsym_cmds=$lt_module_expsym_cmds_CXX
18725
18726# Whether we are building with GNU ld or not.
18727with_gnu_ld=$lt_with_gnu_ld_CXX
18728
18729# Flag that allows shared libraries with undefined symbols to be built.
18730allow_undefined_flag=$lt_allow_undefined_flag_CXX
18731
18732# Flag that enforces no undefined symbols.
18733no_undefined_flag=$lt_no_undefined_flag_CXX
18734
18735# Flag to hardcode \$libdir into a binary during linking.
18736# This must work even if \$libdir does not exist
18737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18738
18739# Whether we need a single "-rpath" flag with a separated argument.
18740hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18741
18742# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18743# DIR into the resulting binary.
18744hardcode_direct=$hardcode_direct_CXX
18745
18746# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18747# DIR into the resulting binary and the resulting library dependency is
18748# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18749# library is relocated.
18750hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18751
18752# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18753# into the resulting binary.
18754hardcode_minus_L=$hardcode_minus_L_CXX
18755
18756# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18757# into the resulting binary.
18758hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18759
18760# Set to "yes" if building a shared library automatically hardcodes DIR
18761# into the library and all subsequent libraries and executables linked
18762# against it.
18763hardcode_automatic=$hardcode_automatic_CXX
18764
18765# Set to yes if linker adds runtime paths of dependent libraries
18766# to runtime path list.
18767inherit_rpath=$inherit_rpath_CXX
18768
18769# Whether libtool must link a program against all its dependency libraries.
18770link_all_deplibs=$link_all_deplibs_CXX
18771
18772# Set to "yes" if exported symbols are required.
18773always_export_symbols=$always_export_symbols_CXX
18774
18775# The commands to list exported symbols.
18776export_symbols_cmds=$lt_export_symbols_cmds_CXX
18777
18778# Symbols that should not be listed in the preloaded symbols.
18779exclude_expsyms=$lt_exclude_expsyms_CXX
18780
18781# Symbols that must always be exported.
18782include_expsyms=$lt_include_expsyms_CXX
18783
18784# Commands necessary for linking programs (against libraries) with templates.
18785prelink_cmds=$lt_prelink_cmds_CXX
18786
18787# Commands necessary for finishing linking programs.
18788postlink_cmds=$lt_postlink_cmds_CXX
18789
18790# Specify filename containing input files.
18791file_list_spec=$lt_file_list_spec_CXX
18792
18793# How to hardcode a shared library path into an executable.
18794hardcode_action=$hardcode_action_CXX
18795
18796# The directories searched by this compiler when creating a shared library.
18797compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18798
18799# Dependencies to place before and after the objects being linked to
18800# create a shared library.
18801predep_objects=$lt_predep_objects_CXX
18802postdep_objects=$lt_postdep_objects_CXX
18803predeps=$lt_predeps_CXX
18804postdeps=$lt_postdeps_CXX
18805
18806# The library search path used internally by the compiler when linking
18807# a shared library.
18808compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18809
18810# ### END LIBTOOL TAG CONFIG: CXX
18811_LT_EOF
18812
18813 ;;
18814
18815  esac
18816done # for ac_tag
18817
18818
18819as_fn_exit 0
18820_ACEOF
18821ac_clean_files=$ac_clean_files_save
18822
18823test $ac_write_fail = 0 ||
18824  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18825
18826
18827# configure is writing to config.log, and then calls config.status.
18828# config.status does its own redirection, appending to config.log.
18829# Unfortunately, on DOS this fails, as config.log is still kept open
18830# by configure, so config.status won't be able to write to it; its
18831# output is simply discarded.  So we exec the FD to /dev/null,
18832# effectively closing config.log, so it can be properly (re)opened and
18833# appended to by config.status.  When coming back to configure, we
18834# need to make the FD available again.
18835if test "$no_create" != yes; then
18836  ac_cs_success=:
18837  ac_config_status_args=
18838  test "$silent" = yes &&
18839    ac_config_status_args="$ac_config_status_args --quiet"
18840  exec 5>/dev/null
18841  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18842  exec 5>>config.log
18843  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18844  # would make configure fail if this is the last instruction.
18845  $ac_cs_success || as_fn_exit 1
18846fi
18847if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18849$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18850fi
18851
18852