• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for c-ares-test -.
4#
5# Report bugs to <->.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and - about your
278$0: system, including any error possibly output before this
279$0: message. Then install a modern shell, or manually run
280$0: the script under such a shell if you do have one."
281  fi
282  exit 1
283fi
284fi
285fi
286SHELL=${CONFIG_SHELL-/bin/sh}
287export SHELL
288# Unset more variables known to interfere with behavior of common tools.
289CLICOLOR_FORCE= GREP_OPTIONS=
290unset CLICOLOR_FORCE GREP_OPTIONS
291
292## --------------------- ##
293## M4sh Shell Functions. ##
294## --------------------- ##
295# as_fn_unset VAR
296# ---------------
297# Portably unset VAR.
298as_fn_unset ()
299{
300  { eval $1=; unset $1;}
301}
302as_unset=as_fn_unset
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344$as_echo X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384  eval 'as_fn_append ()
385  {
386    eval $1+=\$2
387  }'
388else
389  as_fn_append ()
390  {
391    eval $1=\$$1\$2
392  }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401  eval 'as_fn_arith ()
402  {
403    as_val=$(( $* ))
404  }'
405else
406  as_fn_arith ()
407  {
408    as_val=`expr "$@" || test $? -eq 1`
409  }
410fi # as_fn_arith
411
412
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417# script with STATUS, using 1 if that was 0.
418as_fn_error ()
419{
420  as_status=$1; test $as_status -eq 0 && as_status=1
421  if test "$4"; then
422    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424  fi
425  $as_echo "$as_me: error: $2" >&2
426  as_fn_exit $as_status
427} # as_fn_error
428
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430   test "X`expr 00001 : '.*\(...\)'`" = X001; then
431  as_expr=expr
432else
433  as_expr=false
434fi
435
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437  as_basename=basename
438else
439  as_basename=false
440fi
441
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443  as_dirname=dirname
444else
445  as_dirname=false
446fi
447
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450	 X"$0" : 'X\(//\)$' \| \
451	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452$as_echo X/"$0" |
453    sed '/^.*\/\([^/][^/]*\)\/*$/{
454	    s//\1/
455	    q
456	  }
457	  /^X\/\(\/\/\)$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\).*/{
462	    s//\1/
463	    q
464	  }
465	  s/.*/./; q'`
466
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475  as_lineno_1=$LINENO as_lineno_1a=$LINENO
476  as_lineno_2=$LINENO as_lineno_2a=$LINENO
477  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
480  sed -n '
481    p
482    /[$]LINENO/=
483  ' <$as_myself |
484    sed '
485      s/[$]LINENO.*/&-/
486      t lineno
487      b
488      :lineno
489      N
490      :loop
491      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492      t loop
493      s/-\n.*//
494    ' >$as_me.lineno &&
495  chmod +x "$as_me.lineno" ||
496    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499  # already done that, so ensure we don't try to do so again and fall
500  # in an infinite loop.  This has already happened in practice.
501  _as_can_reexec=no; export _as_can_reexec
502  # Don't try to exec as it changes $[0], causing all sort of problems
503  # (the dirname of $[0] is not the place where we might find the
504  # original and so on.  Autoconf is especially sensitive to this).
505  . "./$as_me.lineno"
506  # Exit status is that of the last command.
507  exit
508}
509
510ECHO_C= ECHO_N= ECHO_T=
511case `echo -n x` in #(((((
512-n*)
513  case `echo 'xy\c'` in
514  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
515  xy)  ECHO_C='\c';;
516  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
517       ECHO_T='	';;
518  esac;;
519*)
520  ECHO_N='-n';;
521esac
522
523rm -f conf$$ conf$$.exe conf$$.file
524if test -d conf$$.dir; then
525  rm -f conf$$.dir/conf$$.file
526else
527  rm -f conf$$.dir
528  mkdir conf$$.dir 2>/dev/null
529fi
530if (echo >conf$$.file) 2>/dev/null; then
531  if ln -s conf$$.file conf$$ 2>/dev/null; then
532    as_ln_s='ln -s'
533    # ... but there are two gotchas:
534    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536    # In both cases, we have to default to `cp -pR'.
537    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538      as_ln_s='cp -pR'
539  elif ln conf$$.file conf$$ 2>/dev/null; then
540    as_ln_s=ln
541  else
542    as_ln_s='cp -pR'
543  fi
544else
545  as_ln_s='cp -pR'
546fi
547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548rmdir conf$$.dir 2>/dev/null
549
550if mkdir -p . 2>/dev/null; then
551  as_mkdir_p='mkdir -p "$as_dir"'
552else
553  test -d ./-p && rmdir ./-p
554  as_mkdir_p=false
555fi
556
557as_test_x='test -x'
558as_executable_p=as_fn_executable_p
559
560# Sed expression to map a string onto a valid CPP name.
561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563# Sed expression to map a string onto a valid variable name.
564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569test -n "$DJDIR" || exec 7<&0 </dev/null
570exec 6>&1
571
572# Name of the host.
573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574# so uname gets run too.
575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577#
578# Initializations.
579#
580ac_default_prefix=/usr/local
581ac_clean_files=
582ac_config_libobj_dir=.
583LIBOBJS=
584cross_compiling=no
585subdirs=
586MFLAGS=
587MAKEFLAGS=
588
589# Identity of this package.
590PACKAGE_NAME='c-ares-test'
591PACKAGE_TARNAME='c-ares-test'
592PACKAGE_VERSION='-'
593PACKAGE_STRING='c-ares-test -'
594PACKAGE_BUGREPORT='-'
595PACKAGE_URL=''
596
597ac_unique_file="ares-test.cc"
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638CODE_COVERAGE_RULES
639CODE_COVERAGE_LDFLAGS
640CODE_COVERAGE_CFLAGS
641GENHTML
642LCOV
643GCOV
644CODE_COVERAGE_ENABLED
645CODE_COVERAGE_ENABLED_FALSE
646CODE_COVERAGE_ENABLED_TRUE
647PTHREAD_CFLAGS
648PTHREAD_LIBS
649PTHREAD_CC
650ax_pthread_config
651LIBTOOL_DEPS
652CXXCPP
653CPP
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672EGREP
673GREP
674SED
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678ac_ct_CC
679CFLAGS
680CC
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689LIBTOOL
690HAVE_CXX11
691am__fastdepCXX_FALSE
692am__fastdepCXX_TRUE
693CXXDEPMODE
694am__nodep
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__include
699DEPDIR
700OBJEXT
701EXEEXT
702ac_ct_CXX
703CPPFLAGS
704LDFLAGS
705CXXFLAGS
706CXX
707AM_BACKSLASH
708AM_DEFAULT_VERBOSITY
709AM_DEFAULT_V
710AM_V
711am__untar
712am__tar
713AMTAR
714am__leading_dot
715SET_MAKE
716AWK
717mkdir_p
718MKDIR_P
719INSTALL_STRIP_PROGRAM
720STRIP
721install_sh
722MAKEINFO
723AUTOHEADER
724AUTOMAKE
725AUTOCONF
726ACLOCAL
727VERSION
728PACKAGE
729CYGPATH_W
730am__isrc
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753runstatedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL
773am__quote'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_silent_rules
778enable_dependency_tracking
779enable_shared
780enable_static
781with_pic
782enable_fast_install
783with_aix_soname
784with_gnu_ld
785with_sysroot
786enable_libtool_lock
787with_gcov
788enable_code_coverage
789'
790      ac_precious_vars='build_alias
791host_alias
792target_alias
793CXX
794CXXFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798CCC
799CC
800CFLAGS
801LT_SYS_LIBRARY_PATH
802CPP
803CXXCPP'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842runstatedir='${localstatedir}/run'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859  # If the previous option needs an argument, assign it.
860  if test -n "$ac_prev"; then
861    eval $ac_prev=\$ac_option
862    ac_prev=
863    continue
864  fi
865
866  case $ac_option in
867  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868  *=)   ac_optarg= ;;
869  *)    ac_optarg=yes ;;
870  esac
871
872  # Accept the important Cygnus configure options, so we can diagnose typos.
873
874  case $ac_dashdash$ac_option in
875  --)
876    ac_dashdash=yes ;;
877
878  -bindir | --bindir | --bindi | --bind | --bin | --bi)
879    ac_prev=bindir ;;
880  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881    bindir=$ac_optarg ;;
882
883  -build | --build | --buil | --bui | --bu)
884    ac_prev=build_alias ;;
885  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886    build_alias=$ac_optarg ;;
887
888  -cache-file | --cache-file | --cache-fil | --cache-fi \
889  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890    ac_prev=cache_file ;;
891  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893    cache_file=$ac_optarg ;;
894
895  --config-cache | -C)
896    cache_file=config.cache ;;
897
898  -datadir | --datadir | --datadi | --datad)
899    ac_prev=datadir ;;
900  -datadir=* | --datadir=* | --datadi=* | --datad=*)
901    datadir=$ac_optarg ;;
902
903  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904  | --dataroo | --dataro | --datar)
905    ac_prev=datarootdir ;;
906  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908    datarootdir=$ac_optarg ;;
909
910  -disable-* | --disable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: $ac_useropt"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=no ;;
925
926  -docdir | --docdir | --docdi | --doc | --do)
927    ac_prev=docdir ;;
928  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929    docdir=$ac_optarg ;;
930
931  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932    ac_prev=dvidir ;;
933  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934    dvidir=$ac_optarg ;;
935
936  -enable-* | --enable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: $ac_useropt"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=\$ac_optarg ;;
951
952  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954  | --exec | --exe | --ex)
955    ac_prev=exec_prefix ;;
956  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958  | --exec=* | --exe=* | --ex=*)
959    exec_prefix=$ac_optarg ;;
960
961  -gas | --gas | --ga | --g)
962    # Obsolete; use --with-gas.
963    with_gas=yes ;;
964
965  -help | --help | --hel | --he | -h)
966    ac_init_help=long ;;
967  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968    ac_init_help=recursive ;;
969  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970    ac_init_help=short ;;
971
972  -host | --host | --hos | --ho)
973    ac_prev=host_alias ;;
974  -host=* | --host=* | --hos=* | --ho=*)
975    host_alias=$ac_optarg ;;
976
977  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978    ac_prev=htmldir ;;
979  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980  | --ht=*)
981    htmldir=$ac_optarg ;;
982
983  -includedir | --includedir | --includedi | --included | --include \
984  | --includ | --inclu | --incl | --inc)
985    ac_prev=includedir ;;
986  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987  | --includ=* | --inclu=* | --incl=* | --inc=*)
988    includedir=$ac_optarg ;;
989
990  -infodir | --infodir | --infodi | --infod | --info | --inf)
991    ac_prev=infodir ;;
992  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993    infodir=$ac_optarg ;;
994
995  -libdir | --libdir | --libdi | --libd)
996    ac_prev=libdir ;;
997  -libdir=* | --libdir=* | --libdi=* | --libd=*)
998    libdir=$ac_optarg ;;
999
1000  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001  | --libexe | --libex | --libe)
1002    ac_prev=libexecdir ;;
1003  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004  | --libexe=* | --libex=* | --libe=*)
1005    libexecdir=$ac_optarg ;;
1006
1007  -localedir | --localedir | --localedi | --localed | --locale)
1008    ac_prev=localedir ;;
1009  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010    localedir=$ac_optarg ;;
1011
1012  -localstatedir | --localstatedir | --localstatedi | --localstated \
1013  | --localstate | --localstat | --localsta | --localst | --locals)
1014    ac_prev=localstatedir ;;
1015  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017    localstatedir=$ac_optarg ;;
1018
1019  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020    ac_prev=mandir ;;
1021  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022    mandir=$ac_optarg ;;
1023
1024  -nfp | --nfp | --nf)
1025    # Obsolete; use --without-fp.
1026    with_fp=no ;;
1027
1028  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029  | --no-cr | --no-c | -n)
1030    no_create=yes ;;
1031
1032  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034    no_recursion=yes ;;
1035
1036  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038  | --oldin | --oldi | --old | --ol | --o)
1039    ac_prev=oldincludedir ;;
1040  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043    oldincludedir=$ac_optarg ;;
1044
1045  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046    ac_prev=prefix ;;
1047  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048    prefix=$ac_optarg ;;
1049
1050  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051  | --program-pre | --program-pr | --program-p)
1052    ac_prev=program_prefix ;;
1053  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055    program_prefix=$ac_optarg ;;
1056
1057  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058  | --program-suf | --program-su | --program-s)
1059    ac_prev=program_suffix ;;
1060  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062    program_suffix=$ac_optarg ;;
1063
1064  -program-transform-name | --program-transform-name \
1065  | --program-transform-nam | --program-transform-na \
1066  | --program-transform-n | --program-transform- \
1067  | --program-transform | --program-transfor \
1068  | --program-transfo | --program-transf \
1069  | --program-trans | --program-tran \
1070  | --progr-tra | --program-tr | --program-t)
1071    ac_prev=program_transform_name ;;
1072  -program-transform-name=* | --program-transform-name=* \
1073  | --program-transform-nam=* | --program-transform-na=* \
1074  | --program-transform-n=* | --program-transform-=* \
1075  | --program-transform=* | --program-transfor=* \
1076  | --program-transfo=* | --program-transf=* \
1077  | --program-trans=* | --program-tran=* \
1078  | --progr-tra=* | --program-tr=* | --program-t=*)
1079    program_transform_name=$ac_optarg ;;
1080
1081  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082    ac_prev=pdfdir ;;
1083  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084    pdfdir=$ac_optarg ;;
1085
1086  -psdir | --psdir | --psdi | --psd | --ps)
1087    ac_prev=psdir ;;
1088  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089    psdir=$ac_optarg ;;
1090
1091  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092  | -silent | --silent | --silen | --sile | --sil)
1093    silent=yes ;;
1094
1095  -runstatedir | --runstatedir | --runstatedi | --runstated \
1096  | --runstate | --runstat | --runsta | --runst | --runs \
1097  | --run | --ru | --r)
1098    ac_prev=runstatedir ;;
1099  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101  | --run=* | --ru=* | --r=*)
1102    runstatedir=$ac_optarg ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=\$ac_optarg ;;
1164
1165  -without-* | --without-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=no ;;
1180
1181  --x)
1182    # Obsolete; use --with-x.
1183    with_x=yes ;;
1184
1185  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186  | --x-incl | --x-inc | --x-in | --x-i)
1187    ac_prev=x_includes ;;
1188  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190    x_includes=$ac_optarg ;;
1191
1192  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194    ac_prev=x_libraries ;;
1195  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197    x_libraries=$ac_optarg ;;
1198
1199  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information"
1201    ;;
1202
1203  *=*)
1204    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205    # Reject names that are not valid shell variable names.
1206    case $ac_envvar in #(
1207      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209    esac
1210    eval $ac_envvar=\$ac_optarg
1211    export $ac_envvar ;;
1212
1213  *)
1214    # FIXME: should be removed in autoconf 3.0.
1215    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219    ;;
1220
1221  esac
1222done
1223
1224if test -n "$ac_prev"; then
1225  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226  as_fn_error $? "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230  case $enable_option_checking in
1231    no) ;;
1232    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234  esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239		datadir sysconfdir sharedstatedir localstatedir includedir \
1240		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241		libdir localedir mandir runstatedir
1242do
1243  eval ac_val=\$$ac_var
1244  # Remove trailing slashes.
1245  case $ac_val in
1246    */ )
1247      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248      eval $ac_var=\$ac_val;;
1249  esac
1250  # Be sure to have absolute directory names.
1251  case $ac_val in
1252    [\\/$]* | ?:[\\/]* )  continue;;
1253    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254  esac
1255  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267  if test "x$build_alias" = x; then
1268    cross_compiling=maybe
1269  elif test "x$build_alias" != "x$host_alias"; then
1270    cross_compiling=yes
1271  fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
1278
1279
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283  as_fn_error $? "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285  as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290  ac_srcdir_defaulted=yes
1291  # Try the directory containing this script, then the parent directory.
1292  ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294	 X"$as_myself" : 'X\(//\)[^/]' \| \
1295	 X"$as_myself" : 'X\(//\)$' \| \
1296	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297$as_echo X"$as_myself" |
1298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\/\)[^/].*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)$/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\).*/{
1311	    s//\1/
1312	    q
1313	  }
1314	  s/.*/./; q'`
1315  srcdir=$ac_confdir
1316  if test ! -r "$srcdir/$ac_unique_file"; then
1317    srcdir=..
1318  fi
1319else
1320  ac_srcdir_defaulted=no
1321fi
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329	pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332  srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_env_${ac_var}_value=\$${ac_var}
1343  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
1346
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351  # Omit some internal or obsolete options to make the list less imposing.
1352  # This message is too long to be a string in the A/UX 3.1 sh.
1353  cat <<_ACEOF
1354\`configure' configures c-ares-test - to adapt to many kinds of systems.
1355
1356Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361Defaults for the options are specified in brackets.
1362
1363Configuration:
1364  -h, --help              display this help and exit
1365      --help=short        display options specific to this package
1366      --help=recursive    display the short help of all the included packages
1367  -V, --version           display version information and exit
1368  -q, --quiet, --silent   do not print \`checking ...' messages
1369      --cache-file=FILE   cache test results in FILE [disabled]
1370  -C, --config-cache      alias for \`--cache-file=config.cache'
1371  -n, --no-create         do not create output files
1372      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373
1374Installation directories:
1375  --prefix=PREFIX         install architecture-independent files in PREFIX
1376                          [$ac_default_prefix]
1377  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                          [PREFIX]
1379
1380By default, \`make install' will install all the files in
1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383for instance \`--prefix=\$HOME'.
1384
1385For better control, use the options below.
1386
1387Fine tuning of the installation directories:
1388  --bindir=DIR            user executables [EPREFIX/bin]
1389  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390  --libexecdir=DIR        program executables [EPREFIX/libexec]
1391  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1395  --libdir=DIR            object code libraries [EPREFIX/lib]
1396  --includedir=DIR        C header files [PREFIX/include]
1397  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR           info documentation [DATAROOTDIR/info]
1401  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR            man documentation [DATAROOTDIR/man]
1403  --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares-test]
1404  --htmldir=DIR           html documentation [DOCDIR]
1405  --dvidir=DIR            dvi documentation [DOCDIR]
1406  --pdfdir=DIR            pdf documentation [DOCDIR]
1407  --psdir=DIR             ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412Program names:
1413  --program-prefix=PREFIX            prepend PREFIX to installed program names
1414  --program-suffix=SUFFIX            append SUFFIX to installed program names
1415  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424  case $ac_init_help in
1425     short | recursive ) echo "Configuration of c-ares-test -:";;
1426   esac
1427  cat <<\_ACEOF
1428
1429Optional Features:
1430  --disable-option-checking  ignore unrecognized --enable/--with options
1431  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433  --enable-silent-rules   less verbose build output (undo: "make V=1")
1434  --disable-silent-rules  verbose build output (undo: "make V=0")
1435  --enable-dependency-tracking
1436                          do not reject slow dependency extractors
1437  --disable-dependency-tracking
1438                          speeds up one-time build
1439  --enable-shared[=PKGS]  build shared libraries [default=yes]
1440  --enable-static[=PKGS]  build static libraries [default=yes]
1441  --enable-fast-install[=PKGS]
1442                          optimize for fast installation [default=yes]
1443  --disable-libtool-lock  avoid locking (might break parallel builds)
1444  --enable-code-coverage  Whether to enable code coverage support
1445
1446Optional Packages:
1447  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1450                          both]
1451  --with-aix-soname=aix|svr4|both
1452                          shared library versioning (aka "SONAME") variant to
1453                          provide on AIX, [default=aix].
1454  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1455  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1456                          compiler's sysroot if not specified).
1457  --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1458
1459Some influential environment variables:
1460  CXX         C++ compiler command
1461  CXXFLAGS    C++ compiler flags
1462  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463              nonstandard directory <lib dir>
1464  LIBS        libraries to pass to the linker, e.g. -l<library>
1465  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466              you have headers in a nonstandard directory <include dir>
1467  CC          C compiler command
1468  CFLAGS      C compiler flags
1469  LT_SYS_LIBRARY_PATH
1470              User-defined run-time library search path.
1471  CPP         C preprocessor
1472  CXXCPP      C++ preprocessor
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to <->.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483  # If there are subdirs, report their specific --help.
1484  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485    test -d "$ac_dir" ||
1486      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487      continue
1488    ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494  # A ".." for each directory in $ac_dir_suffix.
1495  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496  case $ac_top_builddir_sub in
1497  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499  esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507  .)  # We are building in place.
1508    ac_srcdir=.
1509    ac_top_srcdir=$ac_top_builddir_sub
1510    ac_abs_top_srcdir=$ac_pwd ;;
1511  [\\/]* | ?:[\\/]* )  # Absolute name.
1512    ac_srcdir=$srcdir$ac_dir_suffix;
1513    ac_top_srcdir=$srcdir
1514    ac_abs_top_srcdir=$srcdir ;;
1515  *) # Relative name.
1516    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517    ac_top_srcdir=$ac_top_build_prefix$srcdir
1518    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522    cd "$ac_dir" || { ac_status=$?; continue; }
1523    # Check for guested configure.
1524    if test -f "$ac_srcdir/configure.gnu"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527    elif test -f "$ac_srcdir/configure"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure" --help=recursive
1530    else
1531      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532    fi || ac_status=$?
1533    cd "$ac_pwd" || { ac_status=$?; break; }
1534  done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539  cat <<\_ACEOF
1540c-ares-test configure -
1541generated by GNU Autoconf 2.69
1542
1543Copyright (C) 2012 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547  exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_cxx_try_compile LINENO
1555# ----------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_cxx_try_compile ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  rm -f conftest.$ac_objext
1561  if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564  *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568  (eval "$ac_compile") 2>conftest.err
1569  ac_status=$?
1570  if test -s conftest.err; then
1571    grep -v '^ *+' conftest.err >conftest.er1
1572    cat conftest.er1 >&5
1573    mv -f conftest.er1 conftest.err
1574  fi
1575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576  test $ac_status = 0; } && {
1577	 test -z "$ac_cxx_werror_flag" ||
1578	 test ! -s conftest.err
1579       } && test -s conftest.$ac_objext; then :
1580  ac_retval=0
1581else
1582  $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_cxx_try_compile
1591
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  rm -f conftest.$ac_objext
1599  if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_compile") 2>conftest.err
1607  ac_status=$?
1608  if test -s conftest.err; then
1609    grep -v '^ *+' conftest.err >conftest.er1
1610    cat conftest.er1 >&5
1611    mv -f conftest.er1 conftest.err
1612  fi
1613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614  test $ac_status = 0; } && {
1615	 test -z "$ac_c_werror_flag" ||
1616	 test ! -s conftest.err
1617       } && test -s conftest.$ac_objext; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623	ac_retval=1
1624fi
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626  as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_compile
1629
1630# ac_fn_c_try_link LINENO
1631# -----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_link ()
1634{
1635  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636  rm -f conftest.$ac_objext conftest$ac_exeext
1637  if { { ac_try="$ac_link"
1638case "(($ac_try" in
1639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640  *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644  (eval "$ac_link") 2>conftest.err
1645  ac_status=$?
1646  if test -s conftest.err; then
1647    grep -v '^ *+' conftest.err >conftest.er1
1648    cat conftest.er1 >&5
1649    mv -f conftest.er1 conftest.err
1650  fi
1651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652  test $ac_status = 0; } && {
1653	 test -z "$ac_c_werror_flag" ||
1654	 test ! -s conftest.err
1655       } && test -s conftest$ac_exeext && {
1656	 test "$cross_compiling" = yes ||
1657	 test -x conftest$ac_exeext
1658       }; then :
1659  ac_retval=0
1660else
1661  $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664	ac_retval=1
1665fi
1666  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668  # interfere with the next link command; also delete a directory that is
1669  # left behind by Apple's compiler.  We do this before executing the actions.
1670  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_link
1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if eval \${$3+:} false; then :
1686  $as_echo_n "(cached) " >&6
1687else
1688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h.  */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694  eval "$3=yes"
1695else
1696  eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_compile
1706
1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($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_cpp conftest.$ac_ext") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } > conftest.i && {
1729	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       }; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737    ac_retval=1
1738fi
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_cpp
1743
1744# ac_fn_c_try_run LINENO
1745# ----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747# that executables *can* be run.
1748ac_fn_c_try_run ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_link") 2>&5
1759  ac_status=$?
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762  { { case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_try") 2>&5
1769  ac_status=$?
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; }; }; then :
1772  ac_retval=0
1773else
1774  $as_echo "$as_me: program exited with status $ac_status" >&5
1775       $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778       ac_retval=$ac_status
1779fi
1780  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782  as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_run
1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804    which can conflict with char $2 (); below.
1805    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806    <limits.h> exists even on freestanding compilers.  */
1807
1808#ifdef __STDC__
1809# include <limits.h>
1810#else
1811# include <assert.h>
1812#endif
1813
1814#undef $2
1815
1816/* Override any GCC internal prototype to avoid an error.
1817   Use char because int might match the return type of a GCC
1818   builtin and then its argument prototype would still apply.  */
1819#ifdef __cplusplus
1820extern "C"
1821#endif
1822char $2 ();
1823/* The GNU C library defines this for functions which it implements
1824    to always fail with ENOSYS.  Some functions are actually named
1825    something starting with __ and the normal name is an alias.  */
1826#if defined __stub_$2 || defined __stub___$2
1827choke me
1828#endif
1829
1830int
1831main ()
1832{
1833return $2 ();
1834  ;
1835  return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_link "$LINENO"; then :
1839  eval "$3=yes"
1840else
1841  eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext \
1844    conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_func
1852
1853# ac_fn_cxx_try_cpp LINENO
1854# ------------------------
1855# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_cxx_try_cpp ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  if { { ac_try="$ac_cpp conftest.$ac_ext"
1860case "(($ac_try" in
1861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862  *) ac_try_echo=$ac_try;;
1863esac
1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865$as_echo "$ac_try_echo"; } >&5
1866  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867  ac_status=$?
1868  if test -s conftest.err; then
1869    grep -v '^ *+' conftest.err >conftest.er1
1870    cat conftest.er1 >&5
1871    mv -f conftest.er1 conftest.err
1872  fi
1873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874  test $ac_status = 0; } > conftest.i && {
1875	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1876	 test ! -s conftest.err
1877       }; then :
1878  ac_retval=0
1879else
1880  $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883    ac_retval=1
1884fi
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_cxx_try_cpp
1889
1890# ac_fn_cxx_try_link LINENO
1891# -------------------------
1892# Try to link conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_cxx_try_link ()
1894{
1895  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896  rm -f conftest.$ac_objext conftest$ac_exeext
1897  if { { ac_try="$ac_link"
1898case "(($ac_try" in
1899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900  *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904  (eval "$ac_link") 2>conftest.err
1905  ac_status=$?
1906  if test -s conftest.err; then
1907    grep -v '^ *+' conftest.err >conftest.er1
1908    cat conftest.er1 >&5
1909    mv -f conftest.er1 conftest.err
1910  fi
1911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912  test $ac_status = 0; } && {
1913	 test -z "$ac_cxx_werror_flag" ||
1914	 test ! -s conftest.err
1915       } && test -s conftest$ac_exeext && {
1916	 test "$cross_compiling" = yes ||
1917	 test -x conftest$ac_exeext
1918       }; then :
1919  ac_retval=0
1920else
1921  $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924	ac_retval=1
1925fi
1926  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928  # interfere with the next link command; also delete a directory that is
1929  # left behind by Apple's compiler.  We do this before executing the actions.
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_link
1935
1936# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937# -------------------------------------------------------
1938# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939# the include files in INCLUDES and setting the cache variable VAR
1940# accordingly.
1941ac_fn_c_check_header_mongrel ()
1942{
1943  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944  if eval \${$3+:} false; then :
1945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948  $as_echo_n "(cached) " >&6
1949fi
1950eval ac_res=\$$3
1951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953else
1954  # Is the header compilable?
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956$as_echo_n "checking $2 usability... " >&6; }
1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959$4
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963  ac_header_compiler=yes
1964else
1965  ac_header_compiler=no
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969$as_echo "$ac_header_compiler" >&6; }
1970
1971# Is the header present?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973$as_echo_n "checking $2 presence... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976#include <$2>
1977_ACEOF
1978if ac_fn_c_try_cpp "$LINENO"; then :
1979  ac_header_preproc=yes
1980else
1981  ac_header_preproc=no
1982fi
1983rm -f conftest.err conftest.i conftest.$ac_ext
1984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985$as_echo "$ac_header_preproc" >&6; }
1986
1987# So?  What about this header?
1988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989  yes:no: )
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994    ;;
1995  no:yes:* )
1996    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1999$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2000    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2003$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2004    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006( $as_echo "## ---------------- ##
2007## Report this to - ##
2008## ---------------- ##"
2009     ) | sed "s/^/$as_me: WARNING:     /" >&2
2010    ;;
2011esac
2012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if eval \${$3+:} false; then :
2015  $as_echo_n "(cached) " >&6
2016else
2017  eval "$3=\$ac_header_compiler"
2018fi
2019eval ac_res=\$$3
2020	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022fi
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_c_check_header_mongrel
2026cat >config.log <<_ACEOF
2027This file contains any messages produced by compilers while
2028running configure, to aid debugging if configure makes a mistake.
2029
2030It was created by c-ares-test $as_me -, which was
2031generated by GNU Autoconf 2.69.  Invocation command line was
2032
2033  $ $0 $@
2034
2035_ACEOF
2036exec 5>>config.log
2037{
2038cat <<_ASUNAME
2039## --------- ##
2040## Platform. ##
2041## --------- ##
2042
2043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2051
2052/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2053/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2054/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2056/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2057/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2058/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2059
2060_ASUNAME
2061
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065  IFS=$as_save_IFS
2066  test -z "$as_dir" && as_dir=.
2067    $as_echo "PATH: $as_dir"
2068  done
2069IFS=$as_save_IFS
2070
2071} >&5
2072
2073cat >&5 <<_ACEOF
2074
2075
2076## ----------- ##
2077## Core tests. ##
2078## ----------- ##
2079
2080_ACEOF
2081
2082
2083# Keep a trace of the command line.
2084# Strip out --no-create and --no-recursion so they do not pile up.
2085# Strip out --silent because we don't want to record it for future runs.
2086# Also quote any args containing shell meta-characters.
2087# Make two passes to allow for proper duplicate-argument suppression.
2088ac_configure_args=
2089ac_configure_args0=
2090ac_configure_args1=
2091ac_must_keep_next=false
2092for ac_pass in 1 2
2093do
2094  for ac_arg
2095  do
2096    case $ac_arg in
2097    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099    | -silent | --silent | --silen | --sile | --sil)
2100      continue ;;
2101    *\'*)
2102      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103    esac
2104    case $ac_pass in
2105    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106    2)
2107      as_fn_append ac_configure_args1 " '$ac_arg'"
2108      if test $ac_must_keep_next = true; then
2109	ac_must_keep_next=false # Got value, back to normal.
2110      else
2111	case $ac_arg in
2112	  *=* | --config-cache | -C | -disable-* | --disable-* \
2113	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115	  | -with-* | --with-* | -without-* | --without-* | --x)
2116	    case "$ac_configure_args0 " in
2117	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118	    esac
2119	    ;;
2120	  -* ) ac_must_keep_next=true ;;
2121	esac
2122      fi
2123      as_fn_append ac_configure_args " '$ac_arg'"
2124      ;;
2125    esac
2126  done
2127done
2128{ ac_configure_args0=; unset ac_configure_args0;}
2129{ ac_configure_args1=; unset ac_configure_args1;}
2130
2131# When interrupted or exit'd, cleanup temporary files, and complete
2132# config.log.  We remove comments because anyway the quotes in there
2133# would cause problems or look ugly.
2134# WARNING: Use '\'' to represent an apostrophe within the trap.
2135# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136trap 'exit_status=$?
2137  # Save into config.log some information that might help in debugging.
2138  {
2139    echo
2140
2141    $as_echo "## ---------------- ##
2142## Cache variables. ##
2143## ---------------- ##"
2144    echo
2145    # The following way of writing the cache mishandles newlines in values,
2146(
2147  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148    eval ac_val=\$$ac_var
2149    case $ac_val in #(
2150    *${as_nl}*)
2151      case $ac_var in #(
2152      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154      esac
2155      case $ac_var in #(
2156      _ | IFS | as_nl) ;; #(
2157      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158      *) { eval $ac_var=; unset $ac_var;} ;;
2159      esac ;;
2160    esac
2161  done
2162  (set) 2>&1 |
2163    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164    *${as_nl}ac_space=\ *)
2165      sed -n \
2166	"s/'\''/'\''\\\\'\'''\''/g;
2167	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168      ;; #(
2169    *)
2170      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171      ;;
2172    esac |
2173    sort
2174)
2175    echo
2176
2177    $as_echo "## ----------------- ##
2178## Output variables. ##
2179## ----------------- ##"
2180    echo
2181    for ac_var in $ac_subst_vars
2182    do
2183      eval ac_val=\$$ac_var
2184      case $ac_val in
2185      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186      esac
2187      $as_echo "$ac_var='\''$ac_val'\''"
2188    done | sort
2189    echo
2190
2191    if test -n "$ac_subst_files"; then
2192      $as_echo "## ------------------- ##
2193## File substitutions. ##
2194## ------------------- ##"
2195      echo
2196      for ac_var in $ac_subst_files
2197      do
2198	eval ac_val=\$$ac_var
2199	case $ac_val in
2200	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201	esac
2202	$as_echo "$ac_var='\''$ac_val'\''"
2203      done | sort
2204      echo
2205    fi
2206
2207    if test -s confdefs.h; then
2208      $as_echo "## ----------- ##
2209## confdefs.h. ##
2210## ----------- ##"
2211      echo
2212      cat confdefs.h
2213      echo
2214    fi
2215    test "$ac_signal" != 0 &&
2216      $as_echo "$as_me: caught signal $ac_signal"
2217    $as_echo "$as_me: exit $exit_status"
2218  } >&5
2219  rm -f core *.core core.conftest.* &&
2220    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221    exit $exit_status
2222' 0
2223for ac_signal in 1 2 13 15; do
2224  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225done
2226ac_signal=0
2227
2228# confdefs.h avoids OS command line length limits that DEFS can exceed.
2229rm -f -r conftest* confdefs.h
2230
2231$as_echo "/* confdefs.h */" > confdefs.h
2232
2233# Predefined preprocessor variables.
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_NAME "$PACKAGE_NAME"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_VERSION "$PACKAGE_VERSION"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_STRING "$PACKAGE_STRING"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_URL "$PACKAGE_URL"
2257_ACEOF
2258
2259
2260# Let the site file select an alternate cache file if it wants to.
2261# Prefer an explicitly selected file to automatically selected ones.
2262ac_site_file1=NONE
2263ac_site_file2=NONE
2264if test -n "$CONFIG_SITE"; then
2265  # We do not want a PATH search for config.site.
2266  case $CONFIG_SITE in #((
2267    -*)  ac_site_file1=./$CONFIG_SITE;;
2268    */*) ac_site_file1=$CONFIG_SITE;;
2269    *)   ac_site_file1=./$CONFIG_SITE;;
2270  esac
2271elif test "x$prefix" != xNONE; then
2272  ac_site_file1=$prefix/share/config.site
2273  ac_site_file2=$prefix/etc/config.site
2274else
2275  ac_site_file1=$ac_default_prefix/share/config.site
2276  ac_site_file2=$ac_default_prefix/etc/config.site
2277fi
2278for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279do
2280  test "x$ac_site_file" = xNONE && continue
2281  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2282    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284    sed 's/^/| /' "$ac_site_file" >&5
2285    . "$ac_site_file" \
2286      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288as_fn_error $? "failed to load site script $ac_site_file
2289See \`config.log' for more details" "$LINENO" 5; }
2290  fi
2291done
2292
2293if test -r "$cache_file"; then
2294  # Some versions of bash will fail to source /dev/null (special files
2295  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2296  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298$as_echo "$as_me: loading cache $cache_file" >&6;}
2299    case $cache_file in
2300      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301      *)                      . "./$cache_file";;
2302    esac
2303  fi
2304else
2305  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306$as_echo "$as_me: creating cache $cache_file" >&6;}
2307  >$cache_file
2308fi
2309
2310# Check that the precious variables saved in the cache have kept the same
2311# value.
2312ac_cache_corrupted=false
2313for ac_var in $ac_precious_vars; do
2314  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315  eval ac_new_set=\$ac_env_${ac_var}_set
2316  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317  eval ac_new_val=\$ac_env_${ac_var}_value
2318  case $ac_old_set,$ac_new_set in
2319    set,)
2320      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322      ac_cache_corrupted=: ;;
2323    ,set)
2324      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326      ac_cache_corrupted=: ;;
2327    ,);;
2328    *)
2329      if test "x$ac_old_val" != "x$ac_new_val"; then
2330	# differences in whitespace do not lead to failure.
2331	ac_old_val_w=`echo x $ac_old_val`
2332	ac_new_val_w=`echo x $ac_new_val`
2333	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336	  ac_cache_corrupted=:
2337	else
2338	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340	  eval $ac_var=\$ac_old_val
2341	fi
2342	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2343$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2344	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2345$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2346      fi;;
2347  esac
2348  # Pass precious variables to config.status.
2349  if test "$ac_new_set" = set; then
2350    case $ac_new_val in
2351    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352    *) ac_arg=$ac_var=$ac_new_val ;;
2353    esac
2354    case " $ac_configure_args " in
2355      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2356      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357    esac
2358  fi
2359done
2360if $ac_cache_corrupted; then
2361  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366fi
2367## -------------------- ##
2368## Main body of script. ##
2369## -------------------- ##
2370
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379
2380
2381am__api_version='1.16'
2382
2383ac_aux_dir=
2384for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385  if test -f "$ac_dir/install-sh"; then
2386    ac_aux_dir=$ac_dir
2387    ac_install_sh="$ac_aux_dir/install-sh -c"
2388    break
2389  elif test -f "$ac_dir/install.sh"; then
2390    ac_aux_dir=$ac_dir
2391    ac_install_sh="$ac_aux_dir/install.sh -c"
2392    break
2393  elif test -f "$ac_dir/shtool"; then
2394    ac_aux_dir=$ac_dir
2395    ac_install_sh="$ac_aux_dir/shtool install -c"
2396    break
2397  fi
2398done
2399if test -z "$ac_aux_dir"; then
2400  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401fi
2402
2403# These three variables are undocumented and unsupported,
2404# and are intended to be withdrawn in a future Autoconf release.
2405# They can cause serious problems if a builder's source tree is in a directory
2406# whose full name contains unusual characters.
2407ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2408ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2409ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2410
2411
2412# Find a good install program.  We prefer a C program (faster),
2413# so one script is as good as another.  But avoid the broken or
2414# incompatible versions:
2415# SysV /etc/install, /usr/sbin/install
2416# SunOS /usr/etc/install
2417# IRIX /sbin/install
2418# AIX /bin/install
2419# AmigaOS /C/install, which installs bootblocks on floppy discs
2420# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423# OS/2's system install, which has a completely different semantic
2424# ./install, which can be erroneously created by make from ./install.sh.
2425# Reject install programs that cannot install multiple files.
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427$as_echo_n "checking for a BSD-compatible install... " >&6; }
2428if test -z "$INSTALL"; then
2429if ${ac_cv_path_install+:} false; then :
2430  $as_echo_n "(cached) " >&6
2431else
2432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435  IFS=$as_save_IFS
2436  test -z "$as_dir" && as_dir=.
2437    # Account for people who put trailing slashes in PATH elements.
2438case $as_dir/ in #((
2439  ./ | .// | /[cC]/* | \
2440  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2442  /usr/ucb/* ) ;;
2443  *)
2444    # OSF1 and SCO ODT 3.0 have their own names for install.
2445    # Don't use installbsd from OSF since it installs stuff as root
2446    # by default.
2447    for ac_prog in ginstall scoinst install; do
2448      for ac_exec_ext in '' $ac_executable_extensions; do
2449	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2450	  if test $ac_prog = install &&
2451	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452	    # AIX install.  It has an incompatible calling convention.
2453	    :
2454	  elif test $ac_prog = install &&
2455	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456	    # program-specific install script used by HP pwplus--don't use.
2457	    :
2458	  else
2459	    rm -rf conftest.one conftest.two conftest.dir
2460	    echo one > conftest.one
2461	    echo two > conftest.two
2462	    mkdir conftest.dir
2463	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464	      test -s conftest.one && test -s conftest.two &&
2465	      test -s conftest.dir/conftest.one &&
2466	      test -s conftest.dir/conftest.two
2467	    then
2468	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469	      break 3
2470	    fi
2471	  fi
2472	fi
2473      done
2474    done
2475    ;;
2476esac
2477
2478  done
2479IFS=$as_save_IFS
2480
2481rm -rf conftest.one conftest.two conftest.dir
2482
2483fi
2484  if test "${ac_cv_path_install+set}" = set; then
2485    INSTALL=$ac_cv_path_install
2486  else
2487    # As a last resort, use the slow shell script.  Don't cache a
2488    # value for INSTALL within a source directory, because that will
2489    # break other packages using the cache if that directory is
2490    # removed, or if the value is a relative name.
2491    INSTALL=$ac_install_sh
2492  fi
2493fi
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495$as_echo "$INSTALL" >&6; }
2496
2497# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498# It thinks the first close brace ends the variable substitution.
2499test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506$as_echo_n "checking whether build environment is sane... " >&6; }
2507# Reject unsafe characters in $srcdir or the absolute working directory
2508# name.  Accept space and tab only in the latter.
2509am_lf='
2510'
2511case `pwd` in
2512  *[\\\"\#\$\&\'\`$am_lf]*)
2513    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2514esac
2515case $srcdir in
2516  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2517    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2518esac
2519
2520# Do 'set' in a subshell so we don't clobber the current shell's
2521# arguments.  Must try -L first in case configure is actually a
2522# symlink; some systems play weird games with the mod time of symlinks
2523# (eg FreeBSD returns the mod time of the symlink's containing
2524# directory).
2525if (
2526   am_has_slept=no
2527   for am_try in 1 2; do
2528     echo "timestamp, slept: $am_has_slept" > conftest.file
2529     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530     if test "$*" = "X"; then
2531	# -L didn't work.
2532	set X `ls -t "$srcdir/configure" conftest.file`
2533     fi
2534     if test "$*" != "X $srcdir/configure conftest.file" \
2535	&& test "$*" != "X conftest.file $srcdir/configure"; then
2536
2537	# If neither matched, then we have a broken ls.  This can happen
2538	# if, for instance, CONFIG_SHELL is bash and it inherits a
2539	# broken ls alias from the environment.  This has actually
2540	# happened.  Such a system could not be considered "sane".
2541	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2542  alias in your environment" "$LINENO" 5
2543     fi
2544     if test "$2" = conftest.file || test $am_try -eq 2; then
2545       break
2546     fi
2547     # Just in case.
2548     sleep 1
2549     am_has_slept=yes
2550   done
2551   test "$2" = conftest.file
2552   )
2553then
2554   # Ok.
2555   :
2556else
2557   as_fn_error $? "newly created file is older than distributed files!
2558Check your system clock" "$LINENO" 5
2559fi
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561$as_echo "yes" >&6; }
2562# If we didn't sleep, we still need to ensure time stamps of config.status and
2563# generated files are strictly newer.
2564am_sleep_pid=
2565if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2566  ( sleep 1 ) &
2567  am_sleep_pid=$!
2568fi
2569
2570rm -f conftest.file
2571
2572test "$program_prefix" != NONE &&
2573  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2574# Use a double $ so make ignores it.
2575test "$program_suffix" != NONE &&
2576  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577# Double any \ or $.
2578# By default was `s,x,x', remove it if useless.
2579ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2581
2582# Expand $ac_aux_dir to an absolute path.
2583am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
2585if test x"${MISSING+set}" != xset; then
2586  case $am_aux_dir in
2587  *\ * | *\	*)
2588    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2589  *)
2590    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2591  esac
2592fi
2593# Use eval to expand $SHELL
2594if eval "$MISSING --is-lightweight"; then
2595  am_missing_run="$MISSING "
2596else
2597  am_missing_run=
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2599$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2600fi
2601
2602if test x"${install_sh+set}" != xset; then
2603  case $am_aux_dir in
2604  *\ * | *\	*)
2605    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606  *)
2607    install_sh="\${SHELL} $am_aux_dir/install-sh"
2608  esac
2609fi
2610
2611# Installed binaries are usually stripped using 'strip' when the user
2612# run "make install-strip".  However 'strip' might not be the right
2613# tool to use in cross-compilation environments, therefore Automake
2614# will honor the 'STRIP' environment variable to overrule this program.
2615if test "$cross_compiling" != no; then
2616  if test -n "$ac_tool_prefix"; then
2617  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618set dummy ${ac_tool_prefix}strip; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if ${ac_cv_prog_STRIP+:} false; then :
2622  $as_echo_n "(cached) " >&6
2623else
2624  if test -n "$STRIP"; then
2625  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632    for ac_exec_ext in '' $ac_executable_extensions; do
2633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636    break 2
2637  fi
2638done
2639  done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644STRIP=$ac_cv_prog_STRIP
2645if test -n "$STRIP"; then
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647$as_echo "$STRIP" >&6; }
2648else
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653
2654fi
2655if test -z "$ac_cv_prog_STRIP"; then
2656  ac_ct_STRIP=$STRIP
2657  # Extract the first word of "strip", so it can be a program name with args.
2658set dummy strip; ac_word=$2
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660$as_echo_n "checking for $ac_word... " >&6; }
2661if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662  $as_echo_n "(cached) " >&6
2663else
2664  if test -n "$ac_ct_STRIP"; then
2665  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672    for ac_exec_ext in '' $ac_executable_extensions; do
2673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674    ac_cv_prog_ac_ct_STRIP="strip"
2675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676    break 2
2677  fi
2678done
2679  done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685if test -n "$ac_ct_STRIP"; then
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687$as_echo "$ac_ct_STRIP" >&6; }
2688else
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691fi
2692
2693  if test "x$ac_ct_STRIP" = x; then
2694    STRIP=":"
2695  else
2696    case $cross_compiling:$ac_tool_warned in
2697yes:)
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702    STRIP=$ac_ct_STRIP
2703  fi
2704else
2705  STRIP="$ac_cv_prog_STRIP"
2706fi
2707
2708fi
2709INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713if test -z "$MKDIR_P"; then
2714  if ${ac_cv_path_mkdir+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722    for ac_prog in mkdir gmkdir; do
2723	 for ac_exec_ext in '' $ac_executable_extensions; do
2724	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2725	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2726	     'mkdir (GNU coreutils) '* | \
2727	     'mkdir (coreutils) '* | \
2728	     'mkdir (fileutils) '4.1*)
2729	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2730	       break 3;;
2731	   esac
2732	 done
2733       done
2734  done
2735IFS=$as_save_IFS
2736
2737fi
2738
2739  test -d ./--version && rmdir ./--version
2740  if test "${ac_cv_path_mkdir+set}" = set; then
2741    MKDIR_P="$ac_cv_path_mkdir -p"
2742  else
2743    # As a last resort, use the slow shell script.  Don't cache a
2744    # value for MKDIR_P within a source directory, because that will
2745    # break other packages using the cache if that directory is
2746    # removed, or if the value is a relative name.
2747    MKDIR_P="$ac_install_sh -d"
2748  fi
2749fi
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751$as_echo "$MKDIR_P" >&6; }
2752
2753for ac_prog in gawk mawk nawk awk
2754do
2755  # Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
2759if ${ac_cv_prog_AWK+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  if test -n "$AWK"; then
2763  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770    for ac_exec_ext in '' $ac_executable_extensions; do
2771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    ac_cv_prog_AWK="$ac_prog"
2773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777  done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782AWK=$ac_cv_prog_AWK
2783if test -n "$AWK"; then
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785$as_echo "$AWK" >&6; }
2786else
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791
2792  test -n "$AWK" && break
2793done
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797set x ${MAKE-make}
2798ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  cat >conftest.make <<\_ACEOF
2803SHELL = /bin/sh
2804all:
2805	@echo '@@@%%%=$(MAKE)=@@@%%%'
2806_ACEOF
2807# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809  *@@@%%%=?*=@@@%%%*)
2810    eval ac_cv_prog_make_${ac_make}_set=yes;;
2811  *)
2812    eval ac_cv_prog_make_${ac_make}_set=no;;
2813esac
2814rm -f conftest.make
2815fi
2816if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818$as_echo "yes" >&6; }
2819  SET_MAKE=
2820else
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823  SET_MAKE="MAKE=${MAKE-make}"
2824fi
2825
2826rm -rf .tst 2>/dev/null
2827mkdir .tst 2>/dev/null
2828if test -d .tst; then
2829  am__leading_dot=.
2830else
2831  am__leading_dot=_
2832fi
2833rmdir .tst 2>/dev/null
2834
2835# Check whether --enable-silent-rules was given.
2836if test "${enable_silent_rules+set}" = set; then :
2837  enableval=$enable_silent_rules;
2838fi
2839
2840case $enable_silent_rules in # (((
2841  yes) AM_DEFAULT_VERBOSITY=0;;
2842   no) AM_DEFAULT_VERBOSITY=1;;
2843    *) AM_DEFAULT_VERBOSITY=1;;
2844esac
2845am_make=${MAKE-make}
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2847$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2848if ${am_cv_make_support_nested_variables+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if $as_echo 'TRUE=$(BAR$(V))
2852BAR0=false
2853BAR1=true
2854V=1
2855am__doit:
2856	@$(TRUE)
2857.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2858  am_cv_make_support_nested_variables=yes
2859else
2860  am_cv_make_support_nested_variables=no
2861fi
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2864$as_echo "$am_cv_make_support_nested_variables" >&6; }
2865if test $am_cv_make_support_nested_variables = yes; then
2866    AM_V='$(V)'
2867  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2868else
2869  AM_V=$AM_DEFAULT_VERBOSITY
2870  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2871fi
2872AM_BACKSLASH='\'
2873
2874if test "`cd $srcdir && pwd`" != "`pwd`"; then
2875  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2876  # is not polluted with repeated "-I."
2877  am__isrc=' -I$(srcdir)'
2878  # test to see if srcdir already configured
2879  if test -f $srcdir/config.status; then
2880    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2881  fi
2882fi
2883
2884# test whether we have cygpath
2885if test -z "$CYGPATH_W"; then
2886  if (cygpath --version) >/dev/null 2>/dev/null; then
2887    CYGPATH_W='cygpath -w'
2888  else
2889    CYGPATH_W=echo
2890  fi
2891fi
2892
2893
2894# Define the identity of the package.
2895 PACKAGE='c-ares-test'
2896 VERSION='-'
2897
2898
2899# Some tools Automake needs.
2900
2901ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2902
2903
2904AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2905
2906
2907AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2908
2909
2910AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2911
2912
2913MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2914
2915# For better backward compatibility.  To be removed once Automake 1.9.x
2916# dies out for good.  For more background, see:
2917# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2918# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2919mkdir_p='$(MKDIR_P)'
2920
2921# We need awk for the "check" target (and possibly the TAP driver).  The
2922# system "awk" is bad on some platforms.
2923# Always define AMTAR for backward compatibility.  Yes, it's still used
2924# in the wild :-(  We should find a proper way to deprecate it ...
2925AMTAR='$${TAR-tar}'
2926
2927
2928# We'll loop over all known methods to create a tar archive until one works.
2929_am_tools='gnutar  pax cpio none'
2930
2931am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2932
2933
2934
2935
2936
2937
2938# POSIX will say in a future version that running "rm -f" with no argument
2939# is OK; and we want to be able to make that assumption in our Makefile
2940# recipes.  So use an aggressive probe to check that the usage we want is
2941# actually supported "in the wild" to an acceptable degree.
2942# See automake bug#10828.
2943# To make any issue more visible, cause the running configure to be aborted
2944# by default if the 'rm' program in use doesn't match our expectations; the
2945# user can still override this though.
2946if rm -f && rm -fr && rm -rf; then : OK; else
2947  cat >&2 <<'END'
2948Oops!
2949
2950Your 'rm' program seems unable to run without file operands specified
2951on the command line, even when the '-f' option is present.  This is contrary
2952to the behaviour of most rm programs out there, and not conforming with
2953the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2954
2955Please tell bug-automake@gnu.org about your system, including the value
2956of your $PATH and any error possibly output before this message.  This
2957can help us improve future automake versions.
2958
2959END
2960  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2961    echo 'Configuration will proceed anyway, since you have set the' >&2
2962    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2963    echo >&2
2964  else
2965    cat >&2 <<'END'
2966Aborting the configuration process, to ensure you take notice of the issue.
2967
2968You can download and install GNU coreutils to get an 'rm' implementation
2969that behaves properly: <https://www.gnu.org/software/coreutils/>.
2970
2971If you want to complete the configuration process using your problematic
2972'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2973to "yes", and re-run configure.
2974
2975END
2976    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2977  fi
2978fi
2979
2980# Check whether --enable-silent-rules was given.
2981if test "${enable_silent_rules+set}" = set; then :
2982  enableval=$enable_silent_rules;
2983fi
2984
2985case $enable_silent_rules in # (((
2986  yes) AM_DEFAULT_VERBOSITY=0;;
2987   no) AM_DEFAULT_VERBOSITY=1;;
2988    *) AM_DEFAULT_VERBOSITY=0;;
2989esac
2990am_make=${MAKE-make}
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2992$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2993if ${am_cv_make_support_nested_variables+:} false; then :
2994  $as_echo_n "(cached) " >&6
2995else
2996  if $as_echo 'TRUE=$(BAR$(V))
2997BAR0=false
2998BAR1=true
2999V=1
3000am__doit:
3001	@$(TRUE)
3002.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3003  am_cv_make_support_nested_variables=yes
3004else
3005  am_cv_make_support_nested_variables=no
3006fi
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3009$as_echo "$am_cv_make_support_nested_variables" >&6; }
3010if test $am_cv_make_support_nested_variables = yes; then
3011    AM_V='$(V)'
3012  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3013else
3014  AM_V=$AM_DEFAULT_VERBOSITY
3015  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3016fi
3017AM_BACKSLASH='\'
3018
3019
3020ac_ext=cpp
3021ac_cpp='$CXXCPP $CPPFLAGS'
3022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3025if test -z "$CXX"; then
3026  if test -n "$CCC"; then
3027    CXX=$CCC
3028  else
3029    if test -n "$ac_tool_prefix"; then
3030  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3031  do
3032    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if ${ac_cv_prog_CXX+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$CXX"; then
3040  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059CXX=$ac_cv_prog_CXX
3060if test -n "$CXX"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3062$as_echo "$CXX" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069    test -n "$CXX" && break
3070  done
3071fi
3072if test -z "$CXX"; then
3073  ac_ct_CXX=$CXX
3074  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3075do
3076  # Extract the first word of "$ac_prog", so it can be a program name with args.
3077set dummy $ac_prog; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$ac_ct_CXX"; then
3084  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_ac_ct_CXX="$ac_prog"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3104if test -n "$ac_ct_CXX"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3106$as_echo "$ac_ct_CXX" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113  test -n "$ac_ct_CXX" && break
3114done
3115
3116  if test "x$ac_ct_CXX" = x; then
3117    CXX="g++"
3118  else
3119    case $cross_compiling:$ac_tool_warned in
3120yes:)
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123ac_tool_warned=yes ;;
3124esac
3125    CXX=$ac_ct_CXX
3126  fi
3127fi
3128
3129  fi
3130fi
3131# Provide some information about the compiler.
3132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3133set X $ac_compile
3134ac_compiler=$2
3135for ac_option in --version -v -V -qversion; do
3136  { { ac_try="$ac_compiler $ac_option >&5"
3137case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
3143  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3144  ac_status=$?
3145  if test -s conftest.err; then
3146    sed '10a\
3147... rest of stderr output deleted ...
3148         10q' conftest.err >conftest.er1
3149    cat conftest.er1 >&5
3150  fi
3151  rm -f conftest.er1 conftest.err
3152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153  test $ac_status = 0; }
3154done
3155
3156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167ac_clean_files_save=$ac_clean_files
3168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169# Try to create an executable without -o first, disregard a.out.
3170# It will help us diagnose broken compilers, and finding out an intuition
3171# of exeext.
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3173$as_echo_n "checking whether the C++ compiler works... " >&6; }
3174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176# The possible output files:
3177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
3179ac_rmfiles=
3180for ac_file in $ac_files
3181do
3182  case $ac_file in
3183    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185  esac
3186done
3187rm -f $ac_rmfiles
3188
3189if { { ac_try="$ac_link_default"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196  (eval "$ac_link_default") 2>&5
3197  ac_status=$?
3198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199  test $ac_status = 0; }; then :
3200  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3203# so that the user can short-circuit this test for compilers unknown to
3204# Autoconf.
3205for ac_file in $ac_files ''
3206do
3207  test -f "$ac_file" || continue
3208  case $ac_file in
3209    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3210	;;
3211    [ab].out )
3212	# We found the default executable, but exeext='' is most
3213	# certainly right.
3214	break;;
3215    *.* )
3216	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3217	then :; else
3218	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219	fi
3220	# We set ac_cv_exeext here because the later test for it is not
3221	# safe: cross compilers may not add the suffix if given an `-o'
3222	# argument, so we may need to know it at that point already.
3223	# Even if this section looks crufty: it has the advantage of
3224	# actually working.
3225	break;;
3226    * )
3227	break;;
3228  esac
3229done
3230test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
3232else
3233  ac_file=''
3234fi
3235if test -z "$ac_file"; then :
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238$as_echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error 77 "C++ compiler cannot create executables
3244See \`config.log' for more details" "$LINENO" 5; }
3245else
3246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247$as_echo "yes" >&6; }
3248fi
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3250$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252$as_echo "$ac_file" >&6; }
3253ac_exeext=$ac_cv_exeext
3254
3255rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256ac_clean_files=$ac_clean_files_save
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258$as_echo_n "checking for suffix of executables... " >&6; }
3259if { { ac_try="$ac_link"
3260case "(($ac_try" in
3261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262  *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266  (eval "$ac_link") 2>&5
3267  ac_status=$?
3268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269  test $ac_status = 0; }; then :
3270  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3272# work properly (i.e., refer to `conftest.exe'), while it won't with
3273# `rm'.
3274for ac_file in conftest.exe conftest conftest.*; do
3275  test -f "$ac_file" || continue
3276  case $ac_file in
3277    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279	  break;;
3280    * ) break;;
3281  esac
3282done
3283else
3284  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details" "$LINENO" 5; }
3288fi
3289rm -f conftest conftest$ac_cv_exeext
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291$as_echo "$ac_cv_exeext" >&6; }
3292
3293rm -f conftest.$ac_ext
3294EXEEXT=$ac_cv_exeext
3295ac_exeext=$EXEEXT
3296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h.  */
3298#include <stdio.h>
3299int
3300main ()
3301{
3302FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3304
3305  ;
3306  return 0;
3307}
3308_ACEOF
3309ac_clean_files="$ac_clean_files conftest.out"
3310# Check that the compiler produces executables we can run.  If not, either
3311# the compiler is broken, or we cross compile.
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313$as_echo_n "checking whether we are cross compiling... " >&6; }
3314if test "$cross_compiling" != yes; then
3315  { { ac_try="$ac_link"
3316case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322  (eval "$ac_link") 2>&5
3323  ac_status=$?
3324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325  test $ac_status = 0; }
3326  if { ac_try='./conftest$ac_cv_exeext'
3327  { { case "(($ac_try" in
3328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329  *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333  (eval "$ac_try") 2>&5
3334  ac_status=$?
3335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336  test $ac_status = 0; }; }; then
3337    cross_compiling=no
3338  else
3339    if test "$cross_compiling" = maybe; then
3340	cross_compiling=yes
3341    else
3342	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344as_fn_error $? "cannot run C++ compiled programs.
3345If you meant to cross compile, use \`--host'.
3346See \`config.log' for more details" "$LINENO" 5; }
3347    fi
3348  fi
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351$as_echo "$cross_compiling" >&6; }
3352
3353rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354ac_clean_files=$ac_clean_files_save
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356$as_echo_n "checking for suffix of object files... " >&6; }
3357if ${ac_cv_objext+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h.  */
3362
3363int
3364main ()
3365{
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371rm -f conftest.o conftest.obj
3372if { { ac_try="$ac_compile"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379  (eval "$ac_compile") 2>&5
3380  ac_status=$?
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }; then :
3383  for ac_file in conftest.o conftest.obj conftest.*; do
3384  test -f "$ac_file" || continue;
3385  case $ac_file in
3386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388       break;;
3389  esac
3390done
3391else
3392  $as_echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error $? "cannot compute suffix of object files: cannot compile
3398See \`config.log' for more details" "$LINENO" 5; }
3399fi
3400rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401fi
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403$as_echo "$ac_cv_objext" >&6; }
3404OBJEXT=$ac_cv_objext
3405ac_objext=$OBJEXT
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3407$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3408if ${ac_cv_cxx_compiler_gnu+:} false; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main ()
3416{
3417#ifndef __GNUC__
3418       choke me
3419#endif
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425if ac_fn_cxx_try_compile "$LINENO"; then :
3426  ac_compiler_gnu=yes
3427else
3428  ac_compiler_gnu=no
3429fi
3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3432
3433fi
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3435$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3436if test $ac_compiler_gnu = yes; then
3437  GXX=yes
3438else
3439  GXX=
3440fi
3441ac_test_CXXFLAGS=${CXXFLAGS+set}
3442ac_save_CXXFLAGS=$CXXFLAGS
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3444$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3445if ${ac_cv_prog_cxx_g+:} false; then :
3446  $as_echo_n "(cached) " >&6
3447else
3448  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3449   ac_cxx_werror_flag=yes
3450   ac_cv_prog_cxx_g=no
3451   CXXFLAGS="-g"
3452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463if ac_fn_cxx_try_compile "$LINENO"; then :
3464  ac_cv_prog_cxx_g=yes
3465else
3466  CXXFLAGS=""
3467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478if ac_fn_cxx_try_compile "$LINENO"; then :
3479
3480else
3481  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3482	 CXXFLAGS="-g"
3483	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h.  */
3485
3486int
3487main ()
3488{
3489
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494if ac_fn_cxx_try_compile "$LINENO"; then :
3495  ac_cv_prog_cxx_g=yes
3496fi
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500fi
3501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3505$as_echo "$ac_cv_prog_cxx_g" >&6; }
3506if test "$ac_test_CXXFLAGS" = set; then
3507  CXXFLAGS=$ac_save_CXXFLAGS
3508elif test $ac_cv_prog_cxx_g = yes; then
3509  if test "$GXX" = yes; then
3510    CXXFLAGS="-g -O2"
3511  else
3512    CXXFLAGS="-g"
3513  fi
3514else
3515  if test "$GXX" = yes; then
3516    CXXFLAGS="-O2"
3517  else
3518    CXXFLAGS=
3519  fi
3520fi
3521ac_ext=c
3522ac_cpp='$CPP $CPPFLAGS'
3523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526DEPDIR="${am__leading_dot}deps"
3527
3528ac_config_commands="$ac_config_commands depfiles"
3529
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3531$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3532cat > confinc.mk << 'END'
3533am__doit:
3534	@echo this is the am__doit target >confinc.out
3535.PHONY: am__doit
3536END
3537am__include="#"
3538am__quote=
3539# BSD make does it like this.
3540echo '.include "confinc.mk" # ignored' > confmf.BSD
3541# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3542echo 'include confinc.mk # ignored' > confmf.GNU
3543_am_result=no
3544for s in GNU BSD; do
3545  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3546   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); }
3550  case $?:`cat confinc.out 2>/dev/null` in #(
3551  '0:this is the am__doit target') :
3552    case $s in #(
3553  BSD) :
3554    am__include='.include' am__quote='"' ;; #(
3555  *) :
3556    am__include='include' am__quote='' ;;
3557esac ;; #(
3558  *) :
3559     ;;
3560esac
3561  if test "$am__include" != "#"; then
3562    _am_result="yes ($s style)"
3563    break
3564  fi
3565done
3566rm -f confinc.* confmf.*
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3568$as_echo "${_am_result}" >&6; }
3569
3570# Check whether --enable-dependency-tracking was given.
3571if test "${enable_dependency_tracking+set}" = set; then :
3572  enableval=$enable_dependency_tracking;
3573fi
3574
3575if test "x$enable_dependency_tracking" != xno; then
3576  am_depcomp="$ac_aux_dir/depcomp"
3577  AMDEPBACKSLASH='\'
3578  am__nodep='_no'
3579fi
3580 if test "x$enable_dependency_tracking" != xno; then
3581  AMDEP_TRUE=
3582  AMDEP_FALSE='#'
3583else
3584  AMDEP_TRUE='#'
3585  AMDEP_FALSE=
3586fi
3587
3588
3589
3590depcc="$CXX"  am_compiler_list=
3591
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3593$as_echo_n "checking dependency style of $depcc... " >&6; }
3594if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3598  # We make a subdir and do the tests there.  Otherwise we can end up
3599  # making bogus files that we don't know about and never remove.  For
3600  # instance it was reported that on HP-UX the gcc test will end up
3601  # making a dummy file named 'D' -- because '-MD' means "put the output
3602  # in D".
3603  rm -rf conftest.dir
3604  mkdir conftest.dir
3605  # Copy depcomp to subdir because otherwise we won't find it if we're
3606  # using a relative directory.
3607  cp "$am_depcomp" conftest.dir
3608  cd conftest.dir
3609  # We will build objects and dependencies in a subdirectory because
3610  # it helps to detect inapplicable dependency modes.  For instance
3611  # both Tru64's cc and ICC support -MD to output dependencies as a
3612  # side effect of compilation, but ICC will put the dependencies in
3613  # the current directory while Tru64 will put them in the object
3614  # directory.
3615  mkdir sub
3616
3617  am_cv_CXX_dependencies_compiler_type=none
3618  if test "$am_compiler_list" = ""; then
3619     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3620  fi
3621  am__universal=false
3622  case " $depcc " in #(
3623     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3624     esac
3625
3626  for depmode in $am_compiler_list; do
3627    # Setup a source with many dependencies, because some compilers
3628    # like to wrap large dependency lists on column 80 (with \), and
3629    # we should not choose a depcomp mode which is confused by this.
3630    #
3631    # We need to recreate these files for each test, as the compiler may
3632    # overwrite some of them when testing with obscure command lines.
3633    # This happens at least with the AIX C compiler.
3634    : > sub/conftest.c
3635    for i in 1 2 3 4 5 6; do
3636      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3637      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3638      # Solaris 10 /bin/sh.
3639      echo '/* dummy */' > sub/conftst$i.h
3640    done
3641    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3642
3643    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3644    # mode.  It turns out that the SunPro C++ compiler does not properly
3645    # handle '-M -o', and we need to detect this.  Also, some Intel
3646    # versions had trouble with output in subdirs.
3647    am__obj=sub/conftest.${OBJEXT-o}
3648    am__minus_obj="-o $am__obj"
3649    case $depmode in
3650    gcc)
3651      # This depmode causes a compiler race in universal mode.
3652      test "$am__universal" = false || continue
3653      ;;
3654    nosideeffect)
3655      # After this tag, mechanisms are not by side-effect, so they'll
3656      # only be used when explicitly requested.
3657      if test "x$enable_dependency_tracking" = xyes; then
3658	continue
3659      else
3660	break
3661      fi
3662      ;;
3663    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3664      # This compiler won't grok '-c -o', but also, the minuso test has
3665      # not run yet.  These depmodes are late enough in the game, and
3666      # so weak that their functioning should not be impacted.
3667      am__obj=conftest.${OBJEXT-o}
3668      am__minus_obj=
3669      ;;
3670    none) break ;;
3671    esac
3672    if depmode=$depmode \
3673       source=sub/conftest.c object=$am__obj \
3674       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3675       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3676         >/dev/null 2>conftest.err &&
3677       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3678       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3680       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681      # icc doesn't choke on unknown options, it will just issue warnings
3682      # or remarks (even with -Werror).  So we grep stderr for any message
3683      # that says an option was ignored or not supported.
3684      # When given -MP, icc 7.0 and 7.1 complain thusly:
3685      #   icc: Command line warning: ignoring option '-M'; no argument required
3686      # The diagnosis changed in icc 8.0:
3687      #   icc: Command line remark: option '-MP' not supported
3688      if (grep 'ignoring option' conftest.err ||
3689          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690        am_cv_CXX_dependencies_compiler_type=$depmode
3691        break
3692      fi
3693    fi
3694  done
3695
3696  cd ..
3697  rm -rf conftest.dir
3698else
3699  am_cv_CXX_dependencies_compiler_type=none
3700fi
3701
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3704$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3705CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3706
3707 if
3708  test "x$enable_dependency_tracking" != xno \
3709  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3710  am__fastdepCXX_TRUE=
3711  am__fastdepCXX_FALSE='#'
3712else
3713  am__fastdepCXX_TRUE='#'
3714  am__fastdepCXX_FALSE=
3715fi
3716
3717
3718
3719    ax_cxx_compile_cxx11_required=true
3720  ac_ext=cpp
3721ac_cpp='$CXXCPP $CPPFLAGS'
3722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725  ac_success=no
3726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3727$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3728if ${ax_cv_cxx_compile_cxx11+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h.  */
3733
3734  template <typename T>
3735    struct check
3736    {
3737      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3738    };
3739
3740    struct Base {
3741    virtual void f() {}
3742    };
3743    struct Child : public Base {
3744    virtual void f() override {}
3745    };
3746
3747    typedef check<check<bool>> right_angle_brackets;
3748
3749    int a;
3750    decltype(a) b;
3751
3752    typedef check<int> check_type;
3753    check_type c;
3754    check_type&& cr = static_cast<check_type&&>(c);
3755
3756    auto d = a;
3757    auto l = [](){};
3758
3759    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3760    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3761    namespace test_template_alias_sfinae {
3762        struct foo {};
3763
3764        template<typename T>
3765        using member = typename T::member_type;
3766
3767        template<typename T>
3768        void func(...) {}
3769
3770        template<typename T>
3771        void func(member<T>*) {}
3772
3773        void test();
3774
3775        void test() {
3776            func<foo>(0);
3777        }
3778    }
3779
3780_ACEOF
3781if ac_fn_cxx_try_compile "$LINENO"; then :
3782  ax_cv_cxx_compile_cxx11=yes
3783else
3784  ax_cv_cxx_compile_cxx11=no
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3789$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3790  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3791    ac_success=yes
3792  fi
3793
3794
3795
3796    if test x$ac_success = xno; then
3797    for switch in -std=c++11 -std=c++0x; do
3798      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3799      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3800$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3801if eval \${$cachevar+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  ac_save_CXXFLAGS="$CXXFLAGS"
3805         CXXFLAGS="$CXXFLAGS $switch"
3806         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809  template <typename T>
3810    struct check
3811    {
3812      static_assert(sizeof(int) <= sizeof(T), "not big enough");
3813    };
3814
3815    struct Base {
3816    virtual void f() {}
3817    };
3818    struct Child : public Base {
3819    virtual void f() override {}
3820    };
3821
3822    typedef check<check<bool>> right_angle_brackets;
3823
3824    int a;
3825    decltype(a) b;
3826
3827    typedef check<int> check_type;
3828    check_type c;
3829    check_type&& cr = static_cast<check_type&&>(c);
3830
3831    auto d = a;
3832    auto l = [](){};
3833
3834    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3835    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3836    namespace test_template_alias_sfinae {
3837        struct foo {};
3838
3839        template<typename T>
3840        using member = typename T::member_type;
3841
3842        template<typename T>
3843        void func(...) {}
3844
3845        template<typename T>
3846        void func(member<T>*) {}
3847
3848        void test();
3849
3850        void test() {
3851            func<foo>(0);
3852        }
3853    }
3854
3855_ACEOF
3856if ac_fn_cxx_try_compile "$LINENO"; then :
3857  eval $cachevar=yes
3858else
3859  eval $cachevar=no
3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862         CXXFLAGS="$ac_save_CXXFLAGS"
3863fi
3864eval ac_res=\$$cachevar
3865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3866$as_echo "$ac_res" >&6; }
3867      if eval test x\$$cachevar = xyes; then
3868        CXXFLAGS="$CXXFLAGS $switch"
3869        ac_success=yes
3870        break
3871      fi
3872    done
3873  fi
3874  ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880  if test x$ax_cxx_compile_cxx11_required = xtrue; then
3881    if test x$ac_success = xno; then
3882      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3883    fi
3884  else
3885    if test x$ac_success = xno; then
3886      HAVE_CXX11=0
3887      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3888$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3889    else
3890      HAVE_CXX11=1
3891
3892$as_echo "#define HAVE_CXX11 1" >>confdefs.h
3893
3894    fi
3895
3896
3897  fi
3898
3899case `pwd` in
3900  *\ * | *\	*)
3901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3902$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3903esac
3904
3905
3906
3907macro_version='2.4.6'
3908macro_revision='2.4.6'
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922ltmain=$ac_aux_dir/ltmain.sh
3923
3924# Make sure we can run config.sub.
3925$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3926  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3927
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3929$as_echo_n "checking build system type... " >&6; }
3930if ${ac_cv_build+:} false; then :
3931  $as_echo_n "(cached) " >&6
3932else
3933  ac_build_alias=$build_alias
3934test "x$ac_build_alias" = x &&
3935  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3936test "x$ac_build_alias" = x &&
3937  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3938ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3939  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3940
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3943$as_echo "$ac_cv_build" >&6; }
3944case $ac_cv_build in
3945*-*-*) ;;
3946*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3947esac
3948build=$ac_cv_build
3949ac_save_IFS=$IFS; IFS='-'
3950set x $ac_cv_build
3951shift
3952build_cpu=$1
3953build_vendor=$2
3954shift; shift
3955# Remember, the first character of IFS is used to create $*,
3956# except with old shells:
3957build_os=$*
3958IFS=$ac_save_IFS
3959case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3960
3961
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3963$as_echo_n "checking host system type... " >&6; }
3964if ${ac_cv_host+:} false; then :
3965  $as_echo_n "(cached) " >&6
3966else
3967  if test "x$host_alias" = x; then
3968  ac_cv_host=$ac_cv_build
3969else
3970  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3971    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3972fi
3973
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3976$as_echo "$ac_cv_host" >&6; }
3977case $ac_cv_host in
3978*-*-*) ;;
3979*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3980esac
3981host=$ac_cv_host
3982ac_save_IFS=$IFS; IFS='-'
3983set x $ac_cv_host
3984shift
3985host_cpu=$1
3986host_vendor=$2
3987shift; shift
3988# Remember, the first character of IFS is used to create $*,
3989# except with old shells:
3990host_os=$*
3991IFS=$ac_save_IFS
3992case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3993
3994
3995# Backslashify metacharacters that are still active within
3996# double-quoted strings.
3997sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3998
3999# Same as above, but do not quote variable references.
4000double_quote_subst='s/\(["`\\]\)/\\\1/g'
4001
4002# Sed substitution to delay expansion of an escaped shell variable in a
4003# double_quote_subst'ed string.
4004delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4005
4006# Sed substitution to delay expansion of an escaped single quote.
4007delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4008
4009# Sed substitution to avoid accidental globbing in evaled expressions
4010no_glob_subst='s/\*/\\\*/g'
4011
4012ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4013ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4014ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4015
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4017$as_echo_n "checking how to print strings... " >&6; }
4018# Test print first, because it will be a builtin if present.
4019if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4020   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4021  ECHO='print -r --'
4022elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4023  ECHO='printf %s\n'
4024else
4025  # Use this function as a fallback that always works.
4026  func_fallback_echo ()
4027  {
4028    eval 'cat <<_LTECHO_EOF
4029$1
4030_LTECHO_EOF'
4031  }
4032  ECHO='func_fallback_echo'
4033fi
4034
4035# func_echo_all arg...
4036# Invoke $ECHO with all args, space-separated.
4037func_echo_all ()
4038{
4039    $ECHO ""
4040}
4041
4042case $ECHO in
4043  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4044$as_echo "printf" >&6; } ;;
4045  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4046$as_echo "print -r" >&6; } ;;
4047  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4048$as_echo "cat" >&6; } ;;
4049esac
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069if test -n "$ac_tool_prefix"; then
4070  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4071set dummy ${ac_tool_prefix}gcc; ac_word=$2
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073$as_echo_n "checking for $ac_word... " >&6; }
4074if ${ac_cv_prog_CC+:} false; then :
4075  $as_echo_n "(cached) " >&6
4076else
4077  if test -n "$CC"; then
4078  ac_cv_prog_CC="$CC" # Let the user override the test.
4079else
4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083  IFS=$as_save_IFS
4084  test -z "$as_dir" && as_dir=.
4085    for ac_exec_ext in '' $ac_executable_extensions; do
4086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089    break 2
4090  fi
4091done
4092  done
4093IFS=$as_save_IFS
4094
4095fi
4096fi
4097CC=$ac_cv_prog_CC
4098if test -n "$CC"; then
4099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100$as_echo "$CC" >&6; }
4101else
4102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
4104fi
4105
4106
4107fi
4108if test -z "$ac_cv_prog_CC"; then
4109  ac_ct_CC=$CC
4110  # Extract the first word of "gcc", so it can be a program name with args.
4111set dummy gcc; ac_word=$2
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113$as_echo_n "checking for $ac_word... " >&6; }
4114if ${ac_cv_prog_ac_ct_CC+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  if test -n "$ac_ct_CC"; then
4118  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119else
4120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123  IFS=$as_save_IFS
4124  test -z "$as_dir" && as_dir=.
4125    for ac_exec_ext in '' $ac_executable_extensions; do
4126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127    ac_cv_prog_ac_ct_CC="gcc"
4128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129    break 2
4130  fi
4131done
4132  done
4133IFS=$as_save_IFS
4134
4135fi
4136fi
4137ac_ct_CC=$ac_cv_prog_ac_ct_CC
4138if test -n "$ac_ct_CC"; then
4139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140$as_echo "$ac_ct_CC" >&6; }
4141else
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143$as_echo "no" >&6; }
4144fi
4145
4146  if test "x$ac_ct_CC" = x; then
4147    CC=""
4148  else
4149    case $cross_compiling:$ac_tool_warned in
4150yes:)
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153ac_tool_warned=yes ;;
4154esac
4155    CC=$ac_ct_CC
4156  fi
4157else
4158  CC="$ac_cv_prog_CC"
4159fi
4160
4161if test -z "$CC"; then
4162          if test -n "$ac_tool_prefix"; then
4163    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4164set dummy ${ac_tool_prefix}cc; ac_word=$2
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166$as_echo_n "checking for $ac_word... " >&6; }
4167if ${ac_cv_prog_CC+:} false; then :
4168  $as_echo_n "(cached) " >&6
4169else
4170  if test -n "$CC"; then
4171  ac_cv_prog_CC="$CC" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176  IFS=$as_save_IFS
4177  test -z "$as_dir" && as_dir=.
4178    for ac_exec_ext in '' $ac_executable_extensions; do
4179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180    ac_cv_prog_CC="${ac_tool_prefix}cc"
4181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182    break 2
4183  fi
4184done
4185  done
4186IFS=$as_save_IFS
4187
4188fi
4189fi
4190CC=$ac_cv_prog_CC
4191if test -n "$CC"; then
4192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193$as_echo "$CC" >&6; }
4194else
4195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196$as_echo "no" >&6; }
4197fi
4198
4199
4200  fi
4201fi
4202if test -z "$CC"; then
4203  # Extract the first word of "cc", so it can be a program name with args.
4204set dummy cc; ac_word=$2
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206$as_echo_n "checking for $ac_word... " >&6; }
4207if ${ac_cv_prog_CC+:} false; then :
4208  $as_echo_n "(cached) " >&6
4209else
4210  if test -n "$CC"; then
4211  ac_cv_prog_CC="$CC" # Let the user override the test.
4212else
4213  ac_prog_rejected=no
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222       ac_prog_rejected=yes
4223       continue
4224     fi
4225    ac_cv_prog_CC="cc"
4226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227    break 2
4228  fi
4229done
4230  done
4231IFS=$as_save_IFS
4232
4233if test $ac_prog_rejected = yes; then
4234  # We found a bogon in the path, so make sure we never use it.
4235  set dummy $ac_cv_prog_CC
4236  shift
4237  if test $# != 0; then
4238    # We chose a different compiler from the bogus one.
4239    # However, it has the same basename, so the bogon will be chosen
4240    # first if we set CC to just the basename; use the full file name.
4241    shift
4242    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4243  fi
4244fi
4245fi
4246fi
4247CC=$ac_cv_prog_CC
4248if test -n "$CC"; then
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250$as_echo "$CC" >&6; }
4251else
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
4254fi
4255
4256
4257fi
4258if test -z "$CC"; then
4259  if test -n "$ac_tool_prefix"; then
4260  for ac_prog in cl.exe
4261  do
4262    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if ${ac_cv_prog_CC+:} false; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  if test -n "$CC"; then
4270  ac_cv_prog_CC="$CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284  done
4285IFS=$as_save_IFS
4286
4287fi
4288fi
4289CC=$ac_cv_prog_CC
4290if test -n "$CC"; then
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292$as_echo "$CC" >&6; }
4293else
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
4297
4298
4299    test -n "$CC" && break
4300  done
4301fi
4302if test -z "$CC"; then
4303  ac_ct_CC=$CC
4304  for ac_prog in cl.exe
4305do
4306  # Extract the first word of "$ac_prog", so it can be a program name with args.
4307set dummy $ac_prog; ac_word=$2
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309$as_echo_n "checking for $ac_word... " >&6; }
4310if ${ac_cv_prog_ac_ct_CC+:} false; then :
4311  $as_echo_n "(cached) " >&6
4312else
4313  if test -n "$ac_ct_CC"; then
4314  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315else
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319  IFS=$as_save_IFS
4320  test -z "$as_dir" && as_dir=.
4321    for ac_exec_ext in '' $ac_executable_extensions; do
4322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323    ac_cv_prog_ac_ct_CC="$ac_prog"
4324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325    break 2
4326  fi
4327done
4328  done
4329IFS=$as_save_IFS
4330
4331fi
4332fi
4333ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334if test -n "$ac_ct_CC"; then
4335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336$as_echo "$ac_ct_CC" >&6; }
4337else
4338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339$as_echo "no" >&6; }
4340fi
4341
4342
4343  test -n "$ac_ct_CC" && break
4344done
4345
4346  if test "x$ac_ct_CC" = x; then
4347    CC=""
4348  else
4349    case $cross_compiling:$ac_tool_warned in
4350yes:)
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353ac_tool_warned=yes ;;
4354esac
4355    CC=$ac_ct_CC
4356  fi
4357fi
4358
4359fi
4360
4361
4362test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364as_fn_error $? "no acceptable C compiler found in \$PATH
4365See \`config.log' for more details" "$LINENO" 5; }
4366
4367# Provide some information about the compiler.
4368$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4369set X $ac_compile
4370ac_compiler=$2
4371for ac_option in --version -v -V -qversion; do
4372  { { ac_try="$ac_compiler $ac_option >&5"
4373case "(($ac_try" in
4374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375  *) ac_try_echo=$ac_try;;
4376esac
4377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378$as_echo "$ac_try_echo"; } >&5
4379  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4380  ac_status=$?
4381  if test -s conftest.err; then
4382    sed '10a\
4383... rest of stderr output deleted ...
4384         10q' conftest.err >conftest.er1
4385    cat conftest.er1 >&5
4386  fi
4387  rm -f conftest.er1 conftest.err
4388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389  test $ac_status = 0; }
4390done
4391
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4394if ${ac_cv_c_compiler_gnu+:} false; then :
4395  $as_echo_n "(cached) " >&6
4396else
4397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399
4400int
4401main ()
4402{
4403#ifndef __GNUC__
4404       choke me
4405#endif
4406
4407  ;
4408  return 0;
4409}
4410_ACEOF
4411if ac_fn_c_try_compile "$LINENO"; then :
4412  ac_compiler_gnu=yes
4413else
4414  ac_compiler_gnu=no
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417ac_cv_c_compiler_gnu=$ac_compiler_gnu
4418
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4421$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4422if test $ac_compiler_gnu = yes; then
4423  GCC=yes
4424else
4425  GCC=
4426fi
4427ac_test_CFLAGS=${CFLAGS+set}
4428ac_save_CFLAGS=$CFLAGS
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4430$as_echo_n "checking whether $CC accepts -g... " >&6; }
4431if ${ac_cv_prog_cc_g+:} false; then :
4432  $as_echo_n "(cached) " >&6
4433else
4434  ac_save_c_werror_flag=$ac_c_werror_flag
4435   ac_c_werror_flag=yes
4436   ac_cv_prog_cc_g=no
4437   CFLAGS="-g"
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h.  */
4440
4441int
4442main ()
4443{
4444
4445  ;
4446  return 0;
4447}
4448_ACEOF
4449if ac_fn_c_try_compile "$LINENO"; then :
4450  ac_cv_prog_cc_g=yes
4451else
4452  CFLAGS=""
4453      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454/* end confdefs.h.  */
4455
4456int
4457main ()
4458{
4459
4460  ;
4461  return 0;
4462}
4463_ACEOF
4464if ac_fn_c_try_compile "$LINENO"; then :
4465
4466else
4467  ac_c_werror_flag=$ac_save_c_werror_flag
4468	 CFLAGS="-g"
4469	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h.  */
4471
4472int
4473main ()
4474{
4475
4476  ;
4477  return 0;
4478}
4479_ACEOF
4480if ac_fn_c_try_compile "$LINENO"; then :
4481  ac_cv_prog_cc_g=yes
4482fi
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486fi
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488   ac_c_werror_flag=$ac_save_c_werror_flag
4489fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4491$as_echo "$ac_cv_prog_cc_g" >&6; }
4492if test "$ac_test_CFLAGS" = set; then
4493  CFLAGS=$ac_save_CFLAGS
4494elif test $ac_cv_prog_cc_g = yes; then
4495  if test "$GCC" = yes; then
4496    CFLAGS="-g -O2"
4497  else
4498    CFLAGS="-g"
4499  fi
4500else
4501  if test "$GCC" = yes; then
4502    CFLAGS="-O2"
4503  else
4504    CFLAGS=
4505  fi
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4508$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4509if ${ac_cv_prog_cc_c89+:} false; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  ac_cv_prog_cc_c89=no
4513ac_save_CC=$CC
4514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h.  */
4516#include <stdarg.h>
4517#include <stdio.h>
4518struct stat;
4519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4520struct buf { int x; };
4521FILE * (*rcsopen) (struct buf *, struct stat *, int);
4522static char *e (p, i)
4523     char **p;
4524     int i;
4525{
4526  return p[i];
4527}
4528static char *f (char * (*g) (char **, int), char **p, ...)
4529{
4530  char *s;
4531  va_list v;
4532  va_start (v,p);
4533  s = g (p, va_arg (v,int));
4534  va_end (v);
4535  return s;
4536}
4537
4538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4539   function prototypes and stuff, but not '\xHH' hex character constants.
4540   These don't provoke an error unfortunately, instead are silently treated
4541   as 'x'.  The following induces an error, until -std is added to get
4542   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4543   array size at least.  It's necessary to write '\x00'==0 to get something
4544   that's true only with -std.  */
4545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4546
4547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4548   inside strings and character constants.  */
4549#define FOO(x) 'x'
4550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4551
4552int test (int i, double x);
4553struct s1 {int (*f) (int a);};
4554struct s2 {int (*f) (double a);};
4555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4556int argc;
4557char **argv;
4558int
4559main ()
4560{
4561return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4562  ;
4563  return 0;
4564}
4565_ACEOF
4566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4567	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4568do
4569  CC="$ac_save_CC $ac_arg"
4570  if ac_fn_c_try_compile "$LINENO"; then :
4571  ac_cv_prog_cc_c89=$ac_arg
4572fi
4573rm -f core conftest.err conftest.$ac_objext
4574  test "x$ac_cv_prog_cc_c89" != "xno" && break
4575done
4576rm -f conftest.$ac_ext
4577CC=$ac_save_CC
4578
4579fi
4580# AC_CACHE_VAL
4581case "x$ac_cv_prog_cc_c89" in
4582  x)
4583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4584$as_echo "none needed" >&6; } ;;
4585  xno)
4586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4587$as_echo "unsupported" >&6; } ;;
4588  *)
4589    CC="$CC $ac_cv_prog_cc_c89"
4590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4591$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4592esac
4593if test "x$ac_cv_prog_cc_c89" != xno; then :
4594
4595fi
4596
4597ac_ext=c
4598ac_cpp='$CPP $CPPFLAGS'
4599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603ac_ext=c
4604ac_cpp='$CPP $CPPFLAGS'
4605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4609$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4610if ${am_cv_prog_cc_c_o+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h.  */
4615
4616int
4617main ()
4618{
4619
4620  ;
4621  return 0;
4622}
4623_ACEOF
4624  # Make sure it works both with $CC and with simple cc.
4625  # Following AC_PROG_CC_C_O, we do the test twice because some
4626  # compilers refuse to overwrite an existing .o file with -o,
4627  # though they will create one.
4628  am_cv_prog_cc_c_o=yes
4629  for am_i in 1 2; do
4630    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4631   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } \
4635         && test -f conftest2.$ac_objext; then
4636      : OK
4637    else
4638      am_cv_prog_cc_c_o=no
4639      break
4640    fi
4641  done
4642  rm -f core conftest*
4643  unset am_i
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4646$as_echo "$am_cv_prog_cc_c_o" >&6; }
4647if test "$am_cv_prog_cc_c_o" != yes; then
4648   # Losing compiler, so override with the script.
4649   # FIXME: It is wrong to rewrite CC.
4650   # But if we don't then we get into trouble of one sort or another.
4651   # A longer-term fix would be to have automake use am__CC in this case,
4652   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4653   CC="$am_aux_dir/compile $CC"
4654fi
4655ac_ext=c
4656ac_cpp='$CPP $CPPFLAGS'
4657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660
4661
4662depcc="$CC"   am_compiler_list=
4663
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4665$as_echo_n "checking dependency style of $depcc... " >&6; }
4666if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4667  $as_echo_n "(cached) " >&6
4668else
4669  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4670  # We make a subdir and do the tests there.  Otherwise we can end up
4671  # making bogus files that we don't know about and never remove.  For
4672  # instance it was reported that on HP-UX the gcc test will end up
4673  # making a dummy file named 'D' -- because '-MD' means "put the output
4674  # in D".
4675  rm -rf conftest.dir
4676  mkdir conftest.dir
4677  # Copy depcomp to subdir because otherwise we won't find it if we're
4678  # using a relative directory.
4679  cp "$am_depcomp" conftest.dir
4680  cd conftest.dir
4681  # We will build objects and dependencies in a subdirectory because
4682  # it helps to detect inapplicable dependency modes.  For instance
4683  # both Tru64's cc and ICC support -MD to output dependencies as a
4684  # side effect of compilation, but ICC will put the dependencies in
4685  # the current directory while Tru64 will put them in the object
4686  # directory.
4687  mkdir sub
4688
4689  am_cv_CC_dependencies_compiler_type=none
4690  if test "$am_compiler_list" = ""; then
4691     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4692  fi
4693  am__universal=false
4694  case " $depcc " in #(
4695     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4696     esac
4697
4698  for depmode in $am_compiler_list; do
4699    # Setup a source with many dependencies, because some compilers
4700    # like to wrap large dependency lists on column 80 (with \), and
4701    # we should not choose a depcomp mode which is confused by this.
4702    #
4703    # We need to recreate these files for each test, as the compiler may
4704    # overwrite some of them when testing with obscure command lines.
4705    # This happens at least with the AIX C compiler.
4706    : > sub/conftest.c
4707    for i in 1 2 3 4 5 6; do
4708      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4709      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4710      # Solaris 10 /bin/sh.
4711      echo '/* dummy */' > sub/conftst$i.h
4712    done
4713    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4714
4715    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4716    # mode.  It turns out that the SunPro C++ compiler does not properly
4717    # handle '-M -o', and we need to detect this.  Also, some Intel
4718    # versions had trouble with output in subdirs.
4719    am__obj=sub/conftest.${OBJEXT-o}
4720    am__minus_obj="-o $am__obj"
4721    case $depmode in
4722    gcc)
4723      # This depmode causes a compiler race in universal mode.
4724      test "$am__universal" = false || continue
4725      ;;
4726    nosideeffect)
4727      # After this tag, mechanisms are not by side-effect, so they'll
4728      # only be used when explicitly requested.
4729      if test "x$enable_dependency_tracking" = xyes; then
4730	continue
4731      else
4732	break
4733      fi
4734      ;;
4735    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4736      # This compiler won't grok '-c -o', but also, the minuso test has
4737      # not run yet.  These depmodes are late enough in the game, and
4738      # so weak that their functioning should not be impacted.
4739      am__obj=conftest.${OBJEXT-o}
4740      am__minus_obj=
4741      ;;
4742    none) break ;;
4743    esac
4744    if depmode=$depmode \
4745       source=sub/conftest.c object=$am__obj \
4746       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4747       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4748         >/dev/null 2>conftest.err &&
4749       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4750       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4751       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4752       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4753      # icc doesn't choke on unknown options, it will just issue warnings
4754      # or remarks (even with -Werror).  So we grep stderr for any message
4755      # that says an option was ignored or not supported.
4756      # When given -MP, icc 7.0 and 7.1 complain thusly:
4757      #   icc: Command line warning: ignoring option '-M'; no argument required
4758      # The diagnosis changed in icc 8.0:
4759      #   icc: Command line remark: option '-MP' not supported
4760      if (grep 'ignoring option' conftest.err ||
4761          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4762        am_cv_CC_dependencies_compiler_type=$depmode
4763        break
4764      fi
4765    fi
4766  done
4767
4768  cd ..
4769  rm -rf conftest.dir
4770else
4771  am_cv_CC_dependencies_compiler_type=none
4772fi
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4776$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4777CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4778
4779 if
4780  test "x$enable_dependency_tracking" != xno \
4781  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4782  am__fastdepCC_TRUE=
4783  am__fastdepCC_FALSE='#'
4784else
4785  am__fastdepCC_TRUE='#'
4786  am__fastdepCC_FALSE=
4787fi
4788
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792if ${ac_cv_path_SED+:} false; then :
4793  $as_echo_n "(cached) " >&6
4794else
4795            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796     for ac_i in 1 2 3 4 5 6 7; do
4797       ac_script="$ac_script$as_nl$ac_script"
4798     done
4799     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800     { ac_script=; unset ac_script;}
4801     if test -z "$SED"; then
4802  ac_path_SED_found=false
4803  # Loop through the user's path and test for each of PROGNAME-LIST
4804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807  IFS=$as_save_IFS
4808  test -z "$as_dir" && as_dir=.
4809    for ac_prog in sed gsed; do
4810    for ac_exec_ext in '' $ac_executable_extensions; do
4811      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812      as_fn_executable_p "$ac_path_SED" || continue
4813# Check for GNU ac_path_SED and select it if it is found.
4814  # Check for GNU $ac_path_SED
4815case `"$ac_path_SED" --version 2>&1` in
4816*GNU*)
4817  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4818*)
4819  ac_count=0
4820  $as_echo_n 0123456789 >"conftest.in"
4821  while :
4822  do
4823    cat "conftest.in" "conftest.in" >"conftest.tmp"
4824    mv "conftest.tmp" "conftest.in"
4825    cp "conftest.in" "conftest.nl"
4826    $as_echo '' >> "conftest.nl"
4827    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829    as_fn_arith $ac_count + 1 && ac_count=$as_val
4830    if test $ac_count -gt ${ac_path_SED_max-0}; then
4831      # Best one so far, save it but keep looking for a better one
4832      ac_cv_path_SED="$ac_path_SED"
4833      ac_path_SED_max=$ac_count
4834    fi
4835    # 10*(2^10) chars as input seems more than enough
4836    test $ac_count -gt 10 && break
4837  done
4838  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839esac
4840
4841      $ac_path_SED_found && break 3
4842    done
4843  done
4844  done
4845IFS=$as_save_IFS
4846  if test -z "$ac_cv_path_SED"; then
4847    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4848  fi
4849else
4850  ac_cv_path_SED=$SED
4851fi
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855$as_echo "$ac_cv_path_SED" >&6; }
4856 SED="$ac_cv_path_SED"
4857  rm -f conftest.sed
4858
4859test -z "$SED" && SED=sed
4860Xsed="$SED -e 1s/^X//"
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4873$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4874if ${ac_cv_path_GREP+:} false; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  if test -z "$GREP"; then
4878  ac_path_GREP_found=false
4879  # Loop through the user's path and test for each of PROGNAME-LIST
4880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882do
4883  IFS=$as_save_IFS
4884  test -z "$as_dir" && as_dir=.
4885    for ac_prog in grep ggrep; do
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4888      as_fn_executable_p "$ac_path_GREP" || continue
4889# Check for GNU ac_path_GREP and select it if it is found.
4890  # Check for GNU $ac_path_GREP
4891case `"$ac_path_GREP" --version 2>&1` in
4892*GNU*)
4893  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4894*)
4895  ac_count=0
4896  $as_echo_n 0123456789 >"conftest.in"
4897  while :
4898  do
4899    cat "conftest.in" "conftest.in" >"conftest.tmp"
4900    mv "conftest.tmp" "conftest.in"
4901    cp "conftest.in" "conftest.nl"
4902    $as_echo 'GREP' >> "conftest.nl"
4903    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905    as_fn_arith $ac_count + 1 && ac_count=$as_val
4906    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4907      # Best one so far, save it but keep looking for a better one
4908      ac_cv_path_GREP="$ac_path_GREP"
4909      ac_path_GREP_max=$ac_count
4910    fi
4911    # 10*(2^10) chars as input seems more than enough
4912    test $ac_count -gt 10 && break
4913  done
4914  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915esac
4916
4917      $ac_path_GREP_found && break 3
4918    done
4919  done
4920  done
4921IFS=$as_save_IFS
4922  if test -z "$ac_cv_path_GREP"; then
4923    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924  fi
4925else
4926  ac_cv_path_GREP=$GREP
4927fi
4928
4929fi
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4931$as_echo "$ac_cv_path_GREP" >&6; }
4932 GREP="$ac_cv_path_GREP"
4933
4934
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4936$as_echo_n "checking for egrep... " >&6; }
4937if ${ac_cv_path_EGREP+:} false; then :
4938  $as_echo_n "(cached) " >&6
4939else
4940  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4941   then ac_cv_path_EGREP="$GREP -E"
4942   else
4943     if test -z "$EGREP"; then
4944  ac_path_EGREP_found=false
4945  # Loop through the user's path and test for each of PROGNAME-LIST
4946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4948do
4949  IFS=$as_save_IFS
4950  test -z "$as_dir" && as_dir=.
4951    for ac_prog in egrep; do
4952    for ac_exec_ext in '' $ac_executable_extensions; do
4953      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4954      as_fn_executable_p "$ac_path_EGREP" || continue
4955# Check for GNU ac_path_EGREP and select it if it is found.
4956  # Check for GNU $ac_path_EGREP
4957case `"$ac_path_EGREP" --version 2>&1` in
4958*GNU*)
4959  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4960*)
4961  ac_count=0
4962  $as_echo_n 0123456789 >"conftest.in"
4963  while :
4964  do
4965    cat "conftest.in" "conftest.in" >"conftest.tmp"
4966    mv "conftest.tmp" "conftest.in"
4967    cp "conftest.in" "conftest.nl"
4968    $as_echo 'EGREP' >> "conftest.nl"
4969    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971    as_fn_arith $ac_count + 1 && ac_count=$as_val
4972    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4973      # Best one so far, save it but keep looking for a better one
4974      ac_cv_path_EGREP="$ac_path_EGREP"
4975      ac_path_EGREP_max=$ac_count
4976    fi
4977    # 10*(2^10) chars as input seems more than enough
4978    test $ac_count -gt 10 && break
4979  done
4980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981esac
4982
4983      $ac_path_EGREP_found && break 3
4984    done
4985  done
4986  done
4987IFS=$as_save_IFS
4988  if test -z "$ac_cv_path_EGREP"; then
4989    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990  fi
4991else
4992  ac_cv_path_EGREP=$EGREP
4993fi
4994
4995   fi
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4998$as_echo "$ac_cv_path_EGREP" >&6; }
4999 EGREP="$ac_cv_path_EGREP"
5000
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5003$as_echo_n "checking for fgrep... " >&6; }
5004if ${ac_cv_path_FGREP+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5008   then ac_cv_path_FGREP="$GREP -F"
5009   else
5010     if test -z "$FGREP"; then
5011  ac_path_FGREP_found=false
5012  # Loop through the user's path and test for each of PROGNAME-LIST
5013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018    for ac_prog in fgrep; do
5019    for ac_exec_ext in '' $ac_executable_extensions; do
5020      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5021      as_fn_executable_p "$ac_path_FGREP" || continue
5022# Check for GNU ac_path_FGREP and select it if it is found.
5023  # Check for GNU $ac_path_FGREP
5024case `"$ac_path_FGREP" --version 2>&1` in
5025*GNU*)
5026  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5027*)
5028  ac_count=0
5029  $as_echo_n 0123456789 >"conftest.in"
5030  while :
5031  do
5032    cat "conftest.in" "conftest.in" >"conftest.tmp"
5033    mv "conftest.tmp" "conftest.in"
5034    cp "conftest.in" "conftest.nl"
5035    $as_echo 'FGREP' >> "conftest.nl"
5036    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5037    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5038    as_fn_arith $ac_count + 1 && ac_count=$as_val
5039    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5040      # Best one so far, save it but keep looking for a better one
5041      ac_cv_path_FGREP="$ac_path_FGREP"
5042      ac_path_FGREP_max=$ac_count
5043    fi
5044    # 10*(2^10) chars as input seems more than enough
5045    test $ac_count -gt 10 && break
5046  done
5047  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5048esac
5049
5050      $ac_path_FGREP_found && break 3
5051    done
5052  done
5053  done
5054IFS=$as_save_IFS
5055  if test -z "$ac_cv_path_FGREP"; then
5056    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5057  fi
5058else
5059  ac_cv_path_FGREP=$FGREP
5060fi
5061
5062   fi
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5065$as_echo "$ac_cv_path_FGREP" >&6; }
5066 FGREP="$ac_cv_path_FGREP"
5067
5068
5069test -z "$GREP" && GREP=grep
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089# Check whether --with-gnu-ld was given.
5090if test "${with_gnu_ld+set}" = set; then :
5091  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5092else
5093  with_gnu_ld=no
5094fi
5095
5096ac_prog=ld
5097if test yes = "$GCC"; then
5098  # Check if gcc -print-prog-name=ld gives a path.
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5100$as_echo_n "checking for ld used by $CC... " >&6; }
5101  case $host in
5102  *-*-mingw*)
5103    # gcc leaves a trailing carriage return, which upsets mingw
5104    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5105  *)
5106    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5107  esac
5108  case $ac_prog in
5109    # Accept absolute paths.
5110    [\\/]* | ?:[\\/]*)
5111      re_direlt='/[^/][^/]*/\.\./'
5112      # Canonicalize the pathname of ld
5113      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5114      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5115	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5116      done
5117      test -z "$LD" && LD=$ac_prog
5118      ;;
5119  "")
5120    # If it fails, then pretend we aren't using GCC.
5121    ac_prog=ld
5122    ;;
5123  *)
5124    # If it is relative, then search for the first ld in PATH.
5125    with_gnu_ld=unknown
5126    ;;
5127  esac
5128elif test yes = "$with_gnu_ld"; then
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5130$as_echo_n "checking for GNU ld... " >&6; }
5131else
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5133$as_echo_n "checking for non-GNU ld... " >&6; }
5134fi
5135if ${lt_cv_path_LD+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  if test -z "$LD"; then
5139  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5140  for ac_dir in $PATH; do
5141    IFS=$lt_save_ifs
5142    test -z "$ac_dir" && ac_dir=.
5143    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144      lt_cv_path_LD=$ac_dir/$ac_prog
5145      # Check to see if the program is GNU ld.  I'd rather use --version,
5146      # but apparently some variants of GNU ld only accept -v.
5147      # Break only if it was the GNU/non-GNU ld that we prefer.
5148      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149      *GNU* | *'with BFD'*)
5150	test no != "$with_gnu_ld" && break
5151	;;
5152      *)
5153	test yes != "$with_gnu_ld" && break
5154	;;
5155      esac
5156    fi
5157  done
5158  IFS=$lt_save_ifs
5159else
5160  lt_cv_path_LD=$LD # Let the user override the test with a path.
5161fi
5162fi
5163
5164LD=$lt_cv_path_LD
5165if test -n "$LD"; then
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167$as_echo "$LD" >&6; }
5168else
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5175if ${lt_cv_prog_gnu_ld+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5179case `$LD -v 2>&1 </dev/null` in
5180*GNU* | *'with BFD'*)
5181  lt_cv_prog_gnu_ld=yes
5182  ;;
5183*)
5184  lt_cv_prog_gnu_ld=no
5185  ;;
5186esac
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5189$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5190with_gnu_ld=$lt_cv_prog_gnu_ld
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5201$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5202if ${lt_cv_path_NM+:} false; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205  if test -n "$NM"; then
5206  # Let the user override the test.
5207  lt_cv_path_NM=$NM
5208else
5209  lt_nm_to_check=${ac_tool_prefix}nm
5210  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5211    lt_nm_to_check="$lt_nm_to_check nm"
5212  fi
5213  for lt_tmp_nm in $lt_nm_to_check; do
5214    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5215    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5216      IFS=$lt_save_ifs
5217      test -z "$ac_dir" && ac_dir=.
5218      tmp_nm=$ac_dir/$lt_tmp_nm
5219      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5220	# Check to see if the nm accepts a BSD-compat flag.
5221	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5222	#   nm: unknown option "B" ignored
5223	# Tru64's nm complains that /dev/null is an invalid object file
5224	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5225	case $build_os in
5226	mingw*) lt_bad_file=conftest.nm/nofile ;;
5227	*) lt_bad_file=/dev/null ;;
5228	esac
5229	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5230	*$lt_bad_file* | *'Invalid file or object type'*)
5231	  lt_cv_path_NM="$tmp_nm -B"
5232	  break 2
5233	  ;;
5234	*)
5235	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5236	  */dev/null*)
5237	    lt_cv_path_NM="$tmp_nm -p"
5238	    break 2
5239	    ;;
5240	  *)
5241	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5242	    continue # so that we can try to find one that supports BSD flags
5243	    ;;
5244	  esac
5245	  ;;
5246	esac
5247      fi
5248    done
5249    IFS=$lt_save_ifs
5250  done
5251  : ${lt_cv_path_NM=no}
5252fi
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5255$as_echo "$lt_cv_path_NM" >&6; }
5256if test no != "$lt_cv_path_NM"; then
5257  NM=$lt_cv_path_NM
5258else
5259  # Didn't find any BSD compatible name lister, look for dumpbin.
5260  if test -n "$DUMPBIN"; then :
5261    # Let the user override the test.
5262  else
5263    if test -n "$ac_tool_prefix"; then
5264  for ac_prog in dumpbin "link -dump"
5265  do
5266    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
5270if ${ac_cv_prog_DUMPBIN+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  if test -n "$DUMPBIN"; then
5274  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288  done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293DUMPBIN=$ac_cv_prog_DUMPBIN
5294if test -n "$DUMPBIN"; then
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5296$as_echo "$DUMPBIN" >&6; }
5297else
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5300fi
5301
5302
5303    test -n "$DUMPBIN" && break
5304  done
5305fi
5306if test -z "$DUMPBIN"; then
5307  ac_ct_DUMPBIN=$DUMPBIN
5308  for ac_prog in dumpbin "link -dump"
5309do
5310  # Extract the first word of "$ac_prog", so it can be a program name with args.
5311set dummy $ac_prog; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  if test -n "$ac_ct_DUMPBIN"; then
5318  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325    for ac_exec_ext in '' $ac_executable_extensions; do
5326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329    break 2
5330  fi
5331done
5332  done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5338if test -n "$ac_ct_DUMPBIN"; then
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5340$as_echo "$ac_ct_DUMPBIN" >&6; }
5341else
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347  test -n "$ac_ct_DUMPBIN" && break
5348done
5349
5350  if test "x$ac_ct_DUMPBIN" = x; then
5351    DUMPBIN=":"
5352  else
5353    case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357ac_tool_warned=yes ;;
5358esac
5359    DUMPBIN=$ac_ct_DUMPBIN
5360  fi
5361fi
5362
5363    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5364    *COFF*)
5365      DUMPBIN="$DUMPBIN -symbols -headers"
5366      ;;
5367    *)
5368      DUMPBIN=:
5369      ;;
5370    esac
5371  fi
5372
5373  if test : != "$DUMPBIN"; then
5374    NM=$DUMPBIN
5375  fi
5376fi
5377test -z "$NM" && NM=nm
5378
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5385$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5386if ${lt_cv_nm_interface+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  lt_cv_nm_interface="BSD nm"
5390  echo "int some_variable = 0;" > conftest.$ac_ext
5391  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5392  (eval "$ac_compile" 2>conftest.err)
5393  cat conftest.err >&5
5394  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5395  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5396  cat conftest.err >&5
5397  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5398  cat conftest.out >&5
5399  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5400    lt_cv_nm_interface="MS dumpbin"
5401  fi
5402  rm -f conftest*
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5405$as_echo "$lt_cv_nm_interface" >&6; }
5406
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5408$as_echo_n "checking whether ln -s works... " >&6; }
5409LN_S=$as_ln_s
5410if test "$LN_S" = "ln -s"; then
5411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412$as_echo "yes" >&6; }
5413else
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5415$as_echo "no, using $LN_S" >&6; }
5416fi
5417
5418# find the maximum length of command line arguments
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5420$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5421if ${lt_cv_sys_max_cmd_len+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424    i=0
5425  teststring=ABCD
5426
5427  case $build_os in
5428  msdosdjgpp*)
5429    # On DJGPP, this test can blow up pretty badly due to problems in libc
5430    # (any single argument exceeding 2000 bytes causes a buffer overrun
5431    # during glob expansion).  Even if it were fixed, the result of this
5432    # check would be larger than it should be.
5433    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5434    ;;
5435
5436  gnu*)
5437    # Under GNU Hurd, this test is not required because there is
5438    # no limit to the length of command line arguments.
5439    # Libtool will interpret -1 as no limit whatsoever
5440    lt_cv_sys_max_cmd_len=-1;
5441    ;;
5442
5443  cygwin* | mingw* | cegcc*)
5444    # On Win9x/ME, this test blows up -- it succeeds, but takes
5445    # about 5 minutes as the teststring grows exponentially.
5446    # Worse, since 9x/ME are not pre-emptively multitasking,
5447    # you end up with a "frozen" computer, even though with patience
5448    # the test eventually succeeds (with a max line length of 256k).
5449    # Instead, let's just punt: use the minimum linelength reported by
5450    # all of the supported platforms: 8192 (on NT/2K/XP).
5451    lt_cv_sys_max_cmd_len=8192;
5452    ;;
5453
5454  mint*)
5455    # On MiNT this can take a long time and run out of memory.
5456    lt_cv_sys_max_cmd_len=8192;
5457    ;;
5458
5459  amigaos*)
5460    # On AmigaOS with pdksh, this test takes hours, literally.
5461    # So we just punt and use a minimum line length of 8192.
5462    lt_cv_sys_max_cmd_len=8192;
5463    ;;
5464
5465  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5466    # This has been around since 386BSD, at least.  Likely further.
5467    if test -x /sbin/sysctl; then
5468      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5469    elif test -x /usr/sbin/sysctl; then
5470      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5471    else
5472      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5473    fi
5474    # And add a safety zone
5475    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5476    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5477    ;;
5478
5479  interix*)
5480    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5481    lt_cv_sys_max_cmd_len=196608
5482    ;;
5483
5484  os2*)
5485    # The test takes a long time on OS/2.
5486    lt_cv_sys_max_cmd_len=8192
5487    ;;
5488
5489  osf*)
5490    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5491    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5492    # nice to cause kernel panics so lets avoid the loop below.
5493    # First set a reasonable default.
5494    lt_cv_sys_max_cmd_len=16384
5495    #
5496    if test -x /sbin/sysconfig; then
5497      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5498        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5499      esac
5500    fi
5501    ;;
5502  sco3.2v5*)
5503    lt_cv_sys_max_cmd_len=102400
5504    ;;
5505  sysv5* | sco5v6* | sysv4.2uw2*)
5506    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5507    if test -n "$kargmax"; then
5508      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5509    else
5510      lt_cv_sys_max_cmd_len=32768
5511    fi
5512    ;;
5513  *)
5514    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5515    if test -n "$lt_cv_sys_max_cmd_len" && \
5516       test undefined != "$lt_cv_sys_max_cmd_len"; then
5517      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5518      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5519    else
5520      # Make teststring a little bigger before we do anything with it.
5521      # a 1K string should be a reasonable start.
5522      for i in 1 2 3 4 5 6 7 8; do
5523        teststring=$teststring$teststring
5524      done
5525      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5526      # If test is not a shell built-in, we'll probably end up computing a
5527      # maximum length that is only half of the actual maximum length, but
5528      # we can't tell.
5529      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5530	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5531	      test 17 != "$i" # 1/2 MB should be enough
5532      do
5533        i=`expr $i + 1`
5534        teststring=$teststring$teststring
5535      done
5536      # Only check the string length outside the loop.
5537      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5538      teststring=
5539      # Add a significant safety factor because C++ compilers can tack on
5540      # massive amounts of additional arguments before passing them to the
5541      # linker.  It appears as though 1/2 is a usable value.
5542      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5543    fi
5544    ;;
5545  esac
5546
5547fi
5548
5549if test -n "$lt_cv_sys_max_cmd_len"; then
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5551$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5552else
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5554$as_echo "none" >&6; }
5555fi
5556max_cmd_len=$lt_cv_sys_max_cmd_len
5557
5558
5559
5560
5561
5562
5563: ${CP="cp -f"}
5564: ${MV="mv -f"}
5565: ${RM="rm -f"}
5566
5567if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5568  lt_unset=unset
5569else
5570  lt_unset=false
5571fi
5572
5573
5574
5575
5576
5577# test EBCDIC or ASCII
5578case `echo X|tr X '\101'` in
5579 A) # ASCII based system
5580    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5581  lt_SP2NL='tr \040 \012'
5582  lt_NL2SP='tr \015\012 \040\040'
5583  ;;
5584 *) # EBCDIC based system
5585  lt_SP2NL='tr \100 \n'
5586  lt_NL2SP='tr \r\n \100\100'
5587  ;;
5588esac
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5599$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5600if ${lt_cv_to_host_file_cmd+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  case $host in
5604  *-*-mingw* )
5605    case $build in
5606      *-*-mingw* ) # actually msys
5607        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5608        ;;
5609      *-*-cygwin* )
5610        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5611        ;;
5612      * ) # otherwise, assume *nix
5613        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5614        ;;
5615    esac
5616    ;;
5617  *-*-cygwin* )
5618    case $build in
5619      *-*-mingw* ) # actually msys
5620        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5621        ;;
5622      *-*-cygwin* )
5623        lt_cv_to_host_file_cmd=func_convert_file_noop
5624        ;;
5625      * ) # otherwise, assume *nix
5626        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5627        ;;
5628    esac
5629    ;;
5630  * ) # unhandled hosts (and "normal" native builds)
5631    lt_cv_to_host_file_cmd=func_convert_file_noop
5632    ;;
5633esac
5634
5635fi
5636
5637to_host_file_cmd=$lt_cv_to_host_file_cmd
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5639$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5640
5641
5642
5643
5644
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5646$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5647if ${lt_cv_to_tool_file_cmd+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  #assume ordinary cross tools, or native build.
5651lt_cv_to_tool_file_cmd=func_convert_file_noop
5652case $host in
5653  *-*-mingw* )
5654    case $build in
5655      *-*-mingw* ) # actually msys
5656        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5657        ;;
5658    esac
5659    ;;
5660esac
5661
5662fi
5663
5664to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5666$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5667
5668
5669
5670
5671
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5673$as_echo_n "checking for $LD option to reload object files... " >&6; }
5674if ${lt_cv_ld_reload_flag+:} false; then :
5675  $as_echo_n "(cached) " >&6
5676else
5677  lt_cv_ld_reload_flag='-r'
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5680$as_echo "$lt_cv_ld_reload_flag" >&6; }
5681reload_flag=$lt_cv_ld_reload_flag
5682case $reload_flag in
5683"" | " "*) ;;
5684*) reload_flag=" $reload_flag" ;;
5685esac
5686reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687case $host_os in
5688  cygwin* | mingw* | pw32* | cegcc*)
5689    if test yes != "$GCC"; then
5690      reload_cmds=false
5691    fi
5692    ;;
5693  darwin*)
5694    if test yes = "$GCC"; then
5695      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5696    else
5697      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698    fi
5699    ;;
5700esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710if test -n "$ac_tool_prefix"; then
5711  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5712set dummy ${ac_tool_prefix}objdump; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if ${ac_cv_prog_OBJDUMP+:} false; then :
5716  $as_echo_n "(cached) " >&6
5717else
5718  if test -n "$OBJDUMP"; then
5719  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724  IFS=$as_save_IFS
5725  test -z "$as_dir" && as_dir=.
5726    for ac_exec_ext in '' $ac_executable_extensions; do
5727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730    break 2
5731  fi
5732done
5733  done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738OBJDUMP=$ac_cv_prog_OBJDUMP
5739if test -n "$OBJDUMP"; then
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5741$as_echo "$OBJDUMP" >&6; }
5742else
5743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747
5748fi
5749if test -z "$ac_cv_prog_OBJDUMP"; then
5750  ac_ct_OBJDUMP=$OBJDUMP
5751  # Extract the first word of "objdump", so it can be a program name with args.
5752set dummy objdump; ac_word=$2
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754$as_echo_n "checking for $ac_word... " >&6; }
5755if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  if test -n "$ac_ct_OBJDUMP"; then
5759  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5760else
5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764  IFS=$as_save_IFS
5765  test -z "$as_dir" && as_dir=.
5766    for ac_exec_ext in '' $ac_executable_extensions; do
5767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770    break 2
5771  fi
5772done
5773  done
5774IFS=$as_save_IFS
5775
5776fi
5777fi
5778ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5779if test -n "$ac_ct_OBJDUMP"; then
5780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5781$as_echo "$ac_ct_OBJDUMP" >&6; }
5782else
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786
5787  if test "x$ac_ct_OBJDUMP" = x; then
5788    OBJDUMP="false"
5789  else
5790    case $cross_compiling:$ac_tool_warned in
5791yes:)
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794ac_tool_warned=yes ;;
5795esac
5796    OBJDUMP=$ac_ct_OBJDUMP
5797  fi
5798else
5799  OBJDUMP="$ac_cv_prog_OBJDUMP"
5800fi
5801
5802test -z "$OBJDUMP" && OBJDUMP=objdump
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5813$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5814if ${lt_cv_deplibs_check_method+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  lt_cv_file_magic_cmd='$MAGIC_CMD'
5818lt_cv_file_magic_test_file=
5819lt_cv_deplibs_check_method='unknown'
5820# Need to set the preceding variable on all platforms that support
5821# interlibrary dependencies.
5822# 'none' -- dependencies not supported.
5823# 'unknown' -- same as none, but documents that we really don't know.
5824# 'pass_all' -- all dependencies passed with no checks.
5825# 'test_compile' -- check by making test program.
5826# 'file_magic [[regex]]' -- check by looking for files in library path
5827# that responds to the $file_magic_cmd with a given extended regex.
5828# If you have 'file' or equivalent on your system and you're not sure
5829# whether 'pass_all' will *always* work, you probably want this one.
5830
5831case $host_os in
5832aix[4-9]*)
5833  lt_cv_deplibs_check_method=pass_all
5834  ;;
5835
5836beos*)
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839
5840bsdi[45]*)
5841  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5842  lt_cv_file_magic_cmd='/usr/bin/file -L'
5843  lt_cv_file_magic_test_file=/shlib/libc.so
5844  ;;
5845
5846cygwin*)
5847  # func_win32_libid is a shell function defined in ltmain.sh
5848  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5849  lt_cv_file_magic_cmd='func_win32_libid'
5850  ;;
5851
5852mingw* | pw32*)
5853  # Base MSYS/MinGW do not provide the 'file' command needed by
5854  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5855  # unless we find 'file', for example because we are cross-compiling.
5856  if ( file / ) >/dev/null 2>&1; then
5857    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5858    lt_cv_file_magic_cmd='func_win32_libid'
5859  else
5860    # Keep this pattern in sync with the one in func_win32_libid.
5861    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5862    lt_cv_file_magic_cmd='$OBJDUMP -f'
5863  fi
5864  ;;
5865
5866cegcc*)
5867  # use the weaker test based on 'objdump'. See mingw*.
5868  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5869  lt_cv_file_magic_cmd='$OBJDUMP -f'
5870  ;;
5871
5872darwin* | rhapsody*)
5873  lt_cv_deplibs_check_method=pass_all
5874  ;;
5875
5876freebsd* | dragonfly*)
5877  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5878    case $host_cpu in
5879    i*86 )
5880      # Not sure whether the presence of OpenBSD here was a mistake.
5881      # Let's accept both of them until this is cleared up.
5882      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5883      lt_cv_file_magic_cmd=/usr/bin/file
5884      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5885      ;;
5886    esac
5887  else
5888    lt_cv_deplibs_check_method=pass_all
5889  fi
5890  ;;
5891
5892haiku*)
5893  lt_cv_deplibs_check_method=pass_all
5894  ;;
5895
5896hpux10.20* | hpux11*)
5897  lt_cv_file_magic_cmd=/usr/bin/file
5898  case $host_cpu in
5899  ia64*)
5900    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5901    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5902    ;;
5903  hppa*64*)
5904    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]'
5905    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5906    ;;
5907  *)
5908    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5909    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5910    ;;
5911  esac
5912  ;;
5913
5914interix[3-9]*)
5915  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5916  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5917  ;;
5918
5919irix5* | irix6* | nonstopux*)
5920  case $LD in
5921  *-32|*"-32 ") libmagic=32-bit;;
5922  *-n32|*"-n32 ") libmagic=N32;;
5923  *-64|*"-64 ") libmagic=64-bit;;
5924  *) libmagic=never-match;;
5925  esac
5926  lt_cv_deplibs_check_method=pass_all
5927  ;;
5928
5929# This must be glibc/ELF.
5930linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5931  lt_cv_deplibs_check_method=pass_all
5932  ;;
5933
5934netbsd* | netbsdelf*-gnu)
5935  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5936    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5937  else
5938    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5939  fi
5940  ;;
5941
5942newos6*)
5943  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5944  lt_cv_file_magic_cmd=/usr/bin/file
5945  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5946  ;;
5947
5948*nto* | *qnx*)
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952openbsd* | bitrig*)
5953  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5954    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5955  else
5956    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5957  fi
5958  ;;
5959
5960osf3* | osf4* | osf5*)
5961  lt_cv_deplibs_check_method=pass_all
5962  ;;
5963
5964rdos*)
5965  lt_cv_deplibs_check_method=pass_all
5966  ;;
5967
5968solaris*)
5969  lt_cv_deplibs_check_method=pass_all
5970  ;;
5971
5972sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976sysv4 | sysv4.3*)
5977  case $host_vendor in
5978  motorola)
5979    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]'
5980    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5981    ;;
5982  ncr)
5983    lt_cv_deplibs_check_method=pass_all
5984    ;;
5985  sequent)
5986    lt_cv_file_magic_cmd='/bin/file'
5987    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5988    ;;
5989  sni)
5990    lt_cv_file_magic_cmd='/bin/file'
5991    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5992    lt_cv_file_magic_test_file=/lib/libc.so
5993    ;;
5994  siemens)
5995    lt_cv_deplibs_check_method=pass_all
5996    ;;
5997  pc)
5998    lt_cv_deplibs_check_method=pass_all
5999    ;;
6000  esac
6001  ;;
6002
6003tpf*)
6004  lt_cv_deplibs_check_method=pass_all
6005  ;;
6006os2*)
6007  lt_cv_deplibs_check_method=pass_all
6008  ;;
6009esac
6010
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6013$as_echo "$lt_cv_deplibs_check_method" >&6; }
6014
6015file_magic_glob=
6016want_nocaseglob=no
6017if test "$build" = "$host"; then
6018  case $host_os in
6019  mingw* | pw32*)
6020    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6021      want_nocaseglob=yes
6022    else
6023      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6024    fi
6025    ;;
6026  esac
6027fi
6028
6029file_magic_cmd=$lt_cv_file_magic_cmd
6030deplibs_check_method=$lt_cv_deplibs_check_method
6031test -z "$deplibs_check_method" && deplibs_check_method=unknown
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054if test -n "$ac_tool_prefix"; then
6055  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6056set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_prog_DLLTOOL+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  if test -n "$DLLTOOL"; then
6063  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068  IFS=$as_save_IFS
6069  test -z "$as_dir" && as_dir=.
6070    for ac_exec_ext in '' $ac_executable_extensions; do
6071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074    break 2
6075  fi
6076done
6077  done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082DLLTOOL=$ac_cv_prog_DLLTOOL
6083if test -n "$DLLTOOL"; then
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6085$as_echo "$DLLTOOL" >&6; }
6086else
6087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090
6091
6092fi
6093if test -z "$ac_cv_prog_DLLTOOL"; then
6094  ac_ct_DLLTOOL=$DLLTOOL
6095  # Extract the first word of "dlltool", so it can be a program name with args.
6096set dummy dlltool; ac_word=$2
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  if test -n "$ac_ct_DLLTOOL"; then
6103  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108  IFS=$as_save_IFS
6109  test -z "$as_dir" && as_dir=.
6110    for ac_exec_ext in '' $ac_executable_extensions; do
6111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114    break 2
6115  fi
6116done
6117  done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6123if test -n "$ac_ct_DLLTOOL"; then
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6125$as_echo "$ac_ct_DLLTOOL" >&6; }
6126else
6127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129fi
6130
6131  if test "x$ac_ct_DLLTOOL" = x; then
6132    DLLTOOL="false"
6133  else
6134    case $cross_compiling:$ac_tool_warned in
6135yes:)
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140    DLLTOOL=$ac_ct_DLLTOOL
6141  fi
6142else
6143  DLLTOOL="$ac_cv_prog_DLLTOOL"
6144fi
6145
6146test -z "$DLLTOOL" && DLLTOOL=dlltool
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6158$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6159if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  lt_cv_sharedlib_from_linklib_cmd='unknown'
6163
6164case $host_os in
6165cygwin* | mingw* | pw32* | cegcc*)
6166  # two different shell functions defined in ltmain.sh;
6167  # decide which one to use based on capabilities of $DLLTOOL
6168  case `$DLLTOOL --help 2>&1` in
6169  *--identify-strict*)
6170    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6171    ;;
6172  *)
6173    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6174    ;;
6175  esac
6176  ;;
6177*)
6178  # fallback: assume linklib IS sharedlib
6179  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6180  ;;
6181esac
6182
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6185$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6186sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6187test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6188
6189
6190
6191
6192
6193
6194
6195
6196if test -n "$ac_tool_prefix"; then
6197  for ac_prog in ar
6198  do
6199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if ${ac_cv_prog_AR+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$AR"; then
6207  ac_cv_prog_AR="$AR" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214    for ac_exec_ext in '' $ac_executable_extensions; do
6215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221  done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226AR=$ac_cv_prog_AR
6227if test -n "$AR"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229$as_echo "$AR" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235
6236    test -n "$AR" && break
6237  done
6238fi
6239if test -z "$AR"; then
6240  ac_ct_AR=$AR
6241  for ac_prog in ar
6242do
6243  # Extract the first word of "$ac_prog", so it can be a program name with args.
6244set dummy $ac_prog; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_prog_ac_ct_AR+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  if test -n "$ac_ct_AR"; then
6251  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256  IFS=$as_save_IFS
6257  test -z "$as_dir" && as_dir=.
6258    for ac_exec_ext in '' $ac_executable_extensions; do
6259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260    ac_cv_prog_ac_ct_AR="$ac_prog"
6261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262    break 2
6263  fi
6264done
6265  done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270ac_ct_AR=$ac_cv_prog_ac_ct_AR
6271if test -n "$ac_ct_AR"; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6273$as_echo "$ac_ct_AR" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
6278
6279
6280  test -n "$ac_ct_AR" && break
6281done
6282
6283  if test "x$ac_ct_AR" = x; then
6284    AR="false"
6285  else
6286    case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292    AR=$ac_ct_AR
6293  fi
6294fi
6295
6296: ${AR=ar}
6297: ${AR_FLAGS=cru}
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6310$as_echo_n "checking for archiver @FILE support... " >&6; }
6311if ${lt_cv_ar_at_file+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  lt_cv_ar_at_file=no
6315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317
6318int
6319main ()
6320{
6321
6322  ;
6323  return 0;
6324}
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327  echo conftest.$ac_objext > conftest.lst
6328      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6329      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6330  (eval $lt_ar_try) 2>&5
6331  ac_status=$?
6332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333  test $ac_status = 0; }
6334      if test 0 -eq "$ac_status"; then
6335	# Ensure the archiver fails upon bogus file names.
6336	rm -f conftest.$ac_objext libconftest.a
6337	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338  (eval $lt_ar_try) 2>&5
6339  ac_status=$?
6340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341  test $ac_status = 0; }
6342	if test 0 -ne "$ac_status"; then
6343          lt_cv_ar_at_file=@
6344        fi
6345      fi
6346      rm -f conftest.* libconftest.a
6347
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350
6351fi
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6353$as_echo "$lt_cv_ar_at_file" >&6; }
6354
6355if test no = "$lt_cv_ar_at_file"; then
6356  archiver_list_spec=
6357else
6358  archiver_list_spec=$lt_cv_ar_at_file
6359fi
6360
6361
6362
6363
6364
6365
6366
6367if test -n "$ac_tool_prefix"; then
6368  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369set dummy ${ac_tool_prefix}strip; ac_word=$2
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371$as_echo_n "checking for $ac_word... " >&6; }
6372if ${ac_cv_prog_STRIP+:} false; then :
6373  $as_echo_n "(cached) " >&6
6374else
6375  if test -n "$STRIP"; then
6376  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6377else
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381  IFS=$as_save_IFS
6382  test -z "$as_dir" && as_dir=.
6383    for ac_exec_ext in '' $ac_executable_extensions; do
6384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387    break 2
6388  fi
6389done
6390  done
6391IFS=$as_save_IFS
6392
6393fi
6394fi
6395STRIP=$ac_cv_prog_STRIP
6396if test -n "$STRIP"; then
6397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398$as_echo "$STRIP" >&6; }
6399else
6400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
6402fi
6403
6404
6405fi
6406if test -z "$ac_cv_prog_STRIP"; then
6407  ac_ct_STRIP=$STRIP
6408  # Extract the first word of "strip", so it can be a program name with args.
6409set dummy strip; ac_word=$2
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411$as_echo_n "checking for $ac_word... " >&6; }
6412if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  if test -n "$ac_ct_STRIP"; then
6416  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6417else
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421  IFS=$as_save_IFS
6422  test -z "$as_dir" && as_dir=.
6423    for ac_exec_ext in '' $ac_executable_extensions; do
6424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425    ac_cv_prog_ac_ct_STRIP="strip"
6426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427    break 2
6428  fi
6429done
6430  done
6431IFS=$as_save_IFS
6432
6433fi
6434fi
6435ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436if test -n "$ac_ct_STRIP"; then
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438$as_echo "$ac_ct_STRIP" >&6; }
6439else
6440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; }
6442fi
6443
6444  if test "x$ac_ct_STRIP" = x; then
6445    STRIP=":"
6446  else
6447    case $cross_compiling:$ac_tool_warned in
6448yes:)
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451ac_tool_warned=yes ;;
6452esac
6453    STRIP=$ac_ct_STRIP
6454  fi
6455else
6456  STRIP="$ac_cv_prog_STRIP"
6457fi
6458
6459test -z "$STRIP" && STRIP=:
6460
6461
6462
6463
6464
6465
6466if test -n "$ac_tool_prefix"; then
6467  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_RANLIB+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  if test -n "$RANLIB"; then
6475  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480  IFS=$as_save_IFS
6481  test -z "$as_dir" && as_dir=.
6482    for ac_exec_ext in '' $ac_executable_extensions; do
6483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486    break 2
6487  fi
6488done
6489  done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494RANLIB=$ac_cv_prog_RANLIB
6495if test -n "$RANLIB"; then
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497$as_echo "$RANLIB" >&6; }
6498else
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_RANLIB"; then
6506  ac_ct_RANLIB=$RANLIB
6507  # Extract the first word of "ranlib", so it can be a program name with args.
6508set dummy ranlib; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  if test -n "$ac_ct_RANLIB"; then
6515  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520  IFS=$as_save_IFS
6521  test -z "$as_dir" && as_dir=.
6522    for ac_exec_ext in '' $ac_executable_extensions; do
6523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524    ac_cv_prog_ac_ct_RANLIB="ranlib"
6525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526    break 2
6527  fi
6528done
6529  done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535if test -n "$ac_ct_RANLIB"; then
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537$as_echo "$ac_ct_RANLIB" >&6; }
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543  if test "x$ac_ct_RANLIB" = x; then
6544    RANLIB=":"
6545  else
6546    case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552    RANLIB=$ac_ct_RANLIB
6553  fi
6554else
6555  RANLIB="$ac_cv_prog_RANLIB"
6556fi
6557
6558test -z "$RANLIB" && RANLIB=:
6559
6560
6561
6562
6563
6564
6565# Determine commands to create old-style static archives.
6566old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6567old_postinstall_cmds='chmod 644 $oldlib'
6568old_postuninstall_cmds=
6569
6570if test -n "$RANLIB"; then
6571  case $host_os in
6572  bitrig* | openbsd*)
6573    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6574    ;;
6575  *)
6576    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6577    ;;
6578  esac
6579  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6580fi
6581
6582case $host_os in
6583  darwin*)
6584    lock_old_archive_extraction=yes ;;
6585  *)
6586    lock_old_archive_extraction=no ;;
6587esac
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627# If no C compiler was specified, use CC.
6628LTCC=${LTCC-"$CC"}
6629
6630# If no C compiler flags were specified, use CFLAGS.
6631LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6632
6633# Allow CC to be a program name with arguments.
6634compiler=$CC
6635
6636
6637# Check for command to grab the raw symbol name followed by C symbol from nm.
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6639$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6640if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643
6644# These are sane defaults that work on at least a few old systems.
6645# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6646
6647# Character class describing NM global symbol codes.
6648symcode='[BCDEGRST]'
6649
6650# Regexp to match symbols that can be accessed directly from C.
6651sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6652
6653# Define system-specific variables.
6654case $host_os in
6655aix*)
6656  symcode='[BCDT]'
6657  ;;
6658cygwin* | mingw* | pw32* | cegcc*)
6659  symcode='[ABCDGISTW]'
6660  ;;
6661hpux*)
6662  if test ia64 = "$host_cpu"; then
6663    symcode='[ABCDEGRST]'
6664  fi
6665  ;;
6666irix* | nonstopux*)
6667  symcode='[BCDEGRST]'
6668  ;;
6669osf*)
6670  symcode='[BCDEGQRST]'
6671  ;;
6672solaris*)
6673  symcode='[BDRT]'
6674  ;;
6675sco3.2v5*)
6676  symcode='[DT]'
6677  ;;
6678sysv4.2uw2*)
6679  symcode='[DT]'
6680  ;;
6681sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682  symcode='[ABDT]'
6683  ;;
6684sysv4)
6685  symcode='[DFNSTU]'
6686  ;;
6687esac
6688
6689# If we're using GNU nm, then use its standard symbol codes.
6690case `$NM -V 2>&1` in
6691*GNU* | *'with BFD'*)
6692  symcode='[ABCDGIRSTW]' ;;
6693esac
6694
6695if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6696  # Gets list of data symbols to import.
6697  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6698  # Adjust the below global symbol transforms to fixup imported variables.
6699  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6700  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6701  lt_c_name_lib_hook="\
6702  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6703  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6704else
6705  # Disable hooks by default.
6706  lt_cv_sys_global_symbol_to_import=
6707  lt_cdecl_hook=
6708  lt_c_name_hook=
6709  lt_c_name_lib_hook=
6710fi
6711
6712# Transform an extracted symbol line into a proper C declaration.
6713# Some systems (esp. on ia64) link data and code symbols differently,
6714# so use this general approach.
6715lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6716$lt_cdecl_hook\
6717" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6718" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6719
6720# Transform an extracted symbol line into symbol name and symbol address
6721lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6722$lt_c_name_hook\
6723" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6724" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6725
6726# Transform an extracted symbol line into symbol name with lib prefix and
6727# symbol address.
6728lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6729$lt_c_name_lib_hook\
6730" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6731" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6732" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6733
6734# Handle CRLF in mingw tool chain
6735opt_cr=
6736case $build_os in
6737mingw*)
6738  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6739  ;;
6740esac
6741
6742# Try without a prefix underscore, then with it.
6743for ac_symprfx in "" "_"; do
6744
6745  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746  symxfrm="\\1 $ac_symprfx\\2 \\2"
6747
6748  # Write the raw and C identifiers.
6749  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750    # Fake it for dumpbin and say T for any non-static function,
6751    # D for any global variable and I for any imported variable.
6752    # Also find C++ and __fastcall symbols from MSVC++,
6753    # which start with @ or ?.
6754    lt_cv_sys_global_symbol_pipe="$AWK '"\
6755"     {last_section=section; section=\$ 3};"\
6756"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6757"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6759"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6760"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6761"     \$ 0!~/External *\|/{next};"\
6762"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6763"     {if(hide[section]) next};"\
6764"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6765"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6766"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6767"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6768"     ' prfx=^$ac_symprfx"
6769  else
6770    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6771  fi
6772  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6773
6774  # Check to see that the pipe works correctly.
6775  pipe_works=no
6776
6777  rm -f conftest*
6778  cat > conftest.$ac_ext <<_LT_EOF
6779#ifdef __cplusplus
6780extern "C" {
6781#endif
6782char nm_test_var;
6783void nm_test_func(void);
6784void nm_test_func(void){}
6785#ifdef __cplusplus
6786}
6787#endif
6788int main(){nm_test_var='a';nm_test_func();return(0);}
6789_LT_EOF
6790
6791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792  (eval $ac_compile) 2>&5
6793  ac_status=$?
6794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795  test $ac_status = 0; }; then
6796    # Now try to grab the symbols.
6797    nlist=conftest.nm
6798    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6799    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6800      # Try sorting and uniquifying the output.
6801      if sort "$nlist" | uniq > "$nlist"T; then
6802	mv -f "$nlist"T "$nlist"
6803      else
6804	rm -f "$nlist"T
6805      fi
6806
6807      # Make sure that we snagged all the symbols we need.
6808      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6809	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6810	  cat <<_LT_EOF > conftest.$ac_ext
6811/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6812#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6813/* DATA imports from DLLs on WIN32 can't be const, because runtime
6814   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6815# define LT_DLSYM_CONST
6816#elif defined __osf__
6817/* This system does not cope well with relocations in const data.  */
6818# define LT_DLSYM_CONST
6819#else
6820# define LT_DLSYM_CONST const
6821#endif
6822
6823#ifdef __cplusplus
6824extern "C" {
6825#endif
6826
6827_LT_EOF
6828	  # Now generate the symbol file.
6829	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6830
6831	  cat <<_LT_EOF >> conftest.$ac_ext
6832
6833/* The mapping between symbol names and symbols.  */
6834LT_DLSYM_CONST struct {
6835  const char *name;
6836  void       *address;
6837}
6838lt__PROGRAM__LTX_preloaded_symbols[] =
6839{
6840  { "@PROGRAM@", (void *) 0 },
6841_LT_EOF
6842	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6843	  cat <<\_LT_EOF >> conftest.$ac_ext
6844  {0, (void *) 0}
6845};
6846
6847/* This works around a problem in FreeBSD linker */
6848#ifdef FREEBSD_WORKAROUND
6849static const void *lt_preloaded_setup() {
6850  return lt__PROGRAM__LTX_preloaded_symbols;
6851}
6852#endif
6853
6854#ifdef __cplusplus
6855}
6856#endif
6857_LT_EOF
6858	  # Now try linking the two files.
6859	  mv -f conftest.$ac_objext conftstm.$ac_objext
6860	  lt_globsym_save_LIBS=$LIBS
6861	  lt_globsym_save_CFLAGS=$CFLAGS
6862	  LIBS=conftstm.$ac_objext
6863	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6864	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6865  (eval $ac_link) 2>&5
6866  ac_status=$?
6867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6869	    pipe_works=yes
6870	  fi
6871	  LIBS=$lt_globsym_save_LIBS
6872	  CFLAGS=$lt_globsym_save_CFLAGS
6873	else
6874	  echo "cannot find nm_test_func in $nlist" >&5
6875	fi
6876      else
6877	echo "cannot find nm_test_var in $nlist" >&5
6878      fi
6879    else
6880      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6881    fi
6882  else
6883    echo "$progname: failed program was:" >&5
6884    cat conftest.$ac_ext >&5
6885  fi
6886  rm -rf conftest* conftst*
6887
6888  # Do not use the global_symbol_pipe unless it works.
6889  if test yes = "$pipe_works"; then
6890    break
6891  else
6892    lt_cv_sys_global_symbol_pipe=
6893  fi
6894done
6895
6896fi
6897
6898if test -z "$lt_cv_sys_global_symbol_pipe"; then
6899  lt_cv_sys_global_symbol_to_cdecl=
6900fi
6901if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6903$as_echo "failed" >&6; }
6904else
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6906$as_echo "ok" >&6; }
6907fi
6908
6909# Response file support.
6910if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6911  nm_file_list_spec='@'
6912elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6913  nm_file_list_spec='@'
6914fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6953$as_echo_n "checking for sysroot... " >&6; }
6954
6955# Check whether --with-sysroot was given.
6956if test "${with_sysroot+set}" = set; then :
6957  withval=$with_sysroot;
6958else
6959  with_sysroot=no
6960fi
6961
6962
6963lt_sysroot=
6964case $with_sysroot in #(
6965 yes)
6966   if test yes = "$GCC"; then
6967     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6968   fi
6969   ;; #(
6970 /*)
6971   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6972   ;; #(
6973 no|'')
6974   ;; #(
6975 *)
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6977$as_echo "$with_sysroot" >&6; }
6978   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6979   ;;
6980esac
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6983$as_echo "${lt_sysroot:-no}" >&6; }
6984
6985
6986
6987
6988
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6990$as_echo_n "checking for a working dd... " >&6; }
6991if ${ac_cv_path_lt_DD+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  printf 0123456789abcdef0123456789abcdef >conftest.i
6995cat conftest.i conftest.i >conftest2.i
6996: ${lt_DD:=$DD}
6997if test -z "$lt_DD"; then
6998  ac_path_lt_DD_found=false
6999  # Loop through the user's path and test for each of PROGNAME-LIST
7000  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003  IFS=$as_save_IFS
7004  test -z "$as_dir" && as_dir=.
7005    for ac_prog in dd; do
7006    for ac_exec_ext in '' $ac_executable_extensions; do
7007      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7008      as_fn_executable_p "$ac_path_lt_DD" || continue
7009if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7010  cmp -s conftest.i conftest.out \
7011  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7012fi
7013      $ac_path_lt_DD_found && break 3
7014    done
7015  done
7016  done
7017IFS=$as_save_IFS
7018  if test -z "$ac_cv_path_lt_DD"; then
7019    :
7020  fi
7021else
7022  ac_cv_path_lt_DD=$lt_DD
7023fi
7024
7025rm -f conftest.i conftest2.i conftest.out
7026fi
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7028$as_echo "$ac_cv_path_lt_DD" >&6; }
7029
7030
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7032$as_echo_n "checking how to truncate binary pipes... " >&6; }
7033if ${lt_cv_truncate_bin+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  printf 0123456789abcdef0123456789abcdef >conftest.i
7037cat conftest.i conftest.i >conftest2.i
7038lt_cv_truncate_bin=
7039if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7040  cmp -s conftest.i conftest.out \
7041  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7042fi
7043rm -f conftest.i conftest2.i conftest.out
7044test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7045fi
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7047$as_echo "$lt_cv_truncate_bin" >&6; }
7048
7049
7050
7051
7052
7053
7054
7055# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7056func_cc_basename ()
7057{
7058    for cc_temp in $*""; do
7059      case $cc_temp in
7060        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7061        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7062        \-*) ;;
7063        *) break;;
7064      esac
7065    done
7066    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7067}
7068
7069# Check whether --enable-libtool-lock was given.
7070if test "${enable_libtool_lock+set}" = set; then :
7071  enableval=$enable_libtool_lock;
7072fi
7073
7074test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7075
7076# Some flags need to be propagated to the compiler or linker for good
7077# libtool support.
7078case $host in
7079ia64-*-hpux*)
7080  # Find out what ABI is being produced by ac_compile, and set mode
7081  # options accordingly.
7082  echo 'int i;' > conftest.$ac_ext
7083  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084  (eval $ac_compile) 2>&5
7085  ac_status=$?
7086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087  test $ac_status = 0; }; then
7088    case `/usr/bin/file conftest.$ac_objext` in
7089      *ELF-32*)
7090	HPUX_IA64_MODE=32
7091	;;
7092      *ELF-64*)
7093	HPUX_IA64_MODE=64
7094	;;
7095    esac
7096  fi
7097  rm -rf conftest*
7098  ;;
7099*-*-irix6*)
7100  # Find out what ABI is being produced by ac_compile, and set linker
7101  # options accordingly.
7102  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7103  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104  (eval $ac_compile) 2>&5
7105  ac_status=$?
7106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107  test $ac_status = 0; }; then
7108    if test yes = "$lt_cv_prog_gnu_ld"; then
7109      case `/usr/bin/file conftest.$ac_objext` in
7110	*32-bit*)
7111	  LD="${LD-ld} -melf32bsmip"
7112	  ;;
7113	*N32*)
7114	  LD="${LD-ld} -melf32bmipn32"
7115	  ;;
7116	*64-bit*)
7117	  LD="${LD-ld} -melf64bmip"
7118	;;
7119      esac
7120    else
7121      case `/usr/bin/file conftest.$ac_objext` in
7122	*32-bit*)
7123	  LD="${LD-ld} -32"
7124	  ;;
7125	*N32*)
7126	  LD="${LD-ld} -n32"
7127	  ;;
7128	*64-bit*)
7129	  LD="${LD-ld} -64"
7130	  ;;
7131      esac
7132    fi
7133  fi
7134  rm -rf conftest*
7135  ;;
7136
7137mips64*-*linux*)
7138  # Find out what ABI is being produced by ac_compile, and set linker
7139  # options accordingly.
7140  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7141  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7142  (eval $ac_compile) 2>&5
7143  ac_status=$?
7144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145  test $ac_status = 0; }; then
7146    emul=elf
7147    case `/usr/bin/file conftest.$ac_objext` in
7148      *32-bit*)
7149	emul="${emul}32"
7150	;;
7151      *64-bit*)
7152	emul="${emul}64"
7153	;;
7154    esac
7155    case `/usr/bin/file conftest.$ac_objext` in
7156      *MSB*)
7157	emul="${emul}btsmip"
7158	;;
7159      *LSB*)
7160	emul="${emul}ltsmip"
7161	;;
7162    esac
7163    case `/usr/bin/file conftest.$ac_objext` in
7164      *N32*)
7165	emul="${emul}n32"
7166	;;
7167    esac
7168    LD="${LD-ld} -m $emul"
7169  fi
7170  rm -rf conftest*
7171  ;;
7172
7173x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7174s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7175  # Find out what ABI is being produced by ac_compile, and set linker
7176  # options accordingly.  Note that the listed cases only cover the
7177  # situations where additional linker options are needed (such as when
7178  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7179  # vice versa); the common cases where no linker options are needed do
7180  # not appear in the list.
7181  echo 'int i;' > conftest.$ac_ext
7182  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183  (eval $ac_compile) 2>&5
7184  ac_status=$?
7185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186  test $ac_status = 0; }; then
7187    case `/usr/bin/file conftest.o` in
7188      *32-bit*)
7189	case $host in
7190	  x86_64-*kfreebsd*-gnu)
7191	    LD="${LD-ld} -m elf_i386_fbsd"
7192	    ;;
7193	  x86_64-*linux*)
7194	    case `/usr/bin/file conftest.o` in
7195	      *x86-64*)
7196		LD="${LD-ld} -m elf32_x86_64"
7197		;;
7198	      *)
7199		LD="${LD-ld} -m elf_i386"
7200		;;
7201	    esac
7202	    ;;
7203	  powerpc64le-*linux*)
7204	    LD="${LD-ld} -m elf32lppclinux"
7205	    ;;
7206	  powerpc64-*linux*)
7207	    LD="${LD-ld} -m elf32ppclinux"
7208	    ;;
7209	  s390x-*linux*)
7210	    LD="${LD-ld} -m elf_s390"
7211	    ;;
7212	  sparc64-*linux*)
7213	    LD="${LD-ld} -m elf32_sparc"
7214	    ;;
7215	esac
7216	;;
7217      *64-bit*)
7218	case $host in
7219	  x86_64-*kfreebsd*-gnu)
7220	    LD="${LD-ld} -m elf_x86_64_fbsd"
7221	    ;;
7222	  x86_64-*linux*)
7223	    LD="${LD-ld} -m elf_x86_64"
7224	    ;;
7225	  powerpcle-*linux*)
7226	    LD="${LD-ld} -m elf64lppc"
7227	    ;;
7228	  powerpc-*linux*)
7229	    LD="${LD-ld} -m elf64ppc"
7230	    ;;
7231	  s390*-*linux*|s390*-*tpf*)
7232	    LD="${LD-ld} -m elf64_s390"
7233	    ;;
7234	  sparc*-*linux*)
7235	    LD="${LD-ld} -m elf64_sparc"
7236	    ;;
7237	esac
7238	;;
7239    esac
7240  fi
7241  rm -rf conftest*
7242  ;;
7243
7244*-*-sco3.2v5*)
7245  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7246  SAVE_CFLAGS=$CFLAGS
7247  CFLAGS="$CFLAGS -belf"
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7249$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7250if ${lt_cv_cc_needs_belf+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  ac_ext=c
7254ac_cpp='$CPP $CPPFLAGS'
7255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258
7259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261
7262int
7263main ()
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_link "$LINENO"; then :
7271  lt_cv_cc_needs_belf=yes
7272else
7273  lt_cv_cc_needs_belf=no
7274fi
7275rm -f core conftest.err conftest.$ac_objext \
7276    conftest$ac_exeext conftest.$ac_ext
7277     ac_ext=c
7278ac_cpp='$CPP $CPPFLAGS'
7279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282
7283fi
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7285$as_echo "$lt_cv_cc_needs_belf" >&6; }
7286  if test yes != "$lt_cv_cc_needs_belf"; then
7287    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7288    CFLAGS=$SAVE_CFLAGS
7289  fi
7290  ;;
7291*-*solaris*)
7292  # Find out what ABI is being produced by ac_compile, and set linker
7293  # options accordingly.
7294  echo 'int i;' > conftest.$ac_ext
7295  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296  (eval $ac_compile) 2>&5
7297  ac_status=$?
7298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299  test $ac_status = 0; }; then
7300    case `/usr/bin/file conftest.o` in
7301    *64-bit*)
7302      case $lt_cv_prog_gnu_ld in
7303      yes*)
7304        case $host in
7305        i?86-*-solaris*|x86_64-*-solaris*)
7306          LD="${LD-ld} -m elf_x86_64"
7307          ;;
7308        sparc*-*-solaris*)
7309          LD="${LD-ld} -m elf64_sparc"
7310          ;;
7311        esac
7312        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7313        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7314          LD=${LD-ld}_sol2
7315        fi
7316        ;;
7317      *)
7318	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7319	  LD="${LD-ld} -64"
7320	fi
7321	;;
7322      esac
7323      ;;
7324    esac
7325  fi
7326  rm -rf conftest*
7327  ;;
7328esac
7329
7330need_locks=$enable_libtool_lock
7331
7332if test -n "$ac_tool_prefix"; then
7333  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7334set dummy ${ac_tool_prefix}mt; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
7337if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  if test -n "$MANIFEST_TOOL"; then
7341  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346  IFS=$as_save_IFS
7347  test -z "$as_dir" && as_dir=.
7348    for ac_exec_ext in '' $ac_executable_extensions; do
7349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352    break 2
7353  fi
7354done
7355  done
7356IFS=$as_save_IFS
7357
7358fi
7359fi
7360MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7361if test -n "$MANIFEST_TOOL"; then
7362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7363$as_echo "$MANIFEST_TOOL" >&6; }
7364else
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369
7370fi
7371if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7372  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7373  # Extract the first word of "mt", so it can be a program name with args.
7374set dummy mt; ac_word=$2
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376$as_echo_n "checking for $ac_word... " >&6; }
7377if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7378  $as_echo_n "(cached) " >&6
7379else
7380  if test -n "$ac_ct_MANIFEST_TOOL"; then
7381  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386  IFS=$as_save_IFS
7387  test -z "$as_dir" && as_dir=.
7388    for ac_exec_ext in '' $ac_executable_extensions; do
7389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392    break 2
7393  fi
7394done
7395  done
7396IFS=$as_save_IFS
7397
7398fi
7399fi
7400ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7401if test -n "$ac_ct_MANIFEST_TOOL"; then
7402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7403$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7404else
7405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
7407fi
7408
7409  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7410    MANIFEST_TOOL=":"
7411  else
7412    case $cross_compiling:$ac_tool_warned in
7413yes:)
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416ac_tool_warned=yes ;;
7417esac
7418    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7419  fi
7420else
7421  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7422fi
7423
7424test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7426$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7427if ${lt_cv_path_mainfest_tool+:} false; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  lt_cv_path_mainfest_tool=no
7431  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7432  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7433  cat conftest.err >&5
7434  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7435    lt_cv_path_mainfest_tool=yes
7436  fi
7437  rm -f conftest*
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7440$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7441if test yes != "$lt_cv_path_mainfest_tool"; then
7442  MANIFEST_TOOL=:
7443fi
7444
7445
7446
7447
7448
7449
7450  case $host_os in
7451    rhapsody* | darwin*)
7452    if test -n "$ac_tool_prefix"; then
7453  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7454set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456$as_echo_n "checking for $ac_word... " >&6; }
7457if ${ac_cv_prog_DSYMUTIL+:} false; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  if test -n "$DSYMUTIL"; then
7461  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7462else
7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466  IFS=$as_save_IFS
7467  test -z "$as_dir" && as_dir=.
7468    for ac_exec_ext in '' $ac_executable_extensions; do
7469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472    break 2
7473  fi
7474done
7475  done
7476IFS=$as_save_IFS
7477
7478fi
7479fi
7480DSYMUTIL=$ac_cv_prog_DSYMUTIL
7481if test -n "$DSYMUTIL"; then
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7483$as_echo "$DSYMUTIL" >&6; }
7484else
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487fi
7488
7489
7490fi
7491if test -z "$ac_cv_prog_DSYMUTIL"; then
7492  ac_ct_DSYMUTIL=$DSYMUTIL
7493  # Extract the first word of "dsymutil", so it can be a program name with args.
7494set dummy dsymutil; ac_word=$2
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496$as_echo_n "checking for $ac_word... " >&6; }
7497if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7498  $as_echo_n "(cached) " >&6
7499else
7500  if test -n "$ac_ct_DSYMUTIL"; then
7501  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508    for ac_exec_ext in '' $ac_executable_extensions; do
7509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515  done
7516IFS=$as_save_IFS
7517
7518fi
7519fi
7520ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7521if test -n "$ac_ct_DSYMUTIL"; then
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7523$as_echo "$ac_ct_DSYMUTIL" >&6; }
7524else
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526$as_echo "no" >&6; }
7527fi
7528
7529  if test "x$ac_ct_DSYMUTIL" = x; then
7530    DSYMUTIL=":"
7531  else
7532    case $cross_compiling:$ac_tool_warned in
7533yes:)
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536ac_tool_warned=yes ;;
7537esac
7538    DSYMUTIL=$ac_ct_DSYMUTIL
7539  fi
7540else
7541  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7542fi
7543
7544    if test -n "$ac_tool_prefix"; then
7545  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7546set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if ${ac_cv_prog_NMEDIT+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  if test -n "$NMEDIT"; then
7553  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558  IFS=$as_save_IFS
7559  test -z "$as_dir" && as_dir=.
7560    for ac_exec_ext in '' $ac_executable_extensions; do
7561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564    break 2
7565  fi
7566done
7567  done
7568IFS=$as_save_IFS
7569
7570fi
7571fi
7572NMEDIT=$ac_cv_prog_NMEDIT
7573if test -n "$NMEDIT"; then
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7575$as_echo "$NMEDIT" >&6; }
7576else
7577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581
7582fi
7583if test -z "$ac_cv_prog_NMEDIT"; then
7584  ac_ct_NMEDIT=$NMEDIT
7585  # Extract the first word of "nmedit", so it can be a program name with args.
7586set dummy nmedit; ac_word=$2
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  if test -n "$ac_ct_NMEDIT"; then
7593  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598  IFS=$as_save_IFS
7599  test -z "$as_dir" && as_dir=.
7600    for ac_exec_ext in '' $ac_executable_extensions; do
7601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604    break 2
7605  fi
7606done
7607  done
7608IFS=$as_save_IFS
7609
7610fi
7611fi
7612ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7613if test -n "$ac_ct_NMEDIT"; then
7614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7615$as_echo "$ac_ct_NMEDIT" >&6; }
7616else
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620
7621  if test "x$ac_ct_NMEDIT" = x; then
7622    NMEDIT=":"
7623  else
7624    case $cross_compiling:$ac_tool_warned in
7625yes:)
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628ac_tool_warned=yes ;;
7629esac
7630    NMEDIT=$ac_ct_NMEDIT
7631  fi
7632else
7633  NMEDIT="$ac_cv_prog_NMEDIT"
7634fi
7635
7636    if test -n "$ac_tool_prefix"; then
7637  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7638set dummy ${ac_tool_prefix}lipo; ac_word=$2
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640$as_echo_n "checking for $ac_word... " >&6; }
7641if ${ac_cv_prog_LIPO+:} false; then :
7642  $as_echo_n "(cached) " >&6
7643else
7644  if test -n "$LIPO"; then
7645  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650  IFS=$as_save_IFS
7651  test -z "$as_dir" && as_dir=.
7652    for ac_exec_ext in '' $ac_executable_extensions; do
7653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656    break 2
7657  fi
7658done
7659  done
7660IFS=$as_save_IFS
7661
7662fi
7663fi
7664LIPO=$ac_cv_prog_LIPO
7665if test -n "$LIPO"; then
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7667$as_echo "$LIPO" >&6; }
7668else
7669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
7671fi
7672
7673
7674fi
7675if test -z "$ac_cv_prog_LIPO"; then
7676  ac_ct_LIPO=$LIPO
7677  # Extract the first word of "lipo", so it can be a program name with args.
7678set dummy lipo; ac_word=$2
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
7681if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7682  $as_echo_n "(cached) " >&6
7683else
7684  if test -n "$ac_ct_LIPO"; then
7685  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7686else
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690  IFS=$as_save_IFS
7691  test -z "$as_dir" && as_dir=.
7692    for ac_exec_ext in '' $ac_executable_extensions; do
7693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694    ac_cv_prog_ac_ct_LIPO="lipo"
7695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696    break 2
7697  fi
7698done
7699  done
7700IFS=$as_save_IFS
7701
7702fi
7703fi
7704ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7705if test -n "$ac_ct_LIPO"; then
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7707$as_echo "$ac_ct_LIPO" >&6; }
7708else
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
7711fi
7712
7713  if test "x$ac_ct_LIPO" = x; then
7714    LIPO=":"
7715  else
7716    case $cross_compiling:$ac_tool_warned in
7717yes:)
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720ac_tool_warned=yes ;;
7721esac
7722    LIPO=$ac_ct_LIPO
7723  fi
7724else
7725  LIPO="$ac_cv_prog_LIPO"
7726fi
7727
7728    if test -n "$ac_tool_prefix"; then
7729  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7730set dummy ${ac_tool_prefix}otool; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_OTOOL+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  if test -n "$OTOOL"; then
7737  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742  IFS=$as_save_IFS
7743  test -z "$as_dir" && as_dir=.
7744    for ac_exec_ext in '' $ac_executable_extensions; do
7745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748    break 2
7749  fi
7750done
7751  done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756OTOOL=$ac_cv_prog_OTOOL
7757if test -n "$OTOOL"; then
7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7759$as_echo "$OTOOL" >&6; }
7760else
7761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
7764
7765
7766fi
7767if test -z "$ac_cv_prog_OTOOL"; then
7768  ac_ct_OTOOL=$OTOOL
7769  # Extract the first word of "otool", so it can be a program name with args.
7770set dummy otool; ac_word=$2
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
7773if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7774  $as_echo_n "(cached) " >&6
7775else
7776  if test -n "$ac_ct_OTOOL"; then
7777  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782  IFS=$as_save_IFS
7783  test -z "$as_dir" && as_dir=.
7784    for ac_exec_ext in '' $ac_executable_extensions; do
7785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786    ac_cv_prog_ac_ct_OTOOL="otool"
7787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788    break 2
7789  fi
7790done
7791  done
7792IFS=$as_save_IFS
7793
7794fi
7795fi
7796ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7797if test -n "$ac_ct_OTOOL"; then
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7799$as_echo "$ac_ct_OTOOL" >&6; }
7800else
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
7803fi
7804
7805  if test "x$ac_ct_OTOOL" = x; then
7806    OTOOL=":"
7807  else
7808    case $cross_compiling:$ac_tool_warned in
7809yes:)
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812ac_tool_warned=yes ;;
7813esac
7814    OTOOL=$ac_ct_OTOOL
7815  fi
7816else
7817  OTOOL="$ac_cv_prog_OTOOL"
7818fi
7819
7820    if test -n "$ac_tool_prefix"; then
7821  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7822set dummy ${ac_tool_prefix}otool64; ac_word=$2
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
7825if ${ac_cv_prog_OTOOL64+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  if test -n "$OTOOL64"; then
7829  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834  IFS=$as_save_IFS
7835  test -z "$as_dir" && as_dir=.
7836    for ac_exec_ext in '' $ac_executable_extensions; do
7837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840    break 2
7841  fi
7842done
7843  done
7844IFS=$as_save_IFS
7845
7846fi
7847fi
7848OTOOL64=$ac_cv_prog_OTOOL64
7849if test -n "$OTOOL64"; then
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7851$as_echo "$OTOOL64" >&6; }
7852else
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
7855fi
7856
7857
7858fi
7859if test -z "$ac_cv_prog_OTOOL64"; then
7860  ac_ct_OTOOL64=$OTOOL64
7861  # Extract the first word of "otool64", so it can be a program name with args.
7862set dummy otool64; ac_word=$2
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  if test -n "$ac_ct_OTOOL64"; then
7869  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874  IFS=$as_save_IFS
7875  test -z "$as_dir" && as_dir=.
7876    for ac_exec_ext in '' $ac_executable_extensions; do
7877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878    ac_cv_prog_ac_ct_OTOOL64="otool64"
7879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880    break 2
7881  fi
7882done
7883  done
7884IFS=$as_save_IFS
7885
7886fi
7887fi
7888ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7889if test -n "$ac_ct_OTOOL64"; then
7890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7891$as_echo "$ac_ct_OTOOL64" >&6; }
7892else
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
7895fi
7896
7897  if test "x$ac_ct_OTOOL64" = x; then
7898    OTOOL64=":"
7899  else
7900    case $cross_compiling:$ac_tool_warned in
7901yes:)
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904ac_tool_warned=yes ;;
7905esac
7906    OTOOL64=$ac_ct_OTOOL64
7907  fi
7908else
7909  OTOOL64="$ac_cv_prog_OTOOL64"
7910fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7939$as_echo_n "checking for -single_module linker flag... " >&6; }
7940if ${lt_cv_apple_cc_single_mod+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  lt_cv_apple_cc_single_mod=no
7944      if test -z "$LT_MULTI_MODULE"; then
7945	# By default we will add the -single_module flag. You can override
7946	# by either setting the environment variable LT_MULTI_MODULE
7947	# non-empty at configure time, or by adding -multi_module to the
7948	# link flags.
7949	rm -rf libconftest.dylib*
7950	echo "int foo(void){return 1;}" > conftest.c
7951	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7952-dynamiclib -Wl,-single_module conftest.c" >&5
7953	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7954	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7955        _lt_result=$?
7956	# If there is a non-empty error log, and "single_module"
7957	# appears in it, assume the flag caused a linker warning
7958        if test -s conftest.err && $GREP single_module conftest.err; then
7959	  cat conftest.err >&5
7960	# Otherwise, if the output was created with a 0 exit code from
7961	# the compiler, it worked.
7962	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7963	  lt_cv_apple_cc_single_mod=yes
7964	else
7965	  cat conftest.err >&5
7966	fi
7967	rm -rf libconftest.dylib*
7968	rm -f conftest.*
7969      fi
7970fi
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7972$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7973
7974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7975$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7976if ${lt_cv_ld_exported_symbols_list+:} false; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  lt_cv_ld_exported_symbols_list=no
7980      save_LDFLAGS=$LDFLAGS
7981      echo "_main" > conftest.sym
7982      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7983      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985
7986int
7987main ()
7988{
7989
7990  ;
7991  return 0;
7992}
7993_ACEOF
7994if ac_fn_c_try_link "$LINENO"; then :
7995  lt_cv_ld_exported_symbols_list=yes
7996else
7997  lt_cv_ld_exported_symbols_list=no
7998fi
7999rm -f core conftest.err conftest.$ac_objext \
8000    conftest$ac_exeext conftest.$ac_ext
8001	LDFLAGS=$save_LDFLAGS
8002
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8005$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8006
8007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8008$as_echo_n "checking for -force_load linker flag... " >&6; }
8009if ${lt_cv_ld_force_load+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  lt_cv_ld_force_load=no
8013      cat > conftest.c << _LT_EOF
8014int forced_loaded() { return 2;}
8015_LT_EOF
8016      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8017      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8018      echo "$AR cru libconftest.a conftest.o" >&5
8019      $AR cru libconftest.a conftest.o 2>&5
8020      echo "$RANLIB libconftest.a" >&5
8021      $RANLIB libconftest.a 2>&5
8022      cat > conftest.c << _LT_EOF
8023int main() { return 0;}
8024_LT_EOF
8025      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8026      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8027      _lt_result=$?
8028      if test -s conftest.err && $GREP force_load conftest.err; then
8029	cat conftest.err >&5
8030      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8031	lt_cv_ld_force_load=yes
8032      else
8033	cat conftest.err >&5
8034      fi
8035        rm -f conftest.err libconftest.a conftest conftest.c
8036        rm -rf conftest.dSYM
8037
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8040$as_echo "$lt_cv_ld_force_load" >&6; }
8041    case $host_os in
8042    rhapsody* | darwin1.[012])
8043      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8044    darwin1.*)
8045      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8046    darwin*) # darwin 5.x on
8047      # if running on 10.5 or later, the deployment target defaults
8048      # to the OS version, if on x86, and 10.4, the deployment
8049      # target defaults to 10.4. Don't you love it?
8050      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8051	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8052	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8053	10.[012][,.]*)
8054	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8055	10.*)
8056	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8057      esac
8058    ;;
8059  esac
8060    if test yes = "$lt_cv_apple_cc_single_mod"; then
8061      _lt_dar_single_mod='$single_module'
8062    fi
8063    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8064      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8065    else
8066      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8067    fi
8068    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8069      _lt_dsymutil='~$DSYMUTIL $lib || :'
8070    else
8071      _lt_dsymutil=
8072    fi
8073    ;;
8074  esac
8075
8076# func_munge_path_list VARIABLE PATH
8077# -----------------------------------
8078# VARIABLE is name of variable containing _space_ separated list of
8079# directories to be munged by the contents of PATH, which is string
8080# having a format:
8081# "DIR[:DIR]:"
8082#       string "DIR[ DIR]" will be prepended to VARIABLE
8083# ":DIR[:DIR]"
8084#       string "DIR[ DIR]" will be appended to VARIABLE
8085# "DIRP[:DIRP]::[DIRA:]DIRA"
8086#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8087#       "DIRA[ DIRA]" will be appended to VARIABLE
8088# "DIR[:DIR]"
8089#       VARIABLE will be replaced by "DIR[ DIR]"
8090func_munge_path_list ()
8091{
8092    case x$2 in
8093    x)
8094        ;;
8095    *:)
8096        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8097        ;;
8098    x:*)
8099        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8100        ;;
8101    *::*)
8102        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8103        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8104        ;;
8105    *)
8106        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8107        ;;
8108    esac
8109}
8110
8111ac_ext=c
8112ac_cpp='$CPP $CPPFLAGS'
8113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8117$as_echo_n "checking how to run the C preprocessor... " >&6; }
8118# On Suns, sometimes $CPP names a directory.
8119if test -n "$CPP" && test -d "$CPP"; then
8120  CPP=
8121fi
8122if test -z "$CPP"; then
8123  if ${ac_cv_prog_CPP+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126      # Double quotes because CPP needs to be expanded
8127    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8128    do
8129      ac_preproc_ok=false
8130for ac_c_preproc_warn_flag in '' yes
8131do
8132  # Use a header file that comes with gcc, so configuring glibc
8133  # with a fresh cross-compiler works.
8134  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135  # <limits.h> exists even on freestanding compilers.
8136  # On the NeXT, cc -E runs the code through the compiler's parser,
8137  # not just through cpp. "Syntax error" is here to catch this case.
8138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140#ifdef __STDC__
8141# include <limits.h>
8142#else
8143# include <assert.h>
8144#endif
8145		     Syntax error
8146_ACEOF
8147if ac_fn_c_try_cpp "$LINENO"; then :
8148
8149else
8150  # Broken: fails on valid input.
8151continue
8152fi
8153rm -f conftest.err conftest.i conftest.$ac_ext
8154
8155  # OK, works on sane cases.  Now check whether nonexistent headers
8156  # can be detected and how.
8157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h.  */
8159#include <ac_nonexistent.h>
8160_ACEOF
8161if ac_fn_c_try_cpp "$LINENO"; then :
8162  # Broken: success on invalid input.
8163continue
8164else
8165  # Passes both tests.
8166ac_preproc_ok=:
8167break
8168fi
8169rm -f conftest.err conftest.i conftest.$ac_ext
8170
8171done
8172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8173rm -f conftest.i conftest.err conftest.$ac_ext
8174if $ac_preproc_ok; then :
8175  break
8176fi
8177
8178    done
8179    ac_cv_prog_CPP=$CPP
8180
8181fi
8182  CPP=$ac_cv_prog_CPP
8183else
8184  ac_cv_prog_CPP=$CPP
8185fi
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8187$as_echo "$CPP" >&6; }
8188ac_preproc_ok=false
8189for ac_c_preproc_warn_flag in '' yes
8190do
8191  # Use a header file that comes with gcc, so configuring glibc
8192  # with a fresh cross-compiler works.
8193  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8194  # <limits.h> exists even on freestanding compilers.
8195  # On the NeXT, cc -E runs the code through the compiler's parser,
8196  # not just through cpp. "Syntax error" is here to catch this case.
8197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* end confdefs.h.  */
8199#ifdef __STDC__
8200# include <limits.h>
8201#else
8202# include <assert.h>
8203#endif
8204		     Syntax error
8205_ACEOF
8206if ac_fn_c_try_cpp "$LINENO"; then :
8207
8208else
8209  # Broken: fails on valid input.
8210continue
8211fi
8212rm -f conftest.err conftest.i conftest.$ac_ext
8213
8214  # OK, works on sane cases.  Now check whether nonexistent headers
8215  # can be detected and how.
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218#include <ac_nonexistent.h>
8219_ACEOF
8220if ac_fn_c_try_cpp "$LINENO"; then :
8221  # Broken: success on invalid input.
8222continue
8223else
8224  # Passes both tests.
8225ac_preproc_ok=:
8226break
8227fi
8228rm -f conftest.err conftest.i conftest.$ac_ext
8229
8230done
8231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8232rm -f conftest.i conftest.err conftest.$ac_ext
8233if $ac_preproc_ok; then :
8234
8235else
8236  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8238as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8239See \`config.log' for more details" "$LINENO" 5; }
8240fi
8241
8242ac_ext=c
8243ac_cpp='$CPP $CPPFLAGS'
8244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8246ac_compiler_gnu=$ac_cv_c_compiler_gnu
8247
8248
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8250$as_echo_n "checking for ANSI C header files... " >&6; }
8251if ${ac_cv_header_stdc+:} false; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h.  */
8256#include <stdlib.h>
8257#include <stdarg.h>
8258#include <string.h>
8259#include <float.h>
8260
8261int
8262main ()
8263{
8264
8265  ;
8266  return 0;
8267}
8268_ACEOF
8269if ac_fn_c_try_compile "$LINENO"; then :
8270  ac_cv_header_stdc=yes
8271else
8272  ac_cv_header_stdc=no
8273fi
8274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275
8276if test $ac_cv_header_stdc = yes; then
8277  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h.  */
8280#include <string.h>
8281
8282_ACEOF
8283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8284  $EGREP "memchr" >/dev/null 2>&1; then :
8285
8286else
8287  ac_cv_header_stdc=no
8288fi
8289rm -f conftest*
8290
8291fi
8292
8293if test $ac_cv_header_stdc = yes; then
8294  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296/* end confdefs.h.  */
8297#include <stdlib.h>
8298
8299_ACEOF
8300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8301  $EGREP "free" >/dev/null 2>&1; then :
8302
8303else
8304  ac_cv_header_stdc=no
8305fi
8306rm -f conftest*
8307
8308fi
8309
8310if test $ac_cv_header_stdc = yes; then
8311  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8312  if test "$cross_compiling" = yes; then :
8313  :
8314else
8315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316/* end confdefs.h.  */
8317#include <ctype.h>
8318#include <stdlib.h>
8319#if ((' ' & 0x0FF) == 0x020)
8320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8322#else
8323# define ISLOWER(c) \
8324		   (('a' <= (c) && (c) <= 'i') \
8325		     || ('j' <= (c) && (c) <= 'r') \
8326		     || ('s' <= (c) && (c) <= 'z'))
8327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8328#endif
8329
8330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8331int
8332main ()
8333{
8334  int i;
8335  for (i = 0; i < 256; i++)
8336    if (XOR (islower (i), ISLOWER (i))
8337	|| toupper (i) != TOUPPER (i))
8338      return 2;
8339  return 0;
8340}
8341_ACEOF
8342if ac_fn_c_try_run "$LINENO"; then :
8343
8344else
8345  ac_cv_header_stdc=no
8346fi
8347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348  conftest.$ac_objext conftest.beam conftest.$ac_ext
8349fi
8350
8351fi
8352fi
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8354$as_echo "$ac_cv_header_stdc" >&6; }
8355if test $ac_cv_header_stdc = yes; then
8356
8357$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8358
8359fi
8360
8361# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8363		  inttypes.h stdint.h unistd.h
8364do :
8365  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8366ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8367"
8368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8369  cat >>confdefs.h <<_ACEOF
8370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8371_ACEOF
8372
8373fi
8374
8375done
8376
8377
8378for ac_header in dlfcn.h
8379do :
8380  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8381"
8382if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8383  cat >>confdefs.h <<_ACEOF
8384#define HAVE_DLFCN_H 1
8385_ACEOF
8386
8387fi
8388
8389done
8390
8391
8392
8393func_stripname_cnf ()
8394{
8395  case $2 in
8396  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8397  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8398  esac
8399} # func_stripname_cnf
8400
8401
8402
8403
8404
8405# Set options
8406
8407
8408
8409        enable_dlopen=no
8410
8411
8412  enable_win32_dll=no
8413
8414
8415            # Check whether --enable-shared was given.
8416if test "${enable_shared+set}" = set; then :
8417  enableval=$enable_shared; p=${PACKAGE-default}
8418    case $enableval in
8419    yes) enable_shared=yes ;;
8420    no) enable_shared=no ;;
8421    *)
8422      enable_shared=no
8423      # Look at the argument we got.  We use all the common list separators.
8424      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8425      for pkg in $enableval; do
8426	IFS=$lt_save_ifs
8427	if test "X$pkg" = "X$p"; then
8428	  enable_shared=yes
8429	fi
8430      done
8431      IFS=$lt_save_ifs
8432      ;;
8433    esac
8434else
8435  enable_shared=yes
8436fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446  # Check whether --enable-static was given.
8447if test "${enable_static+set}" = set; then :
8448  enableval=$enable_static; p=${PACKAGE-default}
8449    case $enableval in
8450    yes) enable_static=yes ;;
8451    no) enable_static=no ;;
8452    *)
8453     enable_static=no
8454      # Look at the argument we got.  We use all the common list separators.
8455      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8456      for pkg in $enableval; do
8457	IFS=$lt_save_ifs
8458	if test "X$pkg" = "X$p"; then
8459	  enable_static=yes
8460	fi
8461      done
8462      IFS=$lt_save_ifs
8463      ;;
8464    esac
8465else
8466  enable_static=yes
8467fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478# Check whether --with-pic was given.
8479if test "${with_pic+set}" = set; then :
8480  withval=$with_pic; lt_p=${PACKAGE-default}
8481    case $withval in
8482    yes|no) pic_mode=$withval ;;
8483    *)
8484      pic_mode=default
8485      # Look at the argument we got.  We use all the common list separators.
8486      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8487      for lt_pkg in $withval; do
8488	IFS=$lt_save_ifs
8489	if test "X$lt_pkg" = "X$lt_p"; then
8490	  pic_mode=yes
8491	fi
8492      done
8493      IFS=$lt_save_ifs
8494      ;;
8495    esac
8496else
8497  pic_mode=default
8498fi
8499
8500
8501
8502
8503
8504
8505
8506
8507  # Check whether --enable-fast-install was given.
8508if test "${enable_fast_install+set}" = set; then :
8509  enableval=$enable_fast_install; p=${PACKAGE-default}
8510    case $enableval in
8511    yes) enable_fast_install=yes ;;
8512    no) enable_fast_install=no ;;
8513    *)
8514      enable_fast_install=no
8515      # Look at the argument we got.  We use all the common list separators.
8516      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8517      for pkg in $enableval; do
8518	IFS=$lt_save_ifs
8519	if test "X$pkg" = "X$p"; then
8520	  enable_fast_install=yes
8521	fi
8522      done
8523      IFS=$lt_save_ifs
8524      ;;
8525    esac
8526else
8527  enable_fast_install=yes
8528fi
8529
8530
8531
8532
8533
8534
8535
8536
8537  shared_archive_member_spec=
8538case $host,$enable_shared in
8539power*-*-aix[5-9]*,yes)
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8541$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8542
8543# Check whether --with-aix-soname was given.
8544if test "${with_aix_soname+set}" = set; then :
8545  withval=$with_aix_soname; case $withval in
8546    aix|svr4|both)
8547      ;;
8548    *)
8549      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8550      ;;
8551    esac
8552    lt_cv_with_aix_soname=$with_aix_soname
8553else
8554  if ${lt_cv_with_aix_soname+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  lt_cv_with_aix_soname=aix
8558fi
8559
8560    with_aix_soname=$lt_cv_with_aix_soname
8561fi
8562
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8564$as_echo "$with_aix_soname" >&6; }
8565  if test aix != "$with_aix_soname"; then
8566    # For the AIX way of multilib, we name the shared archive member
8567    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8568    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8569    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8570    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8571    if test 64 = "${OBJECT_MODE-32}"; then
8572      shared_archive_member_spec=shr_64
8573    else
8574      shared_archive_member_spec=shr
8575    fi
8576  fi
8577  ;;
8578*)
8579  with_aix_soname=aix
8580  ;;
8581esac
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592# This can be used to rebuild libtool when needed
8593LIBTOOL_DEPS=$ltmain
8594
8595# Always use our own libtool.
8596LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627test -z "$LN_S" && LN_S="ln -s"
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642if test -n "${ZSH_VERSION+set}"; then
8643   setopt NO_GLOB_SUBST
8644fi
8645
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8647$as_echo_n "checking for objdir... " >&6; }
8648if ${lt_cv_objdir+:} false; then :
8649  $as_echo_n "(cached) " >&6
8650else
8651  rm -f .libs 2>/dev/null
8652mkdir .libs 2>/dev/null
8653if test -d .libs; then
8654  lt_cv_objdir=.libs
8655else
8656  # MS-DOS does not allow filenames that begin with a dot.
8657  lt_cv_objdir=_libs
8658fi
8659rmdir .libs 2>/dev/null
8660fi
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8662$as_echo "$lt_cv_objdir" >&6; }
8663objdir=$lt_cv_objdir
8664
8665
8666
8667
8668
8669cat >>confdefs.h <<_ACEOF
8670#define LT_OBJDIR "$lt_cv_objdir/"
8671_ACEOF
8672
8673
8674
8675
8676case $host_os in
8677aix3*)
8678  # AIX sometimes has problems with the GCC collect2 program.  For some
8679  # reason, if we set the COLLECT_NAMES environment variable, the problems
8680  # vanish in a puff of smoke.
8681  if test set != "${COLLECT_NAMES+set}"; then
8682    COLLECT_NAMES=
8683    export COLLECT_NAMES
8684  fi
8685  ;;
8686esac
8687
8688# Global variables:
8689ofile=libtool
8690can_build_shared=yes
8691
8692# All known linkers require a '.a' archive for static linking (except MSVC,
8693# which needs '.lib').
8694libext=a
8695
8696with_gnu_ld=$lt_cv_prog_gnu_ld
8697
8698old_CC=$CC
8699old_CFLAGS=$CFLAGS
8700
8701# Set sane defaults for various variables
8702test -z "$CC" && CC=cc
8703test -z "$LTCC" && LTCC=$CC
8704test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8705test -z "$LD" && LD=ld
8706test -z "$ac_objext" && ac_objext=o
8707
8708func_cc_basename $compiler
8709cc_basename=$func_cc_basename_result
8710
8711
8712# Only perform the check for file, if the check method requires it
8713test -z "$MAGIC_CMD" && MAGIC_CMD=file
8714case $deplibs_check_method in
8715file_magic*)
8716  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8717    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8718$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8719if ${lt_cv_path_MAGIC_CMD+:} false; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722  case $MAGIC_CMD in
8723[\\/*] |  ?:[\\/]*)
8724  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8725  ;;
8726*)
8727  lt_save_MAGIC_CMD=$MAGIC_CMD
8728  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8729  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8730  for ac_dir in $ac_dummy; do
8731    IFS=$lt_save_ifs
8732    test -z "$ac_dir" && ac_dir=.
8733    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8734      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8735      if test -n "$file_magic_test_file"; then
8736	case $deplibs_check_method in
8737	"file_magic "*)
8738	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8739	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8740	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8741	    $EGREP "$file_magic_regex" > /dev/null; then
8742	    :
8743	  else
8744	    cat <<_LT_EOF 1>&2
8745
8746*** Warning: the command libtool uses to detect shared libraries,
8747*** $file_magic_cmd, produces output that libtool cannot recognize.
8748*** The result is that libtool may fail to recognize shared libraries
8749*** as such.  This will affect the creation of libtool libraries that
8750*** depend on shared libraries, but programs linked with such libtool
8751*** libraries will work regardless of this problem.  Nevertheless, you
8752*** may want to report the problem to your system manager and/or to
8753*** bug-libtool@gnu.org
8754
8755_LT_EOF
8756	  fi ;;
8757	esac
8758      fi
8759      break
8760    fi
8761  done
8762  IFS=$lt_save_ifs
8763  MAGIC_CMD=$lt_save_MAGIC_CMD
8764  ;;
8765esac
8766fi
8767
8768MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8769if test -n "$MAGIC_CMD"; then
8770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8771$as_echo "$MAGIC_CMD" >&6; }
8772else
8773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
8775fi
8776
8777
8778
8779
8780
8781if test -z "$lt_cv_path_MAGIC_CMD"; then
8782  if test -n "$ac_tool_prefix"; then
8783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8784$as_echo_n "checking for file... " >&6; }
8785if ${lt_cv_path_MAGIC_CMD+:} false; then :
8786  $as_echo_n "(cached) " >&6
8787else
8788  case $MAGIC_CMD in
8789[\\/*] |  ?:[\\/]*)
8790  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8791  ;;
8792*)
8793  lt_save_MAGIC_CMD=$MAGIC_CMD
8794  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8795  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8796  for ac_dir in $ac_dummy; do
8797    IFS=$lt_save_ifs
8798    test -z "$ac_dir" && ac_dir=.
8799    if test -f "$ac_dir/file"; then
8800      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8801      if test -n "$file_magic_test_file"; then
8802	case $deplibs_check_method in
8803	"file_magic "*)
8804	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8805	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8806	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8807	    $EGREP "$file_magic_regex" > /dev/null; then
8808	    :
8809	  else
8810	    cat <<_LT_EOF 1>&2
8811
8812*** Warning: the command libtool uses to detect shared libraries,
8813*** $file_magic_cmd, produces output that libtool cannot recognize.
8814*** The result is that libtool may fail to recognize shared libraries
8815*** as such.  This will affect the creation of libtool libraries that
8816*** depend on shared libraries, but programs linked with such libtool
8817*** libraries will work regardless of this problem.  Nevertheless, you
8818*** may want to report the problem to your system manager and/or to
8819*** bug-libtool@gnu.org
8820
8821_LT_EOF
8822	  fi ;;
8823	esac
8824      fi
8825      break
8826    fi
8827  done
8828  IFS=$lt_save_ifs
8829  MAGIC_CMD=$lt_save_MAGIC_CMD
8830  ;;
8831esac
8832fi
8833
8834MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8835if test -n "$MAGIC_CMD"; then
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8837$as_echo "$MAGIC_CMD" >&6; }
8838else
8839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843
8844  else
8845    MAGIC_CMD=:
8846  fi
8847fi
8848
8849  fi
8850  ;;
8851esac
8852
8853# Use C for the default configuration in the libtool script
8854
8855lt_save_CC=$CC
8856ac_ext=c
8857ac_cpp='$CPP $CPPFLAGS'
8858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860ac_compiler_gnu=$ac_cv_c_compiler_gnu
8861
8862
8863# Source file extension for C test sources.
8864ac_ext=c
8865
8866# Object file extension for compiled C test sources.
8867objext=o
8868objext=$objext
8869
8870# Code to be used in simple compile tests
8871lt_simple_compile_test_code="int some_variable = 0;"
8872
8873# Code to be used in simple link tests
8874lt_simple_link_test_code='int main(){return(0);}'
8875
8876
8877
8878
8879
8880
8881
8882# If no C compiler was specified, use CC.
8883LTCC=${LTCC-"$CC"}
8884
8885# If no C compiler flags were specified, use CFLAGS.
8886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8887
8888# Allow CC to be a program name with arguments.
8889compiler=$CC
8890
8891# Save the default compiler, since it gets overwritten when the other
8892# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8893compiler_DEFAULT=$CC
8894
8895# save warnings/boilerplate of simple test code
8896ac_outfile=conftest.$ac_objext
8897echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8898eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8899_lt_compiler_boilerplate=`cat conftest.err`
8900$RM conftest*
8901
8902ac_outfile=conftest.$ac_objext
8903echo "$lt_simple_link_test_code" >conftest.$ac_ext
8904eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8905_lt_linker_boilerplate=`cat conftest.err`
8906$RM -r conftest*
8907
8908
8909## CAVEAT EMPTOR:
8910## There is no encapsulation within the following macros, do not change
8911## the running order or otherwise move them around unless you know exactly
8912## what you are doing...
8913if test -n "$compiler"; then
8914
8915lt_prog_compiler_no_builtin_flag=
8916
8917if test yes = "$GCC"; then
8918  case $cc_basename in
8919  nvcc*)
8920    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8921  *)
8922    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8923  esac
8924
8925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8926$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8927if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  lt_cv_prog_compiler_rtti_exceptions=no
8931   ac_outfile=conftest.$ac_objext
8932   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8934   # Insert the option either (1) after the last *FLAGS variable, or
8935   # (2) before a word containing "conftest.", or (3) at the end.
8936   # Note that $ac_compile itself does not contain backslashes and begins
8937   # with a dollar sign (not a hyphen), so the echo should work correctly.
8938   # The option is referenced via a variable to avoid confusing sed.
8939   lt_compile=`echo "$ac_compile" | $SED \
8940   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942   -e 's:$: $lt_compiler_flag:'`
8943   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8944   (eval "$lt_compile" 2>conftest.err)
8945   ac_status=$?
8946   cat conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   if (exit $ac_status) && test -s "$ac_outfile"; then
8949     # The compiler can only warn and ignore the option if not recognized
8950     # So say no if there are warnings other than the usual output.
8951     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8952     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8953     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8954       lt_cv_prog_compiler_rtti_exceptions=yes
8955     fi
8956   fi
8957   $RM conftest*
8958
8959fi
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8961$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8962
8963if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8964    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8965else
8966    :
8967fi
8968
8969fi
8970
8971
8972
8973
8974
8975
8976  lt_prog_compiler_wl=
8977lt_prog_compiler_pic=
8978lt_prog_compiler_static=
8979
8980
8981  if test yes = "$GCC"; then
8982    lt_prog_compiler_wl='-Wl,'
8983    lt_prog_compiler_static='-static'
8984
8985    case $host_os in
8986      aix*)
8987      # All AIX code is PIC.
8988      if test ia64 = "$host_cpu"; then
8989	# AIX 5 now supports IA64 processor
8990	lt_prog_compiler_static='-Bstatic'
8991      fi
8992      lt_prog_compiler_pic='-fPIC'
8993      ;;
8994
8995    amigaos*)
8996      case $host_cpu in
8997      powerpc)
8998            # see comment about AmigaOS4 .so support
8999            lt_prog_compiler_pic='-fPIC'
9000        ;;
9001      m68k)
9002            # FIXME: we need at least 68020 code to build shared libraries, but
9003            # adding the '-m68020' flag to GCC prevents building anything better,
9004            # like '-m68040'.
9005            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9006        ;;
9007      esac
9008      ;;
9009
9010    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9011      # PIC is the default for these OSes.
9012      ;;
9013
9014    mingw* | cygwin* | pw32* | os2* | cegcc*)
9015      # This hack is so that the source file can tell whether it is being
9016      # built for inclusion in a dll (and should export symbols for example).
9017      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9018      # (--disable-auto-import) libraries
9019      lt_prog_compiler_pic='-DDLL_EXPORT'
9020      case $host_os in
9021      os2*)
9022	lt_prog_compiler_static='$wl-static'
9023	;;
9024      esac
9025      ;;
9026
9027    darwin* | rhapsody*)
9028      # PIC is the default on this platform
9029      # Common symbols not allowed in MH_DYLIB files
9030      lt_prog_compiler_pic='-fno-common'
9031      ;;
9032
9033    haiku*)
9034      # PIC is the default for Haiku.
9035      # The "-static" flag exists, but is broken.
9036      lt_prog_compiler_static=
9037      ;;
9038
9039    hpux*)
9040      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9041      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9042      # sets the default TLS model and affects inlining.
9043      case $host_cpu in
9044      hppa*64*)
9045	# +Z the default
9046	;;
9047      *)
9048	lt_prog_compiler_pic='-fPIC'
9049	;;
9050      esac
9051      ;;
9052
9053    interix[3-9]*)
9054      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9055      # Instead, we relocate shared libraries at runtime.
9056      ;;
9057
9058    msdosdjgpp*)
9059      # Just because we use GCC doesn't mean we suddenly get shared libraries
9060      # on systems that don't support them.
9061      lt_prog_compiler_can_build_shared=no
9062      enable_shared=no
9063      ;;
9064
9065    *nto* | *qnx*)
9066      # QNX uses GNU C++, but need to define -shared option too, otherwise
9067      # it will coredump.
9068      lt_prog_compiler_pic='-fPIC -shared'
9069      ;;
9070
9071    sysv4*MP*)
9072      if test -d /usr/nec; then
9073	lt_prog_compiler_pic=-Kconform_pic
9074      fi
9075      ;;
9076
9077    *)
9078      lt_prog_compiler_pic='-fPIC'
9079      ;;
9080    esac
9081
9082    case $cc_basename in
9083    nvcc*) # Cuda Compiler Driver 2.2
9084      lt_prog_compiler_wl='-Xlinker '
9085      if test -n "$lt_prog_compiler_pic"; then
9086        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9087      fi
9088      ;;
9089    esac
9090  else
9091    # PORTME Check for flag to pass linker flags through the system compiler.
9092    case $host_os in
9093    aix*)
9094      lt_prog_compiler_wl='-Wl,'
9095      if test ia64 = "$host_cpu"; then
9096	# AIX 5 now supports IA64 processor
9097	lt_prog_compiler_static='-Bstatic'
9098      else
9099	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9100      fi
9101      ;;
9102
9103    darwin* | rhapsody*)
9104      # PIC is the default on this platform
9105      # Common symbols not allowed in MH_DYLIB files
9106      lt_prog_compiler_pic='-fno-common'
9107      case $cc_basename in
9108      nagfor*)
9109        # NAG Fortran compiler
9110        lt_prog_compiler_wl='-Wl,-Wl,,'
9111        lt_prog_compiler_pic='-PIC'
9112        lt_prog_compiler_static='-Bstatic'
9113        ;;
9114      esac
9115      ;;
9116
9117    mingw* | cygwin* | pw32* | os2* | cegcc*)
9118      # This hack is so that the source file can tell whether it is being
9119      # built for inclusion in a dll (and should export symbols for example).
9120      lt_prog_compiler_pic='-DDLL_EXPORT'
9121      case $host_os in
9122      os2*)
9123	lt_prog_compiler_static='$wl-static'
9124	;;
9125      esac
9126      ;;
9127
9128    hpux9* | hpux10* | hpux11*)
9129      lt_prog_compiler_wl='-Wl,'
9130      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9131      # not for PA HP-UX.
9132      case $host_cpu in
9133      hppa*64*|ia64*)
9134	# +Z the default
9135	;;
9136      *)
9137	lt_prog_compiler_pic='+Z'
9138	;;
9139      esac
9140      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9141      lt_prog_compiler_static='$wl-a ${wl}archive'
9142      ;;
9143
9144    irix5* | irix6* | nonstopux*)
9145      lt_prog_compiler_wl='-Wl,'
9146      # PIC (with -KPIC) is the default.
9147      lt_prog_compiler_static='-non_shared'
9148      ;;
9149
9150    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9151      case $cc_basename in
9152      # old Intel for x86_64, which still supported -KPIC.
9153      ecc*)
9154	lt_prog_compiler_wl='-Wl,'
9155	lt_prog_compiler_pic='-KPIC'
9156	lt_prog_compiler_static='-static'
9157        ;;
9158      # flang / f18. f95 an alias for gfortran or flang on Debian
9159      flang* | f18* | f95*)
9160	lt_prog_compiler_wl='-Wl,'
9161	lt_prog_compiler_pic='-fPIC'
9162	lt_prog_compiler_static='-static'
9163        ;;
9164      # icc used to be incompatible with GCC.
9165      # ICC 10 doesn't accept -KPIC any more.
9166      icc* | ifort*)
9167	lt_prog_compiler_wl='-Wl,'
9168	lt_prog_compiler_pic='-fPIC'
9169	lt_prog_compiler_static='-static'
9170        ;;
9171      # Lahey Fortran 8.1.
9172      lf95*)
9173	lt_prog_compiler_wl='-Wl,'
9174	lt_prog_compiler_pic='--shared'
9175	lt_prog_compiler_static='--static'
9176	;;
9177      nagfor*)
9178	# NAG Fortran compiler
9179	lt_prog_compiler_wl='-Wl,-Wl,,'
9180	lt_prog_compiler_pic='-PIC'
9181	lt_prog_compiler_static='-Bstatic'
9182	;;
9183      tcc*)
9184	# Fabrice Bellard et al's Tiny C Compiler
9185	lt_prog_compiler_wl='-Wl,'
9186	lt_prog_compiler_pic='-fPIC'
9187	lt_prog_compiler_static='-static'
9188	;;
9189      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9190        # Portland Group compilers (*not* the Pentium gcc compiler,
9191	# which looks to be a dead project)
9192	lt_prog_compiler_wl='-Wl,'
9193	lt_prog_compiler_pic='-fpic'
9194	lt_prog_compiler_static='-Bstatic'
9195        ;;
9196      ccc*)
9197        lt_prog_compiler_wl='-Wl,'
9198        # All Alpha code is PIC.
9199        lt_prog_compiler_static='-non_shared'
9200        ;;
9201      xl* | bgxl* | bgf* | mpixl*)
9202	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9203	lt_prog_compiler_wl='-Wl,'
9204	lt_prog_compiler_pic='-qpic'
9205	lt_prog_compiler_static='-qstaticlink'
9206	;;
9207      *)
9208	case `$CC -V 2>&1 | sed 5q` in
9209	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9210	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9211	  lt_prog_compiler_pic='-KPIC'
9212	  lt_prog_compiler_static='-Bstatic'
9213	  lt_prog_compiler_wl=''
9214	  ;;
9215	*Sun\ F* | *Sun*Fortran*)
9216	  lt_prog_compiler_pic='-KPIC'
9217	  lt_prog_compiler_static='-Bstatic'
9218	  lt_prog_compiler_wl='-Qoption ld '
9219	  ;;
9220	*Sun\ C*)
9221	  # Sun C 5.9
9222	  lt_prog_compiler_pic='-KPIC'
9223	  lt_prog_compiler_static='-Bstatic'
9224	  lt_prog_compiler_wl='-Wl,'
9225	  ;;
9226        *Intel*\ [CF]*Compiler*)
9227	  lt_prog_compiler_wl='-Wl,'
9228	  lt_prog_compiler_pic='-fPIC'
9229	  lt_prog_compiler_static='-static'
9230	  ;;
9231	*Portland\ Group*)
9232	  lt_prog_compiler_wl='-Wl,'
9233	  lt_prog_compiler_pic='-fpic'
9234	  lt_prog_compiler_static='-Bstatic'
9235	  ;;
9236	esac
9237	;;
9238      esac
9239      ;;
9240
9241    newsos6)
9242      lt_prog_compiler_pic='-KPIC'
9243      lt_prog_compiler_static='-Bstatic'
9244      ;;
9245
9246    *nto* | *qnx*)
9247      # QNX uses GNU C++, but need to define -shared option too, otherwise
9248      # it will coredump.
9249      lt_prog_compiler_pic='-fPIC -shared'
9250      ;;
9251
9252    osf3* | osf4* | osf5*)
9253      lt_prog_compiler_wl='-Wl,'
9254      # All OSF/1 code is PIC.
9255      lt_prog_compiler_static='-non_shared'
9256      ;;
9257
9258    rdos*)
9259      lt_prog_compiler_static='-non_shared'
9260      ;;
9261
9262    solaris*)
9263      lt_prog_compiler_pic='-KPIC'
9264      lt_prog_compiler_static='-Bstatic'
9265      case $cc_basename in
9266      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9267	lt_prog_compiler_wl='-Qoption ld ';;
9268      *)
9269	lt_prog_compiler_wl='-Wl,';;
9270      esac
9271      ;;
9272
9273    sunos4*)
9274      lt_prog_compiler_wl='-Qoption ld '
9275      lt_prog_compiler_pic='-PIC'
9276      lt_prog_compiler_static='-Bstatic'
9277      ;;
9278
9279    sysv4 | sysv4.2uw2* | sysv4.3*)
9280      lt_prog_compiler_wl='-Wl,'
9281      lt_prog_compiler_pic='-KPIC'
9282      lt_prog_compiler_static='-Bstatic'
9283      ;;
9284
9285    sysv4*MP*)
9286      if test -d /usr/nec; then
9287	lt_prog_compiler_pic='-Kconform_pic'
9288	lt_prog_compiler_static='-Bstatic'
9289      fi
9290      ;;
9291
9292    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9293      lt_prog_compiler_wl='-Wl,'
9294      lt_prog_compiler_pic='-KPIC'
9295      lt_prog_compiler_static='-Bstatic'
9296      ;;
9297
9298    unicos*)
9299      lt_prog_compiler_wl='-Wl,'
9300      lt_prog_compiler_can_build_shared=no
9301      ;;
9302
9303    uts4*)
9304      lt_prog_compiler_pic='-pic'
9305      lt_prog_compiler_static='-Bstatic'
9306      ;;
9307
9308    *)
9309      lt_prog_compiler_can_build_shared=no
9310      ;;
9311    esac
9312  fi
9313
9314case $host_os in
9315  # For platforms that do not support PIC, -DPIC is meaningless:
9316  *djgpp*)
9317    lt_prog_compiler_pic=
9318    ;;
9319  *)
9320    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9321    ;;
9322esac
9323
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9325$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9326if ${lt_cv_prog_compiler_pic+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9330fi
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9332$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9333lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9334
9335#
9336# Check to make sure the PIC flag actually works.
9337#
9338if test -n "$lt_prog_compiler_pic"; then
9339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9340$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9341if ${lt_cv_prog_compiler_pic_works+:} false; then :
9342  $as_echo_n "(cached) " >&6
9343else
9344  lt_cv_prog_compiler_pic_works=no
9345   ac_outfile=conftest.$ac_objext
9346   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9347   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9348   # Insert the option either (1) after the last *FLAGS variable, or
9349   # (2) before a word containing "conftest.", or (3) at the end.
9350   # Note that $ac_compile itself does not contain backslashes and begins
9351   # with a dollar sign (not a hyphen), so the echo should work correctly.
9352   # The option is referenced via a variable to avoid confusing sed.
9353   lt_compile=`echo "$ac_compile" | $SED \
9354   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9355   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9356   -e 's:$: $lt_compiler_flag:'`
9357   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9358   (eval "$lt_compile" 2>conftest.err)
9359   ac_status=$?
9360   cat conftest.err >&5
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   if (exit $ac_status) && test -s "$ac_outfile"; then
9363     # The compiler can only warn and ignore the option if not recognized
9364     # So say no if there are warnings other than the usual output.
9365     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9366     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9367     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9368       lt_cv_prog_compiler_pic_works=yes
9369     fi
9370   fi
9371   $RM conftest*
9372
9373fi
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9375$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9376
9377if test yes = "$lt_cv_prog_compiler_pic_works"; then
9378    case $lt_prog_compiler_pic in
9379     "" | " "*) ;;
9380     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9381     esac
9382else
9383    lt_prog_compiler_pic=
9384     lt_prog_compiler_can_build_shared=no
9385fi
9386
9387fi
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399#
9400# Check to make sure the static flag actually works.
9401#
9402wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9404$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9405if ${lt_cv_prog_compiler_static_works+:} false; then :
9406  $as_echo_n "(cached) " >&6
9407else
9408  lt_cv_prog_compiler_static_works=no
9409   save_LDFLAGS=$LDFLAGS
9410   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9411   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9412   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9413     # The linker can only warn and ignore the option if not recognized
9414     # So say no if there are warnings
9415     if test -s conftest.err; then
9416       # Append any errors to the config.log.
9417       cat conftest.err 1>&5
9418       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9419       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9420       if diff conftest.exp conftest.er2 >/dev/null; then
9421         lt_cv_prog_compiler_static_works=yes
9422       fi
9423     else
9424       lt_cv_prog_compiler_static_works=yes
9425     fi
9426   fi
9427   $RM -r conftest*
9428   LDFLAGS=$save_LDFLAGS
9429
9430fi
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9432$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9433
9434if test yes = "$lt_cv_prog_compiler_static_works"; then
9435    :
9436else
9437    lt_prog_compiler_static=
9438fi
9439
9440
9441
9442
9443
9444
9445
9446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9447$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9448if ${lt_cv_prog_compiler_c_o+:} false; then :
9449  $as_echo_n "(cached) " >&6
9450else
9451  lt_cv_prog_compiler_c_o=no
9452   $RM -r conftest 2>/dev/null
9453   mkdir conftest
9454   cd conftest
9455   mkdir out
9456   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9457
9458   lt_compiler_flag="-o out/conftest2.$ac_objext"
9459   # Insert the option either (1) after the last *FLAGS variable, or
9460   # (2) before a word containing "conftest.", or (3) at the end.
9461   # Note that $ac_compile itself does not contain backslashes and begins
9462   # with a dollar sign (not a hyphen), so the echo should work correctly.
9463   lt_compile=`echo "$ac_compile" | $SED \
9464   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9465   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9466   -e 's:$: $lt_compiler_flag:'`
9467   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9468   (eval "$lt_compile" 2>out/conftest.err)
9469   ac_status=$?
9470   cat out/conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9473   then
9474     # The compiler can only warn and ignore the option if not recognized
9475     # So say no if there are warnings
9476     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9477     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9478     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9479       lt_cv_prog_compiler_c_o=yes
9480     fi
9481   fi
9482   chmod u+w . 2>&5
9483   $RM conftest*
9484   # SGI C++ compiler will create directory out/ii_files/ for
9485   # template instantiation
9486   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9487   $RM out/* && rmdir out
9488   cd ..
9489   $RM -r conftest
9490   $RM conftest*
9491
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9494$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9495
9496
9497
9498
9499
9500
9501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9502$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9503if ${lt_cv_prog_compiler_c_o+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  lt_cv_prog_compiler_c_o=no
9507   $RM -r conftest 2>/dev/null
9508   mkdir conftest
9509   cd conftest
9510   mkdir out
9511   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9512
9513   lt_compiler_flag="-o out/conftest2.$ac_objext"
9514   # Insert the option either (1) after the last *FLAGS variable, or
9515   # (2) before a word containing "conftest.", or (3) at the end.
9516   # Note that $ac_compile itself does not contain backslashes and begins
9517   # with a dollar sign (not a hyphen), so the echo should work correctly.
9518   lt_compile=`echo "$ac_compile" | $SED \
9519   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9521   -e 's:$: $lt_compiler_flag:'`
9522   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9523   (eval "$lt_compile" 2>out/conftest.err)
9524   ac_status=$?
9525   cat out/conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9528   then
9529     # The compiler can only warn and ignore the option if not recognized
9530     # So say no if there are warnings
9531     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9532     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9533     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9534       lt_cv_prog_compiler_c_o=yes
9535     fi
9536   fi
9537   chmod u+w . 2>&5
9538   $RM conftest*
9539   # SGI C++ compiler will create directory out/ii_files/ for
9540   # template instantiation
9541   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9542   $RM out/* && rmdir out
9543   cd ..
9544   $RM -r conftest
9545   $RM conftest*
9546
9547fi
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9549$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9550
9551
9552
9553
9554hard_links=nottested
9555if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9556  # do not overwrite the value of need_locks provided by the user
9557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9558$as_echo_n "checking if we can lock with hard links... " >&6; }
9559  hard_links=yes
9560  $RM conftest*
9561  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9562  touch conftest.a
9563  ln conftest.a conftest.b 2>&5 || hard_links=no
9564  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9566$as_echo "$hard_links" >&6; }
9567  if test no = "$hard_links"; then
9568    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9569$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9570    need_locks=warn
9571  fi
9572else
9573  need_locks=no
9574fi
9575
9576
9577
9578
9579
9580
9581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9583
9584  runpath_var=
9585  allow_undefined_flag=
9586  always_export_symbols=no
9587  archive_cmds=
9588  archive_expsym_cmds=
9589  compiler_needs_object=no
9590  enable_shared_with_static_runtimes=no
9591  export_dynamic_flag_spec=
9592  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9593  hardcode_automatic=no
9594  hardcode_direct=no
9595  hardcode_direct_absolute=no
9596  hardcode_libdir_flag_spec=
9597  hardcode_libdir_separator=
9598  hardcode_minus_L=no
9599  hardcode_shlibpath_var=unsupported
9600  inherit_rpath=no
9601  link_all_deplibs=unknown
9602  module_cmds=
9603  module_expsym_cmds=
9604  old_archive_from_new_cmds=
9605  old_archive_from_expsyms_cmds=
9606  thread_safe_flag_spec=
9607  whole_archive_flag_spec=
9608  # include_expsyms should be a list of space-separated symbols to be *always*
9609  # included in the symbol list
9610  include_expsyms=
9611  # exclude_expsyms can be an extended regexp of symbols to exclude
9612  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9613  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9614  # as well as any symbol that contains 'd'.
9615  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9616  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9617  # platforms (ab)use it in PIC code, but their linkers get confused if
9618  # the symbol is explicitly referenced.  Since portable code cannot
9619  # rely on this symbol name, it's probably fine to never include it in
9620  # preloaded symbol tables.
9621  # Exclude shared library initialization/finalization symbols.
9622  extract_expsyms_cmds=
9623
9624  case $host_os in
9625  cygwin* | mingw* | pw32* | cegcc*)
9626    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9627    # When not using gcc, we currently assume that we are using
9628    # Microsoft Visual C++.
9629    if test yes != "$GCC"; then
9630      with_gnu_ld=no
9631    fi
9632    ;;
9633  interix*)
9634    # we just hope/assume this is gcc and not c89 (= MSVC++)
9635    with_gnu_ld=yes
9636    ;;
9637  openbsd* | bitrig*)
9638    with_gnu_ld=no
9639    ;;
9640  linux* | k*bsd*-gnu | gnu*)
9641    link_all_deplibs=no
9642    ;;
9643  esac
9644
9645  ld_shlibs=yes
9646
9647  # On some targets, GNU ld is compatible enough with the native linker
9648  # that we're better off using the native interface for both.
9649  lt_use_gnu_ld_interface=no
9650  if test yes = "$with_gnu_ld"; then
9651    case $host_os in
9652      aix*)
9653	# The AIX port of GNU ld has always aspired to compatibility
9654	# with the native linker.  However, as the warning in the GNU ld
9655	# block says, versions before 2.19.5* couldn't really create working
9656	# shared libraries, regardless of the interface used.
9657	case `$LD -v 2>&1` in
9658	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9659	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9660	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9661	  *)
9662	    lt_use_gnu_ld_interface=yes
9663	    ;;
9664	esac
9665	;;
9666      *)
9667	lt_use_gnu_ld_interface=yes
9668	;;
9669    esac
9670  fi
9671
9672  if test yes = "$lt_use_gnu_ld_interface"; then
9673    # If archive_cmds runs LD, not CC, wlarc should be empty
9674    wlarc='$wl'
9675
9676    # Set some defaults for GNU ld with shared library support. These
9677    # are reset later if shared libraries are not supported. Putting them
9678    # here allows them to be overridden if necessary.
9679    runpath_var=LD_RUN_PATH
9680    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9681    export_dynamic_flag_spec='$wl--export-dynamic'
9682    # ancient GNU ld didn't support --whole-archive et. al.
9683    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9684      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9685    else
9686      whole_archive_flag_spec=
9687    fi
9688    supports_anon_versioning=no
9689    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9690      *GNU\ gold*) supports_anon_versioning=yes ;;
9691      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9692      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9693      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9694      *\ 2.11.*) ;; # other 2.11 versions
9695      *) supports_anon_versioning=yes ;;
9696    esac
9697
9698    # See if GNU ld supports shared libraries.
9699    case $host_os in
9700    aix[3-9]*)
9701      # On AIX/PPC, the GNU linker is very broken
9702      if test ia64 != "$host_cpu"; then
9703	ld_shlibs=no
9704	cat <<_LT_EOF 1>&2
9705
9706*** Warning: the GNU linker, at least up to release 2.19, is reported
9707*** to be unable to reliably create shared libraries on AIX.
9708*** Therefore, libtool is disabling shared libraries support.  If you
9709*** really care for shared libraries, you may want to install binutils
9710*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9711*** You will then need to restart the configuration process.
9712
9713_LT_EOF
9714      fi
9715      ;;
9716
9717    amigaos*)
9718      case $host_cpu in
9719      powerpc)
9720            # see comment about AmigaOS4 .so support
9721            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9722            archive_expsym_cmds=''
9723        ;;
9724      m68k)
9725            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)'
9726            hardcode_libdir_flag_spec='-L$libdir'
9727            hardcode_minus_L=yes
9728        ;;
9729      esac
9730      ;;
9731
9732    beos*)
9733      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9734	allow_undefined_flag=unsupported
9735	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9736	# support --undefined.  This deserves some investigation.  FIXME
9737	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9738      else
9739	ld_shlibs=no
9740      fi
9741      ;;
9742
9743    cygwin* | mingw* | pw32* | cegcc*)
9744      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9745      # as there is no search path for DLLs.
9746      hardcode_libdir_flag_spec='-L$libdir'
9747      export_dynamic_flag_spec='$wl--export-all-symbols'
9748      allow_undefined_flag=unsupported
9749      always_export_symbols=no
9750      enable_shared_with_static_runtimes=yes
9751      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'
9752      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9753
9754      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9755        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9756	# If the export-symbols file already is a .def file, use it as
9757	# is; otherwise, prepend EXPORTS...
9758	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9759          cp $export_symbols $output_objdir/$soname.def;
9760        else
9761          echo EXPORTS > $output_objdir/$soname.def;
9762          cat $export_symbols >> $output_objdir/$soname.def;
9763        fi~
9764        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9765      else
9766	ld_shlibs=no
9767      fi
9768      ;;
9769
9770    haiku*)
9771      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9772      link_all_deplibs=yes
9773      ;;
9774
9775    os2*)
9776      hardcode_libdir_flag_spec='-L$libdir'
9777      hardcode_minus_L=yes
9778      allow_undefined_flag=unsupported
9779      shrext_cmds=.dll
9780      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9781	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9782	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9783	$ECHO EXPORTS >> $output_objdir/$libname.def~
9784	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9785	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9786	emximp -o $lib $output_objdir/$libname.def'
9787      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9788	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9789	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9790	$ECHO EXPORTS >> $output_objdir/$libname.def~
9791	prefix_cmds="$SED"~
9792	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9793	  prefix_cmds="$prefix_cmds -e 1d";
9794	fi~
9795	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9796	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9797	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9798	emximp -o $lib $output_objdir/$libname.def'
9799      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9800      enable_shared_with_static_runtimes=yes
9801      ;;
9802
9803    interix[3-9]*)
9804      hardcode_direct=no
9805      hardcode_shlibpath_var=no
9806      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9807      export_dynamic_flag_spec='$wl-E'
9808      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9809      # Instead, shared libraries are loaded at an image base (0x10000000 by
9810      # default) and relocated if they conflict, which is a slow very memory
9811      # consuming and fragmenting process.  To avoid this, we pick a random,
9812      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9813      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9814      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9815      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'
9816      ;;
9817
9818    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9819      tmp_diet=no
9820      if test linux-dietlibc = "$host_os"; then
9821	case $cc_basename in
9822	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9823	esac
9824      fi
9825      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9826	 && test no = "$tmp_diet"
9827      then
9828	tmp_addflag=' $pic_flag'
9829	tmp_sharedflag='-shared'
9830	case $cc_basename,$host_cpu in
9831        pgcc*)				# Portland Group C compiler
9832	  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'
9833	  tmp_addflag=' $pic_flag'
9834	  ;;
9835	pgf77* | pgf90* | pgf95* | pgfortran*)
9836					# Portland Group f77 and f90 compilers
9837	  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'
9838	  tmp_addflag=' $pic_flag -Mnomain' ;;
9839	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9840	  tmp_addflag=' -i_dynamic' ;;
9841	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9842	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9843	ifc* | ifort*)			# Intel Fortran compiler
9844	  tmp_addflag=' -nofor_main' ;;
9845	lf95*)				# Lahey Fortran 8.1
9846	  whole_archive_flag_spec=
9847	  tmp_sharedflag='--shared' ;;
9848        nagfor*)                        # NAGFOR 5.3
9849          tmp_sharedflag='-Wl,-shared' ;;
9850	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9851	  tmp_sharedflag='-qmkshrobj'
9852	  tmp_addflag= ;;
9853	nvcc*)	# Cuda Compiler Driver 2.2
9854	  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'
9855	  compiler_needs_object=yes
9856	  ;;
9857	esac
9858	case `$CC -V 2>&1 | sed 5q` in
9859	*Sun\ C*)			# Sun C 5.9
9860	  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'
9861	  compiler_needs_object=yes
9862	  tmp_sharedflag='-G' ;;
9863	*Sun\ F*)			# Sun Fortran 8.3
9864	  tmp_sharedflag='-G' ;;
9865	esac
9866	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9867
9868        if test yes = "$supports_anon_versioning"; then
9869          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9870            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9871            echo "local: *; };" >> $output_objdir/$libname.ver~
9872            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9873        fi
9874
9875	case $cc_basename in
9876	tcc*)
9877	  export_dynamic_flag_spec='-rdynamic'
9878	  ;;
9879	xlf* | bgf* | bgxlf* | mpixlf*)
9880	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9881	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9882	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9883	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9884	  if test yes = "$supports_anon_versioning"; then
9885	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9886              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9887              echo "local: *; };" >> $output_objdir/$libname.ver~
9888              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9889	  fi
9890	  ;;
9891	esac
9892      else
9893        ld_shlibs=no
9894      fi
9895      ;;
9896
9897    netbsd* | netbsdelf*-gnu)
9898      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9899	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9900	wlarc=
9901      else
9902	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9903	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9904      fi
9905      ;;
9906
9907    solaris*)
9908      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9909	ld_shlibs=no
9910	cat <<_LT_EOF 1>&2
9911
9912*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9913*** create shared libraries on Solaris systems.  Therefore, libtool
9914*** is disabling shared libraries support.  We urge you to upgrade GNU
9915*** binutils to release 2.9.1 or newer.  Another option is to modify
9916*** your PATH or compiler configuration so that the native linker is
9917*** used, and then restart.
9918
9919_LT_EOF
9920      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9921	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9922	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9923      else
9924	ld_shlibs=no
9925      fi
9926      ;;
9927
9928    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9929      case `$LD -v 2>&1` in
9930        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9931	ld_shlibs=no
9932	cat <<_LT_EOF 1>&2
9933
9934*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9935*** reliably create shared libraries on SCO systems.  Therefore, libtool
9936*** is disabling shared libraries support.  We urge you to upgrade GNU
9937*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9938*** your PATH or compiler configuration so that the native linker is
9939*** used, and then restart.
9940
9941_LT_EOF
9942	;;
9943	*)
9944	  # For security reasons, it is highly recommended that you always
9945	  # use absolute paths for naming shared libraries, and exclude the
9946	  # DT_RUNPATH tag from executables and libraries.  But doing so
9947	  # requires that you compile everything twice, which is a pain.
9948	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9949	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9950	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9951	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9952	  else
9953	    ld_shlibs=no
9954	  fi
9955	;;
9956      esac
9957      ;;
9958
9959    sunos4*)
9960      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9961      wlarc=
9962      hardcode_direct=yes
9963      hardcode_shlibpath_var=no
9964      ;;
9965
9966    *)
9967      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9969	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9970      else
9971	ld_shlibs=no
9972      fi
9973      ;;
9974    esac
9975
9976    if test no = "$ld_shlibs"; then
9977      runpath_var=
9978      hardcode_libdir_flag_spec=
9979      export_dynamic_flag_spec=
9980      whole_archive_flag_spec=
9981    fi
9982  else
9983    # PORTME fill in a description of your system's linker (not GNU ld)
9984    case $host_os in
9985    aix3*)
9986      allow_undefined_flag=unsupported
9987      always_export_symbols=yes
9988      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'
9989      # Note: this linker hardcodes the directories in LIBPATH if there
9990      # are no directories specified by -L.
9991      hardcode_minus_L=yes
9992      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9993	# Neither direct hardcoding nor static linking is supported with a
9994	# broken collect2.
9995	hardcode_direct=unsupported
9996      fi
9997      ;;
9998
9999    aix[4-9]*)
10000      if test ia64 = "$host_cpu"; then
10001	# On IA64, the linker does run time linking by default, so we don't
10002	# have to do anything special.
10003	aix_use_runtimelinking=no
10004	exp_sym_flag='-Bexport'
10005	no_entry_flag=
10006      else
10007	# If we're using GNU nm, then we don't want the "-C" option.
10008	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10009	# Without the "-l" option, or with the "-B" option, AIX nm treats
10010	# weak defined symbols like other global defined symbols, whereas
10011	# GNU nm marks them as "W".
10012	# While the 'weak' keyword is ignored in the Export File, we need
10013	# it in the Import File for the 'aix-soname' feature, so we have
10014	# to replace the "-B" option with "-P" for AIX nm.
10015	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10016	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10017	else
10018	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10019	fi
10020	aix_use_runtimelinking=no
10021
10022	# Test if we are trying to use run time linking or normal
10023	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10024	# have runtime linking enabled, and use it for executables.
10025	# For shared libraries, we enable/disable runtime linking
10026	# depending on the kind of the shared library created -
10027	# when "with_aix_soname,aix_use_runtimelinking" is:
10028	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10029	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10030	#            lib.a           static archive
10031	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10032	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10033	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10034	#            lib.a(lib.so.V) shared, rtl:no
10035	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10036	#            lib.a           static archive
10037	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10038	  for ld_flag in $LDFLAGS; do
10039	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10040	    aix_use_runtimelinking=yes
10041	    break
10042	  fi
10043	  done
10044	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10045	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10046	    # so we don't have lib.a shared libs to link our executables.
10047	    # We have to force runtime linking in this case.
10048	    aix_use_runtimelinking=yes
10049	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10050	  fi
10051	  ;;
10052	esac
10053
10054	exp_sym_flag='-bexport'
10055	no_entry_flag='-bnoentry'
10056      fi
10057
10058      # When large executables or shared objects are built, AIX ld can
10059      # have problems creating the table of contents.  If linking a library
10060      # or program results in "error TOC overflow" add -mminimal-toc to
10061      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10062      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10063
10064      archive_cmds=''
10065      hardcode_direct=yes
10066      hardcode_direct_absolute=yes
10067      hardcode_libdir_separator=':'
10068      link_all_deplibs=yes
10069      file_list_spec='$wl-f,'
10070      case $with_aix_soname,$aix_use_runtimelinking in
10071      aix,*) ;; # traditional, no import file
10072      svr4,* | *,yes) # use import file
10073	# The Import File defines what to hardcode.
10074	hardcode_direct=no
10075	hardcode_direct_absolute=no
10076	;;
10077      esac
10078
10079      if test yes = "$GCC"; then
10080	case $host_os in aix4.[012]|aix4.[012].*)
10081	# We only want to do this on AIX 4.2 and lower, the check
10082	# below for broken collect2 doesn't work under 4.3+
10083	  collect2name=`$CC -print-prog-name=collect2`
10084	  if test -f "$collect2name" &&
10085	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10086	  then
10087	  # We have reworked collect2
10088	  :
10089	  else
10090	  # We have old collect2
10091	  hardcode_direct=unsupported
10092	  # It fails to find uninstalled libraries when the uninstalled
10093	  # path is not listed in the libpath.  Setting hardcode_minus_L
10094	  # to unsupported forces relinking
10095	  hardcode_minus_L=yes
10096	  hardcode_libdir_flag_spec='-L$libdir'
10097	  hardcode_libdir_separator=
10098	  fi
10099	  ;;
10100	esac
10101	shared_flag='-shared'
10102	if test yes = "$aix_use_runtimelinking"; then
10103	  shared_flag="$shared_flag "'$wl-G'
10104	fi
10105	# Need to ensure runtime linking is disabled for the traditional
10106	# shared library, or the linker may eventually find shared libraries
10107	# /with/ Import File - we do not want to mix them.
10108	shared_flag_aix='-shared'
10109	shared_flag_svr4='-shared $wl-G'
10110      else
10111	# not using gcc
10112	if test ia64 = "$host_cpu"; then
10113	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10114	# chokes on -Wl,-G. The following line is correct:
10115	  shared_flag='-G'
10116	else
10117	  if test yes = "$aix_use_runtimelinking"; then
10118	    shared_flag='$wl-G'
10119	  else
10120	    shared_flag='$wl-bM:SRE'
10121	  fi
10122	  shared_flag_aix='$wl-bM:SRE'
10123	  shared_flag_svr4='$wl-G'
10124	fi
10125      fi
10126
10127      export_dynamic_flag_spec='$wl-bexpall'
10128      # It seems that -bexpall does not export symbols beginning with
10129      # underscore (_), so it is better to generate a list of symbols to export.
10130      always_export_symbols=yes
10131      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10132	# Warning - without using the other runtime loading flags (-brtl),
10133	# -berok will link without error, but may produce a broken library.
10134	allow_undefined_flag='-berok'
10135        # Determine the default libpath from the value encoded in an
10136        # empty executable.
10137        if test set = "${lt_cv_aix_libpath+set}"; then
10138  aix_libpath=$lt_cv_aix_libpath
10139else
10140  if ${lt_cv_aix_libpath_+:} false; then :
10141  $as_echo_n "(cached) " >&6
10142else
10143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h.  */
10145
10146int
10147main ()
10148{
10149
10150  ;
10151  return 0;
10152}
10153_ACEOF
10154if ac_fn_c_try_link "$LINENO"; then :
10155
10156  lt_aix_libpath_sed='
10157      /Import File Strings/,/^$/ {
10158	  /^0/ {
10159	      s/^0  *\([^ ]*\) *$/\1/
10160	      p
10161	  }
10162      }'
10163  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10164  # Check for a 64-bit object if we didn't find anything.
10165  if test -z "$lt_cv_aix_libpath_"; then
10166    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10167  fi
10168fi
10169rm -f core conftest.err conftest.$ac_objext \
10170    conftest$ac_exeext conftest.$ac_ext
10171  if test -z "$lt_cv_aix_libpath_"; then
10172    lt_cv_aix_libpath_=/usr/lib:/lib
10173  fi
10174
10175fi
10176
10177  aix_libpath=$lt_cv_aix_libpath_
10178fi
10179
10180        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10181        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10182      else
10183	if test ia64 = "$host_cpu"; then
10184	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10185	  allow_undefined_flag="-z nodefs"
10186	  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"
10187	else
10188	 # Determine the default libpath from the value encoded in an
10189	 # empty executable.
10190	 if test set = "${lt_cv_aix_libpath+set}"; then
10191  aix_libpath=$lt_cv_aix_libpath
10192else
10193  if ${lt_cv_aix_libpath_+:} false; then :
10194  $as_echo_n "(cached) " >&6
10195else
10196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197/* end confdefs.h.  */
10198
10199int
10200main ()
10201{
10202
10203  ;
10204  return 0;
10205}
10206_ACEOF
10207if ac_fn_c_try_link "$LINENO"; then :
10208
10209  lt_aix_libpath_sed='
10210      /Import File Strings/,/^$/ {
10211	  /^0/ {
10212	      s/^0  *\([^ ]*\) *$/\1/
10213	      p
10214	  }
10215      }'
10216  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217  # Check for a 64-bit object if we didn't find anything.
10218  if test -z "$lt_cv_aix_libpath_"; then
10219    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10220  fi
10221fi
10222rm -f core conftest.err conftest.$ac_objext \
10223    conftest$ac_exeext conftest.$ac_ext
10224  if test -z "$lt_cv_aix_libpath_"; then
10225    lt_cv_aix_libpath_=/usr/lib:/lib
10226  fi
10227
10228fi
10229
10230  aix_libpath=$lt_cv_aix_libpath_
10231fi
10232
10233	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10234	  # Warning - without using the other run time loading flags,
10235	  # -berok will link without error, but may produce a broken library.
10236	  no_undefined_flag=' $wl-bernotok'
10237	  allow_undefined_flag=' $wl-berok'
10238	  if test yes = "$with_gnu_ld"; then
10239	    # We only use this code for GNU lds that support --whole-archive.
10240	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10241	  else
10242	    # Exported symbols can be pulled into shared objects from archives
10243	    whole_archive_flag_spec='$convenience'
10244	  fi
10245	  archive_cmds_need_lc=yes
10246	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10247	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10248	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10249	  if test svr4 != "$with_aix_soname"; then
10250	    # This is similar to how AIX traditionally builds its shared libraries.
10251	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10252	  fi
10253	  if test aix != "$with_aix_soname"; then
10254	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10255	  else
10256	    # used by -dlpreopen to get the symbols
10257	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10258	  fi
10259	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10260	fi
10261      fi
10262      ;;
10263
10264    amigaos*)
10265      case $host_cpu in
10266      powerpc)
10267            # see comment about AmigaOS4 .so support
10268            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10269            archive_expsym_cmds=''
10270        ;;
10271      m68k)
10272            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)'
10273            hardcode_libdir_flag_spec='-L$libdir'
10274            hardcode_minus_L=yes
10275        ;;
10276      esac
10277      ;;
10278
10279    bsdi[45]*)
10280      export_dynamic_flag_spec=-rdynamic
10281      ;;
10282
10283    cygwin* | mingw* | pw32* | cegcc*)
10284      # When not using gcc, we currently assume that we are using
10285      # Microsoft Visual C++.
10286      # hardcode_libdir_flag_spec is actually meaningless, as there is
10287      # no search path for DLLs.
10288      case $cc_basename in
10289      cl*)
10290	# Native MSVC
10291	hardcode_libdir_flag_spec=' '
10292	allow_undefined_flag=unsupported
10293	always_export_symbols=yes
10294	file_list_spec='@'
10295	# Tell ltmain to make .lib files, not .a files.
10296	libext=lib
10297	# Tell ltmain to make .dll files, not .so files.
10298	shrext_cmds=.dll
10299	# FIXME: Setting linknames here is a bad hack.
10300	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10301	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10302            cp "$export_symbols" "$output_objdir/$soname.def";
10303            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10304          else
10305            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10306          fi~
10307          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10308          linknames='
10309	# The linker will not automatically build a static lib if we build a DLL.
10310	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10311	enable_shared_with_static_runtimes=yes
10312	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10313	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10314	# Don't use ranlib
10315	old_postinstall_cmds='chmod 644 $oldlib'
10316	postlink_cmds='lt_outputfile="@OUTPUT@"~
10317          lt_tool_outputfile="@TOOL_OUTPUT@"~
10318          case $lt_outputfile in
10319            *.exe|*.EXE) ;;
10320            *)
10321              lt_outputfile=$lt_outputfile.exe
10322              lt_tool_outputfile=$lt_tool_outputfile.exe
10323              ;;
10324          esac~
10325          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10326            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10327            $RM "$lt_outputfile.manifest";
10328          fi'
10329	;;
10330      *)
10331	# Assume MSVC wrapper
10332	hardcode_libdir_flag_spec=' '
10333	allow_undefined_flag=unsupported
10334	# Tell ltmain to make .lib files, not .a files.
10335	libext=lib
10336	# Tell ltmain to make .dll files, not .so files.
10337	shrext_cmds=.dll
10338	# FIXME: Setting linknames here is a bad hack.
10339	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10340	# The linker will automatically build a .lib file if we build a DLL.
10341	old_archive_from_new_cmds='true'
10342	# FIXME: Should let the user specify the lib program.
10343	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10344	enable_shared_with_static_runtimes=yes
10345	;;
10346      esac
10347      ;;
10348
10349    darwin* | rhapsody*)
10350
10351
10352  archive_cmds_need_lc=no
10353  hardcode_direct=no
10354  hardcode_automatic=yes
10355  hardcode_shlibpath_var=unsupported
10356  if test yes = "$lt_cv_ld_force_load"; then
10357    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\"`'
10358
10359  else
10360    whole_archive_flag_spec=''
10361  fi
10362  link_all_deplibs=yes
10363  allow_undefined_flag=$_lt_dar_allow_undefined
10364  case $cc_basename in
10365     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10366     *) _lt_dar_can_shared=$GCC ;;
10367  esac
10368  if test yes = "$_lt_dar_can_shared"; then
10369    output_verbose_link_cmd=func_echo_all
10370    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10371    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10372    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"
10373    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"
10374
10375  else
10376  ld_shlibs=no
10377  fi
10378
10379      ;;
10380
10381    dgux*)
10382      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10383      hardcode_libdir_flag_spec='-L$libdir'
10384      hardcode_shlibpath_var=no
10385      ;;
10386
10387    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10388    # support.  Future versions do this automatically, but an explicit c++rt0.o
10389    # does not break anything, and helps significantly (at the cost of a little
10390    # extra space).
10391    freebsd2.2*)
10392      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10393      hardcode_libdir_flag_spec='-R$libdir'
10394      hardcode_direct=yes
10395      hardcode_shlibpath_var=no
10396      ;;
10397
10398    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10399    freebsd2.*)
10400      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10401      hardcode_direct=yes
10402      hardcode_minus_L=yes
10403      hardcode_shlibpath_var=no
10404      ;;
10405
10406    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10407    freebsd* | dragonfly*)
10408      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10409      hardcode_libdir_flag_spec='-R$libdir'
10410      hardcode_direct=yes
10411      hardcode_shlibpath_var=no
10412      ;;
10413
10414    hpux9*)
10415      if test yes = "$GCC"; then
10416	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
10417      else
10418	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
10419      fi
10420      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10421      hardcode_libdir_separator=:
10422      hardcode_direct=yes
10423
10424      # hardcode_minus_L: Not really in the search PATH,
10425      # but as the default location of the library.
10426      hardcode_minus_L=yes
10427      export_dynamic_flag_spec='$wl-E'
10428      ;;
10429
10430    hpux10*)
10431      if test yes,no = "$GCC,$with_gnu_ld"; then
10432	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10433      else
10434	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10435      fi
10436      if test no = "$with_gnu_ld"; then
10437	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10438	hardcode_libdir_separator=:
10439	hardcode_direct=yes
10440	hardcode_direct_absolute=yes
10441	export_dynamic_flag_spec='$wl-E'
10442	# hardcode_minus_L: Not really in the search PATH,
10443	# but as the default location of the library.
10444	hardcode_minus_L=yes
10445      fi
10446      ;;
10447
10448    hpux11*)
10449      if test yes,no = "$GCC,$with_gnu_ld"; then
10450	case $host_cpu in
10451	hppa*64*)
10452	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10453	  ;;
10454	ia64*)
10455	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10456	  ;;
10457	*)
10458	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10459	  ;;
10460	esac
10461      else
10462	case $host_cpu in
10463	hppa*64*)
10464	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10465	  ;;
10466	ia64*)
10467	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10468	  ;;
10469	*)
10470
10471	  # Older versions of the 11.00 compiler do not understand -b yet
10472	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10473	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10474$as_echo_n "checking if $CC understands -b... " >&6; }
10475if ${lt_cv_prog_compiler__b+:} false; then :
10476  $as_echo_n "(cached) " >&6
10477else
10478  lt_cv_prog_compiler__b=no
10479   save_LDFLAGS=$LDFLAGS
10480   LDFLAGS="$LDFLAGS -b"
10481   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10482   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10483     # The linker can only warn and ignore the option if not recognized
10484     # So say no if there are warnings
10485     if test -s conftest.err; then
10486       # Append any errors to the config.log.
10487       cat conftest.err 1>&5
10488       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10489       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10490       if diff conftest.exp conftest.er2 >/dev/null; then
10491         lt_cv_prog_compiler__b=yes
10492       fi
10493     else
10494       lt_cv_prog_compiler__b=yes
10495     fi
10496   fi
10497   $RM -r conftest*
10498   LDFLAGS=$save_LDFLAGS
10499
10500fi
10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10502$as_echo "$lt_cv_prog_compiler__b" >&6; }
10503
10504if test yes = "$lt_cv_prog_compiler__b"; then
10505    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10506else
10507    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10508fi
10509
10510	  ;;
10511	esac
10512      fi
10513      if test no = "$with_gnu_ld"; then
10514	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10515	hardcode_libdir_separator=:
10516
10517	case $host_cpu in
10518	hppa*64*|ia64*)
10519	  hardcode_direct=no
10520	  hardcode_shlibpath_var=no
10521	  ;;
10522	*)
10523	  hardcode_direct=yes
10524	  hardcode_direct_absolute=yes
10525	  export_dynamic_flag_spec='$wl-E'
10526
10527	  # hardcode_minus_L: Not really in the search PATH,
10528	  # but as the default location of the library.
10529	  hardcode_minus_L=yes
10530	  ;;
10531	esac
10532      fi
10533      ;;
10534
10535    irix5* | irix6* | nonstopux*)
10536      if test yes = "$GCC"; then
10537	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'
10538	# Try to use the -exported_symbol ld option, if it does not
10539	# work, assume that -exports_file does not work either and
10540	# implicitly export all symbols.
10541	# This should be the same for all languages, so no per-tag cache variable.
10542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10543$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10544if ${lt_cv_irix_exported_symbol+:} false; then :
10545  $as_echo_n "(cached) " >&6
10546else
10547  save_LDFLAGS=$LDFLAGS
10548	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10549	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h.  */
10551int foo (void) { return 0; }
10552_ACEOF
10553if ac_fn_c_try_link "$LINENO"; then :
10554  lt_cv_irix_exported_symbol=yes
10555else
10556  lt_cv_irix_exported_symbol=no
10557fi
10558rm -f core conftest.err conftest.$ac_objext \
10559    conftest$ac_exeext conftest.$ac_ext
10560           LDFLAGS=$save_LDFLAGS
10561fi
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10563$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10564	if test yes = "$lt_cv_irix_exported_symbol"; then
10565          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'
10566	fi
10567	link_all_deplibs=no
10568      else
10569	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'
10570	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'
10571      fi
10572      archive_cmds_need_lc='no'
10573      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10574      hardcode_libdir_separator=:
10575      inherit_rpath=yes
10576      link_all_deplibs=yes
10577      ;;
10578
10579    linux*)
10580      case $cc_basename in
10581      tcc*)
10582	# Fabrice Bellard et al's Tiny C Compiler
10583	ld_shlibs=yes
10584	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10585	;;
10586      esac
10587      ;;
10588
10589    netbsd* | netbsdelf*-gnu)
10590      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10591	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10592      else
10593	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10594      fi
10595      hardcode_libdir_flag_spec='-R$libdir'
10596      hardcode_direct=yes
10597      hardcode_shlibpath_var=no
10598      ;;
10599
10600    newsos6)
10601      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602      hardcode_direct=yes
10603      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10604      hardcode_libdir_separator=:
10605      hardcode_shlibpath_var=no
10606      ;;
10607
10608    *nto* | *qnx*)
10609      ;;
10610
10611    openbsd* | bitrig*)
10612      if test -f /usr/libexec/ld.so; then
10613	hardcode_direct=yes
10614	hardcode_shlibpath_var=no
10615	hardcode_direct_absolute=yes
10616	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10617	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10618	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10619	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10620	  export_dynamic_flag_spec='$wl-E'
10621	else
10622	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10623	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10624	fi
10625      else
10626	ld_shlibs=no
10627      fi
10628      ;;
10629
10630    os2*)
10631      hardcode_libdir_flag_spec='-L$libdir'
10632      hardcode_minus_L=yes
10633      allow_undefined_flag=unsupported
10634      shrext_cmds=.dll
10635      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10636	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10637	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10638	$ECHO EXPORTS >> $output_objdir/$libname.def~
10639	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10640	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10641	emximp -o $lib $output_objdir/$libname.def'
10642      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10643	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10644	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10645	$ECHO EXPORTS >> $output_objdir/$libname.def~
10646	prefix_cmds="$SED"~
10647	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10648	  prefix_cmds="$prefix_cmds -e 1d";
10649	fi~
10650	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10651	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10652	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10653	emximp -o $lib $output_objdir/$libname.def'
10654      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10655      enable_shared_with_static_runtimes=yes
10656      ;;
10657
10658    osf3*)
10659      if test yes = "$GCC"; then
10660	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10661	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'
10662      else
10663	allow_undefined_flag=' -expect_unresolved \*'
10664	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'
10665      fi
10666      archive_cmds_need_lc='no'
10667      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10668      hardcode_libdir_separator=:
10669      ;;
10670
10671    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10672      if test yes = "$GCC"; then
10673	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10674	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'
10675	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10676      else
10677	allow_undefined_flag=' -expect_unresolved \*'
10678	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'
10679	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~
10680          $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'
10681
10682	# Both c and cxx compiler support -rpath directly
10683	hardcode_libdir_flag_spec='-rpath $libdir'
10684      fi
10685      archive_cmds_need_lc='no'
10686      hardcode_libdir_separator=:
10687      ;;
10688
10689    solaris*)
10690      no_undefined_flag=' -z defs'
10691      if test yes = "$GCC"; then
10692	wlarc='$wl'
10693	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10694	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10695          $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'
10696      else
10697	case `$CC -V 2>&1` in
10698	*"Compilers 5.0"*)
10699	  wlarc=''
10700	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10702            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10703	  ;;
10704	*)
10705	  wlarc='$wl'
10706	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10707	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10708            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10709	  ;;
10710	esac
10711      fi
10712      hardcode_libdir_flag_spec='-R$libdir'
10713      hardcode_shlibpath_var=no
10714      case $host_os in
10715      solaris2.[0-5] | solaris2.[0-5].*) ;;
10716      *)
10717	# The compiler driver will combine and reorder linker options,
10718	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10719	# but is careful enough not to reorder.
10720	# Supported since Solaris 2.6 (maybe 2.5.1?)
10721	if test yes = "$GCC"; then
10722	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10723	else
10724	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10725	fi
10726	;;
10727      esac
10728      link_all_deplibs=yes
10729      ;;
10730
10731    sunos4*)
10732      if test sequent = "$host_vendor"; then
10733	# Use $CC to link under sequent, because it throws in some extra .o
10734	# files that make .init and .fini sections work.
10735	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10736      else
10737	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10738      fi
10739      hardcode_libdir_flag_spec='-L$libdir'
10740      hardcode_direct=yes
10741      hardcode_minus_L=yes
10742      hardcode_shlibpath_var=no
10743      ;;
10744
10745    sysv4)
10746      case $host_vendor in
10747	sni)
10748	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10749	  hardcode_direct=yes # is this really true???
10750	;;
10751	siemens)
10752	  ## LD is ld it makes a PLAMLIB
10753	  ## CC just makes a GrossModule.
10754	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10755	  reload_cmds='$CC -r -o $output$reload_objs'
10756	  hardcode_direct=no
10757        ;;
10758	motorola)
10759	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10761	;;
10762      esac
10763      runpath_var='LD_RUN_PATH'
10764      hardcode_shlibpath_var=no
10765      ;;
10766
10767    sysv4.3*)
10768      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769      hardcode_shlibpath_var=no
10770      export_dynamic_flag_spec='-Bexport'
10771      ;;
10772
10773    sysv4*MP*)
10774      if test -d /usr/nec; then
10775	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776	hardcode_shlibpath_var=no
10777	runpath_var=LD_RUN_PATH
10778	hardcode_runpath_var=yes
10779	ld_shlibs=yes
10780      fi
10781      ;;
10782
10783    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10784      no_undefined_flag='$wl-z,text'
10785      archive_cmds_need_lc=no
10786      hardcode_shlibpath_var=no
10787      runpath_var='LD_RUN_PATH'
10788
10789      if test yes = "$GCC"; then
10790	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792      else
10793	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795      fi
10796      ;;
10797
10798    sysv5* | sco3.2v5* | sco5v6*)
10799      # Note: We CANNOT use -z defs as we might desire, because we do not
10800      # link with -lc, and that would cause any symbols used from libc to
10801      # always be unresolved, which means just about no library would
10802      # ever link correctly.  If we're not using GNU ld we use -z text
10803      # though, which does catch some bad symbols but isn't as heavy-handed
10804      # as -z defs.
10805      no_undefined_flag='$wl-z,text'
10806      allow_undefined_flag='$wl-z,nodefs'
10807      archive_cmds_need_lc=no
10808      hardcode_shlibpath_var=no
10809      hardcode_libdir_flag_spec='$wl-R,$libdir'
10810      hardcode_libdir_separator=':'
10811      link_all_deplibs=yes
10812      export_dynamic_flag_spec='$wl-Bexport'
10813      runpath_var='LD_RUN_PATH'
10814
10815      if test yes = "$GCC"; then
10816	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818      else
10819	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821      fi
10822      ;;
10823
10824    uts4*)
10825      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826      hardcode_libdir_flag_spec='-L$libdir'
10827      hardcode_shlibpath_var=no
10828      ;;
10829
10830    *)
10831      ld_shlibs=no
10832      ;;
10833    esac
10834
10835    if test sni = "$host_vendor"; then
10836      case $host in
10837      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10838	export_dynamic_flag_spec='$wl-Blargedynsym'
10839	;;
10840      esac
10841    fi
10842  fi
10843
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10845$as_echo "$ld_shlibs" >&6; }
10846test no = "$ld_shlibs" && can_build_shared=no
10847
10848with_gnu_ld=$with_gnu_ld
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864#
10865# Do we need to explicitly link libc?
10866#
10867case "x$archive_cmds_need_lc" in
10868x|xyes)
10869  # Assume -lc should be added
10870  archive_cmds_need_lc=yes
10871
10872  if test yes,yes = "$GCC,$enable_shared"; then
10873    case $archive_cmds in
10874    *'~'*)
10875      # FIXME: we may have to deal with multi-command sequences.
10876      ;;
10877    '$CC '*)
10878      # Test whether the compiler implicitly links with -lc since on some
10879      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10880      # to ld, don't add -lc before -lgcc.
10881      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10882$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10883if ${lt_cv_archive_cmds_need_lc+:} false; then :
10884  $as_echo_n "(cached) " >&6
10885else
10886  $RM conftest*
10887	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10888
10889	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10890  (eval $ac_compile) 2>&5
10891  ac_status=$?
10892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10893  test $ac_status = 0; } 2>conftest.err; then
10894	  soname=conftest
10895	  lib=conftest
10896	  libobjs=conftest.$ac_objext
10897	  deplibs=
10898	  wl=$lt_prog_compiler_wl
10899	  pic_flag=$lt_prog_compiler_pic
10900	  compiler_flags=-v
10901	  linker_flags=-v
10902	  verstring=
10903	  output_objdir=.
10904	  libname=conftest
10905	  lt_save_allow_undefined_flag=$allow_undefined_flag
10906	  allow_undefined_flag=
10907	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10908  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10909  ac_status=$?
10910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10911  test $ac_status = 0; }
10912	  then
10913	    lt_cv_archive_cmds_need_lc=no
10914	  else
10915	    lt_cv_archive_cmds_need_lc=yes
10916	  fi
10917	  allow_undefined_flag=$lt_save_allow_undefined_flag
10918	else
10919	  cat conftest.err 1>&5
10920	fi
10921	$RM conftest*
10922
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10925$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10926      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10927      ;;
10928    esac
10929  fi
10930  ;;
10931esac
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11085$as_echo_n "checking dynamic linker characteristics... " >&6; }
11086
11087if test yes = "$GCC"; then
11088  case $host_os in
11089    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11090    *) lt_awk_arg='/^libraries:/' ;;
11091  esac
11092  case $host_os in
11093    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11094    *) lt_sed_strip_eq='s|=/|/|g' ;;
11095  esac
11096  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11097  case $lt_search_path_spec in
11098  *\;*)
11099    # if the path contains ";" then we assume it to be the separator
11100    # otherwise default to the standard path separator (i.e. ":") - it is
11101    # assumed that no part of a normal pathname contains ";" but that should
11102    # okay in the real world where ";" in dirpaths is itself problematic.
11103    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11104    ;;
11105  *)
11106    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11107    ;;
11108  esac
11109  # Ok, now we have the path, separated by spaces, we can step through it
11110  # and add multilib dir if necessary...
11111  lt_tmp_lt_search_path_spec=
11112  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11113  # ...but if some path component already ends with the multilib dir we assume
11114  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11115  case "$lt_multi_os_dir; $lt_search_path_spec " in
11116  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11117    lt_multi_os_dir=
11118    ;;
11119  esac
11120  for lt_sys_path in $lt_search_path_spec; do
11121    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11122      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11123    elif test -n "$lt_multi_os_dir"; then
11124      test -d "$lt_sys_path" && \
11125	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11126    fi
11127  done
11128  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11129BEGIN {RS = " "; FS = "/|\n";} {
11130  lt_foo = "";
11131  lt_count = 0;
11132  for (lt_i = NF; lt_i > 0; lt_i--) {
11133    if ($lt_i != "" && $lt_i != ".") {
11134      if ($lt_i == "..") {
11135        lt_count++;
11136      } else {
11137        if (lt_count == 0) {
11138          lt_foo = "/" $lt_i lt_foo;
11139        } else {
11140          lt_count--;
11141        }
11142      }
11143    }
11144  }
11145  if (lt_foo != "") { lt_freq[lt_foo]++; }
11146  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11147}'`
11148  # AWK program above erroneously prepends '/' to C:/dos/paths
11149  # for these hosts.
11150  case $host_os in
11151    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11152      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11153  esac
11154  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11155else
11156  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11157fi
11158library_names_spec=
11159libname_spec='lib$name'
11160soname_spec=
11161shrext_cmds=.so
11162postinstall_cmds=
11163postuninstall_cmds=
11164finish_cmds=
11165finish_eval=
11166shlibpath_var=
11167shlibpath_overrides_runpath=unknown
11168version_type=none
11169dynamic_linker="$host_os ld.so"
11170sys_lib_dlsearch_path_spec="/lib /usr/lib"
11171need_lib_prefix=unknown
11172hardcode_into_libs=no
11173
11174# when you set need_version to no, make sure it does not cause -set_version
11175# flags to be left without arguments
11176need_version=unknown
11177
11178
11179
11180case $host_os in
11181aix3*)
11182  version_type=linux # correct to gnu/linux during the next big refactor
11183  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11184  shlibpath_var=LIBPATH
11185
11186  # AIX 3 has no versioning support, so we append a major version to the name.
11187  soname_spec='$libname$release$shared_ext$major'
11188  ;;
11189
11190aix[4-9]*)
11191  version_type=linux # correct to gnu/linux during the next big refactor
11192  need_lib_prefix=no
11193  need_version=no
11194  hardcode_into_libs=yes
11195  if test ia64 = "$host_cpu"; then
11196    # AIX 5 supports IA64
11197    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11198    shlibpath_var=LD_LIBRARY_PATH
11199  else
11200    # With GCC up to 2.95.x, collect2 would create an import file
11201    # for dependence libraries.  The import file would start with
11202    # the line '#! .'.  This would cause the generated library to
11203    # depend on '.', always an invalid library.  This was fixed in
11204    # development snapshots of GCC prior to 3.0.
11205    case $host_os in
11206      aix4 | aix4.[01] | aix4.[01].*)
11207      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11208	   echo ' yes '
11209	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11210	:
11211      else
11212	can_build_shared=no
11213      fi
11214      ;;
11215    esac
11216    # Using Import Files as archive members, it is possible to support
11217    # filename-based versioning of shared library archives on AIX. While
11218    # this would work for both with and without runtime linking, it will
11219    # prevent static linking of such archives. So we do filename-based
11220    # shared library versioning with .so extension only, which is used
11221    # when both runtime linking and shared linking is enabled.
11222    # Unfortunately, runtime linking may impact performance, so we do
11223    # not want this to be the default eventually. Also, we use the
11224    # versioned .so libs for executables only if there is the -brtl
11225    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11226    # To allow for filename-based versioning support, we need to create
11227    # libNAME.so.V as an archive file, containing:
11228    # *) an Import File, referring to the versioned filename of the
11229    #    archive as well as the shared archive member, telling the
11230    #    bitwidth (32 or 64) of that shared object, and providing the
11231    #    list of exported symbols of that shared object, eventually
11232    #    decorated with the 'weak' keyword
11233    # *) the shared object with the F_LOADONLY flag set, to really avoid
11234    #    it being seen by the linker.
11235    # At run time we better use the real file rather than another symlink,
11236    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11237
11238    case $with_aix_soname,$aix_use_runtimelinking in
11239    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11240    # soname into executable. Probably we can add versioning support to
11241    # collect2, so additional links can be useful in future.
11242    aix,yes) # traditional libtool
11243      dynamic_linker='AIX unversionable lib.so'
11244      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11245      # instead of lib<name>.a to let people know that these are not
11246      # typical AIX shared libraries.
11247      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248      ;;
11249    aix,no) # traditional AIX only
11250      dynamic_linker='AIX lib.a(lib.so.V)'
11251      # We preserve .a as extension for shared libraries through AIX4.2
11252      # and later when we are not doing run time linking.
11253      library_names_spec='$libname$release.a $libname.a'
11254      soname_spec='$libname$release$shared_ext$major'
11255      ;;
11256    svr4,*) # full svr4 only
11257      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11258      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11259      # We do not specify a path in Import Files, so LIBPATH fires.
11260      shlibpath_overrides_runpath=yes
11261      ;;
11262    *,yes) # both, prefer svr4
11263      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11264      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11265      # unpreferred sharedlib libNAME.a needs extra handling
11266      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11267      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11268      # We do not specify a path in Import Files, so LIBPATH fires.
11269      shlibpath_overrides_runpath=yes
11270      ;;
11271    *,no) # both, prefer aix
11272      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11273      library_names_spec='$libname$release.a $libname.a'
11274      soname_spec='$libname$release$shared_ext$major'
11275      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11276      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11277      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11278      ;;
11279    esac
11280    shlibpath_var=LIBPATH
11281  fi
11282  ;;
11283
11284amigaos*)
11285  case $host_cpu in
11286  powerpc)
11287    # Since July 2007 AmigaOS4 officially supports .so libraries.
11288    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11289    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11290    ;;
11291  m68k)
11292    library_names_spec='$libname.ixlibrary $libname.a'
11293    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11294    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11295    ;;
11296  esac
11297  ;;
11298
11299beos*)
11300  library_names_spec='$libname$shared_ext'
11301  dynamic_linker="$host_os ld.so"
11302  shlibpath_var=LIBRARY_PATH
11303  ;;
11304
11305bsdi[45]*)
11306  version_type=linux # correct to gnu/linux during the next big refactor
11307  need_version=no
11308  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11309  soname_spec='$libname$release$shared_ext$major'
11310  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11311  shlibpath_var=LD_LIBRARY_PATH
11312  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11313  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11314  # the default ld.so.conf also contains /usr/contrib/lib and
11315  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11316  # libtool to hard-code these into programs
11317  ;;
11318
11319cygwin* | mingw* | pw32* | cegcc*)
11320  version_type=windows
11321  shrext_cmds=.dll
11322  need_version=no
11323  need_lib_prefix=no
11324
11325  case $GCC,$cc_basename in
11326  yes,*)
11327    # gcc
11328    library_names_spec='$libname.dll.a'
11329    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11330    postinstall_cmds='base_file=`basename \$file`~
11331      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11332      dldir=$destdir/`dirname \$dlpath`~
11333      test -d \$dldir || mkdir -p \$dldir~
11334      $install_prog $dir/$dlname \$dldir/$dlname~
11335      chmod a+x \$dldir/$dlname~
11336      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11337        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11338      fi'
11339    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11340      dlpath=$dir/\$dldll~
11341       $RM \$dlpath'
11342    shlibpath_overrides_runpath=yes
11343
11344    case $host_os in
11345    cygwin*)
11346      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11347      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11348
11349      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11350      ;;
11351    mingw* | cegcc*)
11352      # MinGW DLLs use traditional 'lib' prefix
11353      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11354      ;;
11355    pw32*)
11356      # pw32 DLLs use 'pw' prefix rather than 'lib'
11357      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11358      ;;
11359    esac
11360    dynamic_linker='Win32 ld.exe'
11361    ;;
11362
11363  *,cl*)
11364    # Native MSVC
11365    libname_spec='$name'
11366    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11367    library_names_spec='$libname.dll.lib'
11368
11369    case $build_os in
11370    mingw*)
11371      sys_lib_search_path_spec=
11372      lt_save_ifs=$IFS
11373      IFS=';'
11374      for lt_path in $LIB
11375      do
11376        IFS=$lt_save_ifs
11377        # Let DOS variable expansion print the short 8.3 style file name.
11378        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11379        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11380      done
11381      IFS=$lt_save_ifs
11382      # Convert to MSYS style.
11383      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11384      ;;
11385    cygwin*)
11386      # Convert to unix form, then to dos form, then back to unix form
11387      # but this time dos style (no spaces!) so that the unix form looks
11388      # like /cygdrive/c/PROGRA~1:/cygdr...
11389      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11390      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11391      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11392      ;;
11393    *)
11394      sys_lib_search_path_spec=$LIB
11395      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11396        # It is most probably a Windows format PATH.
11397        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11398      else
11399        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11400      fi
11401      # FIXME: find the short name or the path components, as spaces are
11402      # common. (e.g. "Program Files" -> "PROGRA~1")
11403      ;;
11404    esac
11405
11406    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11407    postinstall_cmds='base_file=`basename \$file`~
11408      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11409      dldir=$destdir/`dirname \$dlpath`~
11410      test -d \$dldir || mkdir -p \$dldir~
11411      $install_prog $dir/$dlname \$dldir/$dlname'
11412    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11413      dlpath=$dir/\$dldll~
11414       $RM \$dlpath'
11415    shlibpath_overrides_runpath=yes
11416    dynamic_linker='Win32 link.exe'
11417    ;;
11418
11419  *)
11420    # Assume MSVC wrapper
11421    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11422    dynamic_linker='Win32 ld.exe'
11423    ;;
11424  esac
11425  # FIXME: first we should search . and the directory the executable is in
11426  shlibpath_var=PATH
11427  ;;
11428
11429darwin* | rhapsody*)
11430  dynamic_linker="$host_os dyld"
11431  version_type=darwin
11432  need_lib_prefix=no
11433  need_version=no
11434  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11435  soname_spec='$libname$release$major$shared_ext'
11436  shlibpath_overrides_runpath=yes
11437  shlibpath_var=DYLD_LIBRARY_PATH
11438  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11439
11440  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11441  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11442  ;;
11443
11444dgux*)
11445  version_type=linux # correct to gnu/linux during the next big refactor
11446  need_lib_prefix=no
11447  need_version=no
11448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11449  soname_spec='$libname$release$shared_ext$major'
11450  shlibpath_var=LD_LIBRARY_PATH
11451  ;;
11452
11453freebsd* | dragonfly*)
11454  # DragonFly does not have aout.  When/if they implement a new
11455  # versioning mechanism, adjust this.
11456  if test -x /usr/bin/objformat; then
11457    objformat=`/usr/bin/objformat`
11458  else
11459    case $host_os in
11460    freebsd[23].*) objformat=aout ;;
11461    *) objformat=elf ;;
11462    esac
11463  fi
11464  version_type=freebsd-$objformat
11465  case $version_type in
11466    freebsd-elf*)
11467      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468      soname_spec='$libname$release$shared_ext$major'
11469      need_version=no
11470      need_lib_prefix=no
11471      ;;
11472    freebsd-*)
11473      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11474      need_version=yes
11475      ;;
11476  esac
11477  shlibpath_var=LD_LIBRARY_PATH
11478  case $host_os in
11479  freebsd2.*)
11480    shlibpath_overrides_runpath=yes
11481    ;;
11482  freebsd3.[01]* | freebsdelf3.[01]*)
11483    shlibpath_overrides_runpath=yes
11484    hardcode_into_libs=yes
11485    ;;
11486  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11487  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11488    shlibpath_overrides_runpath=no
11489    hardcode_into_libs=yes
11490    ;;
11491  *) # from 4.6 on, and DragonFly
11492    shlibpath_overrides_runpath=yes
11493    hardcode_into_libs=yes
11494    ;;
11495  esac
11496  ;;
11497
11498haiku*)
11499  version_type=linux # correct to gnu/linux during the next big refactor
11500  need_lib_prefix=no
11501  need_version=no
11502  dynamic_linker="$host_os runtime_loader"
11503  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504  soname_spec='$libname$release$shared_ext$major'
11505  shlibpath_var=LIBRARY_PATH
11506  shlibpath_overrides_runpath=no
11507  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11508  hardcode_into_libs=yes
11509  ;;
11510
11511hpux9* | hpux10* | hpux11*)
11512  # Give a soname corresponding to the major version so that dld.sl refuses to
11513  # link against other versions.
11514  version_type=sunos
11515  need_lib_prefix=no
11516  need_version=no
11517  case $host_cpu in
11518  ia64*)
11519    shrext_cmds='.so'
11520    hardcode_into_libs=yes
11521    dynamic_linker="$host_os dld.so"
11522    shlibpath_var=LD_LIBRARY_PATH
11523    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11524    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525    soname_spec='$libname$release$shared_ext$major'
11526    if test 32 = "$HPUX_IA64_MODE"; then
11527      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11528      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11529    else
11530      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11531      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11532    fi
11533    ;;
11534  hppa*64*)
11535    shrext_cmds='.sl'
11536    hardcode_into_libs=yes
11537    dynamic_linker="$host_os dld.sl"
11538    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11539    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11540    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541    soname_spec='$libname$release$shared_ext$major'
11542    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11543    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11544    ;;
11545  *)
11546    shrext_cmds='.sl'
11547    dynamic_linker="$host_os dld.sl"
11548    shlibpath_var=SHLIB_PATH
11549    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11550    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551    soname_spec='$libname$release$shared_ext$major'
11552    ;;
11553  esac
11554  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11555  postinstall_cmds='chmod 555 $lib'
11556  # or fails outright, so override atomically:
11557  install_override_mode=555
11558  ;;
11559
11560interix[3-9]*)
11561  version_type=linux # correct to gnu/linux during the next big refactor
11562  need_lib_prefix=no
11563  need_version=no
11564  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565  soname_spec='$libname$release$shared_ext$major'
11566  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11567  shlibpath_var=LD_LIBRARY_PATH
11568  shlibpath_overrides_runpath=no
11569  hardcode_into_libs=yes
11570  ;;
11571
11572irix5* | irix6* | nonstopux*)
11573  case $host_os in
11574    nonstopux*) version_type=nonstopux ;;
11575    *)
11576	if test yes = "$lt_cv_prog_gnu_ld"; then
11577		version_type=linux # correct to gnu/linux during the next big refactor
11578	else
11579		version_type=irix
11580	fi ;;
11581  esac
11582  need_lib_prefix=no
11583  need_version=no
11584  soname_spec='$libname$release$shared_ext$major'
11585  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11586  case $host_os in
11587  irix5* | nonstopux*)
11588    libsuff= shlibsuff=
11589    ;;
11590  *)
11591    case $LD in # libtool.m4 will add one of these switches to LD
11592    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11593      libsuff= shlibsuff= libmagic=32-bit;;
11594    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11595      libsuff=32 shlibsuff=N32 libmagic=N32;;
11596    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11597      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11598    *) libsuff= shlibsuff= libmagic=never-match;;
11599    esac
11600    ;;
11601  esac
11602  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11603  shlibpath_overrides_runpath=no
11604  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11605  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11606  hardcode_into_libs=yes
11607  ;;
11608
11609# No shared lib support for Linux oldld, aout, or coff.
11610linux*oldld* | linux*aout* | linux*coff*)
11611  dynamic_linker=no
11612  ;;
11613
11614linux*android*)
11615  version_type=none # Android doesn't support versioned libraries.
11616  need_lib_prefix=no
11617  need_version=no
11618  library_names_spec='$libname$release$shared_ext'
11619  soname_spec='$libname$release$shared_ext'
11620  finish_cmds=
11621  shlibpath_var=LD_LIBRARY_PATH
11622  shlibpath_overrides_runpath=yes
11623
11624  # This implies no fast_install, which is unacceptable.
11625  # Some rework will be needed to allow for fast_install
11626  # before this can be enabled.
11627  hardcode_into_libs=yes
11628
11629  dynamic_linker='Android linker'
11630  # Don't embed -rpath directories since the linker doesn't support them.
11631  hardcode_libdir_flag_spec='-L$libdir'
11632  ;;
11633
11634# This must be glibc/ELF.
11635linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11636  version_type=linux # correct to gnu/linux during the next big refactor
11637  need_lib_prefix=no
11638  need_version=no
11639  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11640  soname_spec='$libname$release$shared_ext$major'
11641  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11642  shlibpath_var=LD_LIBRARY_PATH
11643  shlibpath_overrides_runpath=no
11644
11645  # Some binutils ld are patched to set DT_RUNPATH
11646  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11647  $as_echo_n "(cached) " >&6
11648else
11649  lt_cv_shlibpath_overrides_runpath=no
11650    save_LDFLAGS=$LDFLAGS
11651    save_libdir=$libdir
11652    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11653	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11654    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h.  */
11656
11657int
11658main ()
11659{
11660
11661  ;
11662  return 0;
11663}
11664_ACEOF
11665if ac_fn_c_try_link "$LINENO"; then :
11666  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11667  lt_cv_shlibpath_overrides_runpath=yes
11668fi
11669fi
11670rm -f core conftest.err conftest.$ac_objext \
11671    conftest$ac_exeext conftest.$ac_ext
11672    LDFLAGS=$save_LDFLAGS
11673    libdir=$save_libdir
11674
11675fi
11676
11677  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11678
11679  # This implies no fast_install, which is unacceptable.
11680  # Some rework will be needed to allow for fast_install
11681  # before this can be enabled.
11682  hardcode_into_libs=yes
11683
11684  # Ideally, we could use ldconfig to report *all* directores which are
11685  # searched for libraries, however this is still not possible.  Aside from not
11686  # being certain /sbin/ldconfig is available, command
11687  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11688  # even though it is searched at run-time.  Try to do the best guess by
11689  # appending ld.so.conf contents (and includes) to the search path.
11690  if test -f /etc/ld.so.conf; then
11691    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' ' '`
11692    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11693  fi
11694
11695  # We used to test for /lib/ld.so.1 and disable shared libraries on
11696  # powerpc, because MkLinux only supported shared libraries with the
11697  # GNU dynamic linker.  Since this was broken with cross compilers,
11698  # most powerpc-linux boxes support dynamic linking these days and
11699  # people can always --disable-shared, the test was removed, and we
11700  # assume the GNU/Linux dynamic linker is in use.
11701  dynamic_linker='GNU/Linux ld.so'
11702  ;;
11703
11704netbsdelf*-gnu)
11705  version_type=linux
11706  need_lib_prefix=no
11707  need_version=no
11708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11709  soname_spec='${libname}${release}${shared_ext}$major'
11710  shlibpath_var=LD_LIBRARY_PATH
11711  shlibpath_overrides_runpath=no
11712  hardcode_into_libs=yes
11713  dynamic_linker='NetBSD ld.elf_so'
11714  ;;
11715
11716netbsd*)
11717  version_type=sunos
11718  need_lib_prefix=no
11719  need_version=no
11720  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11721    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11722    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11723    dynamic_linker='NetBSD (a.out) ld.so'
11724  else
11725    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726    soname_spec='$libname$release$shared_ext$major'
11727    dynamic_linker='NetBSD ld.elf_so'
11728  fi
11729  shlibpath_var=LD_LIBRARY_PATH
11730  shlibpath_overrides_runpath=yes
11731  hardcode_into_libs=yes
11732  ;;
11733
11734newsos6)
11735  version_type=linux # correct to gnu/linux during the next big refactor
11736  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737  shlibpath_var=LD_LIBRARY_PATH
11738  shlibpath_overrides_runpath=yes
11739  ;;
11740
11741*nto* | *qnx*)
11742  version_type=qnx
11743  need_lib_prefix=no
11744  need_version=no
11745  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746  soname_spec='$libname$release$shared_ext$major'
11747  shlibpath_var=LD_LIBRARY_PATH
11748  shlibpath_overrides_runpath=no
11749  hardcode_into_libs=yes
11750  dynamic_linker='ldqnx.so'
11751  ;;
11752
11753openbsd* | bitrig*)
11754  version_type=sunos
11755  sys_lib_dlsearch_path_spec=/usr/lib
11756  need_lib_prefix=no
11757  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11758    need_version=no
11759  else
11760    need_version=yes
11761  fi
11762  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11763  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11764  shlibpath_var=LD_LIBRARY_PATH
11765  shlibpath_overrides_runpath=yes
11766  ;;
11767
11768os2*)
11769  libname_spec='$name'
11770  version_type=windows
11771  shrext_cmds=.dll
11772  need_version=no
11773  need_lib_prefix=no
11774  # OS/2 can only load a DLL with a base name of 8 characters or less.
11775  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11776    v=$($ECHO $release$versuffix | tr -d .-);
11777    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11778    $ECHO $n$v`$shared_ext'
11779  library_names_spec='${libname}_dll.$libext'
11780  dynamic_linker='OS/2 ld.exe'
11781  shlibpath_var=BEGINLIBPATH
11782  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11783  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11784  postinstall_cmds='base_file=`basename \$file`~
11785    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11786    dldir=$destdir/`dirname \$dlpath`~
11787    test -d \$dldir || mkdir -p \$dldir~
11788    $install_prog $dir/$dlname \$dldir/$dlname~
11789    chmod a+x \$dldir/$dlname~
11790    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11791      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11792    fi'
11793  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11794    dlpath=$dir/\$dldll~
11795    $RM \$dlpath'
11796  ;;
11797
11798osf3* | osf4* | osf5*)
11799  version_type=osf
11800  need_lib_prefix=no
11801  need_version=no
11802  soname_spec='$libname$release$shared_ext$major'
11803  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804  shlibpath_var=LD_LIBRARY_PATH
11805  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11807  ;;
11808
11809rdos*)
11810  dynamic_linker=no
11811  ;;
11812
11813solaris*)
11814  version_type=linux # correct to gnu/linux during the next big refactor
11815  need_lib_prefix=no
11816  need_version=no
11817  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11818  soname_spec='$libname$release$shared_ext$major'
11819  shlibpath_var=LD_LIBRARY_PATH
11820  shlibpath_overrides_runpath=yes
11821  hardcode_into_libs=yes
11822  # ldd complains unless libraries are executable
11823  postinstall_cmds='chmod +x $lib'
11824  ;;
11825
11826sunos4*)
11827  version_type=sunos
11828  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11829  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830  shlibpath_var=LD_LIBRARY_PATH
11831  shlibpath_overrides_runpath=yes
11832  if test yes = "$with_gnu_ld"; then
11833    need_lib_prefix=no
11834  fi
11835  need_version=yes
11836  ;;
11837
11838sysv4 | sysv4.3*)
11839  version_type=linux # correct to gnu/linux during the next big refactor
11840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11841  soname_spec='$libname$release$shared_ext$major'
11842  shlibpath_var=LD_LIBRARY_PATH
11843  case $host_vendor in
11844    sni)
11845      shlibpath_overrides_runpath=no
11846      need_lib_prefix=no
11847      runpath_var=LD_RUN_PATH
11848      ;;
11849    siemens)
11850      need_lib_prefix=no
11851      ;;
11852    motorola)
11853      need_lib_prefix=no
11854      need_version=no
11855      shlibpath_overrides_runpath=no
11856      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11857      ;;
11858  esac
11859  ;;
11860
11861sysv4*MP*)
11862  if test -d /usr/nec; then
11863    version_type=linux # correct to gnu/linux during the next big refactor
11864    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11865    soname_spec='$libname$shared_ext.$major'
11866    shlibpath_var=LD_LIBRARY_PATH
11867  fi
11868  ;;
11869
11870sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871  version_type=sco
11872  need_lib_prefix=no
11873  need_version=no
11874  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11875  soname_spec='$libname$release$shared_ext$major'
11876  shlibpath_var=LD_LIBRARY_PATH
11877  shlibpath_overrides_runpath=yes
11878  hardcode_into_libs=yes
11879  if test yes = "$with_gnu_ld"; then
11880    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11881  else
11882    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11883    case $host_os in
11884      sco3.2v5*)
11885        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11886	;;
11887    esac
11888  fi
11889  sys_lib_dlsearch_path_spec='/usr/lib'
11890  ;;
11891
11892tpf*)
11893  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11894  version_type=linux # correct to gnu/linux during the next big refactor
11895  need_lib_prefix=no
11896  need_version=no
11897  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11898  shlibpath_var=LD_LIBRARY_PATH
11899  shlibpath_overrides_runpath=no
11900  hardcode_into_libs=yes
11901  ;;
11902
11903uts4*)
11904  version_type=linux # correct to gnu/linux during the next big refactor
11905  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906  soname_spec='$libname$release$shared_ext$major'
11907  shlibpath_var=LD_LIBRARY_PATH
11908  ;;
11909
11910*)
11911  dynamic_linker=no
11912  ;;
11913esac
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11915$as_echo "$dynamic_linker" >&6; }
11916test no = "$dynamic_linker" && can_build_shared=no
11917
11918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919if test yes = "$GCC"; then
11920  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11921fi
11922
11923if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11924  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11925fi
11926
11927if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11928  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11929fi
11930
11931# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11932configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11933
11934# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11935func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11936
11937# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11938configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12037$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12038hardcode_action=
12039if test -n "$hardcode_libdir_flag_spec" ||
12040   test -n "$runpath_var" ||
12041   test yes = "$hardcode_automatic"; then
12042
12043  # We can hardcode non-existent directories.
12044  if test no != "$hardcode_direct" &&
12045     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12046     # have to relink, otherwise we might link with an installed library
12047     # when we should be linking with a yet-to-be-installed one
12048     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12049     test no != "$hardcode_minus_L"; then
12050    # Linking always hardcodes the temporary library directory.
12051    hardcode_action=relink
12052  else
12053    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12054    hardcode_action=immediate
12055  fi
12056else
12057  # We cannot hardcode anything, or else we can only hardcode existing
12058  # directories.
12059  hardcode_action=unsupported
12060fi
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12062$as_echo "$hardcode_action" >&6; }
12063
12064if test relink = "$hardcode_action" ||
12065   test yes = "$inherit_rpath"; then
12066  # Fast installation is not supported
12067  enable_fast_install=no
12068elif test yes = "$shlibpath_overrides_runpath" ||
12069     test no = "$enable_shared"; then
12070  # Fast installation is not necessary
12071  enable_fast_install=needless
12072fi
12073
12074
12075
12076
12077
12078
12079  if test yes != "$enable_dlopen"; then
12080  enable_dlopen=unknown
12081  enable_dlopen_self=unknown
12082  enable_dlopen_self_static=unknown
12083else
12084  lt_cv_dlopen=no
12085  lt_cv_dlopen_libs=
12086
12087  case $host_os in
12088  beos*)
12089    lt_cv_dlopen=load_add_on
12090    lt_cv_dlopen_libs=
12091    lt_cv_dlopen_self=yes
12092    ;;
12093
12094  mingw* | pw32* | cegcc*)
12095    lt_cv_dlopen=LoadLibrary
12096    lt_cv_dlopen_libs=
12097    ;;
12098
12099  cygwin*)
12100    lt_cv_dlopen=dlopen
12101    lt_cv_dlopen_libs=
12102    ;;
12103
12104  darwin*)
12105    # if libdl is installed we need to link against it
12106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12107$as_echo_n "checking for dlopen in -ldl... " >&6; }
12108if ${ac_cv_lib_dl_dlopen+:} false; then :
12109  $as_echo_n "(cached) " >&6
12110else
12111  ac_check_lib_save_LIBS=$LIBS
12112LIBS="-ldl  $LIBS"
12113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h.  */
12115
12116/* Override any GCC internal prototype to avoid an error.
12117   Use char because int might match the return type of a GCC
12118   builtin and then its argument prototype would still apply.  */
12119#ifdef __cplusplus
12120extern "C"
12121#endif
12122char dlopen ();
12123int
12124main ()
12125{
12126return dlopen ();
12127  ;
12128  return 0;
12129}
12130_ACEOF
12131if ac_fn_c_try_link "$LINENO"; then :
12132  ac_cv_lib_dl_dlopen=yes
12133else
12134  ac_cv_lib_dl_dlopen=no
12135fi
12136rm -f core conftest.err conftest.$ac_objext \
12137    conftest$ac_exeext conftest.$ac_ext
12138LIBS=$ac_check_lib_save_LIBS
12139fi
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12141$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12142if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12143  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12144else
12145
12146    lt_cv_dlopen=dyld
12147    lt_cv_dlopen_libs=
12148    lt_cv_dlopen_self=yes
12149
12150fi
12151
12152    ;;
12153
12154  tpf*)
12155    # Don't try to run any link tests for TPF.  We know it's impossible
12156    # because TPF is a cross-compiler, and we know how we open DSOs.
12157    lt_cv_dlopen=dlopen
12158    lt_cv_dlopen_libs=
12159    lt_cv_dlopen_self=no
12160    ;;
12161
12162  *)
12163    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12164if test "x$ac_cv_func_shl_load" = xyes; then :
12165  lt_cv_dlopen=shl_load
12166else
12167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12168$as_echo_n "checking for shl_load in -ldld... " >&6; }
12169if ${ac_cv_lib_dld_shl_load+:} false; then :
12170  $as_echo_n "(cached) " >&6
12171else
12172  ac_check_lib_save_LIBS=$LIBS
12173LIBS="-ldld  $LIBS"
12174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175/* end confdefs.h.  */
12176
12177/* Override any GCC internal prototype to avoid an error.
12178   Use char because int might match the return type of a GCC
12179   builtin and then its argument prototype would still apply.  */
12180#ifdef __cplusplus
12181extern "C"
12182#endif
12183char shl_load ();
12184int
12185main ()
12186{
12187return shl_load ();
12188  ;
12189  return 0;
12190}
12191_ACEOF
12192if ac_fn_c_try_link "$LINENO"; then :
12193  ac_cv_lib_dld_shl_load=yes
12194else
12195  ac_cv_lib_dld_shl_load=no
12196fi
12197rm -f core conftest.err conftest.$ac_objext \
12198    conftest$ac_exeext conftest.$ac_ext
12199LIBS=$ac_check_lib_save_LIBS
12200fi
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12202$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12203if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12204  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12205else
12206  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12207if test "x$ac_cv_func_dlopen" = xyes; then :
12208  lt_cv_dlopen=dlopen
12209else
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12211$as_echo_n "checking for dlopen in -ldl... " >&6; }
12212if ${ac_cv_lib_dl_dlopen+:} false; then :
12213  $as_echo_n "(cached) " >&6
12214else
12215  ac_check_lib_save_LIBS=$LIBS
12216LIBS="-ldl  $LIBS"
12217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218/* end confdefs.h.  */
12219
12220/* Override any GCC internal prototype to avoid an error.
12221   Use char because int might match the return type of a GCC
12222   builtin and then its argument prototype would still apply.  */
12223#ifdef __cplusplus
12224extern "C"
12225#endif
12226char dlopen ();
12227int
12228main ()
12229{
12230return dlopen ();
12231  ;
12232  return 0;
12233}
12234_ACEOF
12235if ac_fn_c_try_link "$LINENO"; then :
12236  ac_cv_lib_dl_dlopen=yes
12237else
12238  ac_cv_lib_dl_dlopen=no
12239fi
12240rm -f core conftest.err conftest.$ac_objext \
12241    conftest$ac_exeext conftest.$ac_ext
12242LIBS=$ac_check_lib_save_LIBS
12243fi
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12245$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12246if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12247  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12248else
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12250$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12251if ${ac_cv_lib_svld_dlopen+:} false; then :
12252  $as_echo_n "(cached) " >&6
12253else
12254  ac_check_lib_save_LIBS=$LIBS
12255LIBS="-lsvld  $LIBS"
12256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257/* end confdefs.h.  */
12258
12259/* Override any GCC internal prototype to avoid an error.
12260   Use char because int might match the return type of a GCC
12261   builtin and then its argument prototype would still apply.  */
12262#ifdef __cplusplus
12263extern "C"
12264#endif
12265char dlopen ();
12266int
12267main ()
12268{
12269return dlopen ();
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274if ac_fn_c_try_link "$LINENO"; then :
12275  ac_cv_lib_svld_dlopen=yes
12276else
12277  ac_cv_lib_svld_dlopen=no
12278fi
12279rm -f core conftest.err conftest.$ac_objext \
12280    conftest$ac_exeext conftest.$ac_ext
12281LIBS=$ac_check_lib_save_LIBS
12282fi
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12284$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12285if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12286  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12287else
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12289$as_echo_n "checking for dld_link in -ldld... " >&6; }
12290if ${ac_cv_lib_dld_dld_link+:} false; then :
12291  $as_echo_n "(cached) " >&6
12292else
12293  ac_check_lib_save_LIBS=$LIBS
12294LIBS="-ldld  $LIBS"
12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h.  */
12297
12298/* Override any GCC internal prototype to avoid an error.
12299   Use char because int might match the return type of a GCC
12300   builtin and then its argument prototype would still apply.  */
12301#ifdef __cplusplus
12302extern "C"
12303#endif
12304char dld_link ();
12305int
12306main ()
12307{
12308return dld_link ();
12309  ;
12310  return 0;
12311}
12312_ACEOF
12313if ac_fn_c_try_link "$LINENO"; then :
12314  ac_cv_lib_dld_dld_link=yes
12315else
12316  ac_cv_lib_dld_dld_link=no
12317fi
12318rm -f core conftest.err conftest.$ac_objext \
12319    conftest$ac_exeext conftest.$ac_ext
12320LIBS=$ac_check_lib_save_LIBS
12321fi
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12323$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12324if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12325  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12326fi
12327
12328
12329fi
12330
12331
12332fi
12333
12334
12335fi
12336
12337
12338fi
12339
12340
12341fi
12342
12343    ;;
12344  esac
12345
12346  if test no = "$lt_cv_dlopen"; then
12347    enable_dlopen=no
12348  else
12349    enable_dlopen=yes
12350  fi
12351
12352  case $lt_cv_dlopen in
12353  dlopen)
12354    save_CPPFLAGS=$CPPFLAGS
12355    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12356
12357    save_LDFLAGS=$LDFLAGS
12358    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12359
12360    save_LIBS=$LIBS
12361    LIBS="$lt_cv_dlopen_libs $LIBS"
12362
12363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12364$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12365if ${lt_cv_dlopen_self+:} false; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368  	  if test yes = "$cross_compiling"; then :
12369  lt_cv_dlopen_self=cross
12370else
12371  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12372  lt_status=$lt_dlunknown
12373  cat > conftest.$ac_ext <<_LT_EOF
12374#line $LINENO "configure"
12375#include "confdefs.h"
12376
12377#if HAVE_DLFCN_H
12378#include <dlfcn.h>
12379#endif
12380
12381#include <stdio.h>
12382
12383#ifdef RTLD_GLOBAL
12384#  define LT_DLGLOBAL		RTLD_GLOBAL
12385#else
12386#  ifdef DL_GLOBAL
12387#    define LT_DLGLOBAL		DL_GLOBAL
12388#  else
12389#    define LT_DLGLOBAL		0
12390#  endif
12391#endif
12392
12393/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12394   find out it does not work in some platform. */
12395#ifndef LT_DLLAZY_OR_NOW
12396#  ifdef RTLD_LAZY
12397#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12398#  else
12399#    ifdef DL_LAZY
12400#      define LT_DLLAZY_OR_NOW		DL_LAZY
12401#    else
12402#      ifdef RTLD_NOW
12403#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12404#      else
12405#        ifdef DL_NOW
12406#          define LT_DLLAZY_OR_NOW	DL_NOW
12407#        else
12408#          define LT_DLLAZY_OR_NOW	0
12409#        endif
12410#      endif
12411#    endif
12412#  endif
12413#endif
12414
12415/* When -fvisibility=hidden is used, assume the code has been annotated
12416   correspondingly for the symbols needed.  */
12417#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12418int fnord () __attribute__((visibility("default")));
12419#endif
12420
12421int fnord () { return 42; }
12422int main ()
12423{
12424  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12425  int status = $lt_dlunknown;
12426
12427  if (self)
12428    {
12429      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12430      else
12431        {
12432	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12433          else puts (dlerror ());
12434	}
12435      /* dlclose (self); */
12436    }
12437  else
12438    puts (dlerror ());
12439
12440  return status;
12441}
12442_LT_EOF
12443  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12444  (eval $ac_link) 2>&5
12445  ac_status=$?
12446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12447  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12448    (./conftest; exit; ) >&5 2>/dev/null
12449    lt_status=$?
12450    case x$lt_status in
12451      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12452      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12453      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12454    esac
12455  else :
12456    # compilation failed
12457    lt_cv_dlopen_self=no
12458  fi
12459fi
12460rm -fr conftest*
12461
12462
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12465$as_echo "$lt_cv_dlopen_self" >&6; }
12466
12467    if test yes = "$lt_cv_dlopen_self"; then
12468      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12469      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12470$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12471if ${lt_cv_dlopen_self_static+:} false; then :
12472  $as_echo_n "(cached) " >&6
12473else
12474  	  if test yes = "$cross_compiling"; then :
12475  lt_cv_dlopen_self_static=cross
12476else
12477  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12478  lt_status=$lt_dlunknown
12479  cat > conftest.$ac_ext <<_LT_EOF
12480#line $LINENO "configure"
12481#include "confdefs.h"
12482
12483#if HAVE_DLFCN_H
12484#include <dlfcn.h>
12485#endif
12486
12487#include <stdio.h>
12488
12489#ifdef RTLD_GLOBAL
12490#  define LT_DLGLOBAL		RTLD_GLOBAL
12491#else
12492#  ifdef DL_GLOBAL
12493#    define LT_DLGLOBAL		DL_GLOBAL
12494#  else
12495#    define LT_DLGLOBAL		0
12496#  endif
12497#endif
12498
12499/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12500   find out it does not work in some platform. */
12501#ifndef LT_DLLAZY_OR_NOW
12502#  ifdef RTLD_LAZY
12503#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12504#  else
12505#    ifdef DL_LAZY
12506#      define LT_DLLAZY_OR_NOW		DL_LAZY
12507#    else
12508#      ifdef RTLD_NOW
12509#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12510#      else
12511#        ifdef DL_NOW
12512#          define LT_DLLAZY_OR_NOW	DL_NOW
12513#        else
12514#          define LT_DLLAZY_OR_NOW	0
12515#        endif
12516#      endif
12517#    endif
12518#  endif
12519#endif
12520
12521/* When -fvisibility=hidden is used, assume the code has been annotated
12522   correspondingly for the symbols needed.  */
12523#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12524int fnord () __attribute__((visibility("default")));
12525#endif
12526
12527int fnord () { return 42; }
12528int main ()
12529{
12530  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12531  int status = $lt_dlunknown;
12532
12533  if (self)
12534    {
12535      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12536      else
12537        {
12538	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12539          else puts (dlerror ());
12540	}
12541      /* dlclose (self); */
12542    }
12543  else
12544    puts (dlerror ());
12545
12546  return status;
12547}
12548_LT_EOF
12549  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12550  (eval $ac_link) 2>&5
12551  ac_status=$?
12552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12553  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12554    (./conftest; exit; ) >&5 2>/dev/null
12555    lt_status=$?
12556    case x$lt_status in
12557      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12558      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12559      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12560    esac
12561  else :
12562    # compilation failed
12563    lt_cv_dlopen_self_static=no
12564  fi
12565fi
12566rm -fr conftest*
12567
12568
12569fi
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12571$as_echo "$lt_cv_dlopen_self_static" >&6; }
12572    fi
12573
12574    CPPFLAGS=$save_CPPFLAGS
12575    LDFLAGS=$save_LDFLAGS
12576    LIBS=$save_LIBS
12577    ;;
12578  esac
12579
12580  case $lt_cv_dlopen_self in
12581  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12582  *) enable_dlopen_self=unknown ;;
12583  esac
12584
12585  case $lt_cv_dlopen_self_static in
12586  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12587  *) enable_dlopen_self_static=unknown ;;
12588  esac
12589fi
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607striplib=
12608old_striplib=
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12610$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12611if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12612  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12613  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12615$as_echo "yes" >&6; }
12616else
12617# FIXME - insert some real tests, host_os isn't really good enough
12618  case $host_os in
12619  darwin*)
12620    if test -n "$STRIP"; then
12621      striplib="$STRIP -x"
12622      old_striplib="$STRIP -S"
12623      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624$as_echo "yes" >&6; }
12625    else
12626      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
12628    fi
12629    ;;
12630  *)
12631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633    ;;
12634  esac
12635fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648  # Report what library types will actually be built
12649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12650$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12652$as_echo "$can_build_shared" >&6; }
12653
12654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12655$as_echo_n "checking whether to build shared libraries... " >&6; }
12656  test no = "$can_build_shared" && enable_shared=no
12657
12658  # On AIX, shared libraries and static libraries use the same namespace, and
12659  # are all built from PIC.
12660  case $host_os in
12661  aix3*)
12662    test yes = "$enable_shared" && enable_static=no
12663    if test -n "$RANLIB"; then
12664      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12665      postinstall_cmds='$RANLIB $lib'
12666    fi
12667    ;;
12668
12669  aix[4-9]*)
12670    if test ia64 != "$host_cpu"; then
12671      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12672      yes,aix,yes) ;;			# shared object as lib.so file only
12673      yes,svr4,*) ;;			# shared object as lib.so archive member only
12674      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12675      esac
12676    fi
12677    ;;
12678  esac
12679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12680$as_echo "$enable_shared" >&6; }
12681
12682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12683$as_echo_n "checking whether to build static libraries... " >&6; }
12684  # Make sure either enable_shared or enable_static is yes.
12685  test yes = "$enable_shared" || enable_static=yes
12686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12687$as_echo "$enable_static" >&6; }
12688
12689
12690
12691
12692fi
12693ac_ext=c
12694ac_cpp='$CPP $CPPFLAGS'
12695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12697ac_compiler_gnu=$ac_cv_c_compiler_gnu
12698
12699CC=$lt_save_CC
12700
12701      if test -n "$CXX" && ( test no != "$CXX" &&
12702    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12703    (test g++ != "$CXX"))); then
12704  ac_ext=cpp
12705ac_cpp='$CXXCPP $CPPFLAGS'
12706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12710$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12711if test -z "$CXXCPP"; then
12712  if ${ac_cv_prog_CXXCPP+:} false; then :
12713  $as_echo_n "(cached) " >&6
12714else
12715      # Double quotes because CXXCPP needs to be expanded
12716    for CXXCPP in "$CXX -E" "/lib/cpp"
12717    do
12718      ac_preproc_ok=false
12719for ac_cxx_preproc_warn_flag in '' yes
12720do
12721  # Use a header file that comes with gcc, so configuring glibc
12722  # with a fresh cross-compiler works.
12723  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12724  # <limits.h> exists even on freestanding compilers.
12725  # On the NeXT, cc -E runs the code through the compiler's parser,
12726  # not just through cpp. "Syntax error" is here to catch this case.
12727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728/* end confdefs.h.  */
12729#ifdef __STDC__
12730# include <limits.h>
12731#else
12732# include <assert.h>
12733#endif
12734		     Syntax error
12735_ACEOF
12736if ac_fn_cxx_try_cpp "$LINENO"; then :
12737
12738else
12739  # Broken: fails on valid input.
12740continue
12741fi
12742rm -f conftest.err conftest.i conftest.$ac_ext
12743
12744  # OK, works on sane cases.  Now check whether nonexistent headers
12745  # can be detected and how.
12746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h.  */
12748#include <ac_nonexistent.h>
12749_ACEOF
12750if ac_fn_cxx_try_cpp "$LINENO"; then :
12751  # Broken: success on invalid input.
12752continue
12753else
12754  # Passes both tests.
12755ac_preproc_ok=:
12756break
12757fi
12758rm -f conftest.err conftest.i conftest.$ac_ext
12759
12760done
12761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12762rm -f conftest.i conftest.err conftest.$ac_ext
12763if $ac_preproc_ok; then :
12764  break
12765fi
12766
12767    done
12768    ac_cv_prog_CXXCPP=$CXXCPP
12769
12770fi
12771  CXXCPP=$ac_cv_prog_CXXCPP
12772else
12773  ac_cv_prog_CXXCPP=$CXXCPP
12774fi
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12776$as_echo "$CXXCPP" >&6; }
12777ac_preproc_ok=false
12778for ac_cxx_preproc_warn_flag in '' yes
12779do
12780  # Use a header file that comes with gcc, so configuring glibc
12781  # with a fresh cross-compiler works.
12782  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12783  # <limits.h> exists even on freestanding compilers.
12784  # On the NeXT, cc -E runs the code through the compiler's parser,
12785  # not just through cpp. "Syntax error" is here to catch this case.
12786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787/* end confdefs.h.  */
12788#ifdef __STDC__
12789# include <limits.h>
12790#else
12791# include <assert.h>
12792#endif
12793		     Syntax error
12794_ACEOF
12795if ac_fn_cxx_try_cpp "$LINENO"; then :
12796
12797else
12798  # Broken: fails on valid input.
12799continue
12800fi
12801rm -f conftest.err conftest.i conftest.$ac_ext
12802
12803  # OK, works on sane cases.  Now check whether nonexistent headers
12804  # can be detected and how.
12805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h.  */
12807#include <ac_nonexistent.h>
12808_ACEOF
12809if ac_fn_cxx_try_cpp "$LINENO"; then :
12810  # Broken: success on invalid input.
12811continue
12812else
12813  # Passes both tests.
12814ac_preproc_ok=:
12815break
12816fi
12817rm -f conftest.err conftest.i conftest.$ac_ext
12818
12819done
12820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12821rm -f conftest.i conftest.err conftest.$ac_ext
12822if $ac_preproc_ok; then :
12823
12824else
12825  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12827as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12828See \`config.log' for more details" "$LINENO" 5; }
12829fi
12830
12831ac_ext=c
12832ac_cpp='$CPP $CPPFLAGS'
12833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12835ac_compiler_gnu=$ac_cv_c_compiler_gnu
12836
12837else
12838  _lt_caught_CXX_error=yes
12839fi
12840
12841ac_ext=cpp
12842ac_cpp='$CXXCPP $CPPFLAGS'
12843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12846
12847archive_cmds_need_lc_CXX=no
12848allow_undefined_flag_CXX=
12849always_export_symbols_CXX=no
12850archive_expsym_cmds_CXX=
12851compiler_needs_object_CXX=no
12852export_dynamic_flag_spec_CXX=
12853hardcode_direct_CXX=no
12854hardcode_direct_absolute_CXX=no
12855hardcode_libdir_flag_spec_CXX=
12856hardcode_libdir_separator_CXX=
12857hardcode_minus_L_CXX=no
12858hardcode_shlibpath_var_CXX=unsupported
12859hardcode_automatic_CXX=no
12860inherit_rpath_CXX=no
12861module_cmds_CXX=
12862module_expsym_cmds_CXX=
12863link_all_deplibs_CXX=unknown
12864old_archive_cmds_CXX=$old_archive_cmds
12865reload_flag_CXX=$reload_flag
12866reload_cmds_CXX=$reload_cmds
12867no_undefined_flag_CXX=
12868whole_archive_flag_spec_CXX=
12869enable_shared_with_static_runtimes_CXX=no
12870
12871# Source file extension for C++ test sources.
12872ac_ext=cpp
12873
12874# Object file extension for compiled C++ test sources.
12875objext=o
12876objext_CXX=$objext
12877
12878# No sense in running all these tests if we already determined that
12879# the CXX compiler isn't working.  Some variables (like enable_shared)
12880# are currently assumed to apply to all compilers on this platform,
12881# and will be corrupted by setting them based on a non-working compiler.
12882if test yes != "$_lt_caught_CXX_error"; then
12883  # Code to be used in simple compile tests
12884  lt_simple_compile_test_code="int some_variable = 0;"
12885
12886  # Code to be used in simple link tests
12887  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12888
12889  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12890
12891
12892
12893
12894
12895
12896# If no C compiler was specified, use CC.
12897LTCC=${LTCC-"$CC"}
12898
12899# If no C compiler flags were specified, use CFLAGS.
12900LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12901
12902# Allow CC to be a program name with arguments.
12903compiler=$CC
12904
12905
12906  # save warnings/boilerplate of simple test code
12907  ac_outfile=conftest.$ac_objext
12908echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12909eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12910_lt_compiler_boilerplate=`cat conftest.err`
12911$RM conftest*
12912
12913  ac_outfile=conftest.$ac_objext
12914echo "$lt_simple_link_test_code" >conftest.$ac_ext
12915eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12916_lt_linker_boilerplate=`cat conftest.err`
12917$RM -r conftest*
12918
12919
12920  # Allow CC to be a program name with arguments.
12921  lt_save_CC=$CC
12922  lt_save_CFLAGS=$CFLAGS
12923  lt_save_LD=$LD
12924  lt_save_GCC=$GCC
12925  GCC=$GXX
12926  lt_save_with_gnu_ld=$with_gnu_ld
12927  lt_save_path_LD=$lt_cv_path_LD
12928  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12929    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12930  else
12931    $as_unset lt_cv_prog_gnu_ld
12932  fi
12933  if test -n "${lt_cv_path_LDCXX+set}"; then
12934    lt_cv_path_LD=$lt_cv_path_LDCXX
12935  else
12936    $as_unset lt_cv_path_LD
12937  fi
12938  test -z "${LDCXX+set}" || LD=$LDCXX
12939  CC=${CXX-"c++"}
12940  CFLAGS=$CXXFLAGS
12941  compiler=$CC
12942  compiler_CXX=$CC
12943  func_cc_basename $compiler
12944cc_basename=$func_cc_basename_result
12945
12946
12947  if test -n "$compiler"; then
12948    # We don't want -fno-exception when compiling C++ code, so set the
12949    # no_builtin_flag separately
12950    if test yes = "$GXX"; then
12951      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12952    else
12953      lt_prog_compiler_no_builtin_flag_CXX=
12954    fi
12955
12956    if test yes = "$GXX"; then
12957      # Set up default GNU C++ configuration
12958
12959
12960
12961# Check whether --with-gnu-ld was given.
12962if test "${with_gnu_ld+set}" = set; then :
12963  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12964else
12965  with_gnu_ld=no
12966fi
12967
12968ac_prog=ld
12969if test yes = "$GCC"; then
12970  # Check if gcc -print-prog-name=ld gives a path.
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12972$as_echo_n "checking for ld used by $CC... " >&6; }
12973  case $host in
12974  *-*-mingw*)
12975    # gcc leaves a trailing carriage return, which upsets mingw
12976    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12977  *)
12978    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12979  esac
12980  case $ac_prog in
12981    # Accept absolute paths.
12982    [\\/]* | ?:[\\/]*)
12983      re_direlt='/[^/][^/]*/\.\./'
12984      # Canonicalize the pathname of ld
12985      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12986      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12987	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12988      done
12989      test -z "$LD" && LD=$ac_prog
12990      ;;
12991  "")
12992    # If it fails, then pretend we aren't using GCC.
12993    ac_prog=ld
12994    ;;
12995  *)
12996    # If it is relative, then search for the first ld in PATH.
12997    with_gnu_ld=unknown
12998    ;;
12999  esac
13000elif test yes = "$with_gnu_ld"; then
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13002$as_echo_n "checking for GNU ld... " >&6; }
13003else
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13005$as_echo_n "checking for non-GNU ld... " >&6; }
13006fi
13007if ${lt_cv_path_LD+:} false; then :
13008  $as_echo_n "(cached) " >&6
13009else
13010  if test -z "$LD"; then
13011  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13012  for ac_dir in $PATH; do
13013    IFS=$lt_save_ifs
13014    test -z "$ac_dir" && ac_dir=.
13015    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13016      lt_cv_path_LD=$ac_dir/$ac_prog
13017      # Check to see if the program is GNU ld.  I'd rather use --version,
13018      # but apparently some variants of GNU ld only accept -v.
13019      # Break only if it was the GNU/non-GNU ld that we prefer.
13020      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13021      *GNU* | *'with BFD'*)
13022	test no != "$with_gnu_ld" && break
13023	;;
13024      *)
13025	test yes != "$with_gnu_ld" && break
13026	;;
13027      esac
13028    fi
13029  done
13030  IFS=$lt_save_ifs
13031else
13032  lt_cv_path_LD=$LD # Let the user override the test with a path.
13033fi
13034fi
13035
13036LD=$lt_cv_path_LD
13037if test -n "$LD"; then
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13039$as_echo "$LD" >&6; }
13040else
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042$as_echo "no" >&6; }
13043fi
13044test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13046$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13047if ${lt_cv_prog_gnu_ld+:} false; then :
13048  $as_echo_n "(cached) " >&6
13049else
13050  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13051case `$LD -v 2>&1 </dev/null` in
13052*GNU* | *'with BFD'*)
13053  lt_cv_prog_gnu_ld=yes
13054  ;;
13055*)
13056  lt_cv_prog_gnu_ld=no
13057  ;;
13058esac
13059fi
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13061$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13062with_gnu_ld=$lt_cv_prog_gnu_ld
13063
13064
13065
13066
13067
13068
13069
13070      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13071      # archiving commands below assume that GNU ld is being used.
13072      if test yes = "$with_gnu_ld"; then
13073        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13074        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'
13075
13076        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13077        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13078
13079        # If archive_cmds runs LD, not CC, wlarc should be empty
13080        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13081        #     investigate it a little bit more. (MM)
13082        wlarc='$wl'
13083
13084        # ancient GNU ld didn't support --whole-archive et. al.
13085        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13086	  $GREP 'no-whole-archive' > /dev/null; then
13087          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13088        else
13089          whole_archive_flag_spec_CXX=
13090        fi
13091      else
13092        with_gnu_ld=no
13093        wlarc=
13094
13095        # A generic and very simple default shared library creation
13096        # command for GNU C++ for the case where it uses the native
13097        # linker, instead of GNU ld.  If possible, this setting should
13098        # overridden to take advantage of the native linker features on
13099        # the platform it is being used on.
13100        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13101      fi
13102
13103      # Commands to make compiler produce verbose output that lists
13104      # what "hidden" libraries, object files and flags are used when
13105      # linking a shared library.
13106      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13107
13108    else
13109      GXX=no
13110      with_gnu_ld=no
13111      wlarc=
13112    fi
13113
13114    # PORTME: fill in a description of your system's C++ link characteristics
13115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13116$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13117    ld_shlibs_CXX=yes
13118    case $host_os in
13119      aix3*)
13120        # FIXME: insert proper C++ library support
13121        ld_shlibs_CXX=no
13122        ;;
13123      aix[4-9]*)
13124        if test ia64 = "$host_cpu"; then
13125          # On IA64, the linker does run time linking by default, so we don't
13126          # have to do anything special.
13127          aix_use_runtimelinking=no
13128          exp_sym_flag='-Bexport'
13129          no_entry_flag=
13130        else
13131          aix_use_runtimelinking=no
13132
13133          # Test if we are trying to use run time linking or normal
13134          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13135          # have runtime linking enabled, and use it for executables.
13136          # For shared libraries, we enable/disable runtime linking
13137          # depending on the kind of the shared library created -
13138          # when "with_aix_soname,aix_use_runtimelinking" is:
13139          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13140          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13141          #            lib.a           static archive
13142          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13143          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13144          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13145          #            lib.a(lib.so.V) shared, rtl:no
13146          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13147          #            lib.a           static archive
13148          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13149	    for ld_flag in $LDFLAGS; do
13150	      case $ld_flag in
13151	      *-brtl*)
13152	        aix_use_runtimelinking=yes
13153	        break
13154	        ;;
13155	      esac
13156	    done
13157	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13158	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13159	      # so we don't have lib.a shared libs to link our executables.
13160	      # We have to force runtime linking in this case.
13161	      aix_use_runtimelinking=yes
13162	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13163	    fi
13164	    ;;
13165          esac
13166
13167          exp_sym_flag='-bexport'
13168          no_entry_flag='-bnoentry'
13169        fi
13170
13171        # When large executables or shared objects are built, AIX ld can
13172        # have problems creating the table of contents.  If linking a library
13173        # or program results in "error TOC overflow" add -mminimal-toc to
13174        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13175        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13176
13177        archive_cmds_CXX=''
13178        hardcode_direct_CXX=yes
13179        hardcode_direct_absolute_CXX=yes
13180        hardcode_libdir_separator_CXX=':'
13181        link_all_deplibs_CXX=yes
13182        file_list_spec_CXX='$wl-f,'
13183        case $with_aix_soname,$aix_use_runtimelinking in
13184        aix,*) ;;	# no import file
13185        svr4,* | *,yes) # use import file
13186          # The Import File defines what to hardcode.
13187          hardcode_direct_CXX=no
13188          hardcode_direct_absolute_CXX=no
13189          ;;
13190        esac
13191
13192        if test yes = "$GXX"; then
13193          case $host_os in aix4.[012]|aix4.[012].*)
13194          # We only want to do this on AIX 4.2 and lower, the check
13195          # below for broken collect2 doesn't work under 4.3+
13196	  collect2name=`$CC -print-prog-name=collect2`
13197	  if test -f "$collect2name" &&
13198	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13199	  then
13200	    # We have reworked collect2
13201	    :
13202	  else
13203	    # We have old collect2
13204	    hardcode_direct_CXX=unsupported
13205	    # It fails to find uninstalled libraries when the uninstalled
13206	    # path is not listed in the libpath.  Setting hardcode_minus_L
13207	    # to unsupported forces relinking
13208	    hardcode_minus_L_CXX=yes
13209	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13210	    hardcode_libdir_separator_CXX=
13211	  fi
13212          esac
13213          shared_flag='-shared'
13214	  if test yes = "$aix_use_runtimelinking"; then
13215	    shared_flag=$shared_flag' $wl-G'
13216	  fi
13217	  # Need to ensure runtime linking is disabled for the traditional
13218	  # shared library, or the linker may eventually find shared libraries
13219	  # /with/ Import File - we do not want to mix them.
13220	  shared_flag_aix='-shared'
13221	  shared_flag_svr4='-shared $wl-G'
13222        else
13223          # not using gcc
13224          if test ia64 = "$host_cpu"; then
13225	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13226	  # chokes on -Wl,-G. The following line is correct:
13227	  shared_flag='-G'
13228          else
13229	    if test yes = "$aix_use_runtimelinking"; then
13230	      shared_flag='$wl-G'
13231	    else
13232	      shared_flag='$wl-bM:SRE'
13233	    fi
13234	    shared_flag_aix='$wl-bM:SRE'
13235	    shared_flag_svr4='$wl-G'
13236          fi
13237        fi
13238
13239        export_dynamic_flag_spec_CXX='$wl-bexpall'
13240        # It seems that -bexpall does not export symbols beginning with
13241        # underscore (_), so it is better to generate a list of symbols to
13242	# export.
13243        always_export_symbols_CXX=yes
13244	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13245          # Warning - without using the other runtime loading flags (-brtl),
13246          # -berok will link without error, but may produce a broken library.
13247          # The "-G" linker flag allows undefined symbols.
13248          no_undefined_flag_CXX='-bernotok'
13249          # Determine the default libpath from the value encoded in an empty
13250          # executable.
13251          if test set = "${lt_cv_aix_libpath+set}"; then
13252  aix_libpath=$lt_cv_aix_libpath
13253else
13254  if ${lt_cv_aix_libpath__CXX+:} false; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258/* end confdefs.h.  */
13259
13260int
13261main ()
13262{
13263
13264  ;
13265  return 0;
13266}
13267_ACEOF
13268if ac_fn_cxx_try_link "$LINENO"; then :
13269
13270  lt_aix_libpath_sed='
13271      /Import File Strings/,/^$/ {
13272	  /^0/ {
13273	      s/^0  *\([^ ]*\) *$/\1/
13274	      p
13275	  }
13276      }'
13277  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13278  # Check for a 64-bit object if we didn't find anything.
13279  if test -z "$lt_cv_aix_libpath__CXX"; then
13280    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13281  fi
13282fi
13283rm -f core conftest.err conftest.$ac_objext \
13284    conftest$ac_exeext conftest.$ac_ext
13285  if test -z "$lt_cv_aix_libpath__CXX"; then
13286    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13287  fi
13288
13289fi
13290
13291  aix_libpath=$lt_cv_aix_libpath__CXX
13292fi
13293
13294          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13295
13296          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13297        else
13298          if test ia64 = "$host_cpu"; then
13299	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13300	    allow_undefined_flag_CXX="-z nodefs"
13301	    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"
13302          else
13303	    # Determine the default libpath from the value encoded in an
13304	    # empty executable.
13305	    if test set = "${lt_cv_aix_libpath+set}"; then
13306  aix_libpath=$lt_cv_aix_libpath
13307else
13308  if ${lt_cv_aix_libpath__CXX+:} false; then :
13309  $as_echo_n "(cached) " >&6
13310else
13311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312/* end confdefs.h.  */
13313
13314int
13315main ()
13316{
13317
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322if ac_fn_cxx_try_link "$LINENO"; then :
13323
13324  lt_aix_libpath_sed='
13325      /Import File Strings/,/^$/ {
13326	  /^0/ {
13327	      s/^0  *\([^ ]*\) *$/\1/
13328	      p
13329	  }
13330      }'
13331  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13332  # Check for a 64-bit object if we didn't find anything.
13333  if test -z "$lt_cv_aix_libpath__CXX"; then
13334    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335  fi
13336fi
13337rm -f core conftest.err conftest.$ac_objext \
13338    conftest$ac_exeext conftest.$ac_ext
13339  if test -z "$lt_cv_aix_libpath__CXX"; then
13340    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13341  fi
13342
13343fi
13344
13345  aix_libpath=$lt_cv_aix_libpath__CXX
13346fi
13347
13348	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13349	    # Warning - without using the other run time loading flags,
13350	    # -berok will link without error, but may produce a broken library.
13351	    no_undefined_flag_CXX=' $wl-bernotok'
13352	    allow_undefined_flag_CXX=' $wl-berok'
13353	    if test yes = "$with_gnu_ld"; then
13354	      # We only use this code for GNU lds that support --whole-archive.
13355	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13356	    else
13357	      # Exported symbols can be pulled into shared objects from archives
13358	      whole_archive_flag_spec_CXX='$convenience'
13359	    fi
13360	    archive_cmds_need_lc_CXX=yes
13361	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13362	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13363	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13364	    if test svr4 != "$with_aix_soname"; then
13365	      # This is similar to how AIX traditionally builds its shared
13366	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13367	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13368	    fi
13369	    if test aix != "$with_aix_soname"; then
13370	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13371	    else
13372	      # used by -dlpreopen to get the symbols
13373	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13374	    fi
13375	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13376          fi
13377        fi
13378        ;;
13379
13380      beos*)
13381	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13382	  allow_undefined_flag_CXX=unsupported
13383	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13384	  # support --undefined.  This deserves some investigation.  FIXME
13385	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13386	else
13387	  ld_shlibs_CXX=no
13388	fi
13389	;;
13390
13391      chorus*)
13392        case $cc_basename in
13393          *)
13394	  # FIXME: insert proper C++ library support
13395	  ld_shlibs_CXX=no
13396	  ;;
13397        esac
13398        ;;
13399
13400      cygwin* | mingw* | pw32* | cegcc*)
13401	case $GXX,$cc_basename in
13402	,cl* | no,cl*)
13403	  # Native MSVC
13404	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13405	  # no search path for DLLs.
13406	  hardcode_libdir_flag_spec_CXX=' '
13407	  allow_undefined_flag_CXX=unsupported
13408	  always_export_symbols_CXX=yes
13409	  file_list_spec_CXX='@'
13410	  # Tell ltmain to make .lib files, not .a files.
13411	  libext=lib
13412	  # Tell ltmain to make .dll files, not .so files.
13413	  shrext_cmds=.dll
13414	  # FIXME: Setting linknames here is a bad hack.
13415	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13416	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13417              cp "$export_symbols" "$output_objdir/$soname.def";
13418              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13419            else
13420              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13421            fi~
13422            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13423            linknames='
13424	  # The linker will not automatically build a static lib if we build a DLL.
13425	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13426	  enable_shared_with_static_runtimes_CXX=yes
13427	  # Don't use ranlib
13428	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13429	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13430            lt_tool_outputfile="@TOOL_OUTPUT@"~
13431            case $lt_outputfile in
13432              *.exe|*.EXE) ;;
13433              *)
13434                lt_outputfile=$lt_outputfile.exe
13435                lt_tool_outputfile=$lt_tool_outputfile.exe
13436                ;;
13437            esac~
13438            func_to_tool_file "$lt_outputfile"~
13439            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13440              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13441              $RM "$lt_outputfile.manifest";
13442            fi'
13443	  ;;
13444	*)
13445	  # g++
13446	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13447	  # as there is no search path for DLLs.
13448	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13449	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13450	  allow_undefined_flag_CXX=unsupported
13451	  always_export_symbols_CXX=no
13452	  enable_shared_with_static_runtimes_CXX=yes
13453
13454	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13455	    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'
13456	    # If the export-symbols file already is a .def file, use it as
13457	    # is; otherwise, prepend EXPORTS...
13458	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13459              cp $export_symbols $output_objdir/$soname.def;
13460            else
13461              echo EXPORTS > $output_objdir/$soname.def;
13462              cat $export_symbols >> $output_objdir/$soname.def;
13463            fi~
13464            $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'
13465	  else
13466	    ld_shlibs_CXX=no
13467	  fi
13468	  ;;
13469	esac
13470	;;
13471      darwin* | rhapsody*)
13472
13473
13474  archive_cmds_need_lc_CXX=no
13475  hardcode_direct_CXX=no
13476  hardcode_automatic_CXX=yes
13477  hardcode_shlibpath_var_CXX=unsupported
13478  if test yes = "$lt_cv_ld_force_load"; then
13479    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\"`'
13480
13481  else
13482    whole_archive_flag_spec_CXX=''
13483  fi
13484  link_all_deplibs_CXX=yes
13485  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13486  case $cc_basename in
13487     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13488     *) _lt_dar_can_shared=$GCC ;;
13489  esac
13490  if test yes = "$_lt_dar_can_shared"; then
13491    output_verbose_link_cmd=func_echo_all
13492    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"
13493    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13494    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"
13495    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"
13496       if test yes != "$lt_cv_apple_cc_single_mod"; then
13497      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"
13498      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"
13499    fi
13500
13501  else
13502  ld_shlibs_CXX=no
13503  fi
13504
13505	;;
13506
13507      os2*)
13508	hardcode_libdir_flag_spec_CXX='-L$libdir'
13509	hardcode_minus_L_CXX=yes
13510	allow_undefined_flag_CXX=unsupported
13511	shrext_cmds=.dll
13512	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13513	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13514	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13515	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13516	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13517	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13518	  emximp -o $lib $output_objdir/$libname.def'
13519	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13520	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13521	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13522	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13523	  prefix_cmds="$SED"~
13524	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13525	    prefix_cmds="$prefix_cmds -e 1d";
13526	  fi~
13527	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13528	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13529	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13530	  emximp -o $lib $output_objdir/$libname.def'
13531	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13532	enable_shared_with_static_runtimes_CXX=yes
13533	;;
13534
13535      dgux*)
13536        case $cc_basename in
13537          ec++*)
13538	    # FIXME: insert proper C++ library support
13539	    ld_shlibs_CXX=no
13540	    ;;
13541          ghcx*)
13542	    # Green Hills C++ Compiler
13543	    # FIXME: insert proper C++ library support
13544	    ld_shlibs_CXX=no
13545	    ;;
13546          *)
13547	    # FIXME: insert proper C++ library support
13548	    ld_shlibs_CXX=no
13549	    ;;
13550        esac
13551        ;;
13552
13553      freebsd2.*)
13554        # C++ shared libraries reported to be fairly broken before
13555	# switch to ELF
13556        ld_shlibs_CXX=no
13557        ;;
13558
13559      freebsd-elf*)
13560        archive_cmds_need_lc_CXX=no
13561        ;;
13562
13563      freebsd* | dragonfly*)
13564        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13565        # conventions
13566        ld_shlibs_CXX=yes
13567        ;;
13568
13569      haiku*)
13570        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13571        link_all_deplibs_CXX=yes
13572        ;;
13573
13574      hpux9*)
13575        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13576        hardcode_libdir_separator_CXX=:
13577        export_dynamic_flag_spec_CXX='$wl-E'
13578        hardcode_direct_CXX=yes
13579        hardcode_minus_L_CXX=yes # Not in the search PATH,
13580				             # but as the default
13581				             # location of the library.
13582
13583        case $cc_basename in
13584          CC*)
13585            # FIXME: insert proper C++ library support
13586            ld_shlibs_CXX=no
13587            ;;
13588          aCC*)
13589            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13590            # Commands to make compiler produce verbose output that lists
13591            # what "hidden" libraries, object files and flags are used when
13592            # linking a shared library.
13593            #
13594            # There doesn't appear to be a way to prevent this compiler from
13595            # explicitly linking system object files so we need to strip them
13596            # from the output so that they don't get included in the library
13597            # dependencies.
13598            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"'
13599            ;;
13600          *)
13601            if test yes = "$GXX"; then
13602              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13603            else
13604              # FIXME: insert proper C++ library support
13605              ld_shlibs_CXX=no
13606            fi
13607            ;;
13608        esac
13609        ;;
13610
13611      hpux10*|hpux11*)
13612        if test no = "$with_gnu_ld"; then
13613	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13614	  hardcode_libdir_separator_CXX=:
13615
13616          case $host_cpu in
13617            hppa*64*|ia64*)
13618              ;;
13619            *)
13620	      export_dynamic_flag_spec_CXX='$wl-E'
13621              ;;
13622          esac
13623        fi
13624        case $host_cpu in
13625          hppa*64*|ia64*)
13626            hardcode_direct_CXX=no
13627            hardcode_shlibpath_var_CXX=no
13628            ;;
13629          *)
13630            hardcode_direct_CXX=yes
13631            hardcode_direct_absolute_CXX=yes
13632            hardcode_minus_L_CXX=yes # Not in the search PATH,
13633					         # but as the default
13634					         # location of the library.
13635            ;;
13636        esac
13637
13638        case $cc_basename in
13639          CC*)
13640	    # FIXME: insert proper C++ library support
13641	    ld_shlibs_CXX=no
13642	    ;;
13643          aCC*)
13644	    case $host_cpu in
13645	      hppa*64*)
13646	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647	        ;;
13648	      ia64*)
13649	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650	        ;;
13651	      *)
13652	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13653	        ;;
13654	    esac
13655	    # Commands to make compiler produce verbose output that lists
13656	    # what "hidden" libraries, object files and flags are used when
13657	    # linking a shared library.
13658	    #
13659	    # There doesn't appear to be a way to prevent this compiler from
13660	    # explicitly linking system object files so we need to strip them
13661	    # from the output so that they don't get included in the library
13662	    # dependencies.
13663	    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"'
13664	    ;;
13665          *)
13666	    if test yes = "$GXX"; then
13667	      if test no = "$with_gnu_ld"; then
13668	        case $host_cpu in
13669	          hppa*64*)
13670	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671	            ;;
13672	          ia64*)
13673	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13674	            ;;
13675	          *)
13676	            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'
13677	            ;;
13678	        esac
13679	      fi
13680	    else
13681	      # FIXME: insert proper C++ library support
13682	      ld_shlibs_CXX=no
13683	    fi
13684	    ;;
13685        esac
13686        ;;
13687
13688      interix[3-9]*)
13689	hardcode_direct_CXX=no
13690	hardcode_shlibpath_var_CXX=no
13691	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13692	export_dynamic_flag_spec_CXX='$wl-E'
13693	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13694	# Instead, shared libraries are loaded at an image base (0x10000000 by
13695	# default) and relocated if they conflict, which is a slow very memory
13696	# consuming and fragmenting process.  To avoid this, we pick a random,
13697	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13698	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13699	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'
13700	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'
13701	;;
13702      irix5* | irix6*)
13703        case $cc_basename in
13704          CC*)
13705	    # SGI C++
13706	    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'
13707
13708	    # Archives containing C++ object files must be created using
13709	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13710	    # necessary to make sure instantiated templates are included
13711	    # in the archive.
13712	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13713	    ;;
13714          *)
13715	    if test yes = "$GXX"; then
13716	      if test no = "$with_gnu_ld"; then
13717	        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'
13718	      else
13719	        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'
13720	      fi
13721	    fi
13722	    link_all_deplibs_CXX=yes
13723	    ;;
13724        esac
13725        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13726        hardcode_libdir_separator_CXX=:
13727        inherit_rpath_CXX=yes
13728        ;;
13729
13730      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13731        case $cc_basename in
13732          KCC*)
13733	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13734
13735	    # KCC will only create a shared library if the output file
13736	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13737	    # to its proper name (with version) after linking.
13738	    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 -f \$templib $lib'
13739	    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 -f \$templib $lib'
13740	    # Commands to make compiler produce verbose output that lists
13741	    # what "hidden" libraries, object files and flags are used when
13742	    # linking a shared library.
13743	    #
13744	    # There doesn't appear to be a way to prevent this compiler from
13745	    # explicitly linking system object files so we need to strip them
13746	    # from the output so that they don't get included in the library
13747	    # dependencies.
13748	    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"'
13749
13750	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13751	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13752
13753	    # Archives containing C++ object files must be created using
13754	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13755	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13756	    ;;
13757	  icpc* | ecpc* )
13758	    # Intel C++
13759	    with_gnu_ld=yes
13760	    # version 8.0 and above of icpc choke on multiply defined symbols
13761	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13762	    # earlier do not add the objects themselves.
13763	    case `$CC -V 2>&1` in
13764	      *"Version 7."*)
13765	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13766		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'
13767		;;
13768	      *)  # Version 8.0 or newer
13769	        tmp_idyn=
13770	        case $host_cpu in
13771		  ia64*) tmp_idyn=' -i_dynamic';;
13772		esac
13773	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13774		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'
13775		;;
13776	    esac
13777	    archive_cmds_need_lc_CXX=no
13778	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13779	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13780	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13781	    ;;
13782          pgCC* | pgcpp*)
13783            # Portland Group C++ compiler
13784	    case `$CC -V` in
13785	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13786	      prelink_cmds_CXX='tpldir=Template.dir~
13787               rm -rf $tpldir~
13788               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13789               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13790	      old_archive_cmds_CXX='tpldir=Template.dir~
13791                rm -rf $tpldir~
13792                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13793                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13794                $RANLIB $oldlib'
13795	      archive_cmds_CXX='tpldir=Template.dir~
13796                rm -rf $tpldir~
13797                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13798                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13799	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13800                rm -rf $tpldir~
13801                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13802                $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'
13803	      ;;
13804	    *) # Version 6 and above use weak symbols
13805	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13806	      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'
13807	      ;;
13808	    esac
13809
13810	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13811	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13812	    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'
13813            ;;
13814	  cxx*)
13815	    # Compaq C++
13816	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13817	    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'
13818
13819	    runpath_var=LD_RUN_PATH
13820	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13821	    hardcode_libdir_separator_CXX=:
13822
13823	    # Commands to make compiler produce verbose output that lists
13824	    # what "hidden" libraries, object files and flags are used when
13825	    # linking a shared library.
13826	    #
13827	    # There doesn't appear to be a way to prevent this compiler from
13828	    # explicitly linking system object files so we need to strip them
13829	    # from the output so that they don't get included in the library
13830	    # dependencies.
13831	    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'
13832	    ;;
13833	  xl* | mpixl* | bgxl*)
13834	    # IBM XL 8.0 on PPC, with GNU ld
13835	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13836	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13837	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13838	    if test yes = "$supports_anon_versioning"; then
13839	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13840                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13841                echo "local: *; };" >> $output_objdir/$libname.ver~
13842                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13843	    fi
13844	    ;;
13845	  *)
13846	    case `$CC -V 2>&1 | sed 5q` in
13847	    *Sun\ C*)
13848	      # Sun C++ 5.9
13849	      no_undefined_flag_CXX=' -zdefs'
13850	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13851	      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'
13852	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13853	      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'
13854	      compiler_needs_object_CXX=yes
13855
13856	      # Not sure whether something based on
13857	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13858	      # would be better.
13859	      output_verbose_link_cmd='func_echo_all'
13860
13861	      # Archives containing C++ object files must be created using
13862	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13863	      # necessary to make sure instantiated templates are included
13864	      # in the archive.
13865	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13866	      ;;
13867	    esac
13868	    ;;
13869	esac
13870	;;
13871
13872      lynxos*)
13873        # FIXME: insert proper C++ library support
13874	ld_shlibs_CXX=no
13875	;;
13876
13877      m88k*)
13878        # FIXME: insert proper C++ library support
13879        ld_shlibs_CXX=no
13880	;;
13881
13882      mvs*)
13883        case $cc_basename in
13884          cxx*)
13885	    # FIXME: insert proper C++ library support
13886	    ld_shlibs_CXX=no
13887	    ;;
13888	  *)
13889	    # FIXME: insert proper C++ library support
13890	    ld_shlibs_CXX=no
13891	    ;;
13892	esac
13893	;;
13894
13895      netbsd*)
13896        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13897	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13898	  wlarc=
13899	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13900	  hardcode_direct_CXX=yes
13901	  hardcode_shlibpath_var_CXX=no
13902	fi
13903	# Workaround some broken pre-1.5 toolchains
13904	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13905	;;
13906
13907      *nto* | *qnx*)
13908        ld_shlibs_CXX=yes
13909	;;
13910
13911      openbsd* | bitrig*)
13912	if test -f /usr/libexec/ld.so; then
13913	  hardcode_direct_CXX=yes
13914	  hardcode_shlibpath_var_CXX=no
13915	  hardcode_direct_absolute_CXX=yes
13916	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13917	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13918	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13919	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13920	    export_dynamic_flag_spec_CXX='$wl-E'
13921	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13922	  fi
13923	  output_verbose_link_cmd=func_echo_all
13924	else
13925	  ld_shlibs_CXX=no
13926	fi
13927	;;
13928
13929      osf3* | osf4* | osf5*)
13930        case $cc_basename in
13931          KCC*)
13932	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13933
13934	    # KCC will only create a shared library if the output file
13935	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13936	    # to its proper name (with version) after linking.
13937	    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 -f \$templib $lib'
13938
13939	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13940	    hardcode_libdir_separator_CXX=:
13941
13942	    # Archives containing C++ object files must be created using
13943	    # the KAI C++ compiler.
13944	    case $host in
13945	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13946	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13947	    esac
13948	    ;;
13949          RCC*)
13950	    # Rational C++ 2.4.1
13951	    # FIXME: insert proper C++ library support
13952	    ld_shlibs_CXX=no
13953	    ;;
13954          cxx*)
13955	    case $host in
13956	      osf3*)
13957	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13958	        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'
13959	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13960		;;
13961	      *)
13962	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13963	        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'
13964	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13965                  echo "-hidden">> $lib.exp~
13966                  $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~
13967                  $RM $lib.exp'
13968	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13969		;;
13970	    esac
13971
13972	    hardcode_libdir_separator_CXX=:
13973
13974	    # Commands to make compiler produce verbose output that lists
13975	    # what "hidden" libraries, object files and flags are used when
13976	    # linking a shared library.
13977	    #
13978	    # There doesn't appear to be a way to prevent this compiler from
13979	    # explicitly linking system object files so we need to strip them
13980	    # from the output so that they don't get included in the library
13981	    # dependencies.
13982	    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"'
13983	    ;;
13984	  *)
13985	    if test yes,no = "$GXX,$with_gnu_ld"; then
13986	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13987	      case $host in
13988	        osf3*)
13989	          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'
13990		  ;;
13991	        *)
13992	          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'
13993		  ;;
13994	      esac
13995
13996	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13997	      hardcode_libdir_separator_CXX=:
13998
13999	      # Commands to make compiler produce verbose output that lists
14000	      # what "hidden" libraries, object files and flags are used when
14001	      # linking a shared library.
14002	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14003
14004	    else
14005	      # FIXME: insert proper C++ library support
14006	      ld_shlibs_CXX=no
14007	    fi
14008	    ;;
14009        esac
14010        ;;
14011
14012      psos*)
14013        # FIXME: insert proper C++ library support
14014        ld_shlibs_CXX=no
14015        ;;
14016
14017      sunos4*)
14018        case $cc_basename in
14019          CC*)
14020	    # Sun C++ 4.x
14021	    # FIXME: insert proper C++ library support
14022	    ld_shlibs_CXX=no
14023	    ;;
14024          lcc*)
14025	    # Lucid
14026	    # FIXME: insert proper C++ library support
14027	    ld_shlibs_CXX=no
14028	    ;;
14029          *)
14030	    # FIXME: insert proper C++ library support
14031	    ld_shlibs_CXX=no
14032	    ;;
14033        esac
14034        ;;
14035
14036      solaris*)
14037        case $cc_basename in
14038          CC* | sunCC*)
14039	    # Sun C++ 4.2, 5.x and Centerline C++
14040            archive_cmds_need_lc_CXX=yes
14041	    no_undefined_flag_CXX=' -zdefs'
14042	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14044              $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'
14045
14046	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14047	    hardcode_shlibpath_var_CXX=no
14048	    case $host_os in
14049	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14050	      *)
14051		# The compiler driver will combine and reorder linker options,
14052		# but understands '-z linker_flag'.
14053	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14054		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14055	        ;;
14056	    esac
14057	    link_all_deplibs_CXX=yes
14058
14059	    output_verbose_link_cmd='func_echo_all'
14060
14061	    # Archives containing C++ object files must be created using
14062	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14063	    # necessary to make sure instantiated templates are included
14064	    # in the archive.
14065	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14066	    ;;
14067          gcx*)
14068	    # Green Hills C++ Compiler
14069	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14070
14071	    # The C++ compiler must be used to create the archive.
14072	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14073	    ;;
14074          *)
14075	    # GNU C++ compiler with Solaris linker
14076	    if test yes,no = "$GXX,$with_gnu_ld"; then
14077	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14078	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14079	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14080	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14081                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14082
14083	        # Commands to make compiler produce verbose output that lists
14084	        # what "hidden" libraries, object files and flags are used when
14085	        # linking a shared library.
14086	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14087	      else
14088	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14089	        # platform.
14090	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14091	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14092                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14093
14094	        # Commands to make compiler produce verbose output that lists
14095	        # what "hidden" libraries, object files and flags are used when
14096	        # linking a shared library.
14097	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14098	      fi
14099
14100	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14101	      case $host_os in
14102		solaris2.[0-5] | solaris2.[0-5].*) ;;
14103		*)
14104		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14105		  ;;
14106	      esac
14107	    fi
14108	    ;;
14109        esac
14110        ;;
14111
14112    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14113      no_undefined_flag_CXX='$wl-z,text'
14114      archive_cmds_need_lc_CXX=no
14115      hardcode_shlibpath_var_CXX=no
14116      runpath_var='LD_RUN_PATH'
14117
14118      case $cc_basename in
14119        CC*)
14120	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14121	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122	  ;;
14123	*)
14124	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14126	  ;;
14127      esac
14128      ;;
14129
14130      sysv5* | sco3.2v5* | sco5v6*)
14131	# Note: We CANNOT use -z defs as we might desire, because we do not
14132	# link with -lc, and that would cause any symbols used from libc to
14133	# always be unresolved, which means just about no library would
14134	# ever link correctly.  If we're not using GNU ld we use -z text
14135	# though, which does catch some bad symbols but isn't as heavy-handed
14136	# as -z defs.
14137	no_undefined_flag_CXX='$wl-z,text'
14138	allow_undefined_flag_CXX='$wl-z,nodefs'
14139	archive_cmds_need_lc_CXX=no
14140	hardcode_shlibpath_var_CXX=no
14141	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14142	hardcode_libdir_separator_CXX=':'
14143	link_all_deplibs_CXX=yes
14144	export_dynamic_flag_spec_CXX='$wl-Bexport'
14145	runpath_var='LD_RUN_PATH'
14146
14147	case $cc_basename in
14148          CC*)
14149	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14150	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14152              '"$old_archive_cmds_CXX"
14153	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14154              '"$reload_cmds_CXX"
14155	    ;;
14156	  *)
14157	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14158	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14159	    ;;
14160	esac
14161      ;;
14162
14163      tandem*)
14164        case $cc_basename in
14165          NCC*)
14166	    # NonStop-UX NCC 3.20
14167	    # FIXME: insert proper C++ library support
14168	    ld_shlibs_CXX=no
14169	    ;;
14170          *)
14171	    # FIXME: insert proper C++ library support
14172	    ld_shlibs_CXX=no
14173	    ;;
14174        esac
14175        ;;
14176
14177      vxworks*)
14178        # FIXME: insert proper C++ library support
14179        ld_shlibs_CXX=no
14180        ;;
14181
14182      *)
14183        # FIXME: insert proper C++ library support
14184        ld_shlibs_CXX=no
14185        ;;
14186    esac
14187
14188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14189$as_echo "$ld_shlibs_CXX" >&6; }
14190    test no = "$ld_shlibs_CXX" && can_build_shared=no
14191
14192    GCC_CXX=$GXX
14193    LD_CXX=$LD
14194
14195    ## CAVEAT EMPTOR:
14196    ## There is no encapsulation within the following macros, do not change
14197    ## the running order or otherwise move them around unless you know exactly
14198    ## what you are doing...
14199    # Dependencies to place before and after the object being linked:
14200predep_objects_CXX=
14201postdep_objects_CXX=
14202predeps_CXX=
14203postdeps_CXX=
14204compiler_lib_search_path_CXX=
14205
14206cat > conftest.$ac_ext <<_LT_EOF
14207class Foo
14208{
14209public:
14210  Foo (void) { a = 0; }
14211private:
14212  int a;
14213};
14214_LT_EOF
14215
14216
14217_lt_libdeps_save_CFLAGS=$CFLAGS
14218case "$CC $CFLAGS " in #(
14219*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14220*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14221*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14222esac
14223
14224if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14225  (eval $ac_compile) 2>&5
14226  ac_status=$?
14227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228  test $ac_status = 0; }; then
14229  # Parse the compiler output and extract the necessary
14230  # objects, libraries and library flags.
14231
14232  # Sentinel used to keep track of whether or not we are before
14233  # the conftest object file.
14234  pre_test_object_deps_done=no
14235
14236  for p in `eval "$output_verbose_link_cmd"`; do
14237    case $prev$p in
14238
14239    -L* | -R* | -l*)
14240       # Some compilers place space between "-{L,R}" and the path.
14241       # Remove the space.
14242       if test x-L = "$p" ||
14243          test x-R = "$p"; then
14244	 prev=$p
14245	 continue
14246       fi
14247
14248       # Expand the sysroot to ease extracting the directories later.
14249       if test -z "$prev"; then
14250         case $p in
14251         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14252         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14253         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14254         esac
14255       fi
14256       case $p in
14257       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14258       esac
14259       if test no = "$pre_test_object_deps_done"; then
14260	 case $prev in
14261	 -L | -R)
14262	   # Internal compiler library paths should come after those
14263	   # provided the user.  The postdeps already come after the
14264	   # user supplied libs so there is no need to process them.
14265	   if test -z "$compiler_lib_search_path_CXX"; then
14266	     compiler_lib_search_path_CXX=$prev$p
14267	   else
14268	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14269	   fi
14270	   ;;
14271	 # The "-l" case would never come before the object being
14272	 # linked, so don't bother handling this case.
14273	 esac
14274       else
14275	 if test -z "$postdeps_CXX"; then
14276	   postdeps_CXX=$prev$p
14277	 else
14278	   postdeps_CXX="${postdeps_CXX} $prev$p"
14279	 fi
14280       fi
14281       prev=
14282       ;;
14283
14284    *.lto.$objext) ;; # Ignore GCC LTO objects
14285    *.$objext)
14286       # This assumes that the test object file only shows up
14287       # once in the compiler output.
14288       if test "$p" = "conftest.$objext"; then
14289	 pre_test_object_deps_done=yes
14290	 continue
14291       fi
14292
14293       if test no = "$pre_test_object_deps_done"; then
14294	 if test -z "$predep_objects_CXX"; then
14295	   predep_objects_CXX=$p
14296	 else
14297	   predep_objects_CXX="$predep_objects_CXX $p"
14298	 fi
14299       else
14300	 if test -z "$postdep_objects_CXX"; then
14301	   postdep_objects_CXX=$p
14302	 else
14303	   postdep_objects_CXX="$postdep_objects_CXX $p"
14304	 fi
14305       fi
14306       ;;
14307
14308    *) ;; # Ignore the rest.
14309
14310    esac
14311  done
14312
14313  # Clean up.
14314  rm -f a.out a.exe
14315else
14316  echo "libtool.m4: error: problem compiling CXX test program"
14317fi
14318
14319$RM -f confest.$objext
14320CFLAGS=$_lt_libdeps_save_CFLAGS
14321
14322# PORTME: override above test on systems where it is broken
14323case $host_os in
14324interix[3-9]*)
14325  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14326  # hack all around it, let's just trust "g++" to DTRT.
14327  predep_objects_CXX=
14328  postdep_objects_CXX=
14329  postdeps_CXX=
14330  ;;
14331esac
14332
14333
14334case " $postdeps_CXX " in
14335*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14336esac
14337 compiler_lib_search_dirs_CXX=
14338if test -n "${compiler_lib_search_path_CXX}"; then
14339 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14340fi
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372    lt_prog_compiler_wl_CXX=
14373lt_prog_compiler_pic_CXX=
14374lt_prog_compiler_static_CXX=
14375
14376
14377  # C++ specific cases for pic, static, wl, etc.
14378  if test yes = "$GXX"; then
14379    lt_prog_compiler_wl_CXX='-Wl,'
14380    lt_prog_compiler_static_CXX='-static'
14381
14382    case $host_os in
14383    aix*)
14384      # All AIX code is PIC.
14385      if test ia64 = "$host_cpu"; then
14386	# AIX 5 now supports IA64 processor
14387	lt_prog_compiler_static_CXX='-Bstatic'
14388      fi
14389      lt_prog_compiler_pic_CXX='-fPIC'
14390      ;;
14391
14392    amigaos*)
14393      case $host_cpu in
14394      powerpc)
14395            # see comment about AmigaOS4 .so support
14396            lt_prog_compiler_pic_CXX='-fPIC'
14397        ;;
14398      m68k)
14399            # FIXME: we need at least 68020 code to build shared libraries, but
14400            # adding the '-m68020' flag to GCC prevents building anything better,
14401            # like '-m68040'.
14402            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14403        ;;
14404      esac
14405      ;;
14406
14407    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14408      # PIC is the default for these OSes.
14409      ;;
14410    mingw* | cygwin* | os2* | pw32* | cegcc*)
14411      # This hack is so that the source file can tell whether it is being
14412      # built for inclusion in a dll (and should export symbols for example).
14413      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14414      # (--disable-auto-import) libraries
14415      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14416      case $host_os in
14417      os2*)
14418	lt_prog_compiler_static_CXX='$wl-static'
14419	;;
14420      esac
14421      ;;
14422    darwin* | rhapsody*)
14423      # PIC is the default on this platform
14424      # Common symbols not allowed in MH_DYLIB files
14425      lt_prog_compiler_pic_CXX='-fno-common'
14426      ;;
14427    *djgpp*)
14428      # DJGPP does not support shared libraries at all
14429      lt_prog_compiler_pic_CXX=
14430      ;;
14431    haiku*)
14432      # PIC is the default for Haiku.
14433      # The "-static" flag exists, but is broken.
14434      lt_prog_compiler_static_CXX=
14435      ;;
14436    interix[3-9]*)
14437      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14438      # Instead, we relocate shared libraries at runtime.
14439      ;;
14440    sysv4*MP*)
14441      if test -d /usr/nec; then
14442	lt_prog_compiler_pic_CXX=-Kconform_pic
14443      fi
14444      ;;
14445    hpux*)
14446      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14447      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14448      # sets the default TLS model and affects inlining.
14449      case $host_cpu in
14450      hppa*64*)
14451	;;
14452      *)
14453	lt_prog_compiler_pic_CXX='-fPIC'
14454	;;
14455      esac
14456      ;;
14457    *qnx* | *nto*)
14458      # QNX uses GNU C++, but need to define -shared option too, otherwise
14459      # it will coredump.
14460      lt_prog_compiler_pic_CXX='-fPIC -shared'
14461      ;;
14462    *)
14463      lt_prog_compiler_pic_CXX='-fPIC'
14464      ;;
14465    esac
14466  else
14467    case $host_os in
14468      aix[4-9]*)
14469	# All AIX code is PIC.
14470	if test ia64 = "$host_cpu"; then
14471	  # AIX 5 now supports IA64 processor
14472	  lt_prog_compiler_static_CXX='-Bstatic'
14473	else
14474	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14475	fi
14476	;;
14477      chorus*)
14478	case $cc_basename in
14479	cxch68*)
14480	  # Green Hills C++ Compiler
14481	  # _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"
14482	  ;;
14483	esac
14484	;;
14485      mingw* | cygwin* | os2* | pw32* | cegcc*)
14486	# This hack is so that the source file can tell whether it is being
14487	# built for inclusion in a dll (and should export symbols for example).
14488	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14489	;;
14490      dgux*)
14491	case $cc_basename in
14492	  ec++*)
14493	    lt_prog_compiler_pic_CXX='-KPIC'
14494	    ;;
14495	  ghcx*)
14496	    # Green Hills C++ Compiler
14497	    lt_prog_compiler_pic_CXX='-pic'
14498	    ;;
14499	  *)
14500	    ;;
14501	esac
14502	;;
14503      freebsd* | dragonfly*)
14504	# FreeBSD uses GNU C++
14505	;;
14506      hpux9* | hpux10* | hpux11*)
14507	case $cc_basename in
14508	  CC*)
14509	    lt_prog_compiler_wl_CXX='-Wl,'
14510	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14511	    if test ia64 != "$host_cpu"; then
14512	      lt_prog_compiler_pic_CXX='+Z'
14513	    fi
14514	    ;;
14515	  aCC*)
14516	    lt_prog_compiler_wl_CXX='-Wl,'
14517	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14518	    case $host_cpu in
14519	    hppa*64*|ia64*)
14520	      # +Z the default
14521	      ;;
14522	    *)
14523	      lt_prog_compiler_pic_CXX='+Z'
14524	      ;;
14525	    esac
14526	    ;;
14527	  *)
14528	    ;;
14529	esac
14530	;;
14531      interix*)
14532	# This is c89, which is MS Visual C++ (no shared libs)
14533	# Anyone wants to do a port?
14534	;;
14535      irix5* | irix6* | nonstopux*)
14536	case $cc_basename in
14537	  CC*)
14538	    lt_prog_compiler_wl_CXX='-Wl,'
14539	    lt_prog_compiler_static_CXX='-non_shared'
14540	    # CC pic flag -KPIC is the default.
14541	    ;;
14542	  *)
14543	    ;;
14544	esac
14545	;;
14546      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14547	case $cc_basename in
14548	  KCC*)
14549	    # KAI C++ Compiler
14550	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14551	    lt_prog_compiler_pic_CXX='-fPIC'
14552	    ;;
14553	  ecpc* )
14554	    # old Intel C++ for x86_64, which still supported -KPIC.
14555	    lt_prog_compiler_wl_CXX='-Wl,'
14556	    lt_prog_compiler_pic_CXX='-KPIC'
14557	    lt_prog_compiler_static_CXX='-static'
14558	    ;;
14559	  icpc* )
14560	    # Intel C++, used to be incompatible with GCC.
14561	    # ICC 10 doesn't accept -KPIC any more.
14562	    lt_prog_compiler_wl_CXX='-Wl,'
14563	    lt_prog_compiler_pic_CXX='-fPIC'
14564	    lt_prog_compiler_static_CXX='-static'
14565	    ;;
14566	  pgCC* | pgcpp*)
14567	    # Portland Group C++ compiler
14568	    lt_prog_compiler_wl_CXX='-Wl,'
14569	    lt_prog_compiler_pic_CXX='-fpic'
14570	    lt_prog_compiler_static_CXX='-Bstatic'
14571	    ;;
14572	  cxx*)
14573	    # Compaq C++
14574	    # Make sure the PIC flag is empty.  It appears that all Alpha
14575	    # Linux and Compaq Tru64 Unix objects are PIC.
14576	    lt_prog_compiler_pic_CXX=
14577	    lt_prog_compiler_static_CXX='-non_shared'
14578	    ;;
14579	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14580	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14581	    lt_prog_compiler_wl_CXX='-Wl,'
14582	    lt_prog_compiler_pic_CXX='-qpic'
14583	    lt_prog_compiler_static_CXX='-qstaticlink'
14584	    ;;
14585	  *)
14586	    case `$CC -V 2>&1 | sed 5q` in
14587	    *Sun\ C*)
14588	      # Sun C++ 5.9
14589	      lt_prog_compiler_pic_CXX='-KPIC'
14590	      lt_prog_compiler_static_CXX='-Bstatic'
14591	      lt_prog_compiler_wl_CXX='-Qoption ld '
14592	      ;;
14593	    esac
14594	    ;;
14595	esac
14596	;;
14597      lynxos*)
14598	;;
14599      m88k*)
14600	;;
14601      mvs*)
14602	case $cc_basename in
14603	  cxx*)
14604	    lt_prog_compiler_pic_CXX='-W c,exportall'
14605	    ;;
14606	  *)
14607	    ;;
14608	esac
14609	;;
14610      netbsd* | netbsdelf*-gnu)
14611	;;
14612      *qnx* | *nto*)
14613        # QNX uses GNU C++, but need to define -shared option too, otherwise
14614        # it will coredump.
14615        lt_prog_compiler_pic_CXX='-fPIC -shared'
14616        ;;
14617      osf3* | osf4* | osf5*)
14618	case $cc_basename in
14619	  KCC*)
14620	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14621	    ;;
14622	  RCC*)
14623	    # Rational C++ 2.4.1
14624	    lt_prog_compiler_pic_CXX='-pic'
14625	    ;;
14626	  cxx*)
14627	    # Digital/Compaq C++
14628	    lt_prog_compiler_wl_CXX='-Wl,'
14629	    # Make sure the PIC flag is empty.  It appears that all Alpha
14630	    # Linux and Compaq Tru64 Unix objects are PIC.
14631	    lt_prog_compiler_pic_CXX=
14632	    lt_prog_compiler_static_CXX='-non_shared'
14633	    ;;
14634	  *)
14635	    ;;
14636	esac
14637	;;
14638      psos*)
14639	;;
14640      solaris*)
14641	case $cc_basename in
14642	  CC* | sunCC*)
14643	    # Sun C++ 4.2, 5.x and Centerline C++
14644	    lt_prog_compiler_pic_CXX='-KPIC'
14645	    lt_prog_compiler_static_CXX='-Bstatic'
14646	    lt_prog_compiler_wl_CXX='-Qoption ld '
14647	    ;;
14648	  gcx*)
14649	    # Green Hills C++ Compiler
14650	    lt_prog_compiler_pic_CXX='-PIC'
14651	    ;;
14652	  *)
14653	    ;;
14654	esac
14655	;;
14656      sunos4*)
14657	case $cc_basename in
14658	  CC*)
14659	    # Sun C++ 4.x
14660	    lt_prog_compiler_pic_CXX='-pic'
14661	    lt_prog_compiler_static_CXX='-Bstatic'
14662	    ;;
14663	  lcc*)
14664	    # Lucid
14665	    lt_prog_compiler_pic_CXX='-pic'
14666	    ;;
14667	  *)
14668	    ;;
14669	esac
14670	;;
14671      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14672	case $cc_basename in
14673	  CC*)
14674	    lt_prog_compiler_wl_CXX='-Wl,'
14675	    lt_prog_compiler_pic_CXX='-KPIC'
14676	    lt_prog_compiler_static_CXX='-Bstatic'
14677	    ;;
14678	esac
14679	;;
14680      tandem*)
14681	case $cc_basename in
14682	  NCC*)
14683	    # NonStop-UX NCC 3.20
14684	    lt_prog_compiler_pic_CXX='-KPIC'
14685	    ;;
14686	  *)
14687	    ;;
14688	esac
14689	;;
14690      vxworks*)
14691	;;
14692      *)
14693	lt_prog_compiler_can_build_shared_CXX=no
14694	;;
14695    esac
14696  fi
14697
14698case $host_os in
14699  # For platforms that do not support PIC, -DPIC is meaningless:
14700  *djgpp*)
14701    lt_prog_compiler_pic_CXX=
14702    ;;
14703  *)
14704    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14705    ;;
14706esac
14707
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14709$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14710if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14711  $as_echo_n "(cached) " >&6
14712else
14713  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14714fi
14715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14716$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14717lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14718
14719#
14720# Check to make sure the PIC flag actually works.
14721#
14722if test -n "$lt_prog_compiler_pic_CXX"; then
14723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14724$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14725if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14726  $as_echo_n "(cached) " >&6
14727else
14728  lt_cv_prog_compiler_pic_works_CXX=no
14729   ac_outfile=conftest.$ac_objext
14730   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14731   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14732   # Insert the option either (1) after the last *FLAGS variable, or
14733   # (2) before a word containing "conftest.", or (3) at the end.
14734   # Note that $ac_compile itself does not contain backslashes and begins
14735   # with a dollar sign (not a hyphen), so the echo should work correctly.
14736   # The option is referenced via a variable to avoid confusing sed.
14737   lt_compile=`echo "$ac_compile" | $SED \
14738   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14739   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14740   -e 's:$: $lt_compiler_flag:'`
14741   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14742   (eval "$lt_compile" 2>conftest.err)
14743   ac_status=$?
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   if (exit $ac_status) && test -s "$ac_outfile"; then
14747     # The compiler can only warn and ignore the option if not recognized
14748     # So say no if there are warnings other than the usual output.
14749     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14750     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14751     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14752       lt_cv_prog_compiler_pic_works_CXX=yes
14753     fi
14754   fi
14755   $RM conftest*
14756
14757fi
14758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14759$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14760
14761if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14762    case $lt_prog_compiler_pic_CXX in
14763     "" | " "*) ;;
14764     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14765     esac
14766else
14767    lt_prog_compiler_pic_CXX=
14768     lt_prog_compiler_can_build_shared_CXX=no
14769fi
14770
14771fi
14772
14773
14774
14775
14776
14777#
14778# Check to make sure the static flag actually works.
14779#
14780wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14782$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14783if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14784  $as_echo_n "(cached) " >&6
14785else
14786  lt_cv_prog_compiler_static_works_CXX=no
14787   save_LDFLAGS=$LDFLAGS
14788   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14789   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14790   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14791     # The linker can only warn and ignore the option if not recognized
14792     # So say no if there are warnings
14793     if test -s conftest.err; then
14794       # Append any errors to the config.log.
14795       cat conftest.err 1>&5
14796       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14797       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798       if diff conftest.exp conftest.er2 >/dev/null; then
14799         lt_cv_prog_compiler_static_works_CXX=yes
14800       fi
14801     else
14802       lt_cv_prog_compiler_static_works_CXX=yes
14803     fi
14804   fi
14805   $RM -r conftest*
14806   LDFLAGS=$save_LDFLAGS
14807
14808fi
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14810$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14811
14812if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14813    :
14814else
14815    lt_prog_compiler_static_CXX=
14816fi
14817
14818
14819
14820
14821    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14822$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14823if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14824  $as_echo_n "(cached) " >&6
14825else
14826  lt_cv_prog_compiler_c_o_CXX=no
14827   $RM -r conftest 2>/dev/null
14828   mkdir conftest
14829   cd conftest
14830   mkdir out
14831   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14832
14833   lt_compiler_flag="-o out/conftest2.$ac_objext"
14834   # Insert the option either (1) after the last *FLAGS variable, or
14835   # (2) before a word containing "conftest.", or (3) at the end.
14836   # Note that $ac_compile itself does not contain backslashes and begins
14837   # with a dollar sign (not a hyphen), so the echo should work correctly.
14838   lt_compile=`echo "$ac_compile" | $SED \
14839   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14840   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14841   -e 's:$: $lt_compiler_flag:'`
14842   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14843   (eval "$lt_compile" 2>out/conftest.err)
14844   ac_status=$?
14845   cat out/conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14848   then
14849     # The compiler can only warn and ignore the option if not recognized
14850     # So say no if there are warnings
14851     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14852     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14853     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14854       lt_cv_prog_compiler_c_o_CXX=yes
14855     fi
14856   fi
14857   chmod u+w . 2>&5
14858   $RM conftest*
14859   # SGI C++ compiler will create directory out/ii_files/ for
14860   # template instantiation
14861   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14862   $RM out/* && rmdir out
14863   cd ..
14864   $RM -r conftest
14865   $RM conftest*
14866
14867fi
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14869$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14870
14871
14872
14873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14875if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14876  $as_echo_n "(cached) " >&6
14877else
14878  lt_cv_prog_compiler_c_o_CXX=no
14879   $RM -r conftest 2>/dev/null
14880   mkdir conftest
14881   cd conftest
14882   mkdir out
14883   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884
14885   lt_compiler_flag="-o out/conftest2.$ac_objext"
14886   # Insert the option either (1) after the last *FLAGS variable, or
14887   # (2) before a word containing "conftest.", or (3) at the end.
14888   # Note that $ac_compile itself does not contain backslashes and begins
14889   # with a dollar sign (not a hyphen), so the echo should work correctly.
14890   lt_compile=`echo "$ac_compile" | $SED \
14891   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14892   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14893   -e 's:$: $lt_compiler_flag:'`
14894   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14895   (eval "$lt_compile" 2>out/conftest.err)
14896   ac_status=$?
14897   cat out/conftest.err >&5
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14900   then
14901     # The compiler can only warn and ignore the option if not recognized
14902     # So say no if there are warnings
14903     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14904     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14905     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14906       lt_cv_prog_compiler_c_o_CXX=yes
14907     fi
14908   fi
14909   chmod u+w . 2>&5
14910   $RM conftest*
14911   # SGI C++ compiler will create directory out/ii_files/ for
14912   # template instantiation
14913   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14914   $RM out/* && rmdir out
14915   cd ..
14916   $RM -r conftest
14917   $RM conftest*
14918
14919fi
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14921$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14922
14923
14924
14925
14926hard_links=nottested
14927if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14928  # do not overwrite the value of need_locks provided by the user
14929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14930$as_echo_n "checking if we can lock with hard links... " >&6; }
14931  hard_links=yes
14932  $RM conftest*
14933  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14934  touch conftest.a
14935  ln conftest.a conftest.b 2>&5 || hard_links=no
14936  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14938$as_echo "$hard_links" >&6; }
14939  if test no = "$hard_links"; then
14940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14941$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14942    need_locks=warn
14943  fi
14944else
14945  need_locks=no
14946fi
14947
14948
14949
14950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14951$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14952
14953  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14955  case $host_os in
14956  aix[4-9]*)
14957    # If we're using GNU nm, then we don't want the "-C" option.
14958    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14959    # Without the "-l" option, or with the "-B" option, AIX nm treats
14960    # weak defined symbols like other global defined symbols, whereas
14961    # GNU nm marks them as "W".
14962    # While the 'weak' keyword is ignored in the Export File, we need
14963    # it in the Import File for the 'aix-soname' feature, so we have
14964    # to replace the "-B" option with "-P" for AIX nm.
14965    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14966      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14967    else
14968      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14969    fi
14970    ;;
14971  pw32*)
14972    export_symbols_cmds_CXX=$ltdll_cmds
14973    ;;
14974  cygwin* | mingw* | cegcc*)
14975    case $cc_basename in
14976    cl*)
14977      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14978      ;;
14979    *)
14980      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'
14981      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14982      ;;
14983    esac
14984    ;;
14985  linux* | k*bsd*-gnu | gnu*)
14986    link_all_deplibs_CXX=no
14987    ;;
14988  *)
14989    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14990    ;;
14991  esac
14992
14993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14994$as_echo "$ld_shlibs_CXX" >&6; }
14995test no = "$ld_shlibs_CXX" && can_build_shared=no
14996
14997with_gnu_ld_CXX=$with_gnu_ld
14998
14999
15000
15001
15002
15003
15004#
15005# Do we need to explicitly link libc?
15006#
15007case "x$archive_cmds_need_lc_CXX" in
15008x|xyes)
15009  # Assume -lc should be added
15010  archive_cmds_need_lc_CXX=yes
15011
15012  if test yes,yes = "$GCC,$enable_shared"; then
15013    case $archive_cmds_CXX in
15014    *'~'*)
15015      # FIXME: we may have to deal with multi-command sequences.
15016      ;;
15017    '$CC '*)
15018      # Test whether the compiler implicitly links with -lc since on some
15019      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15020      # to ld, don't add -lc before -lgcc.
15021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15022$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15023if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15024  $as_echo_n "(cached) " >&6
15025else
15026  $RM conftest*
15027	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15028
15029	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15030  (eval $ac_compile) 2>&5
15031  ac_status=$?
15032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15033  test $ac_status = 0; } 2>conftest.err; then
15034	  soname=conftest
15035	  lib=conftest
15036	  libobjs=conftest.$ac_objext
15037	  deplibs=
15038	  wl=$lt_prog_compiler_wl_CXX
15039	  pic_flag=$lt_prog_compiler_pic_CXX
15040	  compiler_flags=-v
15041	  linker_flags=-v
15042	  verstring=
15043	  output_objdir=.
15044	  libname=conftest
15045	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15046	  allow_undefined_flag_CXX=
15047	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15048  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15049  ac_status=$?
15050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051  test $ac_status = 0; }
15052	  then
15053	    lt_cv_archive_cmds_need_lc_CXX=no
15054	  else
15055	    lt_cv_archive_cmds_need_lc_CXX=yes
15056	  fi
15057	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15058	else
15059	  cat conftest.err 1>&5
15060	fi
15061	$RM conftest*
15062
15063fi
15064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15065$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15066      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15067      ;;
15068    esac
15069  fi
15070  ;;
15071esac
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15135$as_echo_n "checking dynamic linker characteristics... " >&6; }
15136
15137library_names_spec=
15138libname_spec='lib$name'
15139soname_spec=
15140shrext_cmds=.so
15141postinstall_cmds=
15142postuninstall_cmds=
15143finish_cmds=
15144finish_eval=
15145shlibpath_var=
15146shlibpath_overrides_runpath=unknown
15147version_type=none
15148dynamic_linker="$host_os ld.so"
15149sys_lib_dlsearch_path_spec="/lib /usr/lib"
15150need_lib_prefix=unknown
15151hardcode_into_libs=no
15152
15153# when you set need_version to no, make sure it does not cause -set_version
15154# flags to be left without arguments
15155need_version=unknown
15156
15157
15158
15159case $host_os in
15160aix3*)
15161  version_type=linux # correct to gnu/linux during the next big refactor
15162  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15163  shlibpath_var=LIBPATH
15164
15165  # AIX 3 has no versioning support, so we append a major version to the name.
15166  soname_spec='$libname$release$shared_ext$major'
15167  ;;
15168
15169aix[4-9]*)
15170  version_type=linux # correct to gnu/linux during the next big refactor
15171  need_lib_prefix=no
15172  need_version=no
15173  hardcode_into_libs=yes
15174  if test ia64 = "$host_cpu"; then
15175    # AIX 5 supports IA64
15176    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15177    shlibpath_var=LD_LIBRARY_PATH
15178  else
15179    # With GCC up to 2.95.x, collect2 would create an import file
15180    # for dependence libraries.  The import file would start with
15181    # the line '#! .'.  This would cause the generated library to
15182    # depend on '.', always an invalid library.  This was fixed in
15183    # development snapshots of GCC prior to 3.0.
15184    case $host_os in
15185      aix4 | aix4.[01] | aix4.[01].*)
15186      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15187	   echo ' yes '
15188	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15189	:
15190      else
15191	can_build_shared=no
15192      fi
15193      ;;
15194    esac
15195    # Using Import Files as archive members, it is possible to support
15196    # filename-based versioning of shared library archives on AIX. While
15197    # this would work for both with and without runtime linking, it will
15198    # prevent static linking of such archives. So we do filename-based
15199    # shared library versioning with .so extension only, which is used
15200    # when both runtime linking and shared linking is enabled.
15201    # Unfortunately, runtime linking may impact performance, so we do
15202    # not want this to be the default eventually. Also, we use the
15203    # versioned .so libs for executables only if there is the -brtl
15204    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15205    # To allow for filename-based versioning support, we need to create
15206    # libNAME.so.V as an archive file, containing:
15207    # *) an Import File, referring to the versioned filename of the
15208    #    archive as well as the shared archive member, telling the
15209    #    bitwidth (32 or 64) of that shared object, and providing the
15210    #    list of exported symbols of that shared object, eventually
15211    #    decorated with the 'weak' keyword
15212    # *) the shared object with the F_LOADONLY flag set, to really avoid
15213    #    it being seen by the linker.
15214    # At run time we better use the real file rather than another symlink,
15215    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15216
15217    case $with_aix_soname,$aix_use_runtimelinking in
15218    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15219    # soname into executable. Probably we can add versioning support to
15220    # collect2, so additional links can be useful in future.
15221    aix,yes) # traditional libtool
15222      dynamic_linker='AIX unversionable lib.so'
15223      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15224      # instead of lib<name>.a to let people know that these are not
15225      # typical AIX shared libraries.
15226      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15227      ;;
15228    aix,no) # traditional AIX only
15229      dynamic_linker='AIX lib.a(lib.so.V)'
15230      # We preserve .a as extension for shared libraries through AIX4.2
15231      # and later when we are not doing run time linking.
15232      library_names_spec='$libname$release.a $libname.a'
15233      soname_spec='$libname$release$shared_ext$major'
15234      ;;
15235    svr4,*) # full svr4 only
15236      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15237      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15238      # We do not specify a path in Import Files, so LIBPATH fires.
15239      shlibpath_overrides_runpath=yes
15240      ;;
15241    *,yes) # both, prefer svr4
15242      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15243      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15244      # unpreferred sharedlib libNAME.a needs extra handling
15245      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15246      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15247      # We do not specify a path in Import Files, so LIBPATH fires.
15248      shlibpath_overrides_runpath=yes
15249      ;;
15250    *,no) # both, prefer aix
15251      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15252      library_names_spec='$libname$release.a $libname.a'
15253      soname_spec='$libname$release$shared_ext$major'
15254      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15255      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15256      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15257      ;;
15258    esac
15259    shlibpath_var=LIBPATH
15260  fi
15261  ;;
15262
15263amigaos*)
15264  case $host_cpu in
15265  powerpc)
15266    # Since July 2007 AmigaOS4 officially supports .so libraries.
15267    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15268    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15269    ;;
15270  m68k)
15271    library_names_spec='$libname.ixlibrary $libname.a'
15272    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15273    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15274    ;;
15275  esac
15276  ;;
15277
15278beos*)
15279  library_names_spec='$libname$shared_ext'
15280  dynamic_linker="$host_os ld.so"
15281  shlibpath_var=LIBRARY_PATH
15282  ;;
15283
15284bsdi[45]*)
15285  version_type=linux # correct to gnu/linux during the next big refactor
15286  need_version=no
15287  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15288  soname_spec='$libname$release$shared_ext$major'
15289  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15290  shlibpath_var=LD_LIBRARY_PATH
15291  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15292  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15293  # the default ld.so.conf also contains /usr/contrib/lib and
15294  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15295  # libtool to hard-code these into programs
15296  ;;
15297
15298cygwin* | mingw* | pw32* | cegcc*)
15299  version_type=windows
15300  shrext_cmds=.dll
15301  need_version=no
15302  need_lib_prefix=no
15303
15304  case $GCC,$cc_basename in
15305  yes,*)
15306    # gcc
15307    library_names_spec='$libname.dll.a'
15308    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15309    postinstall_cmds='base_file=`basename \$file`~
15310      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15311      dldir=$destdir/`dirname \$dlpath`~
15312      test -d \$dldir || mkdir -p \$dldir~
15313      $install_prog $dir/$dlname \$dldir/$dlname~
15314      chmod a+x \$dldir/$dlname~
15315      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15316        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15317      fi'
15318    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15319      dlpath=$dir/\$dldll~
15320       $RM \$dlpath'
15321    shlibpath_overrides_runpath=yes
15322
15323    case $host_os in
15324    cygwin*)
15325      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15326      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15327
15328      ;;
15329    mingw* | cegcc*)
15330      # MinGW DLLs use traditional 'lib' prefix
15331      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15332      ;;
15333    pw32*)
15334      # pw32 DLLs use 'pw' prefix rather than 'lib'
15335      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15336      ;;
15337    esac
15338    dynamic_linker='Win32 ld.exe'
15339    ;;
15340
15341  *,cl*)
15342    # Native MSVC
15343    libname_spec='$name'
15344    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15345    library_names_spec='$libname.dll.lib'
15346
15347    case $build_os in
15348    mingw*)
15349      sys_lib_search_path_spec=
15350      lt_save_ifs=$IFS
15351      IFS=';'
15352      for lt_path in $LIB
15353      do
15354        IFS=$lt_save_ifs
15355        # Let DOS variable expansion print the short 8.3 style file name.
15356        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15357        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15358      done
15359      IFS=$lt_save_ifs
15360      # Convert to MSYS style.
15361      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15362      ;;
15363    cygwin*)
15364      # Convert to unix form, then to dos form, then back to unix form
15365      # but this time dos style (no spaces!) so that the unix form looks
15366      # like /cygdrive/c/PROGRA~1:/cygdr...
15367      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15368      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15369      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15370      ;;
15371    *)
15372      sys_lib_search_path_spec=$LIB
15373      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15374        # It is most probably a Windows format PATH.
15375        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15376      else
15377        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15378      fi
15379      # FIXME: find the short name or the path components, as spaces are
15380      # common. (e.g. "Program Files" -> "PROGRA~1")
15381      ;;
15382    esac
15383
15384    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15385    postinstall_cmds='base_file=`basename \$file`~
15386      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15387      dldir=$destdir/`dirname \$dlpath`~
15388      test -d \$dldir || mkdir -p \$dldir~
15389      $install_prog $dir/$dlname \$dldir/$dlname'
15390    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15391      dlpath=$dir/\$dldll~
15392       $RM \$dlpath'
15393    shlibpath_overrides_runpath=yes
15394    dynamic_linker='Win32 link.exe'
15395    ;;
15396
15397  *)
15398    # Assume MSVC wrapper
15399    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15400    dynamic_linker='Win32 ld.exe'
15401    ;;
15402  esac
15403  # FIXME: first we should search . and the directory the executable is in
15404  shlibpath_var=PATH
15405  ;;
15406
15407darwin* | rhapsody*)
15408  dynamic_linker="$host_os dyld"
15409  version_type=darwin
15410  need_lib_prefix=no
15411  need_version=no
15412  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15413  soname_spec='$libname$release$major$shared_ext'
15414  shlibpath_overrides_runpath=yes
15415  shlibpath_var=DYLD_LIBRARY_PATH
15416  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15417
15418  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15419  ;;
15420
15421dgux*)
15422  version_type=linux # correct to gnu/linux during the next big refactor
15423  need_lib_prefix=no
15424  need_version=no
15425  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15426  soname_spec='$libname$release$shared_ext$major'
15427  shlibpath_var=LD_LIBRARY_PATH
15428  ;;
15429
15430freebsd* | dragonfly*)
15431  # DragonFly does not have aout.  When/if they implement a new
15432  # versioning mechanism, adjust this.
15433  if test -x /usr/bin/objformat; then
15434    objformat=`/usr/bin/objformat`
15435  else
15436    case $host_os in
15437    freebsd[23].*) objformat=aout ;;
15438    *) objformat=elf ;;
15439    esac
15440  fi
15441  version_type=freebsd-$objformat
15442  case $version_type in
15443    freebsd-elf*)
15444      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15445      soname_spec='$libname$release$shared_ext$major'
15446      need_version=no
15447      need_lib_prefix=no
15448      ;;
15449    freebsd-*)
15450      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15451      need_version=yes
15452      ;;
15453  esac
15454  shlibpath_var=LD_LIBRARY_PATH
15455  case $host_os in
15456  freebsd2.*)
15457    shlibpath_overrides_runpath=yes
15458    ;;
15459  freebsd3.[01]* | freebsdelf3.[01]*)
15460    shlibpath_overrides_runpath=yes
15461    hardcode_into_libs=yes
15462    ;;
15463  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15464  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15465    shlibpath_overrides_runpath=no
15466    hardcode_into_libs=yes
15467    ;;
15468  *) # from 4.6 on, and DragonFly
15469    shlibpath_overrides_runpath=yes
15470    hardcode_into_libs=yes
15471    ;;
15472  esac
15473  ;;
15474
15475haiku*)
15476  version_type=linux # correct to gnu/linux during the next big refactor
15477  need_lib_prefix=no
15478  need_version=no
15479  dynamic_linker="$host_os runtime_loader"
15480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15481  soname_spec='$libname$release$shared_ext$major'
15482  shlibpath_var=LIBRARY_PATH
15483  shlibpath_overrides_runpath=no
15484  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15485  hardcode_into_libs=yes
15486  ;;
15487
15488hpux9* | hpux10* | hpux11*)
15489  # Give a soname corresponding to the major version so that dld.sl refuses to
15490  # link against other versions.
15491  version_type=sunos
15492  need_lib_prefix=no
15493  need_version=no
15494  case $host_cpu in
15495  ia64*)
15496    shrext_cmds='.so'
15497    hardcode_into_libs=yes
15498    dynamic_linker="$host_os dld.so"
15499    shlibpath_var=LD_LIBRARY_PATH
15500    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15501    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15502    soname_spec='$libname$release$shared_ext$major'
15503    if test 32 = "$HPUX_IA64_MODE"; then
15504      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15505      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15506    else
15507      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15508      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15509    fi
15510    ;;
15511  hppa*64*)
15512    shrext_cmds='.sl'
15513    hardcode_into_libs=yes
15514    dynamic_linker="$host_os dld.sl"
15515    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15516    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15517    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518    soname_spec='$libname$release$shared_ext$major'
15519    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15520    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15521    ;;
15522  *)
15523    shrext_cmds='.sl'
15524    dynamic_linker="$host_os dld.sl"
15525    shlibpath_var=SHLIB_PATH
15526    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15527    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15528    soname_spec='$libname$release$shared_ext$major'
15529    ;;
15530  esac
15531  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15532  postinstall_cmds='chmod 555 $lib'
15533  # or fails outright, so override atomically:
15534  install_override_mode=555
15535  ;;
15536
15537interix[3-9]*)
15538  version_type=linux # correct to gnu/linux during the next big refactor
15539  need_lib_prefix=no
15540  need_version=no
15541  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15542  soname_spec='$libname$release$shared_ext$major'
15543  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15544  shlibpath_var=LD_LIBRARY_PATH
15545  shlibpath_overrides_runpath=no
15546  hardcode_into_libs=yes
15547  ;;
15548
15549irix5* | irix6* | nonstopux*)
15550  case $host_os in
15551    nonstopux*) version_type=nonstopux ;;
15552    *)
15553	if test yes = "$lt_cv_prog_gnu_ld"; then
15554		version_type=linux # correct to gnu/linux during the next big refactor
15555	else
15556		version_type=irix
15557	fi ;;
15558  esac
15559  need_lib_prefix=no
15560  need_version=no
15561  soname_spec='$libname$release$shared_ext$major'
15562  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15563  case $host_os in
15564  irix5* | nonstopux*)
15565    libsuff= shlibsuff=
15566    ;;
15567  *)
15568    case $LD in # libtool.m4 will add one of these switches to LD
15569    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15570      libsuff= shlibsuff= libmagic=32-bit;;
15571    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15572      libsuff=32 shlibsuff=N32 libmagic=N32;;
15573    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15574      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15575    *) libsuff= shlibsuff= libmagic=never-match;;
15576    esac
15577    ;;
15578  esac
15579  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15580  shlibpath_overrides_runpath=no
15581  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15582  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15583  hardcode_into_libs=yes
15584  ;;
15585
15586# No shared lib support for Linux oldld, aout, or coff.
15587linux*oldld* | linux*aout* | linux*coff*)
15588  dynamic_linker=no
15589  ;;
15590
15591linux*android*)
15592  version_type=none # Android doesn't support versioned libraries.
15593  need_lib_prefix=no
15594  need_version=no
15595  library_names_spec='$libname$release$shared_ext'
15596  soname_spec='$libname$release$shared_ext'
15597  finish_cmds=
15598  shlibpath_var=LD_LIBRARY_PATH
15599  shlibpath_overrides_runpath=yes
15600
15601  # This implies no fast_install, which is unacceptable.
15602  # Some rework will be needed to allow for fast_install
15603  # before this can be enabled.
15604  hardcode_into_libs=yes
15605
15606  dynamic_linker='Android linker'
15607  # Don't embed -rpath directories since the linker doesn't support them.
15608  hardcode_libdir_flag_spec_CXX='-L$libdir'
15609  ;;
15610
15611# This must be glibc/ELF.
15612linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15613  version_type=linux # correct to gnu/linux during the next big refactor
15614  need_lib_prefix=no
15615  need_version=no
15616  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15617  soname_spec='$libname$release$shared_ext$major'
15618  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15619  shlibpath_var=LD_LIBRARY_PATH
15620  shlibpath_overrides_runpath=no
15621
15622  # Some binutils ld are patched to set DT_RUNPATH
15623  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15624  $as_echo_n "(cached) " >&6
15625else
15626  lt_cv_shlibpath_overrides_runpath=no
15627    save_LDFLAGS=$LDFLAGS
15628    save_libdir=$libdir
15629    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15630	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15631    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h.  */
15633
15634int
15635main ()
15636{
15637
15638  ;
15639  return 0;
15640}
15641_ACEOF
15642if ac_fn_cxx_try_link "$LINENO"; then :
15643  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15644  lt_cv_shlibpath_overrides_runpath=yes
15645fi
15646fi
15647rm -f core conftest.err conftest.$ac_objext \
15648    conftest$ac_exeext conftest.$ac_ext
15649    LDFLAGS=$save_LDFLAGS
15650    libdir=$save_libdir
15651
15652fi
15653
15654  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15655
15656  # This implies no fast_install, which is unacceptable.
15657  # Some rework will be needed to allow for fast_install
15658  # before this can be enabled.
15659  hardcode_into_libs=yes
15660
15661  # Ideally, we could use ldconfig to report *all* directores which are
15662  # searched for libraries, however this is still not possible.  Aside from not
15663  # being certain /sbin/ldconfig is available, command
15664  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15665  # even though it is searched at run-time.  Try to do the best guess by
15666  # appending ld.so.conf contents (and includes) to the search path.
15667  if test -f /etc/ld.so.conf; then
15668    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' ' '`
15669    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15670  fi
15671
15672  # We used to test for /lib/ld.so.1 and disable shared libraries on
15673  # powerpc, because MkLinux only supported shared libraries with the
15674  # GNU dynamic linker.  Since this was broken with cross compilers,
15675  # most powerpc-linux boxes support dynamic linking these days and
15676  # people can always --disable-shared, the test was removed, and we
15677  # assume the GNU/Linux dynamic linker is in use.
15678  dynamic_linker='GNU/Linux ld.so'
15679  ;;
15680
15681netbsdelf*-gnu)
15682  version_type=linux
15683  need_lib_prefix=no
15684  need_version=no
15685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686  soname_spec='${libname}${release}${shared_ext}$major'
15687  shlibpath_var=LD_LIBRARY_PATH
15688  shlibpath_overrides_runpath=no
15689  hardcode_into_libs=yes
15690  dynamic_linker='NetBSD ld.elf_so'
15691  ;;
15692
15693netbsd*)
15694  version_type=sunos
15695  need_lib_prefix=no
15696  need_version=no
15697  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15699    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700    dynamic_linker='NetBSD (a.out) ld.so'
15701  else
15702    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15703    soname_spec='$libname$release$shared_ext$major'
15704    dynamic_linker='NetBSD ld.elf_so'
15705  fi
15706  shlibpath_var=LD_LIBRARY_PATH
15707  shlibpath_overrides_runpath=yes
15708  hardcode_into_libs=yes
15709  ;;
15710
15711newsos6)
15712  version_type=linux # correct to gnu/linux during the next big refactor
15713  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15714  shlibpath_var=LD_LIBRARY_PATH
15715  shlibpath_overrides_runpath=yes
15716  ;;
15717
15718*nto* | *qnx*)
15719  version_type=qnx
15720  need_lib_prefix=no
15721  need_version=no
15722  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15723  soname_spec='$libname$release$shared_ext$major'
15724  shlibpath_var=LD_LIBRARY_PATH
15725  shlibpath_overrides_runpath=no
15726  hardcode_into_libs=yes
15727  dynamic_linker='ldqnx.so'
15728  ;;
15729
15730openbsd* | bitrig*)
15731  version_type=sunos
15732  sys_lib_dlsearch_path_spec=/usr/lib
15733  need_lib_prefix=no
15734  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15735    need_version=no
15736  else
15737    need_version=yes
15738  fi
15739  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15740  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15741  shlibpath_var=LD_LIBRARY_PATH
15742  shlibpath_overrides_runpath=yes
15743  ;;
15744
15745os2*)
15746  libname_spec='$name'
15747  version_type=windows
15748  shrext_cmds=.dll
15749  need_version=no
15750  need_lib_prefix=no
15751  # OS/2 can only load a DLL with a base name of 8 characters or less.
15752  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15753    v=$($ECHO $release$versuffix | tr -d .-);
15754    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15755    $ECHO $n$v`$shared_ext'
15756  library_names_spec='${libname}_dll.$libext'
15757  dynamic_linker='OS/2 ld.exe'
15758  shlibpath_var=BEGINLIBPATH
15759  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15760  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15761  postinstall_cmds='base_file=`basename \$file`~
15762    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15763    dldir=$destdir/`dirname \$dlpath`~
15764    test -d \$dldir || mkdir -p \$dldir~
15765    $install_prog $dir/$dlname \$dldir/$dlname~
15766    chmod a+x \$dldir/$dlname~
15767    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15768      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15769    fi'
15770  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15771    dlpath=$dir/\$dldll~
15772    $RM \$dlpath'
15773  ;;
15774
15775osf3* | osf4* | osf5*)
15776  version_type=osf
15777  need_lib_prefix=no
15778  need_version=no
15779  soname_spec='$libname$release$shared_ext$major'
15780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15781  shlibpath_var=LD_LIBRARY_PATH
15782  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15783  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15784  ;;
15785
15786rdos*)
15787  dynamic_linker=no
15788  ;;
15789
15790solaris*)
15791  version_type=linux # correct to gnu/linux during the next big refactor
15792  need_lib_prefix=no
15793  need_version=no
15794  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15795  soname_spec='$libname$release$shared_ext$major'
15796  shlibpath_var=LD_LIBRARY_PATH
15797  shlibpath_overrides_runpath=yes
15798  hardcode_into_libs=yes
15799  # ldd complains unless libraries are executable
15800  postinstall_cmds='chmod +x $lib'
15801  ;;
15802
15803sunos4*)
15804  version_type=sunos
15805  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15806  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15807  shlibpath_var=LD_LIBRARY_PATH
15808  shlibpath_overrides_runpath=yes
15809  if test yes = "$with_gnu_ld"; then
15810    need_lib_prefix=no
15811  fi
15812  need_version=yes
15813  ;;
15814
15815sysv4 | sysv4.3*)
15816  version_type=linux # correct to gnu/linux during the next big refactor
15817  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15818  soname_spec='$libname$release$shared_ext$major'
15819  shlibpath_var=LD_LIBRARY_PATH
15820  case $host_vendor in
15821    sni)
15822      shlibpath_overrides_runpath=no
15823      need_lib_prefix=no
15824      runpath_var=LD_RUN_PATH
15825      ;;
15826    siemens)
15827      need_lib_prefix=no
15828      ;;
15829    motorola)
15830      need_lib_prefix=no
15831      need_version=no
15832      shlibpath_overrides_runpath=no
15833      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15834      ;;
15835  esac
15836  ;;
15837
15838sysv4*MP*)
15839  if test -d /usr/nec; then
15840    version_type=linux # correct to gnu/linux during the next big refactor
15841    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15842    soname_spec='$libname$shared_ext.$major'
15843    shlibpath_var=LD_LIBRARY_PATH
15844  fi
15845  ;;
15846
15847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15848  version_type=sco
15849  need_lib_prefix=no
15850  need_version=no
15851  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15852  soname_spec='$libname$release$shared_ext$major'
15853  shlibpath_var=LD_LIBRARY_PATH
15854  shlibpath_overrides_runpath=yes
15855  hardcode_into_libs=yes
15856  if test yes = "$with_gnu_ld"; then
15857    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15858  else
15859    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15860    case $host_os in
15861      sco3.2v5*)
15862        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15863	;;
15864    esac
15865  fi
15866  sys_lib_dlsearch_path_spec='/usr/lib'
15867  ;;
15868
15869tpf*)
15870  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15871  version_type=linux # correct to gnu/linux during the next big refactor
15872  need_lib_prefix=no
15873  need_version=no
15874  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15875  shlibpath_var=LD_LIBRARY_PATH
15876  shlibpath_overrides_runpath=no
15877  hardcode_into_libs=yes
15878  ;;
15879
15880uts4*)
15881  version_type=linux # correct to gnu/linux during the next big refactor
15882  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15883  soname_spec='$libname$release$shared_ext$major'
15884  shlibpath_var=LD_LIBRARY_PATH
15885  ;;
15886
15887*)
15888  dynamic_linker=no
15889  ;;
15890esac
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15892$as_echo "$dynamic_linker" >&6; }
15893test no = "$dynamic_linker" && can_build_shared=no
15894
15895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15896if test yes = "$GCC"; then
15897  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15898fi
15899
15900if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15901  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15902fi
15903
15904if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15905  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15906fi
15907
15908# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15909configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15910
15911# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15912func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15913
15914# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15915configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15957$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15958hardcode_action_CXX=
15959if test -n "$hardcode_libdir_flag_spec_CXX" ||
15960   test -n "$runpath_var_CXX" ||
15961   test yes = "$hardcode_automatic_CXX"; then
15962
15963  # We can hardcode non-existent directories.
15964  if test no != "$hardcode_direct_CXX" &&
15965     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15966     # have to relink, otherwise we might link with an installed library
15967     # when we should be linking with a yet-to-be-installed one
15968     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15969     test no != "$hardcode_minus_L_CXX"; then
15970    # Linking always hardcodes the temporary library directory.
15971    hardcode_action_CXX=relink
15972  else
15973    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15974    hardcode_action_CXX=immediate
15975  fi
15976else
15977  # We cannot hardcode anything, or else we can only hardcode existing
15978  # directories.
15979  hardcode_action_CXX=unsupported
15980fi
15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15982$as_echo "$hardcode_action_CXX" >&6; }
15983
15984if test relink = "$hardcode_action_CXX" ||
15985   test yes = "$inherit_rpath_CXX"; then
15986  # Fast installation is not supported
15987  enable_fast_install=no
15988elif test yes = "$shlibpath_overrides_runpath" ||
15989     test no = "$enable_shared"; then
15990  # Fast installation is not necessary
15991  enable_fast_install=needless
15992fi
15993
15994
15995
15996
15997
15998
15999
16000  fi # test -n "$compiler"
16001
16002  CC=$lt_save_CC
16003  CFLAGS=$lt_save_CFLAGS
16004  LDCXX=$LD
16005  LD=$lt_save_LD
16006  GCC=$lt_save_GCC
16007  with_gnu_ld=$lt_save_with_gnu_ld
16008  lt_cv_path_LDCXX=$lt_cv_path_LD
16009  lt_cv_path_LD=$lt_save_path_LD
16010  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16011  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16012fi # test yes != "$_lt_caught_CXX_error"
16013
16014ac_ext=c
16015ac_cpp='$CPP $CPPFLAGS'
16016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16018ac_compiler_gnu=$ac_cv_c_compiler_gnu
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034        ac_config_commands="$ac_config_commands libtool"
16035
16036
16037
16038
16039# Only expand once:
16040
16041
16042
16043
16044
16045ac_ext=c
16046ac_cpp='$CPP $CPPFLAGS'
16047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16049ac_compiler_gnu=$ac_cv_c_compiler_gnu
16050
16051ax_pthread_ok=no
16052
16053# We used to check for pthread.h first, but this fails if pthread.h
16054# requires special compiler flags (e.g. on True64 or Sequent).
16055# It gets checked for in the link test anyway.
16056
16057# First of all, check if the user has set any of the PTHREAD_LIBS,
16058# etcetera environment variables, and if threads linking works using
16059# them:
16060if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16061        save_CFLAGS="$CFLAGS"
16062        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16063        save_LIBS="$LIBS"
16064        LIBS="$PTHREAD_LIBS $LIBS"
16065        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16066$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16067        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068/* end confdefs.h.  */
16069
16070/* Override any GCC internal prototype to avoid an error.
16071   Use char because int might match the return type of a GCC
16072   builtin and then its argument prototype would still apply.  */
16073#ifdef __cplusplus
16074extern "C"
16075#endif
16076char pthread_join ();
16077int
16078main ()
16079{
16080return pthread_join ();
16081  ;
16082  return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"; then :
16086  ax_pthread_ok=yes
16087fi
16088rm -f core conftest.err conftest.$ac_objext \
16089    conftest$ac_exeext conftest.$ac_ext
16090        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16091$as_echo "$ax_pthread_ok" >&6; }
16092        if test x"$ax_pthread_ok" = xno; then
16093                PTHREAD_LIBS=""
16094                PTHREAD_CFLAGS=""
16095        fi
16096        LIBS="$save_LIBS"
16097        CFLAGS="$save_CFLAGS"
16098fi
16099
16100# We must check for the threads library under a number of different
16101# names; the ordering is very important because some systems
16102# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16103# libraries is broken (non-POSIX).
16104
16105# Create a list of thread flags to try.  Items starting with a "-" are
16106# C compiler flags, and other items are library names, except for "none"
16107# which indicates that we try without any flags at all, and "pthread-config"
16108# which is a program returning the flags for the Pth emulation library.
16109
16110ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16111
16112# The ordering *is* (sometimes) important.  Some notes on the
16113# individual items follow:
16114
16115# pthreads: AIX (must check this before -lpthread)
16116# none: in case threads are in libc; should be tried before -Kthread and
16117#       other compiler flags to prevent continual compiler warnings
16118# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16119# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16120# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16121# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16122# -pthreads: Solaris/gcc
16123# -mthreads: Mingw32/gcc, Lynx/gcc
16124# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16125#      doesn't hurt to check since this sometimes defines pthreads too;
16126#      also defines -D_REENTRANT)
16127#      ... -mt is also the pthreads flag for HP/aCC
16128# pthread: Linux, etcetera
16129# --thread-safe: KAI C++
16130# pthread-config: use pthread-config program (for GNU Pth library)
16131
16132case ${host_os} in
16133        solaris*)
16134
16135        # On Solaris (at least, for some versions), libc contains stubbed
16136        # (non-functional) versions of the pthreads routines, so link-based
16137        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16138        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16139        # a function called by this macro, so we could check for that, but
16140        # who knows whether they'll stub that too in a future libc.)  So,
16141        # we'll just look for -pthreads and -lpthread first:
16142
16143        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16144        ;;
16145
16146        darwin*)
16147        ax_pthread_flags="-pthread $ax_pthread_flags"
16148        ;;
16149esac
16150
16151# Clang doesn't consider unrecognized options an error unless we specify
16152# -Werror. We throw in some extra Clang-specific options to ensure that
16153# this doesn't happen for GCC, which also accepts -Werror.
16154
16155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16156$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16157save_CFLAGS="$CFLAGS"
16158ax_pthread_extra_flags="-Werror"
16159CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161/* end confdefs.h.  */
16162int foo(void);
16163int
16164main ()
16165{
16166foo()
16167  ;
16168  return 0;
16169}
16170_ACEOF
16171if ac_fn_c_try_compile "$LINENO"; then :
16172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16173$as_echo "yes" >&6; }
16174else
16175  ax_pthread_extra_flags=
16176                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16177$as_echo "no" >&6; }
16178fi
16179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180CFLAGS="$save_CFLAGS"
16181
16182if test x"$ax_pthread_ok" = xno; then
16183for flag in $ax_pthread_flags; do
16184
16185        case $flag in
16186                none)
16187                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16188$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16189                ;;
16190
16191                -*)
16192                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16193$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16194                PTHREAD_CFLAGS="$flag"
16195                ;;
16196
16197                pthread-config)
16198                # Extract the first word of "pthread-config", so it can be a program name with args.
16199set dummy pthread-config; ac_word=$2
16200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16201$as_echo_n "checking for $ac_word... " >&6; }
16202if ${ac_cv_prog_ax_pthread_config+:} false; then :
16203  $as_echo_n "(cached) " >&6
16204else
16205  if test -n "$ax_pthread_config"; then
16206  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16207else
16208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209for as_dir in $PATH
16210do
16211  IFS=$as_save_IFS
16212  test -z "$as_dir" && as_dir=.
16213    for ac_exec_ext in '' $ac_executable_extensions; do
16214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16215    ac_cv_prog_ax_pthread_config="yes"
16216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16217    break 2
16218  fi
16219done
16220  done
16221IFS=$as_save_IFS
16222
16223  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16224fi
16225fi
16226ax_pthread_config=$ac_cv_prog_ax_pthread_config
16227if test -n "$ax_pthread_config"; then
16228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16229$as_echo "$ax_pthread_config" >&6; }
16230else
16231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16232$as_echo "no" >&6; }
16233fi
16234
16235
16236                if test x"$ax_pthread_config" = xno; then continue; fi
16237                PTHREAD_CFLAGS="`pthread-config --cflags`"
16238                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16239                ;;
16240
16241                *)
16242                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16243$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16244                PTHREAD_LIBS="-l$flag"
16245                ;;
16246        esac
16247
16248        save_LIBS="$LIBS"
16249        save_CFLAGS="$CFLAGS"
16250        LIBS="$PTHREAD_LIBS $LIBS"
16251        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16252
16253        # Check for various functions.  We must include pthread.h,
16254        # since some functions may be macros.  (On the Sequent, we
16255        # need a special flag -Kthread to make this header compile.)
16256        # We check for pthread_join because it is in -lpthread on IRIX
16257        # while pthread_create is in libc.  We check for pthread_attr_init
16258        # due to DEC craziness with -lpthreads.  We check for
16259        # pthread_cleanup_push because it is one of the few pthread
16260        # functions on Solaris that doesn't have a non-functional libc stub.
16261        # We try pthread_create on general principles.
16262        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263/* end confdefs.h.  */
16264#include <pthread.h>
16265                        static void routine(void *a) { a = 0; }
16266                        static void *start_routine(void *a) { return a; }
16267int
16268main ()
16269{
16270pthread_t th; pthread_attr_t attr;
16271                        pthread_create(&th, 0, start_routine, 0);
16272                        pthread_join(th, 0);
16273                        pthread_attr_init(&attr);
16274                        pthread_cleanup_push(routine, 0);
16275                        pthread_cleanup_pop(0) /* ; */
16276  ;
16277  return 0;
16278}
16279_ACEOF
16280if ac_fn_c_try_link "$LINENO"; then :
16281  ax_pthread_ok=yes
16282fi
16283rm -f core conftest.err conftest.$ac_objext \
16284    conftest$ac_exeext conftest.$ac_ext
16285
16286        LIBS="$save_LIBS"
16287        CFLAGS="$save_CFLAGS"
16288
16289        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16290$as_echo "$ax_pthread_ok" >&6; }
16291        if test "x$ax_pthread_ok" = xyes; then
16292                break;
16293        fi
16294
16295        PTHREAD_LIBS=""
16296        PTHREAD_CFLAGS=""
16297done
16298fi
16299
16300# Various other checks:
16301if test "x$ax_pthread_ok" = xyes; then
16302        save_LIBS="$LIBS"
16303        LIBS="$PTHREAD_LIBS $LIBS"
16304        save_CFLAGS="$CFLAGS"
16305        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16306
16307        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16308        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16309$as_echo_n "checking for joinable pthread attribute... " >&6; }
16310        attr_name=unknown
16311        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16312            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313/* end confdefs.h.  */
16314#include <pthread.h>
16315int
16316main ()
16317{
16318int attr = $attr; return attr /* ; */
16319  ;
16320  return 0;
16321}
16322_ACEOF
16323if ac_fn_c_try_link "$LINENO"; then :
16324  attr_name=$attr; break
16325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327    conftest$ac_exeext conftest.$ac_ext
16328        done
16329        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16330$as_echo "$attr_name" >&6; }
16331        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16332
16333cat >>confdefs.h <<_ACEOF
16334#define PTHREAD_CREATE_JOINABLE $attr_name
16335_ACEOF
16336
16337        fi
16338
16339        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16340$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16341        flag=no
16342        case ${host_os} in
16343            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16344            osf* | hpux*) flag="-D_REENTRANT";;
16345            solaris*)
16346            if test "$GCC" = "yes"; then
16347                flag="-D_REENTRANT"
16348            else
16349                # TODO: What about Clang on Solaris?
16350                flag="-mt -D_REENTRANT"
16351            fi
16352            ;;
16353        esac
16354        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16355$as_echo "$flag" >&6; }
16356        if test "x$flag" != xno; then
16357            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16358        fi
16359
16360        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16361$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16362if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16363  $as_echo_n "(cached) " >&6
16364else
16365
16366                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367/* end confdefs.h.  */
16368#include <pthread.h>
16369int
16370main ()
16371{
16372int i = PTHREAD_PRIO_INHERIT;
16373  ;
16374  return 0;
16375}
16376_ACEOF
16377if ac_fn_c_try_link "$LINENO"; then :
16378  ax_cv_PTHREAD_PRIO_INHERIT=yes
16379else
16380  ax_cv_PTHREAD_PRIO_INHERIT=no
16381fi
16382rm -f core conftest.err conftest.$ac_objext \
16383    conftest$ac_exeext conftest.$ac_ext
16384
16385fi
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16387$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16388        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16389
16390$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16391
16392fi
16393
16394        LIBS="$save_LIBS"
16395        CFLAGS="$save_CFLAGS"
16396
16397        # More AIX lossage: compile with *_r variant
16398        if test "x$GCC" != xyes; then
16399            case $host_os in
16400                aix*)
16401                case "x/$CC" in #(
16402  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16403    #handle absolute path differently from PATH based program lookup
16404                   case "x$CC" in #(
16405  x/*) :
16406    if as_fn_executable_p ${CC}_r; then :
16407  PTHREAD_CC="${CC}_r"
16408fi ;; #(
16409  *) :
16410    for ac_prog in ${CC}_r
16411do
16412  # Extract the first word of "$ac_prog", so it can be a program name with args.
16413set dummy $ac_prog; ac_word=$2
16414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16415$as_echo_n "checking for $ac_word... " >&6; }
16416if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16417  $as_echo_n "(cached) " >&6
16418else
16419  if test -n "$PTHREAD_CC"; then
16420  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16421else
16422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16423for as_dir in $PATH
16424do
16425  IFS=$as_save_IFS
16426  test -z "$as_dir" && as_dir=.
16427    for ac_exec_ext in '' $ac_executable_extensions; do
16428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16429    ac_cv_prog_PTHREAD_CC="$ac_prog"
16430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16431    break 2
16432  fi
16433done
16434  done
16435IFS=$as_save_IFS
16436
16437fi
16438fi
16439PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16440if test -n "$PTHREAD_CC"; then
16441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16442$as_echo "$PTHREAD_CC" >&6; }
16443else
16444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445$as_echo "no" >&6; }
16446fi
16447
16448
16449  test -n "$PTHREAD_CC" && break
16450done
16451test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16452 ;;
16453esac ;; #(
16454  *) :
16455     ;;
16456esac
16457                ;;
16458            esac
16459        fi
16460fi
16461
16462test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16463
16464
16465
16466
16467
16468# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16469if test x"$ax_pthread_ok" = xyes; then
16470
16471$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16472
16473        :
16474else
16475        ax_pthread_ok=no
16476
16477fi
16478ac_ext=c
16479ac_cpp='$CPP $CPPFLAGS'
16480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16482ac_compiler_gnu=$ac_cv_c_compiler_gnu
16483
16484
16485
16486
16487
16488	# allow to override gcov location
16489
16490# Check whether --with-gcov was given.
16491if test "${with_gcov+set}" = set; then :
16492  withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
16493else
16494  _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
16495fi
16496
16497
16498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
16499$as_echo_n "checking whether to build with code coverage support... " >&6; }
16500	# Check whether --enable-code-coverage was given.
16501if test "${enable_code_coverage+set}" = set; then :
16502  enableval=$enable_code_coverage;
16503else
16504  enable_code_coverage=no
16505fi
16506
16507
16508	 if test x$enable_code_coverage = xyes; then
16509  CODE_COVERAGE_ENABLED_TRUE=
16510  CODE_COVERAGE_ENABLED_FALSE='#'
16511else
16512  CODE_COVERAGE_ENABLED_TRUE='#'
16513  CODE_COVERAGE_ENABLED_FALSE=
16514fi
16515
16516	CODE_COVERAGE_ENABLED=$enable_code_coverage
16517
16518	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
16519$as_echo "$enable_code_coverage" >&6; }
16520
16521	if  test "$enable_code_coverage" = "yes" ; then :
16522
16523		# check for gcov
16524		if test -n "$ac_tool_prefix"; then
16525  # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16526set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16528$as_echo_n "checking for $ac_word... " >&6; }
16529if ${ac_cv_prog_GCOV+:} false; then :
16530  $as_echo_n "(cached) " >&6
16531else
16532  if test -n "$GCOV"; then
16533  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
16534else
16535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536for as_dir in $PATH
16537do
16538  IFS=$as_save_IFS
16539  test -z "$as_dir" && as_dir=.
16540    for ac_exec_ext in '' $ac_executable_extensions; do
16541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16542    ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16544    break 2
16545  fi
16546done
16547  done
16548IFS=$as_save_IFS
16549
16550fi
16551fi
16552GCOV=$ac_cv_prog_GCOV
16553if test -n "$GCOV"; then
16554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
16555$as_echo "$GCOV" >&6; }
16556else
16557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16558$as_echo "no" >&6; }
16559fi
16560
16561
16562fi
16563if test -z "$ac_cv_prog_GCOV"; then
16564  ac_ct_GCOV=$GCOV
16565  # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16566set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16568$as_echo_n "checking for $ac_word... " >&6; }
16569if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
16570  $as_echo_n "(cached) " >&6
16571else
16572  if test -n "$ac_ct_GCOV"; then
16573  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
16574else
16575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576for as_dir in $PATH
16577do
16578  IFS=$as_save_IFS
16579  test -z "$as_dir" && as_dir=.
16580    for ac_exec_ext in '' $ac_executable_extensions; do
16581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582    ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16584    break 2
16585  fi
16586done
16587  done
16588IFS=$as_save_IFS
16589
16590fi
16591fi
16592ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
16593if test -n "$ac_ct_GCOV"; then
16594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
16595$as_echo "$ac_ct_GCOV" >&6; }
16596else
16597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598$as_echo "no" >&6; }
16599fi
16600
16601  if test "x$ac_ct_GCOV" = x; then
16602    GCOV=":"
16603  else
16604    case $cross_compiling:$ac_tool_warned in
16605yes:)
16606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16608ac_tool_warned=yes ;;
16609esac
16610    GCOV=$ac_ct_GCOV
16611  fi
16612else
16613  GCOV="$ac_cv_prog_GCOV"
16614fi
16615
16616		if test "X$GCOV" = "X:"; then :
16617  as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
16618fi
16619
16620
16621				if  test "$GCC" = "no" ; then :
16622
16623			as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
16624
16625fi
16626
16627		# List of supported lcov versions.
16628		lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.13"
16629
16630		# Extract the first word of "lcov", so it can be a program name with args.
16631set dummy lcov; ac_word=$2
16632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16633$as_echo_n "checking for $ac_word... " >&6; }
16634if ${ac_cv_prog_LCOV+:} false; then :
16635  $as_echo_n "(cached) " >&6
16636else
16637  if test -n "$LCOV"; then
16638  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
16639else
16640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16641for as_dir in $PATH
16642do
16643  IFS=$as_save_IFS
16644  test -z "$as_dir" && as_dir=.
16645    for ac_exec_ext in '' $ac_executable_extensions; do
16646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16647    ac_cv_prog_LCOV="lcov"
16648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16649    break 2
16650  fi
16651done
16652  done
16653IFS=$as_save_IFS
16654
16655fi
16656fi
16657LCOV=$ac_cv_prog_LCOV
16658if test -n "$LCOV"; then
16659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16660$as_echo "$LCOV" >&6; }
16661else
16662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16663$as_echo "no" >&6; }
16664fi
16665
16666
16667		# Extract the first word of "genhtml", so it can be a program name with args.
16668set dummy genhtml; ac_word=$2
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16670$as_echo_n "checking for $ac_word... " >&6; }
16671if ${ac_cv_prog_GENHTML+:} false; then :
16672  $as_echo_n "(cached) " >&6
16673else
16674  if test -n "$GENHTML"; then
16675  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
16676else
16677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16678for as_dir in $PATH
16679do
16680  IFS=$as_save_IFS
16681  test -z "$as_dir" && as_dir=.
16682    for ac_exec_ext in '' $ac_executable_extensions; do
16683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16684    ac_cv_prog_GENHTML="genhtml"
16685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16686    break 2
16687  fi
16688done
16689  done
16690IFS=$as_save_IFS
16691
16692fi
16693fi
16694GENHTML=$ac_cv_prog_GENHTML
16695if test -n "$GENHTML"; then
16696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16697$as_echo "$GENHTML" >&6; }
16698else
16699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700$as_echo "no" >&6; }
16701fi
16702
16703
16704
16705		if  test "$LCOV" ; then :
16706
16707			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
16708$as_echo_n "checking for lcov version... " >&6; }
16709if ${ax_cv_lcov_version+:} false; then :
16710  $as_echo_n "(cached) " >&6
16711else
16712
16713				ax_cv_lcov_version=invalid
16714				lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
16715				for lcov_check_version in $lcov_version_list; do
16716					if test "$lcov_version" = "$lcov_check_version"; then
16717						ax_cv_lcov_version="$lcov_check_version (ok)"
16718					fi
16719				done
16720
16721fi
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
16723$as_echo "$ax_cv_lcov_version" >&6; }
16724
16725else
16726
16727			lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
16728			as_fn_error $? "$lcov_msg" "$LINENO" 5
16729
16730fi
16731
16732		case $ax_cv_lcov_version in
16733			""|invalid)
16734				lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
16735				as_fn_error $? "$lcov_msg" "$LINENO" 5
16736				LCOV="exit 0;"
16737			;;
16738		esac
16739
16740		if  test -z "$GENHTML" ; then :
16741
16742			as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
16743
16744fi
16745
16746				CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16747		CODE_COVERAGE_LDFLAGS="-lgcov"
16748
16749
16750
16751
16752CODE_COVERAGE_RULES='
16753# Code coverage
16754#
16755# Optional:
16756#  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
16757#    (Default: $(top_builddir))
16758#  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
16759#    by lcov for code coverage. (Default:
16760#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
16761#  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
16762#    reports to be created. (Default:
16763#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
16764#  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
16765#  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
16766#    (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16767#  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
16768#    (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16769#  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
16770#    instance. (Default: empty)
16771#  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
16772#
16773# The generated report will be titled using the $(PACKAGE_NAME) and
16774# $(PACKAGE_VERSION). In order to add the current git hash to the title,
16775# use the git-version-gen script, available online.
16776
16777# Optional variables
16778CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
16779CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
16780CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
16781CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
16782CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16783CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16784CODE_COVERAGE_GENHTML_OPTIONS ?=
16785CODE_COVERAGE_IGNORE_PATTERN ?=
16786
16787code_coverage_quiet = $(code_coverage_quiet_$(V))
16788code_coverage_quiet_ =
16789code_coverage_quiet_0 = --quiet
16790
16791# Use recursive makes in order to ignore errors during check
16792check-code-coverage:
16793	-$(MAKE) $(AM_MAKEFLAGS) -k check
16794	$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
16795
16796# Capture code coverage data
16797code-coverage-capture: code-coverage-capture-hook
16798	$(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
16799	$(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
16800	-@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
16801	LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
16802	@echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
16803
16804# Hook rule executed before code-coverage-capture, overridable by the user
16805code-coverage-capture-hook:
16806
16807clean: code-coverage-clean
16808code-coverage-clean:
16809	-$(LCOV) --directory $(top_builddir) -z
16810	-rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16811	-find . -name "*.gcda" -o -name "*.gcov" -delete
16812
16813GITIGNOREFILES ?=
16814GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16815
16816DISTCHECK_CONFIGURE_FLAGS ?=
16817DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
16818
16819.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
16820'
16821
16822
16823fi
16824
16825
16826
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
16828$as_echo_n "checking whether user namespaces are supported... " >&6; }
16829if ${ax_cv_user_namespace+:} false; then :
16830  $as_echo_n "(cached) " >&6
16831else
16832
16833  ac_ext=c
16834ac_cpp='$CPP $CPPFLAGS'
16835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16837ac_compiler_gnu=$ac_cv_c_compiler_gnu
16838
16839  if test "$cross_compiling" = yes; then :
16840  ax_cv_user_namespace=no
16841else
16842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843/* end confdefs.h.  */
16844
16845#define _GNU_SOURCE
16846#include <fcntl.h>
16847#include <sched.h>
16848#include <signal.h>
16849#include <stdio.h>
16850#include <string.h>
16851#include <sys/types.h>
16852#include <sys/wait.h>
16853
16854int userfn(void *d) {
16855  usleep(100000);  /* synchronize by sleep */
16856  return (getuid() != 0);
16857}
16858char userst[1024*1024];
16859int main() {
16860  char buffer[1024];
16861  int rc, status, fd;
16862  pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16863  if (child < 0) return 1;
16864
16865  sprintf(buffer, "/proc/%d/uid_map", child);
16866  fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16867  sprintf(buffer, "0 %d 1\n", getuid());
16868  write(fd, buffer, strlen(buffer));
16869  close(fd);
16870
16871  rc = waitpid(child, &status, 0);
16872  if (rc <= 0) return 1;
16873  if (!WIFEXITED(status)) return 1;
16874  return WEXITSTATUS(status);
16875}
16876
16877_ACEOF
16878if ac_fn_c_try_run "$LINENO"; then :
16879  ax_cv_user_namespace=yes
16880else
16881  ax_cv_user_namespace=no
16882fi
16883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16884  conftest.$ac_objext conftest.beam conftest.$ac_ext
16885fi
16886
16887 ac_ext=c
16888ac_cpp='$CPP $CPPFLAGS'
16889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16891ac_compiler_gnu=$ac_cv_c_compiler_gnu
16892
16893
16894fi
16895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
16896$as_echo "$ax_cv_user_namespace" >&6; }
16897 if test "$ax_cv_user_namespace" = yes; then
16898
16899$as_echo "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
16900
16901 fi
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
16904$as_echo_n "checking whether UTS namespaces are supported... " >&6; }
16905if ${ax_cv_uts_namespace+:} false; then :
16906  $as_echo_n "(cached) " >&6
16907else
16908
16909  ac_ext=c
16910ac_cpp='$CPP $CPPFLAGS'
16911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913ac_compiler_gnu=$ac_cv_c_compiler_gnu
16914
16915  if test "$cross_compiling" = yes; then :
16916  ax_cv_uts_namespace=no
16917else
16918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919/* end confdefs.h.  */
16920
16921#define _GNU_SOURCE
16922#include <sched.h>
16923#include <signal.h>
16924#include <stdio.h>
16925#include <string.h>
16926#include <fcntl.h>
16927#include <unistd.h>
16928#include <sys/types.h>
16929#include <sys/wait.h>
16930
16931int utsfn(void *d) {
16932  char buffer[1024];
16933  const char *name = "autoconftest";
16934  int rc = sethostname(name, strlen(name));
16935  if (rc != 0) return 1;
16936  gethostname(buffer, 1024);
16937  return (strcmp(buffer, name) != 0);
16938}
16939
16940char st2[1024*1024];
16941int fn(void *d) {
16942  pid_t child;
16943  int rc, status;
16944  usleep(100000);  /* synchronize by sleep */
16945  if (getuid() != 0) return 1;
16946  child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
16947  if (child < 0) return 1;
16948  rc = waitpid(child, &status, 0);
16949  if (rc <= 0) return 1;
16950  if (!WIFEXITED(status)) return 1;
16951  return WEXITSTATUS(status);
16952}
16953char st[1024*1024];
16954int main() {
16955  char buffer[1024];
16956  int rc, status, fd;
16957  pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16958  if (child < 0) return 1;
16959
16960  sprintf(buffer, "/proc/%d/uid_map", child);
16961  fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16962  sprintf(buffer, "0 %d 1\n", getuid());
16963  write(fd, buffer, strlen(buffer));
16964  close(fd);
16965
16966  rc = waitpid(child, &status, 0);
16967  if (rc <= 0) return 1;
16968  if (!WIFEXITED(status)) return 1;
16969  return WEXITSTATUS(status);
16970}
16971
16972
16973_ACEOF
16974if ac_fn_c_try_run "$LINENO"; then :
16975  ax_cv_uts_namespace=yes
16976else
16977  ax_cv_uts_namespace=no
16978fi
16979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16980  conftest.$ac_objext conftest.beam conftest.$ac_ext
16981fi
16982
16983 ac_ext=c
16984ac_cpp='$CPP $CPPFLAGS'
16985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16987ac_compiler_gnu=$ac_cv_c_compiler_gnu
16988
16989
16990fi
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
16992$as_echo "$ax_cv_uts_namespace" >&6; }
16993 if test "$ax_cv_uts_namespace" = yes; then
16994
16995$as_echo "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
16996
16997 fi
16998
16999
17000for ac_header in netdb.h netinet/tcp.h
17001do :
17002  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17003ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17004if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17005  cat >>confdefs.h <<_ACEOF
17006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17007_ACEOF
17008
17009fi
17010
17011done
17012
17013ac_config_headers="$ac_config_headers config.h"
17014
17015ac_config_files="$ac_config_files Makefile"
17016
17017cat >confcache <<\_ACEOF
17018# This file is a shell script that caches the results of configure
17019# tests run on this system so they can be shared between configure
17020# scripts and configure runs, see configure's option --config-cache.
17021# It is not useful on other systems.  If it contains results you don't
17022# want to keep, you may remove or edit it.
17023#
17024# config.status only pays attention to the cache file if you give it
17025# the --recheck option to rerun configure.
17026#
17027# `ac_cv_env_foo' variables (set or unset) will be overridden when
17028# loading this file, other *unset* `ac_cv_foo' will be assigned the
17029# following values.
17030
17031_ACEOF
17032
17033# The following way of writing the cache mishandles newlines in values,
17034# but we know of no workaround that is simple, portable, and efficient.
17035# So, we kill variables containing newlines.
17036# Ultrix sh set writes to stderr and can't be redirected directly,
17037# and sets the high bit in the cache file unless we assign to the vars.
17038(
17039  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17040    eval ac_val=\$$ac_var
17041    case $ac_val in #(
17042    *${as_nl}*)
17043      case $ac_var in #(
17044      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17046      esac
17047      case $ac_var in #(
17048      _ | IFS | as_nl) ;; #(
17049      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17050      *) { eval $ac_var=; unset $ac_var;} ;;
17051      esac ;;
17052    esac
17053  done
17054
17055  (set) 2>&1 |
17056    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17057    *${as_nl}ac_space=\ *)
17058      # `set' does not quote correctly, so add quotes: double-quote
17059      # substitution turns \\\\ into \\, and sed turns \\ into \.
17060      sed -n \
17061	"s/'/'\\\\''/g;
17062	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17063      ;; #(
17064    *)
17065      # `set' quotes correctly as required by POSIX, so do not add quotes.
17066      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17067      ;;
17068    esac |
17069    sort
17070) |
17071  sed '
17072     /^ac_cv_env_/b end
17073     t clear
17074     :clear
17075     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17076     t end
17077     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17078     :end' >>confcache
17079if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17080  if test -w "$cache_file"; then
17081    if test "x$cache_file" != "x/dev/null"; then
17082      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17083$as_echo "$as_me: updating cache $cache_file" >&6;}
17084      if test ! -f "$cache_file" || test -h "$cache_file"; then
17085	cat confcache >"$cache_file"
17086      else
17087        case $cache_file in #(
17088        */* | ?:*)
17089	  mv -f confcache "$cache_file"$$ &&
17090	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17091        *)
17092	  mv -f confcache "$cache_file" ;;
17093	esac
17094      fi
17095    fi
17096  else
17097    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17098$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17099  fi
17100fi
17101rm -f confcache
17102
17103test "x$prefix" = xNONE && prefix=$ac_default_prefix
17104# Let make expand exec_prefix.
17105test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17106
17107DEFS=-DHAVE_CONFIG_H
17108
17109ac_libobjs=
17110ac_ltlibobjs=
17111U=
17112for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17113  # 1. Remove the extension, and $U if already installed.
17114  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17115  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17116  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17117  #    will be set to the directory where LIBOBJS objects are built.
17118  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17119  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17120done
17121LIBOBJS=$ac_libobjs
17122
17123LTLIBOBJS=$ac_ltlibobjs
17124
17125
17126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17127$as_echo_n "checking that generated files are newer than configure... " >&6; }
17128   if test -n "$am_sleep_pid"; then
17129     # Hide warnings about reused PIDs.
17130     wait $am_sleep_pid 2>/dev/null
17131   fi
17132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17133$as_echo "done" >&6; }
17134 if test -n "$EXEEXT"; then
17135  am__EXEEXT_TRUE=
17136  am__EXEEXT_FALSE='#'
17137else
17138  am__EXEEXT_TRUE='#'
17139  am__EXEEXT_FALSE=
17140fi
17141
17142if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17143  as_fn_error $? "conditional \"AMDEP\" was never defined.
17144Usually this means the macro was only invoked conditionally." "$LINENO" 5
17145fi
17146if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17147  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17148Usually this means the macro was only invoked conditionally." "$LINENO" 5
17149fi
17150if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17151  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17152Usually this means the macro was only invoked conditionally." "$LINENO" 5
17153fi
17154if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
17155  as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
17156Usually this means the macro was only invoked conditionally." "$LINENO" 5
17157fi
17158
17159: "${CONFIG_STATUS=./config.status}"
17160ac_write_fail=0
17161ac_clean_files_save=$ac_clean_files
17162ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17163{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17164$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17165as_write_fail=0
17166cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17167#! $SHELL
17168# Generated by $as_me.
17169# Run this file to recreate the current configuration.
17170# Compiler output produced by configure, useful for debugging
17171# configure, is in config.log if it exists.
17172
17173debug=false
17174ac_cs_recheck=false
17175ac_cs_silent=false
17176
17177SHELL=\${CONFIG_SHELL-$SHELL}
17178export SHELL
17179_ASEOF
17180cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17181## -------------------- ##
17182## M4sh Initialization. ##
17183## -------------------- ##
17184
17185# Be more Bourne compatible
17186DUALCASE=1; export DUALCASE # for MKS sh
17187if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17188  emulate sh
17189  NULLCMD=:
17190  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17191  # is contrary to our usage.  Disable this feature.
17192  alias -g '${1+"$@"}'='"$@"'
17193  setopt NO_GLOB_SUBST
17194else
17195  case `(set -o) 2>/dev/null` in #(
17196  *posix*) :
17197    set -o posix ;; #(
17198  *) :
17199     ;;
17200esac
17201fi
17202
17203
17204as_nl='
17205'
17206export as_nl
17207# Printing a long string crashes Solaris 7 /usr/bin/printf.
17208as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17209as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17210as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17211# Prefer a ksh shell builtin over an external printf program on Solaris,
17212# but without wasting forks for bash or zsh.
17213if test -z "$BASH_VERSION$ZSH_VERSION" \
17214    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17215  as_echo='print -r --'
17216  as_echo_n='print -rn --'
17217elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17218  as_echo='printf %s\n'
17219  as_echo_n='printf %s'
17220else
17221  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17222    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17223    as_echo_n='/usr/ucb/echo -n'
17224  else
17225    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17226    as_echo_n_body='eval
17227      arg=$1;
17228      case $arg in #(
17229      *"$as_nl"*)
17230	expr "X$arg" : "X\\(.*\\)$as_nl";
17231	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17232      esac;
17233      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17234    '
17235    export as_echo_n_body
17236    as_echo_n='sh -c $as_echo_n_body as_echo'
17237  fi
17238  export as_echo_body
17239  as_echo='sh -c $as_echo_body as_echo'
17240fi
17241
17242# The user is always right.
17243if test "${PATH_SEPARATOR+set}" != set; then
17244  PATH_SEPARATOR=:
17245  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17246    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17247      PATH_SEPARATOR=';'
17248  }
17249fi
17250
17251
17252# IFS
17253# We need space, tab and new line, in precisely that order.  Quoting is
17254# there to prevent editors from complaining about space-tab.
17255# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17256# splitting by setting IFS to empty value.)
17257IFS=" ""	$as_nl"
17258
17259# Find who we are.  Look in the path if we contain no directory separator.
17260as_myself=
17261case $0 in #((
17262  *[\\/]* ) as_myself=$0 ;;
17263  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17264for as_dir in $PATH
17265do
17266  IFS=$as_save_IFS
17267  test -z "$as_dir" && as_dir=.
17268    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17269  done
17270IFS=$as_save_IFS
17271
17272     ;;
17273esac
17274# We did not find ourselves, most probably we were run as `sh COMMAND'
17275# in which case we are not to be found in the path.
17276if test "x$as_myself" = x; then
17277  as_myself=$0
17278fi
17279if test ! -f "$as_myself"; then
17280  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17281  exit 1
17282fi
17283
17284# Unset variables that we do not need and which cause bugs (e.g. in
17285# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17286# suppresses any "Segmentation fault" message there.  '((' could
17287# trigger a bug in pdksh 5.2.14.
17288for as_var in BASH_ENV ENV MAIL MAILPATH
17289do eval test x\${$as_var+set} = xset \
17290  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17291done
17292PS1='$ '
17293PS2='> '
17294PS4='+ '
17295
17296# NLS nuisances.
17297LC_ALL=C
17298export LC_ALL
17299LANGUAGE=C
17300export LANGUAGE
17301
17302# CDPATH.
17303(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17304
17305
17306# as_fn_error STATUS ERROR [LINENO LOG_FD]
17307# ----------------------------------------
17308# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17309# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17310# script with STATUS, using 1 if that was 0.
17311as_fn_error ()
17312{
17313  as_status=$1; test $as_status -eq 0 && as_status=1
17314  if test "$4"; then
17315    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17316    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17317  fi
17318  $as_echo "$as_me: error: $2" >&2
17319  as_fn_exit $as_status
17320} # as_fn_error
17321
17322
17323# as_fn_set_status STATUS
17324# -----------------------
17325# Set $? to STATUS, without forking.
17326as_fn_set_status ()
17327{
17328  return $1
17329} # as_fn_set_status
17330
17331# as_fn_exit STATUS
17332# -----------------
17333# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17334as_fn_exit ()
17335{
17336  set +e
17337  as_fn_set_status $1
17338  exit $1
17339} # as_fn_exit
17340
17341# as_fn_unset VAR
17342# ---------------
17343# Portably unset VAR.
17344as_fn_unset ()
17345{
17346  { eval $1=; unset $1;}
17347}
17348as_unset=as_fn_unset
17349# as_fn_append VAR VALUE
17350# ----------------------
17351# Append the text in VALUE to the end of the definition contained in VAR. Take
17352# advantage of any shell optimizations that allow amortized linear growth over
17353# repeated appends, instead of the typical quadratic growth present in naive
17354# implementations.
17355if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17356  eval 'as_fn_append ()
17357  {
17358    eval $1+=\$2
17359  }'
17360else
17361  as_fn_append ()
17362  {
17363    eval $1=\$$1\$2
17364  }
17365fi # as_fn_append
17366
17367# as_fn_arith ARG...
17368# ------------------
17369# Perform arithmetic evaluation on the ARGs, and store the result in the
17370# global $as_val. Take advantage of shells that can avoid forks. The arguments
17371# must be portable across $(()) and expr.
17372if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17373  eval 'as_fn_arith ()
17374  {
17375    as_val=$(( $* ))
17376  }'
17377else
17378  as_fn_arith ()
17379  {
17380    as_val=`expr "$@" || test $? -eq 1`
17381  }
17382fi # as_fn_arith
17383
17384
17385if expr a : '\(a\)' >/dev/null 2>&1 &&
17386   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17387  as_expr=expr
17388else
17389  as_expr=false
17390fi
17391
17392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17393  as_basename=basename
17394else
17395  as_basename=false
17396fi
17397
17398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17399  as_dirname=dirname
17400else
17401  as_dirname=false
17402fi
17403
17404as_me=`$as_basename -- "$0" ||
17405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17406	 X"$0" : 'X\(//\)$' \| \
17407	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17408$as_echo X/"$0" |
17409    sed '/^.*\/\([^/][^/]*\)\/*$/{
17410	    s//\1/
17411	    q
17412	  }
17413	  /^X\/\(\/\/\)$/{
17414	    s//\1/
17415	    q
17416	  }
17417	  /^X\/\(\/\).*/{
17418	    s//\1/
17419	    q
17420	  }
17421	  s/.*/./; q'`
17422
17423# Avoid depending upon Character Ranges.
17424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17427as_cr_digits='0123456789'
17428as_cr_alnum=$as_cr_Letters$as_cr_digits
17429
17430ECHO_C= ECHO_N= ECHO_T=
17431case `echo -n x` in #(((((
17432-n*)
17433  case `echo 'xy\c'` in
17434  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17435  xy)  ECHO_C='\c';;
17436  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17437       ECHO_T='	';;
17438  esac;;
17439*)
17440  ECHO_N='-n';;
17441esac
17442
17443rm -f conf$$ conf$$.exe conf$$.file
17444if test -d conf$$.dir; then
17445  rm -f conf$$.dir/conf$$.file
17446else
17447  rm -f conf$$.dir
17448  mkdir conf$$.dir 2>/dev/null
17449fi
17450if (echo >conf$$.file) 2>/dev/null; then
17451  if ln -s conf$$.file conf$$ 2>/dev/null; then
17452    as_ln_s='ln -s'
17453    # ... but there are two gotchas:
17454    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17455    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17456    # In both cases, we have to default to `cp -pR'.
17457    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17458      as_ln_s='cp -pR'
17459  elif ln conf$$.file conf$$ 2>/dev/null; then
17460    as_ln_s=ln
17461  else
17462    as_ln_s='cp -pR'
17463  fi
17464else
17465  as_ln_s='cp -pR'
17466fi
17467rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17468rmdir conf$$.dir 2>/dev/null
17469
17470
17471# as_fn_mkdir_p
17472# -------------
17473# Create "$as_dir" as a directory, including parents if necessary.
17474as_fn_mkdir_p ()
17475{
17476
17477  case $as_dir in #(
17478  -*) as_dir=./$as_dir;;
17479  esac
17480  test -d "$as_dir" || eval $as_mkdir_p || {
17481    as_dirs=
17482    while :; do
17483      case $as_dir in #(
17484      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17485      *) as_qdir=$as_dir;;
17486      esac
17487      as_dirs="'$as_qdir' $as_dirs"
17488      as_dir=`$as_dirname -- "$as_dir" ||
17489$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17490	 X"$as_dir" : 'X\(//\)[^/]' \| \
17491	 X"$as_dir" : 'X\(//\)$' \| \
17492	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17493$as_echo X"$as_dir" |
17494    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17495	    s//\1/
17496	    q
17497	  }
17498	  /^X\(\/\/\)[^/].*/{
17499	    s//\1/
17500	    q
17501	  }
17502	  /^X\(\/\/\)$/{
17503	    s//\1/
17504	    q
17505	  }
17506	  /^X\(\/\).*/{
17507	    s//\1/
17508	    q
17509	  }
17510	  s/.*/./; q'`
17511      test -d "$as_dir" && break
17512    done
17513    test -z "$as_dirs" || eval "mkdir $as_dirs"
17514  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17515
17516
17517} # as_fn_mkdir_p
17518if mkdir -p . 2>/dev/null; then
17519  as_mkdir_p='mkdir -p "$as_dir"'
17520else
17521  test -d ./-p && rmdir ./-p
17522  as_mkdir_p=false
17523fi
17524
17525
17526# as_fn_executable_p FILE
17527# -----------------------
17528# Test if FILE is an executable regular file.
17529as_fn_executable_p ()
17530{
17531  test -f "$1" && test -x "$1"
17532} # as_fn_executable_p
17533as_test_x='test -x'
17534as_executable_p=as_fn_executable_p
17535
17536# Sed expression to map a string onto a valid CPP name.
17537as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17538
17539# Sed expression to map a string onto a valid variable name.
17540as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17541
17542
17543exec 6>&1
17544## ----------------------------------- ##
17545## Main body of $CONFIG_STATUS script. ##
17546## ----------------------------------- ##
17547_ASEOF
17548test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17549
17550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551# Save the log message, to keep $0 and so on meaningful, and to
17552# report actual input values of CONFIG_FILES etc. instead of their
17553# values after options handling.
17554ac_log="
17555This file was extended by c-ares-test $as_me -, which was
17556generated by GNU Autoconf 2.69.  Invocation command line was
17557
17558  CONFIG_FILES    = $CONFIG_FILES
17559  CONFIG_HEADERS  = $CONFIG_HEADERS
17560  CONFIG_LINKS    = $CONFIG_LINKS
17561  CONFIG_COMMANDS = $CONFIG_COMMANDS
17562  $ $0 $@
17563
17564on `(hostname || uname -n) 2>/dev/null | sed 1q`
17565"
17566
17567_ACEOF
17568
17569case $ac_config_files in *"
17570"*) set x $ac_config_files; shift; ac_config_files=$*;;
17571esac
17572
17573case $ac_config_headers in *"
17574"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17575esac
17576
17577
17578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17579# Files that config.status was made for.
17580config_files="$ac_config_files"
17581config_headers="$ac_config_headers"
17582config_commands="$ac_config_commands"
17583
17584_ACEOF
17585
17586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17587ac_cs_usage="\
17588\`$as_me' instantiates files and other configuration actions
17589from templates according to the current configuration.  Unless the files
17590and actions are specified as TAGs, all are instantiated by default.
17591
17592Usage: $0 [OPTION]... [TAG]...
17593
17594  -h, --help       print this help, then exit
17595  -V, --version    print version number and configuration settings, then exit
17596      --config     print configuration, then exit
17597  -q, --quiet, --silent
17598                   do not print progress messages
17599  -d, --debug      don't remove temporary files
17600      --recheck    update $as_me by reconfiguring in the same conditions
17601      --file=FILE[:TEMPLATE]
17602                   instantiate the configuration file FILE
17603      --header=FILE[:TEMPLATE]
17604                   instantiate the configuration header FILE
17605
17606Configuration files:
17607$config_files
17608
17609Configuration headers:
17610$config_headers
17611
17612Configuration commands:
17613$config_commands
17614
17615Report bugs to <->."
17616
17617_ACEOF
17618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17619ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17620ac_cs_version="\\
17621c-ares-test config.status -
17622configured by $0, generated by GNU Autoconf 2.69,
17623  with options \\"\$ac_cs_config\\"
17624
17625Copyright (C) 2012 Free Software Foundation, Inc.
17626This config.status script is free software; the Free Software Foundation
17627gives unlimited permission to copy, distribute and modify it."
17628
17629ac_pwd='$ac_pwd'
17630srcdir='$srcdir'
17631INSTALL='$INSTALL'
17632MKDIR_P='$MKDIR_P'
17633AWK='$AWK'
17634test -n "\$AWK" || AWK=awk
17635_ACEOF
17636
17637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17638# The default lists apply if the user does not specify any file.
17639ac_need_defaults=:
17640while test $# != 0
17641do
17642  case $1 in
17643  --*=?*)
17644    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17645    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17646    ac_shift=:
17647    ;;
17648  --*=)
17649    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17650    ac_optarg=
17651    ac_shift=:
17652    ;;
17653  *)
17654    ac_option=$1
17655    ac_optarg=$2
17656    ac_shift=shift
17657    ;;
17658  esac
17659
17660  case $ac_option in
17661  # Handling of the options.
17662  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17663    ac_cs_recheck=: ;;
17664  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17665    $as_echo "$ac_cs_version"; exit ;;
17666  --config | --confi | --conf | --con | --co | --c )
17667    $as_echo "$ac_cs_config"; exit ;;
17668  --debug | --debu | --deb | --de | --d | -d )
17669    debug=: ;;
17670  --file | --fil | --fi | --f )
17671    $ac_shift
17672    case $ac_optarg in
17673    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17674    '') as_fn_error $? "missing file argument" ;;
17675    esac
17676    as_fn_append CONFIG_FILES " '$ac_optarg'"
17677    ac_need_defaults=false;;
17678  --header | --heade | --head | --hea )
17679    $ac_shift
17680    case $ac_optarg in
17681    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17682    esac
17683    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17684    ac_need_defaults=false;;
17685  --he | --h)
17686    # Conflict between --help and --header
17687    as_fn_error $? "ambiguous option: \`$1'
17688Try \`$0 --help' for more information.";;
17689  --help | --hel | -h )
17690    $as_echo "$ac_cs_usage"; exit ;;
17691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17692  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17693    ac_cs_silent=: ;;
17694
17695  # This is an error.
17696  -*) as_fn_error $? "unrecognized option: \`$1'
17697Try \`$0 --help' for more information." ;;
17698
17699  *) as_fn_append ac_config_targets " $1"
17700     ac_need_defaults=false ;;
17701
17702  esac
17703  shift
17704done
17705
17706ac_configure_extra_args=
17707
17708if $ac_cs_silent; then
17709  exec 6>/dev/null
17710  ac_configure_extra_args="$ac_configure_extra_args --silent"
17711fi
17712
17713_ACEOF
17714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17715if \$ac_cs_recheck; then
17716  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17717  shift
17718  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17719  CONFIG_SHELL='$SHELL'
17720  export CONFIG_SHELL
17721  exec "\$@"
17722fi
17723
17724_ACEOF
17725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17726exec 5>>config.log
17727{
17728  echo
17729  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17730## Running $as_me. ##
17731_ASBOX
17732  $as_echo "$ac_log"
17733} >&5
17734
17735_ACEOF
17736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17737#
17738# INIT-COMMANDS
17739#
17740AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17741
17742
17743# The HP-UX ksh and POSIX shell print the target directory to stdout
17744# if CDPATH is set.
17745(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17746
17747sed_quote_subst='$sed_quote_subst'
17748double_quote_subst='$double_quote_subst'
17749delay_variable_subst='$delay_variable_subst'
17750macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17751macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17752enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17753enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17754pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17755enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17756shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17757SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17758ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17759PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17760host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17761host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17762host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17763build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17764build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17765build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17766SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17767Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17768GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17769EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17770FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17771LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17772NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17773LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17774max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17775ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17776exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17777lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17778lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17779lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17780lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17781lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17782reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17783reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17784OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17785deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17786file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17787file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17788want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17789DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17790sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17791AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17792AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17793archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17794STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17795RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17796old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17797old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17798old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17799lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17800CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17801CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17802compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17803GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17804lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17805lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17806lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17807lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17808lt_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"`'
17809lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17810nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17811lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17812lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17813objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17814MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17815lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17816lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17817lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17818lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17819lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17820need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17821MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17822DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17823NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17824LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17825OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17826OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17827libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17828shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17829extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17830archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17831enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17832export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17833whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17834compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17835old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17836old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17837archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17838archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17839module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17840module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17841with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17842allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17843no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17844hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17845hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17846hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17847hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17848hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17849hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17850hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17851inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17852link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17853always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17854export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17855exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17856include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17857prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17858postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17859file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17860variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17861need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17862need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17863version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17864runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17865shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17866shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17867libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17868library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17869soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17870install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17871postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17872postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17873finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17874finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17875hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17876sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17877configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17878configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17879hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17880enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17881enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17882enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17883old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17884striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17885compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17886predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17887postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17888predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17889postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17890compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17891LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17892reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17893reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17894old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17895compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17896GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17897lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17898lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17899lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17900lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17901lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17902archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17903enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17904export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17905whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17906compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17907old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17908old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17909archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17910archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17911module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17912module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17913with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17914allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17915no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17916hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17917hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17918hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17919hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17920hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17921hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17922hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17923inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17924link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17925always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17926export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17928include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17929prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17930postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17931file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17932hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17933compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17934predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17935postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17936predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17937postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17938compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17939
17940LTCC='$LTCC'
17941LTCFLAGS='$LTCFLAGS'
17942compiler='$compiler_DEFAULT'
17943
17944# A function that is used when there is no print builtin or printf.
17945func_fallback_echo ()
17946{
17947  eval 'cat <<_LTECHO_EOF
17948\$1
17949_LTECHO_EOF'
17950}
17951
17952# Quote evaled strings.
17953for var in SHELL \
17954ECHO \
17955PATH_SEPARATOR \
17956SED \
17957GREP \
17958EGREP \
17959FGREP \
17960LD \
17961NM \
17962LN_S \
17963lt_SP2NL \
17964lt_NL2SP \
17965reload_flag \
17966OBJDUMP \
17967deplibs_check_method \
17968file_magic_cmd \
17969file_magic_glob \
17970want_nocaseglob \
17971DLLTOOL \
17972sharedlib_from_linklib_cmd \
17973AR \
17974AR_FLAGS \
17975archiver_list_spec \
17976STRIP \
17977RANLIB \
17978CC \
17979CFLAGS \
17980compiler \
17981lt_cv_sys_global_symbol_pipe \
17982lt_cv_sys_global_symbol_to_cdecl \
17983lt_cv_sys_global_symbol_to_import \
17984lt_cv_sys_global_symbol_to_c_name_address \
17985lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17986lt_cv_nm_interface \
17987nm_file_list_spec \
17988lt_cv_truncate_bin \
17989lt_prog_compiler_no_builtin_flag \
17990lt_prog_compiler_pic \
17991lt_prog_compiler_wl \
17992lt_prog_compiler_static \
17993lt_cv_prog_compiler_c_o \
17994need_locks \
17995MANIFEST_TOOL \
17996DSYMUTIL \
17997NMEDIT \
17998LIPO \
17999OTOOL \
18000OTOOL64 \
18001shrext_cmds \
18002export_dynamic_flag_spec \
18003whole_archive_flag_spec \
18004compiler_needs_object \
18005with_gnu_ld \
18006allow_undefined_flag \
18007no_undefined_flag \
18008hardcode_libdir_flag_spec \
18009hardcode_libdir_separator \
18010exclude_expsyms \
18011include_expsyms \
18012file_list_spec \
18013variables_saved_for_relink \
18014libname_spec \
18015library_names_spec \
18016soname_spec \
18017install_override_mode \
18018finish_eval \
18019old_striplib \
18020striplib \
18021compiler_lib_search_dirs \
18022predep_objects \
18023postdep_objects \
18024predeps \
18025postdeps \
18026compiler_lib_search_path \
18027LD_CXX \
18028reload_flag_CXX \
18029compiler_CXX \
18030lt_prog_compiler_no_builtin_flag_CXX \
18031lt_prog_compiler_pic_CXX \
18032lt_prog_compiler_wl_CXX \
18033lt_prog_compiler_static_CXX \
18034lt_cv_prog_compiler_c_o_CXX \
18035export_dynamic_flag_spec_CXX \
18036whole_archive_flag_spec_CXX \
18037compiler_needs_object_CXX \
18038with_gnu_ld_CXX \
18039allow_undefined_flag_CXX \
18040no_undefined_flag_CXX \
18041hardcode_libdir_flag_spec_CXX \
18042hardcode_libdir_separator_CXX \
18043exclude_expsyms_CXX \
18044include_expsyms_CXX \
18045file_list_spec_CXX \
18046compiler_lib_search_dirs_CXX \
18047predep_objects_CXX \
18048postdep_objects_CXX \
18049predeps_CXX \
18050postdeps_CXX \
18051compiler_lib_search_path_CXX; do
18052    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18053    *[\\\\\\\`\\"\\\$]*)
18054      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18055      ;;
18056    *)
18057      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18058      ;;
18059    esac
18060done
18061
18062# Double-quote double-evaled strings.
18063for var in reload_cmds \
18064old_postinstall_cmds \
18065old_postuninstall_cmds \
18066old_archive_cmds \
18067extract_expsyms_cmds \
18068old_archive_from_new_cmds \
18069old_archive_from_expsyms_cmds \
18070archive_cmds \
18071archive_expsym_cmds \
18072module_cmds \
18073module_expsym_cmds \
18074export_symbols_cmds \
18075prelink_cmds \
18076postlink_cmds \
18077postinstall_cmds \
18078postuninstall_cmds \
18079finish_cmds \
18080sys_lib_search_path_spec \
18081configure_time_dlsearch_path \
18082configure_time_lt_sys_library_path \
18083reload_cmds_CXX \
18084old_archive_cmds_CXX \
18085old_archive_from_new_cmds_CXX \
18086old_archive_from_expsyms_cmds_CXX \
18087archive_cmds_CXX \
18088archive_expsym_cmds_CXX \
18089module_cmds_CXX \
18090module_expsym_cmds_CXX \
18091export_symbols_cmds_CXX \
18092prelink_cmds_CXX \
18093postlink_cmds_CXX; do
18094    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18095    *[\\\\\\\`\\"\\\$]*)
18096      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18097      ;;
18098    *)
18099      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18100      ;;
18101    esac
18102done
18103
18104ac_aux_dir='$ac_aux_dir'
18105
18106# See if we are running on zsh, and set the options that allow our
18107# commands through without removal of \ escapes INIT.
18108if test -n "\${ZSH_VERSION+set}"; then
18109   setopt NO_GLOB_SUBST
18110fi
18111
18112
18113    PACKAGE='$PACKAGE'
18114    VERSION='$VERSION'
18115    RM='$RM'
18116    ofile='$ofile'
18117
18118
18119
18120
18121
18122
18123_ACEOF
18124
18125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18126
18127# Handling of arguments.
18128for ac_config_target in $ac_config_targets
18129do
18130  case $ac_config_target in
18131    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18132    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18133    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18134    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18135
18136  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18137  esac
18138done
18139
18140
18141# If the user did not use the arguments to specify the items to instantiate,
18142# then the envvar interface is used.  Set only those that are not.
18143# We use the long form for the default assignment because of an extremely
18144# bizarre bug on SunOS 4.1.3.
18145if $ac_need_defaults; then
18146  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18147  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18148  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18149fi
18150
18151# Have a temporary directory for convenience.  Make it in the build tree
18152# simply because there is no reason against having it here, and in addition,
18153# creating and moving files from /tmp can sometimes cause problems.
18154# Hook for its removal unless debugging.
18155# Note that there is a small window in which the directory will not be cleaned:
18156# after its creation but before its name has been assigned to `$tmp'.
18157$debug ||
18158{
18159  tmp= ac_tmp=
18160  trap 'exit_status=$?
18161  : "${ac_tmp:=$tmp}"
18162  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18163' 0
18164  trap 'as_fn_exit 1' 1 2 13 15
18165}
18166# Create a (secure) tmp directory for tmp files.
18167
18168{
18169  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18170  test -d "$tmp"
18171}  ||
18172{
18173  tmp=./conf$$-$RANDOM
18174  (umask 077 && mkdir "$tmp")
18175} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18176ac_tmp=$tmp
18177
18178# Set up the scripts for CONFIG_FILES section.
18179# No need to generate them if there are no CONFIG_FILES.
18180# This happens for instance with `./config.status config.h'.
18181if test -n "$CONFIG_FILES"; then
18182
18183
18184ac_cr=`echo X | tr X '\015'`
18185# On cygwin, bash can eat \r inside `` if the user requested igncr.
18186# But we know of no other shell where ac_cr would be empty at this
18187# point, so we can use a bashism as a fallback.
18188if test "x$ac_cr" = x; then
18189  eval ac_cr=\$\'\\r\'
18190fi
18191ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18192if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18193  ac_cs_awk_cr='\\r'
18194else
18195  ac_cs_awk_cr=$ac_cr
18196fi
18197
18198echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18199_ACEOF
18200
18201
18202{
18203  echo "cat >conf$$subs.awk <<_ACEOF" &&
18204  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18205  echo "_ACEOF"
18206} >conf$$subs.sh ||
18207  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18208ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18209ac_delim='%!_!# '
18210for ac_last_try in false false false false false :; do
18211  . ./conf$$subs.sh ||
18212    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18213
18214  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18215  if test $ac_delim_n = $ac_delim_num; then
18216    break
18217  elif $ac_last_try; then
18218    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18219  else
18220    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18221  fi
18222done
18223rm -f conf$$subs.sh
18224
18225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18226cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18227_ACEOF
18228sed -n '
18229h
18230s/^/S["/; s/!.*/"]=/
18231p
18232g
18233s/^[^!]*!//
18234:repl
18235t repl
18236s/'"$ac_delim"'$//
18237t delim
18238:nl
18239h
18240s/\(.\{148\}\)..*/\1/
18241t more1
18242s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18243p
18244n
18245b repl
18246:more1
18247s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18248p
18249g
18250s/.\{148\}//
18251t nl
18252:delim
18253h
18254s/\(.\{148\}\)..*/\1/
18255t more2
18256s/["\\]/\\&/g; s/^/"/; s/$/"/
18257p
18258b
18259:more2
18260s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18261p
18262g
18263s/.\{148\}//
18264t delim
18265' <conf$$subs.awk | sed '
18266/^[^""]/{
18267  N
18268  s/\n//
18269}
18270' >>$CONFIG_STATUS || ac_write_fail=1
18271rm -f conf$$subs.awk
18272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18273_ACAWK
18274cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18275  for (key in S) S_is_set[key] = 1
18276  FS = ""
18277
18278}
18279{
18280  line = $ 0
18281  nfields = split(line, field, "@")
18282  substed = 0
18283  len = length(field[1])
18284  for (i = 2; i < nfields; i++) {
18285    key = field[i]
18286    keylen = length(key)
18287    if (S_is_set[key]) {
18288      value = S[key]
18289      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18290      len += length(value) + length(field[++i])
18291      substed = 1
18292    } else
18293      len += 1 + keylen
18294  }
18295
18296  print line
18297}
18298
18299_ACAWK
18300_ACEOF
18301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18302if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18303  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18304else
18305  cat
18306fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18307  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18308_ACEOF
18309
18310# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18311# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18312# trailing colons and then remove the whole line if VPATH becomes empty
18313# (actually we leave an empty line to preserve line numbers).
18314if test "x$srcdir" = x.; then
18315  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18316h
18317s///
18318s/^/:/
18319s/[	 ]*$/:/
18320s/:\$(srcdir):/:/g
18321s/:\${srcdir}:/:/g
18322s/:@srcdir@:/:/g
18323s/^:*//
18324s/:*$//
18325x
18326s/\(=[	 ]*\).*/\1/
18327G
18328s/\n//
18329s/^[^=]*=[	 ]*$//
18330}'
18331fi
18332
18333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334fi # test -n "$CONFIG_FILES"
18335
18336# Set up the scripts for CONFIG_HEADERS section.
18337# No need to generate them if there are no CONFIG_HEADERS.
18338# This happens for instance with `./config.status Makefile'.
18339if test -n "$CONFIG_HEADERS"; then
18340cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18341BEGIN {
18342_ACEOF
18343
18344# Transform confdefs.h into an awk script `defines.awk', embedded as
18345# here-document in config.status, that substitutes the proper values into
18346# config.h.in to produce config.h.
18347
18348# Create a delimiter string that does not exist in confdefs.h, to ease
18349# handling of long lines.
18350ac_delim='%!_!# '
18351for ac_last_try in false false :; do
18352  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18353  if test -z "$ac_tt"; then
18354    break
18355  elif $ac_last_try; then
18356    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18357  else
18358    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18359  fi
18360done
18361
18362# For the awk script, D is an array of macro values keyed by name,
18363# likewise P contains macro parameters if any.  Preserve backslash
18364# newline sequences.
18365
18366ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18367sed -n '
18368s/.\{148\}/&'"$ac_delim"'/g
18369t rset
18370:rset
18371s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18372t def
18373d
18374:def
18375s/\\$//
18376t bsnl
18377s/["\\]/\\&/g
18378s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18379D["\1"]=" \3"/p
18380s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18381d
18382:bsnl
18383s/["\\]/\\&/g
18384s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18385D["\1"]=" \3\\\\\\n"\\/p
18386t cont
18387s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18388t cont
18389d
18390:cont
18391n
18392s/.\{148\}/&'"$ac_delim"'/g
18393t clear
18394:clear
18395s/\\$//
18396t bsnlc
18397s/["\\]/\\&/g; s/^/"/; s/$/"/p
18398d
18399:bsnlc
18400s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18401b cont
18402' <confdefs.h | sed '
18403s/'"$ac_delim"'/"\\\
18404"/g' >>$CONFIG_STATUS || ac_write_fail=1
18405
18406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18407  for (key in D) D_is_set[key] = 1
18408  FS = ""
18409}
18410/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18411  line = \$ 0
18412  split(line, arg, " ")
18413  if (arg[1] == "#") {
18414    defundef = arg[2]
18415    mac1 = arg[3]
18416  } else {
18417    defundef = substr(arg[1], 2)
18418    mac1 = arg[2]
18419  }
18420  split(mac1, mac2, "(") #)
18421  macro = mac2[1]
18422  prefix = substr(line, 1, index(line, defundef) - 1)
18423  if (D_is_set[macro]) {
18424    # Preserve the white space surrounding the "#".
18425    print prefix "define", macro P[macro] D[macro]
18426    next
18427  } else {
18428    # Replace #undef with comments.  This is necessary, for example,
18429    # in the case of _POSIX_SOURCE, which is predefined and required
18430    # on some systems where configure will not decide to define it.
18431    if (defundef == "undef") {
18432      print "/*", prefix defundef, macro, "*/"
18433      next
18434    }
18435  }
18436}
18437{ print }
18438_ACAWK
18439_ACEOF
18440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18441  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18442fi # test -n "$CONFIG_HEADERS"
18443
18444
18445eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18446shift
18447for ac_tag
18448do
18449  case $ac_tag in
18450  :[FHLC]) ac_mode=$ac_tag; continue;;
18451  esac
18452  case $ac_mode$ac_tag in
18453  :[FHL]*:*);;
18454  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18455  :[FH]-) ac_tag=-:-;;
18456  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18457  esac
18458  ac_save_IFS=$IFS
18459  IFS=:
18460  set x $ac_tag
18461  IFS=$ac_save_IFS
18462  shift
18463  ac_file=$1
18464  shift
18465
18466  case $ac_mode in
18467  :L) ac_source=$1;;
18468  :[FH])
18469    ac_file_inputs=
18470    for ac_f
18471    do
18472      case $ac_f in
18473      -) ac_f="$ac_tmp/stdin";;
18474      *) # Look for the file first in the build tree, then in the source tree
18475	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18476	 # because $ac_f cannot contain `:'.
18477	 test -f "$ac_f" ||
18478	   case $ac_f in
18479	   [\\/$]*) false;;
18480	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18481	   esac ||
18482	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18483      esac
18484      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18485      as_fn_append ac_file_inputs " '$ac_f'"
18486    done
18487
18488    # Let's still pretend it is `configure' which instantiates (i.e., don't
18489    # use $as_me), people would be surprised to read:
18490    #    /* config.h.  Generated by config.status.  */
18491    configure_input='Generated from '`
18492	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18493	`' by configure.'
18494    if test x"$ac_file" != x-; then
18495      configure_input="$ac_file.  $configure_input"
18496      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18497$as_echo "$as_me: creating $ac_file" >&6;}
18498    fi
18499    # Neutralize special characters interpreted by sed in replacement strings.
18500    case $configure_input in #(
18501    *\&* | *\|* | *\\* )
18502       ac_sed_conf_input=`$as_echo "$configure_input" |
18503       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18504    *) ac_sed_conf_input=$configure_input;;
18505    esac
18506
18507    case $ac_tag in
18508    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18509      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18510    esac
18511    ;;
18512  esac
18513
18514  ac_dir=`$as_dirname -- "$ac_file" ||
18515$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18516	 X"$ac_file" : 'X\(//\)[^/]' \| \
18517	 X"$ac_file" : 'X\(//\)$' \| \
18518	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18519$as_echo X"$ac_file" |
18520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18521	    s//\1/
18522	    q
18523	  }
18524	  /^X\(\/\/\)[^/].*/{
18525	    s//\1/
18526	    q
18527	  }
18528	  /^X\(\/\/\)$/{
18529	    s//\1/
18530	    q
18531	  }
18532	  /^X\(\/\).*/{
18533	    s//\1/
18534	    q
18535	  }
18536	  s/.*/./; q'`
18537  as_dir="$ac_dir"; as_fn_mkdir_p
18538  ac_builddir=.
18539
18540case "$ac_dir" in
18541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18542*)
18543  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18544  # A ".." for each directory in $ac_dir_suffix.
18545  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18546  case $ac_top_builddir_sub in
18547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18549  esac ;;
18550esac
18551ac_abs_top_builddir=$ac_pwd
18552ac_abs_builddir=$ac_pwd$ac_dir_suffix
18553# for backward compatibility:
18554ac_top_builddir=$ac_top_build_prefix
18555
18556case $srcdir in
18557  .)  # We are building in place.
18558    ac_srcdir=.
18559    ac_top_srcdir=$ac_top_builddir_sub
18560    ac_abs_top_srcdir=$ac_pwd ;;
18561  [\\/]* | ?:[\\/]* )  # Absolute name.
18562    ac_srcdir=$srcdir$ac_dir_suffix;
18563    ac_top_srcdir=$srcdir
18564    ac_abs_top_srcdir=$srcdir ;;
18565  *) # Relative name.
18566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18567    ac_top_srcdir=$ac_top_build_prefix$srcdir
18568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18569esac
18570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18571
18572
18573  case $ac_mode in
18574  :F)
18575  #
18576  # CONFIG_FILE
18577  #
18578
18579  case $INSTALL in
18580  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18581  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18582  esac
18583  ac_MKDIR_P=$MKDIR_P
18584  case $MKDIR_P in
18585  [\\/$]* | ?:[\\/]* ) ;;
18586  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18587  esac
18588_ACEOF
18589
18590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18591# If the template does not know about datarootdir, expand it.
18592# FIXME: This hack should be removed a few years after 2.60.
18593ac_datarootdir_hack=; ac_datarootdir_seen=
18594ac_sed_dataroot='
18595/datarootdir/ {
18596  p
18597  q
18598}
18599/@datadir@/p
18600/@docdir@/p
18601/@infodir@/p
18602/@localedir@/p
18603/@mandir@/p'
18604case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18605*datarootdir*) ac_datarootdir_seen=yes;;
18606*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18607  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18608$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18609_ACEOF
18610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18611  ac_datarootdir_hack='
18612  s&@datadir@&$datadir&g
18613  s&@docdir@&$docdir&g
18614  s&@infodir@&$infodir&g
18615  s&@localedir@&$localedir&g
18616  s&@mandir@&$mandir&g
18617  s&\\\${datarootdir}&$datarootdir&g' ;;
18618esac
18619_ACEOF
18620
18621# Neutralize VPATH when `$srcdir' = `.'.
18622# Shell code in configure.ac might set extrasub.
18623# FIXME: do we really want to maintain this feature?
18624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18625ac_sed_extra="$ac_vpsub
18626$extrasub
18627_ACEOF
18628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18629:t
18630/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18631s|@configure_input@|$ac_sed_conf_input|;t t
18632s&@top_builddir@&$ac_top_builddir_sub&;t t
18633s&@top_build_prefix@&$ac_top_build_prefix&;t t
18634s&@srcdir@&$ac_srcdir&;t t
18635s&@abs_srcdir@&$ac_abs_srcdir&;t t
18636s&@top_srcdir@&$ac_top_srcdir&;t t
18637s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18638s&@builddir@&$ac_builddir&;t t
18639s&@abs_builddir@&$ac_abs_builddir&;t t
18640s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18641s&@INSTALL@&$ac_INSTALL&;t t
18642s&@MKDIR_P@&$ac_MKDIR_P&;t t
18643$ac_datarootdir_hack
18644"
18645eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18646  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18647
18648test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18649  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18650  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18651      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18652  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18653which seems to be undefined.  Please make sure it is defined" >&5
18654$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18655which seems to be undefined.  Please make sure it is defined" >&2;}
18656
18657  rm -f "$ac_tmp/stdin"
18658  case $ac_file in
18659  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18660  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18661  esac \
18662  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18663 ;;
18664  :H)
18665  #
18666  # CONFIG_HEADER
18667  #
18668  if test x"$ac_file" != x-; then
18669    {
18670      $as_echo "/* $configure_input  */" \
18671      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18672    } >"$ac_tmp/config.h" \
18673      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18674    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18675      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18676$as_echo "$as_me: $ac_file is unchanged" >&6;}
18677    else
18678      rm -f "$ac_file"
18679      mv "$ac_tmp/config.h" "$ac_file" \
18680	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18681    fi
18682  else
18683    $as_echo "/* $configure_input  */" \
18684      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18685      || as_fn_error $? "could not create -" "$LINENO" 5
18686  fi
18687# Compute "$ac_file"'s index in $config_headers.
18688_am_arg="$ac_file"
18689_am_stamp_count=1
18690for _am_header in $config_headers :; do
18691  case $_am_header in
18692    $_am_arg | $_am_arg:* )
18693      break ;;
18694    * )
18695      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18696  esac
18697done
18698echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18699$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18700	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18701	 X"$_am_arg" : 'X\(//\)$' \| \
18702	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18703$as_echo X"$_am_arg" |
18704    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705	    s//\1/
18706	    q
18707	  }
18708	  /^X\(\/\/\)[^/].*/{
18709	    s//\1/
18710	    q
18711	  }
18712	  /^X\(\/\/\)$/{
18713	    s//\1/
18714	    q
18715	  }
18716	  /^X\(\/\).*/{
18717	    s//\1/
18718	    q
18719	  }
18720	  s/.*/./; q'`/stamp-h$_am_stamp_count
18721 ;;
18722
18723  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18724$as_echo "$as_me: executing $ac_file commands" >&6;}
18725 ;;
18726  esac
18727
18728
18729  case $ac_file$ac_mode in
18730    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18731  # Older Autoconf quotes --file arguments for eval, but not when files
18732  # are listed without --file.  Let's play safe and only enable the eval
18733  # if we detect the quoting.
18734  # TODO: see whether this extra hack can be removed once we start
18735  # requiring Autoconf 2.70 or later.
18736  case $CONFIG_FILES in #(
18737  *\'*) :
18738    eval set x "$CONFIG_FILES" ;; #(
18739  *) :
18740    set x $CONFIG_FILES ;; #(
18741  *) :
18742     ;;
18743esac
18744  shift
18745  # Used to flag and report bootstrapping failures.
18746  am_rc=0
18747  for am_mf
18748  do
18749    # Strip MF so we end up with the name of the file.
18750    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18751    # Check whether this is an Automake generated Makefile which includes
18752    # dependency-tracking related rules and includes.
18753    # Grep'ing the whole file directly is not great: AIX grep has a line
18754    # limit of 2048, but all sed's we know have understand at least 4000.
18755    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18756      || continue
18757    am_dirpart=`$as_dirname -- "$am_mf" ||
18758$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18759	 X"$am_mf" : 'X\(//\)[^/]' \| \
18760	 X"$am_mf" : 'X\(//\)$' \| \
18761	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18762$as_echo X"$am_mf" |
18763    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18764	    s//\1/
18765	    q
18766	  }
18767	  /^X\(\/\/\)[^/].*/{
18768	    s//\1/
18769	    q
18770	  }
18771	  /^X\(\/\/\)$/{
18772	    s//\1/
18773	    q
18774	  }
18775	  /^X\(\/\).*/{
18776	    s//\1/
18777	    q
18778	  }
18779	  s/.*/./; q'`
18780    am_filepart=`$as_basename -- "$am_mf" ||
18781$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18782	 X"$am_mf" : 'X\(//\)$' \| \
18783	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18784$as_echo X/"$am_mf" |
18785    sed '/^.*\/\([^/][^/]*\)\/*$/{
18786	    s//\1/
18787	    q
18788	  }
18789	  /^X\/\(\/\/\)$/{
18790	    s//\1/
18791	    q
18792	  }
18793	  /^X\/\(\/\).*/{
18794	    s//\1/
18795	    q
18796	  }
18797	  s/.*/./; q'`
18798    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18799      && sed -e '/# am--include-marker/d' "$am_filepart" \
18800        | $MAKE -f - am--depfiles" >&5
18801   (cd "$am_dirpart" \
18802      && sed -e '/# am--include-marker/d' "$am_filepart" \
18803        | $MAKE -f - am--depfiles) >&5 2>&5
18804   ac_status=$?
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); } || am_rc=$?
18807  done
18808  if test $am_rc -ne 0; then
18809    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18811as_fn_error $? "Something went wrong bootstrapping makefile fragments
18812    for automatic dependency tracking.  If GNU make was not used, consider
18813    re-running the configure script with MAKE=\"gmake\" (or whatever is
18814    necessary).  You can also try re-running configure with the
18815    '--disable-dependency-tracking' option to at least be able to build
18816    the package (albeit without support for automatic dependency tracking).
18817See \`config.log' for more details" "$LINENO" 5; }
18818  fi
18819  { am_dirpart=; unset am_dirpart;}
18820  { am_filepart=; unset am_filepart;}
18821  { am_mf=; unset am_mf;}
18822  { am_rc=; unset am_rc;}
18823  rm -f conftest-deps.mk
18824}
18825 ;;
18826    "libtool":C)
18827
18828    # See if we are running on zsh, and set the options that allow our
18829    # commands through without removal of \ escapes.
18830    if test -n "${ZSH_VERSION+set}"; then
18831      setopt NO_GLOB_SUBST
18832    fi
18833
18834    cfgfile=${ofile}T
18835    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18836    $RM "$cfgfile"
18837
18838    cat <<_LT_EOF >> "$cfgfile"
18839#! $SHELL
18840# Generated automatically by $as_me ($PACKAGE) $VERSION
18841# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18842
18843# Provide generalized library-building support services.
18844# Written by Gordon Matzigkeit, 1996
18845
18846# Copyright (C) 2014 Free Software Foundation, Inc.
18847# This is free software; see the source for copying conditions.  There is NO
18848# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18849
18850# GNU Libtool is free software; you can redistribute it and/or modify
18851# it under the terms of the GNU General Public License as published by
18852# the Free Software Foundation; either version 2 of of the License, or
18853# (at your option) any later version.
18854#
18855# As a special exception to the GNU General Public License, if you
18856# distribute this file as part of a program or library that is built
18857# using GNU Libtool, you may include this file under the  same
18858# distribution terms that you use for the rest of that program.
18859#
18860# GNU Libtool is distributed in the hope that it will be useful, but
18861# WITHOUT ANY WARRANTY; without even the implied warranty of
18862# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18863# GNU General Public License for more details.
18864#
18865# You should have received a copy of the GNU General Public License
18866# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18867
18868
18869# The names of the tagged configurations supported by this script.
18870available_tags='CXX '
18871
18872# Configured defaults for sys_lib_dlsearch_path munging.
18873: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18874
18875# ### BEGIN LIBTOOL CONFIG
18876
18877# Which release of libtool.m4 was used?
18878macro_version=$macro_version
18879macro_revision=$macro_revision
18880
18881# Whether or not to build shared libraries.
18882build_libtool_libs=$enable_shared
18883
18884# Whether or not to build static libraries.
18885build_old_libs=$enable_static
18886
18887# What type of objects to build.
18888pic_mode=$pic_mode
18889
18890# Whether or not to optimize for fast installation.
18891fast_install=$enable_fast_install
18892
18893# Shared archive member basename,for filename based shared library versioning on AIX.
18894shared_archive_member_spec=$shared_archive_member_spec
18895
18896# Shell to use when invoking shell scripts.
18897SHELL=$lt_SHELL
18898
18899# An echo program that protects backslashes.
18900ECHO=$lt_ECHO
18901
18902# The PATH separator for the build system.
18903PATH_SEPARATOR=$lt_PATH_SEPARATOR
18904
18905# The host system.
18906host_alias=$host_alias
18907host=$host
18908host_os=$host_os
18909
18910# The build system.
18911build_alias=$build_alias
18912build=$build
18913build_os=$build_os
18914
18915# A sed program that does not truncate output.
18916SED=$lt_SED
18917
18918# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18919Xsed="\$SED -e 1s/^X//"
18920
18921# A grep program that handles long lines.
18922GREP=$lt_GREP
18923
18924# An ERE matcher.
18925EGREP=$lt_EGREP
18926
18927# A literal string matcher.
18928FGREP=$lt_FGREP
18929
18930# A BSD- or MS-compatible name lister.
18931NM=$lt_NM
18932
18933# Whether we need soft or hard links.
18934LN_S=$lt_LN_S
18935
18936# What is the maximum length of a command?
18937max_cmd_len=$max_cmd_len
18938
18939# Object file suffix (normally "o").
18940objext=$ac_objext
18941
18942# Executable file suffix (normally "").
18943exeext=$exeext
18944
18945# whether the shell understands "unset".
18946lt_unset=$lt_unset
18947
18948# turn spaces into newlines.
18949SP2NL=$lt_lt_SP2NL
18950
18951# turn newlines into spaces.
18952NL2SP=$lt_lt_NL2SP
18953
18954# convert \$build file names to \$host format.
18955to_host_file_cmd=$lt_cv_to_host_file_cmd
18956
18957# convert \$build files to toolchain format.
18958to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18959
18960# An object symbol dumper.
18961OBJDUMP=$lt_OBJDUMP
18962
18963# Method to check whether dependent libraries are shared objects.
18964deplibs_check_method=$lt_deplibs_check_method
18965
18966# Command to use when deplibs_check_method = "file_magic".
18967file_magic_cmd=$lt_file_magic_cmd
18968
18969# How to find potential files when deplibs_check_method = "file_magic".
18970file_magic_glob=$lt_file_magic_glob
18971
18972# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18973want_nocaseglob=$lt_want_nocaseglob
18974
18975# DLL creation program.
18976DLLTOOL=$lt_DLLTOOL
18977
18978# Command to associate shared and link libraries.
18979sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18980
18981# The archiver.
18982AR=$lt_AR
18983
18984# Flags to create an archive.
18985AR_FLAGS=$lt_AR_FLAGS
18986
18987# How to feed a file listing to the archiver.
18988archiver_list_spec=$lt_archiver_list_spec
18989
18990# A symbol stripping program.
18991STRIP=$lt_STRIP
18992
18993# Commands used to install an old-style archive.
18994RANLIB=$lt_RANLIB
18995old_postinstall_cmds=$lt_old_postinstall_cmds
18996old_postuninstall_cmds=$lt_old_postuninstall_cmds
18997
18998# Whether to use a lock for old archive extraction.
18999lock_old_archive_extraction=$lock_old_archive_extraction
19000
19001# A C compiler.
19002LTCC=$lt_CC
19003
19004# LTCC compiler flags.
19005LTCFLAGS=$lt_CFLAGS
19006
19007# Take the output of nm and produce a listing of raw symbols and C names.
19008global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19009
19010# Transform the output of nm in a proper C declaration.
19011global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19012
19013# Transform the output of nm into a list of symbols to manually relocate.
19014global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19015
19016# Transform the output of nm in a C name address pair.
19017global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19018
19019# Transform the output of nm in a C name address pair when lib prefix is needed.
19020global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19021
19022# The name lister interface.
19023nm_interface=$lt_lt_cv_nm_interface
19024
19025# Specify filename containing input files for \$NM.
19026nm_file_list_spec=$lt_nm_file_list_spec
19027
19028# The root where to search for dependent libraries,and where our libraries should be installed.
19029lt_sysroot=$lt_sysroot
19030
19031# Command to truncate a binary pipe.
19032lt_truncate_bin=$lt_lt_cv_truncate_bin
19033
19034# The name of the directory that contains temporary libtool files.
19035objdir=$objdir
19036
19037# Used to examine libraries when file_magic_cmd begins with "file".
19038MAGIC_CMD=$MAGIC_CMD
19039
19040# Must we lock files when doing compilation?
19041need_locks=$lt_need_locks
19042
19043# Manifest tool.
19044MANIFEST_TOOL=$lt_MANIFEST_TOOL
19045
19046# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19047DSYMUTIL=$lt_DSYMUTIL
19048
19049# Tool to change global to local symbols on Mac OS X.
19050NMEDIT=$lt_NMEDIT
19051
19052# Tool to manipulate fat objects and archives on Mac OS X.
19053LIPO=$lt_LIPO
19054
19055# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19056OTOOL=$lt_OTOOL
19057
19058# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19059OTOOL64=$lt_OTOOL64
19060
19061# Old archive suffix (normally "a").
19062libext=$libext
19063
19064# Shared library suffix (normally ".so").
19065shrext_cmds=$lt_shrext_cmds
19066
19067# The commands to extract the exported symbol list from a shared archive.
19068extract_expsyms_cmds=$lt_extract_expsyms_cmds
19069
19070# Variables whose values should be saved in libtool wrapper scripts and
19071# restored at link time.
19072variables_saved_for_relink=$lt_variables_saved_for_relink
19073
19074# Do we need the "lib" prefix for modules?
19075need_lib_prefix=$need_lib_prefix
19076
19077# Do we need a version for libraries?
19078need_version=$need_version
19079
19080# Library versioning type.
19081version_type=$version_type
19082
19083# Shared library runtime path variable.
19084runpath_var=$runpath_var
19085
19086# Shared library path variable.
19087shlibpath_var=$shlibpath_var
19088
19089# Is shlibpath searched before the hard-coded library search path?
19090shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19091
19092# Format of library name prefix.
19093libname_spec=$lt_libname_spec
19094
19095# List of archive names.  First name is the real one, the rest are links.
19096# The last name is the one that the linker finds with -lNAME
19097library_names_spec=$lt_library_names_spec
19098
19099# The coded name of the library, if different from the real name.
19100soname_spec=$lt_soname_spec
19101
19102# Permission mode override for installation of shared libraries.
19103install_override_mode=$lt_install_override_mode
19104
19105# Command to use after installation of a shared archive.
19106postinstall_cmds=$lt_postinstall_cmds
19107
19108# Command to use after uninstallation of a shared archive.
19109postuninstall_cmds=$lt_postuninstall_cmds
19110
19111# Commands used to finish a libtool library installation in a directory.
19112finish_cmds=$lt_finish_cmds
19113
19114# As "finish_cmds", except a single script fragment to be evaled but
19115# not shown.
19116finish_eval=$lt_finish_eval
19117
19118# Whether we should hardcode library paths into libraries.
19119hardcode_into_libs=$hardcode_into_libs
19120
19121# Compile-time system search path for libraries.
19122sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19123
19124# Detected run-time system search path for libraries.
19125sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19126
19127# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19128configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19129
19130# Whether dlopen is supported.
19131dlopen_support=$enable_dlopen
19132
19133# Whether dlopen of programs is supported.
19134dlopen_self=$enable_dlopen_self
19135
19136# Whether dlopen of statically linked programs is supported.
19137dlopen_self_static=$enable_dlopen_self_static
19138
19139# Commands to strip libraries.
19140old_striplib=$lt_old_striplib
19141striplib=$lt_striplib
19142
19143
19144# The linker used to build libraries.
19145LD=$lt_LD
19146
19147# How to create reloadable object files.
19148reload_flag=$lt_reload_flag
19149reload_cmds=$lt_reload_cmds
19150
19151# Commands used to build an old-style archive.
19152old_archive_cmds=$lt_old_archive_cmds
19153
19154# A language specific compiler.
19155CC=$lt_compiler
19156
19157# Is the compiler the GNU compiler?
19158with_gcc=$GCC
19159
19160# Compiler flag to turn off builtin functions.
19161no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19162
19163# Additional compiler flags for building library objects.
19164pic_flag=$lt_lt_prog_compiler_pic
19165
19166# How to pass a linker flag through the compiler.
19167wl=$lt_lt_prog_compiler_wl
19168
19169# Compiler flag to prevent dynamic linking.
19170link_static_flag=$lt_lt_prog_compiler_static
19171
19172# Does compiler simultaneously support -c and -o options?
19173compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19174
19175# Whether or not to add -lc for building shared libraries.
19176build_libtool_need_lc=$archive_cmds_need_lc
19177
19178# Whether or not to disallow shared libs when runtime libs are static.
19179allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19180
19181# Compiler flag to allow reflexive dlopens.
19182export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19183
19184# Compiler flag to generate shared objects directly from archives.
19185whole_archive_flag_spec=$lt_whole_archive_flag_spec
19186
19187# Whether the compiler copes with passing no objects directly.
19188compiler_needs_object=$lt_compiler_needs_object
19189
19190# Create an old-style archive from a shared archive.
19191old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19192
19193# Create a temporary old-style archive to link instead of a shared archive.
19194old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19195
19196# Commands used to build a shared archive.
19197archive_cmds=$lt_archive_cmds
19198archive_expsym_cmds=$lt_archive_expsym_cmds
19199
19200# Commands used to build a loadable module if different from building
19201# a shared archive.
19202module_cmds=$lt_module_cmds
19203module_expsym_cmds=$lt_module_expsym_cmds
19204
19205# Whether we are building with GNU ld or not.
19206with_gnu_ld=$lt_with_gnu_ld
19207
19208# Flag that allows shared libraries with undefined symbols to be built.
19209allow_undefined_flag=$lt_allow_undefined_flag
19210
19211# Flag that enforces no undefined symbols.
19212no_undefined_flag=$lt_no_undefined_flag
19213
19214# Flag to hardcode \$libdir into a binary during linking.
19215# This must work even if \$libdir does not exist
19216hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19217
19218# Whether we need a single "-rpath" flag with a separated argument.
19219hardcode_libdir_separator=$lt_hardcode_libdir_separator
19220
19221# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19222# DIR into the resulting binary.
19223hardcode_direct=$hardcode_direct
19224
19225# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19226# DIR into the resulting binary and the resulting library dependency is
19227# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19228# library is relocated.
19229hardcode_direct_absolute=$hardcode_direct_absolute
19230
19231# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19232# into the resulting binary.
19233hardcode_minus_L=$hardcode_minus_L
19234
19235# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19236# into the resulting binary.
19237hardcode_shlibpath_var=$hardcode_shlibpath_var
19238
19239# Set to "yes" if building a shared library automatically hardcodes DIR
19240# into the library and all subsequent libraries and executables linked
19241# against it.
19242hardcode_automatic=$hardcode_automatic
19243
19244# Set to yes if linker adds runtime paths of dependent libraries
19245# to runtime path list.
19246inherit_rpath=$inherit_rpath
19247
19248# Whether libtool must link a program against all its dependency libraries.
19249link_all_deplibs=$link_all_deplibs
19250
19251# Set to "yes" if exported symbols are required.
19252always_export_symbols=$always_export_symbols
19253
19254# The commands to list exported symbols.
19255export_symbols_cmds=$lt_export_symbols_cmds
19256
19257# Symbols that should not be listed in the preloaded symbols.
19258exclude_expsyms=$lt_exclude_expsyms
19259
19260# Symbols that must always be exported.
19261include_expsyms=$lt_include_expsyms
19262
19263# Commands necessary for linking programs (against libraries) with templates.
19264prelink_cmds=$lt_prelink_cmds
19265
19266# Commands necessary for finishing linking programs.
19267postlink_cmds=$lt_postlink_cmds
19268
19269# Specify filename containing input files.
19270file_list_spec=$lt_file_list_spec
19271
19272# How to hardcode a shared library path into an executable.
19273hardcode_action=$hardcode_action
19274
19275# The directories searched by this compiler when creating a shared library.
19276compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19277
19278# Dependencies to place before and after the objects being linked to
19279# create a shared library.
19280predep_objects=$lt_predep_objects
19281postdep_objects=$lt_postdep_objects
19282predeps=$lt_predeps
19283postdeps=$lt_postdeps
19284
19285# The library search path used internally by the compiler when linking
19286# a shared library.
19287compiler_lib_search_path=$lt_compiler_lib_search_path
19288
19289# ### END LIBTOOL CONFIG
19290
19291_LT_EOF
19292
19293    cat <<'_LT_EOF' >> "$cfgfile"
19294
19295# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19296
19297# func_munge_path_list VARIABLE PATH
19298# -----------------------------------
19299# VARIABLE is name of variable containing _space_ separated list of
19300# directories to be munged by the contents of PATH, which is string
19301# having a format:
19302# "DIR[:DIR]:"
19303#       string "DIR[ DIR]" will be prepended to VARIABLE
19304# ":DIR[:DIR]"
19305#       string "DIR[ DIR]" will be appended to VARIABLE
19306# "DIRP[:DIRP]::[DIRA:]DIRA"
19307#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19308#       "DIRA[ DIRA]" will be appended to VARIABLE
19309# "DIR[:DIR]"
19310#       VARIABLE will be replaced by "DIR[ DIR]"
19311func_munge_path_list ()
19312{
19313    case x$2 in
19314    x)
19315        ;;
19316    *:)
19317        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19318        ;;
19319    x:*)
19320        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19321        ;;
19322    *::*)
19323        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19324        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19325        ;;
19326    *)
19327        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19328        ;;
19329    esac
19330}
19331
19332
19333# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19334func_cc_basename ()
19335{
19336    for cc_temp in $*""; do
19337      case $cc_temp in
19338        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19339        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19340        \-*) ;;
19341        *) break;;
19342      esac
19343    done
19344    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19345}
19346
19347
19348# ### END FUNCTIONS SHARED WITH CONFIGURE
19349
19350_LT_EOF
19351
19352  case $host_os in
19353  aix3*)
19354    cat <<\_LT_EOF >> "$cfgfile"
19355# AIX sometimes has problems with the GCC collect2 program.  For some
19356# reason, if we set the COLLECT_NAMES environment variable, the problems
19357# vanish in a puff of smoke.
19358if test set != "${COLLECT_NAMES+set}"; then
19359  COLLECT_NAMES=
19360  export COLLECT_NAMES
19361fi
19362_LT_EOF
19363    ;;
19364  esac
19365
19366
19367ltmain=$ac_aux_dir/ltmain.sh
19368
19369
19370  # We use sed instead of cat because bash on DJGPP gets confused if
19371  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19372  # text mode, it properly converts lines to CR/LF.  This bash problem
19373  # is reportedly fixed, but why not run on old versions too?
19374  sed '$q' "$ltmain" >> "$cfgfile" \
19375     || (rm -f "$cfgfile"; exit 1)
19376
19377   mv -f "$cfgfile" "$ofile" ||
19378    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19379  chmod +x "$ofile"
19380
19381
19382    cat <<_LT_EOF >> "$ofile"
19383
19384# ### BEGIN LIBTOOL TAG CONFIG: CXX
19385
19386# The linker used to build libraries.
19387LD=$lt_LD_CXX
19388
19389# How to create reloadable object files.
19390reload_flag=$lt_reload_flag_CXX
19391reload_cmds=$lt_reload_cmds_CXX
19392
19393# Commands used to build an old-style archive.
19394old_archive_cmds=$lt_old_archive_cmds_CXX
19395
19396# A language specific compiler.
19397CC=$lt_compiler_CXX
19398
19399# Is the compiler the GNU compiler?
19400with_gcc=$GCC_CXX
19401
19402# Compiler flag to turn off builtin functions.
19403no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19404
19405# Additional compiler flags for building library objects.
19406pic_flag=$lt_lt_prog_compiler_pic_CXX
19407
19408# How to pass a linker flag through the compiler.
19409wl=$lt_lt_prog_compiler_wl_CXX
19410
19411# Compiler flag to prevent dynamic linking.
19412link_static_flag=$lt_lt_prog_compiler_static_CXX
19413
19414# Does compiler simultaneously support -c and -o options?
19415compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19416
19417# Whether or not to add -lc for building shared libraries.
19418build_libtool_need_lc=$archive_cmds_need_lc_CXX
19419
19420# Whether or not to disallow shared libs when runtime libs are static.
19421allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19422
19423# Compiler flag to allow reflexive dlopens.
19424export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19425
19426# Compiler flag to generate shared objects directly from archives.
19427whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19428
19429# Whether the compiler copes with passing no objects directly.
19430compiler_needs_object=$lt_compiler_needs_object_CXX
19431
19432# Create an old-style archive from a shared archive.
19433old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19434
19435# Create a temporary old-style archive to link instead of a shared archive.
19436old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19437
19438# Commands used to build a shared archive.
19439archive_cmds=$lt_archive_cmds_CXX
19440archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19441
19442# Commands used to build a loadable module if different from building
19443# a shared archive.
19444module_cmds=$lt_module_cmds_CXX
19445module_expsym_cmds=$lt_module_expsym_cmds_CXX
19446
19447# Whether we are building with GNU ld or not.
19448with_gnu_ld=$lt_with_gnu_ld_CXX
19449
19450# Flag that allows shared libraries with undefined symbols to be built.
19451allow_undefined_flag=$lt_allow_undefined_flag_CXX
19452
19453# Flag that enforces no undefined symbols.
19454no_undefined_flag=$lt_no_undefined_flag_CXX
19455
19456# Flag to hardcode \$libdir into a binary during linking.
19457# This must work even if \$libdir does not exist
19458hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19459
19460# Whether we need a single "-rpath" flag with a separated argument.
19461hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19462
19463# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19464# DIR into the resulting binary.
19465hardcode_direct=$hardcode_direct_CXX
19466
19467# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19468# DIR into the resulting binary and the resulting library dependency is
19469# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19470# library is relocated.
19471hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19472
19473# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19474# into the resulting binary.
19475hardcode_minus_L=$hardcode_minus_L_CXX
19476
19477# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19478# into the resulting binary.
19479hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19480
19481# Set to "yes" if building a shared library automatically hardcodes DIR
19482# into the library and all subsequent libraries and executables linked
19483# against it.
19484hardcode_automatic=$hardcode_automatic_CXX
19485
19486# Set to yes if linker adds runtime paths of dependent libraries
19487# to runtime path list.
19488inherit_rpath=$inherit_rpath_CXX
19489
19490# Whether libtool must link a program against all its dependency libraries.
19491link_all_deplibs=$link_all_deplibs_CXX
19492
19493# Set to "yes" if exported symbols are required.
19494always_export_symbols=$always_export_symbols_CXX
19495
19496# The commands to list exported symbols.
19497export_symbols_cmds=$lt_export_symbols_cmds_CXX
19498
19499# Symbols that should not be listed in the preloaded symbols.
19500exclude_expsyms=$lt_exclude_expsyms_CXX
19501
19502# Symbols that must always be exported.
19503include_expsyms=$lt_include_expsyms_CXX
19504
19505# Commands necessary for linking programs (against libraries) with templates.
19506prelink_cmds=$lt_prelink_cmds_CXX
19507
19508# Commands necessary for finishing linking programs.
19509postlink_cmds=$lt_postlink_cmds_CXX
19510
19511# Specify filename containing input files.
19512file_list_spec=$lt_file_list_spec_CXX
19513
19514# How to hardcode a shared library path into an executable.
19515hardcode_action=$hardcode_action_CXX
19516
19517# The directories searched by this compiler when creating a shared library.
19518compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19519
19520# Dependencies to place before and after the objects being linked to
19521# create a shared library.
19522predep_objects=$lt_predep_objects_CXX
19523postdep_objects=$lt_postdep_objects_CXX
19524predeps=$lt_predeps_CXX
19525postdeps=$lt_postdeps_CXX
19526
19527# The library search path used internally by the compiler when linking
19528# a shared library.
19529compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19530
19531# ### END LIBTOOL TAG CONFIG: CXX
19532_LT_EOF
19533
19534 ;;
19535
19536  esac
19537done # for ac_tag
19538
19539
19540as_fn_exit 0
19541_ACEOF
19542ac_clean_files=$ac_clean_files_save
19543
19544test $ac_write_fail = 0 ||
19545  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19546
19547
19548# configure is writing to config.log, and then calls config.status.
19549# config.status does its own redirection, appending to config.log.
19550# Unfortunately, on DOS this fails, as config.log is still kept open
19551# by configure, so config.status won't be able to write to it; its
19552# output is simply discarded.  So we exec the FD to /dev/null,
19553# effectively closing config.log, so it can be properly (re)opened and
19554# appended to by config.status.  When coming back to configure, we
19555# need to make the FD available again.
19556if test "$no_create" != yes; then
19557  ac_cs_success=:
19558  ac_config_status_args=
19559  test "$silent" = yes &&
19560    ac_config_status_args="$ac_config_status_args --quiet"
19561  exec 5>/dev/null
19562  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19563  exec 5>>config.log
19564  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19565  # would make configure fail if this is the last instruction.
19566  $ac_cs_success || as_fn_exit 1
19567fi
19568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19569  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19570$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19571fi
19572
19573