1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for dbtool 1.9.1.
4#
5# Report bugs to <tlinden@cpan.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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 tlinden@cpan.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='dbtool'
592PACKAGE_TARNAME='dbtool'
593PACKAGE_VERSION='1.9.1'
594PACKAGE_STRING='dbtool 1.9.1'
595PACKAGE_BUGREPORT='tlinden@cpan.org'
596PACKAGE_URL=''
597
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_default_prefix=/usr/local
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639DB_CXX_CPPFLAGS
640DB_CXX_LDFLAGS
641DB_CXX_LIBS
642GDBM_CXXFLAGS
643GDBM_LIBS
644GDBM_CFLAGS
645PKG_CONFIG_LIBDIR
646PKG_CONFIG_PATH
647PKG_CONFIG
648CXXCPP
649am__fastdepCXX_FALSE
650am__fastdepCXX_TRUE
651CXXDEPMODE
652ac_ct_CXX
653CXXFLAGS
654CXX
655CPP
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
661MANIFEST_TOOL
662RANLIB
663ac_ct_AR
664AR
665DLLTOOL
666OBJDUMP
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
673EGREP
674GREP
675SED
676am__fastdepCC_FALSE
677am__fastdepCC_TRUE
678CCDEPMODE
679am__nodep
680AMDEPBACKSLASH
681AMDEP_FALSE
682AMDEP_TRUE
683am__quote
684am__include
685DEPDIR
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701LIBTOOL
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770enable_dependency_tracking
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_static_binary
775enable_debug
776with_berkeley
777with_gdbm
778with_gdbm_dir
779with_pcre_dir
780with_bdb_include_dir
781with_bdb_lib_dir
782with_libdb
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CPP
793CXX
794CXXFLAGS
795CCC
796CXXCPP
797PKG_CONFIG
798PKG_CONFIG_PATH
799PKG_CONFIG_LIBDIR
800GDBM_CFLAGS
801GDBM_LIBS'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856  # If the previous option needs an argument, assign it.
857  if test -n "$ac_prev"; then
858    eval $ac_prev=\$ac_option
859    ac_prev=
860    continue
861  fi
862
863  case $ac_option in
864  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865  *=)   ac_optarg= ;;
866  *)    ac_optarg=yes ;;
867  esac
868
869  # Accept the important Cygnus configure options, so we can diagnose typos.
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093    ac_prev=sbindir ;;
1094  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095  | --sbi=* | --sb=*)
1096    sbindir=$ac_optarg ;;
1097
1098  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100  | --sharedst | --shareds | --shared | --share | --shar \
1101  | --sha | --sh)
1102    ac_prev=sharedstatedir ;;
1103  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106  | --sha=* | --sh=*)
1107    sharedstatedir=$ac_optarg ;;
1108
1109  -site | --site | --sit)
1110    ac_prev=site ;;
1111  -site=* | --site=* | --sit=*)
1112    site=$ac_optarg ;;
1113
1114  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115    ac_prev=srcdir ;;
1116  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117    srcdir=$ac_optarg ;;
1118
1119  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120  | --syscon | --sysco | --sysc | --sys | --sy)
1121    ac_prev=sysconfdir ;;
1122  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124    sysconfdir=$ac_optarg ;;
1125
1126  -target | --target | --targe | --targ | --tar | --ta | --t)
1127    ac_prev=target_alias ;;
1128  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129    target_alias=$ac_optarg ;;
1130
1131  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132    verbose=yes ;;
1133
1134  -version | --version | --versio | --versi | --vers | -V)
1135    ac_init_version=: ;;
1136
1137  -with-* | --with-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: $ac_useropt"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=\$ac_optarg ;;
1152
1153  -without-* | --without-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=no ;;
1168
1169  --x)
1170    # Obsolete; use --with-x.
1171    with_x=yes ;;
1172
1173  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174  | --x-incl | --x-inc | --x-in | --x-i)
1175    ac_prev=x_includes ;;
1176  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178    x_includes=$ac_optarg ;;
1179
1180  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182    ac_prev=x_libraries ;;
1183  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185    x_libraries=$ac_optarg ;;
1186
1187  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
1189    ;;
1190
1191  *=*)
1192    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193    # Reject names that are not valid shell variable names.
1194    case $ac_envvar in #(
1195      '' | [0-9]* | *[!_$as_cr_alnum]* )
1196      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197    esac
1198    eval $ac_envvar=\$ac_optarg
1199    export $ac_envvar ;;
1200
1201  *)
1202    # FIXME: should be removed in autoconf 3.0.
1203    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207    ;;
1208
1209  esac
1210done
1211
1212if test -n "$ac_prev"; then
1213  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214  as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218  case $enable_option_checking in
1219    no) ;;
1220    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222  esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227		datadir sysconfdir sharedstatedir localstatedir includedir \
1228		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229		libdir localedir mandir
1230do
1231  eval ac_val=\$$ac_var
1232  # Remove trailing slashes.
1233  case $ac_val in
1234    */ )
1235      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236      eval $ac_var=\$ac_val;;
1237  esac
1238  # Be sure to have absolute directory names.
1239  case $ac_val in
1240    [\\/$]* | ?:[\\/]* )  continue;;
1241    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242  esac
1243  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255  if test "x$build_alias" = x; then
1256    cross_compiling=maybe
1257  elif test "x$build_alias" != "x$host_alias"; then
1258    cross_compiling=yes
1259  fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271  as_fn_error $? "working directory cannot be determined"
1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273  as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278  ac_srcdir_defaulted=yes
1279  # Try the directory containing this script, then the parent directory.
1280  ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282	 X"$as_myself" : 'X\(//\)[^/]' \| \
1283	 X"$as_myself" : 'X\(//\)$' \| \
1284	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285$as_echo X"$as_myself" |
1286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)[^/].*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\).*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  s/.*/./; q'`
1303  srcdir=$ac_confdir
1304  if test ! -r "$srcdir/$ac_unique_file"; then
1305    srcdir=..
1306  fi
1307else
1308  ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313fi
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
1316	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317	pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320  srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_env_${ac_var}_value=\$${ac_var}
1331  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339  # Omit some internal or obsolete options to make the list less imposing.
1340  # This message is too long to be a string in the A/UX 3.1 sh.
1341  cat <<_ACEOF
1342\`configure' configures dbtool 1.9.1 to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352  -h, --help              display this help and exit
1353      --help=short        display options specific to this package
1354      --help=recursive    display the short help of all the included packages
1355  -V, --version           display version information and exit
1356  -q, --quiet, --silent   do not print \`checking ...' messages
1357      --cache-file=FILE   cache test results in FILE [disabled]
1358  -C, --config-cache      alias for \`--cache-file=config.cache'
1359  -n, --no-create         do not create output files
1360      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362Installation directories:
1363  --prefix=PREFIX         install architecture-independent files in PREFIX
1364                          [$ac_default_prefix]
1365  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                          [PREFIX]
1367
1368By default, \`make install' will install all the files in
1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371for instance \`--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376  --bindir=DIR            user executables [EPREFIX/bin]
1377  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378  --libexecdir=DIR        program executables [EPREFIX/libexec]
1379  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382  --libdir=DIR            object code libraries [EPREFIX/lib]
1383  --includedir=DIR        C header files [PREFIX/include]
1384  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1385  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1386  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1387  --infodir=DIR           info documentation [DATAROOTDIR/info]
1388  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1389  --mandir=DIR            man documentation [DATAROOTDIR/man]
1390  --docdir=DIR            documentation root [DATAROOTDIR/doc/dbtool]
1391  --htmldir=DIR           html documentation [DOCDIR]
1392  --dvidir=DIR            dvi documentation [DOCDIR]
1393  --pdfdir=DIR            pdf documentation [DOCDIR]
1394  --psdir=DIR             ps documentation [DOCDIR]
1395_ACEOF
1396
1397  cat <<\_ACEOF
1398
1399Program names:
1400  --program-prefix=PREFIX            prepend PREFIX to installed program names
1401  --program-suffix=SUFFIX            append SUFFIX to installed program names
1402  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1403
1404System types:
1405  --build=BUILD     configure for building on BUILD [guessed]
1406  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411  case $ac_init_help in
1412     short | recursive ) echo "Configuration of dbtool 1.9.1:";;
1413   esac
1414  cat <<\_ACEOF
1415
1416Optional Features:
1417  --disable-option-checking  ignore unrecognized --enable/--with options
1418  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420  --enable-shared[=PKGS]  build shared libraries [default=yes]
1421  --enable-static[=PKGS]  build static libraries [default=yes]
1422  --enable-fast-install[=PKGS]
1423                          optimize for fast installation [default=yes]
1424  --enable-dependency-tracking
1425                          do not reject slow dependency extractors
1426  --disable-dependency-tracking
1427                          speeds up one-time build
1428  --disable-libtool-lock  avoid locking (might break parallel builds)
1429  --enable-static-binary  create a statically linked binary
1430  --disable-debug         Disable debugging
1431
1432Optional Packages:
1433  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1436                          both]
1437  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1438  --with-sysroot=DIR Search for dependent libraries within DIR
1439                        (or the compiler's sysroot if not specified).
1440  --with-berkeley         Use berkeley library
1441  --with-gdbm             Use GNU gdbm library
1442  --with-gdbm-dir=DIR     Use GNU gdbm library in DIR
1443  --with-pcre-dir=DIR     Use GNU pcre library in DIR
1444  --with-bdb-include-dir  Specify bdb include prefix
1445  --with-bdb-lib-dir      Specify bdb library prefix
1446  --with-libdb=DIR        root of the Berkeley DB directory
1447
1448Some influential environment variables:
1449  CC          C compiler command
1450  CFLAGS      C compiler flags
1451  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1452              nonstandard directory <lib dir>
1453  LIBS        libraries to pass to the linker, e.g. -l<library>
1454  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455              you have headers in a nonstandard directory <include dir>
1456  CPP         C preprocessor
1457  CXX         C++ compiler command
1458  CXXFLAGS    C++ compiler flags
1459  CXXCPP      C++ preprocessor
1460  PKG_CONFIG  path to pkg-config utility
1461  PKG_CONFIG_PATH
1462              directories to add to pkg-config's search path
1463  PKG_CONFIG_LIBDIR
1464              path overriding pkg-config's built-in search path
1465  GDBM_CFLAGS C compiler flags for GDBM, overriding pkg-config
1466  GDBM_LIBS   linker flags for GDBM, overriding pkg-config
1467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
1471Report bugs to <tlinden@cpan.org>.
1472_ACEOF
1473ac_status=$?
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477  # If there are subdirs, report their specific --help.
1478  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479    test -d "$ac_dir" ||
1480      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481      continue
1482    ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488  # A ".." for each directory in $ac_dir_suffix.
1489  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490  case $ac_top_builddir_sub in
1491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493  esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501  .)  # We are building in place.
1502    ac_srcdir=.
1503    ac_top_srcdir=$ac_top_builddir_sub
1504    ac_abs_top_srcdir=$ac_pwd ;;
1505  [\\/]* | ?:[\\/]* )  # Absolute name.
1506    ac_srcdir=$srcdir$ac_dir_suffix;
1507    ac_top_srcdir=$srcdir
1508    ac_abs_top_srcdir=$srcdir ;;
1509  *) # Relative name.
1510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511    ac_top_srcdir=$ac_top_build_prefix$srcdir
1512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516    cd "$ac_dir" || { ac_status=$?; continue; }
1517    # Check for guested configure.
1518    if test -f "$ac_srcdir/configure.gnu"; then
1519      echo &&
1520      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521    elif test -f "$ac_srcdir/configure"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure" --help=recursive
1524    else
1525      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526    fi || ac_status=$?
1527    cd "$ac_pwd" || { ac_status=$?; break; }
1528  done
1529fi
1530
1531test -n "$ac_init_help" && exit $ac_status
1532if $ac_init_version; then
1533  cat <<\_ACEOF
1534dbtool configure 1.9.1
1535generated by GNU Autoconf 2.69
1536
1537Copyright (C) 2012 Free Software Foundation, Inc.
1538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
1540_ACEOF
1541  exit
1542fi
1543
1544## ------------------------ ##
1545## Autoconf initialization. ##
1546## ------------------------ ##
1547
1548# ac_fn_c_try_compile LINENO
1549# --------------------------
1550# Try to compile conftest.$ac_ext, and return whether this succeeded.
1551ac_fn_c_try_compile ()
1552{
1553  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554  rm -f conftest.$ac_objext
1555  if { { ac_try="$ac_compile"
1556case "(($ac_try" in
1557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558  *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562  (eval "$ac_compile") 2>conftest.err
1563  ac_status=$?
1564  if test -s conftest.err; then
1565    grep -v '^ *+' conftest.err >conftest.er1
1566    cat conftest.er1 >&5
1567    mv -f conftest.er1 conftest.err
1568  fi
1569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570  test $ac_status = 0; } && {
1571	 test -z "$ac_c_werror_flag" ||
1572	 test ! -s conftest.err
1573       } && test -s conftest.$ac_objext; then :
1574  ac_retval=0
1575else
1576  $as_echo "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
1578
1579	ac_retval=1
1580fi
1581  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582  as_fn_set_status $ac_retval
1583
1584} # ac_fn_c_try_compile
1585
1586# ac_fn_c_try_link LINENO
1587# -----------------------
1588# Try to link conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_link ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  rm -f conftest.$ac_objext conftest$ac_exeext
1593  if { { ac_try="$ac_link"
1594case "(($ac_try" in
1595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596  *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600  (eval "$ac_link") 2>conftest.err
1601  ac_status=$?
1602  if test -s conftest.err; then
1603    grep -v '^ *+' conftest.err >conftest.er1
1604    cat conftest.er1 >&5
1605    mv -f conftest.er1 conftest.err
1606  fi
1607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608  test $ac_status = 0; } && {
1609	 test -z "$ac_c_werror_flag" ||
1610	 test ! -s conftest.err
1611       } && test -s conftest$ac_exeext && {
1612	 test "$cross_compiling" = yes ||
1613	 test -x conftest$ac_exeext
1614       }; then :
1615  ac_retval=0
1616else
1617  $as_echo "$as_me: failed program was:" >&5
1618sed 's/^/| /' conftest.$ac_ext >&5
1619
1620	ac_retval=1
1621fi
1622  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1623  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1624  # interfere with the next link command; also delete a directory that is
1625  # left behind by Apple's compiler.  We do this before executing the actions.
1626  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628  as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_link
1631
1632# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633# -------------------------------------------------------
1634# Tests whether HEADER exists and can be compiled using the include files in
1635# INCLUDES, setting the cache variable VAR accordingly.
1636ac_fn_c_check_header_compile ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640$as_echo_n "checking for $2... " >&6; }
1641if eval \${$3+:} false; then :
1642  $as_echo_n "(cached) " >&6
1643else
1644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h.  */
1646$4
1647#include <$2>
1648_ACEOF
1649if ac_fn_c_try_compile "$LINENO"; then :
1650  eval "$3=yes"
1651else
1652  eval "$3=no"
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655fi
1656eval ac_res=\$$3
1657	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658$as_echo "$ac_res" >&6; }
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661} # ac_fn_c_check_header_compile
1662
1663# ac_fn_c_try_cpp LINENO
1664# ----------------------
1665# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_cpp ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  if { { ac_try="$ac_cpp conftest.$ac_ext"
1670case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677  ac_status=$?
1678  if test -s conftest.err; then
1679    grep -v '^ *+' conftest.err >conftest.er1
1680    cat conftest.er1 >&5
1681    mv -f conftest.er1 conftest.err
1682  fi
1683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684  test $ac_status = 0; } > conftest.i && {
1685	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686	 test ! -s conftest.err
1687       }; then :
1688  ac_retval=0
1689else
1690  $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693    ac_retval=1
1694fi
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696  as_fn_set_status $ac_retval
1697
1698} # ac_fn_c_try_cpp
1699
1700# ac_fn_c_try_run LINENO
1701# ----------------------
1702# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703# that executables *can* be run.
1704ac_fn_c_try_run ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  if { { ac_try="$ac_link"
1708case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_link") 2>&5
1715  ac_status=$?
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718  { { case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_try") 2>&5
1725  ac_status=$?
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; }; }; then :
1728  ac_retval=0
1729else
1730  $as_echo "$as_me: program exited with status $ac_status" >&5
1731       $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734       ac_retval=$ac_status
1735fi
1736  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738  as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_run
1741
1742# ac_fn_c_check_func LINENO FUNC VAR
1743# ----------------------------------
1744# Tests whether FUNC exists, setting the cache variable VAR accordingly
1745ac_fn_c_check_func ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757#define $2 innocuous_$2
1758
1759/* System header to define __stub macros and hopefully few prototypes,
1760    which can conflict with char $2 (); below.
1761    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762    <limits.h> exists even on freestanding compilers.  */
1763
1764#ifdef __STDC__
1765# include <limits.h>
1766#else
1767# include <assert.h>
1768#endif
1769
1770#undef $2
1771
1772/* Override any GCC internal prototype to avoid an error.
1773   Use char because int might match the return type of a GCC
1774   builtin and then its argument prototype would still apply.  */
1775#ifdef __cplusplus
1776extern "C"
1777#endif
1778char $2 ();
1779/* The GNU C library defines this for functions which it implements
1780    to always fail with ENOSYS.  Some functions are actually named
1781    something starting with __ and the normal name is an alias.  */
1782#if defined __stub_$2 || defined __stub___$2
1783choke me
1784#endif
1785
1786int
1787main ()
1788{
1789return $2 ();
1790  ;
1791  return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_link "$LINENO"; then :
1795  eval "$3=yes"
1796else
1797  eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext \
1800    conftest$ac_exeext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807} # ac_fn_c_check_func
1808
1809# ac_fn_cxx_try_compile LINENO
1810# ----------------------------
1811# Try to compile conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_cxx_try_compile ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  rm -f conftest.$ac_objext
1816  if { { ac_try="$ac_compile"
1817case "(($ac_try" in
1818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819  *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823  (eval "$ac_compile") 2>conftest.err
1824  ac_status=$?
1825  if test -s conftest.err; then
1826    grep -v '^ *+' conftest.err >conftest.er1
1827    cat conftest.er1 >&5
1828    mv -f conftest.er1 conftest.err
1829  fi
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; } && {
1832	 test -z "$ac_cxx_werror_flag" ||
1833	 test ! -s conftest.err
1834       } && test -s conftest.$ac_objext; then :
1835  ac_retval=0
1836else
1837  $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840	ac_retval=1
1841fi
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843  as_fn_set_status $ac_retval
1844
1845} # ac_fn_cxx_try_compile
1846
1847# ac_fn_cxx_try_cpp LINENO
1848# ------------------------
1849# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_cxx_try_cpp ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  if { { ac_try="$ac_cpp conftest.$ac_ext"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1861  ac_status=$?
1862  if test -s conftest.err; then
1863    grep -v '^ *+' conftest.err >conftest.er1
1864    cat conftest.er1 >&5
1865    mv -f conftest.er1 conftest.err
1866  fi
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } > conftest.i && {
1869	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1870	 test ! -s conftest.err
1871       }; then :
1872  ac_retval=0
1873else
1874  $as_echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877    ac_retval=1
1878fi
1879  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880  as_fn_set_status $ac_retval
1881
1882} # ac_fn_cxx_try_cpp
1883
1884# ac_fn_cxx_try_link LINENO
1885# -------------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded.
1887ac_fn_cxx_try_link ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  rm -f conftest.$ac_objext conftest$ac_exeext
1891  if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894  *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898  (eval "$ac_link") 2>conftest.err
1899  ac_status=$?
1900  if test -s conftest.err; then
1901    grep -v '^ *+' conftest.err >conftest.er1
1902    cat conftest.er1 >&5
1903    mv -f conftest.er1 conftest.err
1904  fi
1905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906  test $ac_status = 0; } && {
1907	 test -z "$ac_cxx_werror_flag" ||
1908	 test ! -s conftest.err
1909       } && test -s conftest$ac_exeext && {
1910	 test "$cross_compiling" = yes ||
1911	 test -x conftest$ac_exeext
1912       }; then :
1913  ac_retval=0
1914else
1915  $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918	ac_retval=1
1919fi
1920  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922  # interfere with the next link command; also delete a directory that is
1923  # left behind by Apple's compiler.  We do this before executing the actions.
1924  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926  as_fn_set_status $ac_retval
1927
1928} # ac_fn_cxx_try_link
1929
1930# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931# -------------------------------------------------------
1932# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933# the include files in INCLUDES and setting the cache variable VAR
1934# accordingly.
1935ac_fn_c_check_header_mongrel ()
1936{
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  if eval \${$3+:} false; then :
1939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940$as_echo_n "checking for $2... " >&6; }
1941if eval \${$3+:} false; then :
1942  $as_echo_n "(cached) " >&6
1943fi
1944eval ac_res=\$$3
1945	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
1947else
1948  # Is the header compilable?
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950$as_echo_n "checking $2 usability... " >&6; }
1951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h.  */
1953$4
1954#include <$2>
1955_ACEOF
1956if ac_fn_c_try_compile "$LINENO"; then :
1957  ac_header_compiler=yes
1958else
1959  ac_header_compiler=no
1960fi
1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963$as_echo "$ac_header_compiler" >&6; }
1964
1965# Is the header present?
1966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967$as_echo_n "checking $2 presence... " >&6; }
1968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h.  */
1970#include <$2>
1971_ACEOF
1972if ac_fn_c_try_cpp "$LINENO"; then :
1973  ac_header_preproc=yes
1974else
1975  ac_header_preproc=no
1976fi
1977rm -f conftest.err conftest.i conftest.$ac_ext
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979$as_echo "$ac_header_preproc" >&6; }
1980
1981# So?  What about this header?
1982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983  yes:no: )
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988    ;;
1989  no:yes:* )
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1993$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1994    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1997$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000( $as_echo "## ------------------------------- ##
2001## Report this to tlinden@cpan.org ##
2002## ------------------------------- ##"
2003     ) | sed "s/^/$as_me: WARNING:     /" >&2
2004    ;;
2005esac
2006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if eval \${$3+:} false; then :
2009  $as_echo_n "(cached) " >&6
2010else
2011  eval "$3=\$ac_header_compiler"
2012fi
2013eval ac_res=\$$3
2014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016fi
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019} # ac_fn_c_check_header_mongrel
2020
2021# ac_fn_cxx_check_func LINENO FUNC VAR
2022# ------------------------------------
2023# Tests whether FUNC exists, setting the cache variable VAR accordingly
2024ac_fn_cxx_check_func ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if eval \${$3+:} false; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2036#define $2 innocuous_$2
2037
2038/* System header to define __stub macros and hopefully few prototypes,
2039    which can conflict with char $2 (); below.
2040    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041    <limits.h> exists even on freestanding compilers.  */
2042
2043#ifdef __STDC__
2044# include <limits.h>
2045#else
2046# include <assert.h>
2047#endif
2048
2049#undef $2
2050
2051/* Override any GCC internal prototype to avoid an error.
2052   Use char because int might match the return type of a GCC
2053   builtin and then its argument prototype would still apply.  */
2054#ifdef __cplusplus
2055extern "C"
2056#endif
2057char $2 ();
2058/* The GNU C library defines this for functions which it implements
2059    to always fail with ENOSYS.  Some functions are actually named
2060    something starting with __ and the normal name is an alias.  */
2061#if defined __stub_$2 || defined __stub___$2
2062choke me
2063#endif
2064
2065int
2066main ()
2067{
2068return $2 ();
2069  ;
2070  return 0;
2071}
2072_ACEOF
2073if ac_fn_cxx_try_link "$LINENO"; then :
2074  eval "$3=yes"
2075else
2076  eval "$3=no"
2077fi
2078rm -f core conftest.err conftest.$ac_objext \
2079    conftest$ac_exeext conftest.$ac_ext
2080fi
2081eval ac_res=\$$3
2082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
2084  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086} # ac_fn_cxx_check_func
2087cat >config.log <<_ACEOF
2088This file contains any messages produced by compilers while
2089running configure, to aid debugging if configure makes a mistake.
2090
2091It was created by dbtool $as_me 1.9.1, which was
2092generated by GNU Autoconf 2.69.  Invocation command line was
2093
2094  $ $0 $@
2095
2096_ACEOF
2097exec 5>>config.log
2098{
2099cat <<_ASUNAME
2100## --------- ##
2101## Platform. ##
2102## --------- ##
2103
2104hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2105uname -m = `(uname -m) 2>/dev/null || echo unknown`
2106uname -r = `(uname -r) 2>/dev/null || echo unknown`
2107uname -s = `(uname -s) 2>/dev/null || echo unknown`
2108uname -v = `(uname -v) 2>/dev/null || echo unknown`
2109
2110/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2111/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2112
2113/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2114/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2115/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2116/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2117/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2118/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2119/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2120
2121_ASUNAME
2122
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126  IFS=$as_save_IFS
2127  test -z "$as_dir" && as_dir=.
2128    $as_echo "PATH: $as_dir"
2129  done
2130IFS=$as_save_IFS
2131
2132} >&5
2133
2134cat >&5 <<_ACEOF
2135
2136
2137## ----------- ##
2138## Core tests. ##
2139## ----------- ##
2140
2141_ACEOF
2142
2143
2144# Keep a trace of the command line.
2145# Strip out --no-create and --no-recursion so they do not pile up.
2146# Strip out --silent because we don't want to record it for future runs.
2147# Also quote any args containing shell meta-characters.
2148# Make two passes to allow for proper duplicate-argument suppression.
2149ac_configure_args=
2150ac_configure_args0=
2151ac_configure_args1=
2152ac_must_keep_next=false
2153for ac_pass in 1 2
2154do
2155  for ac_arg
2156  do
2157    case $ac_arg in
2158    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2159    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2160    | -silent | --silent | --silen | --sile | --sil)
2161      continue ;;
2162    *\'*)
2163      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2164    esac
2165    case $ac_pass in
2166    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2167    2)
2168      as_fn_append ac_configure_args1 " '$ac_arg'"
2169      if test $ac_must_keep_next = true; then
2170	ac_must_keep_next=false # Got value, back to normal.
2171      else
2172	case $ac_arg in
2173	  *=* | --config-cache | -C | -disable-* | --disable-* \
2174	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2175	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2176	  | -with-* | --with-* | -without-* | --without-* | --x)
2177	    case "$ac_configure_args0 " in
2178	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2179	    esac
2180	    ;;
2181	  -* ) ac_must_keep_next=true ;;
2182	esac
2183      fi
2184      as_fn_append ac_configure_args " '$ac_arg'"
2185      ;;
2186    esac
2187  done
2188done
2189{ ac_configure_args0=; unset ac_configure_args0;}
2190{ ac_configure_args1=; unset ac_configure_args1;}
2191
2192# When interrupted or exit'd, cleanup temporary files, and complete
2193# config.log.  We remove comments because anyway the quotes in there
2194# would cause problems or look ugly.
2195# WARNING: Use '\'' to represent an apostrophe within the trap.
2196# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2197trap 'exit_status=$?
2198  # Save into config.log some information that might help in debugging.
2199  {
2200    echo
2201
2202    $as_echo "## ---------------- ##
2203## Cache variables. ##
2204## ---------------- ##"
2205    echo
2206    # The following way of writing the cache mishandles newlines in values,
2207(
2208  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2209    eval ac_val=\$$ac_var
2210    case $ac_val in #(
2211    *${as_nl}*)
2212      case $ac_var in #(
2213      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2215      esac
2216      case $ac_var in #(
2217      _ | IFS | as_nl) ;; #(
2218      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2219      *) { eval $ac_var=; unset $ac_var;} ;;
2220      esac ;;
2221    esac
2222  done
2223  (set) 2>&1 |
2224    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2225    *${as_nl}ac_space=\ *)
2226      sed -n \
2227	"s/'\''/'\''\\\\'\'''\''/g;
2228	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2229      ;; #(
2230    *)
2231      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2232      ;;
2233    esac |
2234    sort
2235)
2236    echo
2237
2238    $as_echo "## ----------------- ##
2239## Output variables. ##
2240## ----------------- ##"
2241    echo
2242    for ac_var in $ac_subst_vars
2243    do
2244      eval ac_val=\$$ac_var
2245      case $ac_val in
2246      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247      esac
2248      $as_echo "$ac_var='\''$ac_val'\''"
2249    done | sort
2250    echo
2251
2252    if test -n "$ac_subst_files"; then
2253      $as_echo "## ------------------- ##
2254## File substitutions. ##
2255## ------------------- ##"
2256      echo
2257      for ac_var in $ac_subst_files
2258      do
2259	eval ac_val=\$$ac_var
2260	case $ac_val in
2261	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262	esac
2263	$as_echo "$ac_var='\''$ac_val'\''"
2264      done | sort
2265      echo
2266    fi
2267
2268    if test -s confdefs.h; then
2269      $as_echo "## ----------- ##
2270## confdefs.h. ##
2271## ----------- ##"
2272      echo
2273      cat confdefs.h
2274      echo
2275    fi
2276    test "$ac_signal" != 0 &&
2277      $as_echo "$as_me: caught signal $ac_signal"
2278    $as_echo "$as_me: exit $exit_status"
2279  } >&5
2280  rm -f core *.core core.conftest.* &&
2281    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2282    exit $exit_status
2283' 0
2284for ac_signal in 1 2 13 15; do
2285  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2286done
2287ac_signal=0
2288
2289# confdefs.h avoids OS command line length limits that DEFS can exceed.
2290rm -f -r conftest* confdefs.h
2291
2292$as_echo "/* confdefs.h */" > confdefs.h
2293
2294# Predefined preprocessor variables.
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_NAME "$PACKAGE_NAME"
2298_ACEOF
2299
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2302_ACEOF
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_VERSION "$PACKAGE_VERSION"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_STRING "$PACKAGE_STRING"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2314_ACEOF
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_URL "$PACKAGE_URL"
2318_ACEOF
2319
2320
2321# Let the site file select an alternate cache file if it wants to.
2322# Prefer an explicitly selected file to automatically selected ones.
2323ac_site_file1=NONE
2324ac_site_file2=NONE
2325if test -n "$CONFIG_SITE"; then
2326  # We do not want a PATH search for config.site.
2327  case $CONFIG_SITE in #((
2328    -*)  ac_site_file1=./$CONFIG_SITE;;
2329    */*) ac_site_file1=$CONFIG_SITE;;
2330    *)   ac_site_file1=./$CONFIG_SITE;;
2331  esac
2332elif test "x$prefix" != xNONE; then
2333  ac_site_file1=$prefix/share/config.site
2334  ac_site_file2=$prefix/etc/config.site
2335else
2336  ac_site_file1=$ac_default_prefix/share/config.site
2337  ac_site_file2=$ac_default_prefix/etc/config.site
2338fi
2339for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2340do
2341  test "x$ac_site_file" = xNONE && continue
2342  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2343    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2344$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2345    sed 's/^/| /' "$ac_site_file" >&5
2346    . "$ac_site_file" \
2347      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349as_fn_error $? "failed to load site script $ac_site_file
2350See \`config.log' for more details" "$LINENO" 5; }
2351  fi
2352done
2353
2354if test -r "$cache_file"; then
2355  # Some versions of bash will fail to source /dev/null (special files
2356  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2357  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2358    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2359$as_echo "$as_me: loading cache $cache_file" >&6;}
2360    case $cache_file in
2361      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2362      *)                      . "./$cache_file";;
2363    esac
2364  fi
2365else
2366  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2367$as_echo "$as_me: creating cache $cache_file" >&6;}
2368  >$cache_file
2369fi
2370
2371# Check that the precious variables saved in the cache have kept the same
2372# value.
2373ac_cache_corrupted=false
2374for ac_var in $ac_precious_vars; do
2375  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2376  eval ac_new_set=\$ac_env_${ac_var}_set
2377  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2378  eval ac_new_val=\$ac_env_${ac_var}_value
2379  case $ac_old_set,$ac_new_set in
2380    set,)
2381      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2382$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2383      ac_cache_corrupted=: ;;
2384    ,set)
2385      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2386$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2387      ac_cache_corrupted=: ;;
2388    ,);;
2389    *)
2390      if test "x$ac_old_val" != "x$ac_new_val"; then
2391	# differences in whitespace do not lead to failure.
2392	ac_old_val_w=`echo x $ac_old_val`
2393	ac_new_val_w=`echo x $ac_new_val`
2394	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2395	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2396$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2397	  ac_cache_corrupted=:
2398	else
2399	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2400$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2401	  eval $ac_var=\$ac_old_val
2402	fi
2403	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2404$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2405	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2406$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2407      fi;;
2408  esac
2409  # Pass precious variables to config.status.
2410  if test "$ac_new_set" = set; then
2411    case $ac_new_val in
2412    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2413    *) ac_arg=$ac_var=$ac_new_val ;;
2414    esac
2415    case " $ac_configure_args " in
2416      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2417      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2418    esac
2419  fi
2420done
2421if $ac_cache_corrupted; then
2422  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2425$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2426  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2427fi
2428## -------------------- ##
2429## Main body of script. ##
2430## -------------------- ##
2431
2432ac_ext=c
2433ac_cpp='$CPP $CPPFLAGS'
2434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437
2438
2439
2440ac_aux_dir=
2441for ac_dir in config "$srcdir"/config; do
2442  if test -f "$ac_dir/install-sh"; then
2443    ac_aux_dir=$ac_dir
2444    ac_install_sh="$ac_aux_dir/install-sh -c"
2445    break
2446  elif test -f "$ac_dir/install.sh"; then
2447    ac_aux_dir=$ac_dir
2448    ac_install_sh="$ac_aux_dir/install.sh -c"
2449    break
2450  elif test -f "$ac_dir/shtool"; then
2451    ac_aux_dir=$ac_dir
2452    ac_install_sh="$ac_aux_dir/shtool install -c"
2453    break
2454  fi
2455done
2456if test -z "$ac_aux_dir"; then
2457  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2458fi
2459
2460# These three variables are undocumented and unsupported,
2461# and are intended to be withdrawn in a future Autoconf release.
2462# They can cause serious problems if a builder's source tree is in a directory
2463# whose full name contains unusual characters.
2464ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2465ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2466ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2467
2468
2469
2470ac_config_headers="$ac_config_headers platform.h"
2471
2472
2473am__api_version='1.12'
2474
2475# Find a good install program.  We prefer a C program (faster),
2476# so one script is as good as another.  But avoid the broken or
2477# incompatible versions:
2478# SysV /etc/install, /usr/sbin/install
2479# SunOS /usr/etc/install
2480# IRIX /sbin/install
2481# AIX /bin/install
2482# AmigaOS /C/install, which installs bootblocks on floppy discs
2483# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2484# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2485# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2486# OS/2's system install, which has a completely different semantic
2487# ./install, which can be erroneously created by make from ./install.sh.
2488# Reject install programs that cannot install multiple files.
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2490$as_echo_n "checking for a BSD-compatible install... " >&6; }
2491if test -z "$INSTALL"; then
2492if ${ac_cv_path_install+:} false; then :
2493  $as_echo_n "(cached) " >&6
2494else
2495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498  IFS=$as_save_IFS
2499  test -z "$as_dir" && as_dir=.
2500    # Account for people who put trailing slashes in PATH elements.
2501case $as_dir/ in #((
2502  ./ | .// | /[cC]/* | \
2503  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2504  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2505  /usr/ucb/* ) ;;
2506  *)
2507    # OSF1 and SCO ODT 3.0 have their own names for install.
2508    # Don't use installbsd from OSF since it installs stuff as root
2509    # by default.
2510    for ac_prog in ginstall scoinst install; do
2511      for ac_exec_ext in '' $ac_executable_extensions; do
2512	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2513	  if test $ac_prog = install &&
2514	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515	    # AIX install.  It has an incompatible calling convention.
2516	    :
2517	  elif test $ac_prog = install &&
2518	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519	    # program-specific install script used by HP pwplus--don't use.
2520	    :
2521	  else
2522	    rm -rf conftest.one conftest.two conftest.dir
2523	    echo one > conftest.one
2524	    echo two > conftest.two
2525	    mkdir conftest.dir
2526	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2527	      test -s conftest.one && test -s conftest.two &&
2528	      test -s conftest.dir/conftest.one &&
2529	      test -s conftest.dir/conftest.two
2530	    then
2531	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532	      break 3
2533	    fi
2534	  fi
2535	fi
2536      done
2537    done
2538    ;;
2539esac
2540
2541  done
2542IFS=$as_save_IFS
2543
2544rm -rf conftest.one conftest.two conftest.dir
2545
2546fi
2547  if test "${ac_cv_path_install+set}" = set; then
2548    INSTALL=$ac_cv_path_install
2549  else
2550    # As a last resort, use the slow shell script.  Don't cache a
2551    # value for INSTALL within a source directory, because that will
2552    # break other packages using the cache if that directory is
2553    # removed, or if the value is a relative name.
2554    INSTALL=$ac_install_sh
2555  fi
2556fi
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2558$as_echo "$INSTALL" >&6; }
2559
2560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561# It thinks the first close brace ends the variable substitution.
2562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
2564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565
2566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2569$as_echo_n "checking whether build environment is sane... " >&6; }
2570# Reject unsafe characters in $srcdir or the absolute working directory
2571# name.  Accept space and tab only in the latter.
2572am_lf='
2573'
2574case `pwd` in
2575  *[\\\"\#\$\&\'\`$am_lf]*)
2576    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2577esac
2578case $srcdir in
2579  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2580    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2581esac
2582
2583# Do 'set' in a subshell so we don't clobber the current shell's
2584# arguments.  Must try -L first in case configure is actually a
2585# symlink; some systems play weird games with the mod time of symlinks
2586# (eg FreeBSD returns the mod time of the symlink's containing
2587# directory).
2588if (
2589   am_has_slept=no
2590   for am_try in 1 2; do
2591     echo "timestamp, slept: $am_has_slept" > conftest.file
2592     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2593     if test "$*" = "X"; then
2594	# -L didn't work.
2595	set X `ls -t "$srcdir/configure" conftest.file`
2596     fi
2597     if test "$*" != "X $srcdir/configure conftest.file" \
2598	&& test "$*" != "X conftest.file $srcdir/configure"; then
2599
2600	# If neither matched, then we have a broken ls.  This can happen
2601	# if, for instance, CONFIG_SHELL is bash and it inherits a
2602	# broken ls alias from the environment.  This has actually
2603	# happened.  Such a system could not be considered "sane".
2604	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2605  alias in your environment" "$LINENO" 5
2606     fi
2607     if test "$2" = conftest.file || test $am_try -eq 2; then
2608       break
2609     fi
2610     # Just in case.
2611     sleep 1
2612     am_has_slept=yes
2613   done
2614   test "$2" = conftest.file
2615   )
2616then
2617   # Ok.
2618   :
2619else
2620   as_fn_error $? "newly created file is older than distributed files!
2621Check your system clock" "$LINENO" 5
2622fi
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624$as_echo "yes" >&6; }
2625# If we didn't sleep, we still need to ensure time stamps of config.status and
2626# generated files are strictly newer.
2627am_sleep_pid=
2628if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2629  ( sleep 1 ) &
2630  am_sleep_pid=$!
2631fi
2632
2633rm -f conftest.file
2634
2635test "$program_prefix" != NONE &&
2636  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2637# Use a double $ so make ignores it.
2638test "$program_suffix" != NONE &&
2639  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2640# Double any \ or $.
2641# By default was `s,x,x', remove it if useless.
2642ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2643program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2644
2645# expand $ac_aux_dir to an absolute path
2646am_aux_dir=`cd $ac_aux_dir && pwd`
2647
2648if test x"${MISSING+set}" != xset; then
2649  case $am_aux_dir in
2650  *\ * | *\	*)
2651    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2652  *)
2653    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2654  esac
2655fi
2656# Use eval to expand $SHELL
2657if eval "$MISSING --run true"; then
2658  am_missing_run="$MISSING --run "
2659else
2660  am_missing_run=
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2662$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2663fi
2664
2665if test x"${install_sh}" != xset; then
2666  case $am_aux_dir in
2667  *\ * | *\	*)
2668    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2669  *)
2670    install_sh="\${SHELL} $am_aux_dir/install-sh"
2671  esac
2672fi
2673
2674# Installed binaries are usually stripped using 'strip' when the user
2675# run "make install-strip".  However 'strip' might not be the right
2676# tool to use in cross-compilation environments, therefore Automake
2677# will honor the 'STRIP' environment variable to overrule this program.
2678if test "$cross_compiling" != no; then
2679  if test -n "$ac_tool_prefix"; then
2680  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}strip; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_STRIP+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  if test -n "$STRIP"; then
2688  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695    for ac_exec_ext in '' $ac_executable_extensions; do
2696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702  done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707STRIP=$ac_cv_prog_STRIP
2708if test -n "$STRIP"; then
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2710$as_echo "$STRIP" >&6; }
2711else
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717fi
2718if test -z "$ac_cv_prog_STRIP"; then
2719  ac_ct_STRIP=$STRIP
2720  # Extract the first word of "strip", so it can be a program name with args.
2721set dummy strip; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  if test -n "$ac_ct_STRIP"; then
2728  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735    for ac_exec_ext in '' $ac_executable_extensions; do
2736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_ac_ct_STRIP="strip"
2738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2748if test -n "$ac_ct_STRIP"; then
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2750$as_echo "$ac_ct_STRIP" >&6; }
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756  if test "x$ac_ct_STRIP" = x; then
2757    STRIP=":"
2758  else
2759    case $cross_compiling:$ac_tool_warned in
2760yes:)
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763ac_tool_warned=yes ;;
2764esac
2765    STRIP=$ac_ct_STRIP
2766  fi
2767else
2768  STRIP="$ac_cv_prog_STRIP"
2769fi
2770
2771fi
2772INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2775$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2776if test -z "$MKDIR_P"; then
2777  if ${ac_cv_path_mkdir+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_prog in mkdir gmkdir; do
2786	 for ac_exec_ext in '' $ac_executable_extensions; do
2787	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2788	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2789	     'mkdir (GNU coreutils) '* | \
2790	     'mkdir (coreutils) '* | \
2791	     'mkdir (fileutils) '4.1*)
2792	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2793	       break 3;;
2794	   esac
2795	 done
2796       done
2797  done
2798IFS=$as_save_IFS
2799
2800fi
2801
2802  test -d ./--version && rmdir ./--version
2803  if test "${ac_cv_path_mkdir+set}" = set; then
2804    MKDIR_P="$ac_cv_path_mkdir -p"
2805  else
2806    # As a last resort, use the slow shell script.  Don't cache a
2807    # value for MKDIR_P within a source directory, because that will
2808    # break other packages using the cache if that directory is
2809    # removed, or if the value is a relative name.
2810    MKDIR_P="$ac_install_sh -d"
2811  fi
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2814$as_echo "$MKDIR_P" >&6; }
2815
2816for ac_prog in gawk mawk nawk awk
2817do
2818  # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_AWK+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$AWK"; then
2826  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    for ac_exec_ext in '' $ac_executable_extensions; do
2834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835    ac_cv_prog_AWK="$ac_prog"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845AWK=$ac_cv_prog_AWK
2846if test -n "$AWK"; then
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848$as_echo "$AWK" >&6; }
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855  test -n "$AWK" && break
2856done
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860set x ${MAKE-make}
2861ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  cat >conftest.make <<\_ACEOF
2866SHELL = /bin/sh
2867all:
2868	@echo '@@@%%%=$(MAKE)=@@@%%%'
2869_ACEOF
2870# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2871case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872  *@@@%%%=?*=@@@%%%*)
2873    eval ac_cv_prog_make_${ac_make}_set=yes;;
2874  *)
2875    eval ac_cv_prog_make_${ac_make}_set=no;;
2876esac
2877rm -f conftest.make
2878fi
2879if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882  SET_MAKE=
2883else
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885$as_echo "no" >&6; }
2886  SET_MAKE="MAKE=${MAKE-make}"
2887fi
2888
2889rm -rf .tst 2>/dev/null
2890mkdir .tst 2>/dev/null
2891if test -d .tst; then
2892  am__leading_dot=.
2893else
2894  am__leading_dot=_
2895fi
2896rmdir .tst 2>/dev/null
2897
2898if test "`cd $srcdir && pwd`" != "`pwd`"; then
2899  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2900  # is not polluted with repeated "-I."
2901  am__isrc=' -I$(srcdir)'
2902  # test to see if srcdir already configured
2903  if test -f $srcdir/config.status; then
2904    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2905  fi
2906fi
2907
2908# test whether we have cygpath
2909if test -z "$CYGPATH_W"; then
2910  if (cygpath --version) >/dev/null 2>/dev/null; then
2911    CYGPATH_W='cygpath -w'
2912  else
2913    CYGPATH_W=echo
2914  fi
2915fi
2916
2917
2918# Define the identity of the package.
2919 PACKAGE='dbtool'
2920 VERSION='1.9.1'
2921
2922
2923cat >>confdefs.h <<_ACEOF
2924#define PACKAGE "$PACKAGE"
2925_ACEOF
2926
2927
2928cat >>confdefs.h <<_ACEOF
2929#define VERSION "$VERSION"
2930_ACEOF
2931
2932# Some tools Automake needs.
2933
2934ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2935
2936
2937AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2938
2939
2940AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2941
2942
2943AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2944
2945
2946MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2947
2948# For better backward compatibility.  To be removed once Automake 1.9.x
2949# dies out for good.  For more background, see:
2950# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2951# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2952mkdir_p='$(MKDIR_P)'
2953
2954# We need awk for the "check" target.  The system "awk" is bad on
2955# some platforms.
2956# Always define AMTAR for backward compatibility.  Yes, it's still used
2957# in the wild :-(  We should find a proper way to deprecate it ...
2958AMTAR='$${TAR-tar}'
2959
2960am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2961
2962
2963
2964
2965
2966case `pwd` in
2967  *\ * | *\	*)
2968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2969$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2970esac
2971
2972
2973
2974macro_version='2.4.2'
2975macro_revision='1.3337'
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989ltmain="$ac_aux_dir/ltmain.sh"
2990
2991# Make sure we can run config.sub.
2992$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2993  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2994
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2996$as_echo_n "checking build system type... " >&6; }
2997if ${ac_cv_build+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  ac_build_alias=$build_alias
3001test "x$ac_build_alias" = x &&
3002  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3003test "x$ac_build_alias" = x &&
3004  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3005ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3006  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3007
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3010$as_echo "$ac_cv_build" >&6; }
3011case $ac_cv_build in
3012*-*-*) ;;
3013*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3014esac
3015build=$ac_cv_build
3016ac_save_IFS=$IFS; IFS='-'
3017set x $ac_cv_build
3018shift
3019build_cpu=$1
3020build_vendor=$2
3021shift; shift
3022# Remember, the first character of IFS is used to create $*,
3023# except with old shells:
3024build_os=$*
3025IFS=$ac_save_IFS
3026case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3027
3028
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3030$as_echo_n "checking host system type... " >&6; }
3031if ${ac_cv_host+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test "x$host_alias" = x; then
3035  ac_cv_host=$ac_cv_build
3036else
3037  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3038    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3039fi
3040
3041fi
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3043$as_echo "$ac_cv_host" >&6; }
3044case $ac_cv_host in
3045*-*-*) ;;
3046*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3047esac
3048host=$ac_cv_host
3049ac_save_IFS=$IFS; IFS='-'
3050set x $ac_cv_host
3051shift
3052host_cpu=$1
3053host_vendor=$2
3054shift; shift
3055# Remember, the first character of IFS is used to create $*,
3056# except with old shells:
3057host_os=$*
3058IFS=$ac_save_IFS
3059case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3060
3061
3062# Backslashify metacharacters that are still active within
3063# double-quoted strings.
3064sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3065
3066# Same as above, but do not quote variable references.
3067double_quote_subst='s/\(["`\\]\)/\\\1/g'
3068
3069# Sed substitution to delay expansion of an escaped shell variable in a
3070# double_quote_subst'ed string.
3071delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3072
3073# Sed substitution to delay expansion of an escaped single quote.
3074delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3075
3076# Sed substitution to avoid accidental globbing in evaled expressions
3077no_glob_subst='s/\*/\\\*/g'
3078
3079ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3080ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3081ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3082
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3084$as_echo_n "checking how to print strings... " >&6; }
3085# Test print first, because it will be a builtin if present.
3086if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3087   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3088  ECHO='print -r --'
3089elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3090  ECHO='printf %s\n'
3091else
3092  # Use this function as a fallback that always works.
3093  func_fallback_echo ()
3094  {
3095    eval 'cat <<_LTECHO_EOF
3096$1
3097_LTECHO_EOF'
3098  }
3099  ECHO='func_fallback_echo'
3100fi
3101
3102# func_echo_all arg...
3103# Invoke $ECHO with all args, space-separated.
3104func_echo_all ()
3105{
3106    $ECHO ""
3107}
3108
3109case "$ECHO" in
3110  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3111$as_echo "printf" >&6; } ;;
3112  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3113$as_echo "print -r" >&6; } ;;
3114  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3115$as_echo "cat" >&6; } ;;
3116esac
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131DEPDIR="${am__leading_dot}deps"
3132
3133ac_config_commands="$ac_config_commands depfiles"
3134
3135
3136am_make=${MAKE-make}
3137cat > confinc << 'END'
3138am__doit:
3139	@echo this is the am__doit target
3140.PHONY: am__doit
3141END
3142# If we don't find an include directive, just comment out the code.
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3144$as_echo_n "checking for style of include used by $am_make... " >&6; }
3145am__include="#"
3146am__quote=
3147_am_result=none
3148# First try GNU make style include.
3149echo "include confinc" > confmf
3150# Ignore all kinds of additional output from 'make'.
3151case `$am_make -s -f confmf 2> /dev/null` in #(
3152*the\ am__doit\ target*)
3153  am__include=include
3154  am__quote=
3155  _am_result=GNU
3156  ;;
3157esac
3158# Now try BSD make style include.
3159if test "$am__include" = "#"; then
3160   echo '.include "confinc"' > confmf
3161   case `$am_make -s -f confmf 2> /dev/null` in #(
3162   *the\ am__doit\ target*)
3163     am__include=.include
3164     am__quote="\""
3165     _am_result=BSD
3166     ;;
3167   esac
3168fi
3169
3170
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3172$as_echo "$_am_result" >&6; }
3173rm -f confinc confmf
3174
3175# Check whether --enable-dependency-tracking was given.
3176if test "${enable_dependency_tracking+set}" = set; then :
3177  enableval=$enable_dependency_tracking;
3178fi
3179
3180if test "x$enable_dependency_tracking" != xno; then
3181  am_depcomp="$ac_aux_dir/depcomp"
3182  AMDEPBACKSLASH='\'
3183  am__nodep='_no'
3184fi
3185 if test "x$enable_dependency_tracking" != xno; then
3186  AMDEP_TRUE=
3187  AMDEP_FALSE='#'
3188else
3189  AMDEP_TRUE='#'
3190  AMDEP_FALSE=
3191fi
3192
3193
3194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199if test -n "$ac_tool_prefix"; then
3200  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3201set dummy ${ac_tool_prefix}gcc; ac_word=$2
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203$as_echo_n "checking for $ac_word... " >&6; }
3204if ${ac_cv_prog_CC+:} false; then :
3205  $as_echo_n "(cached) " >&6
3206else
3207  if test -n "$CC"; then
3208  ac_cv_prog_CC="$CC" # Let the user override the test.
3209else
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213  IFS=$as_save_IFS
3214  test -z "$as_dir" && as_dir=.
3215    for ac_exec_ext in '' $ac_executable_extensions; do
3216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219    break 2
3220  fi
3221done
3222  done
3223IFS=$as_save_IFS
3224
3225fi
3226fi
3227CC=$ac_cv_prog_CC
3228if test -n "$CC"; then
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230$as_echo "$CC" >&6; }
3231else
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233$as_echo "no" >&6; }
3234fi
3235
3236
3237fi
3238if test -z "$ac_cv_prog_CC"; then
3239  ac_ct_CC=$CC
3240  # Extract the first word of "gcc", so it can be a program name with args.
3241set dummy gcc; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if ${ac_cv_prog_ac_ct_CC+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  if test -n "$ac_ct_CC"; then
3248  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257    ac_cv_prog_ac_ct_CC="gcc"
3258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262  done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268if test -n "$ac_ct_CC"; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270$as_echo "$ac_ct_CC" >&6; }
3271else
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276  if test "x$ac_ct_CC" = x; then
3277    CC=""
3278  else
3279    case $cross_compiling:$ac_tool_warned in
3280yes:)
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283ac_tool_warned=yes ;;
3284esac
3285    CC=$ac_ct_CC
3286  fi
3287else
3288  CC="$ac_cv_prog_CC"
3289fi
3290
3291if test -z "$CC"; then
3292          if test -n "$ac_tool_prefix"; then
3293    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3294set dummy ${ac_tool_prefix}cc; ac_word=$2
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
3297if ${ac_cv_prog_CC+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if test -n "$CC"; then
3301  ac_cv_prog_CC="$CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310    ac_cv_prog_CC="${ac_tool_prefix}cc"
3311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323$as_echo "$CC" >&6; }
3324else
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330  fi
3331fi
3332if test -z "$CC"; then
3333  # Extract the first word of "cc", so it can be a program name with args.
3334set dummy cc; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if ${ac_cv_prog_CC+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$CC"; then
3341  ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343  ac_prog_rejected=no
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349    for ac_exec_ext in '' $ac_executable_extensions; do
3350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3352       ac_prog_rejected=yes
3353       continue
3354     fi
3355    ac_cv_prog_CC="cc"
3356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360  done
3361IFS=$as_save_IFS
3362
3363if test $ac_prog_rejected = yes; then
3364  # We found a bogon in the path, so make sure we never use it.
3365  set dummy $ac_cv_prog_CC
3366  shift
3367  if test $# != 0; then
3368    # We chose a different compiler from the bogus one.
3369    # However, it has the same basename, so the bogon will be chosen
3370    # first if we set CC to just the basename; use the full file name.
3371    shift
3372    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3373  fi
3374fi
3375fi
3376fi
3377CC=$ac_cv_prog_CC
3378if test -n "$CC"; then
3379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380$as_echo "$CC" >&6; }
3381else
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383$as_echo "no" >&6; }
3384fi
3385
3386
3387fi
3388if test -z "$CC"; then
3389  if test -n "$ac_tool_prefix"; then
3390  for ac_prog in cl.exe
3391  do
3392    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if ${ac_cv_prog_CC+:} false; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if test -n "$CC"; then
3400  ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405  IFS=$as_save_IFS
3406  test -z "$as_dir" && as_dir=.
3407    for ac_exec_ext in '' $ac_executable_extensions; do
3408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419CC=$ac_cv_prog_CC
3420if test -n "$CC"; then
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422$as_echo "$CC" >&6; }
3423else
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428
3429    test -n "$CC" && break
3430  done
3431fi
3432if test -z "$CC"; then
3433  ac_ct_CC=$CC
3434  for ac_prog in cl.exe
3435do
3436  # Extract the first word of "$ac_prog", so it can be a program name with args.
3437set dummy $ac_prog; ac_word=$2
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if ${ac_cv_prog_ac_ct_CC+:} false; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  if test -n "$ac_ct_CC"; then
3444  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445else
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449  IFS=$as_save_IFS
3450  test -z "$as_dir" && as_dir=.
3451    for ac_exec_ext in '' $ac_executable_extensions; do
3452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453    ac_cv_prog_ac_ct_CC="$ac_prog"
3454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455    break 2
3456  fi
3457done
3458  done
3459IFS=$as_save_IFS
3460
3461fi
3462fi
3463ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464if test -n "$ac_ct_CC"; then
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466$as_echo "$ac_ct_CC" >&6; }
3467else
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470fi
3471
3472
3473  test -n "$ac_ct_CC" && break
3474done
3475
3476  if test "x$ac_ct_CC" = x; then
3477    CC=""
3478  else
3479    case $cross_compiling:$ac_tool_warned in
3480yes:)
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483ac_tool_warned=yes ;;
3484esac
3485    CC=$ac_ct_CC
3486  fi
3487fi
3488
3489fi
3490
3491
3492test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494as_fn_error $? "no acceptable C compiler found in \$PATH
3495See \`config.log' for more details" "$LINENO" 5; }
3496
3497# Provide some information about the compiler.
3498$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3499set X $ac_compile
3500ac_compiler=$2
3501for ac_option in --version -v -V -qversion; do
3502  { { ac_try="$ac_compiler $ac_option >&5"
3503case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508$as_echo "$ac_try_echo"; } >&5
3509  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510  ac_status=$?
3511  if test -s conftest.err; then
3512    sed '10a\
3513... rest of stderr output deleted ...
3514         10q' conftest.err >conftest.er1
3515    cat conftest.er1 >&5
3516  fi
3517  rm -f conftest.er1 conftest.err
3518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }
3520done
3521
3522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533ac_clean_files_save=$ac_clean_files
3534ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3535# Try to create an executable without -o first, disregard a.out.
3536# It will help us diagnose broken compilers, and finding out an intuition
3537# of exeext.
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3539$as_echo_n "checking whether the C compiler works... " >&6; }
3540ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3541
3542# The possible output files:
3543ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3544
3545ac_rmfiles=
3546for ac_file in $ac_files
3547do
3548  case $ac_file in
3549    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3551  esac
3552done
3553rm -f $ac_rmfiles
3554
3555if { { ac_try="$ac_link_default"
3556case "(($ac_try" in
3557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558  *) ac_try_echo=$ac_try;;
3559esac
3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561$as_echo "$ac_try_echo"; } >&5
3562  (eval "$ac_link_default") 2>&5
3563  ac_status=$?
3564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565  test $ac_status = 0; }; then :
3566  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3567# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3568# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3569# so that the user can short-circuit this test for compilers unknown to
3570# Autoconf.
3571for ac_file in $ac_files ''
3572do
3573  test -f "$ac_file" || continue
3574  case $ac_file in
3575    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3576	;;
3577    [ab].out )
3578	# We found the default executable, but exeext='' is most
3579	# certainly right.
3580	break;;
3581    *.* )
3582	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3583	then :; else
3584	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585	fi
3586	# We set ac_cv_exeext here because the later test for it is not
3587	# safe: cross compilers may not add the suffix if given an `-o'
3588	# argument, so we may need to know it at that point already.
3589	# Even if this section looks crufty: it has the advantage of
3590	# actually working.
3591	break;;
3592    * )
3593	break;;
3594  esac
3595done
3596test "$ac_cv_exeext" = no && ac_cv_exeext=
3597
3598else
3599  ac_file=''
3600fi
3601if test -z "$ac_file"; then :
3602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603$as_echo "no" >&6; }
3604$as_echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609as_fn_error 77 "C compiler cannot create executables
3610See \`config.log' for more details" "$LINENO" 5; }
3611else
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613$as_echo "yes" >&6; }
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3616$as_echo_n "checking for C compiler default output file name... " >&6; }
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3618$as_echo "$ac_file" >&6; }
3619ac_exeext=$ac_cv_exeext
3620
3621rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3622ac_clean_files=$ac_clean_files_save
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3624$as_echo_n "checking for suffix of executables... " >&6; }
3625if { { ac_try="$ac_link"
3626case "(($ac_try" in
3627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628  *) ac_try_echo=$ac_try;;
3629esac
3630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631$as_echo "$ac_try_echo"; } >&5
3632  (eval "$ac_link") 2>&5
3633  ac_status=$?
3634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635  test $ac_status = 0; }; then :
3636  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3637# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3638# work properly (i.e., refer to `conftest.exe'), while it won't with
3639# `rm'.
3640for ac_file in conftest.exe conftest conftest.*; do
3641  test -f "$ac_file" || continue
3642  case $ac_file in
3643    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3644    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645	  break;;
3646    * ) break;;
3647  esac
3648done
3649else
3650  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3653See \`config.log' for more details" "$LINENO" 5; }
3654fi
3655rm -f conftest conftest$ac_cv_exeext
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3657$as_echo "$ac_cv_exeext" >&6; }
3658
3659rm -f conftest.$ac_ext
3660EXEEXT=$ac_cv_exeext
3661ac_exeext=$EXEEXT
3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664#include <stdio.h>
3665int
3666main ()
3667{
3668FILE *f = fopen ("conftest.out", "w");
3669 return ferror (f) || fclose (f) != 0;
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675ac_clean_files="$ac_clean_files conftest.out"
3676# Check that the compiler produces executables we can run.  If not, either
3677# the compiler is broken, or we cross compile.
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3679$as_echo_n "checking whether we are cross compiling... " >&6; }
3680if test "$cross_compiling" != yes; then
3681  { { ac_try="$ac_link"
3682case "(($ac_try" in
3683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684  *) ac_try_echo=$ac_try;;
3685esac
3686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687$as_echo "$ac_try_echo"; } >&5
3688  (eval "$ac_link") 2>&5
3689  ac_status=$?
3690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691  test $ac_status = 0; }
3692  if { ac_try='./conftest$ac_cv_exeext'
3693  { { case "(($ac_try" in
3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695  *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698$as_echo "$ac_try_echo"; } >&5
3699  (eval "$ac_try") 2>&5
3700  ac_status=$?
3701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702  test $ac_status = 0; }; }; then
3703    cross_compiling=no
3704  else
3705    if test "$cross_compiling" = maybe; then
3706	cross_compiling=yes
3707    else
3708	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710as_fn_error $? "cannot run C compiled programs.
3711If you meant to cross compile, use \`--host'.
3712See \`config.log' for more details" "$LINENO" 5; }
3713    fi
3714  fi
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3717$as_echo "$cross_compiling" >&6; }
3718
3719rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3720ac_clean_files=$ac_clean_files_save
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3722$as_echo_n "checking for suffix of object files... " >&6; }
3723if ${ac_cv_objext+:} false; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h.  */
3728
3729int
3730main ()
3731{
3732
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737rm -f conftest.o conftest.obj
3738if { { ac_try="$ac_compile"
3739case "(($ac_try" in
3740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741  *) ac_try_echo=$ac_try;;
3742esac
3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744$as_echo "$ac_try_echo"; } >&5
3745  (eval "$ac_compile") 2>&5
3746  ac_status=$?
3747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748  test $ac_status = 0; }; then :
3749  for ac_file in conftest.o conftest.obj conftest.*; do
3750  test -f "$ac_file" || continue;
3751  case $ac_file in
3752    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3753    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3754       break;;
3755  esac
3756done
3757else
3758  $as_echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763as_fn_error $? "cannot compute suffix of object files: cannot compile
3764See \`config.log' for more details" "$LINENO" 5; }
3765fi
3766rm -f conftest.$ac_cv_objext conftest.$ac_ext
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3769$as_echo "$ac_cv_objext" >&6; }
3770OBJEXT=$ac_cv_objext
3771ac_objext=$OBJEXT
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3773$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3774if ${ac_cv_c_compiler_gnu+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779
3780int
3781main ()
3782{
3783#ifndef __GNUC__
3784       choke me
3785#endif
3786
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792  ac_compiler_gnu=yes
3793else
3794  ac_compiler_gnu=no
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797ac_cv_c_compiler_gnu=$ac_compiler_gnu
3798
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3801$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3802if test $ac_compiler_gnu = yes; then
3803  GCC=yes
3804else
3805  GCC=
3806fi
3807ac_test_CFLAGS=${CFLAGS+set}
3808ac_save_CFLAGS=$CFLAGS
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3810$as_echo_n "checking whether $CC accepts -g... " >&6; }
3811if ${ac_cv_prog_cc_g+:} false; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  ac_save_c_werror_flag=$ac_c_werror_flag
3815   ac_c_werror_flag=yes
3816   ac_cv_prog_cc_g=no
3817   CFLAGS="-g"
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830  ac_cv_prog_cc_g=yes
3831else
3832  CFLAGS=""
3833      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h.  */
3835
3836int
3837main ()
3838{
3839
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844if ac_fn_c_try_compile "$LINENO"; then :
3845
3846else
3847  ac_c_werror_flag=$ac_save_c_werror_flag
3848	 CFLAGS="-g"
3849	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851
3852int
3853main ()
3854{
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"; then :
3861  ac_cv_prog_cc_g=yes
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866fi
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868   ac_c_werror_flag=$ac_save_c_werror_flag
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3871$as_echo "$ac_cv_prog_cc_g" >&6; }
3872if test "$ac_test_CFLAGS" = set; then
3873  CFLAGS=$ac_save_CFLAGS
3874elif test $ac_cv_prog_cc_g = yes; then
3875  if test "$GCC" = yes; then
3876    CFLAGS="-g -O2"
3877  else
3878    CFLAGS="-g"
3879  fi
3880else
3881  if test "$GCC" = yes; then
3882    CFLAGS="-O2"
3883  else
3884    CFLAGS=
3885  fi
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3888$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3889if ${ac_cv_prog_cc_c89+:} false; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  ac_cv_prog_cc_c89=no
3893ac_save_CC=$CC
3894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896#include <stdarg.h>
3897#include <stdio.h>
3898struct stat;
3899/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3900struct buf { int x; };
3901FILE * (*rcsopen) (struct buf *, struct stat *, int);
3902static char *e (p, i)
3903     char **p;
3904     int i;
3905{
3906  return p[i];
3907}
3908static char *f (char * (*g) (char **, int), char **p, ...)
3909{
3910  char *s;
3911  va_list v;
3912  va_start (v,p);
3913  s = g (p, va_arg (v,int));
3914  va_end (v);
3915  return s;
3916}
3917
3918/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3919   function prototypes and stuff, but not '\xHH' hex character constants.
3920   These don't provoke an error unfortunately, instead are silently treated
3921   as 'x'.  The following induces an error, until -std is added to get
3922   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3923   array size at least.  It's necessary to write '\x00'==0 to get something
3924   that's true only with -std.  */
3925int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3926
3927/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3928   inside strings and character constants.  */
3929#define FOO(x) 'x'
3930int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3931
3932int test (int i, double x);
3933struct s1 {int (*f) (int a);};
3934struct s2 {int (*f) (double a);};
3935int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3936int argc;
3937char **argv;
3938int
3939main ()
3940{
3941return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3942  ;
3943  return 0;
3944}
3945_ACEOF
3946for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3947	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3948do
3949  CC="$ac_save_CC $ac_arg"
3950  if ac_fn_c_try_compile "$LINENO"; then :
3951  ac_cv_prog_cc_c89=$ac_arg
3952fi
3953rm -f core conftest.err conftest.$ac_objext
3954  test "x$ac_cv_prog_cc_c89" != "xno" && break
3955done
3956rm -f conftest.$ac_ext
3957CC=$ac_save_CC
3958
3959fi
3960# AC_CACHE_VAL
3961case "x$ac_cv_prog_cc_c89" in
3962  x)
3963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3964$as_echo "none needed" >&6; } ;;
3965  xno)
3966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3967$as_echo "unsupported" >&6; } ;;
3968  *)
3969    CC="$CC $ac_cv_prog_cc_c89"
3970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3971$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3972esac
3973if test "x$ac_cv_prog_cc_c89" != xno; then :
3974
3975fi
3976
3977ac_ext=c
3978ac_cpp='$CPP $CPPFLAGS'
3979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982
3983depcc="$CC"   am_compiler_list=
3984
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3986$as_echo_n "checking dependency style of $depcc... " >&6; }
3987if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3991  # We make a subdir and do the tests there.  Otherwise we can end up
3992  # making bogus files that we don't know about and never remove.  For
3993  # instance it was reported that on HP-UX the gcc test will end up
3994  # making a dummy file named 'D' -- because '-MD' means "put the output
3995  # in D".
3996  rm -rf conftest.dir
3997  mkdir conftest.dir
3998  # Copy depcomp to subdir because otherwise we won't find it if we're
3999  # using a relative directory.
4000  cp "$am_depcomp" conftest.dir
4001  cd conftest.dir
4002  # We will build objects and dependencies in a subdirectory because
4003  # it helps to detect inapplicable dependency modes.  For instance
4004  # both Tru64's cc and ICC support -MD to output dependencies as a
4005  # side effect of compilation, but ICC will put the dependencies in
4006  # the current directory while Tru64 will put them in the object
4007  # directory.
4008  mkdir sub
4009
4010  am_cv_CC_dependencies_compiler_type=none
4011  if test "$am_compiler_list" = ""; then
4012     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4013  fi
4014  am__universal=false
4015  case " $depcc " in #(
4016     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4017     esac
4018
4019  for depmode in $am_compiler_list; do
4020    # Setup a source with many dependencies, because some compilers
4021    # like to wrap large dependency lists on column 80 (with \), and
4022    # we should not choose a depcomp mode which is confused by this.
4023    #
4024    # We need to recreate these files for each test, as the compiler may
4025    # overwrite some of them when testing with obscure command lines.
4026    # This happens at least with the AIX C compiler.
4027    : > sub/conftest.c
4028    for i in 1 2 3 4 5 6; do
4029      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4031      # Solaris 10 /bin/sh.
4032      echo '/* dummy */' > sub/conftst$i.h
4033    done
4034    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035
4036    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4037    # mode.  It turns out that the SunPro C++ compiler does not properly
4038    # handle '-M -o', and we need to detect this.  Also, some Intel
4039    # versions had trouble with output in subdirs.
4040    am__obj=sub/conftest.${OBJEXT-o}
4041    am__minus_obj="-o $am__obj"
4042    case $depmode in
4043    gcc)
4044      # This depmode causes a compiler race in universal mode.
4045      test "$am__universal" = false || continue
4046      ;;
4047    nosideeffect)
4048      # After this tag, mechanisms are not by side-effect, so they'll
4049      # only be used when explicitly requested.
4050      if test "x$enable_dependency_tracking" = xyes; then
4051	continue
4052      else
4053	break
4054      fi
4055      ;;
4056    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4057      # This compiler won't grok '-c -o', but also, the minuso test has
4058      # not run yet.  These depmodes are late enough in the game, and
4059      # so weak that their functioning should not be impacted.
4060      am__obj=conftest.${OBJEXT-o}
4061      am__minus_obj=
4062      ;;
4063    none) break ;;
4064    esac
4065    if depmode=$depmode \
4066       source=sub/conftest.c object=$am__obj \
4067       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4069         >/dev/null 2>conftest.err &&
4070       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4071       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4072       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4073       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4074      # icc doesn't choke on unknown options, it will just issue warnings
4075      # or remarks (even with -Werror).  So we grep stderr for any message
4076      # that says an option was ignored or not supported.
4077      # When given -MP, icc 7.0 and 7.1 complain thusly:
4078      #   icc: Command line warning: ignoring option '-M'; no argument required
4079      # The diagnosis changed in icc 8.0:
4080      #   icc: Command line remark: option '-MP' not supported
4081      if (grep 'ignoring option' conftest.err ||
4082          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4083        am_cv_CC_dependencies_compiler_type=$depmode
4084        break
4085      fi
4086    fi
4087  done
4088
4089  cd ..
4090  rm -rf conftest.dir
4091else
4092  am_cv_CC_dependencies_compiler_type=none
4093fi
4094
4095fi
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4097$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4098CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4099
4100 if
4101  test "x$enable_dependency_tracking" != xno \
4102  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4103  am__fastdepCC_TRUE=
4104  am__fastdepCC_FALSE='#'
4105else
4106  am__fastdepCC_TRUE='#'
4107  am__fastdepCC_FALSE=
4108fi
4109
4110
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4112$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4113if ${ac_cv_path_SED+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4117     for ac_i in 1 2 3 4 5 6 7; do
4118       ac_script="$ac_script$as_nl$ac_script"
4119     done
4120     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4121     { ac_script=; unset ac_script;}
4122     if test -z "$SED"; then
4123  ac_path_SED_found=false
4124  # Loop through the user's path and test for each of PROGNAME-LIST
4125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128  IFS=$as_save_IFS
4129  test -z "$as_dir" && as_dir=.
4130    for ac_prog in sed gsed; do
4131    for ac_exec_ext in '' $ac_executable_extensions; do
4132      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4133      as_fn_executable_p "$ac_path_SED" || continue
4134# Check for GNU ac_path_SED and select it if it is found.
4135  # Check for GNU $ac_path_SED
4136case `"$ac_path_SED" --version 2>&1` in
4137*GNU*)
4138  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4139*)
4140  ac_count=0
4141  $as_echo_n 0123456789 >"conftest.in"
4142  while :
4143  do
4144    cat "conftest.in" "conftest.in" >"conftest.tmp"
4145    mv "conftest.tmp" "conftest.in"
4146    cp "conftest.in" "conftest.nl"
4147    $as_echo '' >> "conftest.nl"
4148    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4149    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4150    as_fn_arith $ac_count + 1 && ac_count=$as_val
4151    if test $ac_count -gt ${ac_path_SED_max-0}; then
4152      # Best one so far, save it but keep looking for a better one
4153      ac_cv_path_SED="$ac_path_SED"
4154      ac_path_SED_max=$ac_count
4155    fi
4156    # 10*(2^10) chars as input seems more than enough
4157    test $ac_count -gt 10 && break
4158  done
4159  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4160esac
4161
4162      $ac_path_SED_found && break 3
4163    done
4164  done
4165  done
4166IFS=$as_save_IFS
4167  if test -z "$ac_cv_path_SED"; then
4168    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4169  fi
4170else
4171  ac_cv_path_SED=$SED
4172fi
4173
4174fi
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4176$as_echo "$ac_cv_path_SED" >&6; }
4177 SED="$ac_cv_path_SED"
4178  rm -f conftest.sed
4179
4180test -z "$SED" && SED=sed
4181Xsed="$SED -e 1s/^X//"
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4194$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4195if ${ac_cv_path_GREP+:} false; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198  if test -z "$GREP"; then
4199  ac_path_GREP_found=false
4200  # Loop through the user's path and test for each of PROGNAME-LIST
4201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203do
4204  IFS=$as_save_IFS
4205  test -z "$as_dir" && as_dir=.
4206    for ac_prog in grep ggrep; do
4207    for ac_exec_ext in '' $ac_executable_extensions; do
4208      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4209      as_fn_executable_p "$ac_path_GREP" || continue
4210# Check for GNU ac_path_GREP and select it if it is found.
4211  # Check for GNU $ac_path_GREP
4212case `"$ac_path_GREP" --version 2>&1` in
4213*GNU*)
4214  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4215*)
4216  ac_count=0
4217  $as_echo_n 0123456789 >"conftest.in"
4218  while :
4219  do
4220    cat "conftest.in" "conftest.in" >"conftest.tmp"
4221    mv "conftest.tmp" "conftest.in"
4222    cp "conftest.in" "conftest.nl"
4223    $as_echo 'GREP' >> "conftest.nl"
4224    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226    as_fn_arith $ac_count + 1 && ac_count=$as_val
4227    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4228      # Best one so far, save it but keep looking for a better one
4229      ac_cv_path_GREP="$ac_path_GREP"
4230      ac_path_GREP_max=$ac_count
4231    fi
4232    # 10*(2^10) chars as input seems more than enough
4233    test $ac_count -gt 10 && break
4234  done
4235  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236esac
4237
4238      $ac_path_GREP_found && break 3
4239    done
4240  done
4241  done
4242IFS=$as_save_IFS
4243  if test -z "$ac_cv_path_GREP"; then
4244    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245  fi
4246else
4247  ac_cv_path_GREP=$GREP
4248fi
4249
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4252$as_echo "$ac_cv_path_GREP" >&6; }
4253 GREP="$ac_cv_path_GREP"
4254
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4257$as_echo_n "checking for egrep... " >&6; }
4258if ${ac_cv_path_EGREP+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4262   then ac_cv_path_EGREP="$GREP -E"
4263   else
4264     if test -z "$EGREP"; then
4265  ac_path_EGREP_found=false
4266  # Loop through the user's path and test for each of PROGNAME-LIST
4267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272    for ac_prog in egrep; do
4273    for ac_exec_ext in '' $ac_executable_extensions; do
4274      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4275      as_fn_executable_p "$ac_path_EGREP" || continue
4276# Check for GNU ac_path_EGREP and select it if it is found.
4277  # Check for GNU $ac_path_EGREP
4278case `"$ac_path_EGREP" --version 2>&1` in
4279*GNU*)
4280  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4281*)
4282  ac_count=0
4283  $as_echo_n 0123456789 >"conftest.in"
4284  while :
4285  do
4286    cat "conftest.in" "conftest.in" >"conftest.tmp"
4287    mv "conftest.tmp" "conftest.in"
4288    cp "conftest.in" "conftest.nl"
4289    $as_echo 'EGREP' >> "conftest.nl"
4290    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292    as_fn_arith $ac_count + 1 && ac_count=$as_val
4293    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4294      # Best one so far, save it but keep looking for a better one
4295      ac_cv_path_EGREP="$ac_path_EGREP"
4296      ac_path_EGREP_max=$ac_count
4297    fi
4298    # 10*(2^10) chars as input seems more than enough
4299    test $ac_count -gt 10 && break
4300  done
4301  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302esac
4303
4304      $ac_path_EGREP_found && break 3
4305    done
4306  done
4307  done
4308IFS=$as_save_IFS
4309  if test -z "$ac_cv_path_EGREP"; then
4310    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4311  fi
4312else
4313  ac_cv_path_EGREP=$EGREP
4314fi
4315
4316   fi
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4319$as_echo "$ac_cv_path_EGREP" >&6; }
4320 EGREP="$ac_cv_path_EGREP"
4321
4322
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4324$as_echo_n "checking for fgrep... " >&6; }
4325if ${ac_cv_path_FGREP+:} false; then :
4326  $as_echo_n "(cached) " >&6
4327else
4328  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4329   then ac_cv_path_FGREP="$GREP -F"
4330   else
4331     if test -z "$FGREP"; then
4332  ac_path_FGREP_found=false
4333  # Loop through the user's path and test for each of PROGNAME-LIST
4334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336do
4337  IFS=$as_save_IFS
4338  test -z "$as_dir" && as_dir=.
4339    for ac_prog in fgrep; do
4340    for ac_exec_ext in '' $ac_executable_extensions; do
4341      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4342      as_fn_executable_p "$ac_path_FGREP" || continue
4343# Check for GNU ac_path_FGREP and select it if it is found.
4344  # Check for GNU $ac_path_FGREP
4345case `"$ac_path_FGREP" --version 2>&1` in
4346*GNU*)
4347  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4348*)
4349  ac_count=0
4350  $as_echo_n 0123456789 >"conftest.in"
4351  while :
4352  do
4353    cat "conftest.in" "conftest.in" >"conftest.tmp"
4354    mv "conftest.tmp" "conftest.in"
4355    cp "conftest.in" "conftest.nl"
4356    $as_echo 'FGREP' >> "conftest.nl"
4357    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359    as_fn_arith $ac_count + 1 && ac_count=$as_val
4360    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4361      # Best one so far, save it but keep looking for a better one
4362      ac_cv_path_FGREP="$ac_path_FGREP"
4363      ac_path_FGREP_max=$ac_count
4364    fi
4365    # 10*(2^10) chars as input seems more than enough
4366    test $ac_count -gt 10 && break
4367  done
4368  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369esac
4370
4371      $ac_path_FGREP_found && break 3
4372    done
4373  done
4374  done
4375IFS=$as_save_IFS
4376  if test -z "$ac_cv_path_FGREP"; then
4377    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378  fi
4379else
4380  ac_cv_path_FGREP=$FGREP
4381fi
4382
4383   fi
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4386$as_echo "$ac_cv_path_FGREP" >&6; }
4387 FGREP="$ac_cv_path_FGREP"
4388
4389
4390test -z "$GREP" && GREP=grep
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410# Check whether --with-gnu-ld was given.
4411if test "${with_gnu_ld+set}" = set; then :
4412  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4413else
4414  with_gnu_ld=no
4415fi
4416
4417ac_prog=ld
4418if test "$GCC" = yes; then
4419  # Check if gcc -print-prog-name=ld gives a path.
4420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4421$as_echo_n "checking for ld used by $CC... " >&6; }
4422  case $host in
4423  *-*-mingw*)
4424    # gcc leaves a trailing carriage return which upsets mingw
4425    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4426  *)
4427    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4428  esac
4429  case $ac_prog in
4430    # Accept absolute paths.
4431    [\\/]* | ?:[\\/]*)
4432      re_direlt='/[^/][^/]*/\.\./'
4433      # Canonicalize the pathname of ld
4434      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4435      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4436	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4437      done
4438      test -z "$LD" && LD="$ac_prog"
4439      ;;
4440  "")
4441    # If it fails, then pretend we aren't using GCC.
4442    ac_prog=ld
4443    ;;
4444  *)
4445    # If it is relative, then search for the first ld in PATH.
4446    with_gnu_ld=unknown
4447    ;;
4448  esac
4449elif test "$with_gnu_ld" = yes; then
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4451$as_echo_n "checking for GNU ld... " >&6; }
4452else
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4454$as_echo_n "checking for non-GNU ld... " >&6; }
4455fi
4456if ${lt_cv_path_LD+:} false; then :
4457  $as_echo_n "(cached) " >&6
4458else
4459  if test -z "$LD"; then
4460  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4461  for ac_dir in $PATH; do
4462    IFS="$lt_save_ifs"
4463    test -z "$ac_dir" && ac_dir=.
4464    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4465      lt_cv_path_LD="$ac_dir/$ac_prog"
4466      # Check to see if the program is GNU ld.  I'd rather use --version,
4467      # but apparently some variants of GNU ld only accept -v.
4468      # Break only if it was the GNU/non-GNU ld that we prefer.
4469      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4470      *GNU* | *'with BFD'*)
4471	test "$with_gnu_ld" != no && break
4472	;;
4473      *)
4474	test "$with_gnu_ld" != yes && break
4475	;;
4476      esac
4477    fi
4478  done
4479  IFS="$lt_save_ifs"
4480else
4481  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4482fi
4483fi
4484
4485LD="$lt_cv_path_LD"
4486if test -n "$LD"; then
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4488$as_echo "$LD" >&6; }
4489else
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4495$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4496if ${lt_cv_prog_gnu_ld+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4500case `$LD -v 2>&1 </dev/null` in
4501*GNU* | *'with BFD'*)
4502  lt_cv_prog_gnu_ld=yes
4503  ;;
4504*)
4505  lt_cv_prog_gnu_ld=no
4506  ;;
4507esac
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4510$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4511with_gnu_ld=$lt_cv_prog_gnu_ld
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4522$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4523if ${lt_cv_path_NM+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  if test -n "$NM"; then
4527  # Let the user override the test.
4528  lt_cv_path_NM="$NM"
4529else
4530  lt_nm_to_check="${ac_tool_prefix}nm"
4531  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4532    lt_nm_to_check="$lt_nm_to_check nm"
4533  fi
4534  for lt_tmp_nm in $lt_nm_to_check; do
4535    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4536    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4537      IFS="$lt_save_ifs"
4538      test -z "$ac_dir" && ac_dir=.
4539      tmp_nm="$ac_dir/$lt_tmp_nm"
4540      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4541	# Check to see if the nm accepts a BSD-compat flag.
4542	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4543	#   nm: unknown option "B" ignored
4544	# Tru64's nm complains that /dev/null is an invalid object file
4545	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4546	*/dev/null* | *'Invalid file or object type'*)
4547	  lt_cv_path_NM="$tmp_nm -B"
4548	  break
4549	  ;;
4550	*)
4551	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4552	  */dev/null*)
4553	    lt_cv_path_NM="$tmp_nm -p"
4554	    break
4555	    ;;
4556	  *)
4557	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4558	    continue # so that we can try to find one that supports BSD flags
4559	    ;;
4560	  esac
4561	  ;;
4562	esac
4563      fi
4564    done
4565    IFS="$lt_save_ifs"
4566  done
4567  : ${lt_cv_path_NM=no}
4568fi
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4571$as_echo "$lt_cv_path_NM" >&6; }
4572if test "$lt_cv_path_NM" != "no"; then
4573  NM="$lt_cv_path_NM"
4574else
4575  # Didn't find any BSD compatible name lister, look for dumpbin.
4576  if test -n "$DUMPBIN"; then :
4577    # Let the user override the test.
4578  else
4579    if test -n "$ac_tool_prefix"; then
4580  for ac_prog in dumpbin "link -dump"
4581  do
4582    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585$as_echo_n "checking for $ac_word... " >&6; }
4586if ${ac_cv_prog_DUMPBIN+:} false; then :
4587  $as_echo_n "(cached) " >&6
4588else
4589  if test -n "$DUMPBIN"; then
4590  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4591else
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595  IFS=$as_save_IFS
4596  test -z "$as_dir" && as_dir=.
4597    for ac_exec_ext in '' $ac_executable_extensions; do
4598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601    break 2
4602  fi
4603done
4604  done
4605IFS=$as_save_IFS
4606
4607fi
4608fi
4609DUMPBIN=$ac_cv_prog_DUMPBIN
4610if test -n "$DUMPBIN"; then
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4612$as_echo "$DUMPBIN" >&6; }
4613else
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615$as_echo "no" >&6; }
4616fi
4617
4618
4619    test -n "$DUMPBIN" && break
4620  done
4621fi
4622if test -z "$DUMPBIN"; then
4623  ac_ct_DUMPBIN=$DUMPBIN
4624  for ac_prog in dumpbin "link -dump"
4625do
4626  # Extract the first word of "$ac_prog", so it can be a program name with args.
4627set dummy $ac_prog; ac_word=$2
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629$as_echo_n "checking for $ac_word... " >&6; }
4630if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633  if test -n "$ac_ct_DUMPBIN"; then
4634  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639  IFS=$as_save_IFS
4640  test -z "$as_dir" && as_dir=.
4641    for ac_exec_ext in '' $ac_executable_extensions; do
4642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645    break 2
4646  fi
4647done
4648  done
4649IFS=$as_save_IFS
4650
4651fi
4652fi
4653ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4654if test -n "$ac_ct_DUMPBIN"; then
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4656$as_echo "$ac_ct_DUMPBIN" >&6; }
4657else
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659$as_echo "no" >&6; }
4660fi
4661
4662
4663  test -n "$ac_ct_DUMPBIN" && break
4664done
4665
4666  if test "x$ac_ct_DUMPBIN" = x; then
4667    DUMPBIN=":"
4668  else
4669    case $cross_compiling:$ac_tool_warned in
4670yes:)
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673ac_tool_warned=yes ;;
4674esac
4675    DUMPBIN=$ac_ct_DUMPBIN
4676  fi
4677fi
4678
4679    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4680    *COFF*)
4681      DUMPBIN="$DUMPBIN -symbols"
4682      ;;
4683    *)
4684      DUMPBIN=:
4685      ;;
4686    esac
4687  fi
4688
4689  if test "$DUMPBIN" != ":"; then
4690    NM="$DUMPBIN"
4691  fi
4692fi
4693test -z "$NM" && NM=nm
4694
4695
4696
4697
4698
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4701$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4702if ${lt_cv_nm_interface+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  lt_cv_nm_interface="BSD nm"
4706  echo "int some_variable = 0;" > conftest.$ac_ext
4707  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4708  (eval "$ac_compile" 2>conftest.err)
4709  cat conftest.err >&5
4710  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4711  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4712  cat conftest.err >&5
4713  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4714  cat conftest.out >&5
4715  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4716    lt_cv_nm_interface="MS dumpbin"
4717  fi
4718  rm -f conftest*
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4721$as_echo "$lt_cv_nm_interface" >&6; }
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4724$as_echo_n "checking whether ln -s works... " >&6; }
4725LN_S=$as_ln_s
4726if test "$LN_S" = "ln -s"; then
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4728$as_echo "yes" >&6; }
4729else
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4731$as_echo "no, using $LN_S" >&6; }
4732fi
4733
4734# find the maximum length of command line arguments
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4736$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4737if ${lt_cv_sys_max_cmd_len+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740    i=0
4741  teststring="ABCD"
4742
4743  case $build_os in
4744  msdosdjgpp*)
4745    # On DJGPP, this test can blow up pretty badly due to problems in libc
4746    # (any single argument exceeding 2000 bytes causes a buffer overrun
4747    # during glob expansion).  Even if it were fixed, the result of this
4748    # check would be larger than it should be.
4749    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4750    ;;
4751
4752  gnu*)
4753    # Under GNU Hurd, this test is not required because there is
4754    # no limit to the length of command line arguments.
4755    # Libtool will interpret -1 as no limit whatsoever
4756    lt_cv_sys_max_cmd_len=-1;
4757    ;;
4758
4759  cygwin* | mingw* | cegcc*)
4760    # On Win9x/ME, this test blows up -- it succeeds, but takes
4761    # about 5 minutes as the teststring grows exponentially.
4762    # Worse, since 9x/ME are not pre-emptively multitasking,
4763    # you end up with a "frozen" computer, even though with patience
4764    # the test eventually succeeds (with a max line length of 256k).
4765    # Instead, let's just punt: use the minimum linelength reported by
4766    # all of the supported platforms: 8192 (on NT/2K/XP).
4767    lt_cv_sys_max_cmd_len=8192;
4768    ;;
4769
4770  mint*)
4771    # On MiNT this can take a long time and run out of memory.
4772    lt_cv_sys_max_cmd_len=8192;
4773    ;;
4774
4775  amigaos*)
4776    # On AmigaOS with pdksh, this test takes hours, literally.
4777    # So we just punt and use a minimum line length of 8192.
4778    lt_cv_sys_max_cmd_len=8192;
4779    ;;
4780
4781  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4782    # This has been around since 386BSD, at least.  Likely further.
4783    if test -x /sbin/sysctl; then
4784      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4785    elif test -x /usr/sbin/sysctl; then
4786      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4787    else
4788      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4789    fi
4790    # And add a safety zone
4791    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4792    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4793    ;;
4794
4795  interix*)
4796    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4797    lt_cv_sys_max_cmd_len=196608
4798    ;;
4799
4800  os2*)
4801    # The test takes a long time on OS/2.
4802    lt_cv_sys_max_cmd_len=8192
4803    ;;
4804
4805  osf*)
4806    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4807    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4808    # nice to cause kernel panics so lets avoid the loop below.
4809    # First set a reasonable default.
4810    lt_cv_sys_max_cmd_len=16384
4811    #
4812    if test -x /sbin/sysconfig; then
4813      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4814        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4815      esac
4816    fi
4817    ;;
4818  sco3.2v5*)
4819    lt_cv_sys_max_cmd_len=102400
4820    ;;
4821  sysv5* | sco5v6* | sysv4.2uw2*)
4822    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4823    if test -n "$kargmax"; then
4824      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4825    else
4826      lt_cv_sys_max_cmd_len=32768
4827    fi
4828    ;;
4829  *)
4830    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4831    if test -n "$lt_cv_sys_max_cmd_len"; then
4832      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4834    else
4835      # Make teststring a little bigger before we do anything with it.
4836      # a 1K string should be a reasonable start.
4837      for i in 1 2 3 4 5 6 7 8 ; do
4838        teststring=$teststring$teststring
4839      done
4840      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4841      # If test is not a shell built-in, we'll probably end up computing a
4842      # maximum length that is only half of the actual maximum length, but
4843      # we can't tell.
4844      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4845	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4846	      test $i != 17 # 1/2 MB should be enough
4847      do
4848        i=`expr $i + 1`
4849        teststring=$teststring$teststring
4850      done
4851      # Only check the string length outside the loop.
4852      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4853      teststring=
4854      # Add a significant safety factor because C++ compilers can tack on
4855      # massive amounts of additional arguments before passing them to the
4856      # linker.  It appears as though 1/2 is a usable value.
4857      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4858    fi
4859    ;;
4860  esac
4861
4862fi
4863
4864if test -n $lt_cv_sys_max_cmd_len ; then
4865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4866$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4867else
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4869$as_echo "none" >&6; }
4870fi
4871max_cmd_len=$lt_cv_sys_max_cmd_len
4872
4873
4874
4875
4876
4877
4878: ${CP="cp -f"}
4879: ${MV="mv -f"}
4880: ${RM="rm -f"}
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4883$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4884# Try some XSI features
4885xsi_shell=no
4886( _lt_dummy="a/b/c"
4887  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4888      = c,a/b,b/c, \
4889    && eval 'test $(( 1 + 1 )) -eq 2 \
4890    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4891  && xsi_shell=yes
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4893$as_echo "$xsi_shell" >&6; }
4894
4895
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4897$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4898lt_shell_append=no
4899( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4900    >/dev/null 2>&1 \
4901  && lt_shell_append=yes
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4903$as_echo "$lt_shell_append" >&6; }
4904
4905
4906if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4907  lt_unset=unset
4908else
4909  lt_unset=false
4910fi
4911
4912
4913
4914
4915
4916# test EBCDIC or ASCII
4917case `echo X|tr X '\101'` in
4918 A) # ASCII based system
4919    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4920  lt_SP2NL='tr \040 \012'
4921  lt_NL2SP='tr \015\012 \040\040'
4922  ;;
4923 *) # EBCDIC based system
4924  lt_SP2NL='tr \100 \n'
4925  lt_NL2SP='tr \r\n \100\100'
4926  ;;
4927esac
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4938$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4939if ${lt_cv_to_host_file_cmd+:} false; then :
4940  $as_echo_n "(cached) " >&6
4941else
4942  case $host in
4943  *-*-mingw* )
4944    case $build in
4945      *-*-mingw* ) # actually msys
4946        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4947        ;;
4948      *-*-cygwin* )
4949        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4950        ;;
4951      * ) # otherwise, assume *nix
4952        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4953        ;;
4954    esac
4955    ;;
4956  *-*-cygwin* )
4957    case $build in
4958      *-*-mingw* ) # actually msys
4959        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4960        ;;
4961      *-*-cygwin* )
4962        lt_cv_to_host_file_cmd=func_convert_file_noop
4963        ;;
4964      * ) # otherwise, assume *nix
4965        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4966        ;;
4967    esac
4968    ;;
4969  * ) # unhandled hosts (and "normal" native builds)
4970    lt_cv_to_host_file_cmd=func_convert_file_noop
4971    ;;
4972esac
4973
4974fi
4975
4976to_host_file_cmd=$lt_cv_to_host_file_cmd
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4978$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4979
4980
4981
4982
4983
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4985$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4986if ${lt_cv_to_tool_file_cmd+:} false; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  #assume ordinary cross tools, or native build.
4990lt_cv_to_tool_file_cmd=func_convert_file_noop
4991case $host in
4992  *-*-mingw* )
4993    case $build in
4994      *-*-mingw* ) # actually msys
4995        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4996        ;;
4997    esac
4998    ;;
4999esac
5000
5001fi
5002
5003to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5005$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5006
5007
5008
5009
5010
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5012$as_echo_n "checking for $LD option to reload object files... " >&6; }
5013if ${lt_cv_ld_reload_flag+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  lt_cv_ld_reload_flag='-r'
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5019$as_echo "$lt_cv_ld_reload_flag" >&6; }
5020reload_flag=$lt_cv_ld_reload_flag
5021case $reload_flag in
5022"" | " "*) ;;
5023*) reload_flag=" $reload_flag" ;;
5024esac
5025reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026case $host_os in
5027  cygwin* | mingw* | pw32* | cegcc*)
5028    if test "$GCC" != yes; then
5029      reload_cmds=false
5030    fi
5031    ;;
5032  darwin*)
5033    if test "$GCC" = yes; then
5034      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5035    else
5036      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5037    fi
5038    ;;
5039esac
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049if test -n "$ac_tool_prefix"; then
5050  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5051set dummy ${ac_tool_prefix}objdump; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; }
5054if ${ac_cv_prog_OBJDUMP+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  if test -n "$OBJDUMP"; then
5058  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065    for ac_exec_ext in '' $ac_executable_extensions; do
5066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072  done
5073IFS=$as_save_IFS
5074
5075fi
5076fi
5077OBJDUMP=$ac_cv_prog_OBJDUMP
5078if test -n "$OBJDUMP"; then
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5080$as_echo "$OBJDUMP" >&6; }
5081else
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084fi
5085
5086
5087fi
5088if test -z "$ac_cv_prog_OBJDUMP"; then
5089  ac_ct_OBJDUMP=$OBJDUMP
5090  # Extract the first word of "objdump", so it can be a program name with args.
5091set dummy objdump; ac_word=$2
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093$as_echo_n "checking for $ac_word... " >&6; }
5094if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  if test -n "$ac_ct_OBJDUMP"; then
5098  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5099else
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105    for ac_exec_ext in '' $ac_executable_extensions; do
5106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112  done
5113IFS=$as_save_IFS
5114
5115fi
5116fi
5117ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5118if test -n "$ac_ct_OBJDUMP"; then
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5120$as_echo "$ac_ct_OBJDUMP" >&6; }
5121else
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123$as_echo "no" >&6; }
5124fi
5125
5126  if test "x$ac_ct_OBJDUMP" = x; then
5127    OBJDUMP="false"
5128  else
5129    case $cross_compiling:$ac_tool_warned in
5130yes:)
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133ac_tool_warned=yes ;;
5134esac
5135    OBJDUMP=$ac_ct_OBJDUMP
5136  fi
5137else
5138  OBJDUMP="$ac_cv_prog_OBJDUMP"
5139fi
5140
5141test -z "$OBJDUMP" && OBJDUMP=objdump
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5152$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5153if ${lt_cv_deplibs_check_method+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  lt_cv_file_magic_cmd='$MAGIC_CMD'
5157lt_cv_file_magic_test_file=
5158lt_cv_deplibs_check_method='unknown'
5159# Need to set the preceding variable on all platforms that support
5160# interlibrary dependencies.
5161# 'none' -- dependencies not supported.
5162# `unknown' -- same as none, but documents that we really don't know.
5163# 'pass_all' -- all dependencies passed with no checks.
5164# 'test_compile' -- check by making test program.
5165# 'file_magic [[regex]]' -- check by looking for files in library path
5166# which responds to the $file_magic_cmd with a given extended regex.
5167# If you have `file' or equivalent on your system and you're not sure
5168# whether `pass_all' will *always* work, you probably want this one.
5169
5170case $host_os in
5171aix[4-9]*)
5172  lt_cv_deplibs_check_method=pass_all
5173  ;;
5174
5175beos*)
5176  lt_cv_deplibs_check_method=pass_all
5177  ;;
5178
5179bsdi[45]*)
5180  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5181  lt_cv_file_magic_cmd='/usr/bin/file -L'
5182  lt_cv_file_magic_test_file=/shlib/libc.so
5183  ;;
5184
5185cygwin*)
5186  # func_win32_libid is a shell function defined in ltmain.sh
5187  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5188  lt_cv_file_magic_cmd='func_win32_libid'
5189  ;;
5190
5191mingw* | pw32*)
5192  # Base MSYS/MinGW do not provide the 'file' command needed by
5193  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5194  # unless we find 'file', for example because we are cross-compiling.
5195  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5196  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5197    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5198    lt_cv_file_magic_cmd='func_win32_libid'
5199  else
5200    # Keep this pattern in sync with the one in func_win32_libid.
5201    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5202    lt_cv_file_magic_cmd='$OBJDUMP -f'
5203  fi
5204  ;;
5205
5206cegcc*)
5207  # use the weaker test based on 'objdump'. See mingw*.
5208  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5209  lt_cv_file_magic_cmd='$OBJDUMP -f'
5210  ;;
5211
5212darwin* | rhapsody*)
5213  lt_cv_deplibs_check_method=pass_all
5214  ;;
5215
5216freebsd* | dragonfly*)
5217  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5218    case $host_cpu in
5219    i*86 )
5220      # Not sure whether the presence of OpenBSD here was a mistake.
5221      # Let's accept both of them until this is cleared up.
5222      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5223      lt_cv_file_magic_cmd=/usr/bin/file
5224      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5225      ;;
5226    esac
5227  else
5228    lt_cv_deplibs_check_method=pass_all
5229  fi
5230  ;;
5231
5232gnu*)
5233  lt_cv_deplibs_check_method=pass_all
5234  ;;
5235
5236haiku*)
5237  lt_cv_deplibs_check_method=pass_all
5238  ;;
5239
5240hpux10.20* | hpux11*)
5241  lt_cv_file_magic_cmd=/usr/bin/file
5242  case $host_cpu in
5243  ia64*)
5244    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5245    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5246    ;;
5247  hppa*64*)
5248    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]'
5249    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5250    ;;
5251  *)
5252    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5253    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5254    ;;
5255  esac
5256  ;;
5257
5258interix[3-9]*)
5259  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5260  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5261  ;;
5262
5263irix5* | irix6* | nonstopux*)
5264  case $LD in
5265  *-32|*"-32 ") libmagic=32-bit;;
5266  *-n32|*"-n32 ") libmagic=N32;;
5267  *-64|*"-64 ") libmagic=64-bit;;
5268  *) libmagic=never-match;;
5269  esac
5270  lt_cv_deplibs_check_method=pass_all
5271  ;;
5272
5273# This must be glibc/ELF.
5274linux* | k*bsd*-gnu | kopensolaris*-gnu)
5275  lt_cv_deplibs_check_method=pass_all
5276  ;;
5277
5278netbsd*)
5279  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5280    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5281  else
5282    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5283  fi
5284  ;;
5285
5286newos6*)
5287  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5288  lt_cv_file_magic_cmd=/usr/bin/file
5289  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5290  ;;
5291
5292*nto* | *qnx*)
5293  lt_cv_deplibs_check_method=pass_all
5294  ;;
5295
5296openbsd*)
5297  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5298    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5299  else
5300    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5301  fi
5302  ;;
5303
5304osf3* | osf4* | osf5*)
5305  lt_cv_deplibs_check_method=pass_all
5306  ;;
5307
5308rdos*)
5309  lt_cv_deplibs_check_method=pass_all
5310  ;;
5311
5312solaris*)
5313  lt_cv_deplibs_check_method=pass_all
5314  ;;
5315
5316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5317  lt_cv_deplibs_check_method=pass_all
5318  ;;
5319
5320sysv4 | sysv4.3*)
5321  case $host_vendor in
5322  motorola)
5323    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]'
5324    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5325    ;;
5326  ncr)
5327    lt_cv_deplibs_check_method=pass_all
5328    ;;
5329  sequent)
5330    lt_cv_file_magic_cmd='/bin/file'
5331    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5332    ;;
5333  sni)
5334    lt_cv_file_magic_cmd='/bin/file'
5335    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5336    lt_cv_file_magic_test_file=/lib/libc.so
5337    ;;
5338  siemens)
5339    lt_cv_deplibs_check_method=pass_all
5340    ;;
5341  pc)
5342    lt_cv_deplibs_check_method=pass_all
5343    ;;
5344  esac
5345  ;;
5346
5347tpf*)
5348  lt_cv_deplibs_check_method=pass_all
5349  ;;
5350esac
5351
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5354$as_echo "$lt_cv_deplibs_check_method" >&6; }
5355
5356file_magic_glob=
5357want_nocaseglob=no
5358if test "$build" = "$host"; then
5359  case $host_os in
5360  mingw* | pw32*)
5361    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5362      want_nocaseglob=yes
5363    else
5364      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5365    fi
5366    ;;
5367  esac
5368fi
5369
5370file_magic_cmd=$lt_cv_file_magic_cmd
5371deplibs_check_method=$lt_cv_deplibs_check_method
5372test -z "$deplibs_check_method" && deplibs_check_method=unknown
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395if test -n "$ac_tool_prefix"; then
5396  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5397set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if ${ac_cv_prog_DLLTOOL+:} false; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -n "$DLLTOOL"; then
5404  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423DLLTOOL=$ac_cv_prog_DLLTOOL
5424if test -n "$DLLTOOL"; then
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5426$as_echo "$DLLTOOL" >&6; }
5427else
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432
5433fi
5434if test -z "$ac_cv_prog_DLLTOOL"; then
5435  ac_ct_DLLTOOL=$DLLTOOL
5436  # Extract the first word of "dlltool", so it can be a program name with args.
5437set dummy dlltool; ac_word=$2
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439$as_echo_n "checking for $ac_word... " >&6; }
5440if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  if test -n "$ac_ct_DLLTOOL"; then
5444  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449  IFS=$as_save_IFS
5450  test -z "$as_dir" && as_dir=.
5451    for ac_exec_ext in '' $ac_executable_extensions; do
5452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455    break 2
5456  fi
5457done
5458  done
5459IFS=$as_save_IFS
5460
5461fi
5462fi
5463ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5464if test -n "$ac_ct_DLLTOOL"; then
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5466$as_echo "$ac_ct_DLLTOOL" >&6; }
5467else
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472  if test "x$ac_ct_DLLTOOL" = x; then
5473    DLLTOOL="false"
5474  else
5475    case $cross_compiling:$ac_tool_warned in
5476yes:)
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479ac_tool_warned=yes ;;
5480esac
5481    DLLTOOL=$ac_ct_DLLTOOL
5482  fi
5483else
5484  DLLTOOL="$ac_cv_prog_DLLTOOL"
5485fi
5486
5487test -z "$DLLTOOL" && DLLTOOL=dlltool
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5499$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5500if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  lt_cv_sharedlib_from_linklib_cmd='unknown'
5504
5505case $host_os in
5506cygwin* | mingw* | pw32* | cegcc*)
5507  # two different shell functions defined in ltmain.sh
5508  # decide which to use based on capabilities of $DLLTOOL
5509  case `$DLLTOOL --help 2>&1` in
5510  *--identify-strict*)
5511    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5512    ;;
5513  *)
5514    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5515    ;;
5516  esac
5517  ;;
5518*)
5519  # fallback: assume linklib IS sharedlib
5520  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5521  ;;
5522esac
5523
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5526$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5527sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5528test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5529
5530
5531
5532
5533
5534
5535
5536
5537if test -n "$ac_tool_prefix"; then
5538  for ac_prog in ar
5539  do
5540    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543$as_echo_n "checking for $ac_word... " >&6; }
5544if ${ac_cv_prog_AR+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  if test -n "$AR"; then
5548  ac_cv_prog_AR="$AR" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553  IFS=$as_save_IFS
5554  test -z "$as_dir" && as_dir=.
5555    for ac_exec_ext in '' $ac_executable_extensions; do
5556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559    break 2
5560  fi
5561done
5562  done
5563IFS=$as_save_IFS
5564
5565fi
5566fi
5567AR=$ac_cv_prog_AR
5568if test -n "$AR"; then
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5570$as_echo "$AR" >&6; }
5571else
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573$as_echo "no" >&6; }
5574fi
5575
5576
5577    test -n "$AR" && break
5578  done
5579fi
5580if test -z "$AR"; then
5581  ac_ct_AR=$AR
5582  for ac_prog in ar
5583do
5584  # Extract the first word of "$ac_prog", so it can be a program name with args.
5585set dummy $ac_prog; ac_word=$2
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587$as_echo_n "checking for $ac_word... " >&6; }
5588if ${ac_cv_prog_ac_ct_AR+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  if test -n "$ac_ct_AR"; then
5592  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597  IFS=$as_save_IFS
5598  test -z "$as_dir" && as_dir=.
5599    for ac_exec_ext in '' $ac_executable_extensions; do
5600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601    ac_cv_prog_ac_ct_AR="$ac_prog"
5602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603    break 2
5604  fi
5605done
5606  done
5607IFS=$as_save_IFS
5608
5609fi
5610fi
5611ac_ct_AR=$ac_cv_prog_ac_ct_AR
5612if test -n "$ac_ct_AR"; then
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5614$as_echo "$ac_ct_AR" >&6; }
5615else
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617$as_echo "no" >&6; }
5618fi
5619
5620
5621  test -n "$ac_ct_AR" && break
5622done
5623
5624  if test "x$ac_ct_AR" = x; then
5625    AR="false"
5626  else
5627    case $cross_compiling:$ac_tool_warned in
5628yes:)
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631ac_tool_warned=yes ;;
5632esac
5633    AR=$ac_ct_AR
5634  fi
5635fi
5636
5637: ${AR=ar}
5638: ${AR_FLAGS=cru}
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5651$as_echo_n "checking for archiver @FILE support... " >&6; }
5652if ${lt_cv_ar_at_file+:} false; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655  lt_cv_ar_at_file=no
5656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658
5659int
5660main ()
5661{
5662
5663  ;
5664  return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"; then :
5668  echo conftest.$ac_objext > conftest.lst
5669      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5670      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5671  (eval $lt_ar_try) 2>&5
5672  ac_status=$?
5673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674  test $ac_status = 0; }
5675      if test "$ac_status" -eq 0; then
5676	# Ensure the archiver fails upon bogus file names.
5677	rm -f conftest.$ac_objext libconftest.a
5678	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5679  (eval $lt_ar_try) 2>&5
5680  ac_status=$?
5681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682  test $ac_status = 0; }
5683	if test "$ac_status" -ne 0; then
5684          lt_cv_ar_at_file=@
5685        fi
5686      fi
5687      rm -f conftest.* libconftest.a
5688
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5694$as_echo "$lt_cv_ar_at_file" >&6; }
5695
5696if test "x$lt_cv_ar_at_file" = xno; then
5697  archiver_list_spec=
5698else
5699  archiver_list_spec=$lt_cv_ar_at_file
5700fi
5701
5702
5703
5704
5705
5706
5707
5708if test -n "$ac_tool_prefix"; then
5709  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5710set dummy ${ac_tool_prefix}strip; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if ${ac_cv_prog_STRIP+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test -n "$STRIP"; then
5717  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724    for ac_exec_ext in '' $ac_executable_extensions; do
5725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731  done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736STRIP=$ac_cv_prog_STRIP
5737if test -n "$STRIP"; then
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5739$as_echo "$STRIP" >&6; }
5740else
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745
5746fi
5747if test -z "$ac_cv_prog_STRIP"; then
5748  ac_ct_STRIP=$STRIP
5749  # Extract the first word of "strip", so it can be a program name with args.
5750set dummy strip; ac_word=$2
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752$as_echo_n "checking for $ac_word... " >&6; }
5753if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  if test -n "$ac_ct_STRIP"; then
5757  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5758else
5759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764    for ac_exec_ext in '' $ac_executable_extensions; do
5765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766    ac_cv_prog_ac_ct_STRIP="strip"
5767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768    break 2
5769  fi
5770done
5771  done
5772IFS=$as_save_IFS
5773
5774fi
5775fi
5776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5777if test -n "$ac_ct_STRIP"; then
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5779$as_echo "$ac_ct_STRIP" >&6; }
5780else
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782$as_echo "no" >&6; }
5783fi
5784
5785  if test "x$ac_ct_STRIP" = x; then
5786    STRIP=":"
5787  else
5788    case $cross_compiling:$ac_tool_warned in
5789yes:)
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792ac_tool_warned=yes ;;
5793esac
5794    STRIP=$ac_ct_STRIP
5795  fi
5796else
5797  STRIP="$ac_cv_prog_STRIP"
5798fi
5799
5800test -z "$STRIP" && STRIP=:
5801
5802
5803
5804
5805
5806
5807if test -n "$ac_tool_prefix"; then
5808  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if ${ac_cv_prog_RANLIB+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  if test -n "$RANLIB"; then
5816  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823    for ac_exec_ext in '' $ac_executable_extensions; do
5824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830  done
5831IFS=$as_save_IFS
5832
5833fi
5834fi
5835RANLIB=$ac_cv_prog_RANLIB
5836if test -n "$RANLIB"; then
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5838$as_echo "$RANLIB" >&6; }
5839else
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842fi
5843
5844
5845fi
5846if test -z "$ac_cv_prog_RANLIB"; then
5847  ac_ct_RANLIB=$RANLIB
5848  # Extract the first word of "ranlib", so it can be a program name with args.
5849set dummy ranlib; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  if test -n "$ac_ct_RANLIB"; then
5856  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865    ac_cv_prog_ac_ct_RANLIB="ranlib"
5866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870  done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876if test -n "$ac_ct_RANLIB"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5878$as_echo "$ac_ct_RANLIB" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884  if test "x$ac_ct_RANLIB" = x; then
5885    RANLIB=":"
5886  else
5887    case $cross_compiling:$ac_tool_warned in
5888yes:)
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893    RANLIB=$ac_ct_RANLIB
5894  fi
5895else
5896  RANLIB="$ac_cv_prog_RANLIB"
5897fi
5898
5899test -z "$RANLIB" && RANLIB=:
5900
5901
5902
5903
5904
5905
5906# Determine commands to create old-style static archives.
5907old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5908old_postinstall_cmds='chmod 644 $oldlib'
5909old_postuninstall_cmds=
5910
5911if test -n "$RANLIB"; then
5912  case $host_os in
5913  openbsd*)
5914    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5915    ;;
5916  *)
5917    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5918    ;;
5919  esac
5920  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5921fi
5922
5923case $host_os in
5924  darwin*)
5925    lock_old_archive_extraction=yes ;;
5926  *)
5927    lock_old_archive_extraction=no ;;
5928esac
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968# If no C compiler was specified, use CC.
5969LTCC=${LTCC-"$CC"}
5970
5971# If no C compiler flags were specified, use CFLAGS.
5972LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5973
5974# Allow CC to be a program name with arguments.
5975compiler=$CC
5976
5977
5978# Check for command to grab the raw symbol name followed by C symbol from nm.
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5980$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5981if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5982  $as_echo_n "(cached) " >&6
5983else
5984
5985# These are sane defaults that work on at least a few old systems.
5986# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5987
5988# Character class describing NM global symbol codes.
5989symcode='[BCDEGRST]'
5990
5991# Regexp to match symbols that can be accessed directly from C.
5992sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5993
5994# Define system-specific variables.
5995case $host_os in
5996aix*)
5997  symcode='[BCDT]'
5998  ;;
5999cygwin* | mingw* | pw32* | cegcc*)
6000  symcode='[ABCDGISTW]'
6001  ;;
6002hpux*)
6003  if test "$host_cpu" = ia64; then
6004    symcode='[ABCDEGRST]'
6005  fi
6006  ;;
6007irix* | nonstopux*)
6008  symcode='[BCDEGRST]'
6009  ;;
6010osf*)
6011  symcode='[BCDEGQRST]'
6012  ;;
6013solaris*)
6014  symcode='[BDRT]'
6015  ;;
6016sco3.2v5*)
6017  symcode='[DT]'
6018  ;;
6019sysv4.2uw2*)
6020  symcode='[DT]'
6021  ;;
6022sysv5* | sco5v6* | unixware* | OpenUNIX*)
6023  symcode='[ABDT]'
6024  ;;
6025sysv4)
6026  symcode='[DFNSTU]'
6027  ;;
6028esac
6029
6030# If we're using GNU nm, then use its standard symbol codes.
6031case `$NM -V 2>&1` in
6032*GNU* | *'with BFD'*)
6033  symcode='[ABCDGIRSTW]' ;;
6034esac
6035
6036# Transform an extracted symbol line into a proper C declaration.
6037# Some systems (esp. on ia64) link data and code symbols differently,
6038# so use this general approach.
6039lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6040
6041# Transform an extracted symbol line into symbol name and symbol address
6042lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6043lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6044
6045# Handle CRLF in mingw tool chain
6046opt_cr=
6047case $build_os in
6048mingw*)
6049  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6050  ;;
6051esac
6052
6053# Try without a prefix underscore, then with it.
6054for ac_symprfx in "" "_"; do
6055
6056  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6057  symxfrm="\\1 $ac_symprfx\\2 \\2"
6058
6059  # Write the raw and C identifiers.
6060  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061    # Fake it for dumpbin and say T for any non-static function
6062    # and D for any global variable.
6063    # Also find C++ and __fastcall symbols from MSVC++,
6064    # which start with @ or ?.
6065    lt_cv_sys_global_symbol_pipe="$AWK '"\
6066"     {last_section=section; section=\$ 3};"\
6067"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6068"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6069"     \$ 0!~/External *\|/{next};"\
6070"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6071"     {if(hide[section]) next};"\
6072"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6073"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6074"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6075"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6076"     ' prfx=^$ac_symprfx"
6077  else
6078    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6079  fi
6080  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6081
6082  # Check to see that the pipe works correctly.
6083  pipe_works=no
6084
6085  rm -f conftest*
6086  cat > conftest.$ac_ext <<_LT_EOF
6087#ifdef __cplusplus
6088extern "C" {
6089#endif
6090char nm_test_var;
6091void nm_test_func(void);
6092void nm_test_func(void){}
6093#ifdef __cplusplus
6094}
6095#endif
6096int main(){nm_test_var='a';nm_test_func();return(0);}
6097_LT_EOF
6098
6099  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6100  (eval $ac_compile) 2>&5
6101  ac_status=$?
6102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103  test $ac_status = 0; }; then
6104    # Now try to grab the symbols.
6105    nlist=conftest.nm
6106    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6107  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6108  ac_status=$?
6109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110  test $ac_status = 0; } && test -s "$nlist"; then
6111      # Try sorting and uniquifying the output.
6112      if sort "$nlist" | uniq > "$nlist"T; then
6113	mv -f "$nlist"T "$nlist"
6114      else
6115	rm -f "$nlist"T
6116      fi
6117
6118      # Make sure that we snagged all the symbols we need.
6119      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6120	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6121	  cat <<_LT_EOF > conftest.$ac_ext
6122/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6123#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6124/* DATA imports from DLLs on WIN32 con't be const, because runtime
6125   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6126# define LT_DLSYM_CONST
6127#elif defined(__osf__)
6128/* This system does not cope well with relocations in const data.  */
6129# define LT_DLSYM_CONST
6130#else
6131# define LT_DLSYM_CONST const
6132#endif
6133
6134#ifdef __cplusplus
6135extern "C" {
6136#endif
6137
6138_LT_EOF
6139	  # Now generate the symbol file.
6140	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6141
6142	  cat <<_LT_EOF >> conftest.$ac_ext
6143
6144/* The mapping between symbol names and symbols.  */
6145LT_DLSYM_CONST struct {
6146  const char *name;
6147  void       *address;
6148}
6149lt__PROGRAM__LTX_preloaded_symbols[] =
6150{
6151  { "@PROGRAM@", (void *) 0 },
6152_LT_EOF
6153	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6154	  cat <<\_LT_EOF >> conftest.$ac_ext
6155  {0, (void *) 0}
6156};
6157
6158/* This works around a problem in FreeBSD linker */
6159#ifdef FREEBSD_WORKAROUND
6160static const void *lt_preloaded_setup() {
6161  return lt__PROGRAM__LTX_preloaded_symbols;
6162}
6163#endif
6164
6165#ifdef __cplusplus
6166}
6167#endif
6168_LT_EOF
6169	  # Now try linking the two files.
6170	  mv conftest.$ac_objext conftstm.$ac_objext
6171	  lt_globsym_save_LIBS=$LIBS
6172	  lt_globsym_save_CFLAGS=$CFLAGS
6173	  LIBS="conftstm.$ac_objext"
6174	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6175	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6176  (eval $ac_link) 2>&5
6177  ac_status=$?
6178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6180	    pipe_works=yes
6181	  fi
6182	  LIBS=$lt_globsym_save_LIBS
6183	  CFLAGS=$lt_globsym_save_CFLAGS
6184	else
6185	  echo "cannot find nm_test_func in $nlist" >&5
6186	fi
6187      else
6188	echo "cannot find nm_test_var in $nlist" >&5
6189      fi
6190    else
6191      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6192    fi
6193  else
6194    echo "$progname: failed program was:" >&5
6195    cat conftest.$ac_ext >&5
6196  fi
6197  rm -rf conftest* conftst*
6198
6199  # Do not use the global_symbol_pipe unless it works.
6200  if test "$pipe_works" = yes; then
6201    break
6202  else
6203    lt_cv_sys_global_symbol_pipe=
6204  fi
6205done
6206
6207fi
6208
6209if test -z "$lt_cv_sys_global_symbol_pipe"; then
6210  lt_cv_sys_global_symbol_to_cdecl=
6211fi
6212if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6214$as_echo "failed" >&6; }
6215else
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6217$as_echo "ok" >&6; }
6218fi
6219
6220# Response file support.
6221if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6222  nm_file_list_spec='@'
6223elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6224  nm_file_list_spec='@'
6225fi
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6254$as_echo_n "checking for sysroot... " >&6; }
6255
6256# Check whether --with-sysroot was given.
6257if test "${with_sysroot+set}" = set; then :
6258  withval=$with_sysroot;
6259else
6260  with_sysroot=no
6261fi
6262
6263
6264lt_sysroot=
6265case ${with_sysroot} in #(
6266 yes)
6267   if test "$GCC" = yes; then
6268     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6269   fi
6270   ;; #(
6271 /*)
6272   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6273   ;; #(
6274 no|'')
6275   ;; #(
6276 *)
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6278$as_echo "${with_sysroot}" >&6; }
6279   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6280   ;;
6281esac
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6284$as_echo "${lt_sysroot:-no}" >&6; }
6285
6286
6287
6288
6289
6290# Check whether --enable-libtool-lock was given.
6291if test "${enable_libtool_lock+set}" = set; then :
6292  enableval=$enable_libtool_lock;
6293fi
6294
6295test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6296
6297# Some flags need to be propagated to the compiler or linker for good
6298# libtool support.
6299case $host in
6300ia64-*-hpux*)
6301  # Find out which ABI we are using.
6302  echo 'int i;' > conftest.$ac_ext
6303  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6304  (eval $ac_compile) 2>&5
6305  ac_status=$?
6306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307  test $ac_status = 0; }; then
6308    case `/usr/bin/file conftest.$ac_objext` in
6309      *ELF-32*)
6310	HPUX_IA64_MODE="32"
6311	;;
6312      *ELF-64*)
6313	HPUX_IA64_MODE="64"
6314	;;
6315    esac
6316  fi
6317  rm -rf conftest*
6318  ;;
6319*-*-irix6*)
6320  # Find out which ABI we are using.
6321  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6322  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323  (eval $ac_compile) 2>&5
6324  ac_status=$?
6325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326  test $ac_status = 0; }; then
6327    if test "$lt_cv_prog_gnu_ld" = yes; then
6328      case `/usr/bin/file conftest.$ac_objext` in
6329	*32-bit*)
6330	  LD="${LD-ld} -melf32bsmip"
6331	  ;;
6332	*N32*)
6333	  LD="${LD-ld} -melf32bmipn32"
6334	  ;;
6335	*64-bit*)
6336	  LD="${LD-ld} -melf64bmip"
6337	;;
6338      esac
6339    else
6340      case `/usr/bin/file conftest.$ac_objext` in
6341	*32-bit*)
6342	  LD="${LD-ld} -32"
6343	  ;;
6344	*N32*)
6345	  LD="${LD-ld} -n32"
6346	  ;;
6347	*64-bit*)
6348	  LD="${LD-ld} -64"
6349	  ;;
6350      esac
6351    fi
6352  fi
6353  rm -rf conftest*
6354  ;;
6355
6356x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6357s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6358  # Find out which ABI we are using.
6359  echo 'int i;' > conftest.$ac_ext
6360  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361  (eval $ac_compile) 2>&5
6362  ac_status=$?
6363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364  test $ac_status = 0; }; then
6365    case `/usr/bin/file conftest.o` in
6366      *32-bit*)
6367	case $host in
6368	  x86_64-*kfreebsd*-gnu)
6369	    LD="${LD-ld} -m elf_i386_fbsd"
6370	    ;;
6371	  x86_64-*linux*)
6372	    LD="${LD-ld} -m elf_i386"
6373	    ;;
6374	  ppc64-*linux*|powerpc64-*linux*)
6375	    LD="${LD-ld} -m elf32ppclinux"
6376	    ;;
6377	  s390x-*linux*)
6378	    LD="${LD-ld} -m elf_s390"
6379	    ;;
6380	  sparc64-*linux*)
6381	    LD="${LD-ld} -m elf32_sparc"
6382	    ;;
6383	esac
6384	;;
6385      *64-bit*)
6386	case $host in
6387	  x86_64-*kfreebsd*-gnu)
6388	    LD="${LD-ld} -m elf_x86_64_fbsd"
6389	    ;;
6390	  x86_64-*linux*)
6391	    LD="${LD-ld} -m elf_x86_64"
6392	    ;;
6393	  ppc*-*linux*|powerpc*-*linux*)
6394	    LD="${LD-ld} -m elf64ppc"
6395	    ;;
6396	  s390*-*linux*|s390*-*tpf*)
6397	    LD="${LD-ld} -m elf64_s390"
6398	    ;;
6399	  sparc*-*linux*)
6400	    LD="${LD-ld} -m elf64_sparc"
6401	    ;;
6402	esac
6403	;;
6404    esac
6405  fi
6406  rm -rf conftest*
6407  ;;
6408
6409*-*-sco3.2v5*)
6410  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6411  SAVE_CFLAGS="$CFLAGS"
6412  CFLAGS="$CFLAGS -belf"
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6414$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6415if ${lt_cv_cc_needs_belf+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418  ac_ext=c
6419ac_cpp='$CPP $CPPFLAGS'
6420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422ac_compiler_gnu=$ac_cv_c_compiler_gnu
6423
6424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425/* end confdefs.h.  */
6426
6427int
6428main ()
6429{
6430
6431  ;
6432  return 0;
6433}
6434_ACEOF
6435if ac_fn_c_try_link "$LINENO"; then :
6436  lt_cv_cc_needs_belf=yes
6437else
6438  lt_cv_cc_needs_belf=no
6439fi
6440rm -f core conftest.err conftest.$ac_objext \
6441    conftest$ac_exeext conftest.$ac_ext
6442     ac_ext=c
6443ac_cpp='$CPP $CPPFLAGS'
6444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6446ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447
6448fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6450$as_echo "$lt_cv_cc_needs_belf" >&6; }
6451  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6452    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6453    CFLAGS="$SAVE_CFLAGS"
6454  fi
6455  ;;
6456*-*solaris*)
6457  # Find out which ABI we are using.
6458  echo 'int i;' > conftest.$ac_ext
6459  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460  (eval $ac_compile) 2>&5
6461  ac_status=$?
6462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463  test $ac_status = 0; }; then
6464    case `/usr/bin/file conftest.o` in
6465    *64-bit*)
6466      case $lt_cv_prog_gnu_ld in
6467      yes*)
6468        case $host in
6469        i?86-*-solaris*)
6470          LD="${LD-ld} -m elf_x86_64"
6471          ;;
6472        sparc*-*-solaris*)
6473          LD="${LD-ld} -m elf64_sparc"
6474          ;;
6475        esac
6476        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6477        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6478          LD="${LD-ld}_sol2"
6479        fi
6480        ;;
6481      *)
6482	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6483	  LD="${LD-ld} -64"
6484	fi
6485	;;
6486      esac
6487      ;;
6488    esac
6489  fi
6490  rm -rf conftest*
6491  ;;
6492esac
6493
6494need_locks="$enable_libtool_lock"
6495
6496if test -n "$ac_tool_prefix"; then
6497  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6498set dummy ${ac_tool_prefix}mt; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  if test -n "$MANIFEST_TOOL"; then
6505  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  test -z "$as_dir" && as_dir=.
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519  done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6525if test -n "$MANIFEST_TOOL"; then
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6527$as_echo "$MANIFEST_TOOL" >&6; }
6528else
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533
6534fi
6535if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6536  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6537  # Extract the first word of "mt", so it can be a program name with args.
6538set dummy mt; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  if test -n "$ac_ct_MANIFEST_TOOL"; then
6545  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550  IFS=$as_save_IFS
6551  test -z "$as_dir" && as_dir=.
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6565if test -n "$ac_ct_MANIFEST_TOOL"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6567$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6574    MANIFEST_TOOL=":"
6575  else
6576    case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6583  fi
6584else
6585  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6586fi
6587
6588test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6590$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6591if ${lt_cv_path_mainfest_tool+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  lt_cv_path_mainfest_tool=no
6595  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6596  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6597  cat conftest.err >&5
6598  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6599    lt_cv_path_mainfest_tool=yes
6600  fi
6601  rm -f conftest*
6602fi
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6604$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6605if test "x$lt_cv_path_mainfest_tool" != xyes; then
6606  MANIFEST_TOOL=:
6607fi
6608
6609
6610
6611
6612
6613
6614  case $host_os in
6615    rhapsody* | darwin*)
6616    if test -n "$ac_tool_prefix"; then
6617  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6618set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620$as_echo_n "checking for $ac_word... " >&6; }
6621if ${ac_cv_prog_DSYMUTIL+:} false; then :
6622  $as_echo_n "(cached) " >&6
6623else
6624  if test -n "$DSYMUTIL"; then
6625  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  test -z "$as_dir" && as_dir=.
6632    for ac_exec_ext in '' $ac_executable_extensions; do
6633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636    break 2
6637  fi
6638done
6639  done
6640IFS=$as_save_IFS
6641
6642fi
6643fi
6644DSYMUTIL=$ac_cv_prog_DSYMUTIL
6645if test -n "$DSYMUTIL"; then
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6647$as_echo "$DSYMUTIL" >&6; }
6648else
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650$as_echo "no" >&6; }
6651fi
6652
6653
6654fi
6655if test -z "$ac_cv_prog_DSYMUTIL"; then
6656  ac_ct_DSYMUTIL=$DSYMUTIL
6657  # Extract the first word of "dsymutil", so it can be a program name with args.
6658set dummy dsymutil; ac_word=$2
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660$as_echo_n "checking for $ac_word... " >&6; }
6661if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664  if test -n "$ac_ct_DSYMUTIL"; then
6665  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6666else
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670  IFS=$as_save_IFS
6671  test -z "$as_dir" && as_dir=.
6672    for ac_exec_ext in '' $ac_executable_extensions; do
6673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676    break 2
6677  fi
6678done
6679  done
6680IFS=$as_save_IFS
6681
6682fi
6683fi
6684ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6685if test -n "$ac_ct_DSYMUTIL"; then
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6687$as_echo "$ac_ct_DSYMUTIL" >&6; }
6688else
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690$as_echo "no" >&6; }
6691fi
6692
6693  if test "x$ac_ct_DSYMUTIL" = x; then
6694    DSYMUTIL=":"
6695  else
6696    case $cross_compiling:$ac_tool_warned in
6697yes:)
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700ac_tool_warned=yes ;;
6701esac
6702    DSYMUTIL=$ac_ct_DSYMUTIL
6703  fi
6704else
6705  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6706fi
6707
6708    if test -n "$ac_tool_prefix"; then
6709  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6710set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712$as_echo_n "checking for $ac_word... " >&6; }
6713if ${ac_cv_prog_NMEDIT+:} false; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  if test -n "$NMEDIT"; then
6717  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6718else
6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722  IFS=$as_save_IFS
6723  test -z "$as_dir" && as_dir=.
6724    for ac_exec_ext in '' $ac_executable_extensions; do
6725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728    break 2
6729  fi
6730done
6731  done
6732IFS=$as_save_IFS
6733
6734fi
6735fi
6736NMEDIT=$ac_cv_prog_NMEDIT
6737if test -n "$NMEDIT"; then
6738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6739$as_echo "$NMEDIT" >&6; }
6740else
6741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742$as_echo "no" >&6; }
6743fi
6744
6745
6746fi
6747if test -z "$ac_cv_prog_NMEDIT"; then
6748  ac_ct_NMEDIT=$NMEDIT
6749  # Extract the first word of "nmedit", so it can be a program name with args.
6750set dummy nmedit; ac_word=$2
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752$as_echo_n "checking for $ac_word... " >&6; }
6753if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  if test -n "$ac_ct_NMEDIT"; then
6757  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6758else
6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762  IFS=$as_save_IFS
6763  test -z "$as_dir" && as_dir=.
6764    for ac_exec_ext in '' $ac_executable_extensions; do
6765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768    break 2
6769  fi
6770done
6771  done
6772IFS=$as_save_IFS
6773
6774fi
6775fi
6776ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6777if test -n "$ac_ct_NMEDIT"; then
6778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6779$as_echo "$ac_ct_NMEDIT" >&6; }
6780else
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782$as_echo "no" >&6; }
6783fi
6784
6785  if test "x$ac_ct_NMEDIT" = x; then
6786    NMEDIT=":"
6787  else
6788    case $cross_compiling:$ac_tool_warned in
6789yes:)
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792ac_tool_warned=yes ;;
6793esac
6794    NMEDIT=$ac_ct_NMEDIT
6795  fi
6796else
6797  NMEDIT="$ac_cv_prog_NMEDIT"
6798fi
6799
6800    if test -n "$ac_tool_prefix"; then
6801  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6802set dummy ${ac_tool_prefix}lipo; ac_word=$2
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804$as_echo_n "checking for $ac_word... " >&6; }
6805if ${ac_cv_prog_LIPO+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  if test -n "$LIPO"; then
6809  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814  IFS=$as_save_IFS
6815  test -z "$as_dir" && as_dir=.
6816    for ac_exec_ext in '' $ac_executable_extensions; do
6817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820    break 2
6821  fi
6822done
6823  done
6824IFS=$as_save_IFS
6825
6826fi
6827fi
6828LIPO=$ac_cv_prog_LIPO
6829if test -n "$LIPO"; then
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6831$as_echo "$LIPO" >&6; }
6832else
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
6837
6838fi
6839if test -z "$ac_cv_prog_LIPO"; then
6840  ac_ct_LIPO=$LIPO
6841  # Extract the first word of "lipo", so it can be a program name with args.
6842set dummy lipo; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$ac_ct_LIPO"; then
6849  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_ac_ct_LIPO="lipo"
6859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6869if test -n "$ac_ct_LIPO"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6871$as_echo "$ac_ct_LIPO" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877  if test "x$ac_ct_LIPO" = x; then
6878    LIPO=":"
6879  else
6880    case $cross_compiling:$ac_tool_warned in
6881yes:)
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884ac_tool_warned=yes ;;
6885esac
6886    LIPO=$ac_ct_LIPO
6887  fi
6888else
6889  LIPO="$ac_cv_prog_LIPO"
6890fi
6891
6892    if test -n "$ac_tool_prefix"; then
6893  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6894set dummy ${ac_tool_prefix}otool; ac_word=$2
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896$as_echo_n "checking for $ac_word... " >&6; }
6897if ${ac_cv_prog_OTOOL+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  if test -n "$OTOOL"; then
6901  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906  IFS=$as_save_IFS
6907  test -z "$as_dir" && as_dir=.
6908    for ac_exec_ext in '' $ac_executable_extensions; do
6909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912    break 2
6913  fi
6914done
6915  done
6916IFS=$as_save_IFS
6917
6918fi
6919fi
6920OTOOL=$ac_cv_prog_OTOOL
6921if test -n "$OTOOL"; then
6922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6923$as_echo "$OTOOL" >&6; }
6924else
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928
6929
6930fi
6931if test -z "$ac_cv_prog_OTOOL"; then
6932  ac_ct_OTOOL=$OTOOL
6933  # Extract the first word of "otool", so it can be a program name with args.
6934set dummy otool; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
6937if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  if test -n "$ac_ct_OTOOL"; then
6941  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6942else
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946  IFS=$as_save_IFS
6947  test -z "$as_dir" && as_dir=.
6948    for ac_exec_ext in '' $ac_executable_extensions; do
6949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950    ac_cv_prog_ac_ct_OTOOL="otool"
6951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952    break 2
6953  fi
6954done
6955  done
6956IFS=$as_save_IFS
6957
6958fi
6959fi
6960ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6961if test -n "$ac_ct_OTOOL"; then
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6963$as_echo "$ac_ct_OTOOL" >&6; }
6964else
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966$as_echo "no" >&6; }
6967fi
6968
6969  if test "x$ac_ct_OTOOL" = x; then
6970    OTOOL=":"
6971  else
6972    case $cross_compiling:$ac_tool_warned in
6973yes:)
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976ac_tool_warned=yes ;;
6977esac
6978    OTOOL=$ac_ct_OTOOL
6979  fi
6980else
6981  OTOOL="$ac_cv_prog_OTOOL"
6982fi
6983
6984    if test -n "$ac_tool_prefix"; then
6985  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6986set dummy ${ac_tool_prefix}otool64; ac_word=$2
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988$as_echo_n "checking for $ac_word... " >&6; }
6989if ${ac_cv_prog_OTOOL64+:} false; then :
6990  $as_echo_n "(cached) " >&6
6991else
6992  if test -n "$OTOOL64"; then
6993  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6994else
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998  IFS=$as_save_IFS
6999  test -z "$as_dir" && as_dir=.
7000    for ac_exec_ext in '' $ac_executable_extensions; do
7001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004    break 2
7005  fi
7006done
7007  done
7008IFS=$as_save_IFS
7009
7010fi
7011fi
7012OTOOL64=$ac_cv_prog_OTOOL64
7013if test -n "$OTOOL64"; then
7014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7015$as_echo "$OTOOL64" >&6; }
7016else
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018$as_echo "no" >&6; }
7019fi
7020
7021
7022fi
7023if test -z "$ac_cv_prog_OTOOL64"; then
7024  ac_ct_OTOOL64=$OTOOL64
7025  # Extract the first word of "otool64", so it can be a program name with args.
7026set dummy otool64; ac_word=$2
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028$as_echo_n "checking for $ac_word... " >&6; }
7029if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  if test -n "$ac_ct_OTOOL64"; then
7033  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7034else
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038  IFS=$as_save_IFS
7039  test -z "$as_dir" && as_dir=.
7040    for ac_exec_ext in '' $ac_executable_extensions; do
7041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042    ac_cv_prog_ac_ct_OTOOL64="otool64"
7043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044    break 2
7045  fi
7046done
7047  done
7048IFS=$as_save_IFS
7049
7050fi
7051fi
7052ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7053if test -n "$ac_ct_OTOOL64"; then
7054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7055$as_echo "$ac_ct_OTOOL64" >&6; }
7056else
7057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058$as_echo "no" >&6; }
7059fi
7060
7061  if test "x$ac_ct_OTOOL64" = x; then
7062    OTOOL64=":"
7063  else
7064    case $cross_compiling:$ac_tool_warned in
7065yes:)
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068ac_tool_warned=yes ;;
7069esac
7070    OTOOL64=$ac_ct_OTOOL64
7071  fi
7072else
7073  OTOOL64="$ac_cv_prog_OTOOL64"
7074fi
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7103$as_echo_n "checking for -single_module linker flag... " >&6; }
7104if ${lt_cv_apple_cc_single_mod+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  lt_cv_apple_cc_single_mod=no
7108      if test -z "${LT_MULTI_MODULE}"; then
7109	# By default we will add the -single_module flag. You can override
7110	# by either setting the environment variable LT_MULTI_MODULE
7111	# non-empty at configure time, or by adding -multi_module to the
7112	# link flags.
7113	rm -rf libconftest.dylib*
7114	echo "int foo(void){return 1;}" > conftest.c
7115	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7116-dynamiclib -Wl,-single_module conftest.c" >&5
7117	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7118	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7119        _lt_result=$?
7120	# If there is a non-empty error log, and "single_module"
7121	# appears in it, assume the flag caused a linker warning
7122        if test -s conftest.err && $GREP single_module conftest.err; then
7123	  cat conftest.err >&5
7124	# Otherwise, if the output was created with a 0 exit code from
7125	# the compiler, it worked.
7126	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7127	  lt_cv_apple_cc_single_mod=yes
7128	else
7129	  cat conftest.err >&5
7130	fi
7131	rm -rf libconftest.dylib*
7132	rm -f conftest.*
7133      fi
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7136$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7137
7138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7139$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7140if ${lt_cv_ld_exported_symbols_list+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  lt_cv_ld_exported_symbols_list=no
7144      save_LDFLAGS=$LDFLAGS
7145      echo "_main" > conftest.sym
7146      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148/* end confdefs.h.  */
7149
7150int
7151main ()
7152{
7153
7154  ;
7155  return 0;
7156}
7157_ACEOF
7158if ac_fn_c_try_link "$LINENO"; then :
7159  lt_cv_ld_exported_symbols_list=yes
7160else
7161  lt_cv_ld_exported_symbols_list=no
7162fi
7163rm -f core conftest.err conftest.$ac_objext \
7164    conftest$ac_exeext conftest.$ac_ext
7165	LDFLAGS="$save_LDFLAGS"
7166
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7169$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7170
7171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7172$as_echo_n "checking for -force_load linker flag... " >&6; }
7173if ${lt_cv_ld_force_load+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  lt_cv_ld_force_load=no
7177      cat > conftest.c << _LT_EOF
7178int forced_loaded() { return 2;}
7179_LT_EOF
7180      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7181      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7182      echo "$AR cru libconftest.a conftest.o" >&5
7183      $AR cru libconftest.a conftest.o 2>&5
7184      echo "$RANLIB libconftest.a" >&5
7185      $RANLIB libconftest.a 2>&5
7186      cat > conftest.c << _LT_EOF
7187int main() { return 0;}
7188_LT_EOF
7189      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7190      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7191      _lt_result=$?
7192      if test -s conftest.err && $GREP force_load conftest.err; then
7193	cat conftest.err >&5
7194      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7195	lt_cv_ld_force_load=yes
7196      else
7197	cat conftest.err >&5
7198      fi
7199        rm -f conftest.err libconftest.a conftest conftest.c
7200        rm -rf conftest.dSYM
7201
7202fi
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7204$as_echo "$lt_cv_ld_force_load" >&6; }
7205    case $host_os in
7206    rhapsody* | darwin1.[012])
7207      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7208    darwin1.*)
7209      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7210    darwin*) # darwin 5.x on
7211      # if running on 10.5 or later, the deployment target defaults
7212      # to the OS version, if on x86, and 10.4, the deployment
7213      # target defaults to 10.4. Don't you love it?
7214      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7215	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7216	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7217	10.[012]*)
7218	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7219	10.*)
7220	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221      esac
7222    ;;
7223  esac
7224    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7225      _lt_dar_single_mod='$single_module'
7226    fi
7227    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7228      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7229    else
7230      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7231    fi
7232    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7233      _lt_dsymutil='~$DSYMUTIL $lib || :'
7234    else
7235      _lt_dsymutil=
7236    fi
7237    ;;
7238  esac
7239
7240ac_ext=c
7241ac_cpp='$CPP $CPPFLAGS'
7242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7246$as_echo_n "checking how to run the C preprocessor... " >&6; }
7247# On Suns, sometimes $CPP names a directory.
7248if test -n "$CPP" && test -d "$CPP"; then
7249  CPP=
7250fi
7251if test -z "$CPP"; then
7252  if ${ac_cv_prog_CPP+:} false; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255      # Double quotes because CPP needs to be expanded
7256    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7257    do
7258      ac_preproc_ok=false
7259for ac_c_preproc_warn_flag in '' yes
7260do
7261  # Use a header file that comes with gcc, so configuring glibc
7262  # with a fresh cross-compiler works.
7263  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264  # <limits.h> exists even on freestanding compilers.
7265  # On the NeXT, cc -E runs the code through the compiler's parser,
7266  # not just through cpp. "Syntax error" is here to catch this case.
7267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269#ifdef __STDC__
7270# include <limits.h>
7271#else
7272# include <assert.h>
7273#endif
7274		     Syntax error
7275_ACEOF
7276if ac_fn_c_try_cpp "$LINENO"; then :
7277
7278else
7279  # Broken: fails on valid input.
7280continue
7281fi
7282rm -f conftest.err conftest.i conftest.$ac_ext
7283
7284  # OK, works on sane cases.  Now check whether nonexistent headers
7285  # can be detected and how.
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288#include <ac_nonexistent.h>
7289_ACEOF
7290if ac_fn_c_try_cpp "$LINENO"; then :
7291  # Broken: success on invalid input.
7292continue
7293else
7294  # Passes both tests.
7295ac_preproc_ok=:
7296break
7297fi
7298rm -f conftest.err conftest.i conftest.$ac_ext
7299
7300done
7301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7302rm -f conftest.i conftest.err conftest.$ac_ext
7303if $ac_preproc_ok; then :
7304  break
7305fi
7306
7307    done
7308    ac_cv_prog_CPP=$CPP
7309
7310fi
7311  CPP=$ac_cv_prog_CPP
7312else
7313  ac_cv_prog_CPP=$CPP
7314fi
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7316$as_echo "$CPP" >&6; }
7317ac_preproc_ok=false
7318for ac_c_preproc_warn_flag in '' yes
7319do
7320  # Use a header file that comes with gcc, so configuring glibc
7321  # with a fresh cross-compiler works.
7322  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323  # <limits.h> exists even on freestanding compilers.
7324  # On the NeXT, cc -E runs the code through the compiler's parser,
7325  # not just through cpp. "Syntax error" is here to catch this case.
7326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328#ifdef __STDC__
7329# include <limits.h>
7330#else
7331# include <assert.h>
7332#endif
7333		     Syntax error
7334_ACEOF
7335if ac_fn_c_try_cpp "$LINENO"; then :
7336
7337else
7338  # Broken: fails on valid input.
7339continue
7340fi
7341rm -f conftest.err conftest.i conftest.$ac_ext
7342
7343  # OK, works on sane cases.  Now check whether nonexistent headers
7344  # can be detected and how.
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347#include <ac_nonexistent.h>
7348_ACEOF
7349if ac_fn_c_try_cpp "$LINENO"; then :
7350  # Broken: success on invalid input.
7351continue
7352else
7353  # Passes both tests.
7354ac_preproc_ok=:
7355break
7356fi
7357rm -f conftest.err conftest.i conftest.$ac_ext
7358
7359done
7360# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7361rm -f conftest.i conftest.err conftest.$ac_ext
7362if $ac_preproc_ok; then :
7363
7364else
7365  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7367as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7368See \`config.log' for more details" "$LINENO" 5; }
7369fi
7370
7371ac_ext=c
7372ac_cpp='$CPP $CPPFLAGS'
7373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376
7377
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7379$as_echo_n "checking for ANSI C header files... " >&6; }
7380if ${ac_cv_header_stdc+:} false; then :
7381  $as_echo_n "(cached) " >&6
7382else
7383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385#include <stdlib.h>
7386#include <stdarg.h>
7387#include <string.h>
7388#include <float.h>
7389
7390int
7391main ()
7392{
7393
7394  ;
7395  return 0;
7396}
7397_ACEOF
7398if ac_fn_c_try_compile "$LINENO"; then :
7399  ac_cv_header_stdc=yes
7400else
7401  ac_cv_header_stdc=no
7402fi
7403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7404
7405if test $ac_cv_header_stdc = yes; then
7406  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409#include <string.h>
7410
7411_ACEOF
7412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7413  $EGREP "memchr" >/dev/null 2>&1; then :
7414
7415else
7416  ac_cv_header_stdc=no
7417fi
7418rm -f conftest*
7419
7420fi
7421
7422if test $ac_cv_header_stdc = yes; then
7423  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426#include <stdlib.h>
7427
7428_ACEOF
7429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7430  $EGREP "free" >/dev/null 2>&1; then :
7431
7432else
7433  ac_cv_header_stdc=no
7434fi
7435rm -f conftest*
7436
7437fi
7438
7439if test $ac_cv_header_stdc = yes; then
7440  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7441  if test "$cross_compiling" = yes; then :
7442  :
7443else
7444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h.  */
7446#include <ctype.h>
7447#include <stdlib.h>
7448#if ((' ' & 0x0FF) == 0x020)
7449# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7450# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7451#else
7452# define ISLOWER(c) \
7453		   (('a' <= (c) && (c) <= 'i') \
7454		     || ('j' <= (c) && (c) <= 'r') \
7455		     || ('s' <= (c) && (c) <= 'z'))
7456# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7457#endif
7458
7459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7460int
7461main ()
7462{
7463  int i;
7464  for (i = 0; i < 256; i++)
7465    if (XOR (islower (i), ISLOWER (i))
7466	|| toupper (i) != TOUPPER (i))
7467      return 2;
7468  return 0;
7469}
7470_ACEOF
7471if ac_fn_c_try_run "$LINENO"; then :
7472
7473else
7474  ac_cv_header_stdc=no
7475fi
7476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7477  conftest.$ac_objext conftest.beam conftest.$ac_ext
7478fi
7479
7480fi
7481fi
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7483$as_echo "$ac_cv_header_stdc" >&6; }
7484if test $ac_cv_header_stdc = yes; then
7485
7486$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7487
7488fi
7489
7490# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7491for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7492		  inttypes.h stdint.h unistd.h
7493do :
7494  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7496"
7497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7498  cat >>confdefs.h <<_ACEOF
7499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500_ACEOF
7501
7502fi
7503
7504done
7505
7506
7507for ac_header in dlfcn.h
7508do :
7509  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7510"
7511if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7512  cat >>confdefs.h <<_ACEOF
7513#define HAVE_DLFCN_H 1
7514_ACEOF
7515
7516fi
7517
7518done
7519
7520
7521
7522
7523
7524# Set options
7525
7526
7527
7528        enable_dlopen=no
7529
7530
7531  enable_win32_dll=no
7532
7533
7534            # Check whether --enable-shared was given.
7535if test "${enable_shared+set}" = set; then :
7536  enableval=$enable_shared; p=${PACKAGE-default}
7537    case $enableval in
7538    yes) enable_shared=yes ;;
7539    no) enable_shared=no ;;
7540    *)
7541      enable_shared=no
7542      # Look at the argument we got.  We use all the common list separators.
7543      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7544      for pkg in $enableval; do
7545	IFS="$lt_save_ifs"
7546	if test "X$pkg" = "X$p"; then
7547	  enable_shared=yes
7548	fi
7549      done
7550      IFS="$lt_save_ifs"
7551      ;;
7552    esac
7553else
7554  enable_shared=yes
7555fi
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565  # Check whether --enable-static was given.
7566if test "${enable_static+set}" = set; then :
7567  enableval=$enable_static; p=${PACKAGE-default}
7568    case $enableval in
7569    yes) enable_static=yes ;;
7570    no) enable_static=no ;;
7571    *)
7572     enable_static=no
7573      # Look at the argument we got.  We use all the common list separators.
7574      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7575      for pkg in $enableval; do
7576	IFS="$lt_save_ifs"
7577	if test "X$pkg" = "X$p"; then
7578	  enable_static=yes
7579	fi
7580      done
7581      IFS="$lt_save_ifs"
7582      ;;
7583    esac
7584else
7585  enable_static=yes
7586fi
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597# Check whether --with-pic was given.
7598if test "${with_pic+set}" = set; then :
7599  withval=$with_pic; lt_p=${PACKAGE-default}
7600    case $withval in
7601    yes|no) pic_mode=$withval ;;
7602    *)
7603      pic_mode=default
7604      # Look at the argument we got.  We use all the common list separators.
7605      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606      for lt_pkg in $withval; do
7607	IFS="$lt_save_ifs"
7608	if test "X$lt_pkg" = "X$lt_p"; then
7609	  pic_mode=yes
7610	fi
7611      done
7612      IFS="$lt_save_ifs"
7613      ;;
7614    esac
7615else
7616  pic_mode=default
7617fi
7618
7619
7620test -z "$pic_mode" && pic_mode=default
7621
7622
7623
7624
7625
7626
7627
7628  # Check whether --enable-fast-install was given.
7629if test "${enable_fast_install+set}" = set; then :
7630  enableval=$enable_fast_install; p=${PACKAGE-default}
7631    case $enableval in
7632    yes) enable_fast_install=yes ;;
7633    no) enable_fast_install=no ;;
7634    *)
7635      enable_fast_install=no
7636      # Look at the argument we got.  We use all the common list separators.
7637      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7638      for pkg in $enableval; do
7639	IFS="$lt_save_ifs"
7640	if test "X$pkg" = "X$p"; then
7641	  enable_fast_install=yes
7642	fi
7643      done
7644      IFS="$lt_save_ifs"
7645      ;;
7646    esac
7647else
7648  enable_fast_install=yes
7649fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661# This can be used to rebuild libtool when needed
7662LIBTOOL_DEPS="$ltmain"
7663
7664# Always use our own libtool.
7665LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696test -z "$LN_S" && LN_S="ln -s"
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711if test -n "${ZSH_VERSION+set}" ; then
7712   setopt NO_GLOB_SUBST
7713fi
7714
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7716$as_echo_n "checking for objdir... " >&6; }
7717if ${lt_cv_objdir+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  rm -f .libs 2>/dev/null
7721mkdir .libs 2>/dev/null
7722if test -d .libs; then
7723  lt_cv_objdir=.libs
7724else
7725  # MS-DOS does not allow filenames that begin with a dot.
7726  lt_cv_objdir=_libs
7727fi
7728rmdir .libs 2>/dev/null
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7731$as_echo "$lt_cv_objdir" >&6; }
7732objdir=$lt_cv_objdir
7733
7734
7735
7736
7737
7738cat >>confdefs.h <<_ACEOF
7739#define LT_OBJDIR "$lt_cv_objdir/"
7740_ACEOF
7741
7742
7743
7744
7745case $host_os in
7746aix3*)
7747  # AIX sometimes has problems with the GCC collect2 program.  For some
7748  # reason, if we set the COLLECT_NAMES environment variable, the problems
7749  # vanish in a puff of smoke.
7750  if test "X${COLLECT_NAMES+set}" != Xset; then
7751    COLLECT_NAMES=
7752    export COLLECT_NAMES
7753  fi
7754  ;;
7755esac
7756
7757# Global variables:
7758ofile=libtool
7759can_build_shared=yes
7760
7761# All known linkers require a `.a' archive for static linking (except MSVC,
7762# which needs '.lib').
7763libext=a
7764
7765with_gnu_ld="$lt_cv_prog_gnu_ld"
7766
7767old_CC="$CC"
7768old_CFLAGS="$CFLAGS"
7769
7770# Set sane defaults for various variables
7771test -z "$CC" && CC=cc
7772test -z "$LTCC" && LTCC=$CC
7773test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7774test -z "$LD" && LD=ld
7775test -z "$ac_objext" && ac_objext=o
7776
7777for cc_temp in $compiler""; do
7778  case $cc_temp in
7779    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7780    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7781    \-*) ;;
7782    *) break;;
7783  esac
7784done
7785cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7786
7787
7788# Only perform the check for file, if the check method requires it
7789test -z "$MAGIC_CMD" && MAGIC_CMD=file
7790case $deplibs_check_method in
7791file_magic*)
7792  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7794$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7795if ${lt_cv_path_MAGIC_CMD+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  case $MAGIC_CMD in
7799[\\/*] |  ?:[\\/]*)
7800  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7801  ;;
7802*)
7803  lt_save_MAGIC_CMD="$MAGIC_CMD"
7804  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7805  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7806  for ac_dir in $ac_dummy; do
7807    IFS="$lt_save_ifs"
7808    test -z "$ac_dir" && ac_dir=.
7809    if test -f $ac_dir/${ac_tool_prefix}file; then
7810      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7811      if test -n "$file_magic_test_file"; then
7812	case $deplibs_check_method in
7813	"file_magic "*)
7814	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7815	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7816	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7817	    $EGREP "$file_magic_regex" > /dev/null; then
7818	    :
7819	  else
7820	    cat <<_LT_EOF 1>&2
7821
7822*** Warning: the command libtool uses to detect shared libraries,
7823*** $file_magic_cmd, produces output that libtool cannot recognize.
7824*** The result is that libtool may fail to recognize shared libraries
7825*** as such.  This will affect the creation of libtool libraries that
7826*** depend on shared libraries, but programs linked with such libtool
7827*** libraries will work regardless of this problem.  Nevertheless, you
7828*** may want to report the problem to your system manager and/or to
7829*** bug-libtool@gnu.org
7830
7831_LT_EOF
7832	  fi ;;
7833	esac
7834      fi
7835      break
7836    fi
7837  done
7838  IFS="$lt_save_ifs"
7839  MAGIC_CMD="$lt_save_MAGIC_CMD"
7840  ;;
7841esac
7842fi
7843
7844MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7845if test -n "$MAGIC_CMD"; then
7846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7847$as_echo "$MAGIC_CMD" >&6; }
7848else
7849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850$as_echo "no" >&6; }
7851fi
7852
7853
7854
7855
7856
7857if test -z "$lt_cv_path_MAGIC_CMD"; then
7858  if test -n "$ac_tool_prefix"; then
7859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7860$as_echo_n "checking for file... " >&6; }
7861if ${lt_cv_path_MAGIC_CMD+:} false; then :
7862  $as_echo_n "(cached) " >&6
7863else
7864  case $MAGIC_CMD in
7865[\\/*] |  ?:[\\/]*)
7866  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7867  ;;
7868*)
7869  lt_save_MAGIC_CMD="$MAGIC_CMD"
7870  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7871  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7872  for ac_dir in $ac_dummy; do
7873    IFS="$lt_save_ifs"
7874    test -z "$ac_dir" && ac_dir=.
7875    if test -f $ac_dir/file; then
7876      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7877      if test -n "$file_magic_test_file"; then
7878	case $deplibs_check_method in
7879	"file_magic "*)
7880	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7881	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7882	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7883	    $EGREP "$file_magic_regex" > /dev/null; then
7884	    :
7885	  else
7886	    cat <<_LT_EOF 1>&2
7887
7888*** Warning: the command libtool uses to detect shared libraries,
7889*** $file_magic_cmd, produces output that libtool cannot recognize.
7890*** The result is that libtool may fail to recognize shared libraries
7891*** as such.  This will affect the creation of libtool libraries that
7892*** depend on shared libraries, but programs linked with such libtool
7893*** libraries will work regardless of this problem.  Nevertheless, you
7894*** may want to report the problem to your system manager and/or to
7895*** bug-libtool@gnu.org
7896
7897_LT_EOF
7898	  fi ;;
7899	esac
7900      fi
7901      break
7902    fi
7903  done
7904  IFS="$lt_save_ifs"
7905  MAGIC_CMD="$lt_save_MAGIC_CMD"
7906  ;;
7907esac
7908fi
7909
7910MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911if test -n "$MAGIC_CMD"; then
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7913$as_echo "$MAGIC_CMD" >&6; }
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920  else
7921    MAGIC_CMD=:
7922  fi
7923fi
7924
7925  fi
7926  ;;
7927esac
7928
7929# Use C for the default configuration in the libtool script
7930
7931lt_save_CC="$CC"
7932ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938
7939# Source file extension for C test sources.
7940ac_ext=c
7941
7942# Object file extension for compiled C test sources.
7943objext=o
7944objext=$objext
7945
7946# Code to be used in simple compile tests
7947lt_simple_compile_test_code="int some_variable = 0;"
7948
7949# Code to be used in simple link tests
7950lt_simple_link_test_code='int main(){return(0);}'
7951
7952
7953
7954
7955
7956
7957
7958# If no C compiler was specified, use CC.
7959LTCC=${LTCC-"$CC"}
7960
7961# If no C compiler flags were specified, use CFLAGS.
7962LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7963
7964# Allow CC to be a program name with arguments.
7965compiler=$CC
7966
7967# Save the default compiler, since it gets overwritten when the other
7968# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7969compiler_DEFAULT=$CC
7970
7971# save warnings/boilerplate of simple test code
7972ac_outfile=conftest.$ac_objext
7973echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7974eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7975_lt_compiler_boilerplate=`cat conftest.err`
7976$RM conftest*
7977
7978ac_outfile=conftest.$ac_objext
7979echo "$lt_simple_link_test_code" >conftest.$ac_ext
7980eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7981_lt_linker_boilerplate=`cat conftest.err`
7982$RM -r conftest*
7983
7984
7985## CAVEAT EMPTOR:
7986## There is no encapsulation within the following macros, do not change
7987## the running order or otherwise move them around unless you know exactly
7988## what you are doing...
7989if test -n "$compiler"; then
7990
7991lt_prog_compiler_no_builtin_flag=
7992
7993if test "$GCC" = yes; then
7994  case $cc_basename in
7995  nvcc*)
7996    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7997  *)
7998    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7999  esac
8000
8001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8002$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8003if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  lt_cv_prog_compiler_rtti_exceptions=no
8007   ac_outfile=conftest.$ac_objext
8008   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8009   lt_compiler_flag="-fno-rtti -fno-exceptions"
8010   # Insert the option either (1) after the last *FLAGS variable, or
8011   # (2) before a word containing "conftest.", or (3) at the end.
8012   # Note that $ac_compile itself does not contain backslashes and begins
8013   # with a dollar sign (not a hyphen), so the echo should work correctly.
8014   # The option is referenced via a variable to avoid confusing sed.
8015   lt_compile=`echo "$ac_compile" | $SED \
8016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018   -e 's:$: $lt_compiler_flag:'`
8019   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8020   (eval "$lt_compile" 2>conftest.err)
8021   ac_status=$?
8022   cat conftest.err >&5
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   if (exit $ac_status) && test -s "$ac_outfile"; then
8025     # The compiler can only warn and ignore the option if not recognized
8026     # So say no if there are warnings other than the usual output.
8027     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8028     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8029     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8030       lt_cv_prog_compiler_rtti_exceptions=yes
8031     fi
8032   fi
8033   $RM conftest*
8034
8035fi
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8037$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8038
8039if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8040    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8041else
8042    :
8043fi
8044
8045fi
8046
8047
8048
8049
8050
8051
8052  lt_prog_compiler_wl=
8053lt_prog_compiler_pic=
8054lt_prog_compiler_static=
8055
8056
8057  if test "$GCC" = yes; then
8058    lt_prog_compiler_wl='-Wl,'
8059    lt_prog_compiler_static='-static'
8060
8061    case $host_os in
8062      aix*)
8063      # All AIX code is PIC.
8064      if test "$host_cpu" = ia64; then
8065	# AIX 5 now supports IA64 processor
8066	lt_prog_compiler_static='-Bstatic'
8067      fi
8068      ;;
8069
8070    amigaos*)
8071      case $host_cpu in
8072      powerpc)
8073            # see comment about AmigaOS4 .so support
8074            lt_prog_compiler_pic='-fPIC'
8075        ;;
8076      m68k)
8077            # FIXME: we need at least 68020 code to build shared libraries, but
8078            # adding the `-m68020' flag to GCC prevents building anything better,
8079            # like `-m68040'.
8080            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8081        ;;
8082      esac
8083      ;;
8084
8085    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8086      # PIC is the default for these OSes.
8087      ;;
8088
8089    mingw* | cygwin* | pw32* | os2* | cegcc*)
8090      # This hack is so that the source file can tell whether it is being
8091      # built for inclusion in a dll (and should export symbols for example).
8092      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8093      # (--disable-auto-import) libraries
8094      lt_prog_compiler_pic='-DDLL_EXPORT'
8095      ;;
8096
8097    darwin* | rhapsody*)
8098      # PIC is the default on this platform
8099      # Common symbols not allowed in MH_DYLIB files
8100      lt_prog_compiler_pic='-fno-common'
8101      ;;
8102
8103    haiku*)
8104      # PIC is the default for Haiku.
8105      # The "-static" flag exists, but is broken.
8106      lt_prog_compiler_static=
8107      ;;
8108
8109    hpux*)
8110      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8111      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8112      # sets the default TLS model and affects inlining.
8113      case $host_cpu in
8114      hppa*64*)
8115	# +Z the default
8116	;;
8117      *)
8118	lt_prog_compiler_pic='-fPIC'
8119	;;
8120      esac
8121      ;;
8122
8123    interix[3-9]*)
8124      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8125      # Instead, we relocate shared libraries at runtime.
8126      ;;
8127
8128    msdosdjgpp*)
8129      # Just because we use GCC doesn't mean we suddenly get shared libraries
8130      # on systems that don't support them.
8131      lt_prog_compiler_can_build_shared=no
8132      enable_shared=no
8133      ;;
8134
8135    *nto* | *qnx*)
8136      # QNX uses GNU C++, but need to define -shared option too, otherwise
8137      # it will coredump.
8138      lt_prog_compiler_pic='-fPIC -shared'
8139      ;;
8140
8141    sysv4*MP*)
8142      if test -d /usr/nec; then
8143	lt_prog_compiler_pic=-Kconform_pic
8144      fi
8145      ;;
8146
8147    *)
8148      lt_prog_compiler_pic='-fPIC'
8149      ;;
8150    esac
8151
8152    case $cc_basename in
8153    nvcc*) # Cuda Compiler Driver 2.2
8154      lt_prog_compiler_wl='-Xlinker '
8155      if test -n "$lt_prog_compiler_pic"; then
8156        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8157      fi
8158      ;;
8159    esac
8160  else
8161    # PORTME Check for flag to pass linker flags through the system compiler.
8162    case $host_os in
8163    aix*)
8164      lt_prog_compiler_wl='-Wl,'
8165      if test "$host_cpu" = ia64; then
8166	# AIX 5 now supports IA64 processor
8167	lt_prog_compiler_static='-Bstatic'
8168      else
8169	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8170      fi
8171      ;;
8172
8173    mingw* | cygwin* | pw32* | os2* | cegcc*)
8174      # This hack is so that the source file can tell whether it is being
8175      # built for inclusion in a dll (and should export symbols for example).
8176      lt_prog_compiler_pic='-DDLL_EXPORT'
8177      ;;
8178
8179    hpux9* | hpux10* | hpux11*)
8180      lt_prog_compiler_wl='-Wl,'
8181      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8182      # not for PA HP-UX.
8183      case $host_cpu in
8184      hppa*64*|ia64*)
8185	# +Z the default
8186	;;
8187      *)
8188	lt_prog_compiler_pic='+Z'
8189	;;
8190      esac
8191      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8192      lt_prog_compiler_static='${wl}-a ${wl}archive'
8193      ;;
8194
8195    irix5* | irix6* | nonstopux*)
8196      lt_prog_compiler_wl='-Wl,'
8197      # PIC (with -KPIC) is the default.
8198      lt_prog_compiler_static='-non_shared'
8199      ;;
8200
8201    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8202      case $cc_basename in
8203      # old Intel for x86_64 which still supported -KPIC.
8204      ecc*)
8205	lt_prog_compiler_wl='-Wl,'
8206	lt_prog_compiler_pic='-KPIC'
8207	lt_prog_compiler_static='-static'
8208        ;;
8209      # icc used to be incompatible with GCC.
8210      # ICC 10 doesn't accept -KPIC any more.
8211      icc* | ifort*)
8212	lt_prog_compiler_wl='-Wl,'
8213	lt_prog_compiler_pic='-fPIC'
8214	lt_prog_compiler_static='-static'
8215        ;;
8216      # Lahey Fortran 8.1.
8217      lf95*)
8218	lt_prog_compiler_wl='-Wl,'
8219	lt_prog_compiler_pic='--shared'
8220	lt_prog_compiler_static='--static'
8221	;;
8222      nagfor*)
8223	# NAG Fortran compiler
8224	lt_prog_compiler_wl='-Wl,-Wl,,'
8225	lt_prog_compiler_pic='-PIC'
8226	lt_prog_compiler_static='-Bstatic'
8227	;;
8228      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8229        # Portland Group compilers (*not* the Pentium gcc compiler,
8230	# which looks to be a dead project)
8231	lt_prog_compiler_wl='-Wl,'
8232	lt_prog_compiler_pic='-fpic'
8233	lt_prog_compiler_static='-Bstatic'
8234        ;;
8235      ccc*)
8236        lt_prog_compiler_wl='-Wl,'
8237        # All Alpha code is PIC.
8238        lt_prog_compiler_static='-non_shared'
8239        ;;
8240      xl* | bgxl* | bgf* | mpixl*)
8241	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8242	lt_prog_compiler_wl='-Wl,'
8243	lt_prog_compiler_pic='-qpic'
8244	lt_prog_compiler_static='-qstaticlink'
8245	;;
8246      *)
8247	case `$CC -V 2>&1 | sed 5q` in
8248	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8249	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8250	  lt_prog_compiler_pic='-KPIC'
8251	  lt_prog_compiler_static='-Bstatic'
8252	  lt_prog_compiler_wl=''
8253	  ;;
8254	*Sun\ F* | *Sun*Fortran*)
8255	  lt_prog_compiler_pic='-KPIC'
8256	  lt_prog_compiler_static='-Bstatic'
8257	  lt_prog_compiler_wl='-Qoption ld '
8258	  ;;
8259	*Sun\ C*)
8260	  # Sun C 5.9
8261	  lt_prog_compiler_pic='-KPIC'
8262	  lt_prog_compiler_static='-Bstatic'
8263	  lt_prog_compiler_wl='-Wl,'
8264	  ;;
8265        *Intel*\ [CF]*Compiler*)
8266	  lt_prog_compiler_wl='-Wl,'
8267	  lt_prog_compiler_pic='-fPIC'
8268	  lt_prog_compiler_static='-static'
8269	  ;;
8270	*Portland\ Group*)
8271	  lt_prog_compiler_wl='-Wl,'
8272	  lt_prog_compiler_pic='-fpic'
8273	  lt_prog_compiler_static='-Bstatic'
8274	  ;;
8275	esac
8276	;;
8277      esac
8278      ;;
8279
8280    newsos6)
8281      lt_prog_compiler_pic='-KPIC'
8282      lt_prog_compiler_static='-Bstatic'
8283      ;;
8284
8285    *nto* | *qnx*)
8286      # QNX uses GNU C++, but need to define -shared option too, otherwise
8287      # it will coredump.
8288      lt_prog_compiler_pic='-fPIC -shared'
8289      ;;
8290
8291    osf3* | osf4* | osf5*)
8292      lt_prog_compiler_wl='-Wl,'
8293      # All OSF/1 code is PIC.
8294      lt_prog_compiler_static='-non_shared'
8295      ;;
8296
8297    rdos*)
8298      lt_prog_compiler_static='-non_shared'
8299      ;;
8300
8301    solaris*)
8302      lt_prog_compiler_pic='-KPIC'
8303      lt_prog_compiler_static='-Bstatic'
8304      case $cc_basename in
8305      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8306	lt_prog_compiler_wl='-Qoption ld ';;
8307      *)
8308	lt_prog_compiler_wl='-Wl,';;
8309      esac
8310      ;;
8311
8312    sunos4*)
8313      lt_prog_compiler_wl='-Qoption ld '
8314      lt_prog_compiler_pic='-PIC'
8315      lt_prog_compiler_static='-Bstatic'
8316      ;;
8317
8318    sysv4 | sysv4.2uw2* | sysv4.3*)
8319      lt_prog_compiler_wl='-Wl,'
8320      lt_prog_compiler_pic='-KPIC'
8321      lt_prog_compiler_static='-Bstatic'
8322      ;;
8323
8324    sysv4*MP*)
8325      if test -d /usr/nec ;then
8326	lt_prog_compiler_pic='-Kconform_pic'
8327	lt_prog_compiler_static='-Bstatic'
8328      fi
8329      ;;
8330
8331    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8332      lt_prog_compiler_wl='-Wl,'
8333      lt_prog_compiler_pic='-KPIC'
8334      lt_prog_compiler_static='-Bstatic'
8335      ;;
8336
8337    unicos*)
8338      lt_prog_compiler_wl='-Wl,'
8339      lt_prog_compiler_can_build_shared=no
8340      ;;
8341
8342    uts4*)
8343      lt_prog_compiler_pic='-pic'
8344      lt_prog_compiler_static='-Bstatic'
8345      ;;
8346
8347    *)
8348      lt_prog_compiler_can_build_shared=no
8349      ;;
8350    esac
8351  fi
8352
8353case $host_os in
8354  # For platforms which do not support PIC, -DPIC is meaningless:
8355  *djgpp*)
8356    lt_prog_compiler_pic=
8357    ;;
8358  *)
8359    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8360    ;;
8361esac
8362
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8364$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8365if ${lt_cv_prog_compiler_pic+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8369fi
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8371$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8372lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8373
8374#
8375# Check to make sure the PIC flag actually works.
8376#
8377if test -n "$lt_prog_compiler_pic"; then
8378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8379$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8380if ${lt_cv_prog_compiler_pic_works+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  lt_cv_prog_compiler_pic_works=no
8384   ac_outfile=conftest.$ac_objext
8385   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8386   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8387   # Insert the option either (1) after the last *FLAGS variable, or
8388   # (2) before a word containing "conftest.", or (3) at the end.
8389   # Note that $ac_compile itself does not contain backslashes and begins
8390   # with a dollar sign (not a hyphen), so the echo should work correctly.
8391   # The option is referenced via a variable to avoid confusing sed.
8392   lt_compile=`echo "$ac_compile" | $SED \
8393   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395   -e 's:$: $lt_compiler_flag:'`
8396   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8397   (eval "$lt_compile" 2>conftest.err)
8398   ac_status=$?
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   if (exit $ac_status) && test -s "$ac_outfile"; then
8402     # The compiler can only warn and ignore the option if not recognized
8403     # So say no if there are warnings other than the usual output.
8404     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8405     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8406     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8407       lt_cv_prog_compiler_pic_works=yes
8408     fi
8409   fi
8410   $RM conftest*
8411
8412fi
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8414$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8415
8416if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8417    case $lt_prog_compiler_pic in
8418     "" | " "*) ;;
8419     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8420     esac
8421else
8422    lt_prog_compiler_pic=
8423     lt_prog_compiler_can_build_shared=no
8424fi
8425
8426fi
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438#
8439# Check to make sure the static flag actually works.
8440#
8441wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8443$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8444if ${lt_cv_prog_compiler_static_works+:} false; then :
8445  $as_echo_n "(cached) " >&6
8446else
8447  lt_cv_prog_compiler_static_works=no
8448   save_LDFLAGS="$LDFLAGS"
8449   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8450   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8451   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8452     # The linker can only warn and ignore the option if not recognized
8453     # So say no if there are warnings
8454     if test -s conftest.err; then
8455       # Append any errors to the config.log.
8456       cat conftest.err 1>&5
8457       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8458       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8459       if diff conftest.exp conftest.er2 >/dev/null; then
8460         lt_cv_prog_compiler_static_works=yes
8461       fi
8462     else
8463       lt_cv_prog_compiler_static_works=yes
8464     fi
8465   fi
8466   $RM -r conftest*
8467   LDFLAGS="$save_LDFLAGS"
8468
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8471$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8472
8473if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8474    :
8475else
8476    lt_prog_compiler_static=
8477fi
8478
8479
8480
8481
8482
8483
8484
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8486$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8487if ${lt_cv_prog_compiler_c_o+:} false; then :
8488  $as_echo_n "(cached) " >&6
8489else
8490  lt_cv_prog_compiler_c_o=no
8491   $RM -r conftest 2>/dev/null
8492   mkdir conftest
8493   cd conftest
8494   mkdir out
8495   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496
8497   lt_compiler_flag="-o out/conftest2.$ac_objext"
8498   # Insert the option either (1) after the last *FLAGS variable, or
8499   # (2) before a word containing "conftest.", or (3) at the end.
8500   # Note that $ac_compile itself does not contain backslashes and begins
8501   # with a dollar sign (not a hyphen), so the echo should work correctly.
8502   lt_compile=`echo "$ac_compile" | $SED \
8503   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505   -e 's:$: $lt_compiler_flag:'`
8506   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507   (eval "$lt_compile" 2>out/conftest.err)
8508   ac_status=$?
8509   cat out/conftest.err >&5
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8512   then
8513     # The compiler can only warn and ignore the option if not recognized
8514     # So say no if there are warnings
8515     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8516     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8517     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8518       lt_cv_prog_compiler_c_o=yes
8519     fi
8520   fi
8521   chmod u+w . 2>&5
8522   $RM conftest*
8523   # SGI C++ compiler will create directory out/ii_files/ for
8524   # template instantiation
8525   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8526   $RM out/* && rmdir out
8527   cd ..
8528   $RM -r conftest
8529   $RM conftest*
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8533$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8534
8535
8536
8537
8538
8539
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8541$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8542if ${lt_cv_prog_compiler_c_o+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  lt_cv_prog_compiler_c_o=no
8546   $RM -r conftest 2>/dev/null
8547   mkdir conftest
8548   cd conftest
8549   mkdir out
8550   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551
8552   lt_compiler_flag="-o out/conftest2.$ac_objext"
8553   # Insert the option either (1) after the last *FLAGS variable, or
8554   # (2) before a word containing "conftest.", or (3) at the end.
8555   # Note that $ac_compile itself does not contain backslashes and begins
8556   # with a dollar sign (not a hyphen), so the echo should work correctly.
8557   lt_compile=`echo "$ac_compile" | $SED \
8558   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560   -e 's:$: $lt_compiler_flag:'`
8561   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562   (eval "$lt_compile" 2>out/conftest.err)
8563   ac_status=$?
8564   cat out/conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8567   then
8568     # The compiler can only warn and ignore the option if not recognized
8569     # So say no if there are warnings
8570     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8571     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8572     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8573       lt_cv_prog_compiler_c_o=yes
8574     fi
8575   fi
8576   chmod u+w . 2>&5
8577   $RM conftest*
8578   # SGI C++ compiler will create directory out/ii_files/ for
8579   # template instantiation
8580   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8581   $RM out/* && rmdir out
8582   cd ..
8583   $RM -r conftest
8584   $RM conftest*
8585
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8588$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8589
8590
8591
8592
8593hard_links="nottested"
8594if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8595  # do not overwrite the value of need_locks provided by the user
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8597$as_echo_n "checking if we can lock with hard links... " >&6; }
8598  hard_links=yes
8599  $RM conftest*
8600  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8601  touch conftest.a
8602  ln conftest.a conftest.b 2>&5 || hard_links=no
8603  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8605$as_echo "$hard_links" >&6; }
8606  if test "$hard_links" = no; then
8607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8608$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8609    need_locks=warn
8610  fi
8611else
8612  need_locks=no
8613fi
8614
8615
8616
8617
8618
8619
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8621$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8622
8623  runpath_var=
8624  allow_undefined_flag=
8625  always_export_symbols=no
8626  archive_cmds=
8627  archive_expsym_cmds=
8628  compiler_needs_object=no
8629  enable_shared_with_static_runtimes=no
8630  export_dynamic_flag_spec=
8631  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8632  hardcode_automatic=no
8633  hardcode_direct=no
8634  hardcode_direct_absolute=no
8635  hardcode_libdir_flag_spec=
8636  hardcode_libdir_separator=
8637  hardcode_minus_L=no
8638  hardcode_shlibpath_var=unsupported
8639  inherit_rpath=no
8640  link_all_deplibs=unknown
8641  module_cmds=
8642  module_expsym_cmds=
8643  old_archive_from_new_cmds=
8644  old_archive_from_expsyms_cmds=
8645  thread_safe_flag_spec=
8646  whole_archive_flag_spec=
8647  # include_expsyms should be a list of space-separated symbols to be *always*
8648  # included in the symbol list
8649  include_expsyms=
8650  # exclude_expsyms can be an extended regexp of symbols to exclude
8651  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8652  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8653  # as well as any symbol that contains `d'.
8654  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8655  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8656  # platforms (ab)use it in PIC code, but their linkers get confused if
8657  # the symbol is explicitly referenced.  Since portable code cannot
8658  # rely on this symbol name, it's probably fine to never include it in
8659  # preloaded symbol tables.
8660  # Exclude shared library initialization/finalization symbols.
8661  extract_expsyms_cmds=
8662
8663  case $host_os in
8664  cygwin* | mingw* | pw32* | cegcc*)
8665    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8666    # When not using gcc, we currently assume that we are using
8667    # Microsoft Visual C++.
8668    if test "$GCC" != yes; then
8669      with_gnu_ld=no
8670    fi
8671    ;;
8672  interix*)
8673    # we just hope/assume this is gcc and not c89 (= MSVC++)
8674    with_gnu_ld=yes
8675    ;;
8676  openbsd*)
8677    with_gnu_ld=no
8678    ;;
8679  esac
8680
8681  ld_shlibs=yes
8682
8683  # On some targets, GNU ld is compatible enough with the native linker
8684  # that we're better off using the native interface for both.
8685  lt_use_gnu_ld_interface=no
8686  if test "$with_gnu_ld" = yes; then
8687    case $host_os in
8688      aix*)
8689	# The AIX port of GNU ld has always aspired to compatibility
8690	# with the native linker.  However, as the warning in the GNU ld
8691	# block says, versions before 2.19.5* couldn't really create working
8692	# shared libraries, regardless of the interface used.
8693	case `$LD -v 2>&1` in
8694	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8695	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8696	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8697	  *)
8698	    lt_use_gnu_ld_interface=yes
8699	    ;;
8700	esac
8701	;;
8702      *)
8703	lt_use_gnu_ld_interface=yes
8704	;;
8705    esac
8706  fi
8707
8708  if test "$lt_use_gnu_ld_interface" = yes; then
8709    # If archive_cmds runs LD, not CC, wlarc should be empty
8710    wlarc='${wl}'
8711
8712    # Set some defaults for GNU ld with shared library support. These
8713    # are reset later if shared libraries are not supported. Putting them
8714    # here allows them to be overridden if necessary.
8715    runpath_var=LD_RUN_PATH
8716    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717    export_dynamic_flag_spec='${wl}--export-dynamic'
8718    # ancient GNU ld didn't support --whole-archive et. al.
8719    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8720      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8721    else
8722      whole_archive_flag_spec=
8723    fi
8724    supports_anon_versioning=no
8725    case `$LD -v 2>&1` in
8726      *GNU\ gold*) supports_anon_versioning=yes ;;
8727      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8728      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8729      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8730      *\ 2.11.*) ;; # other 2.11 versions
8731      *) supports_anon_versioning=yes ;;
8732    esac
8733
8734    # See if GNU ld supports shared libraries.
8735    case $host_os in
8736    aix[3-9]*)
8737      # On AIX/PPC, the GNU linker is very broken
8738      if test "$host_cpu" != ia64; then
8739	ld_shlibs=no
8740	cat <<_LT_EOF 1>&2
8741
8742*** Warning: the GNU linker, at least up to release 2.19, is reported
8743*** to be unable to reliably create shared libraries on AIX.
8744*** Therefore, libtool is disabling shared libraries support.  If you
8745*** really care for shared libraries, you may want to install binutils
8746*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8747*** You will then need to restart the configuration process.
8748
8749_LT_EOF
8750      fi
8751      ;;
8752
8753    amigaos*)
8754      case $host_cpu in
8755      powerpc)
8756            # see comment about AmigaOS4 .so support
8757            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758            archive_expsym_cmds=''
8759        ;;
8760      m68k)
8761            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)'
8762            hardcode_libdir_flag_spec='-L$libdir'
8763            hardcode_minus_L=yes
8764        ;;
8765      esac
8766      ;;
8767
8768    beos*)
8769      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8770	allow_undefined_flag=unsupported
8771	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8772	# support --undefined.  This deserves some investigation.  FIXME
8773	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774      else
8775	ld_shlibs=no
8776      fi
8777      ;;
8778
8779    cygwin* | mingw* | pw32* | cegcc*)
8780      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8781      # as there is no search path for DLLs.
8782      hardcode_libdir_flag_spec='-L$libdir'
8783      export_dynamic_flag_spec='${wl}--export-all-symbols'
8784      allow_undefined_flag=unsupported
8785      always_export_symbols=no
8786      enable_shared_with_static_runtimes=yes
8787      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'
8788      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8789
8790      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8791        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8792	# If the export-symbols file already is a .def file (1st line
8793	# is EXPORTS), use it as is; otherwise, prepend...
8794	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8795	  cp $export_symbols $output_objdir/$soname.def;
8796	else
8797	  echo EXPORTS > $output_objdir/$soname.def;
8798	  cat $export_symbols >> $output_objdir/$soname.def;
8799	fi~
8800	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8801      else
8802	ld_shlibs=no
8803      fi
8804      ;;
8805
8806    haiku*)
8807      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808      link_all_deplibs=yes
8809      ;;
8810
8811    interix[3-9]*)
8812      hardcode_direct=no
8813      hardcode_shlibpath_var=no
8814      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8815      export_dynamic_flag_spec='${wl}-E'
8816      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8817      # Instead, shared libraries are loaded at an image base (0x10000000 by
8818      # default) and relocated if they conflict, which is a slow very memory
8819      # consuming and fragmenting process.  To avoid this, we pick a random,
8820      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8821      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8822      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8823      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'
8824      ;;
8825
8826    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8827      tmp_diet=no
8828      if test "$host_os" = linux-dietlibc; then
8829	case $cc_basename in
8830	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8831	esac
8832      fi
8833      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8834	 && test "$tmp_diet" = no
8835      then
8836	tmp_addflag=' $pic_flag'
8837	tmp_sharedflag='-shared'
8838	case $cc_basename,$host_cpu in
8839        pgcc*)				# Portland Group C compiler
8840	  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'
8841	  tmp_addflag=' $pic_flag'
8842	  ;;
8843	pgf77* | pgf90* | pgf95* | pgfortran*)
8844					# Portland Group f77 and f90 compilers
8845	  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'
8846	  tmp_addflag=' $pic_flag -Mnomain' ;;
8847	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8848	  tmp_addflag=' -i_dynamic' ;;
8849	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8850	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8851	ifc* | ifort*)			# Intel Fortran compiler
8852	  tmp_addflag=' -nofor_main' ;;
8853	lf95*)				# Lahey Fortran 8.1
8854	  whole_archive_flag_spec=
8855	  tmp_sharedflag='--shared' ;;
8856	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8857	  tmp_sharedflag='-qmkshrobj'
8858	  tmp_addflag= ;;
8859	nvcc*)	# Cuda Compiler Driver 2.2
8860	  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'
8861	  compiler_needs_object=yes
8862	  ;;
8863	esac
8864	case `$CC -V 2>&1 | sed 5q` in
8865	*Sun\ C*)			# Sun C 5.9
8866	  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'
8867	  compiler_needs_object=yes
8868	  tmp_sharedflag='-G' ;;
8869	*Sun\ F*)			# Sun Fortran 8.3
8870	  tmp_sharedflag='-G' ;;
8871	esac
8872	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873
8874        if test "x$supports_anon_versioning" = xyes; then
8875          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8876	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8877	    echo "local: *; };" >> $output_objdir/$libname.ver~
8878	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8879        fi
8880
8881	case $cc_basename in
8882	xlf* | bgf* | bgxlf* | mpixlf*)
8883	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8884	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8885	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8886	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8887	  if test "x$supports_anon_versioning" = xyes; then
8888	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8889	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8890	      echo "local: *; };" >> $output_objdir/$libname.ver~
8891	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8892	  fi
8893	  ;;
8894	esac
8895      else
8896        ld_shlibs=no
8897      fi
8898      ;;
8899
8900    netbsd*)
8901      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8902	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8903	wlarc=
8904      else
8905	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8906	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8907      fi
8908      ;;
8909
8910    solaris*)
8911      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8912	ld_shlibs=no
8913	cat <<_LT_EOF 1>&2
8914
8915*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8916*** create shared libraries on Solaris systems.  Therefore, libtool
8917*** is disabling shared libraries support.  We urge you to upgrade GNU
8918*** binutils to release 2.9.1 or newer.  Another option is to modify
8919*** your PATH or compiler configuration so that the native linker is
8920*** used, and then restart.
8921
8922_LT_EOF
8923      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8924	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8925	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8926      else
8927	ld_shlibs=no
8928      fi
8929      ;;
8930
8931    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8932      case `$LD -v 2>&1` in
8933        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8934	ld_shlibs=no
8935	cat <<_LT_EOF 1>&2
8936
8937*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8938*** reliably create shared libraries on SCO systems.  Therefore, libtool
8939*** is disabling shared libraries support.  We urge you to upgrade GNU
8940*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8941*** your PATH or compiler configuration so that the native linker is
8942*** used, and then restart.
8943
8944_LT_EOF
8945	;;
8946	*)
8947	  # For security reasons, it is highly recommended that you always
8948	  # use absolute paths for naming shared libraries, and exclude the
8949	  # DT_RUNPATH tag from executables and libraries.  But doing so
8950	  # requires that you compile everything twice, which is a pain.
8951	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8952	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8953	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8955	  else
8956	    ld_shlibs=no
8957	  fi
8958	;;
8959      esac
8960      ;;
8961
8962    sunos4*)
8963      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8964      wlarc=
8965      hardcode_direct=yes
8966      hardcode_shlibpath_var=no
8967      ;;
8968
8969    *)
8970      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973      else
8974	ld_shlibs=no
8975      fi
8976      ;;
8977    esac
8978
8979    if test "$ld_shlibs" = no; then
8980      runpath_var=
8981      hardcode_libdir_flag_spec=
8982      export_dynamic_flag_spec=
8983      whole_archive_flag_spec=
8984    fi
8985  else
8986    # PORTME fill in a description of your system's linker (not GNU ld)
8987    case $host_os in
8988    aix3*)
8989      allow_undefined_flag=unsupported
8990      always_export_symbols=yes
8991      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'
8992      # Note: this linker hardcodes the directories in LIBPATH if there
8993      # are no directories specified by -L.
8994      hardcode_minus_L=yes
8995      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8996	# Neither direct hardcoding nor static linking is supported with a
8997	# broken collect2.
8998	hardcode_direct=unsupported
8999      fi
9000      ;;
9001
9002    aix[4-9]*)
9003      if test "$host_cpu" = ia64; then
9004	# On IA64, the linker does run time linking by default, so we don't
9005	# have to do anything special.
9006	aix_use_runtimelinking=no
9007	exp_sym_flag='-Bexport'
9008	no_entry_flag=""
9009      else
9010	# If we're using GNU nm, then we don't want the "-C" option.
9011	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9012	# Also, AIX nm treats weak defined symbols like other global
9013	# defined symbols, whereas GNU nm marks them as "W".
9014	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9015	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9016	else
9017	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9018	fi
9019	aix_use_runtimelinking=no
9020
9021	# Test if we are trying to use run time linking or normal
9022	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9023	# need to do runtime linking.
9024	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9025	  for ld_flag in $LDFLAGS; do
9026	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9027	    aix_use_runtimelinking=yes
9028	    break
9029	  fi
9030	  done
9031	  ;;
9032	esac
9033
9034	exp_sym_flag='-bexport'
9035	no_entry_flag='-bnoentry'
9036      fi
9037
9038      # When large executables or shared objects are built, AIX ld can
9039      # have problems creating the table of contents.  If linking a library
9040      # or program results in "error TOC overflow" add -mminimal-toc to
9041      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9042      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9043
9044      archive_cmds=''
9045      hardcode_direct=yes
9046      hardcode_direct_absolute=yes
9047      hardcode_libdir_separator=':'
9048      link_all_deplibs=yes
9049      file_list_spec='${wl}-f,'
9050
9051      if test "$GCC" = yes; then
9052	case $host_os in aix4.[012]|aix4.[012].*)
9053	# We only want to do this on AIX 4.2 and lower, the check
9054	# below for broken collect2 doesn't work under 4.3+
9055	  collect2name=`${CC} -print-prog-name=collect2`
9056	  if test -f "$collect2name" &&
9057	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9058	  then
9059	  # We have reworked collect2
9060	  :
9061	  else
9062	  # We have old collect2
9063	  hardcode_direct=unsupported
9064	  # It fails to find uninstalled libraries when the uninstalled
9065	  # path is not listed in the libpath.  Setting hardcode_minus_L
9066	  # to unsupported forces relinking
9067	  hardcode_minus_L=yes
9068	  hardcode_libdir_flag_spec='-L$libdir'
9069	  hardcode_libdir_separator=
9070	  fi
9071	  ;;
9072	esac
9073	shared_flag='-shared'
9074	if test "$aix_use_runtimelinking" = yes; then
9075	  shared_flag="$shared_flag "'${wl}-G'
9076	fi
9077      else
9078	# not using gcc
9079	if test "$host_cpu" = ia64; then
9080	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9081	# chokes on -Wl,-G. The following line is correct:
9082	  shared_flag='-G'
9083	else
9084	  if test "$aix_use_runtimelinking" = yes; then
9085	    shared_flag='${wl}-G'
9086	  else
9087	    shared_flag='${wl}-bM:SRE'
9088	  fi
9089	fi
9090      fi
9091
9092      export_dynamic_flag_spec='${wl}-bexpall'
9093      # It seems that -bexpall does not export symbols beginning with
9094      # underscore (_), so it is better to generate a list of symbols to export.
9095      always_export_symbols=yes
9096      if test "$aix_use_runtimelinking" = yes; then
9097	# Warning - without using the other runtime loading flags (-brtl),
9098	# -berok will link without error, but may produce a broken library.
9099	allow_undefined_flag='-berok'
9100        # Determine the default libpath from the value encoded in an
9101        # empty executable.
9102        if test "${lt_cv_aix_libpath+set}" = set; then
9103  aix_libpath=$lt_cv_aix_libpath
9104else
9105  if ${lt_cv_aix_libpath_+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110
9111int
9112main ()
9113{
9114
9115  ;
9116  return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_link "$LINENO"; then :
9120
9121  lt_aix_libpath_sed='
9122      /Import File Strings/,/^$/ {
9123	  /^0/ {
9124	      s/^0  *\([^ ]*\) *$/\1/
9125	      p
9126	  }
9127      }'
9128  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9129  # Check for a 64-bit object if we didn't find anything.
9130  if test -z "$lt_cv_aix_libpath_"; then
9131    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9132  fi
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135    conftest$ac_exeext conftest.$ac_ext
9136  if test -z "$lt_cv_aix_libpath_"; then
9137    lt_cv_aix_libpath_="/usr/lib:/lib"
9138  fi
9139
9140fi
9141
9142  aix_libpath=$lt_cv_aix_libpath_
9143fi
9144
9145        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9146        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9147      else
9148	if test "$host_cpu" = ia64; then
9149	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9150	  allow_undefined_flag="-z nodefs"
9151	  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"
9152	else
9153	 # Determine the default libpath from the value encoded in an
9154	 # empty executable.
9155	 if test "${lt_cv_aix_libpath+set}" = set; then
9156  aix_libpath=$lt_cv_aix_libpath
9157else
9158  if ${lt_cv_aix_libpath_+:} false; then :
9159  $as_echo_n "(cached) " >&6
9160else
9161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h.  */
9163
9164int
9165main ()
9166{
9167
9168  ;
9169  return 0;
9170}
9171_ACEOF
9172if ac_fn_c_try_link "$LINENO"; then :
9173
9174  lt_aix_libpath_sed='
9175      /Import File Strings/,/^$/ {
9176	  /^0/ {
9177	      s/^0  *\([^ ]*\) *$/\1/
9178	      p
9179	  }
9180      }'
9181  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182  # Check for a 64-bit object if we didn't find anything.
9183  if test -z "$lt_cv_aix_libpath_"; then
9184    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185  fi
9186fi
9187rm -f core conftest.err conftest.$ac_objext \
9188    conftest$ac_exeext conftest.$ac_ext
9189  if test -z "$lt_cv_aix_libpath_"; then
9190    lt_cv_aix_libpath_="/usr/lib:/lib"
9191  fi
9192
9193fi
9194
9195  aix_libpath=$lt_cv_aix_libpath_
9196fi
9197
9198	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9199	  # Warning - without using the other run time loading flags,
9200	  # -berok will link without error, but may produce a broken library.
9201	  no_undefined_flag=' ${wl}-bernotok'
9202	  allow_undefined_flag=' ${wl}-berok'
9203	  if test "$with_gnu_ld" = yes; then
9204	    # We only use this code for GNU lds that support --whole-archive.
9205	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9206	  else
9207	    # Exported symbols can be pulled into shared objects from archives
9208	    whole_archive_flag_spec='$convenience'
9209	  fi
9210	  archive_cmds_need_lc=yes
9211	  # This is similar to how AIX traditionally builds its shared libraries.
9212	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9213	fi
9214      fi
9215      ;;
9216
9217    amigaos*)
9218      case $host_cpu in
9219      powerpc)
9220            # see comment about AmigaOS4 .so support
9221            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222            archive_expsym_cmds=''
9223        ;;
9224      m68k)
9225            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9226            hardcode_libdir_flag_spec='-L$libdir'
9227            hardcode_minus_L=yes
9228        ;;
9229      esac
9230      ;;
9231
9232    bsdi[45]*)
9233      export_dynamic_flag_spec=-rdynamic
9234      ;;
9235
9236    cygwin* | mingw* | pw32* | cegcc*)
9237      # When not using gcc, we currently assume that we are using
9238      # Microsoft Visual C++.
9239      # hardcode_libdir_flag_spec is actually meaningless, as there is
9240      # no search path for DLLs.
9241      case $cc_basename in
9242      cl*)
9243	# Native MSVC
9244	hardcode_libdir_flag_spec=' '
9245	allow_undefined_flag=unsupported
9246	always_export_symbols=yes
9247	file_list_spec='@'
9248	# Tell ltmain to make .lib files, not .a files.
9249	libext=lib
9250	# Tell ltmain to make .dll files, not .so files.
9251	shrext_cmds=".dll"
9252	# FIXME: Setting linknames here is a bad hack.
9253	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9254	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9255	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9256	  else
9257	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9258	  fi~
9259	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9260	  linknames='
9261	# The linker will not automatically build a static lib if we build a DLL.
9262	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9263	enable_shared_with_static_runtimes=yes
9264	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9265	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9266	# Don't use ranlib
9267	old_postinstall_cmds='chmod 644 $oldlib'
9268	postlink_cmds='lt_outputfile="@OUTPUT@"~
9269	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9270	  case $lt_outputfile in
9271	    *.exe|*.EXE) ;;
9272	    *)
9273	      lt_outputfile="$lt_outputfile.exe"
9274	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9275	      ;;
9276	  esac~
9277	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9278	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9279	    $RM "$lt_outputfile.manifest";
9280	  fi'
9281	;;
9282      *)
9283	# Assume MSVC wrapper
9284	hardcode_libdir_flag_spec=' '
9285	allow_undefined_flag=unsupported
9286	# Tell ltmain to make .lib files, not .a files.
9287	libext=lib
9288	# Tell ltmain to make .dll files, not .so files.
9289	shrext_cmds=".dll"
9290	# FIXME: Setting linknames here is a bad hack.
9291	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9292	# The linker will automatically build a .lib file if we build a DLL.
9293	old_archive_from_new_cmds='true'
9294	# FIXME: Should let the user specify the lib program.
9295	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9296	enable_shared_with_static_runtimes=yes
9297	;;
9298      esac
9299      ;;
9300
9301    darwin* | rhapsody*)
9302
9303
9304  archive_cmds_need_lc=no
9305  hardcode_direct=no
9306  hardcode_automatic=yes
9307  hardcode_shlibpath_var=unsupported
9308  if test "$lt_cv_ld_force_load" = "yes"; then
9309    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\"`'
9310
9311  else
9312    whole_archive_flag_spec=''
9313  fi
9314  link_all_deplibs=yes
9315  allow_undefined_flag="$_lt_dar_allow_undefined"
9316  case $cc_basename in
9317     ifort*) _lt_dar_can_shared=yes ;;
9318     *) _lt_dar_can_shared=$GCC ;;
9319  esac
9320  if test "$_lt_dar_can_shared" = "yes"; then
9321    output_verbose_link_cmd=func_echo_all
9322    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9323    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9324    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}"
9325    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}"
9326
9327  else
9328  ld_shlibs=no
9329  fi
9330
9331      ;;
9332
9333    dgux*)
9334      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335      hardcode_libdir_flag_spec='-L$libdir'
9336      hardcode_shlibpath_var=no
9337      ;;
9338
9339    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9340    # support.  Future versions do this automatically, but an explicit c++rt0.o
9341    # does not break anything, and helps significantly (at the cost of a little
9342    # extra space).
9343    freebsd2.2*)
9344      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9345      hardcode_libdir_flag_spec='-R$libdir'
9346      hardcode_direct=yes
9347      hardcode_shlibpath_var=no
9348      ;;
9349
9350    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9351    freebsd2.*)
9352      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353      hardcode_direct=yes
9354      hardcode_minus_L=yes
9355      hardcode_shlibpath_var=no
9356      ;;
9357
9358    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9359    freebsd* | dragonfly*)
9360      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9361      hardcode_libdir_flag_spec='-R$libdir'
9362      hardcode_direct=yes
9363      hardcode_shlibpath_var=no
9364      ;;
9365
9366    hpux9*)
9367      if test "$GCC" = yes; then
9368	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9369      else
9370	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9371      fi
9372      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9373      hardcode_libdir_separator=:
9374      hardcode_direct=yes
9375
9376      # hardcode_minus_L: Not really in the search PATH,
9377      # but as the default location of the library.
9378      hardcode_minus_L=yes
9379      export_dynamic_flag_spec='${wl}-E'
9380      ;;
9381
9382    hpux10*)
9383      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9384	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9385      else
9386	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9387      fi
9388      if test "$with_gnu_ld" = no; then
9389	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9390	hardcode_libdir_separator=:
9391	hardcode_direct=yes
9392	hardcode_direct_absolute=yes
9393	export_dynamic_flag_spec='${wl}-E'
9394	# hardcode_minus_L: Not really in the search PATH,
9395	# but as the default location of the library.
9396	hardcode_minus_L=yes
9397      fi
9398      ;;
9399
9400    hpux11*)
9401      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9402	case $host_cpu in
9403	hppa*64*)
9404	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405	  ;;
9406	ia64*)
9407	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9408	  ;;
9409	*)
9410	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9411	  ;;
9412	esac
9413      else
9414	case $host_cpu in
9415	hppa*64*)
9416	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9417	  ;;
9418	ia64*)
9419	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9420	  ;;
9421	*)
9422
9423	  # Older versions of the 11.00 compiler do not understand -b yet
9424	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9425	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9426$as_echo_n "checking if $CC understands -b... " >&6; }
9427if ${lt_cv_prog_compiler__b+:} false; then :
9428  $as_echo_n "(cached) " >&6
9429else
9430  lt_cv_prog_compiler__b=no
9431   save_LDFLAGS="$LDFLAGS"
9432   LDFLAGS="$LDFLAGS -b"
9433   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9434   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9435     # The linker can only warn and ignore the option if not recognized
9436     # So say no if there are warnings
9437     if test -s conftest.err; then
9438       # Append any errors to the config.log.
9439       cat conftest.err 1>&5
9440       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9441       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9442       if diff conftest.exp conftest.er2 >/dev/null; then
9443         lt_cv_prog_compiler__b=yes
9444       fi
9445     else
9446       lt_cv_prog_compiler__b=yes
9447     fi
9448   fi
9449   $RM -r conftest*
9450   LDFLAGS="$save_LDFLAGS"
9451
9452fi
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9454$as_echo "$lt_cv_prog_compiler__b" >&6; }
9455
9456if test x"$lt_cv_prog_compiler__b" = xyes; then
9457    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9458else
9459    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9460fi
9461
9462	  ;;
9463	esac
9464      fi
9465      if test "$with_gnu_ld" = no; then
9466	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9467	hardcode_libdir_separator=:
9468
9469	case $host_cpu in
9470	hppa*64*|ia64*)
9471	  hardcode_direct=no
9472	  hardcode_shlibpath_var=no
9473	  ;;
9474	*)
9475	  hardcode_direct=yes
9476	  hardcode_direct_absolute=yes
9477	  export_dynamic_flag_spec='${wl}-E'
9478
9479	  # hardcode_minus_L: Not really in the search PATH,
9480	  # but as the default location of the library.
9481	  hardcode_minus_L=yes
9482	  ;;
9483	esac
9484      fi
9485      ;;
9486
9487    irix5* | irix6* | nonstopux*)
9488      if test "$GCC" = yes; then
9489	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'
9490	# Try to use the -exported_symbol ld option, if it does not
9491	# work, assume that -exports_file does not work either and
9492	# implicitly export all symbols.
9493	# This should be the same for all languages, so no per-tag cache variable.
9494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9495$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9496if ${lt_cv_irix_exported_symbol+:} false; then :
9497  $as_echo_n "(cached) " >&6
9498else
9499  save_LDFLAGS="$LDFLAGS"
9500	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9501	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502/* end confdefs.h.  */
9503int foo (void) { return 0; }
9504_ACEOF
9505if ac_fn_c_try_link "$LINENO"; then :
9506  lt_cv_irix_exported_symbol=yes
9507else
9508  lt_cv_irix_exported_symbol=no
9509fi
9510rm -f core conftest.err conftest.$ac_objext \
9511    conftest$ac_exeext conftest.$ac_ext
9512           LDFLAGS="$save_LDFLAGS"
9513fi
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9515$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9516	if test "$lt_cv_irix_exported_symbol" = yes; then
9517          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'
9518	fi
9519      else
9520	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'
9521	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'
9522      fi
9523      archive_cmds_need_lc='no'
9524      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525      hardcode_libdir_separator=:
9526      inherit_rpath=yes
9527      link_all_deplibs=yes
9528      ;;
9529
9530    netbsd*)
9531      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9533      else
9534	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9535      fi
9536      hardcode_libdir_flag_spec='-R$libdir'
9537      hardcode_direct=yes
9538      hardcode_shlibpath_var=no
9539      ;;
9540
9541    newsos6)
9542      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543      hardcode_direct=yes
9544      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545      hardcode_libdir_separator=:
9546      hardcode_shlibpath_var=no
9547      ;;
9548
9549    *nto* | *qnx*)
9550      ;;
9551
9552    openbsd*)
9553      if test -f /usr/libexec/ld.so; then
9554	hardcode_direct=yes
9555	hardcode_shlibpath_var=no
9556	hardcode_direct_absolute=yes
9557	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9558	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9560	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9561	  export_dynamic_flag_spec='${wl}-E'
9562	else
9563	  case $host_os in
9564	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9565	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566	     hardcode_libdir_flag_spec='-R$libdir'
9567	     ;;
9568	   *)
9569	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9571	     ;;
9572	  esac
9573	fi
9574      else
9575	ld_shlibs=no
9576      fi
9577      ;;
9578
9579    os2*)
9580      hardcode_libdir_flag_spec='-L$libdir'
9581      hardcode_minus_L=yes
9582      allow_undefined_flag=unsupported
9583      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9584      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9585      ;;
9586
9587    osf3*)
9588      if test "$GCC" = yes; then
9589	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9590	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'
9591      else
9592	allow_undefined_flag=' -expect_unresolved \*'
9593	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'
9594      fi
9595      archive_cmds_need_lc='no'
9596      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597      hardcode_libdir_separator=:
9598      ;;
9599
9600    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9601      if test "$GCC" = yes; then
9602	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9603	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'
9604	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605      else
9606	allow_undefined_flag=' -expect_unresolved \*'
9607	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'
9608	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~
9609	$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'
9610
9611	# Both c and cxx compiler support -rpath directly
9612	hardcode_libdir_flag_spec='-rpath $libdir'
9613      fi
9614      archive_cmds_need_lc='no'
9615      hardcode_libdir_separator=:
9616      ;;
9617
9618    solaris*)
9619      no_undefined_flag=' -z defs'
9620      if test "$GCC" = yes; then
9621	wlarc='${wl}'
9622	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624	  $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'
9625      else
9626	case `$CC -V 2>&1` in
9627	*"Compilers 5.0"*)
9628	  wlarc=''
9629	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9632	  ;;
9633	*)
9634	  wlarc='${wl}'
9635	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9637	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9638	  ;;
9639	esac
9640      fi
9641      hardcode_libdir_flag_spec='-R$libdir'
9642      hardcode_shlibpath_var=no
9643      case $host_os in
9644      solaris2.[0-5] | solaris2.[0-5].*) ;;
9645      *)
9646	# The compiler driver will combine and reorder linker options,
9647	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9648	# but is careful enough not to reorder.
9649	# Supported since Solaris 2.6 (maybe 2.5.1?)
9650	if test "$GCC" = yes; then
9651	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9652	else
9653	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9654	fi
9655	;;
9656      esac
9657      link_all_deplibs=yes
9658      ;;
9659
9660    sunos4*)
9661      if test "x$host_vendor" = xsequent; then
9662	# Use $CC to link under sequent, because it throws in some extra .o
9663	# files that make .init and .fini sections work.
9664	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9665      else
9666	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9667      fi
9668      hardcode_libdir_flag_spec='-L$libdir'
9669      hardcode_direct=yes
9670      hardcode_minus_L=yes
9671      hardcode_shlibpath_var=no
9672      ;;
9673
9674    sysv4)
9675      case $host_vendor in
9676	sni)
9677	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678	  hardcode_direct=yes # is this really true???
9679	;;
9680	siemens)
9681	  ## LD is ld it makes a PLAMLIB
9682	  ## CC just makes a GrossModule.
9683	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9684	  reload_cmds='$CC -r -o $output$reload_objs'
9685	  hardcode_direct=no
9686        ;;
9687	motorola)
9688	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9690	;;
9691      esac
9692      runpath_var='LD_RUN_PATH'
9693      hardcode_shlibpath_var=no
9694      ;;
9695
9696    sysv4.3*)
9697      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698      hardcode_shlibpath_var=no
9699      export_dynamic_flag_spec='-Bexport'
9700      ;;
9701
9702    sysv4*MP*)
9703      if test -d /usr/nec; then
9704	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705	hardcode_shlibpath_var=no
9706	runpath_var=LD_RUN_PATH
9707	hardcode_runpath_var=yes
9708	ld_shlibs=yes
9709      fi
9710      ;;
9711
9712    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9713      no_undefined_flag='${wl}-z,text'
9714      archive_cmds_need_lc=no
9715      hardcode_shlibpath_var=no
9716      runpath_var='LD_RUN_PATH'
9717
9718      if test "$GCC" = yes; then
9719	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721      else
9722	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724      fi
9725      ;;
9726
9727    sysv5* | sco3.2v5* | sco5v6*)
9728      # Note: We can NOT use -z defs as we might desire, because we do not
9729      # link with -lc, and that would cause any symbols used from libc to
9730      # always be unresolved, which means just about no library would
9731      # ever link correctly.  If we're not using GNU ld we use -z text
9732      # though, which does catch some bad symbols but isn't as heavy-handed
9733      # as -z defs.
9734      no_undefined_flag='${wl}-z,text'
9735      allow_undefined_flag='${wl}-z,nodefs'
9736      archive_cmds_need_lc=no
9737      hardcode_shlibpath_var=no
9738      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9739      hardcode_libdir_separator=':'
9740      link_all_deplibs=yes
9741      export_dynamic_flag_spec='${wl}-Bexport'
9742      runpath_var='LD_RUN_PATH'
9743
9744      if test "$GCC" = yes; then
9745	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747      else
9748	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750      fi
9751      ;;
9752
9753    uts4*)
9754      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755      hardcode_libdir_flag_spec='-L$libdir'
9756      hardcode_shlibpath_var=no
9757      ;;
9758
9759    *)
9760      ld_shlibs=no
9761      ;;
9762    esac
9763
9764    if test x$host_vendor = xsni; then
9765      case $host in
9766      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9767	export_dynamic_flag_spec='${wl}-Blargedynsym'
9768	;;
9769      esac
9770    fi
9771  fi
9772
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9774$as_echo "$ld_shlibs" >&6; }
9775test "$ld_shlibs" = no && can_build_shared=no
9776
9777with_gnu_ld=$with_gnu_ld
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793#
9794# Do we need to explicitly link libc?
9795#
9796case "x$archive_cmds_need_lc" in
9797x|xyes)
9798  # Assume -lc should be added
9799  archive_cmds_need_lc=yes
9800
9801  if test "$enable_shared" = yes && test "$GCC" = yes; then
9802    case $archive_cmds in
9803    *'~'*)
9804      # FIXME: we may have to deal with multi-command sequences.
9805      ;;
9806    '$CC '*)
9807      # Test whether the compiler implicitly links with -lc since on some
9808      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9809      # to ld, don't add -lc before -lgcc.
9810      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9811$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9812if ${lt_cv_archive_cmds_need_lc+:} false; then :
9813  $as_echo_n "(cached) " >&6
9814else
9815  $RM conftest*
9816	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9817
9818	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9819  (eval $ac_compile) 2>&5
9820  ac_status=$?
9821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9822  test $ac_status = 0; } 2>conftest.err; then
9823	  soname=conftest
9824	  lib=conftest
9825	  libobjs=conftest.$ac_objext
9826	  deplibs=
9827	  wl=$lt_prog_compiler_wl
9828	  pic_flag=$lt_prog_compiler_pic
9829	  compiler_flags=-v
9830	  linker_flags=-v
9831	  verstring=
9832	  output_objdir=.
9833	  libname=conftest
9834	  lt_save_allow_undefined_flag=$allow_undefined_flag
9835	  allow_undefined_flag=
9836	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9837  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9838  ac_status=$?
9839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9840  test $ac_status = 0; }
9841	  then
9842	    lt_cv_archive_cmds_need_lc=no
9843	  else
9844	    lt_cv_archive_cmds_need_lc=yes
9845	  fi
9846	  allow_undefined_flag=$lt_save_allow_undefined_flag
9847	else
9848	  cat conftest.err 1>&5
9849	fi
9850	$RM conftest*
9851
9852fi
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9854$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9855      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9856      ;;
9857    esac
9858  fi
9859  ;;
9860esac
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10014$as_echo_n "checking dynamic linker characteristics... " >&6; }
10015
10016if test "$GCC" = yes; then
10017  case $host_os in
10018    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10019    *) lt_awk_arg="/^libraries:/" ;;
10020  esac
10021  case $host_os in
10022    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10023    *) lt_sed_strip_eq="s,=/,/,g" ;;
10024  esac
10025  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10026  case $lt_search_path_spec in
10027  *\;*)
10028    # if the path contains ";" then we assume it to be the separator
10029    # otherwise default to the standard path separator (i.e. ":") - it is
10030    # assumed that no part of a normal pathname contains ";" but that should
10031    # okay in the real world where ";" in dirpaths is itself problematic.
10032    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10033    ;;
10034  *)
10035    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10036    ;;
10037  esac
10038  # Ok, now we have the path, separated by spaces, we can step through it
10039  # and add multilib dir if necessary.
10040  lt_tmp_lt_search_path_spec=
10041  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10042  for lt_sys_path in $lt_search_path_spec; do
10043    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10044      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10045    else
10046      test -d "$lt_sys_path" && \
10047	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10048    fi
10049  done
10050  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10051BEGIN {RS=" "; FS="/|\n";} {
10052  lt_foo="";
10053  lt_count=0;
10054  for (lt_i = NF; lt_i > 0; lt_i--) {
10055    if ($lt_i != "" && $lt_i != ".") {
10056      if ($lt_i == "..") {
10057        lt_count++;
10058      } else {
10059        if (lt_count == 0) {
10060          lt_foo="/" $lt_i lt_foo;
10061        } else {
10062          lt_count--;
10063        }
10064      }
10065    }
10066  }
10067  if (lt_foo != "") { lt_freq[lt_foo]++; }
10068  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10069}'`
10070  # AWK program above erroneously prepends '/' to C:/dos/paths
10071  # for these hosts.
10072  case $host_os in
10073    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10074      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10075  esac
10076  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10077else
10078  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10079fi
10080library_names_spec=
10081libname_spec='lib$name'
10082soname_spec=
10083shrext_cmds=".so"
10084postinstall_cmds=
10085postuninstall_cmds=
10086finish_cmds=
10087finish_eval=
10088shlibpath_var=
10089shlibpath_overrides_runpath=unknown
10090version_type=none
10091dynamic_linker="$host_os ld.so"
10092sys_lib_dlsearch_path_spec="/lib /usr/lib"
10093need_lib_prefix=unknown
10094hardcode_into_libs=no
10095
10096# when you set need_version to no, make sure it does not cause -set_version
10097# flags to be left without arguments
10098need_version=unknown
10099
10100case $host_os in
10101aix3*)
10102  version_type=linux # correct to gnu/linux during the next big refactor
10103  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10104  shlibpath_var=LIBPATH
10105
10106  # AIX 3 has no versioning support, so we append a major version to the name.
10107  soname_spec='${libname}${release}${shared_ext}$major'
10108  ;;
10109
10110aix[4-9]*)
10111  version_type=linux # correct to gnu/linux during the next big refactor
10112  need_lib_prefix=no
10113  need_version=no
10114  hardcode_into_libs=yes
10115  if test "$host_cpu" = ia64; then
10116    # AIX 5 supports IA64
10117    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10118    shlibpath_var=LD_LIBRARY_PATH
10119  else
10120    # With GCC up to 2.95.x, collect2 would create an import file
10121    # for dependence libraries.  The import file would start with
10122    # the line `#! .'.  This would cause the generated library to
10123    # depend on `.', always an invalid library.  This was fixed in
10124    # development snapshots of GCC prior to 3.0.
10125    case $host_os in
10126      aix4 | aix4.[01] | aix4.[01].*)
10127      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10128	   echo ' yes '
10129	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10130	:
10131      else
10132	can_build_shared=no
10133      fi
10134      ;;
10135    esac
10136    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10137    # soname into executable. Probably we can add versioning support to
10138    # collect2, so additional links can be useful in future.
10139    if test "$aix_use_runtimelinking" = yes; then
10140      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10141      # instead of lib<name>.a to let people know that these are not
10142      # typical AIX shared libraries.
10143      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144    else
10145      # We preserve .a as extension for shared libraries through AIX4.2
10146      # and later when we are not doing run time linking.
10147      library_names_spec='${libname}${release}.a $libname.a'
10148      soname_spec='${libname}${release}${shared_ext}$major'
10149    fi
10150    shlibpath_var=LIBPATH
10151  fi
10152  ;;
10153
10154amigaos*)
10155  case $host_cpu in
10156  powerpc)
10157    # Since July 2007 AmigaOS4 officially supports .so libraries.
10158    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10159    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160    ;;
10161  m68k)
10162    library_names_spec='$libname.ixlibrary $libname.a'
10163    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10164    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10165    ;;
10166  esac
10167  ;;
10168
10169beos*)
10170  library_names_spec='${libname}${shared_ext}'
10171  dynamic_linker="$host_os ld.so"
10172  shlibpath_var=LIBRARY_PATH
10173  ;;
10174
10175bsdi[45]*)
10176  version_type=linux # correct to gnu/linux during the next big refactor
10177  need_version=no
10178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179  soname_spec='${libname}${release}${shared_ext}$major'
10180  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10181  shlibpath_var=LD_LIBRARY_PATH
10182  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10183  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10184  # the default ld.so.conf also contains /usr/contrib/lib and
10185  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10186  # libtool to hard-code these into programs
10187  ;;
10188
10189cygwin* | mingw* | pw32* | cegcc*)
10190  version_type=windows
10191  shrext_cmds=".dll"
10192  need_version=no
10193  need_lib_prefix=no
10194
10195  case $GCC,$cc_basename in
10196  yes,*)
10197    # gcc
10198    library_names_spec='$libname.dll.a'
10199    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10200    postinstall_cmds='base_file=`basename \${file}`~
10201      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10202      dldir=$destdir/`dirname \$dlpath`~
10203      test -d \$dldir || mkdir -p \$dldir~
10204      $install_prog $dir/$dlname \$dldir/$dlname~
10205      chmod a+x \$dldir/$dlname~
10206      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10207        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10208      fi'
10209    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10210      dlpath=$dir/\$dldll~
10211       $RM \$dlpath'
10212    shlibpath_overrides_runpath=yes
10213
10214    case $host_os in
10215    cygwin*)
10216      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10217      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218
10219      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10220      ;;
10221    mingw* | cegcc*)
10222      # MinGW DLLs use traditional 'lib' prefix
10223      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224      ;;
10225    pw32*)
10226      # pw32 DLLs use 'pw' prefix rather than 'lib'
10227      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228      ;;
10229    esac
10230    dynamic_linker='Win32 ld.exe'
10231    ;;
10232
10233  *,cl*)
10234    # Native MSVC
10235    libname_spec='$name'
10236    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10237    library_names_spec='${libname}.dll.lib'
10238
10239    case $build_os in
10240    mingw*)
10241      sys_lib_search_path_spec=
10242      lt_save_ifs=$IFS
10243      IFS=';'
10244      for lt_path in $LIB
10245      do
10246        IFS=$lt_save_ifs
10247        # Let DOS variable expansion print the short 8.3 style file name.
10248        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10249        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10250      done
10251      IFS=$lt_save_ifs
10252      # Convert to MSYS style.
10253      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10254      ;;
10255    cygwin*)
10256      # Convert to unix form, then to dos form, then back to unix form
10257      # but this time dos style (no spaces!) so that the unix form looks
10258      # like /cygdrive/c/PROGRA~1:/cygdr...
10259      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10260      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10261      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10262      ;;
10263    *)
10264      sys_lib_search_path_spec="$LIB"
10265      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10266        # It is most probably a Windows format PATH.
10267        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10268      else
10269        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10270      fi
10271      # FIXME: find the short name or the path components, as spaces are
10272      # common. (e.g. "Program Files" -> "PROGRA~1")
10273      ;;
10274    esac
10275
10276    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10277    postinstall_cmds='base_file=`basename \${file}`~
10278      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10279      dldir=$destdir/`dirname \$dlpath`~
10280      test -d \$dldir || mkdir -p \$dldir~
10281      $install_prog $dir/$dlname \$dldir/$dlname'
10282    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10283      dlpath=$dir/\$dldll~
10284       $RM \$dlpath'
10285    shlibpath_overrides_runpath=yes
10286    dynamic_linker='Win32 link.exe'
10287    ;;
10288
10289  *)
10290    # Assume MSVC wrapper
10291    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10292    dynamic_linker='Win32 ld.exe'
10293    ;;
10294  esac
10295  # FIXME: first we should search . and the directory the executable is in
10296  shlibpath_var=PATH
10297  ;;
10298
10299darwin* | rhapsody*)
10300  dynamic_linker="$host_os dyld"
10301  version_type=darwin
10302  need_lib_prefix=no
10303  need_version=no
10304  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10305  soname_spec='${libname}${release}${major}$shared_ext'
10306  shlibpath_overrides_runpath=yes
10307  shlibpath_var=DYLD_LIBRARY_PATH
10308  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10309
10310  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10311  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10312  ;;
10313
10314dgux*)
10315  version_type=linux # correct to gnu/linux during the next big refactor
10316  need_lib_prefix=no
10317  need_version=no
10318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10319  soname_spec='${libname}${release}${shared_ext}$major'
10320  shlibpath_var=LD_LIBRARY_PATH
10321  ;;
10322
10323freebsd* | dragonfly*)
10324  # DragonFly does not have aout.  When/if they implement a new
10325  # versioning mechanism, adjust this.
10326  if test -x /usr/bin/objformat; then
10327    objformat=`/usr/bin/objformat`
10328  else
10329    case $host_os in
10330    freebsd[23].*) objformat=aout ;;
10331    *) objformat=elf ;;
10332    esac
10333  fi
10334  version_type=freebsd-$objformat
10335  case $version_type in
10336    freebsd-elf*)
10337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10338      need_version=no
10339      need_lib_prefix=no
10340      ;;
10341    freebsd-*)
10342      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10343      need_version=yes
10344      ;;
10345  esac
10346  shlibpath_var=LD_LIBRARY_PATH
10347  case $host_os in
10348  freebsd2.*)
10349    shlibpath_overrides_runpath=yes
10350    ;;
10351  freebsd3.[01]* | freebsdelf3.[01]*)
10352    shlibpath_overrides_runpath=yes
10353    hardcode_into_libs=yes
10354    ;;
10355  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10356  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10357    shlibpath_overrides_runpath=no
10358    hardcode_into_libs=yes
10359    ;;
10360  *) # from 4.6 on, and DragonFly
10361    shlibpath_overrides_runpath=yes
10362    hardcode_into_libs=yes
10363    ;;
10364  esac
10365  ;;
10366
10367gnu*)
10368  version_type=linux # correct to gnu/linux during the next big refactor
10369  need_lib_prefix=no
10370  need_version=no
10371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10372  soname_spec='${libname}${release}${shared_ext}$major'
10373  shlibpath_var=LD_LIBRARY_PATH
10374  shlibpath_overrides_runpath=no
10375  hardcode_into_libs=yes
10376  ;;
10377
10378haiku*)
10379  version_type=linux # correct to gnu/linux during the next big refactor
10380  need_lib_prefix=no
10381  need_version=no
10382  dynamic_linker="$host_os runtime_loader"
10383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10384  soname_spec='${libname}${release}${shared_ext}$major'
10385  shlibpath_var=LIBRARY_PATH
10386  shlibpath_overrides_runpath=yes
10387  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10388  hardcode_into_libs=yes
10389  ;;
10390
10391hpux9* | hpux10* | hpux11*)
10392  # Give a soname corresponding to the major version so that dld.sl refuses to
10393  # link against other versions.
10394  version_type=sunos
10395  need_lib_prefix=no
10396  need_version=no
10397  case $host_cpu in
10398  ia64*)
10399    shrext_cmds='.so'
10400    hardcode_into_libs=yes
10401    dynamic_linker="$host_os dld.so"
10402    shlibpath_var=LD_LIBRARY_PATH
10403    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10404    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405    soname_spec='${libname}${release}${shared_ext}$major'
10406    if test "X$HPUX_IA64_MODE" = X32; then
10407      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10408    else
10409      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10410    fi
10411    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10412    ;;
10413  hppa*64*)
10414    shrext_cmds='.sl'
10415    hardcode_into_libs=yes
10416    dynamic_linker="$host_os dld.sl"
10417    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10418    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10419    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420    soname_spec='${libname}${release}${shared_ext}$major'
10421    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10422    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10423    ;;
10424  *)
10425    shrext_cmds='.sl'
10426    dynamic_linker="$host_os dld.sl"
10427    shlibpath_var=SHLIB_PATH
10428    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430    soname_spec='${libname}${release}${shared_ext}$major'
10431    ;;
10432  esac
10433  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10434  postinstall_cmds='chmod 555 $lib'
10435  # or fails outright, so override atomically:
10436  install_override_mode=555
10437  ;;
10438
10439interix[3-9]*)
10440  version_type=linux # correct to gnu/linux during the next big refactor
10441  need_lib_prefix=no
10442  need_version=no
10443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10444  soname_spec='${libname}${release}${shared_ext}$major'
10445  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10446  shlibpath_var=LD_LIBRARY_PATH
10447  shlibpath_overrides_runpath=no
10448  hardcode_into_libs=yes
10449  ;;
10450
10451irix5* | irix6* | nonstopux*)
10452  case $host_os in
10453    nonstopux*) version_type=nonstopux ;;
10454    *)
10455	if test "$lt_cv_prog_gnu_ld" = yes; then
10456		version_type=linux # correct to gnu/linux during the next big refactor
10457	else
10458		version_type=irix
10459	fi ;;
10460  esac
10461  need_lib_prefix=no
10462  need_version=no
10463  soname_spec='${libname}${release}${shared_ext}$major'
10464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10465  case $host_os in
10466  irix5* | nonstopux*)
10467    libsuff= shlibsuff=
10468    ;;
10469  *)
10470    case $LD in # libtool.m4 will add one of these switches to LD
10471    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10472      libsuff= shlibsuff= libmagic=32-bit;;
10473    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10474      libsuff=32 shlibsuff=N32 libmagic=N32;;
10475    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10476      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10477    *) libsuff= shlibsuff= libmagic=never-match;;
10478    esac
10479    ;;
10480  esac
10481  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10482  shlibpath_overrides_runpath=no
10483  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10484  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10485  hardcode_into_libs=yes
10486  ;;
10487
10488# No shared lib support for Linux oldld, aout, or coff.
10489linux*oldld* | linux*aout* | linux*coff*)
10490  dynamic_linker=no
10491  ;;
10492
10493# This must be glibc/ELF.
10494linux* | k*bsd*-gnu | kopensolaris*-gnu)
10495  version_type=linux # correct to gnu/linux during the next big refactor
10496  need_lib_prefix=no
10497  need_version=no
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499  soname_spec='${libname}${release}${shared_ext}$major'
10500  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  shlibpath_overrides_runpath=no
10503
10504  # Some binutils ld are patched to set DT_RUNPATH
10505  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10506  $as_echo_n "(cached) " >&6
10507else
10508  lt_cv_shlibpath_overrides_runpath=no
10509    save_LDFLAGS=$LDFLAGS
10510    save_libdir=$libdir
10511    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10512	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515
10516int
10517main ()
10518{
10519
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"; then :
10525  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10526  lt_cv_shlibpath_overrides_runpath=yes
10527fi
10528fi
10529rm -f core conftest.err conftest.$ac_objext \
10530    conftest$ac_exeext conftest.$ac_ext
10531    LDFLAGS=$save_LDFLAGS
10532    libdir=$save_libdir
10533
10534fi
10535
10536  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10537
10538  # This implies no fast_install, which is unacceptable.
10539  # Some rework will be needed to allow for fast_install
10540  # before this can be enabled.
10541  hardcode_into_libs=yes
10542
10543  # Append ld.so.conf contents to the search path
10544  if test -f /etc/ld.so.conf; then
10545    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' ' '`
10546    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10547  fi
10548
10549  # We used to test for /lib/ld.so.1 and disable shared libraries on
10550  # powerpc, because MkLinux only supported shared libraries with the
10551  # GNU dynamic linker.  Since this was broken with cross compilers,
10552  # most powerpc-linux boxes support dynamic linking these days and
10553  # people can always --disable-shared, the test was removed, and we
10554  # assume the GNU/Linux dynamic linker is in use.
10555  dynamic_linker='GNU/Linux ld.so'
10556  ;;
10557
10558netbsd*)
10559  version_type=sunos
10560  need_lib_prefix=no
10561  need_version=no
10562  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10564    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10565    dynamic_linker='NetBSD (a.out) ld.so'
10566  else
10567    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10568    soname_spec='${libname}${release}${shared_ext}$major'
10569    dynamic_linker='NetBSD ld.elf_so'
10570  fi
10571  shlibpath_var=LD_LIBRARY_PATH
10572  shlibpath_overrides_runpath=yes
10573  hardcode_into_libs=yes
10574  ;;
10575
10576newsos6)
10577  version_type=linux # correct to gnu/linux during the next big refactor
10578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579  shlibpath_var=LD_LIBRARY_PATH
10580  shlibpath_overrides_runpath=yes
10581  ;;
10582
10583*nto* | *qnx*)
10584  version_type=qnx
10585  need_lib_prefix=no
10586  need_version=no
10587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588  soname_spec='${libname}${release}${shared_ext}$major'
10589  shlibpath_var=LD_LIBRARY_PATH
10590  shlibpath_overrides_runpath=no
10591  hardcode_into_libs=yes
10592  dynamic_linker='ldqnx.so'
10593  ;;
10594
10595openbsd*)
10596  version_type=sunos
10597  sys_lib_dlsearch_path_spec="/usr/lib"
10598  need_lib_prefix=no
10599  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10600  case $host_os in
10601    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10602    *)				need_version=no  ;;
10603  esac
10604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10605  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10606  shlibpath_var=LD_LIBRARY_PATH
10607  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10608    case $host_os in
10609      openbsd2.[89] | openbsd2.[89].*)
10610	shlibpath_overrides_runpath=no
10611	;;
10612      *)
10613	shlibpath_overrides_runpath=yes
10614	;;
10615      esac
10616  else
10617    shlibpath_overrides_runpath=yes
10618  fi
10619  ;;
10620
10621os2*)
10622  libname_spec='$name'
10623  shrext_cmds=".dll"
10624  need_lib_prefix=no
10625  library_names_spec='$libname${shared_ext} $libname.a'
10626  dynamic_linker='OS/2 ld.exe'
10627  shlibpath_var=LIBPATH
10628  ;;
10629
10630osf3* | osf4* | osf5*)
10631  version_type=osf
10632  need_lib_prefix=no
10633  need_version=no
10634  soname_spec='${libname}${release}${shared_ext}$major'
10635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636  shlibpath_var=LD_LIBRARY_PATH
10637  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10638  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10639  ;;
10640
10641rdos*)
10642  dynamic_linker=no
10643  ;;
10644
10645solaris*)
10646  version_type=linux # correct to gnu/linux during the next big refactor
10647  need_lib_prefix=no
10648  need_version=no
10649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650  soname_spec='${libname}${release}${shared_ext}$major'
10651  shlibpath_var=LD_LIBRARY_PATH
10652  shlibpath_overrides_runpath=yes
10653  hardcode_into_libs=yes
10654  # ldd complains unless libraries are executable
10655  postinstall_cmds='chmod +x $lib'
10656  ;;
10657
10658sunos4*)
10659  version_type=sunos
10660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10661  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10662  shlibpath_var=LD_LIBRARY_PATH
10663  shlibpath_overrides_runpath=yes
10664  if test "$with_gnu_ld" = yes; then
10665    need_lib_prefix=no
10666  fi
10667  need_version=yes
10668  ;;
10669
10670sysv4 | sysv4.3*)
10671  version_type=linux # correct to gnu/linux during the next big refactor
10672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673  soname_spec='${libname}${release}${shared_ext}$major'
10674  shlibpath_var=LD_LIBRARY_PATH
10675  case $host_vendor in
10676    sni)
10677      shlibpath_overrides_runpath=no
10678      need_lib_prefix=no
10679      runpath_var=LD_RUN_PATH
10680      ;;
10681    siemens)
10682      need_lib_prefix=no
10683      ;;
10684    motorola)
10685      need_lib_prefix=no
10686      need_version=no
10687      shlibpath_overrides_runpath=no
10688      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10689      ;;
10690  esac
10691  ;;
10692
10693sysv4*MP*)
10694  if test -d /usr/nec ;then
10695    version_type=linux # correct to gnu/linux during the next big refactor
10696    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10697    soname_spec='$libname${shared_ext}.$major'
10698    shlibpath_var=LD_LIBRARY_PATH
10699  fi
10700  ;;
10701
10702sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10703  version_type=freebsd-elf
10704  need_lib_prefix=no
10705  need_version=no
10706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10707  soname_spec='${libname}${release}${shared_ext}$major'
10708  shlibpath_var=LD_LIBRARY_PATH
10709  shlibpath_overrides_runpath=yes
10710  hardcode_into_libs=yes
10711  if test "$with_gnu_ld" = yes; then
10712    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10713  else
10714    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10715    case $host_os in
10716      sco3.2v5*)
10717        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10718	;;
10719    esac
10720  fi
10721  sys_lib_dlsearch_path_spec='/usr/lib'
10722  ;;
10723
10724tpf*)
10725  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10726  version_type=linux # correct to gnu/linux during the next big refactor
10727  need_lib_prefix=no
10728  need_version=no
10729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730  shlibpath_var=LD_LIBRARY_PATH
10731  shlibpath_overrides_runpath=no
10732  hardcode_into_libs=yes
10733  ;;
10734
10735uts4*)
10736  version_type=linux # correct to gnu/linux during the next big refactor
10737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738  soname_spec='${libname}${release}${shared_ext}$major'
10739  shlibpath_var=LD_LIBRARY_PATH
10740  ;;
10741
10742*)
10743  dynamic_linker=no
10744  ;;
10745esac
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10747$as_echo "$dynamic_linker" >&6; }
10748test "$dynamic_linker" = no && can_build_shared=no
10749
10750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10751if test "$GCC" = yes; then
10752  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10753fi
10754
10755if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10756  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10757fi
10758if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10759  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10760fi
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10854$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10855hardcode_action=
10856if test -n "$hardcode_libdir_flag_spec" ||
10857   test -n "$runpath_var" ||
10858   test "X$hardcode_automatic" = "Xyes" ; then
10859
10860  # We can hardcode non-existent directories.
10861  if test "$hardcode_direct" != no &&
10862     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10863     # have to relink, otherwise we might link with an installed library
10864     # when we should be linking with a yet-to-be-installed one
10865     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10866     test "$hardcode_minus_L" != no; then
10867    # Linking always hardcodes the temporary library directory.
10868    hardcode_action=relink
10869  else
10870    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10871    hardcode_action=immediate
10872  fi
10873else
10874  # We cannot hardcode anything, or else we can only hardcode existing
10875  # directories.
10876  hardcode_action=unsupported
10877fi
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10879$as_echo "$hardcode_action" >&6; }
10880
10881if test "$hardcode_action" = relink ||
10882   test "$inherit_rpath" = yes; then
10883  # Fast installation is not supported
10884  enable_fast_install=no
10885elif test "$shlibpath_overrides_runpath" = yes ||
10886     test "$enable_shared" = no; then
10887  # Fast installation is not necessary
10888  enable_fast_install=needless
10889fi
10890
10891
10892
10893
10894
10895
10896  if test "x$enable_dlopen" != xyes; then
10897  enable_dlopen=unknown
10898  enable_dlopen_self=unknown
10899  enable_dlopen_self_static=unknown
10900else
10901  lt_cv_dlopen=no
10902  lt_cv_dlopen_libs=
10903
10904  case $host_os in
10905  beos*)
10906    lt_cv_dlopen="load_add_on"
10907    lt_cv_dlopen_libs=
10908    lt_cv_dlopen_self=yes
10909    ;;
10910
10911  mingw* | pw32* | cegcc*)
10912    lt_cv_dlopen="LoadLibrary"
10913    lt_cv_dlopen_libs=
10914    ;;
10915
10916  cygwin*)
10917    lt_cv_dlopen="dlopen"
10918    lt_cv_dlopen_libs=
10919    ;;
10920
10921  darwin*)
10922  # if libdl is installed we need to link against it
10923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10924$as_echo_n "checking for dlopen in -ldl... " >&6; }
10925if ${ac_cv_lib_dl_dlopen+:} false; then :
10926  $as_echo_n "(cached) " >&6
10927else
10928  ac_check_lib_save_LIBS=$LIBS
10929LIBS="-ldl  $LIBS"
10930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931/* end confdefs.h.  */
10932
10933/* Override any GCC internal prototype to avoid an error.
10934   Use char because int might match the return type of a GCC
10935   builtin and then its argument prototype would still apply.  */
10936#ifdef __cplusplus
10937extern "C"
10938#endif
10939char dlopen ();
10940int
10941main ()
10942{
10943return dlopen ();
10944  ;
10945  return 0;
10946}
10947_ACEOF
10948if ac_fn_c_try_link "$LINENO"; then :
10949  ac_cv_lib_dl_dlopen=yes
10950else
10951  ac_cv_lib_dl_dlopen=no
10952fi
10953rm -f core conftest.err conftest.$ac_objext \
10954    conftest$ac_exeext conftest.$ac_ext
10955LIBS=$ac_check_lib_save_LIBS
10956fi
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10958$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10959if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10960  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961else
10962
10963    lt_cv_dlopen="dyld"
10964    lt_cv_dlopen_libs=
10965    lt_cv_dlopen_self=yes
10966
10967fi
10968
10969    ;;
10970
10971  *)
10972    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10973if test "x$ac_cv_func_shl_load" = xyes; then :
10974  lt_cv_dlopen="shl_load"
10975else
10976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10977$as_echo_n "checking for shl_load in -ldld... " >&6; }
10978if ${ac_cv_lib_dld_shl_load+:} false; then :
10979  $as_echo_n "(cached) " >&6
10980else
10981  ac_check_lib_save_LIBS=$LIBS
10982LIBS="-ldld  $LIBS"
10983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h.  */
10985
10986/* Override any GCC internal prototype to avoid an error.
10987   Use char because int might match the return type of a GCC
10988   builtin and then its argument prototype would still apply.  */
10989#ifdef __cplusplus
10990extern "C"
10991#endif
10992char shl_load ();
10993int
10994main ()
10995{
10996return shl_load ();
10997  ;
10998  return 0;
10999}
11000_ACEOF
11001if ac_fn_c_try_link "$LINENO"; then :
11002  ac_cv_lib_dld_shl_load=yes
11003else
11004  ac_cv_lib_dld_shl_load=no
11005fi
11006rm -f core conftest.err conftest.$ac_objext \
11007    conftest$ac_exeext conftest.$ac_ext
11008LIBS=$ac_check_lib_save_LIBS
11009fi
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11011$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11012if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11013  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11014else
11015  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11016if test "x$ac_cv_func_dlopen" = xyes; then :
11017  lt_cv_dlopen="dlopen"
11018else
11019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11020$as_echo_n "checking for dlopen in -ldl... " >&6; }
11021if ${ac_cv_lib_dl_dlopen+:} false; then :
11022  $as_echo_n "(cached) " >&6
11023else
11024  ac_check_lib_save_LIBS=$LIBS
11025LIBS="-ldl  $LIBS"
11026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027/* end confdefs.h.  */
11028
11029/* Override any GCC internal prototype to avoid an error.
11030   Use char because int might match the return type of a GCC
11031   builtin and then its argument prototype would still apply.  */
11032#ifdef __cplusplus
11033extern "C"
11034#endif
11035char dlopen ();
11036int
11037main ()
11038{
11039return dlopen ();
11040  ;
11041  return 0;
11042}
11043_ACEOF
11044if ac_fn_c_try_link "$LINENO"; then :
11045  ac_cv_lib_dl_dlopen=yes
11046else
11047  ac_cv_lib_dl_dlopen=no
11048fi
11049rm -f core conftest.err conftest.$ac_objext \
11050    conftest$ac_exeext conftest.$ac_ext
11051LIBS=$ac_check_lib_save_LIBS
11052fi
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11054$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11055if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11056  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11057else
11058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11059$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11060if ${ac_cv_lib_svld_dlopen+:} false; then :
11061  $as_echo_n "(cached) " >&6
11062else
11063  ac_check_lib_save_LIBS=$LIBS
11064LIBS="-lsvld  $LIBS"
11065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h.  */
11067
11068/* Override any GCC internal prototype to avoid an error.
11069   Use char because int might match the return type of a GCC
11070   builtin and then its argument prototype would still apply.  */
11071#ifdef __cplusplus
11072extern "C"
11073#endif
11074char dlopen ();
11075int
11076main ()
11077{
11078return dlopen ();
11079  ;
11080  return 0;
11081}
11082_ACEOF
11083if ac_fn_c_try_link "$LINENO"; then :
11084  ac_cv_lib_svld_dlopen=yes
11085else
11086  ac_cv_lib_svld_dlopen=no
11087fi
11088rm -f core conftest.err conftest.$ac_objext \
11089    conftest$ac_exeext conftest.$ac_ext
11090LIBS=$ac_check_lib_save_LIBS
11091fi
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11093$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11094if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11095  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11096else
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11098$as_echo_n "checking for dld_link in -ldld... " >&6; }
11099if ${ac_cv_lib_dld_dld_link+:} false; then :
11100  $as_echo_n "(cached) " >&6
11101else
11102  ac_check_lib_save_LIBS=$LIBS
11103LIBS="-ldld  $LIBS"
11104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h.  */
11106
11107/* Override any GCC internal prototype to avoid an error.
11108   Use char because int might match the return type of a GCC
11109   builtin and then its argument prototype would still apply.  */
11110#ifdef __cplusplus
11111extern "C"
11112#endif
11113char dld_link ();
11114int
11115main ()
11116{
11117return dld_link ();
11118  ;
11119  return 0;
11120}
11121_ACEOF
11122if ac_fn_c_try_link "$LINENO"; then :
11123  ac_cv_lib_dld_dld_link=yes
11124else
11125  ac_cv_lib_dld_dld_link=no
11126fi
11127rm -f core conftest.err conftest.$ac_objext \
11128    conftest$ac_exeext conftest.$ac_ext
11129LIBS=$ac_check_lib_save_LIBS
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11132$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11133if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11134  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11135fi
11136
11137
11138fi
11139
11140
11141fi
11142
11143
11144fi
11145
11146
11147fi
11148
11149
11150fi
11151
11152    ;;
11153  esac
11154
11155  if test "x$lt_cv_dlopen" != xno; then
11156    enable_dlopen=yes
11157  else
11158    enable_dlopen=no
11159  fi
11160
11161  case $lt_cv_dlopen in
11162  dlopen)
11163    save_CPPFLAGS="$CPPFLAGS"
11164    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11165
11166    save_LDFLAGS="$LDFLAGS"
11167    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11168
11169    save_LIBS="$LIBS"
11170    LIBS="$lt_cv_dlopen_libs $LIBS"
11171
11172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11173$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11174if ${lt_cv_dlopen_self+:} false; then :
11175  $as_echo_n "(cached) " >&6
11176else
11177  	  if test "$cross_compiling" = yes; then :
11178  lt_cv_dlopen_self=cross
11179else
11180  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11181  lt_status=$lt_dlunknown
11182  cat > conftest.$ac_ext <<_LT_EOF
11183#line $LINENO "configure"
11184#include "confdefs.h"
11185
11186#if HAVE_DLFCN_H
11187#include <dlfcn.h>
11188#endif
11189
11190#include <stdio.h>
11191
11192#ifdef RTLD_GLOBAL
11193#  define LT_DLGLOBAL		RTLD_GLOBAL
11194#else
11195#  ifdef DL_GLOBAL
11196#    define LT_DLGLOBAL		DL_GLOBAL
11197#  else
11198#    define LT_DLGLOBAL		0
11199#  endif
11200#endif
11201
11202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11203   find out it does not work in some platform. */
11204#ifndef LT_DLLAZY_OR_NOW
11205#  ifdef RTLD_LAZY
11206#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11207#  else
11208#    ifdef DL_LAZY
11209#      define LT_DLLAZY_OR_NOW		DL_LAZY
11210#    else
11211#      ifdef RTLD_NOW
11212#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11213#      else
11214#        ifdef DL_NOW
11215#          define LT_DLLAZY_OR_NOW	DL_NOW
11216#        else
11217#          define LT_DLLAZY_OR_NOW	0
11218#        endif
11219#      endif
11220#    endif
11221#  endif
11222#endif
11223
11224/* When -fvisbility=hidden is used, assume the code has been annotated
11225   correspondingly for the symbols needed.  */
11226#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11227int fnord () __attribute__((visibility("default")));
11228#endif
11229
11230int fnord () { return 42; }
11231int main ()
11232{
11233  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11234  int status = $lt_dlunknown;
11235
11236  if (self)
11237    {
11238      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11239      else
11240        {
11241	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11242          else puts (dlerror ());
11243	}
11244      /* dlclose (self); */
11245    }
11246  else
11247    puts (dlerror ());
11248
11249  return status;
11250}
11251_LT_EOF
11252  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11253  (eval $ac_link) 2>&5
11254  ac_status=$?
11255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11256  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11257    (./conftest; exit; ) >&5 2>/dev/null
11258    lt_status=$?
11259    case x$lt_status in
11260      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11261      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11262      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11263    esac
11264  else :
11265    # compilation failed
11266    lt_cv_dlopen_self=no
11267  fi
11268fi
11269rm -fr conftest*
11270
11271
11272fi
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11274$as_echo "$lt_cv_dlopen_self" >&6; }
11275
11276    if test "x$lt_cv_dlopen_self" = xyes; then
11277      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11278      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11279$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11280if ${lt_cv_dlopen_self_static+:} false; then :
11281  $as_echo_n "(cached) " >&6
11282else
11283  	  if test "$cross_compiling" = yes; then :
11284  lt_cv_dlopen_self_static=cross
11285else
11286  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11287  lt_status=$lt_dlunknown
11288  cat > conftest.$ac_ext <<_LT_EOF
11289#line $LINENO "configure"
11290#include "confdefs.h"
11291
11292#if HAVE_DLFCN_H
11293#include <dlfcn.h>
11294#endif
11295
11296#include <stdio.h>
11297
11298#ifdef RTLD_GLOBAL
11299#  define LT_DLGLOBAL		RTLD_GLOBAL
11300#else
11301#  ifdef DL_GLOBAL
11302#    define LT_DLGLOBAL		DL_GLOBAL
11303#  else
11304#    define LT_DLGLOBAL		0
11305#  endif
11306#endif
11307
11308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11309   find out it does not work in some platform. */
11310#ifndef LT_DLLAZY_OR_NOW
11311#  ifdef RTLD_LAZY
11312#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11313#  else
11314#    ifdef DL_LAZY
11315#      define LT_DLLAZY_OR_NOW		DL_LAZY
11316#    else
11317#      ifdef RTLD_NOW
11318#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11319#      else
11320#        ifdef DL_NOW
11321#          define LT_DLLAZY_OR_NOW	DL_NOW
11322#        else
11323#          define LT_DLLAZY_OR_NOW	0
11324#        endif
11325#      endif
11326#    endif
11327#  endif
11328#endif
11329
11330/* When -fvisbility=hidden is used, assume the code has been annotated
11331   correspondingly for the symbols needed.  */
11332#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11333int fnord () __attribute__((visibility("default")));
11334#endif
11335
11336int fnord () { return 42; }
11337int main ()
11338{
11339  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11340  int status = $lt_dlunknown;
11341
11342  if (self)
11343    {
11344      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11345      else
11346        {
11347	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11348          else puts (dlerror ());
11349	}
11350      /* dlclose (self); */
11351    }
11352  else
11353    puts (dlerror ());
11354
11355  return status;
11356}
11357_LT_EOF
11358  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11359  (eval $ac_link) 2>&5
11360  ac_status=$?
11361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11362  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11363    (./conftest; exit; ) >&5 2>/dev/null
11364    lt_status=$?
11365    case x$lt_status in
11366      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11367      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11368      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11369    esac
11370  else :
11371    # compilation failed
11372    lt_cv_dlopen_self_static=no
11373  fi
11374fi
11375rm -fr conftest*
11376
11377
11378fi
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11380$as_echo "$lt_cv_dlopen_self_static" >&6; }
11381    fi
11382
11383    CPPFLAGS="$save_CPPFLAGS"
11384    LDFLAGS="$save_LDFLAGS"
11385    LIBS="$save_LIBS"
11386    ;;
11387  esac
11388
11389  case $lt_cv_dlopen_self in
11390  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11391  *) enable_dlopen_self=unknown ;;
11392  esac
11393
11394  case $lt_cv_dlopen_self_static in
11395  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11396  *) enable_dlopen_self_static=unknown ;;
11397  esac
11398fi
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416striplib=
11417old_striplib=
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11419$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11420if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11421  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11422  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424$as_echo "yes" >&6; }
11425else
11426# FIXME - insert some real tests, host_os isn't really good enough
11427  case $host_os in
11428  darwin*)
11429    if test -n "$STRIP" ; then
11430      striplib="$STRIP -x"
11431      old_striplib="$STRIP -S"
11432      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433$as_echo "yes" >&6; }
11434    else
11435      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
11437    fi
11438    ;;
11439  *)
11440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441$as_echo "no" >&6; }
11442    ;;
11443  esac
11444fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457  # Report which library types will actually be built
11458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11459$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11461$as_echo "$can_build_shared" >&6; }
11462
11463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11464$as_echo_n "checking whether to build shared libraries... " >&6; }
11465  test "$can_build_shared" = "no" && enable_shared=no
11466
11467  # On AIX, shared libraries and static libraries use the same namespace, and
11468  # are all built from PIC.
11469  case $host_os in
11470  aix3*)
11471    test "$enable_shared" = yes && enable_static=no
11472    if test -n "$RANLIB"; then
11473      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11474      postinstall_cmds='$RANLIB $lib'
11475    fi
11476    ;;
11477
11478  aix[4-9]*)
11479    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11480      test "$enable_shared" = yes && enable_static=no
11481    fi
11482    ;;
11483  esac
11484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11485$as_echo "$enable_shared" >&6; }
11486
11487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11488$as_echo_n "checking whether to build static libraries... " >&6; }
11489  # Make sure either enable_shared or enable_static is yes.
11490  test "$enable_shared" = yes || enable_static=yes
11491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11492$as_echo "$enable_static" >&6; }
11493
11494
11495
11496
11497fi
11498ac_ext=c
11499ac_cpp='$CPP $CPPFLAGS'
11500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502ac_compiler_gnu=$ac_cv_c_compiler_gnu
11503
11504CC="$lt_save_CC"
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520        ac_config_commands="$ac_config_commands libtool"
11521
11522
11523
11524
11525# Only expand once:
11526
11527
11528
11529# default values, dynamically linking and stripped binary
11530STATIC="no"
11531
11532
11533# provide flag --enable-static
11534# Check whether --enable-static-binary was given.
11535if test "${enable_static_binary+set}" = set; then :
11536  enableval=$enable_static_binary;
11537	if test "x$enableval" = "xyes"; then
11538	    STATIC="yes"
11539	    LDFLAGS="$LDFLAGS -static"
11540	fi
11541
11542fi
11543
11544
11545# Check whether --enable-debug was given.
11546if test "${enable_debug+set}" = set; then :
11547  enableval=$enable_debug;
11548fi
11549
11550if test "x$enable_debug" != "xno"; then :
11551
11552          CXXFLAGS="$CFLAGS -g -DDEBUG"
11553          enable_debug="yes"
11554
11555fi
11556
11557
11558
11559
11560
11561# look for the existence of install
11562
11563
11564# look if c++ compiler exists
11565ac_ext=cpp
11566ac_cpp='$CXXCPP $CPPFLAGS'
11567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11570if test -z "$CXX"; then
11571  if test -n "$CCC"; then
11572    CXX=$CCC
11573  else
11574    if test -n "$ac_tool_prefix"; then
11575  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11576  do
11577    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580$as_echo_n "checking for $ac_word... " >&6; }
11581if ${ac_cv_prog_CXX+:} false; then :
11582  $as_echo_n "(cached) " >&6
11583else
11584  if test -n "$CXX"; then
11585  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11586else
11587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588for as_dir in $PATH
11589do
11590  IFS=$as_save_IFS
11591  test -z "$as_dir" && as_dir=.
11592    for ac_exec_ext in '' $ac_executable_extensions; do
11593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11594    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596    break 2
11597  fi
11598done
11599  done
11600IFS=$as_save_IFS
11601
11602fi
11603fi
11604CXX=$ac_cv_prog_CXX
11605if test -n "$CXX"; then
11606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11607$as_echo "$CXX" >&6; }
11608else
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610$as_echo "no" >&6; }
11611fi
11612
11613
11614    test -n "$CXX" && break
11615  done
11616fi
11617if test -z "$CXX"; then
11618  ac_ct_CXX=$CXX
11619  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11620do
11621  # Extract the first word of "$ac_prog", so it can be a program name with args.
11622set dummy $ac_prog; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  if test -n "$ac_ct_CXX"; then
11629  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634  IFS=$as_save_IFS
11635  test -z "$as_dir" && as_dir=.
11636    for ac_exec_ext in '' $ac_executable_extensions; do
11637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638    ac_cv_prog_ac_ct_CXX="$ac_prog"
11639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640    break 2
11641  fi
11642done
11643  done
11644IFS=$as_save_IFS
11645
11646fi
11647fi
11648ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11649if test -n "$ac_ct_CXX"; then
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11651$as_echo "$ac_ct_CXX" >&6; }
11652else
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655fi
11656
11657
11658  test -n "$ac_ct_CXX" && break
11659done
11660
11661  if test "x$ac_ct_CXX" = x; then
11662    CXX="g++"
11663  else
11664    case $cross_compiling:$ac_tool_warned in
11665yes:)
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11668ac_tool_warned=yes ;;
11669esac
11670    CXX=$ac_ct_CXX
11671  fi
11672fi
11673
11674  fi
11675fi
11676# Provide some information about the compiler.
11677$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11678set X $ac_compile
11679ac_compiler=$2
11680for ac_option in --version -v -V -qversion; do
11681  { { ac_try="$ac_compiler $ac_option >&5"
11682case "(($ac_try" in
11683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684  *) ac_try_echo=$ac_try;;
11685esac
11686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11687$as_echo "$ac_try_echo"; } >&5
11688  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11689  ac_status=$?
11690  if test -s conftest.err; then
11691    sed '10a\
11692... rest of stderr output deleted ...
11693         10q' conftest.err >conftest.er1
11694    cat conftest.er1 >&5
11695  fi
11696  rm -f conftest.er1 conftest.err
11697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698  test $ac_status = 0; }
11699done
11700
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11702$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11703if ${ac_cv_cxx_compiler_gnu+:} false; then :
11704  $as_echo_n "(cached) " >&6
11705else
11706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707/* end confdefs.h.  */
11708
11709int
11710main ()
11711{
11712#ifndef __GNUC__
11713       choke me
11714#endif
11715
11716  ;
11717  return 0;
11718}
11719_ACEOF
11720if ac_fn_cxx_try_compile "$LINENO"; then :
11721  ac_compiler_gnu=yes
11722else
11723  ac_compiler_gnu=no
11724fi
11725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11726ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11727
11728fi
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11730$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11731if test $ac_compiler_gnu = yes; then
11732  GXX=yes
11733else
11734  GXX=
11735fi
11736ac_test_CXXFLAGS=${CXXFLAGS+set}
11737ac_save_CXXFLAGS=$CXXFLAGS
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11739$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11740if ${ac_cv_prog_cxx_g+:} false; then :
11741  $as_echo_n "(cached) " >&6
11742else
11743  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11744   ac_cxx_werror_flag=yes
11745   ac_cv_prog_cxx_g=no
11746   CXXFLAGS="-g"
11747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748/* end confdefs.h.  */
11749
11750int
11751main ()
11752{
11753
11754  ;
11755  return 0;
11756}
11757_ACEOF
11758if ac_fn_cxx_try_compile "$LINENO"; then :
11759  ac_cv_prog_cxx_g=yes
11760else
11761  CXXFLAGS=""
11762      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763/* end confdefs.h.  */
11764
11765int
11766main ()
11767{
11768
11769  ;
11770  return 0;
11771}
11772_ACEOF
11773if ac_fn_cxx_try_compile "$LINENO"; then :
11774
11775else
11776  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11777	 CXXFLAGS="-g"
11778	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779/* end confdefs.h.  */
11780
11781int
11782main ()
11783{
11784
11785  ;
11786  return 0;
11787}
11788_ACEOF
11789if ac_fn_cxx_try_compile "$LINENO"; then :
11790  ac_cv_prog_cxx_g=yes
11791fi
11792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793fi
11794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795fi
11796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11797   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11798fi
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11800$as_echo "$ac_cv_prog_cxx_g" >&6; }
11801if test "$ac_test_CXXFLAGS" = set; then
11802  CXXFLAGS=$ac_save_CXXFLAGS
11803elif test $ac_cv_prog_cxx_g = yes; then
11804  if test "$GXX" = yes; then
11805    CXXFLAGS="-g -O2"
11806  else
11807    CXXFLAGS="-g"
11808  fi
11809else
11810  if test "$GXX" = yes; then
11811    CXXFLAGS="-O2"
11812  else
11813    CXXFLAGS=
11814  fi
11815fi
11816ac_ext=c
11817ac_cpp='$CPP $CPPFLAGS'
11818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822depcc="$CXX"  am_compiler_list=
11823
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11825$as_echo_n "checking dependency style of $depcc... " >&6; }
11826if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11827  $as_echo_n "(cached) " >&6
11828else
11829  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11830  # We make a subdir and do the tests there.  Otherwise we can end up
11831  # making bogus files that we don't know about and never remove.  For
11832  # instance it was reported that on HP-UX the gcc test will end up
11833  # making a dummy file named 'D' -- because '-MD' means "put the output
11834  # in D".
11835  rm -rf conftest.dir
11836  mkdir conftest.dir
11837  # Copy depcomp to subdir because otherwise we won't find it if we're
11838  # using a relative directory.
11839  cp "$am_depcomp" conftest.dir
11840  cd conftest.dir
11841  # We will build objects and dependencies in a subdirectory because
11842  # it helps to detect inapplicable dependency modes.  For instance
11843  # both Tru64's cc and ICC support -MD to output dependencies as a
11844  # side effect of compilation, but ICC will put the dependencies in
11845  # the current directory while Tru64 will put them in the object
11846  # directory.
11847  mkdir sub
11848
11849  am_cv_CXX_dependencies_compiler_type=none
11850  if test "$am_compiler_list" = ""; then
11851     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11852  fi
11853  am__universal=false
11854  case " $depcc " in #(
11855     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11856     esac
11857
11858  for depmode in $am_compiler_list; do
11859    # Setup a source with many dependencies, because some compilers
11860    # like to wrap large dependency lists on column 80 (with \), and
11861    # we should not choose a depcomp mode which is confused by this.
11862    #
11863    # We need to recreate these files for each test, as the compiler may
11864    # overwrite some of them when testing with obscure command lines.
11865    # This happens at least with the AIX C compiler.
11866    : > sub/conftest.c
11867    for i in 1 2 3 4 5 6; do
11868      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11869      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11870      # Solaris 10 /bin/sh.
11871      echo '/* dummy */' > sub/conftst$i.h
11872    done
11873    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11874
11875    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11876    # mode.  It turns out that the SunPro C++ compiler does not properly
11877    # handle '-M -o', and we need to detect this.  Also, some Intel
11878    # versions had trouble with output in subdirs.
11879    am__obj=sub/conftest.${OBJEXT-o}
11880    am__minus_obj="-o $am__obj"
11881    case $depmode in
11882    gcc)
11883      # This depmode causes a compiler race in universal mode.
11884      test "$am__universal" = false || continue
11885      ;;
11886    nosideeffect)
11887      # After this tag, mechanisms are not by side-effect, so they'll
11888      # only be used when explicitly requested.
11889      if test "x$enable_dependency_tracking" = xyes; then
11890	continue
11891      else
11892	break
11893      fi
11894      ;;
11895    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11896      # This compiler won't grok '-c -o', but also, the minuso test has
11897      # not run yet.  These depmodes are late enough in the game, and
11898      # so weak that their functioning should not be impacted.
11899      am__obj=conftest.${OBJEXT-o}
11900      am__minus_obj=
11901      ;;
11902    none) break ;;
11903    esac
11904    if depmode=$depmode \
11905       source=sub/conftest.c object=$am__obj \
11906       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11907       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11908         >/dev/null 2>conftest.err &&
11909       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11910       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11911       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11912       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11913      # icc doesn't choke on unknown options, it will just issue warnings
11914      # or remarks (even with -Werror).  So we grep stderr for any message
11915      # that says an option was ignored or not supported.
11916      # When given -MP, icc 7.0 and 7.1 complain thusly:
11917      #   icc: Command line warning: ignoring option '-M'; no argument required
11918      # The diagnosis changed in icc 8.0:
11919      #   icc: Command line remark: option '-MP' not supported
11920      if (grep 'ignoring option' conftest.err ||
11921          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11922        am_cv_CXX_dependencies_compiler_type=$depmode
11923        break
11924      fi
11925    fi
11926  done
11927
11928  cd ..
11929  rm -rf conftest.dir
11930else
11931  am_cv_CXX_dependencies_compiler_type=none
11932fi
11933
11934fi
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11936$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11937CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11938
11939 if
11940  test "x$enable_dependency_tracking" != xno \
11941  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11942  am__fastdepCXX_TRUE=
11943  am__fastdepCXX_FALSE='#'
11944else
11945  am__fastdepCXX_TRUE='#'
11946  am__fastdepCXX_FALSE=
11947fi
11948
11949
11950
11951
11952func_stripname_cnf ()
11953{
11954  case ${2} in
11955  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11956  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11957  esac
11958} # func_stripname_cnf
11959
11960      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11961    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11962    (test "X$CXX" != "Xg++"))) ; then
11963  ac_ext=cpp
11964ac_cpp='$CXXCPP $CPPFLAGS'
11965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11969$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11970if test -z "$CXXCPP"; then
11971  if ${ac_cv_prog_CXXCPP+:} false; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974      # Double quotes because CXXCPP needs to be expanded
11975    for CXXCPP in "$CXX -E" "/lib/cpp"
11976    do
11977      ac_preproc_ok=false
11978for ac_cxx_preproc_warn_flag in '' yes
11979do
11980  # Use a header file that comes with gcc, so configuring glibc
11981  # with a fresh cross-compiler works.
11982  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983  # <limits.h> exists even on freestanding compilers.
11984  # On the NeXT, cc -E runs the code through the compiler's parser,
11985  # not just through cpp. "Syntax error" is here to catch this case.
11986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987/* end confdefs.h.  */
11988#ifdef __STDC__
11989# include <limits.h>
11990#else
11991# include <assert.h>
11992#endif
11993		     Syntax error
11994_ACEOF
11995if ac_fn_cxx_try_cpp "$LINENO"; then :
11996
11997else
11998  # Broken: fails on valid input.
11999continue
12000fi
12001rm -f conftest.err conftest.i conftest.$ac_ext
12002
12003  # OK, works on sane cases.  Now check whether nonexistent headers
12004  # can be detected and how.
12005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006/* end confdefs.h.  */
12007#include <ac_nonexistent.h>
12008_ACEOF
12009if ac_fn_cxx_try_cpp "$LINENO"; then :
12010  # Broken: success on invalid input.
12011continue
12012else
12013  # Passes both tests.
12014ac_preproc_ok=:
12015break
12016fi
12017rm -f conftest.err conftest.i conftest.$ac_ext
12018
12019done
12020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12021rm -f conftest.i conftest.err conftest.$ac_ext
12022if $ac_preproc_ok; then :
12023  break
12024fi
12025
12026    done
12027    ac_cv_prog_CXXCPP=$CXXCPP
12028
12029fi
12030  CXXCPP=$ac_cv_prog_CXXCPP
12031else
12032  ac_cv_prog_CXXCPP=$CXXCPP
12033fi
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12035$as_echo "$CXXCPP" >&6; }
12036ac_preproc_ok=false
12037for ac_cxx_preproc_warn_flag in '' yes
12038do
12039  # Use a header file that comes with gcc, so configuring glibc
12040  # with a fresh cross-compiler works.
12041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042  # <limits.h> exists even on freestanding compilers.
12043  # On the NeXT, cc -E runs the code through the compiler's parser,
12044  # not just through cpp. "Syntax error" is here to catch this case.
12045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h.  */
12047#ifdef __STDC__
12048# include <limits.h>
12049#else
12050# include <assert.h>
12051#endif
12052		     Syntax error
12053_ACEOF
12054if ac_fn_cxx_try_cpp "$LINENO"; then :
12055
12056else
12057  # Broken: fails on valid input.
12058continue
12059fi
12060rm -f conftest.err conftest.i conftest.$ac_ext
12061
12062  # OK, works on sane cases.  Now check whether nonexistent headers
12063  # can be detected and how.
12064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065/* end confdefs.h.  */
12066#include <ac_nonexistent.h>
12067_ACEOF
12068if ac_fn_cxx_try_cpp "$LINENO"; then :
12069  # Broken: success on invalid input.
12070continue
12071else
12072  # Passes both tests.
12073ac_preproc_ok=:
12074break
12075fi
12076rm -f conftest.err conftest.i conftest.$ac_ext
12077
12078done
12079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12080rm -f conftest.i conftest.err conftest.$ac_ext
12081if $ac_preproc_ok; then :
12082
12083else
12084  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12086as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12087See \`config.log' for more details" "$LINENO" 5; }
12088fi
12089
12090ac_ext=c
12091ac_cpp='$CPP $CPPFLAGS'
12092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12094ac_compiler_gnu=$ac_cv_c_compiler_gnu
12095
12096else
12097  _lt_caught_CXX_error=yes
12098fi
12099
12100ac_ext=cpp
12101ac_cpp='$CXXCPP $CPPFLAGS'
12102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12105
12106archive_cmds_need_lc_CXX=no
12107allow_undefined_flag_CXX=
12108always_export_symbols_CXX=no
12109archive_expsym_cmds_CXX=
12110compiler_needs_object_CXX=no
12111export_dynamic_flag_spec_CXX=
12112hardcode_direct_CXX=no
12113hardcode_direct_absolute_CXX=no
12114hardcode_libdir_flag_spec_CXX=
12115hardcode_libdir_separator_CXX=
12116hardcode_minus_L_CXX=no
12117hardcode_shlibpath_var_CXX=unsupported
12118hardcode_automatic_CXX=no
12119inherit_rpath_CXX=no
12120module_cmds_CXX=
12121module_expsym_cmds_CXX=
12122link_all_deplibs_CXX=unknown
12123old_archive_cmds_CXX=$old_archive_cmds
12124reload_flag_CXX=$reload_flag
12125reload_cmds_CXX=$reload_cmds
12126no_undefined_flag_CXX=
12127whole_archive_flag_spec_CXX=
12128enable_shared_with_static_runtimes_CXX=no
12129
12130# Source file extension for C++ test sources.
12131ac_ext=cpp
12132
12133# Object file extension for compiled C++ test sources.
12134objext=o
12135objext_CXX=$objext
12136
12137# No sense in running all these tests if we already determined that
12138# the CXX compiler isn't working.  Some variables (like enable_shared)
12139# are currently assumed to apply to all compilers on this platform,
12140# and will be corrupted by setting them based on a non-working compiler.
12141if test "$_lt_caught_CXX_error" != yes; then
12142  # Code to be used in simple compile tests
12143  lt_simple_compile_test_code="int some_variable = 0;"
12144
12145  # Code to be used in simple link tests
12146  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12147
12148  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12149
12150
12151
12152
12153
12154
12155# If no C compiler was specified, use CC.
12156LTCC=${LTCC-"$CC"}
12157
12158# If no C compiler flags were specified, use CFLAGS.
12159LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12160
12161# Allow CC to be a program name with arguments.
12162compiler=$CC
12163
12164
12165  # save warnings/boilerplate of simple test code
12166  ac_outfile=conftest.$ac_objext
12167echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12168eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12169_lt_compiler_boilerplate=`cat conftest.err`
12170$RM conftest*
12171
12172  ac_outfile=conftest.$ac_objext
12173echo "$lt_simple_link_test_code" >conftest.$ac_ext
12174eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12175_lt_linker_boilerplate=`cat conftest.err`
12176$RM -r conftest*
12177
12178
12179  # Allow CC to be a program name with arguments.
12180  lt_save_CC=$CC
12181  lt_save_CFLAGS=$CFLAGS
12182  lt_save_LD=$LD
12183  lt_save_GCC=$GCC
12184  GCC=$GXX
12185  lt_save_with_gnu_ld=$with_gnu_ld
12186  lt_save_path_LD=$lt_cv_path_LD
12187  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12188    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12189  else
12190    $as_unset lt_cv_prog_gnu_ld
12191  fi
12192  if test -n "${lt_cv_path_LDCXX+set}"; then
12193    lt_cv_path_LD=$lt_cv_path_LDCXX
12194  else
12195    $as_unset lt_cv_path_LD
12196  fi
12197  test -z "${LDCXX+set}" || LD=$LDCXX
12198  CC=${CXX-"c++"}
12199  CFLAGS=$CXXFLAGS
12200  compiler=$CC
12201  compiler_CXX=$CC
12202  for cc_temp in $compiler""; do
12203  case $cc_temp in
12204    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12205    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12206    \-*) ;;
12207    *) break;;
12208  esac
12209done
12210cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12211
12212
12213  if test -n "$compiler"; then
12214    # We don't want -fno-exception when compiling C++ code, so set the
12215    # no_builtin_flag separately
12216    if test "$GXX" = yes; then
12217      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12218    else
12219      lt_prog_compiler_no_builtin_flag_CXX=
12220    fi
12221
12222    if test "$GXX" = yes; then
12223      # Set up default GNU C++ configuration
12224
12225
12226
12227# Check whether --with-gnu-ld was given.
12228if test "${with_gnu_ld+set}" = set; then :
12229  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12230else
12231  with_gnu_ld=no
12232fi
12233
12234ac_prog=ld
12235if test "$GCC" = yes; then
12236  # Check if gcc -print-prog-name=ld gives a path.
12237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12238$as_echo_n "checking for ld used by $CC... " >&6; }
12239  case $host in
12240  *-*-mingw*)
12241    # gcc leaves a trailing carriage return which upsets mingw
12242    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12243  *)
12244    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12245  esac
12246  case $ac_prog in
12247    # Accept absolute paths.
12248    [\\/]* | ?:[\\/]*)
12249      re_direlt='/[^/][^/]*/\.\./'
12250      # Canonicalize the pathname of ld
12251      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12252      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12253	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12254      done
12255      test -z "$LD" && LD="$ac_prog"
12256      ;;
12257  "")
12258    # If it fails, then pretend we aren't using GCC.
12259    ac_prog=ld
12260    ;;
12261  *)
12262    # If it is relative, then search for the first ld in PATH.
12263    with_gnu_ld=unknown
12264    ;;
12265  esac
12266elif test "$with_gnu_ld" = yes; then
12267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12268$as_echo_n "checking for GNU ld... " >&6; }
12269else
12270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12271$as_echo_n "checking for non-GNU ld... " >&6; }
12272fi
12273if ${lt_cv_path_LD+:} false; then :
12274  $as_echo_n "(cached) " >&6
12275else
12276  if test -z "$LD"; then
12277  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12278  for ac_dir in $PATH; do
12279    IFS="$lt_save_ifs"
12280    test -z "$ac_dir" && ac_dir=.
12281    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12282      lt_cv_path_LD="$ac_dir/$ac_prog"
12283      # Check to see if the program is GNU ld.  I'd rather use --version,
12284      # but apparently some variants of GNU ld only accept -v.
12285      # Break only if it was the GNU/non-GNU ld that we prefer.
12286      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12287      *GNU* | *'with BFD'*)
12288	test "$with_gnu_ld" != no && break
12289	;;
12290      *)
12291	test "$with_gnu_ld" != yes && break
12292	;;
12293      esac
12294    fi
12295  done
12296  IFS="$lt_save_ifs"
12297else
12298  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12299fi
12300fi
12301
12302LD="$lt_cv_path_LD"
12303if test -n "$LD"; then
12304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12305$as_echo "$LD" >&6; }
12306else
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308$as_echo "no" >&6; }
12309fi
12310test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12312$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12313if ${lt_cv_prog_gnu_ld+:} false; then :
12314  $as_echo_n "(cached) " >&6
12315else
12316  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12317case `$LD -v 2>&1 </dev/null` in
12318*GNU* | *'with BFD'*)
12319  lt_cv_prog_gnu_ld=yes
12320  ;;
12321*)
12322  lt_cv_prog_gnu_ld=no
12323  ;;
12324esac
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12327$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12328with_gnu_ld=$lt_cv_prog_gnu_ld
12329
12330
12331
12332
12333
12334
12335
12336      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12337      # archiving commands below assume that GNU ld is being used.
12338      if test "$with_gnu_ld" = yes; then
12339        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340        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'
12341
12342        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12343        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12344
12345        # If archive_cmds runs LD, not CC, wlarc should be empty
12346        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12347        #     investigate it a little bit more. (MM)
12348        wlarc='${wl}'
12349
12350        # ancient GNU ld didn't support --whole-archive et. al.
12351        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12352	  $GREP 'no-whole-archive' > /dev/null; then
12353          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12354        else
12355          whole_archive_flag_spec_CXX=
12356        fi
12357      else
12358        with_gnu_ld=no
12359        wlarc=
12360
12361        # A generic and very simple default shared library creation
12362        # command for GNU C++ for the case where it uses the native
12363        # linker, instead of GNU ld.  If possible, this setting should
12364        # overridden to take advantage of the native linker features on
12365        # the platform it is being used on.
12366        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12367      fi
12368
12369      # Commands to make compiler produce verbose output that lists
12370      # what "hidden" libraries, object files and flags are used when
12371      # linking a shared library.
12372      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12373
12374    else
12375      GXX=no
12376      with_gnu_ld=no
12377      wlarc=
12378    fi
12379
12380    # PORTME: fill in a description of your system's C++ link characteristics
12381    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12382$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12383    ld_shlibs_CXX=yes
12384    case $host_os in
12385      aix3*)
12386        # FIXME: insert proper C++ library support
12387        ld_shlibs_CXX=no
12388        ;;
12389      aix[4-9]*)
12390        if test "$host_cpu" = ia64; then
12391          # On IA64, the linker does run time linking by default, so we don't
12392          # have to do anything special.
12393          aix_use_runtimelinking=no
12394          exp_sym_flag='-Bexport'
12395          no_entry_flag=""
12396        else
12397          aix_use_runtimelinking=no
12398
12399          # Test if we are trying to use run time linking or normal
12400          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12401          # need to do runtime linking.
12402          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12403	    for ld_flag in $LDFLAGS; do
12404	      case $ld_flag in
12405	      *-brtl*)
12406	        aix_use_runtimelinking=yes
12407	        break
12408	        ;;
12409	      esac
12410	    done
12411	    ;;
12412          esac
12413
12414          exp_sym_flag='-bexport'
12415          no_entry_flag='-bnoentry'
12416        fi
12417
12418        # When large executables or shared objects are built, AIX ld can
12419        # have problems creating the table of contents.  If linking a library
12420        # or program results in "error TOC overflow" add -mminimal-toc to
12421        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12422        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12423
12424        archive_cmds_CXX=''
12425        hardcode_direct_CXX=yes
12426        hardcode_direct_absolute_CXX=yes
12427        hardcode_libdir_separator_CXX=':'
12428        link_all_deplibs_CXX=yes
12429        file_list_spec_CXX='${wl}-f,'
12430
12431        if test "$GXX" = yes; then
12432          case $host_os in aix4.[012]|aix4.[012].*)
12433          # We only want to do this on AIX 4.2 and lower, the check
12434          # below for broken collect2 doesn't work under 4.3+
12435	  collect2name=`${CC} -print-prog-name=collect2`
12436	  if test -f "$collect2name" &&
12437	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12438	  then
12439	    # We have reworked collect2
12440	    :
12441	  else
12442	    # We have old collect2
12443	    hardcode_direct_CXX=unsupported
12444	    # It fails to find uninstalled libraries when the uninstalled
12445	    # path is not listed in the libpath.  Setting hardcode_minus_L
12446	    # to unsupported forces relinking
12447	    hardcode_minus_L_CXX=yes
12448	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12449	    hardcode_libdir_separator_CXX=
12450	  fi
12451          esac
12452          shared_flag='-shared'
12453	  if test "$aix_use_runtimelinking" = yes; then
12454	    shared_flag="$shared_flag "'${wl}-G'
12455	  fi
12456        else
12457          # not using gcc
12458          if test "$host_cpu" = ia64; then
12459	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12460	  # chokes on -Wl,-G. The following line is correct:
12461	  shared_flag='-G'
12462          else
12463	    if test "$aix_use_runtimelinking" = yes; then
12464	      shared_flag='${wl}-G'
12465	    else
12466	      shared_flag='${wl}-bM:SRE'
12467	    fi
12468          fi
12469        fi
12470
12471        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12472        # It seems that -bexpall does not export symbols beginning with
12473        # underscore (_), so it is better to generate a list of symbols to
12474	# export.
12475        always_export_symbols_CXX=yes
12476        if test "$aix_use_runtimelinking" = yes; then
12477          # Warning - without using the other runtime loading flags (-brtl),
12478          # -berok will link without error, but may produce a broken library.
12479          allow_undefined_flag_CXX='-berok'
12480          # Determine the default libpath from the value encoded in an empty
12481          # executable.
12482          if test "${lt_cv_aix_libpath+set}" = set; then
12483  aix_libpath=$lt_cv_aix_libpath
12484else
12485  if ${lt_cv_aix_libpath__CXX+:} false; then :
12486  $as_echo_n "(cached) " >&6
12487else
12488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489/* end confdefs.h.  */
12490
12491int
12492main ()
12493{
12494
12495  ;
12496  return 0;
12497}
12498_ACEOF
12499if ac_fn_cxx_try_link "$LINENO"; then :
12500
12501  lt_aix_libpath_sed='
12502      /Import File Strings/,/^$/ {
12503	  /^0/ {
12504	      s/^0  *\([^ ]*\) *$/\1/
12505	      p
12506	  }
12507      }'
12508  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12509  # Check for a 64-bit object if we didn't find anything.
12510  if test -z "$lt_cv_aix_libpath__CXX"; then
12511    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12512  fi
12513fi
12514rm -f core conftest.err conftest.$ac_objext \
12515    conftest$ac_exeext conftest.$ac_ext
12516  if test -z "$lt_cv_aix_libpath__CXX"; then
12517    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12518  fi
12519
12520fi
12521
12522  aix_libpath=$lt_cv_aix_libpath__CXX
12523fi
12524
12525          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12526
12527          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12528        else
12529          if test "$host_cpu" = ia64; then
12530	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12531	    allow_undefined_flag_CXX="-z nodefs"
12532	    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"
12533          else
12534	    # Determine the default libpath from the value encoded in an
12535	    # empty executable.
12536	    if test "${lt_cv_aix_libpath+set}" = set; then
12537  aix_libpath=$lt_cv_aix_libpath
12538else
12539  if ${lt_cv_aix_libpath__CXX+:} false; then :
12540  $as_echo_n "(cached) " >&6
12541else
12542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543/* end confdefs.h.  */
12544
12545int
12546main ()
12547{
12548
12549  ;
12550  return 0;
12551}
12552_ACEOF
12553if ac_fn_cxx_try_link "$LINENO"; then :
12554
12555  lt_aix_libpath_sed='
12556      /Import File Strings/,/^$/ {
12557	  /^0/ {
12558	      s/^0  *\([^ ]*\) *$/\1/
12559	      p
12560	  }
12561      }'
12562  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12563  # Check for a 64-bit object if we didn't find anything.
12564  if test -z "$lt_cv_aix_libpath__CXX"; then
12565    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12566  fi
12567fi
12568rm -f core conftest.err conftest.$ac_objext \
12569    conftest$ac_exeext conftest.$ac_ext
12570  if test -z "$lt_cv_aix_libpath__CXX"; then
12571    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12572  fi
12573
12574fi
12575
12576  aix_libpath=$lt_cv_aix_libpath__CXX
12577fi
12578
12579	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12580	    # Warning - without using the other run time loading flags,
12581	    # -berok will link without error, but may produce a broken library.
12582	    no_undefined_flag_CXX=' ${wl}-bernotok'
12583	    allow_undefined_flag_CXX=' ${wl}-berok'
12584	    if test "$with_gnu_ld" = yes; then
12585	      # We only use this code for GNU lds that support --whole-archive.
12586	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12587	    else
12588	      # Exported symbols can be pulled into shared objects from archives
12589	      whole_archive_flag_spec_CXX='$convenience'
12590	    fi
12591	    archive_cmds_need_lc_CXX=yes
12592	    # This is similar to how AIX traditionally builds its shared
12593	    # libraries.
12594	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12595          fi
12596        fi
12597        ;;
12598
12599      beos*)
12600	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12601	  allow_undefined_flag_CXX=unsupported
12602	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12603	  # support --undefined.  This deserves some investigation.  FIXME
12604	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12605	else
12606	  ld_shlibs_CXX=no
12607	fi
12608	;;
12609
12610      chorus*)
12611        case $cc_basename in
12612          *)
12613	  # FIXME: insert proper C++ library support
12614	  ld_shlibs_CXX=no
12615	  ;;
12616        esac
12617        ;;
12618
12619      cygwin* | mingw* | pw32* | cegcc*)
12620	case $GXX,$cc_basename in
12621	,cl* | no,cl*)
12622	  # Native MSVC
12623	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12624	  # no search path for DLLs.
12625	  hardcode_libdir_flag_spec_CXX=' '
12626	  allow_undefined_flag_CXX=unsupported
12627	  always_export_symbols_CXX=yes
12628	  file_list_spec_CXX='@'
12629	  # Tell ltmain to make .lib files, not .a files.
12630	  libext=lib
12631	  # Tell ltmain to make .dll files, not .so files.
12632	  shrext_cmds=".dll"
12633	  # FIXME: Setting linknames here is a bad hack.
12634	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12635	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12636	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12637	    else
12638	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12639	    fi~
12640	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12641	    linknames='
12642	  # The linker will not automatically build a static lib if we build a DLL.
12643	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12644	  enable_shared_with_static_runtimes_CXX=yes
12645	  # Don't use ranlib
12646	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12647	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12648	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12649	    case $lt_outputfile in
12650	      *.exe|*.EXE) ;;
12651	      *)
12652		lt_outputfile="$lt_outputfile.exe"
12653		lt_tool_outputfile="$lt_tool_outputfile.exe"
12654		;;
12655	    esac~
12656	    func_to_tool_file "$lt_outputfile"~
12657	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12658	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12659	      $RM "$lt_outputfile.manifest";
12660	    fi'
12661	  ;;
12662	*)
12663	  # g++
12664	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12665	  # as there is no search path for DLLs.
12666	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12667	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12668	  allow_undefined_flag_CXX=unsupported
12669	  always_export_symbols_CXX=no
12670	  enable_shared_with_static_runtimes_CXX=yes
12671
12672	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12673	    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'
12674	    # If the export-symbols file already is a .def file (1st line
12675	    # is EXPORTS), use it as is; otherwise, prepend...
12676	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12677	      cp $export_symbols $output_objdir/$soname.def;
12678	    else
12679	      echo EXPORTS > $output_objdir/$soname.def;
12680	      cat $export_symbols >> $output_objdir/$soname.def;
12681	    fi~
12682	    $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'
12683	  else
12684	    ld_shlibs_CXX=no
12685	  fi
12686	  ;;
12687	esac
12688	;;
12689      darwin* | rhapsody*)
12690
12691
12692  archive_cmds_need_lc_CXX=no
12693  hardcode_direct_CXX=no
12694  hardcode_automatic_CXX=yes
12695  hardcode_shlibpath_var_CXX=unsupported
12696  if test "$lt_cv_ld_force_load" = "yes"; then
12697    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\"`'
12698
12699  else
12700    whole_archive_flag_spec_CXX=''
12701  fi
12702  link_all_deplibs_CXX=yes
12703  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12704  case $cc_basename in
12705     ifort*) _lt_dar_can_shared=yes ;;
12706     *) _lt_dar_can_shared=$GCC ;;
12707  esac
12708  if test "$_lt_dar_can_shared" = "yes"; then
12709    output_verbose_link_cmd=func_echo_all
12710    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}"
12711    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12712    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}"
12713    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}"
12714       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12715      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}"
12716      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}"
12717    fi
12718
12719  else
12720  ld_shlibs_CXX=no
12721  fi
12722
12723	;;
12724
12725      dgux*)
12726        case $cc_basename in
12727          ec++*)
12728	    # FIXME: insert proper C++ library support
12729	    ld_shlibs_CXX=no
12730	    ;;
12731          ghcx*)
12732	    # Green Hills C++ Compiler
12733	    # FIXME: insert proper C++ library support
12734	    ld_shlibs_CXX=no
12735	    ;;
12736          *)
12737	    # FIXME: insert proper C++ library support
12738	    ld_shlibs_CXX=no
12739	    ;;
12740        esac
12741        ;;
12742
12743      freebsd2.*)
12744        # C++ shared libraries reported to be fairly broken before
12745	# switch to ELF
12746        ld_shlibs_CXX=no
12747        ;;
12748
12749      freebsd-elf*)
12750        archive_cmds_need_lc_CXX=no
12751        ;;
12752
12753      freebsd* | dragonfly*)
12754        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12755        # conventions
12756        ld_shlibs_CXX=yes
12757        ;;
12758
12759      gnu*)
12760        ;;
12761
12762      haiku*)
12763        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12764        link_all_deplibs_CXX=yes
12765        ;;
12766
12767      hpux9*)
12768        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12769        hardcode_libdir_separator_CXX=:
12770        export_dynamic_flag_spec_CXX='${wl}-E'
12771        hardcode_direct_CXX=yes
12772        hardcode_minus_L_CXX=yes # Not in the search PATH,
12773				             # but as the default
12774				             # location of the library.
12775
12776        case $cc_basename in
12777          CC*)
12778            # FIXME: insert proper C++ library support
12779            ld_shlibs_CXX=no
12780            ;;
12781          aCC*)
12782            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12783            # Commands to make compiler produce verbose output that lists
12784            # what "hidden" libraries, object files and flags are used when
12785            # linking a shared library.
12786            #
12787            # There doesn't appear to be a way to prevent this compiler from
12788            # explicitly linking system object files so we need to strip them
12789            # from the output so that they don't get included in the library
12790            # dependencies.
12791            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"'
12792            ;;
12793          *)
12794            if test "$GXX" = yes; then
12795              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12796            else
12797              # FIXME: insert proper C++ library support
12798              ld_shlibs_CXX=no
12799            fi
12800            ;;
12801        esac
12802        ;;
12803
12804      hpux10*|hpux11*)
12805        if test $with_gnu_ld = no; then
12806	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12807	  hardcode_libdir_separator_CXX=:
12808
12809          case $host_cpu in
12810            hppa*64*|ia64*)
12811              ;;
12812            *)
12813	      export_dynamic_flag_spec_CXX='${wl}-E'
12814              ;;
12815          esac
12816        fi
12817        case $host_cpu in
12818          hppa*64*|ia64*)
12819            hardcode_direct_CXX=no
12820            hardcode_shlibpath_var_CXX=no
12821            ;;
12822          *)
12823            hardcode_direct_CXX=yes
12824            hardcode_direct_absolute_CXX=yes
12825            hardcode_minus_L_CXX=yes # Not in the search PATH,
12826					         # but as the default
12827					         # location of the library.
12828            ;;
12829        esac
12830
12831        case $cc_basename in
12832          CC*)
12833	    # FIXME: insert proper C++ library support
12834	    ld_shlibs_CXX=no
12835	    ;;
12836          aCC*)
12837	    case $host_cpu in
12838	      hppa*64*)
12839	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12840	        ;;
12841	      ia64*)
12842	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12843	        ;;
12844	      *)
12845	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846	        ;;
12847	    esac
12848	    # Commands to make compiler produce verbose output that lists
12849	    # what "hidden" libraries, object files and flags are used when
12850	    # linking a shared library.
12851	    #
12852	    # There doesn't appear to be a way to prevent this compiler from
12853	    # explicitly linking system object files so we need to strip them
12854	    # from the output so that they don't get included in the library
12855	    # dependencies.
12856	    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"'
12857	    ;;
12858          *)
12859	    if test "$GXX" = yes; then
12860	      if test $with_gnu_ld = no; then
12861	        case $host_cpu in
12862	          hppa*64*)
12863	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12864	            ;;
12865	          ia64*)
12866	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12867	            ;;
12868	          *)
12869	            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'
12870	            ;;
12871	        esac
12872	      fi
12873	    else
12874	      # FIXME: insert proper C++ library support
12875	      ld_shlibs_CXX=no
12876	    fi
12877	    ;;
12878        esac
12879        ;;
12880
12881      interix[3-9]*)
12882	hardcode_direct_CXX=no
12883	hardcode_shlibpath_var_CXX=no
12884	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12885	export_dynamic_flag_spec_CXX='${wl}-E'
12886	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12887	# Instead, shared libraries are loaded at an image base (0x10000000 by
12888	# default) and relocated if they conflict, which is a slow very memory
12889	# consuming and fragmenting process.  To avoid this, we pick a random,
12890	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12891	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12892	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'
12893	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'
12894	;;
12895      irix5* | irix6*)
12896        case $cc_basename in
12897          CC*)
12898	    # SGI C++
12899	    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'
12900
12901	    # Archives containing C++ object files must be created using
12902	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12903	    # necessary to make sure instantiated templates are included
12904	    # in the archive.
12905	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12906	    ;;
12907          *)
12908	    if test "$GXX" = yes; then
12909	      if test "$with_gnu_ld" = no; then
12910	        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'
12911	      else
12912	        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'
12913	      fi
12914	    fi
12915	    link_all_deplibs_CXX=yes
12916	    ;;
12917        esac
12918        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12919        hardcode_libdir_separator_CXX=:
12920        inherit_rpath_CXX=yes
12921        ;;
12922
12923      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12924        case $cc_basename in
12925          KCC*)
12926	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12927
12928	    # KCC will only create a shared library if the output file
12929	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12930	    # to its proper name (with version) after linking.
12931	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12932	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12933	    # Commands to make compiler produce verbose output that lists
12934	    # what "hidden" libraries, object files and flags are used when
12935	    # linking a shared library.
12936	    #
12937	    # There doesn't appear to be a way to prevent this compiler from
12938	    # explicitly linking system object files so we need to strip them
12939	    # from the output so that they don't get included in the library
12940	    # dependencies.
12941	    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"'
12942
12943	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12944	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12945
12946	    # Archives containing C++ object files must be created using
12947	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12948	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12949	    ;;
12950	  icpc* | ecpc* )
12951	    # Intel C++
12952	    with_gnu_ld=yes
12953	    # version 8.0 and above of icpc choke on multiply defined symbols
12954	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12955	    # earlier do not add the objects themselves.
12956	    case `$CC -V 2>&1` in
12957	      *"Version 7."*)
12958	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12959		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'
12960		;;
12961	      *)  # Version 8.0 or newer
12962	        tmp_idyn=
12963	        case $host_cpu in
12964		  ia64*) tmp_idyn=' -i_dynamic';;
12965		esac
12966	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967		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'
12968		;;
12969	    esac
12970	    archive_cmds_need_lc_CXX=no
12971	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12972	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12973	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12974	    ;;
12975          pgCC* | pgcpp*)
12976            # Portland Group C++ compiler
12977	    case `$CC -V` in
12978	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12979	      prelink_cmds_CXX='tpldir=Template.dir~
12980		rm -rf $tpldir~
12981		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12982		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12983	      old_archive_cmds_CXX='tpldir=Template.dir~
12984		rm -rf $tpldir~
12985		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12986		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12987		$RANLIB $oldlib'
12988	      archive_cmds_CXX='tpldir=Template.dir~
12989		rm -rf $tpldir~
12990		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12991		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12992	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12993		rm -rf $tpldir~
12994		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12995		$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'
12996	      ;;
12997	    *) # Version 6 and above use weak symbols
12998	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12999	      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'
13000	      ;;
13001	    esac
13002
13003	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13004	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13005	    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'
13006            ;;
13007	  cxx*)
13008	    # Compaq C++
13009	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010	    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'
13011
13012	    runpath_var=LD_RUN_PATH
13013	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13014	    hardcode_libdir_separator_CXX=:
13015
13016	    # Commands to make compiler produce verbose output that lists
13017	    # what "hidden" libraries, object files and flags are used when
13018	    # linking a shared library.
13019	    #
13020	    # There doesn't appear to be a way to prevent this compiler from
13021	    # explicitly linking system object files so we need to strip them
13022	    # from the output so that they don't get included in the library
13023	    # dependencies.
13024	    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'
13025	    ;;
13026	  xl* | mpixl* | bgxl*)
13027	    # IBM XL 8.0 on PPC, with GNU ld
13028	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13029	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13030	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13031	    if test "x$supports_anon_versioning" = xyes; then
13032	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13033		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13034		echo "local: *; };" >> $output_objdir/$libname.ver~
13035		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13036	    fi
13037	    ;;
13038	  *)
13039	    case `$CC -V 2>&1 | sed 5q` in
13040	    *Sun\ C*)
13041	      # Sun C++ 5.9
13042	      no_undefined_flag_CXX=' -zdefs'
13043	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13044	      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'
13045	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13046	      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'
13047	      compiler_needs_object_CXX=yes
13048
13049	      # Not sure whether something based on
13050	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13051	      # would be better.
13052	      output_verbose_link_cmd='func_echo_all'
13053
13054	      # Archives containing C++ object files must be created using
13055	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13056	      # necessary to make sure instantiated templates are included
13057	      # in the archive.
13058	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13059	      ;;
13060	    esac
13061	    ;;
13062	esac
13063	;;
13064
13065      lynxos*)
13066        # FIXME: insert proper C++ library support
13067	ld_shlibs_CXX=no
13068	;;
13069
13070      m88k*)
13071        # FIXME: insert proper C++ library support
13072        ld_shlibs_CXX=no
13073	;;
13074
13075      mvs*)
13076        case $cc_basename in
13077          cxx*)
13078	    # FIXME: insert proper C++ library support
13079	    ld_shlibs_CXX=no
13080	    ;;
13081	  *)
13082	    # FIXME: insert proper C++ library support
13083	    ld_shlibs_CXX=no
13084	    ;;
13085	esac
13086	;;
13087
13088      netbsd*)
13089        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13090	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13091	  wlarc=
13092	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13093	  hardcode_direct_CXX=yes
13094	  hardcode_shlibpath_var_CXX=no
13095	fi
13096	# Workaround some broken pre-1.5 toolchains
13097	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13098	;;
13099
13100      *nto* | *qnx*)
13101        ld_shlibs_CXX=yes
13102	;;
13103
13104      openbsd2*)
13105        # C++ shared libraries are fairly broken
13106	ld_shlibs_CXX=no
13107	;;
13108
13109      openbsd*)
13110	if test -f /usr/libexec/ld.so; then
13111	  hardcode_direct_CXX=yes
13112	  hardcode_shlibpath_var_CXX=no
13113	  hardcode_direct_absolute_CXX=yes
13114	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13115	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13116	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13117	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13118	    export_dynamic_flag_spec_CXX='${wl}-E'
13119	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13120	  fi
13121	  output_verbose_link_cmd=func_echo_all
13122	else
13123	  ld_shlibs_CXX=no
13124	fi
13125	;;
13126
13127      osf3* | osf4* | osf5*)
13128        case $cc_basename in
13129          KCC*)
13130	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13131
13132	    # KCC will only create a shared library if the output file
13133	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13134	    # to its proper name (with version) after linking.
13135	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13136
13137	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13138	    hardcode_libdir_separator_CXX=:
13139
13140	    # Archives containing C++ object files must be created using
13141	    # the KAI C++ compiler.
13142	    case $host in
13143	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13144	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13145	    esac
13146	    ;;
13147          RCC*)
13148	    # Rational C++ 2.4.1
13149	    # FIXME: insert proper C++ library support
13150	    ld_shlibs_CXX=no
13151	    ;;
13152          cxx*)
13153	    case $host in
13154	      osf3*)
13155	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13156	        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'
13157	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13158		;;
13159	      *)
13160	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13161	        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'
13162	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13163	          echo "-hidden">> $lib.exp~
13164	          $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~
13165	          $RM $lib.exp'
13166	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13167		;;
13168	    esac
13169
13170	    hardcode_libdir_separator_CXX=:
13171
13172	    # Commands to make compiler produce verbose output that lists
13173	    # what "hidden" libraries, object files and flags are used when
13174	    # linking a shared library.
13175	    #
13176	    # There doesn't appear to be a way to prevent this compiler from
13177	    # explicitly linking system object files so we need to strip them
13178	    # from the output so that they don't get included in the library
13179	    # dependencies.
13180	    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"'
13181	    ;;
13182	  *)
13183	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13184	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13185	      case $host in
13186	        osf3*)
13187	          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'
13188		  ;;
13189	        *)
13190	          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'
13191		  ;;
13192	      esac
13193
13194	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13195	      hardcode_libdir_separator_CXX=:
13196
13197	      # Commands to make compiler produce verbose output that lists
13198	      # what "hidden" libraries, object files and flags are used when
13199	      # linking a shared library.
13200	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13201
13202	    else
13203	      # FIXME: insert proper C++ library support
13204	      ld_shlibs_CXX=no
13205	    fi
13206	    ;;
13207        esac
13208        ;;
13209
13210      psos*)
13211        # FIXME: insert proper C++ library support
13212        ld_shlibs_CXX=no
13213        ;;
13214
13215      sunos4*)
13216        case $cc_basename in
13217          CC*)
13218	    # Sun C++ 4.x
13219	    # FIXME: insert proper C++ library support
13220	    ld_shlibs_CXX=no
13221	    ;;
13222          lcc*)
13223	    # Lucid
13224	    # FIXME: insert proper C++ library support
13225	    ld_shlibs_CXX=no
13226	    ;;
13227          *)
13228	    # FIXME: insert proper C++ library support
13229	    ld_shlibs_CXX=no
13230	    ;;
13231        esac
13232        ;;
13233
13234      solaris*)
13235        case $cc_basename in
13236          CC* | sunCC*)
13237	    # Sun C++ 4.2, 5.x and Centerline C++
13238            archive_cmds_need_lc_CXX=yes
13239	    no_undefined_flag_CXX=' -zdefs'
13240	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13241	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13242	      $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'
13243
13244	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13245	    hardcode_shlibpath_var_CXX=no
13246	    case $host_os in
13247	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13248	      *)
13249		# The compiler driver will combine and reorder linker options,
13250		# but understands `-z linker_flag'.
13251	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13252		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13253	        ;;
13254	    esac
13255	    link_all_deplibs_CXX=yes
13256
13257	    output_verbose_link_cmd='func_echo_all'
13258
13259	    # Archives containing C++ object files must be created using
13260	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13261	    # necessary to make sure instantiated templates are included
13262	    # in the archive.
13263	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13264	    ;;
13265          gcx*)
13266	    # Green Hills C++ Compiler
13267	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13268
13269	    # The C++ compiler must be used to create the archive.
13270	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13271	    ;;
13272          *)
13273	    # GNU C++ compiler with Solaris linker
13274	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13275	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13276	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13277	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13278	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13279		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13280
13281	        # Commands to make compiler produce verbose output that lists
13282	        # what "hidden" libraries, object files and flags are used when
13283	        # linking a shared library.
13284	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13285	      else
13286	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13287	        # platform.
13288	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13289	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13290		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13291
13292	        # Commands to make compiler produce verbose output that lists
13293	        # what "hidden" libraries, object files and flags are used when
13294	        # linking a shared library.
13295	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13296	      fi
13297
13298	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13299	      case $host_os in
13300		solaris2.[0-5] | solaris2.[0-5].*) ;;
13301		*)
13302		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13303		  ;;
13304	      esac
13305	    fi
13306	    ;;
13307        esac
13308        ;;
13309
13310    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13311      no_undefined_flag_CXX='${wl}-z,text'
13312      archive_cmds_need_lc_CXX=no
13313      hardcode_shlibpath_var_CXX=no
13314      runpath_var='LD_RUN_PATH'
13315
13316      case $cc_basename in
13317        CC*)
13318	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13319	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13320	  ;;
13321	*)
13322	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324	  ;;
13325      esac
13326      ;;
13327
13328      sysv5* | sco3.2v5* | sco5v6*)
13329	# Note: We can NOT use -z defs as we might desire, because we do not
13330	# link with -lc, and that would cause any symbols used from libc to
13331	# always be unresolved, which means just about no library would
13332	# ever link correctly.  If we're not using GNU ld we use -z text
13333	# though, which does catch some bad symbols but isn't as heavy-handed
13334	# as -z defs.
13335	no_undefined_flag_CXX='${wl}-z,text'
13336	allow_undefined_flag_CXX='${wl}-z,nodefs'
13337	archive_cmds_need_lc_CXX=no
13338	hardcode_shlibpath_var_CXX=no
13339	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13340	hardcode_libdir_separator_CXX=':'
13341	link_all_deplibs_CXX=yes
13342	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13343	runpath_var='LD_RUN_PATH'
13344
13345	case $cc_basename in
13346          CC*)
13347	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13348	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13349	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13350	      '"$old_archive_cmds_CXX"
13351	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13352	      '"$reload_cmds_CXX"
13353	    ;;
13354	  *)
13355	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357	    ;;
13358	esac
13359      ;;
13360
13361      tandem*)
13362        case $cc_basename in
13363          NCC*)
13364	    # NonStop-UX NCC 3.20
13365	    # FIXME: insert proper C++ library support
13366	    ld_shlibs_CXX=no
13367	    ;;
13368          *)
13369	    # FIXME: insert proper C++ library support
13370	    ld_shlibs_CXX=no
13371	    ;;
13372        esac
13373        ;;
13374
13375      vxworks*)
13376        # FIXME: insert proper C++ library support
13377        ld_shlibs_CXX=no
13378        ;;
13379
13380      *)
13381        # FIXME: insert proper C++ library support
13382        ld_shlibs_CXX=no
13383        ;;
13384    esac
13385
13386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13387$as_echo "$ld_shlibs_CXX" >&6; }
13388    test "$ld_shlibs_CXX" = no && can_build_shared=no
13389
13390    GCC_CXX="$GXX"
13391    LD_CXX="$LD"
13392
13393    ## CAVEAT EMPTOR:
13394    ## There is no encapsulation within the following macros, do not change
13395    ## the running order or otherwise move them around unless you know exactly
13396    ## what you are doing...
13397    # Dependencies to place before and after the object being linked:
13398predep_objects_CXX=
13399postdep_objects_CXX=
13400predeps_CXX=
13401postdeps_CXX=
13402compiler_lib_search_path_CXX=
13403
13404cat > conftest.$ac_ext <<_LT_EOF
13405class Foo
13406{
13407public:
13408  Foo (void) { a = 0; }
13409private:
13410  int a;
13411};
13412_LT_EOF
13413
13414
13415_lt_libdeps_save_CFLAGS=$CFLAGS
13416case "$CC $CFLAGS " in #(
13417*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13418*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13419*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13420esac
13421
13422if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13423  (eval $ac_compile) 2>&5
13424  ac_status=$?
13425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426  test $ac_status = 0; }; then
13427  # Parse the compiler output and extract the necessary
13428  # objects, libraries and library flags.
13429
13430  # Sentinel used to keep track of whether or not we are before
13431  # the conftest object file.
13432  pre_test_object_deps_done=no
13433
13434  for p in `eval "$output_verbose_link_cmd"`; do
13435    case ${prev}${p} in
13436
13437    -L* | -R* | -l*)
13438       # Some compilers place space between "-{L,R}" and the path.
13439       # Remove the space.
13440       if test $p = "-L" ||
13441          test $p = "-R"; then
13442	 prev=$p
13443	 continue
13444       fi
13445
13446       # Expand the sysroot to ease extracting the directories later.
13447       if test -z "$prev"; then
13448         case $p in
13449         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13450         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13451         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13452         esac
13453       fi
13454       case $p in
13455       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13456       esac
13457       if test "$pre_test_object_deps_done" = no; then
13458	 case ${prev} in
13459	 -L | -R)
13460	   # Internal compiler library paths should come after those
13461	   # provided the user.  The postdeps already come after the
13462	   # user supplied libs so there is no need to process them.
13463	   if test -z "$compiler_lib_search_path_CXX"; then
13464	     compiler_lib_search_path_CXX="${prev}${p}"
13465	   else
13466	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13467	   fi
13468	   ;;
13469	 # The "-l" case would never come before the object being
13470	 # linked, so don't bother handling this case.
13471	 esac
13472       else
13473	 if test -z "$postdeps_CXX"; then
13474	   postdeps_CXX="${prev}${p}"
13475	 else
13476	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13477	 fi
13478       fi
13479       prev=
13480       ;;
13481
13482    *.lto.$objext) ;; # Ignore GCC LTO objects
13483    *.$objext)
13484       # This assumes that the test object file only shows up
13485       # once in the compiler output.
13486       if test "$p" = "conftest.$objext"; then
13487	 pre_test_object_deps_done=yes
13488	 continue
13489       fi
13490
13491       if test "$pre_test_object_deps_done" = no; then
13492	 if test -z "$predep_objects_CXX"; then
13493	   predep_objects_CXX="$p"
13494	 else
13495	   predep_objects_CXX="$predep_objects_CXX $p"
13496	 fi
13497       else
13498	 if test -z "$postdep_objects_CXX"; then
13499	   postdep_objects_CXX="$p"
13500	 else
13501	   postdep_objects_CXX="$postdep_objects_CXX $p"
13502	 fi
13503       fi
13504       ;;
13505
13506    *) ;; # Ignore the rest.
13507
13508    esac
13509  done
13510
13511  # Clean up.
13512  rm -f a.out a.exe
13513else
13514  echo "libtool.m4: error: problem compiling CXX test program"
13515fi
13516
13517$RM -f confest.$objext
13518CFLAGS=$_lt_libdeps_save_CFLAGS
13519
13520# PORTME: override above test on systems where it is broken
13521case $host_os in
13522interix[3-9]*)
13523  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13524  # hack all around it, let's just trust "g++" to DTRT.
13525  predep_objects_CXX=
13526  postdep_objects_CXX=
13527  postdeps_CXX=
13528  ;;
13529
13530linux*)
13531  case `$CC -V 2>&1 | sed 5q` in
13532  *Sun\ C*)
13533    # Sun C++ 5.9
13534
13535    # The more standards-conforming stlport4 library is
13536    # incompatible with the Cstd library. Avoid specifying
13537    # it if it's in CXXFLAGS. Ignore libCrun as
13538    # -library=stlport4 depends on it.
13539    case " $CXX $CXXFLAGS " in
13540    *" -library=stlport4 "*)
13541      solaris_use_stlport4=yes
13542      ;;
13543    esac
13544
13545    if test "$solaris_use_stlport4" != yes; then
13546      postdeps_CXX='-library=Cstd -library=Crun'
13547    fi
13548    ;;
13549  esac
13550  ;;
13551
13552solaris*)
13553  case $cc_basename in
13554  CC* | sunCC*)
13555    # The more standards-conforming stlport4 library is
13556    # incompatible with the Cstd library. Avoid specifying
13557    # it if it's in CXXFLAGS. Ignore libCrun as
13558    # -library=stlport4 depends on it.
13559    case " $CXX $CXXFLAGS " in
13560    *" -library=stlport4 "*)
13561      solaris_use_stlport4=yes
13562      ;;
13563    esac
13564
13565    # Adding this requires a known-good setup of shared libraries for
13566    # Sun compiler versions before 5.6, else PIC objects from an old
13567    # archive will be linked into the output, leading to subtle bugs.
13568    if test "$solaris_use_stlport4" != yes; then
13569      postdeps_CXX='-library=Cstd -library=Crun'
13570    fi
13571    ;;
13572  esac
13573  ;;
13574esac
13575
13576
13577case " $postdeps_CXX " in
13578*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13579esac
13580 compiler_lib_search_dirs_CXX=
13581if test -n "${compiler_lib_search_path_CXX}"; then
13582 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13583fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615    lt_prog_compiler_wl_CXX=
13616lt_prog_compiler_pic_CXX=
13617lt_prog_compiler_static_CXX=
13618
13619
13620  # C++ specific cases for pic, static, wl, etc.
13621  if test "$GXX" = yes; then
13622    lt_prog_compiler_wl_CXX='-Wl,'
13623    lt_prog_compiler_static_CXX='-static'
13624
13625    case $host_os in
13626    aix*)
13627      # All AIX code is PIC.
13628      if test "$host_cpu" = ia64; then
13629	# AIX 5 now supports IA64 processor
13630	lt_prog_compiler_static_CXX='-Bstatic'
13631      fi
13632      ;;
13633
13634    amigaos*)
13635      case $host_cpu in
13636      powerpc)
13637            # see comment about AmigaOS4 .so support
13638            lt_prog_compiler_pic_CXX='-fPIC'
13639        ;;
13640      m68k)
13641            # FIXME: we need at least 68020 code to build shared libraries, but
13642            # adding the `-m68020' flag to GCC prevents building anything better,
13643            # like `-m68040'.
13644            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13645        ;;
13646      esac
13647      ;;
13648
13649    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13650      # PIC is the default for these OSes.
13651      ;;
13652    mingw* | cygwin* | os2* | pw32* | cegcc*)
13653      # This hack is so that the source file can tell whether it is being
13654      # built for inclusion in a dll (and should export symbols for example).
13655      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13656      # (--disable-auto-import) libraries
13657      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13658      ;;
13659    darwin* | rhapsody*)
13660      # PIC is the default on this platform
13661      # Common symbols not allowed in MH_DYLIB files
13662      lt_prog_compiler_pic_CXX='-fno-common'
13663      ;;
13664    *djgpp*)
13665      # DJGPP does not support shared libraries at all
13666      lt_prog_compiler_pic_CXX=
13667      ;;
13668    haiku*)
13669      # PIC is the default for Haiku.
13670      # The "-static" flag exists, but is broken.
13671      lt_prog_compiler_static_CXX=
13672      ;;
13673    interix[3-9]*)
13674      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13675      # Instead, we relocate shared libraries at runtime.
13676      ;;
13677    sysv4*MP*)
13678      if test -d /usr/nec; then
13679	lt_prog_compiler_pic_CXX=-Kconform_pic
13680      fi
13681      ;;
13682    hpux*)
13683      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13684      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13685      # sets the default TLS model and affects inlining.
13686      case $host_cpu in
13687      hppa*64*)
13688	;;
13689      *)
13690	lt_prog_compiler_pic_CXX='-fPIC'
13691	;;
13692      esac
13693      ;;
13694    *qnx* | *nto*)
13695      # QNX uses GNU C++, but need to define -shared option too, otherwise
13696      # it will coredump.
13697      lt_prog_compiler_pic_CXX='-fPIC -shared'
13698      ;;
13699    *)
13700      lt_prog_compiler_pic_CXX='-fPIC'
13701      ;;
13702    esac
13703  else
13704    case $host_os in
13705      aix[4-9]*)
13706	# All AIX code is PIC.
13707	if test "$host_cpu" = ia64; then
13708	  # AIX 5 now supports IA64 processor
13709	  lt_prog_compiler_static_CXX='-Bstatic'
13710	else
13711	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13712	fi
13713	;;
13714      chorus*)
13715	case $cc_basename in
13716	cxch68*)
13717	  # Green Hills C++ Compiler
13718	  # _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"
13719	  ;;
13720	esac
13721	;;
13722      mingw* | cygwin* | os2* | pw32* | cegcc*)
13723	# This hack is so that the source file can tell whether it is being
13724	# built for inclusion in a dll (and should export symbols for example).
13725	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13726	;;
13727      dgux*)
13728	case $cc_basename in
13729	  ec++*)
13730	    lt_prog_compiler_pic_CXX='-KPIC'
13731	    ;;
13732	  ghcx*)
13733	    # Green Hills C++ Compiler
13734	    lt_prog_compiler_pic_CXX='-pic'
13735	    ;;
13736	  *)
13737	    ;;
13738	esac
13739	;;
13740      freebsd* | dragonfly*)
13741	# FreeBSD uses GNU C++
13742	;;
13743      hpux9* | hpux10* | hpux11*)
13744	case $cc_basename in
13745	  CC*)
13746	    lt_prog_compiler_wl_CXX='-Wl,'
13747	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13748	    if test "$host_cpu" != ia64; then
13749	      lt_prog_compiler_pic_CXX='+Z'
13750	    fi
13751	    ;;
13752	  aCC*)
13753	    lt_prog_compiler_wl_CXX='-Wl,'
13754	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13755	    case $host_cpu in
13756	    hppa*64*|ia64*)
13757	      # +Z the default
13758	      ;;
13759	    *)
13760	      lt_prog_compiler_pic_CXX='+Z'
13761	      ;;
13762	    esac
13763	    ;;
13764	  *)
13765	    ;;
13766	esac
13767	;;
13768      interix*)
13769	# This is c89, which is MS Visual C++ (no shared libs)
13770	# Anyone wants to do a port?
13771	;;
13772      irix5* | irix6* | nonstopux*)
13773	case $cc_basename in
13774	  CC*)
13775	    lt_prog_compiler_wl_CXX='-Wl,'
13776	    lt_prog_compiler_static_CXX='-non_shared'
13777	    # CC pic flag -KPIC is the default.
13778	    ;;
13779	  *)
13780	    ;;
13781	esac
13782	;;
13783      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13784	case $cc_basename in
13785	  KCC*)
13786	    # KAI C++ Compiler
13787	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13788	    lt_prog_compiler_pic_CXX='-fPIC'
13789	    ;;
13790	  ecpc* )
13791	    # old Intel C++ for x86_64 which still supported -KPIC.
13792	    lt_prog_compiler_wl_CXX='-Wl,'
13793	    lt_prog_compiler_pic_CXX='-KPIC'
13794	    lt_prog_compiler_static_CXX='-static'
13795	    ;;
13796	  icpc* )
13797	    # Intel C++, used to be incompatible with GCC.
13798	    # ICC 10 doesn't accept -KPIC any more.
13799	    lt_prog_compiler_wl_CXX='-Wl,'
13800	    lt_prog_compiler_pic_CXX='-fPIC'
13801	    lt_prog_compiler_static_CXX='-static'
13802	    ;;
13803	  pgCC* | pgcpp*)
13804	    # Portland Group C++ compiler
13805	    lt_prog_compiler_wl_CXX='-Wl,'
13806	    lt_prog_compiler_pic_CXX='-fpic'
13807	    lt_prog_compiler_static_CXX='-Bstatic'
13808	    ;;
13809	  cxx*)
13810	    # Compaq C++
13811	    # Make sure the PIC flag is empty.  It appears that all Alpha
13812	    # Linux and Compaq Tru64 Unix objects are PIC.
13813	    lt_prog_compiler_pic_CXX=
13814	    lt_prog_compiler_static_CXX='-non_shared'
13815	    ;;
13816	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13817	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13818	    lt_prog_compiler_wl_CXX='-Wl,'
13819	    lt_prog_compiler_pic_CXX='-qpic'
13820	    lt_prog_compiler_static_CXX='-qstaticlink'
13821	    ;;
13822	  *)
13823	    case `$CC -V 2>&1 | sed 5q` in
13824	    *Sun\ C*)
13825	      # Sun C++ 5.9
13826	      lt_prog_compiler_pic_CXX='-KPIC'
13827	      lt_prog_compiler_static_CXX='-Bstatic'
13828	      lt_prog_compiler_wl_CXX='-Qoption ld '
13829	      ;;
13830	    esac
13831	    ;;
13832	esac
13833	;;
13834      lynxos*)
13835	;;
13836      m88k*)
13837	;;
13838      mvs*)
13839	case $cc_basename in
13840	  cxx*)
13841	    lt_prog_compiler_pic_CXX='-W c,exportall'
13842	    ;;
13843	  *)
13844	    ;;
13845	esac
13846	;;
13847      netbsd*)
13848	;;
13849      *qnx* | *nto*)
13850        # QNX uses GNU C++, but need to define -shared option too, otherwise
13851        # it will coredump.
13852        lt_prog_compiler_pic_CXX='-fPIC -shared'
13853        ;;
13854      osf3* | osf4* | osf5*)
13855	case $cc_basename in
13856	  KCC*)
13857	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13858	    ;;
13859	  RCC*)
13860	    # Rational C++ 2.4.1
13861	    lt_prog_compiler_pic_CXX='-pic'
13862	    ;;
13863	  cxx*)
13864	    # Digital/Compaq C++
13865	    lt_prog_compiler_wl_CXX='-Wl,'
13866	    # Make sure the PIC flag is empty.  It appears that all Alpha
13867	    # Linux and Compaq Tru64 Unix objects are PIC.
13868	    lt_prog_compiler_pic_CXX=
13869	    lt_prog_compiler_static_CXX='-non_shared'
13870	    ;;
13871	  *)
13872	    ;;
13873	esac
13874	;;
13875      psos*)
13876	;;
13877      solaris*)
13878	case $cc_basename in
13879	  CC* | sunCC*)
13880	    # Sun C++ 4.2, 5.x and Centerline C++
13881	    lt_prog_compiler_pic_CXX='-KPIC'
13882	    lt_prog_compiler_static_CXX='-Bstatic'
13883	    lt_prog_compiler_wl_CXX='-Qoption ld '
13884	    ;;
13885	  gcx*)
13886	    # Green Hills C++ Compiler
13887	    lt_prog_compiler_pic_CXX='-PIC'
13888	    ;;
13889	  *)
13890	    ;;
13891	esac
13892	;;
13893      sunos4*)
13894	case $cc_basename in
13895	  CC*)
13896	    # Sun C++ 4.x
13897	    lt_prog_compiler_pic_CXX='-pic'
13898	    lt_prog_compiler_static_CXX='-Bstatic'
13899	    ;;
13900	  lcc*)
13901	    # Lucid
13902	    lt_prog_compiler_pic_CXX='-pic'
13903	    ;;
13904	  *)
13905	    ;;
13906	esac
13907	;;
13908      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13909	case $cc_basename in
13910	  CC*)
13911	    lt_prog_compiler_wl_CXX='-Wl,'
13912	    lt_prog_compiler_pic_CXX='-KPIC'
13913	    lt_prog_compiler_static_CXX='-Bstatic'
13914	    ;;
13915	esac
13916	;;
13917      tandem*)
13918	case $cc_basename in
13919	  NCC*)
13920	    # NonStop-UX NCC 3.20
13921	    lt_prog_compiler_pic_CXX='-KPIC'
13922	    ;;
13923	  *)
13924	    ;;
13925	esac
13926	;;
13927      vxworks*)
13928	;;
13929      *)
13930	lt_prog_compiler_can_build_shared_CXX=no
13931	;;
13932    esac
13933  fi
13934
13935case $host_os in
13936  # For platforms which do not support PIC, -DPIC is meaningless:
13937  *djgpp*)
13938    lt_prog_compiler_pic_CXX=
13939    ;;
13940  *)
13941    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13942    ;;
13943esac
13944
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13946$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13947if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13948  $as_echo_n "(cached) " >&6
13949else
13950  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13951fi
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13953$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13954lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13955
13956#
13957# Check to make sure the PIC flag actually works.
13958#
13959if test -n "$lt_prog_compiler_pic_CXX"; then
13960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13961$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13962if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13963  $as_echo_n "(cached) " >&6
13964else
13965  lt_cv_prog_compiler_pic_works_CXX=no
13966   ac_outfile=conftest.$ac_objext
13967   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13968   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13969   # Insert the option either (1) after the last *FLAGS variable, or
13970   # (2) before a word containing "conftest.", or (3) at the end.
13971   # Note that $ac_compile itself does not contain backslashes and begins
13972   # with a dollar sign (not a hyphen), so the echo should work correctly.
13973   # The option is referenced via a variable to avoid confusing sed.
13974   lt_compile=`echo "$ac_compile" | $SED \
13975   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13976   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13977   -e 's:$: $lt_compiler_flag:'`
13978   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13979   (eval "$lt_compile" 2>conftest.err)
13980   ac_status=$?
13981   cat conftest.err >&5
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   if (exit $ac_status) && test -s "$ac_outfile"; then
13984     # The compiler can only warn and ignore the option if not recognized
13985     # So say no if there are warnings other than the usual output.
13986     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13987     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13988     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13989       lt_cv_prog_compiler_pic_works_CXX=yes
13990     fi
13991   fi
13992   $RM conftest*
13993
13994fi
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13996$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13997
13998if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13999    case $lt_prog_compiler_pic_CXX in
14000     "" | " "*) ;;
14001     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14002     esac
14003else
14004    lt_prog_compiler_pic_CXX=
14005     lt_prog_compiler_can_build_shared_CXX=no
14006fi
14007
14008fi
14009
14010
14011
14012
14013
14014#
14015# Check to make sure the static flag actually works.
14016#
14017wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14019$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14020if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14021  $as_echo_n "(cached) " >&6
14022else
14023  lt_cv_prog_compiler_static_works_CXX=no
14024   save_LDFLAGS="$LDFLAGS"
14025   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14026   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14027   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14028     # The linker can only warn and ignore the option if not recognized
14029     # So say no if there are warnings
14030     if test -s conftest.err; then
14031       # Append any errors to the config.log.
14032       cat conftest.err 1>&5
14033       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14034       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14035       if diff conftest.exp conftest.er2 >/dev/null; then
14036         lt_cv_prog_compiler_static_works_CXX=yes
14037       fi
14038     else
14039       lt_cv_prog_compiler_static_works_CXX=yes
14040     fi
14041   fi
14042   $RM -r conftest*
14043   LDFLAGS="$save_LDFLAGS"
14044
14045fi
14046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14047$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14048
14049if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14050    :
14051else
14052    lt_prog_compiler_static_CXX=
14053fi
14054
14055
14056
14057
14058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14059$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14060if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14061  $as_echo_n "(cached) " >&6
14062else
14063  lt_cv_prog_compiler_c_o_CXX=no
14064   $RM -r conftest 2>/dev/null
14065   mkdir conftest
14066   cd conftest
14067   mkdir out
14068   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14069
14070   lt_compiler_flag="-o out/conftest2.$ac_objext"
14071   # Insert the option either (1) after the last *FLAGS variable, or
14072   # (2) before a word containing "conftest.", or (3) at the end.
14073   # Note that $ac_compile itself does not contain backslashes and begins
14074   # with a dollar sign (not a hyphen), so the echo should work correctly.
14075   lt_compile=`echo "$ac_compile" | $SED \
14076   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078   -e 's:$: $lt_compiler_flag:'`
14079   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14080   (eval "$lt_compile" 2>out/conftest.err)
14081   ac_status=$?
14082   cat out/conftest.err >&5
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14085   then
14086     # The compiler can only warn and ignore the option if not recognized
14087     # So say no if there are warnings
14088     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14089     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14090     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14091       lt_cv_prog_compiler_c_o_CXX=yes
14092     fi
14093   fi
14094   chmod u+w . 2>&5
14095   $RM conftest*
14096   # SGI C++ compiler will create directory out/ii_files/ for
14097   # template instantiation
14098   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14099   $RM out/* && rmdir out
14100   cd ..
14101   $RM -r conftest
14102   $RM conftest*
14103
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14106$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14107
14108
14109
14110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14112if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14113  $as_echo_n "(cached) " >&6
14114else
14115  lt_cv_prog_compiler_c_o_CXX=no
14116   $RM -r conftest 2>/dev/null
14117   mkdir conftest
14118   cd conftest
14119   mkdir out
14120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14121
14122   lt_compiler_flag="-o out/conftest2.$ac_objext"
14123   # Insert the option either (1) after the last *FLAGS variable, or
14124   # (2) before a word containing "conftest.", or (3) at the end.
14125   # Note that $ac_compile itself does not contain backslashes and begins
14126   # with a dollar sign (not a hyphen), so the echo should work correctly.
14127   lt_compile=`echo "$ac_compile" | $SED \
14128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130   -e 's:$: $lt_compiler_flag:'`
14131   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14132   (eval "$lt_compile" 2>out/conftest.err)
14133   ac_status=$?
14134   cat out/conftest.err >&5
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14137   then
14138     # The compiler can only warn and ignore the option if not recognized
14139     # So say no if there are warnings
14140     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14141     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14142     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14143       lt_cv_prog_compiler_c_o_CXX=yes
14144     fi
14145   fi
14146   chmod u+w . 2>&5
14147   $RM conftest*
14148   # SGI C++ compiler will create directory out/ii_files/ for
14149   # template instantiation
14150   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14151   $RM out/* && rmdir out
14152   cd ..
14153   $RM -r conftest
14154   $RM conftest*
14155
14156fi
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14158$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14159
14160
14161
14162
14163hard_links="nottested"
14164if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14165  # do not overwrite the value of need_locks provided by the user
14166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14167$as_echo_n "checking if we can lock with hard links... " >&6; }
14168  hard_links=yes
14169  $RM conftest*
14170  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14171  touch conftest.a
14172  ln conftest.a conftest.b 2>&5 || hard_links=no
14173  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14175$as_echo "$hard_links" >&6; }
14176  if test "$hard_links" = no; then
14177    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14178$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14179    need_locks=warn
14180  fi
14181else
14182  need_locks=no
14183fi
14184
14185
14186
14187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14188$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14189
14190  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14191  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14192  case $host_os in
14193  aix[4-9]*)
14194    # If we're using GNU nm, then we don't want the "-C" option.
14195    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14196    # Also, AIX nm treats weak defined symbols like other global defined
14197    # symbols, whereas GNU nm marks them as "W".
14198    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14199      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14200    else
14201      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14202    fi
14203    ;;
14204  pw32*)
14205    export_symbols_cmds_CXX="$ltdll_cmds"
14206    ;;
14207  cygwin* | mingw* | cegcc*)
14208    case $cc_basename in
14209    cl*)
14210      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14211      ;;
14212    *)
14213      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'
14214      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14215      ;;
14216    esac
14217    ;;
14218  *)
14219    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14220    ;;
14221  esac
14222
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14224$as_echo "$ld_shlibs_CXX" >&6; }
14225test "$ld_shlibs_CXX" = no && can_build_shared=no
14226
14227with_gnu_ld_CXX=$with_gnu_ld
14228
14229
14230
14231
14232
14233
14234#
14235# Do we need to explicitly link libc?
14236#
14237case "x$archive_cmds_need_lc_CXX" in
14238x|xyes)
14239  # Assume -lc should be added
14240  archive_cmds_need_lc_CXX=yes
14241
14242  if test "$enable_shared" = yes && test "$GCC" = yes; then
14243    case $archive_cmds_CXX in
14244    *'~'*)
14245      # FIXME: we may have to deal with multi-command sequences.
14246      ;;
14247    '$CC '*)
14248      # Test whether the compiler implicitly links with -lc since on some
14249      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14250      # to ld, don't add -lc before -lgcc.
14251      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14252$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14253if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14254  $as_echo_n "(cached) " >&6
14255else
14256  $RM conftest*
14257	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14258
14259	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14260  (eval $ac_compile) 2>&5
14261  ac_status=$?
14262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14263  test $ac_status = 0; } 2>conftest.err; then
14264	  soname=conftest
14265	  lib=conftest
14266	  libobjs=conftest.$ac_objext
14267	  deplibs=
14268	  wl=$lt_prog_compiler_wl_CXX
14269	  pic_flag=$lt_prog_compiler_pic_CXX
14270	  compiler_flags=-v
14271	  linker_flags=-v
14272	  verstring=
14273	  output_objdir=.
14274	  libname=conftest
14275	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14276	  allow_undefined_flag_CXX=
14277	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14278  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14279  ac_status=$?
14280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281  test $ac_status = 0; }
14282	  then
14283	    lt_cv_archive_cmds_need_lc_CXX=no
14284	  else
14285	    lt_cv_archive_cmds_need_lc_CXX=yes
14286	  fi
14287	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14288	else
14289	  cat conftest.err 1>&5
14290	fi
14291	$RM conftest*
14292
14293fi
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14295$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14296      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14297      ;;
14298    esac
14299  fi
14300  ;;
14301esac
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14365$as_echo_n "checking dynamic linker characteristics... " >&6; }
14366
14367library_names_spec=
14368libname_spec='lib$name'
14369soname_spec=
14370shrext_cmds=".so"
14371postinstall_cmds=
14372postuninstall_cmds=
14373finish_cmds=
14374finish_eval=
14375shlibpath_var=
14376shlibpath_overrides_runpath=unknown
14377version_type=none
14378dynamic_linker="$host_os ld.so"
14379sys_lib_dlsearch_path_spec="/lib /usr/lib"
14380need_lib_prefix=unknown
14381hardcode_into_libs=no
14382
14383# when you set need_version to no, make sure it does not cause -set_version
14384# flags to be left without arguments
14385need_version=unknown
14386
14387case $host_os in
14388aix3*)
14389  version_type=linux # correct to gnu/linux during the next big refactor
14390  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14391  shlibpath_var=LIBPATH
14392
14393  # AIX 3 has no versioning support, so we append a major version to the name.
14394  soname_spec='${libname}${release}${shared_ext}$major'
14395  ;;
14396
14397aix[4-9]*)
14398  version_type=linux # correct to gnu/linux during the next big refactor
14399  need_lib_prefix=no
14400  need_version=no
14401  hardcode_into_libs=yes
14402  if test "$host_cpu" = ia64; then
14403    # AIX 5 supports IA64
14404    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14405    shlibpath_var=LD_LIBRARY_PATH
14406  else
14407    # With GCC up to 2.95.x, collect2 would create an import file
14408    # for dependence libraries.  The import file would start with
14409    # the line `#! .'.  This would cause the generated library to
14410    # depend on `.', always an invalid library.  This was fixed in
14411    # development snapshots of GCC prior to 3.0.
14412    case $host_os in
14413      aix4 | aix4.[01] | aix4.[01].*)
14414      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14415	   echo ' yes '
14416	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14417	:
14418      else
14419	can_build_shared=no
14420      fi
14421      ;;
14422    esac
14423    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14424    # soname into executable. Probably we can add versioning support to
14425    # collect2, so additional links can be useful in future.
14426    if test "$aix_use_runtimelinking" = yes; then
14427      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14428      # instead of lib<name>.a to let people know that these are not
14429      # typical AIX shared libraries.
14430      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431    else
14432      # We preserve .a as extension for shared libraries through AIX4.2
14433      # and later when we are not doing run time linking.
14434      library_names_spec='${libname}${release}.a $libname.a'
14435      soname_spec='${libname}${release}${shared_ext}$major'
14436    fi
14437    shlibpath_var=LIBPATH
14438  fi
14439  ;;
14440
14441amigaos*)
14442  case $host_cpu in
14443  powerpc)
14444    # Since July 2007 AmigaOS4 officially supports .so libraries.
14445    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14446    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447    ;;
14448  m68k)
14449    library_names_spec='$libname.ixlibrary $libname.a'
14450    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14451    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14452    ;;
14453  esac
14454  ;;
14455
14456beos*)
14457  library_names_spec='${libname}${shared_ext}'
14458  dynamic_linker="$host_os ld.so"
14459  shlibpath_var=LIBRARY_PATH
14460  ;;
14461
14462bsdi[45]*)
14463  version_type=linux # correct to gnu/linux during the next big refactor
14464  need_version=no
14465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466  soname_spec='${libname}${release}${shared_ext}$major'
14467  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14468  shlibpath_var=LD_LIBRARY_PATH
14469  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14470  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14471  # the default ld.so.conf also contains /usr/contrib/lib and
14472  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14473  # libtool to hard-code these into programs
14474  ;;
14475
14476cygwin* | mingw* | pw32* | cegcc*)
14477  version_type=windows
14478  shrext_cmds=".dll"
14479  need_version=no
14480  need_lib_prefix=no
14481
14482  case $GCC,$cc_basename in
14483  yes,*)
14484    # gcc
14485    library_names_spec='$libname.dll.a'
14486    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14487    postinstall_cmds='base_file=`basename \${file}`~
14488      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14489      dldir=$destdir/`dirname \$dlpath`~
14490      test -d \$dldir || mkdir -p \$dldir~
14491      $install_prog $dir/$dlname \$dldir/$dlname~
14492      chmod a+x \$dldir/$dlname~
14493      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14494        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14495      fi'
14496    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14497      dlpath=$dir/\$dldll~
14498       $RM \$dlpath'
14499    shlibpath_overrides_runpath=yes
14500
14501    case $host_os in
14502    cygwin*)
14503      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14504      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505
14506      ;;
14507    mingw* | cegcc*)
14508      # MinGW DLLs use traditional 'lib' prefix
14509      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14510      ;;
14511    pw32*)
14512      # pw32 DLLs use 'pw' prefix rather than 'lib'
14513      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14514      ;;
14515    esac
14516    dynamic_linker='Win32 ld.exe'
14517    ;;
14518
14519  *,cl*)
14520    # Native MSVC
14521    libname_spec='$name'
14522    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14523    library_names_spec='${libname}.dll.lib'
14524
14525    case $build_os in
14526    mingw*)
14527      sys_lib_search_path_spec=
14528      lt_save_ifs=$IFS
14529      IFS=';'
14530      for lt_path in $LIB
14531      do
14532        IFS=$lt_save_ifs
14533        # Let DOS variable expansion print the short 8.3 style file name.
14534        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14535        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14536      done
14537      IFS=$lt_save_ifs
14538      # Convert to MSYS style.
14539      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14540      ;;
14541    cygwin*)
14542      # Convert to unix form, then to dos form, then back to unix form
14543      # but this time dos style (no spaces!) so that the unix form looks
14544      # like /cygdrive/c/PROGRA~1:/cygdr...
14545      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14546      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14547      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14548      ;;
14549    *)
14550      sys_lib_search_path_spec="$LIB"
14551      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14552        # It is most probably a Windows format PATH.
14553        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14554      else
14555        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14556      fi
14557      # FIXME: find the short name or the path components, as spaces are
14558      # common. (e.g. "Program Files" -> "PROGRA~1")
14559      ;;
14560    esac
14561
14562    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14563    postinstall_cmds='base_file=`basename \${file}`~
14564      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14565      dldir=$destdir/`dirname \$dlpath`~
14566      test -d \$dldir || mkdir -p \$dldir~
14567      $install_prog $dir/$dlname \$dldir/$dlname'
14568    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14569      dlpath=$dir/\$dldll~
14570       $RM \$dlpath'
14571    shlibpath_overrides_runpath=yes
14572    dynamic_linker='Win32 link.exe'
14573    ;;
14574
14575  *)
14576    # Assume MSVC wrapper
14577    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14578    dynamic_linker='Win32 ld.exe'
14579    ;;
14580  esac
14581  # FIXME: first we should search . and the directory the executable is in
14582  shlibpath_var=PATH
14583  ;;
14584
14585darwin* | rhapsody*)
14586  dynamic_linker="$host_os dyld"
14587  version_type=darwin
14588  need_lib_prefix=no
14589  need_version=no
14590  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14591  soname_spec='${libname}${release}${major}$shared_ext'
14592  shlibpath_overrides_runpath=yes
14593  shlibpath_var=DYLD_LIBRARY_PATH
14594  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14595
14596  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14597  ;;
14598
14599dgux*)
14600  version_type=linux # correct to gnu/linux during the next big refactor
14601  need_lib_prefix=no
14602  need_version=no
14603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14604  soname_spec='${libname}${release}${shared_ext}$major'
14605  shlibpath_var=LD_LIBRARY_PATH
14606  ;;
14607
14608freebsd* | dragonfly*)
14609  # DragonFly does not have aout.  When/if they implement a new
14610  # versioning mechanism, adjust this.
14611  if test -x /usr/bin/objformat; then
14612    objformat=`/usr/bin/objformat`
14613  else
14614    case $host_os in
14615    freebsd[23].*) objformat=aout ;;
14616    *) objformat=elf ;;
14617    esac
14618  fi
14619  version_type=freebsd-$objformat
14620  case $version_type in
14621    freebsd-elf*)
14622      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14623      need_version=no
14624      need_lib_prefix=no
14625      ;;
14626    freebsd-*)
14627      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14628      need_version=yes
14629      ;;
14630  esac
14631  shlibpath_var=LD_LIBRARY_PATH
14632  case $host_os in
14633  freebsd2.*)
14634    shlibpath_overrides_runpath=yes
14635    ;;
14636  freebsd3.[01]* | freebsdelf3.[01]*)
14637    shlibpath_overrides_runpath=yes
14638    hardcode_into_libs=yes
14639    ;;
14640  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14641  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14642    shlibpath_overrides_runpath=no
14643    hardcode_into_libs=yes
14644    ;;
14645  *) # from 4.6 on, and DragonFly
14646    shlibpath_overrides_runpath=yes
14647    hardcode_into_libs=yes
14648    ;;
14649  esac
14650  ;;
14651
14652gnu*)
14653  version_type=linux # correct to gnu/linux during the next big refactor
14654  need_lib_prefix=no
14655  need_version=no
14656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14657  soname_spec='${libname}${release}${shared_ext}$major'
14658  shlibpath_var=LD_LIBRARY_PATH
14659  shlibpath_overrides_runpath=no
14660  hardcode_into_libs=yes
14661  ;;
14662
14663haiku*)
14664  version_type=linux # correct to gnu/linux during the next big refactor
14665  need_lib_prefix=no
14666  need_version=no
14667  dynamic_linker="$host_os runtime_loader"
14668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14669  soname_spec='${libname}${release}${shared_ext}$major'
14670  shlibpath_var=LIBRARY_PATH
14671  shlibpath_overrides_runpath=yes
14672  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14673  hardcode_into_libs=yes
14674  ;;
14675
14676hpux9* | hpux10* | hpux11*)
14677  # Give a soname corresponding to the major version so that dld.sl refuses to
14678  # link against other versions.
14679  version_type=sunos
14680  need_lib_prefix=no
14681  need_version=no
14682  case $host_cpu in
14683  ia64*)
14684    shrext_cmds='.so'
14685    hardcode_into_libs=yes
14686    dynamic_linker="$host_os dld.so"
14687    shlibpath_var=LD_LIBRARY_PATH
14688    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14689    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690    soname_spec='${libname}${release}${shared_ext}$major'
14691    if test "X$HPUX_IA64_MODE" = X32; then
14692      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14693    else
14694      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14695    fi
14696    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14697    ;;
14698  hppa*64*)
14699    shrext_cmds='.sl'
14700    hardcode_into_libs=yes
14701    dynamic_linker="$host_os dld.sl"
14702    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14703    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14704    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705    soname_spec='${libname}${release}${shared_ext}$major'
14706    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14707    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14708    ;;
14709  *)
14710    shrext_cmds='.sl'
14711    dynamic_linker="$host_os dld.sl"
14712    shlibpath_var=SHLIB_PATH
14713    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14714    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715    soname_spec='${libname}${release}${shared_ext}$major'
14716    ;;
14717  esac
14718  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14719  postinstall_cmds='chmod 555 $lib'
14720  # or fails outright, so override atomically:
14721  install_override_mode=555
14722  ;;
14723
14724interix[3-9]*)
14725  version_type=linux # correct to gnu/linux during the next big refactor
14726  need_lib_prefix=no
14727  need_version=no
14728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14729  soname_spec='${libname}${release}${shared_ext}$major'
14730  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14731  shlibpath_var=LD_LIBRARY_PATH
14732  shlibpath_overrides_runpath=no
14733  hardcode_into_libs=yes
14734  ;;
14735
14736irix5* | irix6* | nonstopux*)
14737  case $host_os in
14738    nonstopux*) version_type=nonstopux ;;
14739    *)
14740	if test "$lt_cv_prog_gnu_ld" = yes; then
14741		version_type=linux # correct to gnu/linux during the next big refactor
14742	else
14743		version_type=irix
14744	fi ;;
14745  esac
14746  need_lib_prefix=no
14747  need_version=no
14748  soname_spec='${libname}${release}${shared_ext}$major'
14749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14750  case $host_os in
14751  irix5* | nonstopux*)
14752    libsuff= shlibsuff=
14753    ;;
14754  *)
14755    case $LD in # libtool.m4 will add one of these switches to LD
14756    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14757      libsuff= shlibsuff= libmagic=32-bit;;
14758    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14759      libsuff=32 shlibsuff=N32 libmagic=N32;;
14760    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14761      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14762    *) libsuff= shlibsuff= libmagic=never-match;;
14763    esac
14764    ;;
14765  esac
14766  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14767  shlibpath_overrides_runpath=no
14768  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14769  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14770  hardcode_into_libs=yes
14771  ;;
14772
14773# No shared lib support for Linux oldld, aout, or coff.
14774linux*oldld* | linux*aout* | linux*coff*)
14775  dynamic_linker=no
14776  ;;
14777
14778# This must be glibc/ELF.
14779linux* | k*bsd*-gnu | kopensolaris*-gnu)
14780  version_type=linux # correct to gnu/linux during the next big refactor
14781  need_lib_prefix=no
14782  need_version=no
14783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784  soname_spec='${libname}${release}${shared_ext}$major'
14785  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14786  shlibpath_var=LD_LIBRARY_PATH
14787  shlibpath_overrides_runpath=no
14788
14789  # Some binutils ld are patched to set DT_RUNPATH
14790  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14791  $as_echo_n "(cached) " >&6
14792else
14793  lt_cv_shlibpath_overrides_runpath=no
14794    save_LDFLAGS=$LDFLAGS
14795    save_libdir=$libdir
14796    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14797	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14798    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799/* end confdefs.h.  */
14800
14801int
14802main ()
14803{
14804
14805  ;
14806  return 0;
14807}
14808_ACEOF
14809if ac_fn_cxx_try_link "$LINENO"; then :
14810  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14811  lt_cv_shlibpath_overrides_runpath=yes
14812fi
14813fi
14814rm -f core conftest.err conftest.$ac_objext \
14815    conftest$ac_exeext conftest.$ac_ext
14816    LDFLAGS=$save_LDFLAGS
14817    libdir=$save_libdir
14818
14819fi
14820
14821  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14822
14823  # This implies no fast_install, which is unacceptable.
14824  # Some rework will be needed to allow for fast_install
14825  # before this can be enabled.
14826  hardcode_into_libs=yes
14827
14828  # Append ld.so.conf contents to the search path
14829  if test -f /etc/ld.so.conf; then
14830    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' ' '`
14831    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14832  fi
14833
14834  # We used to test for /lib/ld.so.1 and disable shared libraries on
14835  # powerpc, because MkLinux only supported shared libraries with the
14836  # GNU dynamic linker.  Since this was broken with cross compilers,
14837  # most powerpc-linux boxes support dynamic linking these days and
14838  # people can always --disable-shared, the test was removed, and we
14839  # assume the GNU/Linux dynamic linker is in use.
14840  dynamic_linker='GNU/Linux ld.so'
14841  ;;
14842
14843netbsd*)
14844  version_type=sunos
14845  need_lib_prefix=no
14846  need_version=no
14847  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14848    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850    dynamic_linker='NetBSD (a.out) ld.so'
14851  else
14852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853    soname_spec='${libname}${release}${shared_ext}$major'
14854    dynamic_linker='NetBSD ld.elf_so'
14855  fi
14856  shlibpath_var=LD_LIBRARY_PATH
14857  shlibpath_overrides_runpath=yes
14858  hardcode_into_libs=yes
14859  ;;
14860
14861newsos6)
14862  version_type=linux # correct to gnu/linux during the next big refactor
14863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864  shlibpath_var=LD_LIBRARY_PATH
14865  shlibpath_overrides_runpath=yes
14866  ;;
14867
14868*nto* | *qnx*)
14869  version_type=qnx
14870  need_lib_prefix=no
14871  need_version=no
14872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873  soname_spec='${libname}${release}${shared_ext}$major'
14874  shlibpath_var=LD_LIBRARY_PATH
14875  shlibpath_overrides_runpath=no
14876  hardcode_into_libs=yes
14877  dynamic_linker='ldqnx.so'
14878  ;;
14879
14880openbsd*)
14881  version_type=sunos
14882  sys_lib_dlsearch_path_spec="/usr/lib"
14883  need_lib_prefix=no
14884  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14885  case $host_os in
14886    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14887    *)				need_version=no  ;;
14888  esac
14889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14890  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891  shlibpath_var=LD_LIBRARY_PATH
14892  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14893    case $host_os in
14894      openbsd2.[89] | openbsd2.[89].*)
14895	shlibpath_overrides_runpath=no
14896	;;
14897      *)
14898	shlibpath_overrides_runpath=yes
14899	;;
14900      esac
14901  else
14902    shlibpath_overrides_runpath=yes
14903  fi
14904  ;;
14905
14906os2*)
14907  libname_spec='$name'
14908  shrext_cmds=".dll"
14909  need_lib_prefix=no
14910  library_names_spec='$libname${shared_ext} $libname.a'
14911  dynamic_linker='OS/2 ld.exe'
14912  shlibpath_var=LIBPATH
14913  ;;
14914
14915osf3* | osf4* | osf5*)
14916  version_type=osf
14917  need_lib_prefix=no
14918  need_version=no
14919  soname_spec='${libname}${release}${shared_ext}$major'
14920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921  shlibpath_var=LD_LIBRARY_PATH
14922  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14923  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14924  ;;
14925
14926rdos*)
14927  dynamic_linker=no
14928  ;;
14929
14930solaris*)
14931  version_type=linux # correct to gnu/linux during the next big refactor
14932  need_lib_prefix=no
14933  need_version=no
14934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935  soname_spec='${libname}${release}${shared_ext}$major'
14936  shlibpath_var=LD_LIBRARY_PATH
14937  shlibpath_overrides_runpath=yes
14938  hardcode_into_libs=yes
14939  # ldd complains unless libraries are executable
14940  postinstall_cmds='chmod +x $lib'
14941  ;;
14942
14943sunos4*)
14944  version_type=sunos
14945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14946  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14947  shlibpath_var=LD_LIBRARY_PATH
14948  shlibpath_overrides_runpath=yes
14949  if test "$with_gnu_ld" = yes; then
14950    need_lib_prefix=no
14951  fi
14952  need_version=yes
14953  ;;
14954
14955sysv4 | sysv4.3*)
14956  version_type=linux # correct to gnu/linux during the next big refactor
14957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958  soname_spec='${libname}${release}${shared_ext}$major'
14959  shlibpath_var=LD_LIBRARY_PATH
14960  case $host_vendor in
14961    sni)
14962      shlibpath_overrides_runpath=no
14963      need_lib_prefix=no
14964      runpath_var=LD_RUN_PATH
14965      ;;
14966    siemens)
14967      need_lib_prefix=no
14968      ;;
14969    motorola)
14970      need_lib_prefix=no
14971      need_version=no
14972      shlibpath_overrides_runpath=no
14973      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14974      ;;
14975  esac
14976  ;;
14977
14978sysv4*MP*)
14979  if test -d /usr/nec ;then
14980    version_type=linux # correct to gnu/linux during the next big refactor
14981    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14982    soname_spec='$libname${shared_ext}.$major'
14983    shlibpath_var=LD_LIBRARY_PATH
14984  fi
14985  ;;
14986
14987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14988  version_type=freebsd-elf
14989  need_lib_prefix=no
14990  need_version=no
14991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14992  soname_spec='${libname}${release}${shared_ext}$major'
14993  shlibpath_var=LD_LIBRARY_PATH
14994  shlibpath_overrides_runpath=yes
14995  hardcode_into_libs=yes
14996  if test "$with_gnu_ld" = yes; then
14997    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14998  else
14999    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15000    case $host_os in
15001      sco3.2v5*)
15002        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15003	;;
15004    esac
15005  fi
15006  sys_lib_dlsearch_path_spec='/usr/lib'
15007  ;;
15008
15009tpf*)
15010  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15011  version_type=linux # correct to gnu/linux during the next big refactor
15012  need_lib_prefix=no
15013  need_version=no
15014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015  shlibpath_var=LD_LIBRARY_PATH
15016  shlibpath_overrides_runpath=no
15017  hardcode_into_libs=yes
15018  ;;
15019
15020uts4*)
15021  version_type=linux # correct to gnu/linux during the next big refactor
15022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023  soname_spec='${libname}${release}${shared_ext}$major'
15024  shlibpath_var=LD_LIBRARY_PATH
15025  ;;
15026
15027*)
15028  dynamic_linker=no
15029  ;;
15030esac
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15032$as_echo "$dynamic_linker" >&6; }
15033test "$dynamic_linker" = no && can_build_shared=no
15034
15035variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15036if test "$GCC" = yes; then
15037  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15038fi
15039
15040if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15041  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15042fi
15043if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15044  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15045fi
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15085$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15086hardcode_action_CXX=
15087if test -n "$hardcode_libdir_flag_spec_CXX" ||
15088   test -n "$runpath_var_CXX" ||
15089   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15090
15091  # We can hardcode non-existent directories.
15092  if test "$hardcode_direct_CXX" != no &&
15093     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15094     # have to relink, otherwise we might link with an installed library
15095     # when we should be linking with a yet-to-be-installed one
15096     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15097     test "$hardcode_minus_L_CXX" != no; then
15098    # Linking always hardcodes the temporary library directory.
15099    hardcode_action_CXX=relink
15100  else
15101    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15102    hardcode_action_CXX=immediate
15103  fi
15104else
15105  # We cannot hardcode anything, or else we can only hardcode existing
15106  # directories.
15107  hardcode_action_CXX=unsupported
15108fi
15109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15110$as_echo "$hardcode_action_CXX" >&6; }
15111
15112if test "$hardcode_action_CXX" = relink ||
15113   test "$inherit_rpath_CXX" = yes; then
15114  # Fast installation is not supported
15115  enable_fast_install=no
15116elif test "$shlibpath_overrides_runpath" = yes ||
15117     test "$enable_shared" = no; then
15118  # Fast installation is not necessary
15119  enable_fast_install=needless
15120fi
15121
15122
15123
15124
15125
15126
15127
15128  fi # test -n "$compiler"
15129
15130  CC=$lt_save_CC
15131  CFLAGS=$lt_save_CFLAGS
15132  LDCXX=$LD
15133  LD=$lt_save_LD
15134  GCC=$lt_save_GCC
15135  with_gnu_ld=$lt_save_with_gnu_ld
15136  lt_cv_path_LDCXX=$lt_cv_path_LD
15137  lt_cv_path_LD=$lt_save_path_LD
15138  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15139  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15140fi # test "$_lt_caught_CXX_error" != yes
15141
15142ac_ext=c
15143ac_cpp='$CPP $CPPFLAGS'
15144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147
15148
15149
15150# look for libc
15151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15152$as_echo_n "checking for ANSI C header files... " >&6; }
15153if ${ac_cv_header_stdc+:} false; then :
15154  $as_echo_n "(cached) " >&6
15155else
15156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h.  */
15158#include <stdlib.h>
15159#include <stdarg.h>
15160#include <string.h>
15161#include <float.h>
15162
15163int
15164main ()
15165{
15166
15167  ;
15168  return 0;
15169}
15170_ACEOF
15171if ac_fn_c_try_compile "$LINENO"; then :
15172  ac_cv_header_stdc=yes
15173else
15174  ac_cv_header_stdc=no
15175fi
15176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177
15178if test $ac_cv_header_stdc = yes; then
15179  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181/* end confdefs.h.  */
15182#include <string.h>
15183
15184_ACEOF
15185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15186  $EGREP "memchr" >/dev/null 2>&1; then :
15187
15188else
15189  ac_cv_header_stdc=no
15190fi
15191rm -f conftest*
15192
15193fi
15194
15195if test $ac_cv_header_stdc = yes; then
15196  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198/* end confdefs.h.  */
15199#include <stdlib.h>
15200
15201_ACEOF
15202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15203  $EGREP "free" >/dev/null 2>&1; then :
15204
15205else
15206  ac_cv_header_stdc=no
15207fi
15208rm -f conftest*
15209
15210fi
15211
15212if test $ac_cv_header_stdc = yes; then
15213  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15214  if test "$cross_compiling" = yes; then :
15215  :
15216else
15217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219#include <ctype.h>
15220#include <stdlib.h>
15221#if ((' ' & 0x0FF) == 0x020)
15222# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15223# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15224#else
15225# define ISLOWER(c) \
15226		   (('a' <= (c) && (c) <= 'i') \
15227		     || ('j' <= (c) && (c) <= 'r') \
15228		     || ('s' <= (c) && (c) <= 'z'))
15229# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15230#endif
15231
15232#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15233int
15234main ()
15235{
15236  int i;
15237  for (i = 0; i < 256; i++)
15238    if (XOR (islower (i), ISLOWER (i))
15239	|| toupper (i) != TOUPPER (i))
15240      return 2;
15241  return 0;
15242}
15243_ACEOF
15244if ac_fn_c_try_run "$LINENO"; then :
15245
15246else
15247  ac_cv_header_stdc=no
15248fi
15249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15250  conftest.$ac_objext conftest.beam conftest.$ac_ext
15251fi
15252
15253fi
15254fi
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15256$as_echo "$ac_cv_header_stdc" >&6; }
15257if test $ac_cv_header_stdc = yes; then
15258
15259$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15260
15261fi
15262
15263
15264# additional headers which are required
15265for ac_header in unistd.h stdio.h stdlib.h
15266do :
15267  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15268ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15269if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15270  cat >>confdefs.h <<_ACEOF
15271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15272_ACEOF
15273
15274fi
15275
15276done
15277
15278
15279
15280# Check for some target-specific stuff
15281case "$host" in
15282    *aix*)
15283        # libm is required as well
15284        CXXFLAGS="$CFLAGS -D_AIX_SOURCE=1"
15285        LDFLAGS="$LDFLAGS -lm"
15286        ;;
15287    *-*-android*) ;;
15288    *-*-cygwin*) ;;
15289    *-*-dgux*) ;;
15290    *-*-darwin*) ;;
15291    *-*-dragonfly*) ;;
15292    *-*-haiku*) ;;
15293    *-*-hpux*) ;;
15294    *-*-irix5*) ;;
15295    *-*-irix6*) ;;
15296    *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) ;;
15297    *-*-linux*) ;;
15298    *-*-netbsd*) ;;
15299    *-*-freebsd*)
15300        # ports install to /usr/local by default, check
15301        if test -d "/usr/local/lib" -a -d "/usr/local/include"; then
15302            CXXFLAGS="$CFLAGS -I/usr/local/include"
15303            LDFLAGS="$LDFLAGS -L/usr/local/lib"
15304        fi
15305        ;;
15306    *-*-bsdi*) ;;
15307    *-next-*) ;;
15308    *-*-openbsd*) ;;
15309    *-*-solaris*) ;;
15310    *-*-sunos4*) ;;
15311    *-ncr-sysv*) ;;
15312    *-sni-sysv*) ;;
15313    *-*-sysv4.2*) ;;
15314    *-*-sysv5*) ;;
15315    *-*-sysv*) ;;
15316    *-*-sco*) ;;
15317    *-*-unicos*) ;;
15318    *-dec-osf*) ;;
15319    *-*-nto-qnx*) ;;
15320    *-*-ultrix*) ;;
15321    *-*-lynxos) ;;
15322esac
15323
15324
15325# look for libs
15326GDBM="yes"
15327BERKELEY="no"
15328PCRE="no"
15329
15330
15331# configure args
15332
15333# Check whether --with-berkeley was given.
15334if test "${with_berkeley+set}" = set; then :
15335  withval=$with_berkeley;
15336fi
15337
15338
15339if test "x$with_berkeley" = "xno"; then
15340  BERKELEY=no
15341  GDBM=yes
15342elif test "x$with_berkeley" = "xyes"; then
15343  BERKELEY=yes
15344  GDBM=no
15345fi
15346
15347
15348
15349# Check whether --with-gdbm was given.
15350if test "${with_gdbm+set}" = set; then :
15351  withval=$with_gdbm;
15352fi
15353
15354
15355if test "x$with_gdbm" = "xno"; then
15356  GDBM=no
15357elif test "x$with_gdbm" = "xyes"; then
15358  GDBM=yes
15359fi
15360
15361
15362# Check whether --with-gdbm-dir was given.
15363if test "${with_gdbm_dir+set}" = set; then :
15364  withval=$with_gdbm_dir;
15365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking $with_gdbm_dir/include/gdbm.h presence" >&5
15366$as_echo_n "checking checking $with_gdbm_dir/include/gdbm.h presence... " >&6; }
15367	if test -r "$with_gdbm_dir/include/gdbm.h" ; then
15368	    CXXFLAGS="-I$with_gdbm_dir/include $CXXFLAGS"
15369	    CFLAGS="$CXXFLAGS"
15370	    LDFLAGS="-L$with_gdbm_dir/lib $LDFLAGS"
15371	    LIBS="-lgdbm"
15372            GDBM=yes
15373	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15374$as_echo "yes" >&6; }
15375	else
15376            GDBM=no
15377	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378$as_echo "no" >&6; }
15379	fi
15380
15381fi
15382
15383
15384
15385# Check whether --with-pcre-dir was given.
15386if test "${with_pcre_dir+set}" = set; then :
15387  withval=$with_pcre_dir;
15388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking $with_pcre_dir/include/pcre.h presence" >&5
15389$as_echo_n "checking checking $with_pcre_dir/include/pcre.h presence... " >&6; }
15390	if test -r "$with_pcre_dir/include/pcre.h" ; then
15391	    CXXFLAGS="-I$with_pcre_dir/include $CXXFLAGS"
15392	    CFLAGS="$CXXFLAGS"
15393	    LDFLAGS="-L$with_pcre_dir/lib $LDFLAGS"
15394	    LIBS="-lpcre"
15395	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15396$as_echo "yes" >&6; }
15397	else
15398	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399$as_echo "no" >&6; }
15400	fi
15401
15402fi
15403
15404
15405
15406# Check whether --with-bdb-include-dir was given.
15407if test "${with_bdb_include_dir+set}" = set; then :
15408  withval=$with_bdb_include_dir;
15409		    GDBM="no"
15410		    BERKELEY="yes"
15411		    CXXFLAGS="-I${with_bdb_include_dir} ${CXXFLAGS}"
15412		    CFLAGS="$CXXFLAGS"
15413
15414fi
15415
15416
15417
15418# Check whether --with-bdb_lib_dir was given.
15419if test "${with_bdb_lib_dir+set}" = set; then :
15420  withval=$with_bdb_lib_dir;
15421		# dont check presence since lib file name unpredictable
15422		GDBM="no"
15423		BERKELEY="yes"
15424		LDFLAGS="-L${with_bdb_lib_dir} ${LDFLAGS}"
15425
15426fi
15427
15428
15429
15430# first, check for gdbm, which is the default
15431if test "$GDBM" = "yes"; then
15432    # search for it via pkg-config
15433
15434
15435
15436
15437
15438
15439
15440if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15441	if test -n "$ac_tool_prefix"; then
15442  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15443set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15445$as_echo_n "checking for $ac_word... " >&6; }
15446if ${ac_cv_path_PKG_CONFIG+:} false; then :
15447  $as_echo_n "(cached) " >&6
15448else
15449  case $PKG_CONFIG in
15450  [\\/]* | ?:[\\/]*)
15451  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15452  ;;
15453  *)
15454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15455for as_dir in $PATH
15456do
15457  IFS=$as_save_IFS
15458  test -z "$as_dir" && as_dir=.
15459    for ac_exec_ext in '' $ac_executable_extensions; do
15460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15461    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15463    break 2
15464  fi
15465done
15466  done
15467IFS=$as_save_IFS
15468
15469  ;;
15470esac
15471fi
15472PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15473if test -n "$PKG_CONFIG"; then
15474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15475$as_echo "$PKG_CONFIG" >&6; }
15476else
15477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478$as_echo "no" >&6; }
15479fi
15480
15481
15482fi
15483if test -z "$ac_cv_path_PKG_CONFIG"; then
15484  ac_pt_PKG_CONFIG=$PKG_CONFIG
15485  # Extract the first word of "pkg-config", so it can be a program name with args.
15486set dummy pkg-config; ac_word=$2
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488$as_echo_n "checking for $ac_word... " >&6; }
15489if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15490  $as_echo_n "(cached) " >&6
15491else
15492  case $ac_pt_PKG_CONFIG in
15493  [\\/]* | ?:[\\/]*)
15494  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15495  ;;
15496  *)
15497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498for as_dir in $PATH
15499do
15500  IFS=$as_save_IFS
15501  test -z "$as_dir" && as_dir=.
15502    for ac_exec_ext in '' $ac_executable_extensions; do
15503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15506    break 2
15507  fi
15508done
15509  done
15510IFS=$as_save_IFS
15511
15512  ;;
15513esac
15514fi
15515ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15516if test -n "$ac_pt_PKG_CONFIG"; then
15517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15518$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15519else
15520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521$as_echo "no" >&6; }
15522fi
15523
15524  if test "x$ac_pt_PKG_CONFIG" = x; then
15525    PKG_CONFIG=""
15526  else
15527    case $cross_compiling:$ac_tool_warned in
15528yes:)
15529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15531ac_tool_warned=yes ;;
15532esac
15533    PKG_CONFIG=$ac_pt_PKG_CONFIG
15534  fi
15535else
15536  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15537fi
15538
15539fi
15540if test -n "$PKG_CONFIG"; then
15541	_pkg_min_version=0.9.0
15542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15543$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15544	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15546$as_echo "yes" >&6; }
15547	else
15548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15549$as_echo "no" >&6; }
15550		PKG_CONFIG=""
15551	fi
15552fi
15553
15554pkg_failed=no
15555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBM" >&5
15556$as_echo_n "checking for GDBM... " >&6; }
15557
15558if test -n "$GDBM_CFLAGS"; then
15559    pkg_cv_GDBM_CFLAGS="$GDBM_CFLAGS"
15560 elif test -n "$PKG_CONFIG"; then
15561    if test -n "$PKG_CONFIG" && \
15562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdbm\""; } >&5
15563  ($PKG_CONFIG --exists --print-errors "gdbm") 2>&5
15564  ac_status=$?
15565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15566  test $ac_status = 0; }; then
15567  pkg_cv_GDBM_CFLAGS=`$PKG_CONFIG --cflags "gdbm" 2>/dev/null`
15568		      test "x$?" != "x0" && pkg_failed=yes
15569else
15570  pkg_failed=yes
15571fi
15572 else
15573    pkg_failed=untried
15574fi
15575if test -n "$GDBM_LIBS"; then
15576    pkg_cv_GDBM_LIBS="$GDBM_LIBS"
15577 elif test -n "$PKG_CONFIG"; then
15578    if test -n "$PKG_CONFIG" && \
15579    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdbm\""; } >&5
15580  ($PKG_CONFIG --exists --print-errors "gdbm") 2>&5
15581  ac_status=$?
15582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15583  test $ac_status = 0; }; then
15584  pkg_cv_GDBM_LIBS=`$PKG_CONFIG --libs "gdbm" 2>/dev/null`
15585		      test "x$?" != "x0" && pkg_failed=yes
15586else
15587  pkg_failed=yes
15588fi
15589 else
15590    pkg_failed=untried
15591fi
15592
15593
15594
15595if test $pkg_failed = yes; then
15596   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15597$as_echo "no" >&6; }
15598
15599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15600        _pkg_short_errors_supported=yes
15601else
15602        _pkg_short_errors_supported=no
15603fi
15604        if test $_pkg_short_errors_supported = yes; then
15605	        GDBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdbm" 2>&1`
15606        else
15607	        GDBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdbm" 2>&1`
15608        fi
15609	# Put the nasty error message in config.log where it belongs
15610	echo "$GDBM_PKG_ERRORS" >&5
15611
15612	_gdbm=no
15613elif test $pkg_failed = untried; then
15614     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615$as_echo "no" >&6; }
15616	_gdbm=no
15617else
15618	GDBM_CFLAGS=$pkg_cv_GDBM_CFLAGS
15619	GDBM_LIBS=$pkg_cv_GDBM_LIBS
15620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15621$as_echo "yes" >&6; }
15622	_gdbm=yes
15623fi
15624    if test "x$_gdbm" = "xyes"; then
15625
15626
15627
15628	GDBM="yes"
15629    fi
15630fi
15631
15632if test "$GDBM" = "yes"; then
15633     export LDFLAGS
15634     export LIBS
15635     export CFLAGS
15636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
15637$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
15638if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
15639  $as_echo_n "(cached) " >&6
15640else
15641  ac_check_lib_save_LIBS=$LIBS
15642LIBS="-lgdbm  $LIBS"
15643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644/* end confdefs.h.  */
15645
15646/* Override any GCC internal prototype to avoid an error.
15647   Use char because int might match the return type of a GCC
15648   builtin and then its argument prototype would still apply.  */
15649#ifdef __cplusplus
15650extern "C"
15651#endif
15652char gdbm_open ();
15653int
15654main ()
15655{
15656return gdbm_open ();
15657  ;
15658  return 0;
15659}
15660_ACEOF
15661if ac_fn_c_try_link "$LINENO"; then :
15662  ac_cv_lib_gdbm_gdbm_open=yes
15663else
15664  ac_cv_lib_gdbm_gdbm_open=no
15665fi
15666rm -f core conftest.err conftest.$ac_objext \
15667    conftest$ac_exeext conftest.$ac_ext
15668LIBS=$ac_check_lib_save_LIBS
15669fi
15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
15671$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
15672if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
15673  cat >>confdefs.h <<_ACEOF
15674#define HAVE_LIBGDBM 1
15675_ACEOF
15676
15677  LIBS="-lgdbm $LIBS"
15678
15679fi
15680
15681     if test "x$ac_cv_lib_gdbm_gdbm_open" = "xno"; then
15682	 GDBM="no"
15683     fi
15684fi
15685
15686# now, if we didn't find gdbm or it was disabled, try berkeley db
15687if test "$GDBM" = "no"; then
15688    ac_ext=cpp
15689ac_cpp='$CXXCPP $CPPFLAGS'
15690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15693
15694     export LDFLAGS
15695     export LIBS
15696     export CXXFLAGS
15697
15698
15699
15700  old_LIBS="$LIBS"
15701  old_LDFLAGS="$LDFLAGS"
15702  old_CPPFLAGS="$CPPFLAGS"
15703
15704  libdbdir=""
15705
15706# Check whether --with-libdb was given.
15707if test "${with_libdb+set}" = set; then :
15708  withval=$with_libdb;
15709        case "$withval" in
15710        "" | y | ye | yes | n | no)
15711        as_fn_error $? "Invalid --with-libdb value" "$LINENO" 5
15712          ;;
15713        *) libdbdir="$withval"
15714          ;;
15715        esac
15716
15717fi
15718
15719
15720  minversion=4
15721
15722  DB_CXX_HEADER=""
15723  DB_CXX_LIBS=""
15724  DB_CXX_LDFLAGS=""
15725  DB_CXX_CPPFLAGS=""
15726
15727  if test -z $minversion ; then
15728      minvermajor=0
15729      minverminor=0
15730      minverpatch=0
15731      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB (C++)" >&5
15732$as_echo_n "checking for Berkeley DB (C++)... " >&6; }
15733  else
15734      minvermajor=`echo $minversion | cut -d. -f1`
15735      minverminor=`echo $minversion | cut -d. -f2 -s`
15736      minverpatch=`echo $minversion | cut -d. -f3 -s`
15737      if test -z "$minvermajor"; then minvermajor=0; fi
15738      if test -z "$minverminor"; then minverminor=0; fi
15739      if test -z "$minverpatch"; then minverpatch=0; fi
15740      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB (C++) >= $minvermajor.$minverminor.$minverpatch" >&5
15741$as_echo_n "checking for Berkeley DB (C++) >= $minvermajor.$minverminor.$minverpatch... " >&6; }
15742  fi
15743
15744  if test x$libdbdir != x""; then
15745    DB_CXX_CPPFLAGS="-I${libdbdir}/include"
15746    DB_CXX_LDFLAGS="-L${libdbdir}/lib"
15747    LDFLAGS="$DB_CXX_LDFLAGS $old_LDFLAGS"
15748    CPPFLAGS="$DB_CXX_CPPFLAGS $old_CPPFLAGS"
15749  fi
15750
15751  for major in 4; do
15752      for minor in 0 1 2 3 4 5 6 7 8 9; do
15753	  for version in "${major}.${minor}" "${major}${minor}"; do
15754
15755	      try_libs="-ldb_cxx"
15756	      try_headers="db_cxx.h"
15757	      for db_cxx_hdr in $try_headers ; do
15758		  for db_cxx_lib in $try_libs; do
15759		    db_cxx_lib="$libdbdir `echo "$db_cxx_lib" | sed 's/%/ /g'`"
15760		    LIBS="$old_LIBS $db_cxx_lib"
15761		    #echo "Trying <$db_cxx_lib> <$db_cxx_hdr>"
15762		    if test -z $DB_CXX_HEADER ; then
15763		      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h.  */
15765
15766                                    #include <${db_cxx_hdr}>
15767
15768int
15769main ()
15770{
15771
15772                                    #if !((DB_VERSION_MAJOR > (${minvermajor}) || \
15773				      (DB_VERSION_MAJOR == (${minvermajor}) && \
15774					  DB_VERSION_MINOR > (${minverminor})) || \
15775					  (DB_VERSION_MAJOR == (${minvermajor}) && \
15776					  DB_VERSION_MINOR == (${minverminor}) && \
15777					  DB_VERSION_PATCH >= (${minverpatch}))))
15778                                      #error "too old version"
15779                                    #endif
15780
15781                              DB *db;
15782                              db_create(&db, NULL, 0);
15783
15784  ;
15785  return 0;
15786}
15787_ACEOF
15788if ac_fn_cxx_try_link "$LINENO"; then :
15789
15790				  { $as_echo "$as_me:${as_lineno-$LINENO}: result: header $db_cxx_hdr, library $db_cxx_lib" >&5
15791$as_echo "header $db_cxx_hdr, library $db_cxx_lib" >&6; }
15792				  DB_CXX_HEADER="$db_cxx_hdr"
15793				  DB_CXX_LIBS="$db_cxx_lib"
15794
15795fi
15796rm -f core conftest.err conftest.$ac_objext \
15797    conftest$ac_exeext conftest.$ac_ext
15798                  fi
15799	       done
15800	    done
15801	done
15802     done
15803  done
15804
15805  LIBS="$old_LIBS"
15806  LDFLAGS="$old_LDFLAGS"
15807  CPPFLAGS="$old_CPPFLAGS"
15808
15809  if test -z $DB_CXX_HEADER ; then
15810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15811$as_echo "not found" >&6; }
15812    DB_CXX_LDFLAGS=""
15813    DB_CXX_CPPFLAGS=""
15814    BERKELEY="no"
15815  else
15816
15817cat >>confdefs.h <<_ACEOF
15818#define DB_CXX_HEADER "$DB_CXX_HEADER"
15819_ACEOF
15820
15821
15822
15823
15824
15825	    LDFLAGS="$DB_CXX_LIBS $LDFLAGS"
15826	    BERKELEY="yes"
15827
15828  fi
15829
15830fi
15831
15832
15833
15834export CFLAGS
15835export LIBS
15836export LDFLAGS
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
15838$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
15839if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
15840  $as_echo_n "(cached) " >&6
15841else
15842  ac_check_lib_save_LIBS=$LIBS
15843LIBS="-lpcre  $LIBS"
15844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845/* end confdefs.h.  */
15846
15847/* Override any GCC internal prototype to avoid an error.
15848   Use char because int might match the return type of a GCC
15849   builtin and then its argument prototype would still apply.  */
15850#ifdef __cplusplus
15851extern "C"
15852#endif
15853char pcre_compile ();
15854int
15855main ()
15856{
15857return pcre_compile ();
15858  ;
15859  return 0;
15860}
15861_ACEOF
15862if ac_fn_cxx_try_link "$LINENO"; then :
15863  ac_cv_lib_pcre_pcre_compile=yes
15864else
15865  ac_cv_lib_pcre_pcre_compile=no
15866fi
15867rm -f core conftest.err conftest.$ac_objext \
15868    conftest$ac_exeext conftest.$ac_ext
15869LIBS=$ac_check_lib_save_LIBS
15870fi
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
15872$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
15873if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
15874  cat >>confdefs.h <<_ACEOF
15875#define HAVE_LIBPCRE 1
15876_ACEOF
15877
15878  LIBS="-lpcre $LIBS"
15879
15880fi
15881
15882
15883
15884
15885# these functions must exist
15886for ac_func in getopt fdopen fgetc getenv getpass
15887do :
15888  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15889ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15890if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15891  cat >>confdefs.h <<_ACEOF
15892#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15893_ACEOF
15894
15895fi
15896done
15897
15898
15899# complain if the functions checked for above does not exists
15900if test "$ac_cv_func_getopt" != yes; then
15901  echo
15902  echo "*** Warning: function getopt() not found!"
15903  echo "*** You will not be able to compile dbtool!"
15904  #exit 1
15905fi
15906
15907if test "$ac_cv_func_fdopen" != yes; then
15908  echo
15909  echo "*** Warning: function fdopen() not found!"
15910  echo "*** You will not be able to compile dbtool!"
15911  #exit 1
15912fi
15913
15914if test "$ac_cv_func_fgetc" != yes; then
15915  echo
15916  echo "*** Warning: function fgetc() not found!"
15917  echo "*** You will not be able to compile dbtool!"
15918  #exit 1
15919fi
15920
15921if test "$ac_cv_func_getenv" != yes; then
15922  echo
15923  echo "*** Warning: function getenv() not found!"
15924  echo "*** You will not be able to compile dbtool!"
15925  #exit 1
15926fi
15927
15928if test "$ac_cv_lib_pcre_pcre_compile" != yes; then
15929  echo
15930  echo "*** Warning: the PCRE library could not be found!"
15931  echo "*** You will not be able to compile dbtool!"
15932  echo "*** Please get a copy from http://www.pcre.org,"
15933  echo "*** install it and then retry!"
15934  exit 1
15935fi
15936
15937if test "$GDBM" = "yes"; then
15938    USEDB="GDBM"
15939elif test "$BERKELEY" = "yes"; then
15940    USEDB="BERKELEY-DB"
15941    CXXFLAGS="-DHAVE_BERKELEY=1 $CXXFLAGS"
15942else
15943    echo "Neither gdbm or berkeley-db is instaled!"
15944    exit 1
15945fi
15946
15947
15948# Checks for typedefs, structures, and compiler characteristics.
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15950$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15951if ${ac_cv_c_const+:} false; then :
15952  $as_echo_n "(cached) " >&6
15953else
15954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955/* end confdefs.h.  */
15956
15957int
15958main ()
15959{
15960
15961#ifndef __cplusplus
15962  /* Ultrix mips cc rejects this sort of thing.  */
15963  typedef int charset[2];
15964  const charset cs = { 0, 0 };
15965  /* SunOS 4.1.1 cc rejects this.  */
15966  char const *const *pcpcc;
15967  char **ppc;
15968  /* NEC SVR4.0.2 mips cc rejects this.  */
15969  struct point {int x, y;};
15970  static struct point const zero = {0,0};
15971  /* AIX XL C 1.02.0.0 rejects this.
15972     It does not let you subtract one const X* pointer from another in
15973     an arm of an if-expression whose if-part is not a constant
15974     expression */
15975  const char *g = "string";
15976  pcpcc = &g + (g ? g-g : 0);
15977  /* HPUX 7.0 cc rejects these. */
15978  ++pcpcc;
15979  ppc = (char**) pcpcc;
15980  pcpcc = (char const *const *) ppc;
15981  { /* SCO 3.2v4 cc rejects this sort of thing.  */
15982    char tx;
15983    char *t = &tx;
15984    char const *s = 0 ? (char *) 0 : (char const *) 0;
15985
15986    *t++ = 0;
15987    if (s) return 0;
15988  }
15989  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15990    int x[] = {25, 17};
15991    const int *foo = &x[0];
15992    ++foo;
15993  }
15994  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15995    typedef const int *iptr;
15996    iptr p = 0;
15997    ++p;
15998  }
15999  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16000       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16001    struct s { int j; const int *ap[3]; } bx;
16002    struct s *b = &bx; b->j = 5;
16003  }
16004  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16005    const int foo = 10;
16006    if (!foo) return 0;
16007  }
16008  return !cs[0] && !zero.x;
16009#endif
16010
16011  ;
16012  return 0;
16013}
16014_ACEOF
16015if ac_fn_cxx_try_compile "$LINENO"; then :
16016  ac_cv_c_const=yes
16017else
16018  ac_cv_c_const=no
16019fi
16020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021fi
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16023$as_echo "$ac_cv_c_const" >&6; }
16024if test $ac_cv_c_const = no; then
16025
16026$as_echo "#define const /**/" >>confdefs.h
16027
16028fi
16029
16030
16031# the default prefix
16032
16033
16034# finaly write out
16035ac_config_files="$ac_config_files Makefile"
16036
16037cat >confcache <<\_ACEOF
16038# This file is a shell script that caches the results of configure
16039# tests run on this system so they can be shared between configure
16040# scripts and configure runs, see configure's option --config-cache.
16041# It is not useful on other systems.  If it contains results you don't
16042# want to keep, you may remove or edit it.
16043#
16044# config.status only pays attention to the cache file if you give it
16045# the --recheck option to rerun configure.
16046#
16047# `ac_cv_env_foo' variables (set or unset) will be overridden when
16048# loading this file, other *unset* `ac_cv_foo' will be assigned the
16049# following values.
16050
16051_ACEOF
16052
16053# The following way of writing the cache mishandles newlines in values,
16054# but we know of no workaround that is simple, portable, and efficient.
16055# So, we kill variables containing newlines.
16056# Ultrix sh set writes to stderr and can't be redirected directly,
16057# and sets the high bit in the cache file unless we assign to the vars.
16058(
16059  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16060    eval ac_val=\$$ac_var
16061    case $ac_val in #(
16062    *${as_nl}*)
16063      case $ac_var in #(
16064      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16065$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16066      esac
16067      case $ac_var in #(
16068      _ | IFS | as_nl) ;; #(
16069      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16070      *) { eval $ac_var=; unset $ac_var;} ;;
16071      esac ;;
16072    esac
16073  done
16074
16075  (set) 2>&1 |
16076    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16077    *${as_nl}ac_space=\ *)
16078      # `set' does not quote correctly, so add quotes: double-quote
16079      # substitution turns \\\\ into \\, and sed turns \\ into \.
16080      sed -n \
16081	"s/'/'\\\\''/g;
16082	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16083      ;; #(
16084    *)
16085      # `set' quotes correctly as required by POSIX, so do not add quotes.
16086      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16087      ;;
16088    esac |
16089    sort
16090) |
16091  sed '
16092     /^ac_cv_env_/b end
16093     t clear
16094     :clear
16095     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16096     t end
16097     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16098     :end' >>confcache
16099if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16100  if test -w "$cache_file"; then
16101    if test "x$cache_file" != "x/dev/null"; then
16102      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16103$as_echo "$as_me: updating cache $cache_file" >&6;}
16104      if test ! -f "$cache_file" || test -h "$cache_file"; then
16105	cat confcache >"$cache_file"
16106      else
16107        case $cache_file in #(
16108        */* | ?:*)
16109	  mv -f confcache "$cache_file"$$ &&
16110	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16111        *)
16112	  mv -f confcache "$cache_file" ;;
16113	esac
16114      fi
16115    fi
16116  else
16117    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16118$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16119  fi
16120fi
16121rm -f confcache
16122
16123test "x$prefix" = xNONE && prefix=$ac_default_prefix
16124# Let make expand exec_prefix.
16125test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16126
16127DEFS=-DHAVE_CONFIG_H
16128
16129ac_libobjs=
16130ac_ltlibobjs=
16131U=
16132for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16133  # 1. Remove the extension, and $U if already installed.
16134  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16135  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16136  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16137  #    will be set to the directory where LIBOBJS objects are built.
16138  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16139  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16140done
16141LIBOBJS=$ac_libobjs
16142
16143LTLIBOBJS=$ac_ltlibobjs
16144
16145
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16147$as_echo_n "checking that generated files are newer than configure... " >&6; }
16148   if test -n "$am_sleep_pid"; then
16149     # Hide warnings about reused PIDs.
16150     wait $am_sleep_pid 2>/dev/null
16151   fi
16152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16153$as_echo "done" >&6; }
16154 if test -n "$EXEEXT"; then
16155  am__EXEEXT_TRUE=
16156  am__EXEEXT_FALSE='#'
16157else
16158  am__EXEEXT_TRUE='#'
16159  am__EXEEXT_FALSE=
16160fi
16161
16162if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16163  as_fn_error $? "conditional \"AMDEP\" was never defined.
16164Usually this means the macro was only invoked conditionally." "$LINENO" 5
16165fi
16166if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16167  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16168Usually this means the macro was only invoked conditionally." "$LINENO" 5
16169fi
16170if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16171  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16172Usually this means the macro was only invoked conditionally." "$LINENO" 5
16173fi
16174
16175: "${CONFIG_STATUS=./config.status}"
16176ac_write_fail=0
16177ac_clean_files_save=$ac_clean_files
16178ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16180$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16181as_write_fail=0
16182cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16183#! $SHELL
16184# Generated by $as_me.
16185# Run this file to recreate the current configuration.
16186# Compiler output produced by configure, useful for debugging
16187# configure, is in config.log if it exists.
16188
16189debug=false
16190ac_cs_recheck=false
16191ac_cs_silent=false
16192
16193SHELL=\${CONFIG_SHELL-$SHELL}
16194export SHELL
16195_ASEOF
16196cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16197## -------------------- ##
16198## M4sh Initialization. ##
16199## -------------------- ##
16200
16201# Be more Bourne compatible
16202DUALCASE=1; export DUALCASE # for MKS sh
16203if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16204  emulate sh
16205  NULLCMD=:
16206  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16207  # is contrary to our usage.  Disable this feature.
16208  alias -g '${1+"$@"}'='"$@"'
16209  setopt NO_GLOB_SUBST
16210else
16211  case `(set -o) 2>/dev/null` in #(
16212  *posix*) :
16213    set -o posix ;; #(
16214  *) :
16215     ;;
16216esac
16217fi
16218
16219
16220as_nl='
16221'
16222export as_nl
16223# Printing a long string crashes Solaris 7 /usr/bin/printf.
16224as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16225as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16226as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16227# Prefer a ksh shell builtin over an external printf program on Solaris,
16228# but without wasting forks for bash or zsh.
16229if test -z "$BASH_VERSION$ZSH_VERSION" \
16230    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16231  as_echo='print -r --'
16232  as_echo_n='print -rn --'
16233elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16234  as_echo='printf %s\n'
16235  as_echo_n='printf %s'
16236else
16237  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16238    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16239    as_echo_n='/usr/ucb/echo -n'
16240  else
16241    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16242    as_echo_n_body='eval
16243      arg=$1;
16244      case $arg in #(
16245      *"$as_nl"*)
16246	expr "X$arg" : "X\\(.*\\)$as_nl";
16247	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16248      esac;
16249      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16250    '
16251    export as_echo_n_body
16252    as_echo_n='sh -c $as_echo_n_body as_echo'
16253  fi
16254  export as_echo_body
16255  as_echo='sh -c $as_echo_body as_echo'
16256fi
16257
16258# The user is always right.
16259if test "${PATH_SEPARATOR+set}" != set; then
16260  PATH_SEPARATOR=:
16261  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16262    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16263      PATH_SEPARATOR=';'
16264  }
16265fi
16266
16267
16268# IFS
16269# We need space, tab and new line, in precisely that order.  Quoting is
16270# there to prevent editors from complaining about space-tab.
16271# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16272# splitting by setting IFS to empty value.)
16273IFS=" ""	$as_nl"
16274
16275# Find who we are.  Look in the path if we contain no directory separator.
16276as_myself=
16277case $0 in #((
16278  *[\\/]* ) as_myself=$0 ;;
16279  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16280for as_dir in $PATH
16281do
16282  IFS=$as_save_IFS
16283  test -z "$as_dir" && as_dir=.
16284    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16285  done
16286IFS=$as_save_IFS
16287
16288     ;;
16289esac
16290# We did not find ourselves, most probably we were run as `sh COMMAND'
16291# in which case we are not to be found in the path.
16292if test "x$as_myself" = x; then
16293  as_myself=$0
16294fi
16295if test ! -f "$as_myself"; then
16296  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16297  exit 1
16298fi
16299
16300# Unset variables that we do not need and which cause bugs (e.g. in
16301# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16302# suppresses any "Segmentation fault" message there.  '((' could
16303# trigger a bug in pdksh 5.2.14.
16304for as_var in BASH_ENV ENV MAIL MAILPATH
16305do eval test x\${$as_var+set} = xset \
16306  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16307done
16308PS1='$ '
16309PS2='> '
16310PS4='+ '
16311
16312# NLS nuisances.
16313LC_ALL=C
16314export LC_ALL
16315LANGUAGE=C
16316export LANGUAGE
16317
16318# CDPATH.
16319(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16320
16321
16322# as_fn_error STATUS ERROR [LINENO LOG_FD]
16323# ----------------------------------------
16324# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16325# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16326# script with STATUS, using 1 if that was 0.
16327as_fn_error ()
16328{
16329  as_status=$1; test $as_status -eq 0 && as_status=1
16330  if test "$4"; then
16331    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16332    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16333  fi
16334  $as_echo "$as_me: error: $2" >&2
16335  as_fn_exit $as_status
16336} # as_fn_error
16337
16338
16339# as_fn_set_status STATUS
16340# -----------------------
16341# Set $? to STATUS, without forking.
16342as_fn_set_status ()
16343{
16344  return $1
16345} # as_fn_set_status
16346
16347# as_fn_exit STATUS
16348# -----------------
16349# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16350as_fn_exit ()
16351{
16352  set +e
16353  as_fn_set_status $1
16354  exit $1
16355} # as_fn_exit
16356
16357# as_fn_unset VAR
16358# ---------------
16359# Portably unset VAR.
16360as_fn_unset ()
16361{
16362  { eval $1=; unset $1;}
16363}
16364as_unset=as_fn_unset
16365# as_fn_append VAR VALUE
16366# ----------------------
16367# Append the text in VALUE to the end of the definition contained in VAR. Take
16368# advantage of any shell optimizations that allow amortized linear growth over
16369# repeated appends, instead of the typical quadratic growth present in naive
16370# implementations.
16371if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16372  eval 'as_fn_append ()
16373  {
16374    eval $1+=\$2
16375  }'
16376else
16377  as_fn_append ()
16378  {
16379    eval $1=\$$1\$2
16380  }
16381fi # as_fn_append
16382
16383# as_fn_arith ARG...
16384# ------------------
16385# Perform arithmetic evaluation on the ARGs, and store the result in the
16386# global $as_val. Take advantage of shells that can avoid forks. The arguments
16387# must be portable across $(()) and expr.
16388if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16389  eval 'as_fn_arith ()
16390  {
16391    as_val=$(( $* ))
16392  }'
16393else
16394  as_fn_arith ()
16395  {
16396    as_val=`expr "$@" || test $? -eq 1`
16397  }
16398fi # as_fn_arith
16399
16400
16401if expr a : '\(a\)' >/dev/null 2>&1 &&
16402   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16403  as_expr=expr
16404else
16405  as_expr=false
16406fi
16407
16408if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16409  as_basename=basename
16410else
16411  as_basename=false
16412fi
16413
16414if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16415  as_dirname=dirname
16416else
16417  as_dirname=false
16418fi
16419
16420as_me=`$as_basename -- "$0" ||
16421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16422	 X"$0" : 'X\(//\)$' \| \
16423	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16424$as_echo X/"$0" |
16425    sed '/^.*\/\([^/][^/]*\)\/*$/{
16426	    s//\1/
16427	    q
16428	  }
16429	  /^X\/\(\/\/\)$/{
16430	    s//\1/
16431	    q
16432	  }
16433	  /^X\/\(\/\).*/{
16434	    s//\1/
16435	    q
16436	  }
16437	  s/.*/./; q'`
16438
16439# Avoid depending upon Character Ranges.
16440as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16442as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16443as_cr_digits='0123456789'
16444as_cr_alnum=$as_cr_Letters$as_cr_digits
16445
16446ECHO_C= ECHO_N= ECHO_T=
16447case `echo -n x` in #(((((
16448-n*)
16449  case `echo 'xy\c'` in
16450  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16451  xy)  ECHO_C='\c';;
16452  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16453       ECHO_T='	';;
16454  esac;;
16455*)
16456  ECHO_N='-n';;
16457esac
16458
16459rm -f conf$$ conf$$.exe conf$$.file
16460if test -d conf$$.dir; then
16461  rm -f conf$$.dir/conf$$.file
16462else
16463  rm -f conf$$.dir
16464  mkdir conf$$.dir 2>/dev/null
16465fi
16466if (echo >conf$$.file) 2>/dev/null; then
16467  if ln -s conf$$.file conf$$ 2>/dev/null; then
16468    as_ln_s='ln -s'
16469    # ... but there are two gotchas:
16470    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16471    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16472    # In both cases, we have to default to `cp -pR'.
16473    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16474      as_ln_s='cp -pR'
16475  elif ln conf$$.file conf$$ 2>/dev/null; then
16476    as_ln_s=ln
16477  else
16478    as_ln_s='cp -pR'
16479  fi
16480else
16481  as_ln_s='cp -pR'
16482fi
16483rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16484rmdir conf$$.dir 2>/dev/null
16485
16486
16487# as_fn_mkdir_p
16488# -------------
16489# Create "$as_dir" as a directory, including parents if necessary.
16490as_fn_mkdir_p ()
16491{
16492
16493  case $as_dir in #(
16494  -*) as_dir=./$as_dir;;
16495  esac
16496  test -d "$as_dir" || eval $as_mkdir_p || {
16497    as_dirs=
16498    while :; do
16499      case $as_dir in #(
16500      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16501      *) as_qdir=$as_dir;;
16502      esac
16503      as_dirs="'$as_qdir' $as_dirs"
16504      as_dir=`$as_dirname -- "$as_dir" ||
16505$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16506	 X"$as_dir" : 'X\(//\)[^/]' \| \
16507	 X"$as_dir" : 'X\(//\)$' \| \
16508	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16509$as_echo X"$as_dir" |
16510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16511	    s//\1/
16512	    q
16513	  }
16514	  /^X\(\/\/\)[^/].*/{
16515	    s//\1/
16516	    q
16517	  }
16518	  /^X\(\/\/\)$/{
16519	    s//\1/
16520	    q
16521	  }
16522	  /^X\(\/\).*/{
16523	    s//\1/
16524	    q
16525	  }
16526	  s/.*/./; q'`
16527      test -d "$as_dir" && break
16528    done
16529    test -z "$as_dirs" || eval "mkdir $as_dirs"
16530  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16531
16532
16533} # as_fn_mkdir_p
16534if mkdir -p . 2>/dev/null; then
16535  as_mkdir_p='mkdir -p "$as_dir"'
16536else
16537  test -d ./-p && rmdir ./-p
16538  as_mkdir_p=false
16539fi
16540
16541
16542# as_fn_executable_p FILE
16543# -----------------------
16544# Test if FILE is an executable regular file.
16545as_fn_executable_p ()
16546{
16547  test -f "$1" && test -x "$1"
16548} # as_fn_executable_p
16549as_test_x='test -x'
16550as_executable_p=as_fn_executable_p
16551
16552# Sed expression to map a string onto a valid CPP name.
16553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16554
16555# Sed expression to map a string onto a valid variable name.
16556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16557
16558
16559exec 6>&1
16560## ----------------------------------- ##
16561## Main body of $CONFIG_STATUS script. ##
16562## ----------------------------------- ##
16563_ASEOF
16564test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16565
16566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16567# Save the log message, to keep $0 and so on meaningful, and to
16568# report actual input values of CONFIG_FILES etc. instead of their
16569# values after options handling.
16570ac_log="
16571This file was extended by dbtool $as_me 1.9.1, which was
16572generated by GNU Autoconf 2.69.  Invocation command line was
16573
16574  CONFIG_FILES    = $CONFIG_FILES
16575  CONFIG_HEADERS  = $CONFIG_HEADERS
16576  CONFIG_LINKS    = $CONFIG_LINKS
16577  CONFIG_COMMANDS = $CONFIG_COMMANDS
16578  $ $0 $@
16579
16580on `(hostname || uname -n) 2>/dev/null | sed 1q`
16581"
16582
16583_ACEOF
16584
16585case $ac_config_files in *"
16586"*) set x $ac_config_files; shift; ac_config_files=$*;;
16587esac
16588
16589case $ac_config_headers in *"
16590"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16591esac
16592
16593
16594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595# Files that config.status was made for.
16596config_files="$ac_config_files"
16597config_headers="$ac_config_headers"
16598config_commands="$ac_config_commands"
16599
16600_ACEOF
16601
16602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16603ac_cs_usage="\
16604\`$as_me' instantiates files and other configuration actions
16605from templates according to the current configuration.  Unless the files
16606and actions are specified as TAGs, all are instantiated by default.
16607
16608Usage: $0 [OPTION]... [TAG]...
16609
16610  -h, --help       print this help, then exit
16611  -V, --version    print version number and configuration settings, then exit
16612      --config     print configuration, then exit
16613  -q, --quiet, --silent
16614                   do not print progress messages
16615  -d, --debug      don't remove temporary files
16616      --recheck    update $as_me by reconfiguring in the same conditions
16617      --file=FILE[:TEMPLATE]
16618                   instantiate the configuration file FILE
16619      --header=FILE[:TEMPLATE]
16620                   instantiate the configuration header FILE
16621
16622Configuration files:
16623$config_files
16624
16625Configuration headers:
16626$config_headers
16627
16628Configuration commands:
16629$config_commands
16630
16631Report bugs to <tlinden@cpan.org>."
16632
16633_ACEOF
16634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16635ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16636ac_cs_version="\\
16637dbtool config.status 1.9.1
16638configured by $0, generated by GNU Autoconf 2.69,
16639  with options \\"\$ac_cs_config\\"
16640
16641Copyright (C) 2012 Free Software Foundation, Inc.
16642This config.status script is free software; the Free Software Foundation
16643gives unlimited permission to copy, distribute and modify it."
16644
16645ac_pwd='$ac_pwd'
16646srcdir='$srcdir'
16647INSTALL='$INSTALL'
16648MKDIR_P='$MKDIR_P'
16649AWK='$AWK'
16650test -n "\$AWK" || AWK=awk
16651_ACEOF
16652
16653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654# The default lists apply if the user does not specify any file.
16655ac_need_defaults=:
16656while test $# != 0
16657do
16658  case $1 in
16659  --*=?*)
16660    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16661    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16662    ac_shift=:
16663    ;;
16664  --*=)
16665    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16666    ac_optarg=
16667    ac_shift=:
16668    ;;
16669  *)
16670    ac_option=$1
16671    ac_optarg=$2
16672    ac_shift=shift
16673    ;;
16674  esac
16675
16676  case $ac_option in
16677  # Handling of the options.
16678  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16679    ac_cs_recheck=: ;;
16680  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16681    $as_echo "$ac_cs_version"; exit ;;
16682  --config | --confi | --conf | --con | --co | --c )
16683    $as_echo "$ac_cs_config"; exit ;;
16684  --debug | --debu | --deb | --de | --d | -d )
16685    debug=: ;;
16686  --file | --fil | --fi | --f )
16687    $ac_shift
16688    case $ac_optarg in
16689    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16690    '') as_fn_error $? "missing file argument" ;;
16691    esac
16692    as_fn_append CONFIG_FILES " '$ac_optarg'"
16693    ac_need_defaults=false;;
16694  --header | --heade | --head | --hea )
16695    $ac_shift
16696    case $ac_optarg in
16697    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16698    esac
16699    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16700    ac_need_defaults=false;;
16701  --he | --h)
16702    # Conflict between --help and --header
16703    as_fn_error $? "ambiguous option: \`$1'
16704Try \`$0 --help' for more information.";;
16705  --help | --hel | -h )
16706    $as_echo "$ac_cs_usage"; exit ;;
16707  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16708  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16709    ac_cs_silent=: ;;
16710
16711  # This is an error.
16712  -*) as_fn_error $? "unrecognized option: \`$1'
16713Try \`$0 --help' for more information." ;;
16714
16715  *) as_fn_append ac_config_targets " $1"
16716     ac_need_defaults=false ;;
16717
16718  esac
16719  shift
16720done
16721
16722ac_configure_extra_args=
16723
16724if $ac_cs_silent; then
16725  exec 6>/dev/null
16726  ac_configure_extra_args="$ac_configure_extra_args --silent"
16727fi
16728
16729_ACEOF
16730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16731if \$ac_cs_recheck; then
16732  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16733  shift
16734  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16735  CONFIG_SHELL='$SHELL'
16736  export CONFIG_SHELL
16737  exec "\$@"
16738fi
16739
16740_ACEOF
16741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16742exec 5>>config.log
16743{
16744  echo
16745  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16746## Running $as_me. ##
16747_ASBOX
16748  $as_echo "$ac_log"
16749} >&5
16750
16751_ACEOF
16752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16753#
16754# INIT-COMMANDS
16755#
16756AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16757
16758
16759# The HP-UX ksh and POSIX shell print the target directory to stdout
16760# if CDPATH is set.
16761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16762
16763sed_quote_subst='$sed_quote_subst'
16764double_quote_subst='$double_quote_subst'
16765delay_variable_subst='$delay_variable_subst'
16766macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16767macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16768enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16769enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16770pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16771enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16772SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16773ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16774PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16775host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16776host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16777host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16778build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16779build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16780build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16781SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16782Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16783GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16784EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16785FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16786LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16787NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16788LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16789max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16790ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16791exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16792lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16793lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16794lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16795lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16796lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16797reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16798reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16799OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16800deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16801file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16802file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16803want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16804DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16805sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16806AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16807AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16808archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16809STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16810RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16811old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16812old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16813old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16814lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16815CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16816CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16817compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16818GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16819lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16820lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16821lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16822lt_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"`'
16823nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16824lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16825objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16826MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16827lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16828lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16829lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16830lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16831lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16832need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16833MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16834DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16835NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16836LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16837OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16838OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16839libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16840shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16841extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16842archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16843enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16844export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16845whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16846compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16847old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16848old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16849archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16850archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16851module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16852module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16853with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16854allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16855no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16856hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16857hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16858hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16859hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16860hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16861hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16862hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16863inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16864link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16865always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16866export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16867exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16868include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16869prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16870postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16871file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16872variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16873need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16874need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16875version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16876runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16877shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16878shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16879libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16880library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16881soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16882install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16883postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16884postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16885finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16886finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16887hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16888sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16889sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16890hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16891enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16892enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16893enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16894old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16895striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16896compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16897predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16898postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16899predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16900postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16901compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16902LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16903reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16904reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16905old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16906compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16907GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16908lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16909lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16910lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16911lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16912lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16913archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16914enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16915export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16916whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16917compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16918old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16919old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16920archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16921archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16922module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16923module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16924with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16925allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16926no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16927hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16928hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16929hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16930hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16931hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16932hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16933hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16934inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16935link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16936always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16937export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16938exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16939include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16940prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16941postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16942file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16943hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16944compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16945predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16946postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16947predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16948postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16949compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16950
16951LTCC='$LTCC'
16952LTCFLAGS='$LTCFLAGS'
16953compiler='$compiler_DEFAULT'
16954
16955# A function that is used when there is no print builtin or printf.
16956func_fallback_echo ()
16957{
16958  eval 'cat <<_LTECHO_EOF
16959\$1
16960_LTECHO_EOF'
16961}
16962
16963# Quote evaled strings.
16964for var in SHELL \
16965ECHO \
16966PATH_SEPARATOR \
16967SED \
16968GREP \
16969EGREP \
16970FGREP \
16971LD \
16972NM \
16973LN_S \
16974lt_SP2NL \
16975lt_NL2SP \
16976reload_flag \
16977OBJDUMP \
16978deplibs_check_method \
16979file_magic_cmd \
16980file_magic_glob \
16981want_nocaseglob \
16982DLLTOOL \
16983sharedlib_from_linklib_cmd \
16984AR \
16985AR_FLAGS \
16986archiver_list_spec \
16987STRIP \
16988RANLIB \
16989CC \
16990CFLAGS \
16991compiler \
16992lt_cv_sys_global_symbol_pipe \
16993lt_cv_sys_global_symbol_to_cdecl \
16994lt_cv_sys_global_symbol_to_c_name_address \
16995lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16996nm_file_list_spec \
16997lt_prog_compiler_no_builtin_flag \
16998lt_prog_compiler_pic \
16999lt_prog_compiler_wl \
17000lt_prog_compiler_static \
17001lt_cv_prog_compiler_c_o \
17002need_locks \
17003MANIFEST_TOOL \
17004DSYMUTIL \
17005NMEDIT \
17006LIPO \
17007OTOOL \
17008OTOOL64 \
17009shrext_cmds \
17010export_dynamic_flag_spec \
17011whole_archive_flag_spec \
17012compiler_needs_object \
17013with_gnu_ld \
17014allow_undefined_flag \
17015no_undefined_flag \
17016hardcode_libdir_flag_spec \
17017hardcode_libdir_separator \
17018exclude_expsyms \
17019include_expsyms \
17020file_list_spec \
17021variables_saved_for_relink \
17022libname_spec \
17023library_names_spec \
17024soname_spec \
17025install_override_mode \
17026finish_eval \
17027old_striplib \
17028striplib \
17029compiler_lib_search_dirs \
17030predep_objects \
17031postdep_objects \
17032predeps \
17033postdeps \
17034compiler_lib_search_path \
17035LD_CXX \
17036reload_flag_CXX \
17037compiler_CXX \
17038lt_prog_compiler_no_builtin_flag_CXX \
17039lt_prog_compiler_pic_CXX \
17040lt_prog_compiler_wl_CXX \
17041lt_prog_compiler_static_CXX \
17042lt_cv_prog_compiler_c_o_CXX \
17043export_dynamic_flag_spec_CXX \
17044whole_archive_flag_spec_CXX \
17045compiler_needs_object_CXX \
17046with_gnu_ld_CXX \
17047allow_undefined_flag_CXX \
17048no_undefined_flag_CXX \
17049hardcode_libdir_flag_spec_CXX \
17050hardcode_libdir_separator_CXX \
17051exclude_expsyms_CXX \
17052include_expsyms_CXX \
17053file_list_spec_CXX \
17054compiler_lib_search_dirs_CXX \
17055predep_objects_CXX \
17056postdep_objects_CXX \
17057predeps_CXX \
17058postdeps_CXX \
17059compiler_lib_search_path_CXX; do
17060    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17061    *[\\\\\\\`\\"\\\$]*)
17062      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17063      ;;
17064    *)
17065      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17066      ;;
17067    esac
17068done
17069
17070# Double-quote double-evaled strings.
17071for var in reload_cmds \
17072old_postinstall_cmds \
17073old_postuninstall_cmds \
17074old_archive_cmds \
17075extract_expsyms_cmds \
17076old_archive_from_new_cmds \
17077old_archive_from_expsyms_cmds \
17078archive_cmds \
17079archive_expsym_cmds \
17080module_cmds \
17081module_expsym_cmds \
17082export_symbols_cmds \
17083prelink_cmds \
17084postlink_cmds \
17085postinstall_cmds \
17086postuninstall_cmds \
17087finish_cmds \
17088sys_lib_search_path_spec \
17089sys_lib_dlsearch_path_spec \
17090reload_cmds_CXX \
17091old_archive_cmds_CXX \
17092old_archive_from_new_cmds_CXX \
17093old_archive_from_expsyms_cmds_CXX \
17094archive_cmds_CXX \
17095archive_expsym_cmds_CXX \
17096module_cmds_CXX \
17097module_expsym_cmds_CXX \
17098export_symbols_cmds_CXX \
17099prelink_cmds_CXX \
17100postlink_cmds_CXX; do
17101    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17102    *[\\\\\\\`\\"\\\$]*)
17103      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17104      ;;
17105    *)
17106      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17107      ;;
17108    esac
17109done
17110
17111ac_aux_dir='$ac_aux_dir'
17112xsi_shell='$xsi_shell'
17113lt_shell_append='$lt_shell_append'
17114
17115# See if we are running on zsh, and set the options which allow our
17116# commands through without removal of \ escapes INIT.
17117if test -n "\${ZSH_VERSION+set}" ; then
17118   setopt NO_GLOB_SUBST
17119fi
17120
17121
17122    PACKAGE='$PACKAGE'
17123    VERSION='$VERSION'
17124    TIMESTAMP='$TIMESTAMP'
17125    RM='$RM'
17126    ofile='$ofile'
17127
17128
17129
17130
17131
17132
17133_ACEOF
17134
17135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17136
17137# Handling of arguments.
17138for ac_config_target in $ac_config_targets
17139do
17140  case $ac_config_target in
17141    "platform.h") CONFIG_HEADERS="$CONFIG_HEADERS platform.h" ;;
17142    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17143    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17144    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17145
17146  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17147  esac
17148done
17149
17150
17151# If the user did not use the arguments to specify the items to instantiate,
17152# then the envvar interface is used.  Set only those that are not.
17153# We use the long form for the default assignment because of an extremely
17154# bizarre bug on SunOS 4.1.3.
17155if $ac_need_defaults; then
17156  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17157  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17158  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17159fi
17160
17161# Have a temporary directory for convenience.  Make it in the build tree
17162# simply because there is no reason against having it here, and in addition,
17163# creating and moving files from /tmp can sometimes cause problems.
17164# Hook for its removal unless debugging.
17165# Note that there is a small window in which the directory will not be cleaned:
17166# after its creation but before its name has been assigned to `$tmp'.
17167$debug ||
17168{
17169  tmp= ac_tmp=
17170  trap 'exit_status=$?
17171  : "${ac_tmp:=$tmp}"
17172  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17173' 0
17174  trap 'as_fn_exit 1' 1 2 13 15
17175}
17176# Create a (secure) tmp directory for tmp files.
17177
17178{
17179  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17180  test -d "$tmp"
17181}  ||
17182{
17183  tmp=./conf$$-$RANDOM
17184  (umask 077 && mkdir "$tmp")
17185} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17186ac_tmp=$tmp
17187
17188# Set up the scripts for CONFIG_FILES section.
17189# No need to generate them if there are no CONFIG_FILES.
17190# This happens for instance with `./config.status config.h'.
17191if test -n "$CONFIG_FILES"; then
17192
17193
17194ac_cr=`echo X | tr X '\015'`
17195# On cygwin, bash can eat \r inside `` if the user requested igncr.
17196# But we know of no other shell where ac_cr would be empty at this
17197# point, so we can use a bashism as a fallback.
17198if test "x$ac_cr" = x; then
17199  eval ac_cr=\$\'\\r\'
17200fi
17201ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17202if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17203  ac_cs_awk_cr='\\r'
17204else
17205  ac_cs_awk_cr=$ac_cr
17206fi
17207
17208echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17209_ACEOF
17210
17211
17212{
17213  echo "cat >conf$$subs.awk <<_ACEOF" &&
17214  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17215  echo "_ACEOF"
17216} >conf$$subs.sh ||
17217  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17218ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17219ac_delim='%!_!# '
17220for ac_last_try in false false false false false :; do
17221  . ./conf$$subs.sh ||
17222    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17223
17224  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17225  if test $ac_delim_n = $ac_delim_num; then
17226    break
17227  elif $ac_last_try; then
17228    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17229  else
17230    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17231  fi
17232done
17233rm -f conf$$subs.sh
17234
17235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17236cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17237_ACEOF
17238sed -n '
17239h
17240s/^/S["/; s/!.*/"]=/
17241p
17242g
17243s/^[^!]*!//
17244:repl
17245t repl
17246s/'"$ac_delim"'$//
17247t delim
17248:nl
17249h
17250s/\(.\{148\}\)..*/\1/
17251t more1
17252s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17253p
17254n
17255b repl
17256:more1
17257s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17258p
17259g
17260s/.\{148\}//
17261t nl
17262:delim
17263h
17264s/\(.\{148\}\)..*/\1/
17265t more2
17266s/["\\]/\\&/g; s/^/"/; s/$/"/
17267p
17268b
17269:more2
17270s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17271p
17272g
17273s/.\{148\}//
17274t delim
17275' <conf$$subs.awk | sed '
17276/^[^""]/{
17277  N
17278  s/\n//
17279}
17280' >>$CONFIG_STATUS || ac_write_fail=1
17281rm -f conf$$subs.awk
17282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283_ACAWK
17284cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17285  for (key in S) S_is_set[key] = 1
17286  FS = ""
17287
17288}
17289{
17290  line = $ 0
17291  nfields = split(line, field, "@")
17292  substed = 0
17293  len = length(field[1])
17294  for (i = 2; i < nfields; i++) {
17295    key = field[i]
17296    keylen = length(key)
17297    if (S_is_set[key]) {
17298      value = S[key]
17299      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17300      len += length(value) + length(field[++i])
17301      substed = 1
17302    } else
17303      len += 1 + keylen
17304  }
17305
17306  print line
17307}
17308
17309_ACAWK
17310_ACEOF
17311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17312if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17313  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17314else
17315  cat
17316fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17317  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17318_ACEOF
17319
17320# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17321# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17322# trailing colons and then remove the whole line if VPATH becomes empty
17323# (actually we leave an empty line to preserve line numbers).
17324if test "x$srcdir" = x.; then
17325  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17326h
17327s///
17328s/^/:/
17329s/[	 ]*$/:/
17330s/:\$(srcdir):/:/g
17331s/:\${srcdir}:/:/g
17332s/:@srcdir@:/:/g
17333s/^:*//
17334s/:*$//
17335x
17336s/\(=[	 ]*\).*/\1/
17337G
17338s/\n//
17339s/^[^=]*=[	 ]*$//
17340}'
17341fi
17342
17343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17344fi # test -n "$CONFIG_FILES"
17345
17346# Set up the scripts for CONFIG_HEADERS section.
17347# No need to generate them if there are no CONFIG_HEADERS.
17348# This happens for instance with `./config.status Makefile'.
17349if test -n "$CONFIG_HEADERS"; then
17350cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17351BEGIN {
17352_ACEOF
17353
17354# Transform confdefs.h into an awk script `defines.awk', embedded as
17355# here-document in config.status, that substitutes the proper values into
17356# config.h.in to produce config.h.
17357
17358# Create a delimiter string that does not exist in confdefs.h, to ease
17359# handling of long lines.
17360ac_delim='%!_!# '
17361for ac_last_try in false false :; do
17362  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17363  if test -z "$ac_tt"; then
17364    break
17365  elif $ac_last_try; then
17366    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17367  else
17368    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17369  fi
17370done
17371
17372# For the awk script, D is an array of macro values keyed by name,
17373# likewise P contains macro parameters if any.  Preserve backslash
17374# newline sequences.
17375
17376ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17377sed -n '
17378s/.\{148\}/&'"$ac_delim"'/g
17379t rset
17380:rset
17381s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17382t def
17383d
17384:def
17385s/\\$//
17386t bsnl
17387s/["\\]/\\&/g
17388s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17389D["\1"]=" \3"/p
17390s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17391d
17392:bsnl
17393s/["\\]/\\&/g
17394s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17395D["\1"]=" \3\\\\\\n"\\/p
17396t cont
17397s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17398t cont
17399d
17400:cont
17401n
17402s/.\{148\}/&'"$ac_delim"'/g
17403t clear
17404:clear
17405s/\\$//
17406t bsnlc
17407s/["\\]/\\&/g; s/^/"/; s/$/"/p
17408d
17409:bsnlc
17410s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17411b cont
17412' <confdefs.h | sed '
17413s/'"$ac_delim"'/"\\\
17414"/g' >>$CONFIG_STATUS || ac_write_fail=1
17415
17416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17417  for (key in D) D_is_set[key] = 1
17418  FS = ""
17419}
17420/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17421  line = \$ 0
17422  split(line, arg, " ")
17423  if (arg[1] == "#") {
17424    defundef = arg[2]
17425    mac1 = arg[3]
17426  } else {
17427    defundef = substr(arg[1], 2)
17428    mac1 = arg[2]
17429  }
17430  split(mac1, mac2, "(") #)
17431  macro = mac2[1]
17432  prefix = substr(line, 1, index(line, defundef) - 1)
17433  if (D_is_set[macro]) {
17434    # Preserve the white space surrounding the "#".
17435    print prefix "define", macro P[macro] D[macro]
17436    next
17437  } else {
17438    # Replace #undef with comments.  This is necessary, for example,
17439    # in the case of _POSIX_SOURCE, which is predefined and required
17440    # on some systems where configure will not decide to define it.
17441    if (defundef == "undef") {
17442      print "/*", prefix defundef, macro, "*/"
17443      next
17444    }
17445  }
17446}
17447{ print }
17448_ACAWK
17449_ACEOF
17450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17451  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17452fi # test -n "$CONFIG_HEADERS"
17453
17454
17455eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17456shift
17457for ac_tag
17458do
17459  case $ac_tag in
17460  :[FHLC]) ac_mode=$ac_tag; continue;;
17461  esac
17462  case $ac_mode$ac_tag in
17463  :[FHL]*:*);;
17464  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17465  :[FH]-) ac_tag=-:-;;
17466  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17467  esac
17468  ac_save_IFS=$IFS
17469  IFS=:
17470  set x $ac_tag
17471  IFS=$ac_save_IFS
17472  shift
17473  ac_file=$1
17474  shift
17475
17476  case $ac_mode in
17477  :L) ac_source=$1;;
17478  :[FH])
17479    ac_file_inputs=
17480    for ac_f
17481    do
17482      case $ac_f in
17483      -) ac_f="$ac_tmp/stdin";;
17484      *) # Look for the file first in the build tree, then in the source tree
17485	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17486	 # because $ac_f cannot contain `:'.
17487	 test -f "$ac_f" ||
17488	   case $ac_f in
17489	   [\\/$]*) false;;
17490	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17491	   esac ||
17492	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17493      esac
17494      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17495      as_fn_append ac_file_inputs " '$ac_f'"
17496    done
17497
17498    # Let's still pretend it is `configure' which instantiates (i.e., don't
17499    # use $as_me), people would be surprised to read:
17500    #    /* config.h.  Generated by config.status.  */
17501    configure_input='Generated from '`
17502	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17503	`' by configure.'
17504    if test x"$ac_file" != x-; then
17505      configure_input="$ac_file.  $configure_input"
17506      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17507$as_echo "$as_me: creating $ac_file" >&6;}
17508    fi
17509    # Neutralize special characters interpreted by sed in replacement strings.
17510    case $configure_input in #(
17511    *\&* | *\|* | *\\* )
17512       ac_sed_conf_input=`$as_echo "$configure_input" |
17513       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17514    *) ac_sed_conf_input=$configure_input;;
17515    esac
17516
17517    case $ac_tag in
17518    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17519      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17520    esac
17521    ;;
17522  esac
17523
17524  ac_dir=`$as_dirname -- "$ac_file" ||
17525$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17526	 X"$ac_file" : 'X\(//\)[^/]' \| \
17527	 X"$ac_file" : 'X\(//\)$' \| \
17528	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17529$as_echo X"$ac_file" |
17530    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17531	    s//\1/
17532	    q
17533	  }
17534	  /^X\(\/\/\)[^/].*/{
17535	    s//\1/
17536	    q
17537	  }
17538	  /^X\(\/\/\)$/{
17539	    s//\1/
17540	    q
17541	  }
17542	  /^X\(\/\).*/{
17543	    s//\1/
17544	    q
17545	  }
17546	  s/.*/./; q'`
17547  as_dir="$ac_dir"; as_fn_mkdir_p
17548  ac_builddir=.
17549
17550case "$ac_dir" in
17551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17552*)
17553  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17554  # A ".." for each directory in $ac_dir_suffix.
17555  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17556  case $ac_top_builddir_sub in
17557  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17558  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17559  esac ;;
17560esac
17561ac_abs_top_builddir=$ac_pwd
17562ac_abs_builddir=$ac_pwd$ac_dir_suffix
17563# for backward compatibility:
17564ac_top_builddir=$ac_top_build_prefix
17565
17566case $srcdir in
17567  .)  # We are building in place.
17568    ac_srcdir=.
17569    ac_top_srcdir=$ac_top_builddir_sub
17570    ac_abs_top_srcdir=$ac_pwd ;;
17571  [\\/]* | ?:[\\/]* )  # Absolute name.
17572    ac_srcdir=$srcdir$ac_dir_suffix;
17573    ac_top_srcdir=$srcdir
17574    ac_abs_top_srcdir=$srcdir ;;
17575  *) # Relative name.
17576    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17577    ac_top_srcdir=$ac_top_build_prefix$srcdir
17578    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17579esac
17580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17581
17582
17583  case $ac_mode in
17584  :F)
17585  #
17586  # CONFIG_FILE
17587  #
17588
17589  case $INSTALL in
17590  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17591  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17592  esac
17593  ac_MKDIR_P=$MKDIR_P
17594  case $MKDIR_P in
17595  [\\/$]* | ?:[\\/]* ) ;;
17596  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17597  esac
17598_ACEOF
17599
17600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17601# If the template does not know about datarootdir, expand it.
17602# FIXME: This hack should be removed a few years after 2.60.
17603ac_datarootdir_hack=; ac_datarootdir_seen=
17604ac_sed_dataroot='
17605/datarootdir/ {
17606  p
17607  q
17608}
17609/@datadir@/p
17610/@docdir@/p
17611/@infodir@/p
17612/@localedir@/p
17613/@mandir@/p'
17614case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17615*datarootdir*) ac_datarootdir_seen=yes;;
17616*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17617  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17618$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17619_ACEOF
17620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621  ac_datarootdir_hack='
17622  s&@datadir@&$datadir&g
17623  s&@docdir@&$docdir&g
17624  s&@infodir@&$infodir&g
17625  s&@localedir@&$localedir&g
17626  s&@mandir@&$mandir&g
17627  s&\\\${datarootdir}&$datarootdir&g' ;;
17628esac
17629_ACEOF
17630
17631# Neutralize VPATH when `$srcdir' = `.'.
17632# Shell code in configure.ac might set extrasub.
17633# FIXME: do we really want to maintain this feature?
17634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17635ac_sed_extra="$ac_vpsub
17636$extrasub
17637_ACEOF
17638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17639:t
17640/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17641s|@configure_input@|$ac_sed_conf_input|;t t
17642s&@top_builddir@&$ac_top_builddir_sub&;t t
17643s&@top_build_prefix@&$ac_top_build_prefix&;t t
17644s&@srcdir@&$ac_srcdir&;t t
17645s&@abs_srcdir@&$ac_abs_srcdir&;t t
17646s&@top_srcdir@&$ac_top_srcdir&;t t
17647s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17648s&@builddir@&$ac_builddir&;t t
17649s&@abs_builddir@&$ac_abs_builddir&;t t
17650s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17651s&@INSTALL@&$ac_INSTALL&;t t
17652s&@MKDIR_P@&$ac_MKDIR_P&;t t
17653$ac_datarootdir_hack
17654"
17655eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17656  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17657
17658test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17659  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17660  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17661      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17662  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17663which seems to be undefined.  Please make sure it is defined" >&5
17664$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17665which seems to be undefined.  Please make sure it is defined" >&2;}
17666
17667  rm -f "$ac_tmp/stdin"
17668  case $ac_file in
17669  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17670  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17671  esac \
17672  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17673 ;;
17674  :H)
17675  #
17676  # CONFIG_HEADER
17677  #
17678  if test x"$ac_file" != x-; then
17679    {
17680      $as_echo "/* $configure_input  */" \
17681      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17682    } >"$ac_tmp/config.h" \
17683      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17684    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17685      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17686$as_echo "$as_me: $ac_file is unchanged" >&6;}
17687    else
17688      rm -f "$ac_file"
17689      mv "$ac_tmp/config.h" "$ac_file" \
17690	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17691    fi
17692  else
17693    $as_echo "/* $configure_input  */" \
17694      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17695      || as_fn_error $? "could not create -" "$LINENO" 5
17696  fi
17697# Compute "$ac_file"'s index in $config_headers.
17698_am_arg="$ac_file"
17699_am_stamp_count=1
17700for _am_header in $config_headers :; do
17701  case $_am_header in
17702    $_am_arg | $_am_arg:* )
17703      break ;;
17704    * )
17705      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17706  esac
17707done
17708echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17709$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17710	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17711	 X"$_am_arg" : 'X\(//\)$' \| \
17712	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17713$as_echo X"$_am_arg" |
17714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17715	    s//\1/
17716	    q
17717	  }
17718	  /^X\(\/\/\)[^/].*/{
17719	    s//\1/
17720	    q
17721	  }
17722	  /^X\(\/\/\)$/{
17723	    s//\1/
17724	    q
17725	  }
17726	  /^X\(\/\).*/{
17727	    s//\1/
17728	    q
17729	  }
17730	  s/.*/./; q'`/stamp-h$_am_stamp_count
17731 ;;
17732
17733  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17734$as_echo "$as_me: executing $ac_file commands" >&6;}
17735 ;;
17736  esac
17737
17738
17739  case $ac_file$ac_mode in
17740    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17741  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17742  # are listed without --file.  Let's play safe and only enable the eval
17743  # if we detect the quoting.
17744  case $CONFIG_FILES in
17745  *\'*) eval set x "$CONFIG_FILES" ;;
17746  *)   set x $CONFIG_FILES ;;
17747  esac
17748  shift
17749  for mf
17750  do
17751    # Strip MF so we end up with the name of the file.
17752    mf=`echo "$mf" | sed -e 's/:.*$//'`
17753    # Check whether this is an Automake generated Makefile or not.
17754    # We used to match only the files named 'Makefile.in', but
17755    # some people rename them; so instead we look at the file content.
17756    # Grep'ing the first line is not enough: some people post-process
17757    # each Makefile.in and add a new line on top of each file to say so.
17758    # Grep'ing the whole file is not good either: AIX grep has a line
17759    # limit of 2048, but all sed's we know have understand at least 4000.
17760    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17761      dirpart=`$as_dirname -- "$mf" ||
17762$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763	 X"$mf" : 'X\(//\)[^/]' \| \
17764	 X"$mf" : 'X\(//\)$' \| \
17765	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17766$as_echo X"$mf" |
17767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17768	    s//\1/
17769	    q
17770	  }
17771	  /^X\(\/\/\)[^/].*/{
17772	    s//\1/
17773	    q
17774	  }
17775	  /^X\(\/\/\)$/{
17776	    s//\1/
17777	    q
17778	  }
17779	  /^X\(\/\).*/{
17780	    s//\1/
17781	    q
17782	  }
17783	  s/.*/./; q'`
17784    else
17785      continue
17786    fi
17787    # Extract the definition of DEPDIR, am__include, and am__quote
17788    # from the Makefile without running 'make'.
17789    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17790    test -z "$DEPDIR" && continue
17791    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17792    test -z "am__include" && continue
17793    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17794    # Find all dependency output files, they are included files with
17795    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17796    # simplest approach to changing $(DEPDIR) to its actual value in the
17797    # expansion.
17798    for file in `sed -n "
17799      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17800	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17801      # Make sure the directory exists.
17802      test -f "$dirpart/$file" && continue
17803      fdir=`$as_dirname -- "$file" ||
17804$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17805	 X"$file" : 'X\(//\)[^/]' \| \
17806	 X"$file" : 'X\(//\)$' \| \
17807	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17808$as_echo X"$file" |
17809    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17810	    s//\1/
17811	    q
17812	  }
17813	  /^X\(\/\/\)[^/].*/{
17814	    s//\1/
17815	    q
17816	  }
17817	  /^X\(\/\/\)$/{
17818	    s//\1/
17819	    q
17820	  }
17821	  /^X\(\/\).*/{
17822	    s//\1/
17823	    q
17824	  }
17825	  s/.*/./; q'`
17826      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17827      # echo "creating $dirpart/$file"
17828      echo '# dummy' > "$dirpart/$file"
17829    done
17830  done
17831}
17832 ;;
17833    "libtool":C)
17834
17835    # See if we are running on zsh, and set the options which allow our
17836    # commands through without removal of \ escapes.
17837    if test -n "${ZSH_VERSION+set}" ; then
17838      setopt NO_GLOB_SUBST
17839    fi
17840
17841    cfgfile="${ofile}T"
17842    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17843    $RM "$cfgfile"
17844
17845    cat <<_LT_EOF >> "$cfgfile"
17846#! $SHELL
17847
17848# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17849# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17850# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17851# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17852#
17853#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17854#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17855#                 Foundation, Inc.
17856#   Written by Gordon Matzigkeit, 1996
17857#
17858#   This file is part of GNU Libtool.
17859#
17860# GNU Libtool is free software; you can redistribute it and/or
17861# modify it under the terms of the GNU General Public License as
17862# published by the Free Software Foundation; either version 2 of
17863# the License, or (at your option) any later version.
17864#
17865# As a special exception to the GNU General Public License,
17866# if you distribute this file as part of a program or library that
17867# is built using GNU Libtool, you may include this file under the
17868# same distribution terms that you use for the rest of that program.
17869#
17870# GNU Libtool is distributed in the hope that it will be useful,
17871# but WITHOUT ANY WARRANTY; without even the implied warranty of
17872# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17873# GNU General Public License for more details.
17874#
17875# You should have received a copy of the GNU General Public License
17876# along with GNU Libtool; see the file COPYING.  If not, a copy
17877# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17878# obtained by writing to the Free Software Foundation, Inc.,
17879# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17880
17881
17882# The names of the tagged configurations supported by this script.
17883available_tags="CXX "
17884
17885# ### BEGIN LIBTOOL CONFIG
17886
17887# Which release of libtool.m4 was used?
17888macro_version=$macro_version
17889macro_revision=$macro_revision
17890
17891# Whether or not to build shared libraries.
17892build_libtool_libs=$enable_shared
17893
17894# Whether or not to build static libraries.
17895build_old_libs=$enable_static
17896
17897# What type of objects to build.
17898pic_mode=$pic_mode
17899
17900# Whether or not to optimize for fast installation.
17901fast_install=$enable_fast_install
17902
17903# Shell to use when invoking shell scripts.
17904SHELL=$lt_SHELL
17905
17906# An echo program that protects backslashes.
17907ECHO=$lt_ECHO
17908
17909# The PATH separator for the build system.
17910PATH_SEPARATOR=$lt_PATH_SEPARATOR
17911
17912# The host system.
17913host_alias=$host_alias
17914host=$host
17915host_os=$host_os
17916
17917# The build system.
17918build_alias=$build_alias
17919build=$build
17920build_os=$build_os
17921
17922# A sed program that does not truncate output.
17923SED=$lt_SED
17924
17925# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17926Xsed="\$SED -e 1s/^X//"
17927
17928# A grep program that handles long lines.
17929GREP=$lt_GREP
17930
17931# An ERE matcher.
17932EGREP=$lt_EGREP
17933
17934# A literal string matcher.
17935FGREP=$lt_FGREP
17936
17937# A BSD- or MS-compatible name lister.
17938NM=$lt_NM
17939
17940# Whether we need soft or hard links.
17941LN_S=$lt_LN_S
17942
17943# What is the maximum length of a command?
17944max_cmd_len=$max_cmd_len
17945
17946# Object file suffix (normally "o").
17947objext=$ac_objext
17948
17949# Executable file suffix (normally "").
17950exeext=$exeext
17951
17952# whether the shell understands "unset".
17953lt_unset=$lt_unset
17954
17955# turn spaces into newlines.
17956SP2NL=$lt_lt_SP2NL
17957
17958# turn newlines into spaces.
17959NL2SP=$lt_lt_NL2SP
17960
17961# convert \$build file names to \$host format.
17962to_host_file_cmd=$lt_cv_to_host_file_cmd
17963
17964# convert \$build files to toolchain format.
17965to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17966
17967# An object symbol dumper.
17968OBJDUMP=$lt_OBJDUMP
17969
17970# Method to check whether dependent libraries are shared objects.
17971deplibs_check_method=$lt_deplibs_check_method
17972
17973# Command to use when deplibs_check_method = "file_magic".
17974file_magic_cmd=$lt_file_magic_cmd
17975
17976# How to find potential files when deplibs_check_method = "file_magic".
17977file_magic_glob=$lt_file_magic_glob
17978
17979# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17980want_nocaseglob=$lt_want_nocaseglob
17981
17982# DLL creation program.
17983DLLTOOL=$lt_DLLTOOL
17984
17985# Command to associate shared and link libraries.
17986sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17987
17988# The archiver.
17989AR=$lt_AR
17990
17991# Flags to create an archive.
17992AR_FLAGS=$lt_AR_FLAGS
17993
17994# How to feed a file listing to the archiver.
17995archiver_list_spec=$lt_archiver_list_spec
17996
17997# A symbol stripping program.
17998STRIP=$lt_STRIP
17999
18000# Commands used to install an old-style archive.
18001RANLIB=$lt_RANLIB
18002old_postinstall_cmds=$lt_old_postinstall_cmds
18003old_postuninstall_cmds=$lt_old_postuninstall_cmds
18004
18005# Whether to use a lock for old archive extraction.
18006lock_old_archive_extraction=$lock_old_archive_extraction
18007
18008# A C compiler.
18009LTCC=$lt_CC
18010
18011# LTCC compiler flags.
18012LTCFLAGS=$lt_CFLAGS
18013
18014# Take the output of nm and produce a listing of raw symbols and C names.
18015global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18016
18017# Transform the output of nm in a proper C declaration.
18018global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18019
18020# Transform the output of nm in a C name address pair.
18021global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18022
18023# Transform the output of nm in a C name address pair when lib prefix is needed.
18024global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18025
18026# Specify filename containing input files for \$NM.
18027nm_file_list_spec=$lt_nm_file_list_spec
18028
18029# The root where to search for dependent libraries,and in which our libraries should be installed.
18030lt_sysroot=$lt_sysroot
18031
18032# The name of the directory that contains temporary libtool files.
18033objdir=$objdir
18034
18035# Used to examine libraries when file_magic_cmd begins with "file".
18036MAGIC_CMD=$MAGIC_CMD
18037
18038# Must we lock files when doing compilation?
18039need_locks=$lt_need_locks
18040
18041# Manifest tool.
18042MANIFEST_TOOL=$lt_MANIFEST_TOOL
18043
18044# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18045DSYMUTIL=$lt_DSYMUTIL
18046
18047# Tool to change global to local symbols on Mac OS X.
18048NMEDIT=$lt_NMEDIT
18049
18050# Tool to manipulate fat objects and archives on Mac OS X.
18051LIPO=$lt_LIPO
18052
18053# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18054OTOOL=$lt_OTOOL
18055
18056# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18057OTOOL64=$lt_OTOOL64
18058
18059# Old archive suffix (normally "a").
18060libext=$libext
18061
18062# Shared library suffix (normally ".so").
18063shrext_cmds=$lt_shrext_cmds
18064
18065# The commands to extract the exported symbol list from a shared archive.
18066extract_expsyms_cmds=$lt_extract_expsyms_cmds
18067
18068# Variables whose values should be saved in libtool wrapper scripts and
18069# restored at link time.
18070variables_saved_for_relink=$lt_variables_saved_for_relink
18071
18072# Do we need the "lib" prefix for modules?
18073need_lib_prefix=$need_lib_prefix
18074
18075# Do we need a version for libraries?
18076need_version=$need_version
18077
18078# Library versioning type.
18079version_type=$version_type
18080
18081# Shared library runtime path variable.
18082runpath_var=$runpath_var
18083
18084# Shared library path variable.
18085shlibpath_var=$shlibpath_var
18086
18087# Is shlibpath searched before the hard-coded library search path?
18088shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18089
18090# Format of library name prefix.
18091libname_spec=$lt_libname_spec
18092
18093# List of archive names.  First name is the real one, the rest are links.
18094# The last name is the one that the linker finds with -lNAME
18095library_names_spec=$lt_library_names_spec
18096
18097# The coded name of the library, if different from the real name.
18098soname_spec=$lt_soname_spec
18099
18100# Permission mode override for installation of shared libraries.
18101install_override_mode=$lt_install_override_mode
18102
18103# Command to use after installation of a shared archive.
18104postinstall_cmds=$lt_postinstall_cmds
18105
18106# Command to use after uninstallation of a shared archive.
18107postuninstall_cmds=$lt_postuninstall_cmds
18108
18109# Commands used to finish a libtool library installation in a directory.
18110finish_cmds=$lt_finish_cmds
18111
18112# As "finish_cmds", except a single script fragment to be evaled but
18113# not shown.
18114finish_eval=$lt_finish_eval
18115
18116# Whether we should hardcode library paths into libraries.
18117hardcode_into_libs=$hardcode_into_libs
18118
18119# Compile-time system search path for libraries.
18120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18121
18122# Run-time system search path for libraries.
18123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18124
18125# Whether dlopen is supported.
18126dlopen_support=$enable_dlopen
18127
18128# Whether dlopen of programs is supported.
18129dlopen_self=$enable_dlopen_self
18130
18131# Whether dlopen of statically linked programs is supported.
18132dlopen_self_static=$enable_dlopen_self_static
18133
18134# Commands to strip libraries.
18135old_striplib=$lt_old_striplib
18136striplib=$lt_striplib
18137
18138
18139# The linker used to build libraries.
18140LD=$lt_LD
18141
18142# How to create reloadable object files.
18143reload_flag=$lt_reload_flag
18144reload_cmds=$lt_reload_cmds
18145
18146# Commands used to build an old-style archive.
18147old_archive_cmds=$lt_old_archive_cmds
18148
18149# A language specific compiler.
18150CC=$lt_compiler
18151
18152# Is the compiler the GNU compiler?
18153with_gcc=$GCC
18154
18155# Compiler flag to turn off builtin functions.
18156no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18157
18158# Additional compiler flags for building library objects.
18159pic_flag=$lt_lt_prog_compiler_pic
18160
18161# How to pass a linker flag through the compiler.
18162wl=$lt_lt_prog_compiler_wl
18163
18164# Compiler flag to prevent dynamic linking.
18165link_static_flag=$lt_lt_prog_compiler_static
18166
18167# Does compiler simultaneously support -c and -o options?
18168compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18169
18170# Whether or not to add -lc for building shared libraries.
18171build_libtool_need_lc=$archive_cmds_need_lc
18172
18173# Whether or not to disallow shared libs when runtime libs are static.
18174allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18175
18176# Compiler flag to allow reflexive dlopens.
18177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18178
18179# Compiler flag to generate shared objects directly from archives.
18180whole_archive_flag_spec=$lt_whole_archive_flag_spec
18181
18182# Whether the compiler copes with passing no objects directly.
18183compiler_needs_object=$lt_compiler_needs_object
18184
18185# Create an old-style archive from a shared archive.
18186old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18187
18188# Create a temporary old-style archive to link instead of a shared archive.
18189old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18190
18191# Commands used to build a shared archive.
18192archive_cmds=$lt_archive_cmds
18193archive_expsym_cmds=$lt_archive_expsym_cmds
18194
18195# Commands used to build a loadable module if different from building
18196# a shared archive.
18197module_cmds=$lt_module_cmds
18198module_expsym_cmds=$lt_module_expsym_cmds
18199
18200# Whether we are building with GNU ld or not.
18201with_gnu_ld=$lt_with_gnu_ld
18202
18203# Flag that allows shared libraries with undefined symbols to be built.
18204allow_undefined_flag=$lt_allow_undefined_flag
18205
18206# Flag that enforces no undefined symbols.
18207no_undefined_flag=$lt_no_undefined_flag
18208
18209# Flag to hardcode \$libdir into a binary during linking.
18210# This must work even if \$libdir does not exist
18211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18212
18213# Whether we need a single "-rpath" flag with a separated argument.
18214hardcode_libdir_separator=$lt_hardcode_libdir_separator
18215
18216# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18217# DIR into the resulting binary.
18218hardcode_direct=$hardcode_direct
18219
18220# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18221# DIR into the resulting binary and the resulting library dependency is
18222# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18223# library is relocated.
18224hardcode_direct_absolute=$hardcode_direct_absolute
18225
18226# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18227# into the resulting binary.
18228hardcode_minus_L=$hardcode_minus_L
18229
18230# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18231# into the resulting binary.
18232hardcode_shlibpath_var=$hardcode_shlibpath_var
18233
18234# Set to "yes" if building a shared library automatically hardcodes DIR
18235# into the library and all subsequent libraries and executables linked
18236# against it.
18237hardcode_automatic=$hardcode_automatic
18238
18239# Set to yes if linker adds runtime paths of dependent libraries
18240# to runtime path list.
18241inherit_rpath=$inherit_rpath
18242
18243# Whether libtool must link a program against all its dependency libraries.
18244link_all_deplibs=$link_all_deplibs
18245
18246# Set to "yes" if exported symbols are required.
18247always_export_symbols=$always_export_symbols
18248
18249# The commands to list exported symbols.
18250export_symbols_cmds=$lt_export_symbols_cmds
18251
18252# Symbols that should not be listed in the preloaded symbols.
18253exclude_expsyms=$lt_exclude_expsyms
18254
18255# Symbols that must always be exported.
18256include_expsyms=$lt_include_expsyms
18257
18258# Commands necessary for linking programs (against libraries) with templates.
18259prelink_cmds=$lt_prelink_cmds
18260
18261# Commands necessary for finishing linking programs.
18262postlink_cmds=$lt_postlink_cmds
18263
18264# Specify filename containing input files.
18265file_list_spec=$lt_file_list_spec
18266
18267# How to hardcode a shared library path into an executable.
18268hardcode_action=$hardcode_action
18269
18270# The directories searched by this compiler when creating a shared library.
18271compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18272
18273# Dependencies to place before and after the objects being linked to
18274# create a shared library.
18275predep_objects=$lt_predep_objects
18276postdep_objects=$lt_postdep_objects
18277predeps=$lt_predeps
18278postdeps=$lt_postdeps
18279
18280# The library search path used internally by the compiler when linking
18281# a shared library.
18282compiler_lib_search_path=$lt_compiler_lib_search_path
18283
18284# ### END LIBTOOL CONFIG
18285
18286_LT_EOF
18287
18288  case $host_os in
18289  aix3*)
18290    cat <<\_LT_EOF >> "$cfgfile"
18291# AIX sometimes has problems with the GCC collect2 program.  For some
18292# reason, if we set the COLLECT_NAMES environment variable, the problems
18293# vanish in a puff of smoke.
18294if test "X${COLLECT_NAMES+set}" != Xset; then
18295  COLLECT_NAMES=
18296  export COLLECT_NAMES
18297fi
18298_LT_EOF
18299    ;;
18300  esac
18301
18302
18303ltmain="$ac_aux_dir/ltmain.sh"
18304
18305
18306  # We use sed instead of cat because bash on DJGPP gets confused if
18307  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18308  # text mode, it properly converts lines to CR/LF.  This bash problem
18309  # is reportedly fixed, but why not run on old versions too?
18310  sed '$q' "$ltmain" >> "$cfgfile" \
18311     || (rm -f "$cfgfile"; exit 1)
18312
18313  if test x"$xsi_shell" = xyes; then
18314  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18315func_dirname ()\
18316{\
18317\    case ${1} in\
18318\      */*) func_dirname_result="${1%/*}${2}" ;;\
18319\      *  ) func_dirname_result="${3}" ;;\
18320\    esac\
18321} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18322  && mv -f "$cfgfile.tmp" "$cfgfile" \
18323    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18324test 0 -eq $? || _lt_function_replace_fail=:
18325
18326
18327  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18328func_basename ()\
18329{\
18330\    func_basename_result="${1##*/}"\
18331} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18332  && mv -f "$cfgfile.tmp" "$cfgfile" \
18333    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18334test 0 -eq $? || _lt_function_replace_fail=:
18335
18336
18337  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18338func_dirname_and_basename ()\
18339{\
18340\    case ${1} in\
18341\      */*) func_dirname_result="${1%/*}${2}" ;;\
18342\      *  ) func_dirname_result="${3}" ;;\
18343\    esac\
18344\    func_basename_result="${1##*/}"\
18345} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18346  && mv -f "$cfgfile.tmp" "$cfgfile" \
18347    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18348test 0 -eq $? || _lt_function_replace_fail=:
18349
18350
18351  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18352func_stripname ()\
18353{\
18354\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18355\    # positional parameters, so assign one to ordinary parameter first.\
18356\    func_stripname_result=${3}\
18357\    func_stripname_result=${func_stripname_result#"${1}"}\
18358\    func_stripname_result=${func_stripname_result%"${2}"}\
18359} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18360  && mv -f "$cfgfile.tmp" "$cfgfile" \
18361    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18362test 0 -eq $? || _lt_function_replace_fail=:
18363
18364
18365  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18366func_split_long_opt ()\
18367{\
18368\    func_split_long_opt_name=${1%%=*}\
18369\    func_split_long_opt_arg=${1#*=}\
18370} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18371  && mv -f "$cfgfile.tmp" "$cfgfile" \
18372    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18373test 0 -eq $? || _lt_function_replace_fail=:
18374
18375
18376  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18377func_split_short_opt ()\
18378{\
18379\    func_split_short_opt_arg=${1#??}\
18380\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18381} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18382  && mv -f "$cfgfile.tmp" "$cfgfile" \
18383    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18384test 0 -eq $? || _lt_function_replace_fail=:
18385
18386
18387  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18388func_lo2o ()\
18389{\
18390\    case ${1} in\
18391\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18392\      *)    func_lo2o_result=${1} ;;\
18393\    esac\
18394} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18395  && mv -f "$cfgfile.tmp" "$cfgfile" \
18396    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18397test 0 -eq $? || _lt_function_replace_fail=:
18398
18399
18400  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18401func_xform ()\
18402{\
18403    func_xform_result=${1%.*}.lo\
18404} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18405  && mv -f "$cfgfile.tmp" "$cfgfile" \
18406    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18407test 0 -eq $? || _lt_function_replace_fail=:
18408
18409
18410  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18411func_arith ()\
18412{\
18413    func_arith_result=$(( $* ))\
18414} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18415  && mv -f "$cfgfile.tmp" "$cfgfile" \
18416    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18417test 0 -eq $? || _lt_function_replace_fail=:
18418
18419
18420  sed -e '/^func_len ()$/,/^} # func_len /c\
18421func_len ()\
18422{\
18423    func_len_result=${#1}\
18424} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18425  && mv -f "$cfgfile.tmp" "$cfgfile" \
18426    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18427test 0 -eq $? || _lt_function_replace_fail=:
18428
18429fi
18430
18431if test x"$lt_shell_append" = xyes; then
18432  sed -e '/^func_append ()$/,/^} # func_append /c\
18433func_append ()\
18434{\
18435    eval "${1}+=\\${2}"\
18436} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18437  && mv -f "$cfgfile.tmp" "$cfgfile" \
18438    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18439test 0 -eq $? || _lt_function_replace_fail=:
18440
18441
18442  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18443func_append_quoted ()\
18444{\
18445\    func_quote_for_eval "${2}"\
18446\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18447} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18448  && mv -f "$cfgfile.tmp" "$cfgfile" \
18449    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18450test 0 -eq $? || _lt_function_replace_fail=:
18451
18452
18453  # Save a `func_append' function call where possible by direct use of '+='
18454  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18455    && mv -f "$cfgfile.tmp" "$cfgfile" \
18456      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18457  test 0 -eq $? || _lt_function_replace_fail=:
18458else
18459  # Save a `func_append' function call even when '+=' is not available
18460  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18461    && mv -f "$cfgfile.tmp" "$cfgfile" \
18462      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18463  test 0 -eq $? || _lt_function_replace_fail=:
18464fi
18465
18466if test x"$_lt_function_replace_fail" = x":"; then
18467  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18468$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18469fi
18470
18471
18472   mv -f "$cfgfile" "$ofile" ||
18473    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18474  chmod +x "$ofile"
18475
18476
18477    cat <<_LT_EOF >> "$ofile"
18478
18479# ### BEGIN LIBTOOL TAG CONFIG: CXX
18480
18481# The linker used to build libraries.
18482LD=$lt_LD_CXX
18483
18484# How to create reloadable object files.
18485reload_flag=$lt_reload_flag_CXX
18486reload_cmds=$lt_reload_cmds_CXX
18487
18488# Commands used to build an old-style archive.
18489old_archive_cmds=$lt_old_archive_cmds_CXX
18490
18491# A language specific compiler.
18492CC=$lt_compiler_CXX
18493
18494# Is the compiler the GNU compiler?
18495with_gcc=$GCC_CXX
18496
18497# Compiler flag to turn off builtin functions.
18498no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18499
18500# Additional compiler flags for building library objects.
18501pic_flag=$lt_lt_prog_compiler_pic_CXX
18502
18503# How to pass a linker flag through the compiler.
18504wl=$lt_lt_prog_compiler_wl_CXX
18505
18506# Compiler flag to prevent dynamic linking.
18507link_static_flag=$lt_lt_prog_compiler_static_CXX
18508
18509# Does compiler simultaneously support -c and -o options?
18510compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18511
18512# Whether or not to add -lc for building shared libraries.
18513build_libtool_need_lc=$archive_cmds_need_lc_CXX
18514
18515# Whether or not to disallow shared libs when runtime libs are static.
18516allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18517
18518# Compiler flag to allow reflexive dlopens.
18519export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18520
18521# Compiler flag to generate shared objects directly from archives.
18522whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18523
18524# Whether the compiler copes with passing no objects directly.
18525compiler_needs_object=$lt_compiler_needs_object_CXX
18526
18527# Create an old-style archive from a shared archive.
18528old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18529
18530# Create a temporary old-style archive to link instead of a shared archive.
18531old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18532
18533# Commands used to build a shared archive.
18534archive_cmds=$lt_archive_cmds_CXX
18535archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18536
18537# Commands used to build a loadable module if different from building
18538# a shared archive.
18539module_cmds=$lt_module_cmds_CXX
18540module_expsym_cmds=$lt_module_expsym_cmds_CXX
18541
18542# Whether we are building with GNU ld or not.
18543with_gnu_ld=$lt_with_gnu_ld_CXX
18544
18545# Flag that allows shared libraries with undefined symbols to be built.
18546allow_undefined_flag=$lt_allow_undefined_flag_CXX
18547
18548# Flag that enforces no undefined symbols.
18549no_undefined_flag=$lt_no_undefined_flag_CXX
18550
18551# Flag to hardcode \$libdir into a binary during linking.
18552# This must work even if \$libdir does not exist
18553hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18554
18555# Whether we need a single "-rpath" flag with a separated argument.
18556hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18557
18558# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18559# DIR into the resulting binary.
18560hardcode_direct=$hardcode_direct_CXX
18561
18562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18563# DIR into the resulting binary and the resulting library dependency is
18564# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18565# library is relocated.
18566hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18567
18568# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18569# into the resulting binary.
18570hardcode_minus_L=$hardcode_minus_L_CXX
18571
18572# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18573# into the resulting binary.
18574hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18575
18576# Set to "yes" if building a shared library automatically hardcodes DIR
18577# into the library and all subsequent libraries and executables linked
18578# against it.
18579hardcode_automatic=$hardcode_automatic_CXX
18580
18581# Set to yes if linker adds runtime paths of dependent libraries
18582# to runtime path list.
18583inherit_rpath=$inherit_rpath_CXX
18584
18585# Whether libtool must link a program against all its dependency libraries.
18586link_all_deplibs=$link_all_deplibs_CXX
18587
18588# Set to "yes" if exported symbols are required.
18589always_export_symbols=$always_export_symbols_CXX
18590
18591# The commands to list exported symbols.
18592export_symbols_cmds=$lt_export_symbols_cmds_CXX
18593
18594# Symbols that should not be listed in the preloaded symbols.
18595exclude_expsyms=$lt_exclude_expsyms_CXX
18596
18597# Symbols that must always be exported.
18598include_expsyms=$lt_include_expsyms_CXX
18599
18600# Commands necessary for linking programs (against libraries) with templates.
18601prelink_cmds=$lt_prelink_cmds_CXX
18602
18603# Commands necessary for finishing linking programs.
18604postlink_cmds=$lt_postlink_cmds_CXX
18605
18606# Specify filename containing input files.
18607file_list_spec=$lt_file_list_spec_CXX
18608
18609# How to hardcode a shared library path into an executable.
18610hardcode_action=$hardcode_action_CXX
18611
18612# The directories searched by this compiler when creating a shared library.
18613compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18614
18615# Dependencies to place before and after the objects being linked to
18616# create a shared library.
18617predep_objects=$lt_predep_objects_CXX
18618postdep_objects=$lt_postdep_objects_CXX
18619predeps=$lt_predeps_CXX
18620postdeps=$lt_postdeps_CXX
18621
18622# The library search path used internally by the compiler when linking
18623# a shared library.
18624compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18625
18626# ### END LIBTOOL TAG CONFIG: CXX
18627_LT_EOF
18628
18629 ;;
18630
18631  esac
18632done # for ac_tag
18633
18634
18635as_fn_exit 0
18636_ACEOF
18637ac_clean_files=$ac_clean_files_save
18638
18639test $ac_write_fail = 0 ||
18640  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18641
18642
18643# configure is writing to config.log, and then calls config.status.
18644# config.status does its own redirection, appending to config.log.
18645# Unfortunately, on DOS this fails, as config.log is still kept open
18646# by configure, so config.status won't be able to write to it; its
18647# output is simply discarded.  So we exec the FD to /dev/null,
18648# effectively closing config.log, so it can be properly (re)opened and
18649# appended to by config.status.  When coming back to configure, we
18650# need to make the FD available again.
18651if test "$no_create" != yes; then
18652  ac_cs_success=:
18653  ac_config_status_args=
18654  test "$silent" = yes &&
18655    ac_config_status_args="$ac_config_status_args --quiet"
18656  exec 5>/dev/null
18657  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18658  exec 5>>config.log
18659  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18660  # would make configure fail if this is the last instruction.
18661  $ac_cs_success || as_fn_exit 1
18662fi
18663if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18664  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18665$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18666fi
18667
18668
18669
18670{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
18671    Build configured for $PACKAGE $VERSION:
18672        CXX:                    ${CXX}
18673        CXXFLAGS:               ${CXXFLAGS}
18674        LDFLAGS:                ${LDFLAGS}
18675        LIBS:                   ${LIBS}
18676        debug:                  ${enable_debug}
18677        static build:           ${STATIC}
18678
18679        prefix:                 ${prefix}
18680        libdir:                 ${libdir}
18681        includedir:             ${includedir}
18682
18683        target platform:        ${host}
18684
18685	db backend:             ${USEDB}
18686    Type 'make' to build, 'make install' to install.
18687" >&5
18688$as_echo "
18689    Build configured for $PACKAGE $VERSION:
18690        CXX:                    ${CXX}
18691        CXXFLAGS:               ${CXXFLAGS}
18692        LDFLAGS:                ${LDFLAGS}
18693        LIBS:                   ${LIBS}
18694        debug:                  ${enable_debug}
18695        static build:           ${STATIC}
18696
18697        prefix:                 ${prefix}
18698        libdir:                 ${libdir}
18699        includedir:             ${includedir}
18700
18701        target platform:        ${host}
18702
18703	db backend:             ${USEDB}
18704    Type 'make' to build, 'make install' to install.
18705" >&6; }
18706
18707
18708echo
18709