1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for log4cxx 0.11.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='log4cxx'
589PACKAGE_TARNAME='log4cxx'
590PACKAGE_VERSION='0.11.0'
591PACKAGE_STRING='log4cxx 0.11.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/main/cpp/logger.cpp"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636NON_BLOCKING_FALSE
637NON_BLOCKING_TRUE
638LOGCHAR_IS_UNICHAR
639LOGCHAR_IS_WCHAR
640LOGCHAR_IS_UTF8
641CHARSET_EBCDIC
642CHARSET_USASCII
643CHARSET_ISO88591
644CHARSET_UTF8
645CFSTRING_API
646UNICHAR_API
647WCHAR_T_API
648CHAR_API
649HAS_LIBESMTP
650CPPFLAGS_ODBC
651LIBS_ODBC
652IODBC_CONFIG
653HAS_ODBC
654HAS_FWIDE
655HAS_WCHAR_T
656HAS_STD_LOCALE
657HAS_SYSLOG
658HAS_WCSTOMBS
659HAS_MBSRTOWCS
660APU_LIBS
661APR_LIBS
662base_dir
663manual_dest
664enable_latex_docs
665enable_html_docs
666enable_dot
667LATEX_DOC_FALSE
668LATEX_DOC_TRUE
669DOC_FALSE
670DOC_TRUE
671DOT
672DOXYGEN
673CXXCPP
674am__fastdepCXX_FALSE
675am__fastdepCXX_TRUE
676CXXDEPMODE
677ac_ct_CXX
678CXXFLAGS
679CXX
680CPP
681LT_SYS_LIBRARY_PATH
682OTOOL64
683OTOOL
684LIPO
685NMEDIT
686DSYMUTIL
687MANIFEST_TOOL
688RANLIB
689DLLTOOL
690OBJDUMP
691LN_S
692NM
693ac_ct_DUMPBIN
694DUMPBIN
695LD
696FGREP
697EGREP
698GREP
699SED
700LIBTOOL
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
704am__nodep
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717ac_ct_AR
718AR
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
723am__untar
724am__tar
725AMTAR
726am__leading_dot
727SET_MAKE
728AWK
729mkdir_p
730MKDIR_P
731INSTALL_STRIP_PROGRAM
732STRIP
733install_sh
734MAKEINFO
735AUTOHEADER
736AUTOMAKE
737AUTOCONF
738ACLOCAL
739VERSION
740PACKAGE
741CYGPATH_W
742am__isrc
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746LT_VERSION
747target_os
748target_vendor
749target_cpu
750target
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778runstatedir
779localstatedir
780sharedstatedir
781sysconfdir
782datadir
783datarootdir
784libexecdir
785sbindir
786bindir
787program_transform_name
788prefix
789exec_prefix
790PACKAGE_URL
791PACKAGE_BUGREPORT
792PACKAGE_STRING
793PACKAGE_VERSION
794PACKAGE_TARNAME
795PACKAGE_NAME
796PATH_SEPARATOR
797SHELL
798am__quote'
799ac_subst_files=''
800ac_user_opts='
801enable_option_checking
802enable_silent_rules
803enable_dependency_tracking
804enable_shared
805enable_static
806with_pic
807enable_fast_install
808with_aix_soname
809with_gnu_ld
810with_sysroot
811enable_libtool_lock
812enable_doxygen
813enable_dot
814enable_html_docs
815enable_latex_docs
816with_apr
817with_apr_util
818with_ODBC
819with_SMTP
820enable_char
821enable_wchar_t
822enable_unichar
823enable_cfstring
824with_charset
825with_logchar
826enable_non_blocking
827'
828      ac_precious_vars='build_alias
829host_alias
830target_alias
831CC
832CFLAGS
833LDFLAGS
834LIBS
835CPPFLAGS
836LT_SYS_LIBRARY_PATH
837CPP
838CXX
839CXXFLAGS
840CCC
841CXXCPP'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880runstatedir='${localstatedir}/run'
881includedir='${prefix}/include'
882oldincludedir='/usr/include'
883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884infodir='${datarootdir}/info'
885htmldir='${docdir}'
886dvidir='${docdir}'
887pdfdir='${docdir}'
888psdir='${docdir}'
889libdir='${exec_prefix}/lib'
890localedir='${datarootdir}/locale'
891mandir='${datarootdir}/man'
892
893ac_prev=
894ac_dashdash=
895for ac_option
896do
897  # If the previous option needs an argument, assign it.
898  if test -n "$ac_prev"; then
899    eval $ac_prev=\$ac_option
900    ac_prev=
901    continue
902  fi
903
904  case $ac_option in
905  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906  *=)   ac_optarg= ;;
907  *)    ac_optarg=yes ;;
908  esac
909
910  # Accept the important Cygnus configure options, so we can diagnose typos.
911
912  case $ac_dashdash$ac_option in
913  --)
914    ac_dashdash=yes ;;
915
916  -bindir | --bindir | --bindi | --bind | --bin | --bi)
917    ac_prev=bindir ;;
918  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919    bindir=$ac_optarg ;;
920
921  -build | --build | --buil | --bui | --bu)
922    ac_prev=build_alias ;;
923  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924    build_alias=$ac_optarg ;;
925
926  -cache-file | --cache-file | --cache-fil | --cache-fi \
927  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928    ac_prev=cache_file ;;
929  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931    cache_file=$ac_optarg ;;
932
933  --config-cache | -C)
934    cache_file=config.cache ;;
935
936  -datadir | --datadir | --datadi | --datad)
937    ac_prev=datadir ;;
938  -datadir=* | --datadir=* | --datadi=* | --datad=*)
939    datadir=$ac_optarg ;;
940
941  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942  | --dataroo | --dataro | --datar)
943    ac_prev=datarootdir ;;
944  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946    datarootdir=$ac_optarg ;;
947
948  -disable-* | --disable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=no ;;
963
964  -docdir | --docdir | --docdi | --doc | --do)
965    ac_prev=docdir ;;
966  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967    docdir=$ac_optarg ;;
968
969  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970    ac_prev=dvidir ;;
971  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972    dvidir=$ac_optarg ;;
973
974  -enable-* | --enable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error $? "invalid feature name: $ac_useropt"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=\$ac_optarg ;;
989
990  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992  | --exec | --exe | --ex)
993    ac_prev=exec_prefix ;;
994  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996  | --exec=* | --exe=* | --ex=*)
997    exec_prefix=$ac_optarg ;;
998
999  -gas | --gas | --ga | --g)
1000    # Obsolete; use --with-gas.
1001    with_gas=yes ;;
1002
1003  -help | --help | --hel | --he | -h)
1004    ac_init_help=long ;;
1005  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006    ac_init_help=recursive ;;
1007  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008    ac_init_help=short ;;
1009
1010  -host | --host | --hos | --ho)
1011    ac_prev=host_alias ;;
1012  -host=* | --host=* | --hos=* | --ho=*)
1013    host_alias=$ac_optarg ;;
1014
1015  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016    ac_prev=htmldir ;;
1017  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018  | --ht=*)
1019    htmldir=$ac_optarg ;;
1020
1021  -includedir | --includedir | --includedi | --included | --include \
1022  | --includ | --inclu | --incl | --inc)
1023    ac_prev=includedir ;;
1024  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025  | --includ=* | --inclu=* | --incl=* | --inc=*)
1026    includedir=$ac_optarg ;;
1027
1028  -infodir | --infodir | --infodi | --infod | --info | --inf)
1029    ac_prev=infodir ;;
1030  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031    infodir=$ac_optarg ;;
1032
1033  -libdir | --libdir | --libdi | --libd)
1034    ac_prev=libdir ;;
1035  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036    libdir=$ac_optarg ;;
1037
1038  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039  | --libexe | --libex | --libe)
1040    ac_prev=libexecdir ;;
1041  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042  | --libexe=* | --libex=* | --libe=*)
1043    libexecdir=$ac_optarg ;;
1044
1045  -localedir | --localedir | --localedi | --localed | --locale)
1046    ac_prev=localedir ;;
1047  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048    localedir=$ac_optarg ;;
1049
1050  -localstatedir | --localstatedir | --localstatedi | --localstated \
1051  | --localstate | --localstat | --localsta | --localst | --locals)
1052    ac_prev=localstatedir ;;
1053  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055    localstatedir=$ac_optarg ;;
1056
1057  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058    ac_prev=mandir ;;
1059  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060    mandir=$ac_optarg ;;
1061
1062  -nfp | --nfp | --nf)
1063    # Obsolete; use --without-fp.
1064    with_fp=no ;;
1065
1066  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067  | --no-cr | --no-c | -n)
1068    no_create=yes ;;
1069
1070  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072    no_recursion=yes ;;
1073
1074  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076  | --oldin | --oldi | --old | --ol | --o)
1077    ac_prev=oldincludedir ;;
1078  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081    oldincludedir=$ac_optarg ;;
1082
1083  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084    ac_prev=prefix ;;
1085  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086    prefix=$ac_optarg ;;
1087
1088  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089  | --program-pre | --program-pr | --program-p)
1090    ac_prev=program_prefix ;;
1091  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093    program_prefix=$ac_optarg ;;
1094
1095  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096  | --program-suf | --program-su | --program-s)
1097    ac_prev=program_suffix ;;
1098  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100    program_suffix=$ac_optarg ;;
1101
1102  -program-transform-name | --program-transform-name \
1103  | --program-transform-nam | --program-transform-na \
1104  | --program-transform-n | --program-transform- \
1105  | --program-transform | --program-transfor \
1106  | --program-transfo | --program-transf \
1107  | --program-trans | --program-tran \
1108  | --progr-tra | --program-tr | --program-t)
1109    ac_prev=program_transform_name ;;
1110  -program-transform-name=* | --program-transform-name=* \
1111  | --program-transform-nam=* | --program-transform-na=* \
1112  | --program-transform-n=* | --program-transform-=* \
1113  | --program-transform=* | --program-transfor=* \
1114  | --program-transfo=* | --program-transf=* \
1115  | --program-trans=* | --program-tran=* \
1116  | --progr-tra=* | --program-tr=* | --program-t=*)
1117    program_transform_name=$ac_optarg ;;
1118
1119  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120    ac_prev=pdfdir ;;
1121  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122    pdfdir=$ac_optarg ;;
1123
1124  -psdir | --psdir | --psdi | --psd | --ps)
1125    ac_prev=psdir ;;
1126  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127    psdir=$ac_optarg ;;
1128
1129  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130  | -silent | --silent | --silen | --sile | --sil)
1131    silent=yes ;;
1132
1133  -runstatedir | --runstatedir | --runstatedi | --runstated \
1134  | --runstate | --runstat | --runsta | --runst | --runs \
1135  | --run | --ru | --r)
1136    ac_prev=runstatedir ;;
1137  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139  | --run=* | --ru=* | --r=*)
1140    runstatedir=$ac_optarg ;;
1141
1142  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143    ac_prev=sbindir ;;
1144  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145  | --sbi=* | --sb=*)
1146    sbindir=$ac_optarg ;;
1147
1148  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150  | --sharedst | --shareds | --shared | --share | --shar \
1151  | --sha | --sh)
1152    ac_prev=sharedstatedir ;;
1153  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156  | --sha=* | --sh=*)
1157    sharedstatedir=$ac_optarg ;;
1158
1159  -site | --site | --sit)
1160    ac_prev=site ;;
1161  -site=* | --site=* | --sit=*)
1162    site=$ac_optarg ;;
1163
1164  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165    ac_prev=srcdir ;;
1166  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167    srcdir=$ac_optarg ;;
1168
1169  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170  | --syscon | --sysco | --sysc | --sys | --sy)
1171    ac_prev=sysconfdir ;;
1172  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174    sysconfdir=$ac_optarg ;;
1175
1176  -target | --target | --targe | --targ | --tar | --ta | --t)
1177    ac_prev=target_alias ;;
1178  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179    target_alias=$ac_optarg ;;
1180
1181  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182    verbose=yes ;;
1183
1184  -version | --version | --versio | --versi | --vers | -V)
1185    ac_init_version=: ;;
1186
1187  -with-* | --with-*)
1188    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189    # Reject names that are not valid shell variable names.
1190    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191      as_fn_error $? "invalid package name: $ac_useropt"
1192    ac_useropt_orig=$ac_useropt
1193    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194    case $ac_user_opts in
1195      *"
1196"with_$ac_useropt"
1197"*) ;;
1198      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199	 ac_unrecognized_sep=', ';;
1200    esac
1201    eval with_$ac_useropt=\$ac_optarg ;;
1202
1203  -without-* | --without-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: $ac_useropt"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=no ;;
1218
1219  --x)
1220    # Obsolete; use --with-x.
1221    with_x=yes ;;
1222
1223  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224  | --x-incl | --x-inc | --x-in | --x-i)
1225    ac_prev=x_includes ;;
1226  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228    x_includes=$ac_optarg ;;
1229
1230  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232    ac_prev=x_libraries ;;
1233  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235    x_libraries=$ac_optarg ;;
1236
1237  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
1239    ;;
1240
1241  *=*)
1242    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243    # Reject names that are not valid shell variable names.
1244    case $ac_envvar in #(
1245      '' | [0-9]* | *[!_$as_cr_alnum]* )
1246      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247    esac
1248    eval $ac_envvar=\$ac_optarg
1249    export $ac_envvar ;;
1250
1251  *)
1252    # FIXME: should be removed in autoconf 3.0.
1253    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257    ;;
1258
1259  esac
1260done
1261
1262if test -n "$ac_prev"; then
1263  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264  as_fn_error $? "missing argument to $ac_option"
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268  case $enable_option_checking in
1269    no) ;;
1270    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272  esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277		datadir sysconfdir sharedstatedir localstatedir includedir \
1278		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279		libdir localedir mandir runstatedir
1280do
1281  eval ac_val=\$$ac_var
1282  # Remove trailing slashes.
1283  case $ac_val in
1284    */ )
1285      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286      eval $ac_var=\$ac_val;;
1287  esac
1288  # Be sure to have absolute directory names.
1289  case $ac_val in
1290    [\\/$]* | ?:[\\/]* )  continue;;
1291    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292  esac
1293  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305  if test "x$build_alias" = x; then
1306    cross_compiling=maybe
1307  elif test "x$build_alias" != "x$host_alias"; then
1308    cross_compiling=yes
1309  fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321  as_fn_error $? "working directory cannot be determined"
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328  ac_srcdir_defaulted=yes
1329  # Try the directory containing this script, then the parent directory.
1330  ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332	 X"$as_myself" : 'X\(//\)[^/]' \| \
1333	 X"$as_myself" : 'X\(//\)$' \| \
1334	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335$as_echo X"$as_myself" |
1336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\/\)[^/].*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\).*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  s/.*/./; q'`
1353  srcdir=$ac_confdir
1354  if test ! -r "$srcdir/$ac_unique_file"; then
1355    srcdir=..
1356  fi
1357else
1358  ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
1366	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367	pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370  srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_env_${ac_var}_value=\$${ac_var}
1381  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389  # Omit some internal or obsolete options to make the list less imposing.
1390  # This message is too long to be a string in the A/UX 3.1 sh.
1391  cat <<_ACEOF
1392\`configure' configures log4cxx 0.11.0 to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402  -h, --help              display this help and exit
1403      --help=short        display options specific to this package
1404      --help=recursive    display the short help of all the included packages
1405  -V, --version           display version information and exit
1406  -q, --quiet, --silent   do not print \`checking ...' messages
1407      --cache-file=FILE   cache test results in FILE [disabled]
1408  -C, --config-cache      alias for \`--cache-file=config.cache'
1409  -n, --no-create         do not create output files
1410      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413  --prefix=PREFIX         install architecture-independent files in PREFIX
1414                          [$ac_default_prefix]
1415  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                          [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426  --bindir=DIR            user executables [EPREFIX/bin]
1427  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428  --libexecdir=DIR        program executables [EPREFIX/libexec]
1429  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1433  --libdir=DIR            object code libraries [EPREFIX/lib]
1434  --includedir=DIR        C header files [PREFIX/include]
1435  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1436  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1437  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1438  --infodir=DIR           info documentation [DATAROOTDIR/info]
1439  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1440  --mandir=DIR            man documentation [DATAROOTDIR/man]
1441  --docdir=DIR            documentation root [DATAROOTDIR/doc/log4cxx]
1442  --htmldir=DIR           html documentation [DOCDIR]
1443  --dvidir=DIR            dvi documentation [DOCDIR]
1444  --pdfdir=DIR            pdf documentation [DOCDIR]
1445  --psdir=DIR             ps documentation [DOCDIR]
1446_ACEOF
1447
1448  cat <<\_ACEOF
1449
1450Program names:
1451  --program-prefix=PREFIX            prepend PREFIX to installed program names
1452  --program-suffix=SUFFIX            append SUFFIX to installed program names
1453  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1454
1455System types:
1456  --build=BUILD     configure for building on BUILD [guessed]
1457  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458  --target=TARGET   configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463  case $ac_init_help in
1464     short | recursive ) echo "Configuration of log4cxx 0.11.0:";;
1465   esac
1466  cat <<\_ACEOF
1467
1468Optional Features:
1469  --disable-option-checking  ignore unrecognized --enable/--with options
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --enable-silent-rules   less verbose build output (undo: "make V=1")
1473  --disable-silent-rules  verbose build output (undo: "make V=0")
1474  --enable-dependency-tracking
1475                          do not reject slow dependency extractors
1476  --disable-dependency-tracking
1477                          speeds up one-time build
1478  --enable-shared[=PKGS]  build shared libraries [default=yes]
1479  --enable-static[=PKGS]  build static libraries [default=yes]
1480  --enable-fast-install[=PKGS]
1481                          optimize for fast installation [default=yes]
1482  --disable-libtool-lock  avoid locking (might break parallel builds)
1483  --enable-doxygen        enable documentation generation with doxygen (auto)
1484  --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1485  --enable-html-docs      enable HTML generation with doxygen (yes)
1486  --enable-latex-docs     enable LaTeX documentation generation with doxygen
1487                          (no)
1488  --enable-char           enable char API (yes)
1489  --enable-wchar_t        enable wchar_t API (yes if wchar_t available)
1490  --enable-unichar        enable unichar API (no)
1491  --enable-cfstring       enable cfstring API (no)
1492  --enable-non-blocking   non-blocking mode (no)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1498                          both]
1499  --with-aix-soname=aix|svr4|both
1500                          shared library versioning (aka "SONAME") variant to
1501                          provide on AIX, [default=aix].
1502  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1503  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1504                          compiler's sysroot if not specified).
1505  --with-apr=PATH         prefix for installed APR or the full path to
1506                             apr-config
1507  --with-apr-util=PATH    prefix for installed APU or the full path to
1508                             apu-config
1509  --with-ODBC             ODBC support. Accepted arguments : unixODBC, iODBC,
1510                          Microsoft, no (default=no)
1511  --with-SMTP             SMTP support. Accepted arguments : libesmtp, no
1512                          (default=no)
1513  --with-charset=TYPE     locale charset. Accepted TYPE variants: auto, utf-8,
1514                          iso-8859-1, usascii, ebcdic (default=auto)
1515  --with-logchar=TYPE     type for logchar. Accepted TYPE variants: utf-8,
1516                          wchar_t, unichar (default=utf-8)
1517
1518Some influential environment variables:
1519  CC          C compiler command
1520  CFLAGS      C compiler flags
1521  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522              nonstandard directory <lib dir>
1523  LIBS        libraries to pass to the linker, e.g. -l<library>
1524  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525              you have headers in a nonstandard directory <include dir>
1526  LT_SYS_LIBRARY_PATH
1527              User-defined run-time library search path.
1528  CPP         C preprocessor
1529  CXX         C++ compiler command
1530  CXXFLAGS    C++ compiler flags
1531  CXXCPP      C++ preprocessor
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536Report bugs to the package provider.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542  # If there are subdirs, report their specific --help.
1543  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544    test -d "$ac_dir" ||
1545      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546      continue
1547    ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553  # A ".." for each directory in $ac_dir_suffix.
1554  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555  case $ac_top_builddir_sub in
1556  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558  esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566  .)  # We are building in place.
1567    ac_srcdir=.
1568    ac_top_srcdir=$ac_top_builddir_sub
1569    ac_abs_top_srcdir=$ac_pwd ;;
1570  [\\/]* | ?:[\\/]* )  # Absolute name.
1571    ac_srcdir=$srcdir$ac_dir_suffix;
1572    ac_top_srcdir=$srcdir
1573    ac_abs_top_srcdir=$srcdir ;;
1574  *) # Relative name.
1575    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576    ac_top_srcdir=$ac_top_build_prefix$srcdir
1577    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581    cd "$ac_dir" || { ac_status=$?; continue; }
1582    # Check for guested configure.
1583    if test -f "$ac_srcdir/configure.gnu"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586    elif test -f "$ac_srcdir/configure"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure" --help=recursive
1589    else
1590      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591    fi || ac_status=$?
1592    cd "$ac_pwd" || { ac_status=$?; break; }
1593  done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598  cat <<\_ACEOF
1599log4cxx configure 0.11.0
1600generated by GNU Autoconf 2.69
1601
1602Copyright (C) 2012 Free Software Foundation, Inc.
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606  exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
1612
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  rm -f conftest.$ac_objext
1620  if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_compile") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && {
1636	 test -z "$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       } && test -s conftest.$ac_objext; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644	ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_compile
1650
1651# ac_fn_c_try_link LINENO
1652# -----------------------
1653# Try to link conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_link ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  rm -f conftest.$ac_objext conftest$ac_exeext
1658  if { { ac_try="$ac_link"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_link") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && {
1674	 test -z "$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       } && test -s conftest$ac_exeext && {
1677	 test "$cross_compiling" = yes ||
1678	 test -x conftest$ac_exeext
1679       }; then :
1680  ac_retval=0
1681else
1682  $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685	ac_retval=1
1686fi
1687  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689  # interfere with the next link command; also delete a directory that is
1690  # left behind by Apple's compiler.  We do this before executing the actions.
1691  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693  as_fn_set_status $ac_retval
1694
1695} # ac_fn_c_try_link
1696
1697# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698# -------------------------------------------------------
1699# Tests whether HEADER exists and can be compiled using the include files in
1700# INCLUDES, setting the cache variable VAR accordingly.
1701ac_fn_c_check_header_compile ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if eval \${$3+:} false; then :
1707  $as_echo_n "(cached) " >&6
1708else
1709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710/* end confdefs.h.  */
1711$4
1712#include <$2>
1713_ACEOF
1714if ac_fn_c_try_compile "$LINENO"; then :
1715  eval "$3=yes"
1716else
1717  eval "$3=no"
1718fi
1719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720fi
1721eval ac_res=\$$3
1722	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723$as_echo "$ac_res" >&6; }
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726} # ac_fn_c_check_header_compile
1727
1728# ac_fn_c_try_cpp LINENO
1729# ----------------------
1730# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731ac_fn_c_try_cpp ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  if { { ac_try="$ac_cpp conftest.$ac_ext"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742  ac_status=$?
1743  if test -s conftest.err; then
1744    grep -v '^ *+' conftest.err >conftest.er1
1745    cat conftest.er1 >&5
1746    mv -f conftest.er1 conftest.err
1747  fi
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } > conftest.i && {
1750	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751	 test ! -s conftest.err
1752       }; then :
1753  ac_retval=0
1754else
1755  $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758    ac_retval=1
1759fi
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_cpp
1764
1765# ac_fn_c_try_run LINENO
1766# ----------------------
1767# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768# that executables *can* be run.
1769ac_fn_c_try_run ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  if { { ac_try="$ac_link"
1773case "(($ac_try" in
1774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775  *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779  (eval "$ac_link") 2>&5
1780  ac_status=$?
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783  { { case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789  (eval "$ac_try") 2>&5
1790  ac_status=$?
1791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792  test $ac_status = 0; }; }; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: program exited with status $ac_status" >&5
1796       $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799       ac_retval=$ac_status
1800fi
1801  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803  as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_run
1806
1807# ac_fn_c_check_func LINENO FUNC VAR
1808# ----------------------------------
1809# Tests whether FUNC exists, setting the cache variable VAR accordingly
1810ac_fn_c_check_func ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817else
1818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h.  */
1820/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1822#define $2 innocuous_$2
1823
1824/* System header to define __stub macros and hopefully few prototypes,
1825    which can conflict with char $2 (); below.
1826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827    <limits.h> exists even on freestanding compilers.  */
1828
1829#ifdef __STDC__
1830# include <limits.h>
1831#else
1832# include <assert.h>
1833#endif
1834
1835#undef $2
1836
1837/* Override any GCC internal prototype to avoid an error.
1838   Use char because int might match the return type of a GCC
1839   builtin and then its argument prototype would still apply.  */
1840#ifdef __cplusplus
1841extern "C"
1842#endif
1843char $2 ();
1844/* The GNU C library defines this for functions which it implements
1845    to always fail with ENOSYS.  Some functions are actually named
1846    something starting with __ and the normal name is an alias.  */
1847#if defined __stub_$2 || defined __stub___$2
1848choke me
1849#endif
1850
1851int
1852main ()
1853{
1854return $2 ();
1855  ;
1856  return 0;
1857}
1858_ACEOF
1859if ac_fn_c_try_link "$LINENO"; then :
1860  eval "$3=yes"
1861else
1862  eval "$3=no"
1863fi
1864rm -f core conftest.err conftest.$ac_objext \
1865    conftest$ac_exeext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872} # ac_fn_c_check_func
1873
1874# ac_fn_cxx_try_compile LINENO
1875# ----------------------------
1876# Try to compile conftest.$ac_ext, and return whether this succeeded.
1877ac_fn_cxx_try_compile ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  rm -f conftest.$ac_objext
1881  if { { ac_try="$ac_compile"
1882case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_compile") 2>conftest.err
1889  ac_status=$?
1890  if test -s conftest.err; then
1891    grep -v '^ *+' conftest.err >conftest.er1
1892    cat conftest.er1 >&5
1893    mv -f conftest.er1 conftest.err
1894  fi
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; } && {
1897	 test -z "$ac_cxx_werror_flag" ||
1898	 test ! -s conftest.err
1899       } && test -s conftest.$ac_objext; then :
1900  ac_retval=0
1901else
1902  $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905	ac_retval=1
1906fi
1907  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908  as_fn_set_status $ac_retval
1909
1910} # ac_fn_cxx_try_compile
1911
1912# ac_fn_cxx_try_cpp LINENO
1913# ------------------------
1914# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915ac_fn_cxx_try_cpp ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  if { { ac_try="$ac_cpp conftest.$ac_ext"
1919case "(($ac_try" in
1920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921  *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926  ac_status=$?
1927  if test -s conftest.err; then
1928    grep -v '^ *+' conftest.err >conftest.er1
1929    cat conftest.er1 >&5
1930    mv -f conftest.er1 conftest.err
1931  fi
1932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933  test $ac_status = 0; } > conftest.i && {
1934	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935	 test ! -s conftest.err
1936       }; then :
1937  ac_retval=0
1938else
1939  $as_echo "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942    ac_retval=1
1943fi
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945  as_fn_set_status $ac_retval
1946
1947} # ac_fn_cxx_try_cpp
1948
1949# ac_fn_cxx_try_link LINENO
1950# -------------------------
1951# Try to link conftest.$ac_ext, and return whether this succeeded.
1952ac_fn_cxx_try_link ()
1953{
1954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955  rm -f conftest.$ac_objext conftest$ac_exeext
1956  if { { ac_try="$ac_link"
1957case "(($ac_try" in
1958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959  *) ac_try_echo=$ac_try;;
1960esac
1961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962$as_echo "$ac_try_echo"; } >&5
1963  (eval "$ac_link") 2>conftest.err
1964  ac_status=$?
1965  if test -s conftest.err; then
1966    grep -v '^ *+' conftest.err >conftest.er1
1967    cat conftest.er1 >&5
1968    mv -f conftest.er1 conftest.err
1969  fi
1970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971  test $ac_status = 0; } && {
1972	 test -z "$ac_cxx_werror_flag" ||
1973	 test ! -s conftest.err
1974       } && test -s conftest$ac_exeext && {
1975	 test "$cross_compiling" = yes ||
1976	 test -x conftest$ac_exeext
1977       }; then :
1978  ac_retval=0
1979else
1980  $as_echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983	ac_retval=1
1984fi
1985  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1986  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1987  # interfere with the next link command; also delete a directory that is
1988  # left behind by Apple's compiler.  We do this before executing the actions.
1989  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991  as_fn_set_status $ac_retval
1992
1993} # ac_fn_cxx_try_link
1994
1995# ac_fn_cxx_check_func LINENO FUNC VAR
1996# ------------------------------------
1997# Tests whether FUNC exists, setting the cache variable VAR accordingly
1998ac_fn_cxx_check_func ()
1999{
2000  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004  $as_echo_n "(cached) " >&6
2005else
2006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h.  */
2008/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2010#define $2 innocuous_$2
2011
2012/* System header to define __stub macros and hopefully few prototypes,
2013    which can conflict with char $2 (); below.
2014    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015    <limits.h> exists even on freestanding compilers.  */
2016
2017#ifdef __STDC__
2018# include <limits.h>
2019#else
2020# include <assert.h>
2021#endif
2022
2023#undef $2
2024
2025/* Override any GCC internal prototype to avoid an error.
2026   Use char because int might match the return type of a GCC
2027   builtin and then its argument prototype would still apply.  */
2028#ifdef __cplusplus
2029extern "C"
2030#endif
2031char $2 ();
2032/* The GNU C library defines this for functions which it implements
2033    to always fail with ENOSYS.  Some functions are actually named
2034    something starting with __ and the normal name is an alias.  */
2035#if defined __stub_$2 || defined __stub___$2
2036choke me
2037#endif
2038
2039int
2040main ()
2041{
2042return $2 ();
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047if ac_fn_cxx_try_link "$LINENO"; then :
2048  eval "$3=yes"
2049else
2050  eval "$3=no"
2051fi
2052rm -f core conftest.err conftest.$ac_objext \
2053    conftest$ac_exeext conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_cxx_check_func
2061
2062# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# ---------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_cxx_check_header_mongrel ()
2068{
2069  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070  if eval \${$3+:} false; then :
2071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
2073if eval \${$3+:} false; then :
2074  $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080  # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_cxx_try_compile "$LINENO"; then :
2089  ac_header_compiler=yes
2090else
2091  ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102#include <$2>
2103_ACEOF
2104if ac_fn_cxx_try_cpp "$LINENO"; then :
2105  ac_header_preproc=yes
2106else
2107  ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.i conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So?  What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2115  yes:no: )
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120    ;;
2121  no:yes:* )
2122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2130    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132    ;;
2133esac
2134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135$as_echo_n "checking for $2... " >&6; }
2136if eval \${$3+:} false; then :
2137  $as_echo_n "(cached) " >&6
2138else
2139  eval "$3=\$ac_header_compiler"
2140fi
2141eval ac_res=\$$3
2142	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143$as_echo "$ac_res" >&6; }
2144fi
2145  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147} # ac_fn_cxx_check_header_mongrel
2148cat >config.log <<_ACEOF
2149This file contains any messages produced by compilers while
2150running configure, to aid debugging if configure makes a mistake.
2151
2152It was created by log4cxx $as_me 0.11.0, which was
2153generated by GNU Autoconf 2.69.  Invocation command line was
2154
2155  $ $0 $@
2156
2157_ACEOF
2158exec 5>>config.log
2159{
2160cat <<_ASUNAME
2161## --------- ##
2162## Platform. ##
2163## --------- ##
2164
2165hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2166uname -m = `(uname -m) 2>/dev/null || echo unknown`
2167uname -r = `(uname -r) 2>/dev/null || echo unknown`
2168uname -s = `(uname -s) 2>/dev/null || echo unknown`
2169uname -v = `(uname -v) 2>/dev/null || echo unknown`
2170
2171/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2172/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2173
2174/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2175/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2176/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2177/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2178/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2179/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2180/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2181
2182_ASUNAME
2183
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187  IFS=$as_save_IFS
2188  test -z "$as_dir" && as_dir=.
2189    $as_echo "PATH: $as_dir"
2190  done
2191IFS=$as_save_IFS
2192
2193} >&5
2194
2195cat >&5 <<_ACEOF
2196
2197
2198## ----------- ##
2199## Core tests. ##
2200## ----------- ##
2201
2202_ACEOF
2203
2204
2205# Keep a trace of the command line.
2206# Strip out --no-create and --no-recursion so they do not pile up.
2207# Strip out --silent because we don't want to record it for future runs.
2208# Also quote any args containing shell meta-characters.
2209# Make two passes to allow for proper duplicate-argument suppression.
2210ac_configure_args=
2211ac_configure_args0=
2212ac_configure_args1=
2213ac_must_keep_next=false
2214for ac_pass in 1 2
2215do
2216  for ac_arg
2217  do
2218    case $ac_arg in
2219    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2220    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2221    | -silent | --silent | --silen | --sile | --sil)
2222      continue ;;
2223    *\'*)
2224      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2225    esac
2226    case $ac_pass in
2227    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2228    2)
2229      as_fn_append ac_configure_args1 " '$ac_arg'"
2230      if test $ac_must_keep_next = true; then
2231	ac_must_keep_next=false # Got value, back to normal.
2232      else
2233	case $ac_arg in
2234	  *=* | --config-cache | -C | -disable-* | --disable-* \
2235	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2236	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2237	  | -with-* | --with-* | -without-* | --without-* | --x)
2238	    case "$ac_configure_args0 " in
2239	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2240	    esac
2241	    ;;
2242	  -* ) ac_must_keep_next=true ;;
2243	esac
2244      fi
2245      as_fn_append ac_configure_args " '$ac_arg'"
2246      ;;
2247    esac
2248  done
2249done
2250{ ac_configure_args0=; unset ac_configure_args0;}
2251{ ac_configure_args1=; unset ac_configure_args1;}
2252
2253# When interrupted or exit'd, cleanup temporary files, and complete
2254# config.log.  We remove comments because anyway the quotes in there
2255# would cause problems or look ugly.
2256# WARNING: Use '\'' to represent an apostrophe within the trap.
2257# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2258trap 'exit_status=$?
2259  # Save into config.log some information that might help in debugging.
2260  {
2261    echo
2262
2263    $as_echo "## ---------------- ##
2264## Cache variables. ##
2265## ---------------- ##"
2266    echo
2267    # The following way of writing the cache mishandles newlines in values,
2268(
2269  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2270    eval ac_val=\$$ac_var
2271    case $ac_val in #(
2272    *${as_nl}*)
2273      case $ac_var in #(
2274      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2275$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2276      esac
2277      case $ac_var in #(
2278      _ | IFS | as_nl) ;; #(
2279      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2280      *) { eval $ac_var=; unset $ac_var;} ;;
2281      esac ;;
2282    esac
2283  done
2284  (set) 2>&1 |
2285    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2286    *${as_nl}ac_space=\ *)
2287      sed -n \
2288	"s/'\''/'\''\\\\'\'''\''/g;
2289	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2290      ;; #(
2291    *)
2292      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2293      ;;
2294    esac |
2295    sort
2296)
2297    echo
2298
2299    $as_echo "## ----------------- ##
2300## Output variables. ##
2301## ----------------- ##"
2302    echo
2303    for ac_var in $ac_subst_vars
2304    do
2305      eval ac_val=\$$ac_var
2306      case $ac_val in
2307      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2308      esac
2309      $as_echo "$ac_var='\''$ac_val'\''"
2310    done | sort
2311    echo
2312
2313    if test -n "$ac_subst_files"; then
2314      $as_echo "## ------------------- ##
2315## File substitutions. ##
2316## ------------------- ##"
2317      echo
2318      for ac_var in $ac_subst_files
2319      do
2320	eval ac_val=\$$ac_var
2321	case $ac_val in
2322	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323	esac
2324	$as_echo "$ac_var='\''$ac_val'\''"
2325      done | sort
2326      echo
2327    fi
2328
2329    if test -s confdefs.h; then
2330      $as_echo "## ----------- ##
2331## confdefs.h. ##
2332## ----------- ##"
2333      echo
2334      cat confdefs.h
2335      echo
2336    fi
2337    test "$ac_signal" != 0 &&
2338      $as_echo "$as_me: caught signal $ac_signal"
2339    $as_echo "$as_me: exit $exit_status"
2340  } >&5
2341  rm -f core *.core core.conftest.* &&
2342    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2343    exit $exit_status
2344' 0
2345for ac_signal in 1 2 13 15; do
2346  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2347done
2348ac_signal=0
2349
2350# confdefs.h avoids OS command line length limits that DEFS can exceed.
2351rm -f -r conftest* confdefs.h
2352
2353$as_echo "/* confdefs.h */" > confdefs.h
2354
2355# Predefined preprocessor variables.
2356
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_NAME "$PACKAGE_NAME"
2359_ACEOF
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2363_ACEOF
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_VERSION "$PACKAGE_VERSION"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_STRING "$PACKAGE_STRING"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_URL "$PACKAGE_URL"
2379_ACEOF
2380
2381
2382# Let the site file select an alternate cache file if it wants to.
2383# Prefer an explicitly selected file to automatically selected ones.
2384ac_site_file1=NONE
2385ac_site_file2=NONE
2386if test -n "$CONFIG_SITE"; then
2387  # We do not want a PATH search for config.site.
2388  case $CONFIG_SITE in #((
2389    -*)  ac_site_file1=./$CONFIG_SITE;;
2390    */*) ac_site_file1=$CONFIG_SITE;;
2391    *)   ac_site_file1=./$CONFIG_SITE;;
2392  esac
2393elif test "x$prefix" != xNONE; then
2394  ac_site_file1=$prefix/share/config.site
2395  ac_site_file2=$prefix/etc/config.site
2396else
2397  ac_site_file1=$ac_default_prefix/share/config.site
2398  ac_site_file2=$ac_default_prefix/etc/config.site
2399fi
2400for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2401do
2402  test "x$ac_site_file" = xNONE && continue
2403  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2404    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2405$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2406    sed 's/^/| /' "$ac_site_file" >&5
2407    . "$ac_site_file" \
2408      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410as_fn_error $? "failed to load site script $ac_site_file
2411See \`config.log' for more details" "$LINENO" 5; }
2412  fi
2413done
2414
2415if test -r "$cache_file"; then
2416  # Some versions of bash will fail to source /dev/null (special files
2417  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2418  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2419    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2420$as_echo "$as_me: loading cache $cache_file" >&6;}
2421    case $cache_file in
2422      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2423      *)                      . "./$cache_file";;
2424    esac
2425  fi
2426else
2427  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2428$as_echo "$as_me: creating cache $cache_file" >&6;}
2429  >$cache_file
2430fi
2431
2432# Check that the precious variables saved in the cache have kept the same
2433# value.
2434ac_cache_corrupted=false
2435for ac_var in $ac_precious_vars; do
2436  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2437  eval ac_new_set=\$ac_env_${ac_var}_set
2438  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2439  eval ac_new_val=\$ac_env_${ac_var}_value
2440  case $ac_old_set,$ac_new_set in
2441    set,)
2442      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2443$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2444      ac_cache_corrupted=: ;;
2445    ,set)
2446      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2447$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2448      ac_cache_corrupted=: ;;
2449    ,);;
2450    *)
2451      if test "x$ac_old_val" != "x$ac_new_val"; then
2452	# differences in whitespace do not lead to failure.
2453	ac_old_val_w=`echo x $ac_old_val`
2454	ac_new_val_w=`echo x $ac_new_val`
2455	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2456	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2457$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2458	  ac_cache_corrupted=:
2459	else
2460	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2461$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2462	  eval $ac_var=\$ac_old_val
2463	fi
2464	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2465$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2466	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2467$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2468      fi;;
2469  esac
2470  # Pass precious variables to config.status.
2471  if test "$ac_new_set" = set; then
2472    case $ac_new_val in
2473    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2474    *) ac_arg=$ac_var=$ac_new_val ;;
2475    esac
2476    case " $ac_configure_args " in
2477      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2478      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2479    esac
2480  fi
2481done
2482if $ac_cache_corrupted; then
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2486$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2487  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2488fi
2489## -------------------- ##
2490## Main body of script. ##
2491## -------------------- ##
2492
2493ac_ext=c
2494ac_cpp='$CPP $CPPFLAGS'
2495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498
2499
2500
2501
2502
2503# autoconf 2.50 or higher to rebuild aclocal.m4, because the
2504# AC_CREATE_PREFIX_CONFIG_H macro needs the AS_DIRNAME macro.
2505
2506
2507ac_aux_dir=
2508for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2509  if test -f "$ac_dir/install-sh"; then
2510    ac_aux_dir=$ac_dir
2511    ac_install_sh="$ac_aux_dir/install-sh -c"
2512    break
2513  elif test -f "$ac_dir/install.sh"; then
2514    ac_aux_dir=$ac_dir
2515    ac_install_sh="$ac_aux_dir/install.sh -c"
2516    break
2517  elif test -f "$ac_dir/shtool"; then
2518    ac_aux_dir=$ac_dir
2519    ac_install_sh="$ac_aux_dir/shtool install -c"
2520    break
2521  fi
2522done
2523if test -z "$ac_aux_dir"; then
2524  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2525fi
2526
2527# These three variables are undocumented and unsupported,
2528# and are intended to be withdrawn in a future Autoconf release.
2529# They can cause serious problems if a builder's source tree is in a directory
2530# whose full name contains unusual characters.
2531ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2532ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2533ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2534
2535
2536# Make sure we can run config.sub.
2537$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2538  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2539
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2541$as_echo_n "checking build system type... " >&6; }
2542if ${ac_cv_build+:} false; then :
2543  $as_echo_n "(cached) " >&6
2544else
2545  ac_build_alias=$build_alias
2546test "x$ac_build_alias" = x &&
2547  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2548test "x$ac_build_alias" = x &&
2549  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2550ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2551  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2552
2553fi
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2555$as_echo "$ac_cv_build" >&6; }
2556case $ac_cv_build in
2557*-*-*) ;;
2558*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2559esac
2560build=$ac_cv_build
2561ac_save_IFS=$IFS; IFS='-'
2562set x $ac_cv_build
2563shift
2564build_cpu=$1
2565build_vendor=$2
2566shift; shift
2567# Remember, the first character of IFS is used to create $*,
2568# except with old shells:
2569build_os=$*
2570IFS=$ac_save_IFS
2571case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2572
2573
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2575$as_echo_n "checking host system type... " >&6; }
2576if ${ac_cv_host+:} false; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  if test "x$host_alias" = x; then
2580  ac_cv_host=$ac_cv_build
2581else
2582  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2584fi
2585
2586fi
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2588$as_echo "$ac_cv_host" >&6; }
2589case $ac_cv_host in
2590*-*-*) ;;
2591*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2592esac
2593host=$ac_cv_host
2594ac_save_IFS=$IFS; IFS='-'
2595set x $ac_cv_host
2596shift
2597host_cpu=$1
2598host_vendor=$2
2599shift; shift
2600# Remember, the first character of IFS is used to create $*,
2601# except with old shells:
2602host_os=$*
2603IFS=$ac_save_IFS
2604case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2605
2606
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2608$as_echo_n "checking target system type... " >&6; }
2609if ${ac_cv_target+:} false; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  if test "x$target_alias" = x; then
2613  ac_cv_target=$ac_cv_host
2614else
2615  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2616    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2617fi
2618
2619fi
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2621$as_echo "$ac_cv_target" >&6; }
2622case $ac_cv_target in
2623*-*-*) ;;
2624*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2625esac
2626target=$ac_cv_target
2627ac_save_IFS=$IFS; IFS='-'
2628set x $ac_cv_target
2629shift
2630target_cpu=$1
2631target_vendor=$2
2632shift; shift
2633# Remember, the first character of IFS is used to create $*,
2634# except with old shells:
2635target_os=$*
2636IFS=$ac_save_IFS
2637case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2638
2639
2640# The aliases save the names the user supplied, while $host etc.
2641# will get canonicalized.
2642test -n "$target_alias" &&
2643  test "$program_prefix$program_suffix$program_transform_name" = \
2644    NONENONEs,x,x, &&
2645  program_prefix=${target_alias}-
2646
2647#
2648# +1 : ? : +1  == new interface that does not break old one
2649# +1 : ? : 0   == new interface that breaks old one
2650#  ? : ? : 0   == no new interfaces, but breaks apps
2651#  ? :+1 : ?   == just some internal changes, nothing breaks but might work
2652#                 better
2653# CURRENT : REVISION : AGE
2654LT_VERSION=11:0:0
2655
2656
2657
2658
2659
2660am__api_version='1.16'
2661
2662# Find a good install program.  We prefer a C program (faster),
2663# so one script is as good as another.  But avoid the broken or
2664# incompatible versions:
2665# SysV /etc/install, /usr/sbin/install
2666# SunOS /usr/etc/install
2667# IRIX /sbin/install
2668# AIX /bin/install
2669# AmigaOS /C/install, which installs bootblocks on floppy discs
2670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673# OS/2's system install, which has a completely different semantic
2674# ./install, which can be erroneously created by make from ./install.sh.
2675# Reject install programs that cannot install multiple files.
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2677$as_echo_n "checking for a BSD-compatible install... " >&6; }
2678if test -z "$INSTALL"; then
2679if ${ac_cv_path_install+:} false; then :
2680  $as_echo_n "(cached) " >&6
2681else
2682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    # Account for people who put trailing slashes in PATH elements.
2688case $as_dir/ in #((
2689  ./ | .// | /[cC]/* | \
2690  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2692  /usr/ucb/* ) ;;
2693  *)
2694    # OSF1 and SCO ODT 3.0 have their own names for install.
2695    # Don't use installbsd from OSF since it installs stuff as root
2696    # by default.
2697    for ac_prog in ginstall scoinst install; do
2698      for ac_exec_ext in '' $ac_executable_extensions; do
2699	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700	  if test $ac_prog = install &&
2701	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702	    # AIX install.  It has an incompatible calling convention.
2703	    :
2704	  elif test $ac_prog = install &&
2705	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706	    # program-specific install script used by HP pwplus--don't use.
2707	    :
2708	  else
2709	    rm -rf conftest.one conftest.two conftest.dir
2710	    echo one > conftest.one
2711	    echo two > conftest.two
2712	    mkdir conftest.dir
2713	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714	      test -s conftest.one && test -s conftest.two &&
2715	      test -s conftest.dir/conftest.one &&
2716	      test -s conftest.dir/conftest.two
2717	    then
2718	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719	      break 3
2720	    fi
2721	  fi
2722	fi
2723      done
2724    done
2725    ;;
2726esac
2727
2728  done
2729IFS=$as_save_IFS
2730
2731rm -rf conftest.one conftest.two conftest.dir
2732
2733fi
2734  if test "${ac_cv_path_install+set}" = set; then
2735    INSTALL=$ac_cv_path_install
2736  else
2737    # As a last resort, use the slow shell script.  Don't cache a
2738    # value for INSTALL within a source directory, because that will
2739    # break other packages using the cache if that directory is
2740    # removed, or if the value is a relative name.
2741    INSTALL=$ac_install_sh
2742  fi
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745$as_echo "$INSTALL" >&6; }
2746
2747# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748# It thinks the first close brace ends the variable substitution.
2749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2750
2751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2752
2753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2754
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756$as_echo_n "checking whether build environment is sane... " >&6; }
2757# Reject unsafe characters in $srcdir or the absolute working directory
2758# name.  Accept space and tab only in the latter.
2759am_lf='
2760'
2761case `pwd` in
2762  *[\\\"\#\$\&\'\`$am_lf]*)
2763    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2764esac
2765case $srcdir in
2766  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2767    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2768esac
2769
2770# Do 'set' in a subshell so we don't clobber the current shell's
2771# arguments.  Must try -L first in case configure is actually a
2772# symlink; some systems play weird games with the mod time of symlinks
2773# (eg FreeBSD returns the mod time of the symlink's containing
2774# directory).
2775if (
2776   am_has_slept=no
2777   for am_try in 1 2; do
2778     echo "timestamp, slept: $am_has_slept" > conftest.file
2779     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780     if test "$*" = "X"; then
2781	# -L didn't work.
2782	set X `ls -t "$srcdir/configure" conftest.file`
2783     fi
2784     if test "$*" != "X $srcdir/configure conftest.file" \
2785	&& test "$*" != "X conftest.file $srcdir/configure"; then
2786
2787	# If neither matched, then we have a broken ls.  This can happen
2788	# if, for instance, CONFIG_SHELL is bash and it inherits a
2789	# broken ls alias from the environment.  This has actually
2790	# happened.  Such a system could not be considered "sane".
2791	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2792  alias in your environment" "$LINENO" 5
2793     fi
2794     if test "$2" = conftest.file || test $am_try -eq 2; then
2795       break
2796     fi
2797     # Just in case.
2798     sleep 1
2799     am_has_slept=yes
2800   done
2801   test "$2" = conftest.file
2802   )
2803then
2804   # Ok.
2805   :
2806else
2807   as_fn_error $? "newly created file is older than distributed files!
2808Check your system clock" "$LINENO" 5
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811$as_echo "yes" >&6; }
2812# If we didn't sleep, we still need to ensure time stamps of config.status and
2813# generated files are strictly newer.
2814am_sleep_pid=
2815if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2816  ( sleep 1 ) &
2817  am_sleep_pid=$!
2818fi
2819
2820rm -f conftest.file
2821
2822test "$program_prefix" != NONE &&
2823  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824# Use a double $ so make ignores it.
2825test "$program_suffix" != NONE &&
2826  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827# Double any \ or $.
2828# By default was `s,x,x', remove it if useless.
2829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2831
2832# Expand $ac_aux_dir to an absolute path.
2833am_aux_dir=`cd "$ac_aux_dir" && pwd`
2834
2835if test x"${MISSING+set}" != xset; then
2836  case $am_aux_dir in
2837  *\ * | *\	*)
2838    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839  *)
2840    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2841  esac
2842fi
2843# Use eval to expand $SHELL
2844if eval "$MISSING --is-lightweight"; then
2845  am_missing_run="$MISSING "
2846else
2847  am_missing_run=
2848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2850fi
2851
2852if test x"${install_sh+set}" != xset; then
2853  case $am_aux_dir in
2854  *\ * | *\	*)
2855    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856  *)
2857    install_sh="\${SHELL} $am_aux_dir/install-sh"
2858  esac
2859fi
2860
2861# Installed binaries are usually stripped using 'strip' when the user
2862# run "make install-strip".  However 'strip' might not be the right
2863# tool to use in cross-compilation environments, therefore Automake
2864# will honor the 'STRIP' environment variable to overrule this program.
2865if test "$cross_compiling" != no; then
2866  if test -n "$ac_tool_prefix"; then
2867  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868set dummy ${ac_tool_prefix}strip; ac_word=$2
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if ${ac_cv_prog_STRIP+:} false; then :
2872  $as_echo_n "(cached) " >&6
2873else
2874  if test -n "$STRIP"; then
2875  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880  IFS=$as_save_IFS
2881  test -z "$as_dir" && as_dir=.
2882    for ac_exec_ext in '' $ac_executable_extensions; do
2883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886    break 2
2887  fi
2888done
2889  done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894STRIP=$ac_cv_prog_STRIP
2895if test -n "$STRIP"; then
2896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897$as_echo "$STRIP" >&6; }
2898else
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904fi
2905if test -z "$ac_cv_prog_STRIP"; then
2906  ac_ct_STRIP=$STRIP
2907  # Extract the first word of "strip", so it can be a program name with args.
2908set dummy strip; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2912  $as_echo_n "(cached) " >&6
2913else
2914  if test -n "$ac_ct_STRIP"; then
2915  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920  IFS=$as_save_IFS
2921  test -z "$as_dir" && as_dir=.
2922    for ac_exec_ext in '' $ac_executable_extensions; do
2923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924    ac_cv_prog_ac_ct_STRIP="strip"
2925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926    break 2
2927  fi
2928done
2929  done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935if test -n "$ac_ct_STRIP"; then
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2937$as_echo "$ac_ct_STRIP" >&6; }
2938else
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943  if test "x$ac_ct_STRIP" = x; then
2944    STRIP=":"
2945  else
2946    case $cross_compiling:$ac_tool_warned in
2947yes:)
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950ac_tool_warned=yes ;;
2951esac
2952    STRIP=$ac_ct_STRIP
2953  fi
2954else
2955  STRIP="$ac_cv_prog_STRIP"
2956fi
2957
2958fi
2959INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2960
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2962$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2963if test -z "$MKDIR_P"; then
2964  if ${ac_cv_path_mkdir+:} false; then :
2965  $as_echo_n "(cached) " >&6
2966else
2967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969do
2970  IFS=$as_save_IFS
2971  test -z "$as_dir" && as_dir=.
2972    for ac_prog in mkdir gmkdir; do
2973	 for ac_exec_ext in '' $ac_executable_extensions; do
2974	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2975	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976	     'mkdir (GNU coreutils) '* | \
2977	     'mkdir (coreutils) '* | \
2978	     'mkdir (fileutils) '4.1*)
2979	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2980	       break 3;;
2981	   esac
2982	 done
2983       done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988
2989  test -d ./--version && rmdir ./--version
2990  if test "${ac_cv_path_mkdir+set}" = set; then
2991    MKDIR_P="$ac_cv_path_mkdir -p"
2992  else
2993    # As a last resort, use the slow shell script.  Don't cache a
2994    # value for MKDIR_P within a source directory, because that will
2995    # break other packages using the cache if that directory is
2996    # removed, or if the value is a relative name.
2997    MKDIR_P="$ac_install_sh -d"
2998  fi
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3001$as_echo "$MKDIR_P" >&6; }
3002
3003for ac_prog in gawk mawk nawk awk
3004do
3005  # Extract the first word of "$ac_prog", so it can be a program name with args.
3006set dummy $ac_prog; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if ${ac_cv_prog_AWK+:} false; then :
3010  $as_echo_n "(cached) " >&6
3011else
3012  if test -n "$AWK"; then
3013  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018  IFS=$as_save_IFS
3019  test -z "$as_dir" && as_dir=.
3020    for ac_exec_ext in '' $ac_executable_extensions; do
3021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022    ac_cv_prog_AWK="$ac_prog"
3023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024    break 2
3025  fi
3026done
3027  done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032AWK=$ac_cv_prog_AWK
3033if test -n "$AWK"; then
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035$as_echo "$AWK" >&6; }
3036else
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042  test -n "$AWK" && break
3043done
3044
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047set x ${MAKE-make}
3048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  cat >conftest.make <<\_ACEOF
3053SHELL = /bin/sh
3054all:
3055	@echo '@@@%%%=$(MAKE)=@@@%%%'
3056_ACEOF
3057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3058case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059  *@@@%%%=?*=@@@%%%*)
3060    eval ac_cv_prog_make_${ac_make}_set=yes;;
3061  *)
3062    eval ac_cv_prog_make_${ac_make}_set=no;;
3063esac
3064rm -f conftest.make
3065fi
3066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068$as_echo "yes" >&6; }
3069  SET_MAKE=
3070else
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073  SET_MAKE="MAKE=${MAKE-make}"
3074fi
3075
3076rm -rf .tst 2>/dev/null
3077mkdir .tst 2>/dev/null
3078if test -d .tst; then
3079  am__leading_dot=.
3080else
3081  am__leading_dot=_
3082fi
3083rmdir .tst 2>/dev/null
3084
3085# Check whether --enable-silent-rules was given.
3086if test "${enable_silent_rules+set}" = set; then :
3087  enableval=$enable_silent_rules;
3088fi
3089
3090case $enable_silent_rules in # (((
3091  yes) AM_DEFAULT_VERBOSITY=0;;
3092   no) AM_DEFAULT_VERBOSITY=1;;
3093    *) AM_DEFAULT_VERBOSITY=1;;
3094esac
3095am_make=${MAKE-make}
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3098if ${am_cv_make_support_nested_variables+:} false; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if $as_echo 'TRUE=$(BAR$(V))
3102BAR0=false
3103BAR1=true
3104V=1
3105am__doit:
3106	@$(TRUE)
3107.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108  am_cv_make_support_nested_variables=yes
3109else
3110  am_cv_make_support_nested_variables=no
3111fi
3112fi
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114$as_echo "$am_cv_make_support_nested_variables" >&6; }
3115if test $am_cv_make_support_nested_variables = yes; then
3116    AM_V='$(V)'
3117  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3118else
3119  AM_V=$AM_DEFAULT_VERBOSITY
3120  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121fi
3122AM_BACKSLASH='\'
3123
3124if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126  # is not polluted with repeated "-I."
3127  am__isrc=' -I$(srcdir)'
3128  # test to see if srcdir already configured
3129  if test -f $srcdir/config.status; then
3130    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131  fi
3132fi
3133
3134# test whether we have cygpath
3135if test -z "$CYGPATH_W"; then
3136  if (cygpath --version) >/dev/null 2>/dev/null; then
3137    CYGPATH_W='cygpath -w'
3138  else
3139    CYGPATH_W=echo
3140  fi
3141fi
3142
3143
3144# Define the identity of the package.
3145 PACKAGE='log4cxx'
3146 VERSION='0.11.0'
3147
3148
3149cat >>confdefs.h <<_ACEOF
3150#define PACKAGE "$PACKAGE"
3151_ACEOF
3152
3153
3154cat >>confdefs.h <<_ACEOF
3155#define VERSION "$VERSION"
3156_ACEOF
3157
3158# Some tools Automake needs.
3159
3160ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
3174# For better backward compatibility.  To be removed once Automake 1.9.x
3175# dies out for good.  For more background, see:
3176# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3177# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3178mkdir_p='$(MKDIR_P)'
3179
3180# We need awk for the "check" target (and possibly the TAP driver).  The
3181# system "awk" is bad on some platforms.
3182# Always define AMTAR for backward compatibility.  Yes, it's still used
3183# in the wild :-(  We should find a proper way to deprecate it ...
3184AMTAR='$${TAR-tar}'
3185
3186
3187# We'll loop over all known methods to create a tar archive until one works.
3188_am_tools='gnutar  pax cpio none'
3189
3190am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3191
3192
3193
3194
3195
3196
3197# POSIX will say in a future version that running "rm -f" with no argument
3198# is OK; and we want to be able to make that assumption in our Makefile
3199# recipes.  So use an aggressive probe to check that the usage we want is
3200# actually supported "in the wild" to an acceptable degree.
3201# See automake bug#10828.
3202# To make any issue more visible, cause the running configure to be aborted
3203# by default if the 'rm' program in use doesn't match our expectations; the
3204# user can still override this though.
3205if rm -f && rm -fr && rm -rf; then : OK; else
3206  cat >&2 <<'END'
3207Oops!
3208
3209Your 'rm' program seems unable to run without file operands specified
3210on the command line, even when the '-f' option is present.  This is contrary
3211to the behaviour of most rm programs out there, and not conforming with
3212the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3213
3214Please tell bug-automake@gnu.org about your system, including the value
3215of your $PATH and any error possibly output before this message.  This
3216can help us improve future automake versions.
3217
3218END
3219  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3220    echo 'Configuration will proceed anyway, since you have set the' >&2
3221    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3222    echo >&2
3223  else
3224    cat >&2 <<'END'
3225Aborting the configuration process, to ensure you take notice of the issue.
3226
3227You can download and install GNU coreutils to get an 'rm' implementation
3228that behaves properly: <https://www.gnu.org/software/coreutils/>.
3229
3230If you want to complete the configuration process using your problematic
3231'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3232to "yes", and re-run configure.
3233
3234END
3235    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3236  fi
3237fi
3238
3239
3240# Checks for programs
3241# ----------------------------------------------------------------------------
3242
3243DEPDIR="${am__leading_dot}deps"
3244
3245ac_config_commands="$ac_config_commands depfiles"
3246
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3248$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3249cat > confinc.mk << 'END'
3250am__doit:
3251	@echo this is the am__doit target >confinc.out
3252.PHONY: am__doit
3253END
3254am__include="#"
3255am__quote=
3256# BSD make does it like this.
3257echo '.include "confinc.mk" # ignored' > confmf.BSD
3258# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3259echo 'include confinc.mk # ignored' > confmf.GNU
3260_am_result=no
3261for s in GNU BSD; do
3262  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3263   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }
3267  case $?:`cat confinc.out 2>/dev/null` in #(
3268  '0:this is the am__doit target') :
3269    case $s in #(
3270  BSD) :
3271    am__include='.include' am__quote='"' ;; #(
3272  *) :
3273    am__include='include' am__quote='' ;;
3274esac ;; #(
3275  *) :
3276     ;;
3277esac
3278  if test "$am__include" != "#"; then
3279    _am_result="yes ($s style)"
3280    break
3281  fi
3282done
3283rm -f confinc.* confmf.*
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3285$as_echo "${_am_result}" >&6; }
3286
3287# Check whether --enable-dependency-tracking was given.
3288if test "${enable_dependency_tracking+set}" = set; then :
3289  enableval=$enable_dependency_tracking;
3290fi
3291
3292if test "x$enable_dependency_tracking" != xno; then
3293  am_depcomp="$ac_aux_dir/depcomp"
3294  AMDEPBACKSLASH='\'
3295  am__nodep='_no'
3296fi
3297 if test "x$enable_dependency_tracking" != xno; then
3298  AMDEP_TRUE=
3299  AMDEP_FALSE='#'
3300else
3301  AMDEP_TRUE='#'
3302  AMDEP_FALSE=
3303fi
3304
3305
3306ac_ext=c
3307ac_cpp='$CPP $CPPFLAGS'
3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311if test -n "$ac_tool_prefix"; then
3312  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3313set dummy ${ac_tool_prefix}gcc; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if ${ac_cv_prog_CC+:} false; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  if test -n "$CC"; then
3320  ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327    for ac_exec_ext in '' $ac_executable_extensions; do
3328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334  done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339CC=$ac_cv_prog_CC
3340if test -n "$CC"; then
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342$as_echo "$CC" >&6; }
3343else
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348
3349fi
3350if test -z "$ac_cv_prog_CC"; then
3351  ac_ct_CC=$CC
3352  # Extract the first word of "gcc", so it can be a program name with args.
3353set dummy gcc; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if ${ac_cv_prog_ac_ct_CC+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  if test -n "$ac_ct_CC"; then
3360  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_prog_ac_ct_CC="gcc"
3370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374  done
3375IFS=$as_save_IFS
3376
3377fi
3378fi
3379ac_ct_CC=$ac_cv_prog_ac_ct_CC
3380if test -n "$ac_ct_CC"; then
3381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3382$as_echo "$ac_ct_CC" >&6; }
3383else
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386fi
3387
3388  if test "x$ac_ct_CC" = x; then
3389    CC=""
3390  else
3391    case $cross_compiling:$ac_tool_warned in
3392yes:)
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395ac_tool_warned=yes ;;
3396esac
3397    CC=$ac_ct_CC
3398  fi
3399else
3400  CC="$ac_cv_prog_CC"
3401fi
3402
3403if test -z "$CC"; then
3404          if test -n "$ac_tool_prefix"; then
3405    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3406set dummy ${ac_tool_prefix}cc; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
3409if ${ac_cv_prog_CC+:} false; then :
3410  $as_echo_n "(cached) " >&6
3411else
3412  if test -n "$CC"; then
3413  ac_cv_prog_CC="$CC" # Let the user override the test.
3414else
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418  IFS=$as_save_IFS
3419  test -z "$as_dir" && as_dir=.
3420    for ac_exec_ext in '' $ac_executable_extensions; do
3421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422    ac_cv_prog_CC="${ac_tool_prefix}cc"
3423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424    break 2
3425  fi
3426done
3427  done
3428IFS=$as_save_IFS
3429
3430fi
3431fi
3432CC=$ac_cv_prog_CC
3433if test -n "$CC"; then
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435$as_echo "$CC" >&6; }
3436else
3437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438$as_echo "no" >&6; }
3439fi
3440
3441
3442  fi
3443fi
3444if test -z "$CC"; then
3445  # Extract the first word of "cc", so it can be a program name with args.
3446set dummy cc; ac_word=$2
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448$as_echo_n "checking for $ac_word... " >&6; }
3449if ${ac_cv_prog_CC+:} false; then :
3450  $as_echo_n "(cached) " >&6
3451else
3452  if test -n "$CC"; then
3453  ac_cv_prog_CC="$CC" # Let the user override the test.
3454else
3455  ac_prog_rejected=no
3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459  IFS=$as_save_IFS
3460  test -z "$as_dir" && as_dir=.
3461    for ac_exec_ext in '' $ac_executable_extensions; do
3462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3464       ac_prog_rejected=yes
3465       continue
3466     fi
3467    ac_cv_prog_CC="cc"
3468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469    break 2
3470  fi
3471done
3472  done
3473IFS=$as_save_IFS
3474
3475if test $ac_prog_rejected = yes; then
3476  # We found a bogon in the path, so make sure we never use it.
3477  set dummy $ac_cv_prog_CC
3478  shift
3479  if test $# != 0; then
3480    # We chose a different compiler from the bogus one.
3481    # However, it has the same basename, so the bogon will be chosen
3482    # first if we set CC to just the basename; use the full file name.
3483    shift
3484    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3485  fi
3486fi
3487fi
3488fi
3489CC=$ac_cv_prog_CC
3490if test -n "$CC"; then
3491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492$as_echo "$CC" >&6; }
3493else
3494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495$as_echo "no" >&6; }
3496fi
3497
3498
3499fi
3500if test -z "$CC"; then
3501  if test -n "$ac_tool_prefix"; then
3502  for ac_prog in cl.exe
3503  do
3504    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3505set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507$as_echo_n "checking for $ac_word... " >&6; }
3508if ${ac_cv_prog_CC+:} false; then :
3509  $as_echo_n "(cached) " >&6
3510else
3511  if test -n "$CC"; then
3512  ac_cv_prog_CC="$CC" # Let the user override the test.
3513else
3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH
3516do
3517  IFS=$as_save_IFS
3518  test -z "$as_dir" && as_dir=.
3519    for ac_exec_ext in '' $ac_executable_extensions; do
3520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523    break 2
3524  fi
3525done
3526  done
3527IFS=$as_save_IFS
3528
3529fi
3530fi
3531CC=$ac_cv_prog_CC
3532if test -n "$CC"; then
3533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3534$as_echo "$CC" >&6; }
3535else
3536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537$as_echo "no" >&6; }
3538fi
3539
3540
3541    test -n "$CC" && break
3542  done
3543fi
3544if test -z "$CC"; then
3545  ac_ct_CC=$CC
3546  for ac_prog in cl.exe
3547do
3548  # Extract the first word of "$ac_prog", so it can be a program name with args.
3549set dummy $ac_prog; ac_word=$2
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551$as_echo_n "checking for $ac_word... " >&6; }
3552if ${ac_cv_prog_ac_ct_CC+:} false; then :
3553  $as_echo_n "(cached) " >&6
3554else
3555  if test -n "$ac_ct_CC"; then
3556  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557else
3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559for as_dir in $PATH
3560do
3561  IFS=$as_save_IFS
3562  test -z "$as_dir" && as_dir=.
3563    for ac_exec_ext in '' $ac_executable_extensions; do
3564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565    ac_cv_prog_ac_ct_CC="$ac_prog"
3566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567    break 2
3568  fi
3569done
3570  done
3571IFS=$as_save_IFS
3572
3573fi
3574fi
3575ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576if test -n "$ac_ct_CC"; then
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578$as_echo "$ac_ct_CC" >&6; }
3579else
3580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581$as_echo "no" >&6; }
3582fi
3583
3584
3585  test -n "$ac_ct_CC" && break
3586done
3587
3588  if test "x$ac_ct_CC" = x; then
3589    CC=""
3590  else
3591    case $cross_compiling:$ac_tool_warned in
3592yes:)
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595ac_tool_warned=yes ;;
3596esac
3597    CC=$ac_ct_CC
3598  fi
3599fi
3600
3601fi
3602
3603
3604test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606as_fn_error $? "no acceptable C compiler found in \$PATH
3607See \`config.log' for more details" "$LINENO" 5; }
3608
3609# Provide some information about the compiler.
3610$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3611set X $ac_compile
3612ac_compiler=$2
3613for ac_option in --version -v -V -qversion; do
3614  { { ac_try="$ac_compiler $ac_option >&5"
3615case "(($ac_try" in
3616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617  *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620$as_echo "$ac_try_echo"; } >&5
3621  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3622  ac_status=$?
3623  if test -s conftest.err; then
3624    sed '10a\
3625... rest of stderr output deleted ...
3626         10q' conftest.err >conftest.er1
3627    cat conftest.er1 >&5
3628  fi
3629  rm -f conftest.er1 conftest.err
3630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631  test $ac_status = 0; }
3632done
3633
3634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636
3637int
3638main ()
3639{
3640
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645ac_clean_files_save=$ac_clean_files
3646ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3647# Try to create an executable without -o first, disregard a.out.
3648# It will help us diagnose broken compilers, and finding out an intuition
3649# of exeext.
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3651$as_echo_n "checking whether the C compiler works... " >&6; }
3652ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3653
3654# The possible output files:
3655ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3656
3657ac_rmfiles=
3658for ac_file in $ac_files
3659do
3660  case $ac_file in
3661    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3662    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3663  esac
3664done
3665rm -f $ac_rmfiles
3666
3667if { { ac_try="$ac_link_default"
3668case "(($ac_try" in
3669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670  *) ac_try_echo=$ac_try;;
3671esac
3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673$as_echo "$ac_try_echo"; } >&5
3674  (eval "$ac_link_default") 2>&5
3675  ac_status=$?
3676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677  test $ac_status = 0; }; then :
3678  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3679# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3680# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3681# so that the user can short-circuit this test for compilers unknown to
3682# Autoconf.
3683for ac_file in $ac_files ''
3684do
3685  test -f "$ac_file" || continue
3686  case $ac_file in
3687    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3688	;;
3689    [ab].out )
3690	# We found the default executable, but exeext='' is most
3691	# certainly right.
3692	break;;
3693    *.* )
3694	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3695	then :; else
3696	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697	fi
3698	# We set ac_cv_exeext here because the later test for it is not
3699	# safe: cross compilers may not add the suffix if given an `-o'
3700	# argument, so we may need to know it at that point already.
3701	# Even if this section looks crufty: it has the advantage of
3702	# actually working.
3703	break;;
3704    * )
3705	break;;
3706  esac
3707done
3708test "$ac_cv_exeext" = no && ac_cv_exeext=
3709
3710else
3711  ac_file=''
3712fi
3713if test -z "$ac_file"; then :
3714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715$as_echo "no" >&6; }
3716$as_echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721as_fn_error 77 "C compiler cannot create executables
3722See \`config.log' for more details" "$LINENO" 5; }
3723else
3724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3725$as_echo "yes" >&6; }
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3728$as_echo_n "checking for C compiler default output file name... " >&6; }
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3730$as_echo "$ac_file" >&6; }
3731ac_exeext=$ac_cv_exeext
3732
3733rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3734ac_clean_files=$ac_clean_files_save
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3736$as_echo_n "checking for suffix of executables... " >&6; }
3737if { { ac_try="$ac_link"
3738case "(($ac_try" in
3739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740  *) ac_try_echo=$ac_try;;
3741esac
3742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743$as_echo "$ac_try_echo"; } >&5
3744  (eval "$ac_link") 2>&5
3745  ac_status=$?
3746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747  test $ac_status = 0; }; then :
3748  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3749# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3750# work properly (i.e., refer to `conftest.exe'), while it won't with
3751# `rm'.
3752for ac_file in conftest.exe conftest conftest.*; do
3753  test -f "$ac_file" || continue
3754  case $ac_file in
3755    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3756    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757	  break;;
3758    * ) break;;
3759  esac
3760done
3761else
3762  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3765See \`config.log' for more details" "$LINENO" 5; }
3766fi
3767rm -f conftest conftest$ac_cv_exeext
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3769$as_echo "$ac_cv_exeext" >&6; }
3770
3771rm -f conftest.$ac_ext
3772EXEEXT=$ac_cv_exeext
3773ac_exeext=$EXEEXT
3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776#include <stdio.h>
3777int
3778main ()
3779{
3780FILE *f = fopen ("conftest.out", "w");
3781 return ferror (f) || fclose (f) != 0;
3782
3783  ;
3784  return 0;
3785}
3786_ACEOF
3787ac_clean_files="$ac_clean_files conftest.out"
3788# Check that the compiler produces executables we can run.  If not, either
3789# the compiler is broken, or we cross compile.
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3791$as_echo_n "checking whether we are cross compiling... " >&6; }
3792if test "$cross_compiling" != yes; then
3793  { { ac_try="$ac_link"
3794case "(($ac_try" in
3795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796  *) ac_try_echo=$ac_try;;
3797esac
3798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799$as_echo "$ac_try_echo"; } >&5
3800  (eval "$ac_link") 2>&5
3801  ac_status=$?
3802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803  test $ac_status = 0; }
3804  if { ac_try='./conftest$ac_cv_exeext'
3805  { { case "(($ac_try" in
3806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807  *) ac_try_echo=$ac_try;;
3808esac
3809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810$as_echo "$ac_try_echo"; } >&5
3811  (eval "$ac_try") 2>&5
3812  ac_status=$?
3813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814  test $ac_status = 0; }; }; then
3815    cross_compiling=no
3816  else
3817    if test "$cross_compiling" = maybe; then
3818	cross_compiling=yes
3819    else
3820	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "cannot run C compiled programs.
3823If you meant to cross compile, use \`--host'.
3824See \`config.log' for more details" "$LINENO" 5; }
3825    fi
3826  fi
3827fi
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3829$as_echo "$cross_compiling" >&6; }
3830
3831rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3832ac_clean_files=$ac_clean_files_save
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3834$as_echo_n "checking for suffix of object files... " >&6; }
3835if ${ac_cv_objext+:} false; then :
3836  $as_echo_n "(cached) " >&6
3837else
3838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h.  */
3840
3841int
3842main ()
3843{
3844
3845  ;
3846  return 0;
3847}
3848_ACEOF
3849rm -f conftest.o conftest.obj
3850if { { ac_try="$ac_compile"
3851case "(($ac_try" in
3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853  *) ac_try_echo=$ac_try;;
3854esac
3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856$as_echo "$ac_try_echo"; } >&5
3857  (eval "$ac_compile") 2>&5
3858  ac_status=$?
3859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860  test $ac_status = 0; }; then :
3861  for ac_file in conftest.o conftest.obj conftest.*; do
3862  test -f "$ac_file" || continue;
3863  case $ac_file in
3864    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3865    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3866       break;;
3867  esac
3868done
3869else
3870  $as_echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875as_fn_error $? "cannot compute suffix of object files: cannot compile
3876See \`config.log' for more details" "$LINENO" 5; }
3877fi
3878rm -f conftest.$ac_cv_objext conftest.$ac_ext
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3881$as_echo "$ac_cv_objext" >&6; }
3882OBJEXT=$ac_cv_objext
3883ac_objext=$OBJEXT
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3885$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3886if ${ac_cv_c_compiler_gnu+:} false; then :
3887  $as_echo_n "(cached) " >&6
3888else
3889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
3892int
3893main ()
3894{
3895#ifndef __GNUC__
3896       choke me
3897#endif
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_compile "$LINENO"; then :
3904  ac_compiler_gnu=yes
3905else
3906  ac_compiler_gnu=no
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909ac_cv_c_compiler_gnu=$ac_compiler_gnu
3910
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3913$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3914if test $ac_compiler_gnu = yes; then
3915  GCC=yes
3916else
3917  GCC=
3918fi
3919ac_test_CFLAGS=${CFLAGS+set}
3920ac_save_CFLAGS=$CFLAGS
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3922$as_echo_n "checking whether $CC accepts -g... " >&6; }
3923if ${ac_cv_prog_cc_g+:} false; then :
3924  $as_echo_n "(cached) " >&6
3925else
3926  ac_save_c_werror_flag=$ac_c_werror_flag
3927   ac_c_werror_flag=yes
3928   ac_cv_prog_cc_g=no
3929   CFLAGS="-g"
3930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932
3933int
3934main ()
3935{
3936
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942  ac_cv_prog_cc_g=yes
3943else
3944  CFLAGS=""
3945      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946/* end confdefs.h.  */
3947
3948int
3949main ()
3950{
3951
3952  ;
3953  return 0;
3954}
3955_ACEOF
3956if ac_fn_c_try_compile "$LINENO"; then :
3957
3958else
3959  ac_c_werror_flag=$ac_save_c_werror_flag
3960	 CFLAGS="-g"
3961	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963
3964int
3965main ()
3966{
3967
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972if ac_fn_c_try_compile "$LINENO"; then :
3973  ac_cv_prog_cc_g=yes
3974fi
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976fi
3977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978fi
3979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980   ac_c_werror_flag=$ac_save_c_werror_flag
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3983$as_echo "$ac_cv_prog_cc_g" >&6; }
3984if test "$ac_test_CFLAGS" = set; then
3985  CFLAGS=$ac_save_CFLAGS
3986elif test $ac_cv_prog_cc_g = yes; then
3987  if test "$GCC" = yes; then
3988    CFLAGS="-g -O2"
3989  else
3990    CFLAGS="-g"
3991  fi
3992else
3993  if test "$GCC" = yes; then
3994    CFLAGS="-O2"
3995  else
3996    CFLAGS=
3997  fi
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4000$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4001if ${ac_cv_prog_cc_c89+:} false; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004  ac_cv_prog_cc_c89=no
4005ac_save_CC=$CC
4006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h.  */
4008#include <stdarg.h>
4009#include <stdio.h>
4010struct stat;
4011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4012struct buf { int x; };
4013FILE * (*rcsopen) (struct buf *, struct stat *, int);
4014static char *e (p, i)
4015     char **p;
4016     int i;
4017{
4018  return p[i];
4019}
4020static char *f (char * (*g) (char **, int), char **p, ...)
4021{
4022  char *s;
4023  va_list v;
4024  va_start (v,p);
4025  s = g (p, va_arg (v,int));
4026  va_end (v);
4027  return s;
4028}
4029
4030/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4031   function prototypes and stuff, but not '\xHH' hex character constants.
4032   These don't provoke an error unfortunately, instead are silently treated
4033   as 'x'.  The following induces an error, until -std is added to get
4034   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4035   array size at least.  It's necessary to write '\x00'==0 to get something
4036   that's true only with -std.  */
4037int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4038
4039/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4040   inside strings and character constants.  */
4041#define FOO(x) 'x'
4042int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4043
4044int test (int i, double x);
4045struct s1 {int (*f) (int a);};
4046struct s2 {int (*f) (double a);};
4047int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4048int argc;
4049char **argv;
4050int
4051main ()
4052{
4053return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4059	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4060do
4061  CC="$ac_save_CC $ac_arg"
4062  if ac_fn_c_try_compile "$LINENO"; then :
4063  ac_cv_prog_cc_c89=$ac_arg
4064fi
4065rm -f core conftest.err conftest.$ac_objext
4066  test "x$ac_cv_prog_cc_c89" != "xno" && break
4067done
4068rm -f conftest.$ac_ext
4069CC=$ac_save_CC
4070
4071fi
4072# AC_CACHE_VAL
4073case "x$ac_cv_prog_cc_c89" in
4074  x)
4075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4076$as_echo "none needed" >&6; } ;;
4077  xno)
4078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4079$as_echo "unsupported" >&6; } ;;
4080  *)
4081    CC="$CC $ac_cv_prog_cc_c89"
4082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4083$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4084esac
4085if test "x$ac_cv_prog_cc_c89" != xno; then :
4086
4087fi
4088
4089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095ac_ext=c
4096ac_cpp='$CPP $CPPFLAGS'
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4101$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4102if ${am_cv_prog_cc_c_o+:} false; then :
4103  $as_echo_n "(cached) " >&6
4104else
4105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107
4108int
4109main ()
4110{
4111
4112  ;
4113  return 0;
4114}
4115_ACEOF
4116  # Make sure it works both with $CC and with simple cc.
4117  # Following AC_PROG_CC_C_O, we do the test twice because some
4118  # compilers refuse to overwrite an existing .o file with -o,
4119  # though they will create one.
4120  am_cv_prog_cc_c_o=yes
4121  for am_i in 1 2; do
4122    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4123   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } \
4127         && test -f conftest2.$ac_objext; then
4128      : OK
4129    else
4130      am_cv_prog_cc_c_o=no
4131      break
4132    fi
4133  done
4134  rm -f core conftest*
4135  unset am_i
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4138$as_echo "$am_cv_prog_cc_c_o" >&6; }
4139if test "$am_cv_prog_cc_c_o" != yes; then
4140   # Losing compiler, so override with the script.
4141   # FIXME: It is wrong to rewrite CC.
4142   # But if we don't then we get into trouble of one sort or another.
4143   # A longer-term fix would be to have automake use am__CC in this case,
4144   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4145   CC="$am_aux_dir/compile $CC"
4146fi
4147ac_ext=c
4148ac_cpp='$CPP $CPPFLAGS'
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153
4154depcc="$CC"   am_compiler_list=
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4157$as_echo_n "checking dependency style of $depcc... " >&6; }
4158if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4162  # We make a subdir and do the tests there.  Otherwise we can end up
4163  # making bogus files that we don't know about and never remove.  For
4164  # instance it was reported that on HP-UX the gcc test will end up
4165  # making a dummy file named 'D' -- because '-MD' means "put the output
4166  # in D".
4167  rm -rf conftest.dir
4168  mkdir conftest.dir
4169  # Copy depcomp to subdir because otherwise we won't find it if we're
4170  # using a relative directory.
4171  cp "$am_depcomp" conftest.dir
4172  cd conftest.dir
4173  # We will build objects and dependencies in a subdirectory because
4174  # it helps to detect inapplicable dependency modes.  For instance
4175  # both Tru64's cc and ICC support -MD to output dependencies as a
4176  # side effect of compilation, but ICC will put the dependencies in
4177  # the current directory while Tru64 will put them in the object
4178  # directory.
4179  mkdir sub
4180
4181  am_cv_CC_dependencies_compiler_type=none
4182  if test "$am_compiler_list" = ""; then
4183     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4184  fi
4185  am__universal=false
4186  case " $depcc " in #(
4187     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4188     esac
4189
4190  for depmode in $am_compiler_list; do
4191    # Setup a source with many dependencies, because some compilers
4192    # like to wrap large dependency lists on column 80 (with \), and
4193    # we should not choose a depcomp mode which is confused by this.
4194    #
4195    # We need to recreate these files for each test, as the compiler may
4196    # overwrite some of them when testing with obscure command lines.
4197    # This happens at least with the AIX C compiler.
4198    : > sub/conftest.c
4199    for i in 1 2 3 4 5 6; do
4200      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4201      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4202      # Solaris 10 /bin/sh.
4203      echo '/* dummy */' > sub/conftst$i.h
4204    done
4205    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4206
4207    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4208    # mode.  It turns out that the SunPro C++ compiler does not properly
4209    # handle '-M -o', and we need to detect this.  Also, some Intel
4210    # versions had trouble with output in subdirs.
4211    am__obj=sub/conftest.${OBJEXT-o}
4212    am__minus_obj="-o $am__obj"
4213    case $depmode in
4214    gcc)
4215      # This depmode causes a compiler race in universal mode.
4216      test "$am__universal" = false || continue
4217      ;;
4218    nosideeffect)
4219      # After this tag, mechanisms are not by side-effect, so they'll
4220      # only be used when explicitly requested.
4221      if test "x$enable_dependency_tracking" = xyes; then
4222	continue
4223      else
4224	break
4225      fi
4226      ;;
4227    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4228      # This compiler won't grok '-c -o', but also, the minuso test has
4229      # not run yet.  These depmodes are late enough in the game, and
4230      # so weak that their functioning should not be impacted.
4231      am__obj=conftest.${OBJEXT-o}
4232      am__minus_obj=
4233      ;;
4234    none) break ;;
4235    esac
4236    if depmode=$depmode \
4237       source=sub/conftest.c object=$am__obj \
4238       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4239       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4240         >/dev/null 2>conftest.err &&
4241       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4242       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4243       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4244       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4245      # icc doesn't choke on unknown options, it will just issue warnings
4246      # or remarks (even with -Werror).  So we grep stderr for any message
4247      # that says an option was ignored or not supported.
4248      # When given -MP, icc 7.0 and 7.1 complain thusly:
4249      #   icc: Command line warning: ignoring option '-M'; no argument required
4250      # The diagnosis changed in icc 8.0:
4251      #   icc: Command line remark: option '-MP' not supported
4252      if (grep 'ignoring option' conftest.err ||
4253          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4254        am_cv_CC_dependencies_compiler_type=$depmode
4255        break
4256      fi
4257    fi
4258  done
4259
4260  cd ..
4261  rm -rf conftest.dir
4262else
4263  am_cv_CC_dependencies_compiler_type=none
4264fi
4265
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4268$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4269CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4270
4271 if
4272  test "x$enable_dependency_tracking" != xno \
4273  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4274  am__fastdepCC_TRUE=
4275  am__fastdepCC_FALSE='#'
4276else
4277  am__fastdepCC_TRUE='#'
4278  am__fastdepCC_FALSE=
4279fi
4280
4281
4282
4283if test -n "$ac_tool_prefix"; then
4284  for ac_prog in ar lib "link -lib"
4285  do
4286    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289$as_echo_n "checking for $ac_word... " >&6; }
4290if ${ac_cv_prog_AR+:} false; then :
4291  $as_echo_n "(cached) " >&6
4292else
4293  if test -n "$AR"; then
4294  ac_cv_prog_AR="$AR" # Let the user override the test.
4295else
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299  IFS=$as_save_IFS
4300  test -z "$as_dir" && as_dir=.
4301    for ac_exec_ext in '' $ac_executable_extensions; do
4302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305    break 2
4306  fi
4307done
4308  done
4309IFS=$as_save_IFS
4310
4311fi
4312fi
4313AR=$ac_cv_prog_AR
4314if test -n "$AR"; then
4315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4316$as_echo "$AR" >&6; }
4317else
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
4320fi
4321
4322
4323    test -n "$AR" && break
4324  done
4325fi
4326if test -z "$AR"; then
4327  ac_ct_AR=$AR
4328  for ac_prog in ar lib "link -lib"
4329do
4330  # Extract the first word of "$ac_prog", so it can be a program name with args.
4331set dummy $ac_prog; ac_word=$2
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
4334if ${ac_cv_prog_ac_ct_AR+:} false; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  if test -n "$ac_ct_AR"; then
4338  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339else
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343  IFS=$as_save_IFS
4344  test -z "$as_dir" && as_dir=.
4345    for ac_exec_ext in '' $ac_executable_extensions; do
4346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347    ac_cv_prog_ac_ct_AR="$ac_prog"
4348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349    break 2
4350  fi
4351done
4352  done
4353IFS=$as_save_IFS
4354
4355fi
4356fi
4357ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358if test -n "$ac_ct_AR"; then
4359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4360$as_echo "$ac_ct_AR" >&6; }
4361else
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
4364fi
4365
4366
4367  test -n "$ac_ct_AR" && break
4368done
4369
4370  if test "x$ac_ct_AR" = x; then
4371    AR="false"
4372  else
4373    case $cross_compiling:$ac_tool_warned in
4374yes:)
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377ac_tool_warned=yes ;;
4378esac
4379    AR=$ac_ct_AR
4380  fi
4381fi
4382
4383: ${AR=ar}
4384
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4386$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4387if ${am_cv_ar_interface+:} false; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390  ac_ext=c
4391ac_cpp='$CPP $CPPFLAGS'
4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395
4396   am_cv_ar_interface=ar
4397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399int some_variable = 0;
4400_ACEOF
4401if ac_fn_c_try_compile "$LINENO"; then :
4402  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4403      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4404  (eval $am_ar_try) 2>&5
4405  ac_status=$?
4406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407  test $ac_status = 0; }
4408      if test "$ac_status" -eq 0; then
4409        am_cv_ar_interface=ar
4410      else
4411        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4412        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4413  (eval $am_ar_try) 2>&5
4414  ac_status=$?
4415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416  test $ac_status = 0; }
4417        if test "$ac_status" -eq 0; then
4418          am_cv_ar_interface=lib
4419        else
4420          am_cv_ar_interface=unknown
4421        fi
4422      fi
4423      rm -f conftest.lib libconftest.a
4424
4425fi
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427   ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432
4433fi
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4435$as_echo "$am_cv_ar_interface" >&6; }
4436
4437case $am_cv_ar_interface in
4438ar)
4439  ;;
4440lib)
4441  # Microsoft lib, so override with the ar-lib wrapper script.
4442  # FIXME: It is wrong to rewrite AR.
4443  # But if we don't then we get into trouble of one sort or another.
4444  # A longer-term fix would be to have automake use am__AR in this case,
4445  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4446  # similar.
4447  AR="$am_aux_dir/ar-lib $AR"
4448  ;;
4449unknown)
4450  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4451  ;;
4452esac
4453
4454case `pwd` in
4455  *\ * | *\	*)
4456    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4457$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4458esac
4459
4460
4461
4462macro_version='2.4.6'
4463macro_revision='2.4.6'
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477ltmain=$ac_aux_dir/ltmain.sh
4478
4479# Backslashify metacharacters that are still active within
4480# double-quoted strings.
4481sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4482
4483# Same as above, but do not quote variable references.
4484double_quote_subst='s/\(["`\\]\)/\\\1/g'
4485
4486# Sed substitution to delay expansion of an escaped shell variable in a
4487# double_quote_subst'ed string.
4488delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4489
4490# Sed substitution to delay expansion of an escaped single quote.
4491delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4492
4493# Sed substitution to avoid accidental globbing in evaled expressions
4494no_glob_subst='s/\*/\\\*/g'
4495
4496ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4497ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4498ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4499
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4501$as_echo_n "checking how to print strings... " >&6; }
4502# Test print first, because it will be a builtin if present.
4503if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4504   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4505  ECHO='print -r --'
4506elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4507  ECHO='printf %s\n'
4508else
4509  # Use this function as a fallback that always works.
4510  func_fallback_echo ()
4511  {
4512    eval 'cat <<_LTECHO_EOF
4513$1
4514_LTECHO_EOF'
4515  }
4516  ECHO='func_fallback_echo'
4517fi
4518
4519# func_echo_all arg...
4520# Invoke $ECHO with all args, space-separated.
4521func_echo_all ()
4522{
4523    $ECHO ""
4524}
4525
4526case $ECHO in
4527  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4528$as_echo "printf" >&6; } ;;
4529  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4530$as_echo "print -r" >&6; } ;;
4531  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4532$as_echo "cat" >&6; } ;;
4533esac
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4549$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4550if ${ac_cv_path_SED+:} false; then :
4551  $as_echo_n "(cached) " >&6
4552else
4553            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4554     for ac_i in 1 2 3 4 5 6 7; do
4555       ac_script="$ac_script$as_nl$ac_script"
4556     done
4557     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4558     { ac_script=; unset ac_script;}
4559     if test -z "$SED"; then
4560  ac_path_SED_found=false
4561  # Loop through the user's path and test for each of PROGNAME-LIST
4562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_prog in sed gsed; do
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4570      as_fn_executable_p "$ac_path_SED" || continue
4571# Check for GNU ac_path_SED and select it if it is found.
4572  # Check for GNU $ac_path_SED
4573case `"$ac_path_SED" --version 2>&1` in
4574*GNU*)
4575  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4576*)
4577  ac_count=0
4578  $as_echo_n 0123456789 >"conftest.in"
4579  while :
4580  do
4581    cat "conftest.in" "conftest.in" >"conftest.tmp"
4582    mv "conftest.tmp" "conftest.in"
4583    cp "conftest.in" "conftest.nl"
4584    $as_echo '' >> "conftest.nl"
4585    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587    as_fn_arith $ac_count + 1 && ac_count=$as_val
4588    if test $ac_count -gt ${ac_path_SED_max-0}; then
4589      # Best one so far, save it but keep looking for a better one
4590      ac_cv_path_SED="$ac_path_SED"
4591      ac_path_SED_max=$ac_count
4592    fi
4593    # 10*(2^10) chars as input seems more than enough
4594    test $ac_count -gt 10 && break
4595  done
4596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
4599      $ac_path_SED_found && break 3
4600    done
4601  done
4602  done
4603IFS=$as_save_IFS
4604  if test -z "$ac_cv_path_SED"; then
4605    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4606  fi
4607else
4608  ac_cv_path_SED=$SED
4609fi
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4613$as_echo "$ac_cv_path_SED" >&6; }
4614 SED="$ac_cv_path_SED"
4615  rm -f conftest.sed
4616
4617test -z "$SED" && SED=sed
4618Xsed="$SED -e 1s/^X//"
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4631$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4632if ${ac_cv_path_GREP+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  if test -z "$GREP"; then
4636  ac_path_GREP_found=false
4637  # Loop through the user's path and test for each of PROGNAME-LIST
4638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640do
4641  IFS=$as_save_IFS
4642  test -z "$as_dir" && as_dir=.
4643    for ac_prog in grep ggrep; do
4644    for ac_exec_ext in '' $ac_executable_extensions; do
4645      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4646      as_fn_executable_p "$ac_path_GREP" || continue
4647# Check for GNU ac_path_GREP and select it if it is found.
4648  # Check for GNU $ac_path_GREP
4649case `"$ac_path_GREP" --version 2>&1` in
4650*GNU*)
4651  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4652*)
4653  ac_count=0
4654  $as_echo_n 0123456789 >"conftest.in"
4655  while :
4656  do
4657    cat "conftest.in" "conftest.in" >"conftest.tmp"
4658    mv "conftest.tmp" "conftest.in"
4659    cp "conftest.in" "conftest.nl"
4660    $as_echo 'GREP' >> "conftest.nl"
4661    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663    as_fn_arith $ac_count + 1 && ac_count=$as_val
4664    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4665      # Best one so far, save it but keep looking for a better one
4666      ac_cv_path_GREP="$ac_path_GREP"
4667      ac_path_GREP_max=$ac_count
4668    fi
4669    # 10*(2^10) chars as input seems more than enough
4670    test $ac_count -gt 10 && break
4671  done
4672  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4673esac
4674
4675      $ac_path_GREP_found && break 3
4676    done
4677  done
4678  done
4679IFS=$as_save_IFS
4680  if test -z "$ac_cv_path_GREP"; then
4681    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4682  fi
4683else
4684  ac_cv_path_GREP=$GREP
4685fi
4686
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4689$as_echo "$ac_cv_path_GREP" >&6; }
4690 GREP="$ac_cv_path_GREP"
4691
4692
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4694$as_echo_n "checking for egrep... " >&6; }
4695if ${ac_cv_path_EGREP+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4699   then ac_cv_path_EGREP="$GREP -E"
4700   else
4701     if test -z "$EGREP"; then
4702  ac_path_EGREP_found=false
4703  # Loop through the user's path and test for each of PROGNAME-LIST
4704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4706do
4707  IFS=$as_save_IFS
4708  test -z "$as_dir" && as_dir=.
4709    for ac_prog in egrep; do
4710    for ac_exec_ext in '' $ac_executable_extensions; do
4711      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4712      as_fn_executable_p "$ac_path_EGREP" || continue
4713# Check for GNU ac_path_EGREP and select it if it is found.
4714  # Check for GNU $ac_path_EGREP
4715case `"$ac_path_EGREP" --version 2>&1` in
4716*GNU*)
4717  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4718*)
4719  ac_count=0
4720  $as_echo_n 0123456789 >"conftest.in"
4721  while :
4722  do
4723    cat "conftest.in" "conftest.in" >"conftest.tmp"
4724    mv "conftest.tmp" "conftest.in"
4725    cp "conftest.in" "conftest.nl"
4726    $as_echo 'EGREP' >> "conftest.nl"
4727    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4728    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4729    as_fn_arith $ac_count + 1 && ac_count=$as_val
4730    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4731      # Best one so far, save it but keep looking for a better one
4732      ac_cv_path_EGREP="$ac_path_EGREP"
4733      ac_path_EGREP_max=$ac_count
4734    fi
4735    # 10*(2^10) chars as input seems more than enough
4736    test $ac_count -gt 10 && break
4737  done
4738  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4739esac
4740
4741      $ac_path_EGREP_found && break 3
4742    done
4743  done
4744  done
4745IFS=$as_save_IFS
4746  if test -z "$ac_cv_path_EGREP"; then
4747    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4748  fi
4749else
4750  ac_cv_path_EGREP=$EGREP
4751fi
4752
4753   fi
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4756$as_echo "$ac_cv_path_EGREP" >&6; }
4757 EGREP="$ac_cv_path_EGREP"
4758
4759
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4761$as_echo_n "checking for fgrep... " >&6; }
4762if ${ac_cv_path_FGREP+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4766   then ac_cv_path_FGREP="$GREP -F"
4767   else
4768     if test -z "$FGREP"; then
4769  ac_path_FGREP_found=false
4770  # Loop through the user's path and test for each of PROGNAME-LIST
4771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776    for ac_prog in fgrep; do
4777    for ac_exec_ext in '' $ac_executable_extensions; do
4778      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4779      as_fn_executable_p "$ac_path_FGREP" || continue
4780# Check for GNU ac_path_FGREP and select it if it is found.
4781  # Check for GNU $ac_path_FGREP
4782case `"$ac_path_FGREP" --version 2>&1` in
4783*GNU*)
4784  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4785*)
4786  ac_count=0
4787  $as_echo_n 0123456789 >"conftest.in"
4788  while :
4789  do
4790    cat "conftest.in" "conftest.in" >"conftest.tmp"
4791    mv "conftest.tmp" "conftest.in"
4792    cp "conftest.in" "conftest.nl"
4793    $as_echo 'FGREP' >> "conftest.nl"
4794    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4795    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4796    as_fn_arith $ac_count + 1 && ac_count=$as_val
4797    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4798      # Best one so far, save it but keep looking for a better one
4799      ac_cv_path_FGREP="$ac_path_FGREP"
4800      ac_path_FGREP_max=$ac_count
4801    fi
4802    # 10*(2^10) chars as input seems more than enough
4803    test $ac_count -gt 10 && break
4804  done
4805  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806esac
4807
4808      $ac_path_FGREP_found && break 3
4809    done
4810  done
4811  done
4812IFS=$as_save_IFS
4813  if test -z "$ac_cv_path_FGREP"; then
4814    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4815  fi
4816else
4817  ac_cv_path_FGREP=$FGREP
4818fi
4819
4820   fi
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4823$as_echo "$ac_cv_path_FGREP" >&6; }
4824 FGREP="$ac_cv_path_FGREP"
4825
4826
4827test -z "$GREP" && GREP=grep
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847# Check whether --with-gnu-ld was given.
4848if test "${with_gnu_ld+set}" = set; then :
4849  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4850else
4851  with_gnu_ld=no
4852fi
4853
4854ac_prog=ld
4855if test yes = "$GCC"; then
4856  # Check if gcc -print-prog-name=ld gives a path.
4857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4858$as_echo_n "checking for ld used by $CC... " >&6; }
4859  case $host in
4860  *-*-mingw*)
4861    # gcc leaves a trailing carriage return, which upsets mingw
4862    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4863  *)
4864    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4865  esac
4866  case $ac_prog in
4867    # Accept absolute paths.
4868    [\\/]* | ?:[\\/]*)
4869      re_direlt='/[^/][^/]*/\.\./'
4870      # Canonicalize the pathname of ld
4871      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4872      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4873	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4874      done
4875      test -z "$LD" && LD=$ac_prog
4876      ;;
4877  "")
4878    # If it fails, then pretend we aren't using GCC.
4879    ac_prog=ld
4880    ;;
4881  *)
4882    # If it is relative, then search for the first ld in PATH.
4883    with_gnu_ld=unknown
4884    ;;
4885  esac
4886elif test yes = "$with_gnu_ld"; then
4887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4888$as_echo_n "checking for GNU ld... " >&6; }
4889else
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4891$as_echo_n "checking for non-GNU ld... " >&6; }
4892fi
4893if ${lt_cv_path_LD+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  if test -z "$LD"; then
4897  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4898  for ac_dir in $PATH; do
4899    IFS=$lt_save_ifs
4900    test -z "$ac_dir" && ac_dir=.
4901    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4902      lt_cv_path_LD=$ac_dir/$ac_prog
4903      # Check to see if the program is GNU ld.  I'd rather use --version,
4904      # but apparently some variants of GNU ld only accept -v.
4905      # Break only if it was the GNU/non-GNU ld that we prefer.
4906      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4907      *GNU* | *'with BFD'*)
4908	test no != "$with_gnu_ld" && break
4909	;;
4910      *)
4911	test yes != "$with_gnu_ld" && break
4912	;;
4913      esac
4914    fi
4915  done
4916  IFS=$lt_save_ifs
4917else
4918  lt_cv_path_LD=$LD # Let the user override the test with a path.
4919fi
4920fi
4921
4922LD=$lt_cv_path_LD
4923if test -n "$LD"; then
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4925$as_echo "$LD" >&6; }
4926else
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928$as_echo "no" >&6; }
4929fi
4930test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4932$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4933if ${lt_cv_prog_gnu_ld+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4937case `$LD -v 2>&1 </dev/null` in
4938*GNU* | *'with BFD'*)
4939  lt_cv_prog_gnu_ld=yes
4940  ;;
4941*)
4942  lt_cv_prog_gnu_ld=no
4943  ;;
4944esac
4945fi
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4947$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4948with_gnu_ld=$lt_cv_prog_gnu_ld
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4959$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4960if ${lt_cv_path_NM+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  if test -n "$NM"; then
4964  # Let the user override the test.
4965  lt_cv_path_NM=$NM
4966else
4967  lt_nm_to_check=${ac_tool_prefix}nm
4968  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4969    lt_nm_to_check="$lt_nm_to_check nm"
4970  fi
4971  for lt_tmp_nm in $lt_nm_to_check; do
4972    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4973    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4974      IFS=$lt_save_ifs
4975      test -z "$ac_dir" && ac_dir=.
4976      tmp_nm=$ac_dir/$lt_tmp_nm
4977      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4978	# Check to see if the nm accepts a BSD-compat flag.
4979	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4980	#   nm: unknown option "B" ignored
4981	# Tru64's nm complains that /dev/null is an invalid object file
4982	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4983	case $build_os in
4984	mingw*) lt_bad_file=conftest.nm/nofile ;;
4985	*) lt_bad_file=/dev/null ;;
4986	esac
4987	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4988	*$lt_bad_file* | *'Invalid file or object type'*)
4989	  lt_cv_path_NM="$tmp_nm -B"
4990	  break 2
4991	  ;;
4992	*)
4993	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4994	  */dev/null*)
4995	    lt_cv_path_NM="$tmp_nm -p"
4996	    break 2
4997	    ;;
4998	  *)
4999	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5000	    continue # so that we can try to find one that supports BSD flags
5001	    ;;
5002	  esac
5003	  ;;
5004	esac
5005      fi
5006    done
5007    IFS=$lt_save_ifs
5008  done
5009  : ${lt_cv_path_NM=no}
5010fi
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5013$as_echo "$lt_cv_path_NM" >&6; }
5014if test no != "$lt_cv_path_NM"; then
5015  NM=$lt_cv_path_NM
5016else
5017  # Didn't find any BSD compatible name lister, look for dumpbin.
5018  if test -n "$DUMPBIN"; then :
5019    # Let the user override the test.
5020  else
5021    if test -n "$ac_tool_prefix"; then
5022  for ac_prog in dumpbin "link -dump"
5023  do
5024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027$as_echo_n "checking for $ac_word... " >&6; }
5028if ${ac_cv_prog_DUMPBIN+:} false; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  if test -n "$DUMPBIN"; then
5032  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  test -z "$as_dir" && as_dir=.
5039    for ac_exec_ext in '' $ac_executable_extensions; do
5040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043    break 2
5044  fi
5045done
5046  done
5047IFS=$as_save_IFS
5048
5049fi
5050fi
5051DUMPBIN=$ac_cv_prog_DUMPBIN
5052if test -n "$DUMPBIN"; then
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5054$as_echo "$DUMPBIN" >&6; }
5055else
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }
5058fi
5059
5060
5061    test -n "$DUMPBIN" && break
5062  done
5063fi
5064if test -z "$DUMPBIN"; then
5065  ac_ct_DUMPBIN=$DUMPBIN
5066  for ac_prog in dumpbin "link -dump"
5067do
5068  # Extract the first word of "$ac_prog", so it can be a program name with args.
5069set dummy $ac_prog; ac_word=$2
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071$as_echo_n "checking for $ac_word... " >&6; }
5072if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  if test -n "$ac_ct_DUMPBIN"; then
5076  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  test -z "$as_dir" && as_dir=.
5083    for ac_exec_ext in '' $ac_executable_extensions; do
5084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087    break 2
5088  fi
5089done
5090  done
5091IFS=$as_save_IFS
5092
5093fi
5094fi
5095ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5096if test -n "$ac_ct_DUMPBIN"; then
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5098$as_echo "$ac_ct_DUMPBIN" >&6; }
5099else
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102fi
5103
5104
5105  test -n "$ac_ct_DUMPBIN" && break
5106done
5107
5108  if test "x$ac_ct_DUMPBIN" = x; then
5109    DUMPBIN=":"
5110  else
5111    case $cross_compiling:$ac_tool_warned in
5112yes:)
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115ac_tool_warned=yes ;;
5116esac
5117    DUMPBIN=$ac_ct_DUMPBIN
5118  fi
5119fi
5120
5121    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5122    *COFF*)
5123      DUMPBIN="$DUMPBIN -symbols -headers"
5124      ;;
5125    *)
5126      DUMPBIN=:
5127      ;;
5128    esac
5129  fi
5130
5131  if test : != "$DUMPBIN"; then
5132    NM=$DUMPBIN
5133  fi
5134fi
5135test -z "$NM" && NM=nm
5136
5137
5138
5139
5140
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5143$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5144if ${lt_cv_nm_interface+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  lt_cv_nm_interface="BSD nm"
5148  echo "int some_variable = 0;" > conftest.$ac_ext
5149  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5150  (eval "$ac_compile" 2>conftest.err)
5151  cat conftest.err >&5
5152  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5153  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5154  cat conftest.err >&5
5155  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5156  cat conftest.out >&5
5157  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5158    lt_cv_nm_interface="MS dumpbin"
5159  fi
5160  rm -f conftest*
5161fi
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5163$as_echo "$lt_cv_nm_interface" >&6; }
5164
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5166$as_echo_n "checking whether ln -s works... " >&6; }
5167LN_S=$as_ln_s
5168if test "$LN_S" = "ln -s"; then
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5170$as_echo "yes" >&6; }
5171else
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5173$as_echo "no, using $LN_S" >&6; }
5174fi
5175
5176# find the maximum length of command line arguments
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5178$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5179if ${lt_cv_sys_max_cmd_len+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182    i=0
5183  teststring=ABCD
5184
5185  case $build_os in
5186  msdosdjgpp*)
5187    # On DJGPP, this test can blow up pretty badly due to problems in libc
5188    # (any single argument exceeding 2000 bytes causes a buffer overrun
5189    # during glob expansion).  Even if it were fixed, the result of this
5190    # check would be larger than it should be.
5191    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5192    ;;
5193
5194  gnu*)
5195    # Under GNU Hurd, this test is not required because there is
5196    # no limit to the length of command line arguments.
5197    # Libtool will interpret -1 as no limit whatsoever
5198    lt_cv_sys_max_cmd_len=-1;
5199    ;;
5200
5201  cygwin* | mingw* | cegcc*)
5202    # On Win9x/ME, this test blows up -- it succeeds, but takes
5203    # about 5 minutes as the teststring grows exponentially.
5204    # Worse, since 9x/ME are not pre-emptively multitasking,
5205    # you end up with a "frozen" computer, even though with patience
5206    # the test eventually succeeds (with a max line length of 256k).
5207    # Instead, let's just punt: use the minimum linelength reported by
5208    # all of the supported platforms: 8192 (on NT/2K/XP).
5209    lt_cv_sys_max_cmd_len=8192;
5210    ;;
5211
5212  mint*)
5213    # On MiNT this can take a long time and run out of memory.
5214    lt_cv_sys_max_cmd_len=8192;
5215    ;;
5216
5217  amigaos*)
5218    # On AmigaOS with pdksh, this test takes hours, literally.
5219    # So we just punt and use a minimum line length of 8192.
5220    lt_cv_sys_max_cmd_len=8192;
5221    ;;
5222
5223  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5224    # This has been around since 386BSD, at least.  Likely further.
5225    if test -x /sbin/sysctl; then
5226      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5227    elif test -x /usr/sbin/sysctl; then
5228      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5229    else
5230      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5231    fi
5232    # And add a safety zone
5233    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5234    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5235    ;;
5236
5237  interix*)
5238    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5239    lt_cv_sys_max_cmd_len=196608
5240    ;;
5241
5242  os2*)
5243    # The test takes a long time on OS/2.
5244    lt_cv_sys_max_cmd_len=8192
5245    ;;
5246
5247  osf*)
5248    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5249    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5250    # nice to cause kernel panics so lets avoid the loop below.
5251    # First set a reasonable default.
5252    lt_cv_sys_max_cmd_len=16384
5253    #
5254    if test -x /sbin/sysconfig; then
5255      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5256        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5257      esac
5258    fi
5259    ;;
5260  sco3.2v5*)
5261    lt_cv_sys_max_cmd_len=102400
5262    ;;
5263  sysv5* | sco5v6* | sysv4.2uw2*)
5264    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5265    if test -n "$kargmax"; then
5266      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5267    else
5268      lt_cv_sys_max_cmd_len=32768
5269    fi
5270    ;;
5271  *)
5272    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5273    if test -n "$lt_cv_sys_max_cmd_len" && \
5274       test undefined != "$lt_cv_sys_max_cmd_len"; then
5275      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5276      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5277    else
5278      # Make teststring a little bigger before we do anything with it.
5279      # a 1K string should be a reasonable start.
5280      for i in 1 2 3 4 5 6 7 8; do
5281        teststring=$teststring$teststring
5282      done
5283      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5284      # If test is not a shell built-in, we'll probably end up computing a
5285      # maximum length that is only half of the actual maximum length, but
5286      # we can't tell.
5287      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5288	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5289	      test 17 != "$i" # 1/2 MB should be enough
5290      do
5291        i=`expr $i + 1`
5292        teststring=$teststring$teststring
5293      done
5294      # Only check the string length outside the loop.
5295      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5296      teststring=
5297      # Add a significant safety factor because C++ compilers can tack on
5298      # massive amounts of additional arguments before passing them to the
5299      # linker.  It appears as though 1/2 is a usable value.
5300      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5301    fi
5302    ;;
5303  esac
5304
5305fi
5306
5307if test -n "$lt_cv_sys_max_cmd_len"; then
5308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5309$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5310else
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5312$as_echo "none" >&6; }
5313fi
5314max_cmd_len=$lt_cv_sys_max_cmd_len
5315
5316
5317
5318
5319
5320
5321: ${CP="cp -f"}
5322: ${MV="mv -f"}
5323: ${RM="rm -f"}
5324
5325if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5326  lt_unset=unset
5327else
5328  lt_unset=false
5329fi
5330
5331
5332
5333
5334
5335# test EBCDIC or ASCII
5336case `echo X|tr X '\101'` in
5337 A) # ASCII based system
5338    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5339  lt_SP2NL='tr \040 \012'
5340  lt_NL2SP='tr \015\012 \040\040'
5341  ;;
5342 *) # EBCDIC based system
5343  lt_SP2NL='tr \100 \n'
5344  lt_NL2SP='tr \r\n \100\100'
5345  ;;
5346esac
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5357$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5358if ${lt_cv_to_host_file_cmd+:} false; then :
5359  $as_echo_n "(cached) " >&6
5360else
5361  case $host in
5362  *-*-mingw* )
5363    case $build in
5364      *-*-mingw* ) # actually msys
5365        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5366        ;;
5367      *-*-cygwin* )
5368        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5369        ;;
5370      * ) # otherwise, assume *nix
5371        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5372        ;;
5373    esac
5374    ;;
5375  *-*-cygwin* )
5376    case $build in
5377      *-*-mingw* ) # actually msys
5378        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5379        ;;
5380      *-*-cygwin* )
5381        lt_cv_to_host_file_cmd=func_convert_file_noop
5382        ;;
5383      * ) # otherwise, assume *nix
5384        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5385        ;;
5386    esac
5387    ;;
5388  * ) # unhandled hosts (and "normal" native builds)
5389    lt_cv_to_host_file_cmd=func_convert_file_noop
5390    ;;
5391esac
5392
5393fi
5394
5395to_host_file_cmd=$lt_cv_to_host_file_cmd
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5397$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5398
5399
5400
5401
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5404$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5405if ${lt_cv_to_tool_file_cmd+:} false; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408  #assume ordinary cross tools, or native build.
5409lt_cv_to_tool_file_cmd=func_convert_file_noop
5410case $host in
5411  *-*-mingw* )
5412    case $build in
5413      *-*-mingw* ) # actually msys
5414        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5415        ;;
5416    esac
5417    ;;
5418esac
5419
5420fi
5421
5422to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5424$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5425
5426
5427
5428
5429
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5431$as_echo_n "checking for $LD option to reload object files... " >&6; }
5432if ${lt_cv_ld_reload_flag+:} false; then :
5433  $as_echo_n "(cached) " >&6
5434else
5435  lt_cv_ld_reload_flag='-r'
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5438$as_echo "$lt_cv_ld_reload_flag" >&6; }
5439reload_flag=$lt_cv_ld_reload_flag
5440case $reload_flag in
5441"" | " "*) ;;
5442*) reload_flag=" $reload_flag" ;;
5443esac
5444reload_cmds='$LD$reload_flag -o $output$reload_objs'
5445case $host_os in
5446  cygwin* | mingw* | pw32* | cegcc*)
5447    if test yes != "$GCC"; then
5448      reload_cmds=false
5449    fi
5450    ;;
5451  darwin*)
5452    if test yes = "$GCC"; then
5453      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5454    else
5455      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456    fi
5457    ;;
5458esac
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468if test -n "$ac_tool_prefix"; then
5469  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5470set dummy ${ac_tool_prefix}objdump; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if ${ac_cv_prog_OBJDUMP+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  if test -n "$OBJDUMP"; then
5477  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484    for ac_exec_ext in '' $ac_executable_extensions; do
5485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491  done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496OBJDUMP=$ac_cv_prog_OBJDUMP
5497if test -n "$OBJDUMP"; then
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5499$as_echo "$OBJDUMP" >&6; }
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505
5506fi
5507if test -z "$ac_cv_prog_OBJDUMP"; then
5508  ac_ct_OBJDUMP=$OBJDUMP
5509  # Extract the first word of "objdump", so it can be a program name with args.
5510set dummy objdump; ac_word=$2
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
5513if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  if test -n "$ac_ct_OBJDUMP"; then
5517  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522  IFS=$as_save_IFS
5523  test -z "$as_dir" && as_dir=.
5524    for ac_exec_ext in '' $ac_executable_extensions; do
5525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528    break 2
5529  fi
5530done
5531  done
5532IFS=$as_save_IFS
5533
5534fi
5535fi
5536ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5537if test -n "$ac_ct_OBJDUMP"; then
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5539$as_echo "$ac_ct_OBJDUMP" >&6; }
5540else
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544
5545  if test "x$ac_ct_OBJDUMP" = x; then
5546    OBJDUMP="false"
5547  else
5548    case $cross_compiling:$ac_tool_warned in
5549yes:)
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552ac_tool_warned=yes ;;
5553esac
5554    OBJDUMP=$ac_ct_OBJDUMP
5555  fi
5556else
5557  OBJDUMP="$ac_cv_prog_OBJDUMP"
5558fi
5559
5560test -z "$OBJDUMP" && OBJDUMP=objdump
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5571$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5572if ${lt_cv_deplibs_check_method+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  lt_cv_file_magic_cmd='$MAGIC_CMD'
5576lt_cv_file_magic_test_file=
5577lt_cv_deplibs_check_method='unknown'
5578# Need to set the preceding variable on all platforms that support
5579# interlibrary dependencies.
5580# 'none' -- dependencies not supported.
5581# 'unknown' -- same as none, but documents that we really don't know.
5582# 'pass_all' -- all dependencies passed with no checks.
5583# 'test_compile' -- check by making test program.
5584# 'file_magic [[regex]]' -- check by looking for files in library path
5585# that responds to the $file_magic_cmd with a given extended regex.
5586# If you have 'file' or equivalent on your system and you're not sure
5587# whether 'pass_all' will *always* work, you probably want this one.
5588
5589case $host_os in
5590aix[4-9]*)
5591  lt_cv_deplibs_check_method=pass_all
5592  ;;
5593
5594beos*)
5595  lt_cv_deplibs_check_method=pass_all
5596  ;;
5597
5598bsdi[45]*)
5599  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5600  lt_cv_file_magic_cmd='/usr/bin/file -L'
5601  lt_cv_file_magic_test_file=/shlib/libc.so
5602  ;;
5603
5604cygwin*)
5605  # func_win32_libid is a shell function defined in ltmain.sh
5606  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5607  lt_cv_file_magic_cmd='func_win32_libid'
5608  ;;
5609
5610mingw* | pw32*)
5611  # Base MSYS/MinGW do not provide the 'file' command needed by
5612  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5613  # unless we find 'file', for example because we are cross-compiling.
5614  if ( file / ) >/dev/null 2>&1; then
5615    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5616    lt_cv_file_magic_cmd='func_win32_libid'
5617  else
5618    # Keep this pattern in sync with the one in func_win32_libid.
5619    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5620    lt_cv_file_magic_cmd='$OBJDUMP -f'
5621  fi
5622  ;;
5623
5624cegcc*)
5625  # use the weaker test based on 'objdump'. See mingw*.
5626  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5627  lt_cv_file_magic_cmd='$OBJDUMP -f'
5628  ;;
5629
5630darwin* | rhapsody*)
5631  lt_cv_deplibs_check_method=pass_all
5632  ;;
5633
5634freebsd* | dragonfly*)
5635  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5636    case $host_cpu in
5637    i*86 )
5638      # Not sure whether the presence of OpenBSD here was a mistake.
5639      # Let's accept both of them until this is cleared up.
5640      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5641      lt_cv_file_magic_cmd=/usr/bin/file
5642      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5643      ;;
5644    esac
5645  else
5646    lt_cv_deplibs_check_method=pass_all
5647  fi
5648  ;;
5649
5650haiku*)
5651  lt_cv_deplibs_check_method=pass_all
5652  ;;
5653
5654hpux10.20* | hpux11*)
5655  lt_cv_file_magic_cmd=/usr/bin/file
5656  case $host_cpu in
5657  ia64*)
5658    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5659    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5660    ;;
5661  hppa*64*)
5662    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]'
5663    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5664    ;;
5665  *)
5666    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5667    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5668    ;;
5669  esac
5670  ;;
5671
5672interix[3-9]*)
5673  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5674  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5675  ;;
5676
5677irix5* | irix6* | nonstopux*)
5678  case $LD in
5679  *-32|*"-32 ") libmagic=32-bit;;
5680  *-n32|*"-n32 ") libmagic=N32;;
5681  *-64|*"-64 ") libmagic=64-bit;;
5682  *) libmagic=never-match;;
5683  esac
5684  lt_cv_deplibs_check_method=pass_all
5685  ;;
5686
5687# This must be glibc/ELF.
5688linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5689  lt_cv_deplibs_check_method=pass_all
5690  ;;
5691
5692netbsd* | netbsdelf*-gnu)
5693  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5694    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5695  else
5696    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5697  fi
5698  ;;
5699
5700newos6*)
5701  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5702  lt_cv_file_magic_cmd=/usr/bin/file
5703  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5704  ;;
5705
5706*nto* | *qnx*)
5707  lt_cv_deplibs_check_method=pass_all
5708  ;;
5709
5710openbsd* | bitrig*)
5711  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5712    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5713  else
5714    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5715  fi
5716  ;;
5717
5718osf3* | osf4* | osf5*)
5719  lt_cv_deplibs_check_method=pass_all
5720  ;;
5721
5722rdos*)
5723  lt_cv_deplibs_check_method=pass_all
5724  ;;
5725
5726solaris*)
5727  lt_cv_deplibs_check_method=pass_all
5728  ;;
5729
5730sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5731  lt_cv_deplibs_check_method=pass_all
5732  ;;
5733
5734sysv4 | sysv4.3*)
5735  case $host_vendor in
5736  motorola)
5737    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]'
5738    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5739    ;;
5740  ncr)
5741    lt_cv_deplibs_check_method=pass_all
5742    ;;
5743  sequent)
5744    lt_cv_file_magic_cmd='/bin/file'
5745    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5746    ;;
5747  sni)
5748    lt_cv_file_magic_cmd='/bin/file'
5749    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5750    lt_cv_file_magic_test_file=/lib/libc.so
5751    ;;
5752  siemens)
5753    lt_cv_deplibs_check_method=pass_all
5754    ;;
5755  pc)
5756    lt_cv_deplibs_check_method=pass_all
5757    ;;
5758  esac
5759  ;;
5760
5761tpf*)
5762  lt_cv_deplibs_check_method=pass_all
5763  ;;
5764os2*)
5765  lt_cv_deplibs_check_method=pass_all
5766  ;;
5767esac
5768
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5771$as_echo "$lt_cv_deplibs_check_method" >&6; }
5772
5773file_magic_glob=
5774want_nocaseglob=no
5775if test "$build" = "$host"; then
5776  case $host_os in
5777  mingw* | pw32*)
5778    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5779      want_nocaseglob=yes
5780    else
5781      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5782    fi
5783    ;;
5784  esac
5785fi
5786
5787file_magic_cmd=$lt_cv_file_magic_cmd
5788deplibs_check_method=$lt_cv_deplibs_check_method
5789test -z "$deplibs_check_method" && deplibs_check_method=unknown
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812if test -n "$ac_tool_prefix"; then
5813  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5814set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
5817if ${ac_cv_prog_DLLTOOL+:} false; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  if test -n "$DLLTOOL"; then
5821  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826  IFS=$as_save_IFS
5827  test -z "$as_dir" && as_dir=.
5828    for ac_exec_ext in '' $ac_executable_extensions; do
5829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832    break 2
5833  fi
5834done
5835  done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840DLLTOOL=$ac_cv_prog_DLLTOOL
5841if test -n "$DLLTOOL"; then
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5843$as_echo "$DLLTOOL" >&6; }
5844else
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849
5850fi
5851if test -z "$ac_cv_prog_DLLTOOL"; then
5852  ac_ct_DLLTOOL=$DLLTOOL
5853  # Extract the first word of "dlltool", so it can be a program name with args.
5854set dummy dlltool; ac_word=$2
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856$as_echo_n "checking for $ac_word... " >&6; }
5857if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  if test -n "$ac_ct_DLLTOOL"; then
5861  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866  IFS=$as_save_IFS
5867  test -z "$as_dir" && as_dir=.
5868    for ac_exec_ext in '' $ac_executable_extensions; do
5869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872    break 2
5873  fi
5874done
5875  done
5876IFS=$as_save_IFS
5877
5878fi
5879fi
5880ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5881if test -n "$ac_ct_DLLTOOL"; then
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5883$as_echo "$ac_ct_DLLTOOL" >&6; }
5884else
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886$as_echo "no" >&6; }
5887fi
5888
5889  if test "x$ac_ct_DLLTOOL" = x; then
5890    DLLTOOL="false"
5891  else
5892    case $cross_compiling:$ac_tool_warned in
5893yes:)
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5896ac_tool_warned=yes ;;
5897esac
5898    DLLTOOL=$ac_ct_DLLTOOL
5899  fi
5900else
5901  DLLTOOL="$ac_cv_prog_DLLTOOL"
5902fi
5903
5904test -z "$DLLTOOL" && DLLTOOL=dlltool
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5916$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5917if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  lt_cv_sharedlib_from_linklib_cmd='unknown'
5921
5922case $host_os in
5923cygwin* | mingw* | pw32* | cegcc*)
5924  # two different shell functions defined in ltmain.sh;
5925  # decide which one to use based on capabilities of $DLLTOOL
5926  case `$DLLTOOL --help 2>&1` in
5927  *--identify-strict*)
5928    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5929    ;;
5930  *)
5931    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5932    ;;
5933  esac
5934  ;;
5935*)
5936  # fallback: assume linklib IS sharedlib
5937  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5938  ;;
5939esac
5940
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5943$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5944sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5945test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5946
5947
5948
5949
5950
5951
5952
5953if test -n "$ac_tool_prefix"; then
5954  for ac_prog in ar
5955  do
5956    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if ${ac_cv_prog_AR+:} false; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  if test -n "$AR"; then
5964  ac_cv_prog_AR="$AR" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  test -z "$as_dir" && as_dir=.
5971    for ac_exec_ext in '' $ac_executable_extensions; do
5972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978  done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983AR=$ac_cv_prog_AR
5984if test -n "$AR"; then
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5986$as_echo "$AR" >&6; }
5987else
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992
5993    test -n "$AR" && break
5994  done
5995fi
5996if test -z "$AR"; then
5997  ac_ct_AR=$AR
5998  for ac_prog in ar
5999do
6000  # Extract the first word of "$ac_prog", so it can be a program name with args.
6001set dummy $ac_prog; ac_word=$2
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if ${ac_cv_prog_ac_ct_AR+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  if test -n "$ac_ct_AR"; then
6008  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013  IFS=$as_save_IFS
6014  test -z "$as_dir" && as_dir=.
6015    for ac_exec_ext in '' $ac_executable_extensions; do
6016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017    ac_cv_prog_ac_ct_AR="$ac_prog"
6018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019    break 2
6020  fi
6021done
6022  done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027ac_ct_AR=$ac_cv_prog_ac_ct_AR
6028if test -n "$ac_ct_AR"; then
6029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6030$as_echo "$ac_ct_AR" >&6; }
6031else
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034fi
6035
6036
6037  test -n "$ac_ct_AR" && break
6038done
6039
6040  if test "x$ac_ct_AR" = x; then
6041    AR="false"
6042  else
6043    case $cross_compiling:$ac_tool_warned in
6044yes:)
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047ac_tool_warned=yes ;;
6048esac
6049    AR=$ac_ct_AR
6050  fi
6051fi
6052
6053: ${AR=ar}
6054: ${AR_FLAGS=cru}
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6067$as_echo_n "checking for archiver @FILE support... " >&6; }
6068if ${lt_cv_ar_at_file+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  lt_cv_ar_at_file=no
6072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h.  */
6074
6075int
6076main ()
6077{
6078
6079  ;
6080  return 0;
6081}
6082_ACEOF
6083if ac_fn_c_try_compile "$LINENO"; then :
6084  echo conftest.$ac_objext > conftest.lst
6085      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6086      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6087  (eval $lt_ar_try) 2>&5
6088  ac_status=$?
6089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090  test $ac_status = 0; }
6091      if test 0 -eq "$ac_status"; then
6092	# Ensure the archiver fails upon bogus file names.
6093	rm -f conftest.$ac_objext libconftest.a
6094	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6095  (eval $lt_ar_try) 2>&5
6096  ac_status=$?
6097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098  test $ac_status = 0; }
6099	if test 0 -ne "$ac_status"; then
6100          lt_cv_ar_at_file=@
6101        fi
6102      fi
6103      rm -f conftest.* libconftest.a
6104
6105fi
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107
6108fi
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6110$as_echo "$lt_cv_ar_at_file" >&6; }
6111
6112if test no = "$lt_cv_ar_at_file"; then
6113  archiver_list_spec=
6114else
6115  archiver_list_spec=$lt_cv_ar_at_file
6116fi
6117
6118
6119
6120
6121
6122
6123
6124if test -n "$ac_tool_prefix"; then
6125  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6126set dummy ${ac_tool_prefix}strip; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_STRIP+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$STRIP"; then
6133  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  test -z "$as_dir" && as_dir=.
6140    for ac_exec_ext in '' $ac_executable_extensions; do
6141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144    break 2
6145  fi
6146done
6147  done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152STRIP=$ac_cv_prog_STRIP
6153if test -n "$STRIP"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6155$as_echo "$STRIP" >&6; }
6156else
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161
6162fi
6163if test -z "$ac_cv_prog_STRIP"; then
6164  ac_ct_STRIP=$STRIP
6165  # Extract the first word of "strip", so it can be a program name with args.
6166set dummy strip; ac_word=$2
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168$as_echo_n "checking for $ac_word... " >&6; }
6169if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  if test -n "$ac_ct_STRIP"; then
6173  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6174else
6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178  IFS=$as_save_IFS
6179  test -z "$as_dir" && as_dir=.
6180    for ac_exec_ext in '' $ac_executable_extensions; do
6181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182    ac_cv_prog_ac_ct_STRIP="strip"
6183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184    break 2
6185  fi
6186done
6187  done
6188IFS=$as_save_IFS
6189
6190fi
6191fi
6192ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6193if test -n "$ac_ct_STRIP"; then
6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6195$as_echo "$ac_ct_STRIP" >&6; }
6196else
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198$as_echo "no" >&6; }
6199fi
6200
6201  if test "x$ac_ct_STRIP" = x; then
6202    STRIP=":"
6203  else
6204    case $cross_compiling:$ac_tool_warned in
6205yes:)
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208ac_tool_warned=yes ;;
6209esac
6210    STRIP=$ac_ct_STRIP
6211  fi
6212else
6213  STRIP="$ac_cv_prog_STRIP"
6214fi
6215
6216test -z "$STRIP" && STRIP=:
6217
6218
6219
6220
6221
6222
6223if test -n "$ac_tool_prefix"; then
6224  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6225set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if ${ac_cv_prog_RANLIB+:} false; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  if test -n "$RANLIB"; then
6232  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237  IFS=$as_save_IFS
6238  test -z "$as_dir" && as_dir=.
6239    for ac_exec_ext in '' $ac_executable_extensions; do
6240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243    break 2
6244  fi
6245done
6246  done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251RANLIB=$ac_cv_prog_RANLIB
6252if test -n "$RANLIB"; then
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6254$as_echo "$RANLIB" >&6; }
6255else
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260
6261fi
6262if test -z "$ac_cv_prog_RANLIB"; then
6263  ac_ct_RANLIB=$RANLIB
6264  # Extract the first word of "ranlib", so it can be a program name with args.
6265set dummy ranlib; ac_word=$2
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267$as_echo_n "checking for $ac_word... " >&6; }
6268if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  if test -n "$ac_ct_RANLIB"; then
6272  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277  IFS=$as_save_IFS
6278  test -z "$as_dir" && as_dir=.
6279    for ac_exec_ext in '' $ac_executable_extensions; do
6280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281    ac_cv_prog_ac_ct_RANLIB="ranlib"
6282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283    break 2
6284  fi
6285done
6286  done
6287IFS=$as_save_IFS
6288
6289fi
6290fi
6291ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6292if test -n "$ac_ct_RANLIB"; then
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6294$as_echo "$ac_ct_RANLIB" >&6; }
6295else
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297$as_echo "no" >&6; }
6298fi
6299
6300  if test "x$ac_ct_RANLIB" = x; then
6301    RANLIB=":"
6302  else
6303    case $cross_compiling:$ac_tool_warned in
6304yes:)
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307ac_tool_warned=yes ;;
6308esac
6309    RANLIB=$ac_ct_RANLIB
6310  fi
6311else
6312  RANLIB="$ac_cv_prog_RANLIB"
6313fi
6314
6315test -z "$RANLIB" && RANLIB=:
6316
6317
6318
6319
6320
6321
6322# Determine commands to create old-style static archives.
6323old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6324old_postinstall_cmds='chmod 644 $oldlib'
6325old_postuninstall_cmds=
6326
6327if test -n "$RANLIB"; then
6328  case $host_os in
6329  bitrig* | openbsd*)
6330    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6331    ;;
6332  *)
6333    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6334    ;;
6335  esac
6336  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6337fi
6338
6339case $host_os in
6340  darwin*)
6341    lock_old_archive_extraction=yes ;;
6342  *)
6343    lock_old_archive_extraction=no ;;
6344esac
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384# If no C compiler was specified, use CC.
6385LTCC=${LTCC-"$CC"}
6386
6387# If no C compiler flags were specified, use CFLAGS.
6388LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6389
6390# Allow CC to be a program name with arguments.
6391compiler=$CC
6392
6393
6394# Check for command to grab the raw symbol name followed by C symbol from nm.
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6396$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6397if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6398  $as_echo_n "(cached) " >&6
6399else
6400
6401# These are sane defaults that work on at least a few old systems.
6402# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6403
6404# Character class describing NM global symbol codes.
6405symcode='[BCDEGRST]'
6406
6407# Regexp to match symbols that can be accessed directly from C.
6408sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6409
6410# Define system-specific variables.
6411case $host_os in
6412aix*)
6413  symcode='[BCDT]'
6414  ;;
6415cygwin* | mingw* | pw32* | cegcc*)
6416  symcode='[ABCDGISTW]'
6417  ;;
6418hpux*)
6419  if test ia64 = "$host_cpu"; then
6420    symcode='[ABCDEGRST]'
6421  fi
6422  ;;
6423irix* | nonstopux*)
6424  symcode='[BCDEGRST]'
6425  ;;
6426osf*)
6427  symcode='[BCDEGQRST]'
6428  ;;
6429solaris*)
6430  symcode='[BDRT]'
6431  ;;
6432sco3.2v5*)
6433  symcode='[DT]'
6434  ;;
6435sysv4.2uw2*)
6436  symcode='[DT]'
6437  ;;
6438sysv5* | sco5v6* | unixware* | OpenUNIX*)
6439  symcode='[ABDT]'
6440  ;;
6441sysv4)
6442  symcode='[DFNSTU]'
6443  ;;
6444esac
6445
6446# If we're using GNU nm, then use its standard symbol codes.
6447case `$NM -V 2>&1` in
6448*GNU* | *'with BFD'*)
6449  symcode='[ABCDGIRSTW]' ;;
6450esac
6451
6452if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6453  # Gets list of data symbols to import.
6454  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6455  # Adjust the below global symbol transforms to fixup imported variables.
6456  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6457  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6458  lt_c_name_lib_hook="\
6459  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6460  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6461else
6462  # Disable hooks by default.
6463  lt_cv_sys_global_symbol_to_import=
6464  lt_cdecl_hook=
6465  lt_c_name_hook=
6466  lt_c_name_lib_hook=
6467fi
6468
6469# Transform an extracted symbol line into a proper C declaration.
6470# Some systems (esp. on ia64) link data and code symbols differently,
6471# so use this general approach.
6472lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6473$lt_cdecl_hook\
6474" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6475" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6476
6477# Transform an extracted symbol line into symbol name and symbol address
6478lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6479$lt_c_name_hook\
6480" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6481" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6482
6483# Transform an extracted symbol line into symbol name with lib prefix and
6484# symbol address.
6485lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6486$lt_c_name_lib_hook\
6487" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6488" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6489" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6490
6491# Handle CRLF in mingw tool chain
6492opt_cr=
6493case $build_os in
6494mingw*)
6495  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6496  ;;
6497esac
6498
6499# Try without a prefix underscore, then with it.
6500for ac_symprfx in "" "_"; do
6501
6502  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6503  symxfrm="\\1 $ac_symprfx\\2 \\2"
6504
6505  # Write the raw and C identifiers.
6506  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6507    # Fake it for dumpbin and say T for any non-static function,
6508    # D for any global variable and I for any imported variable.
6509    # Also find C++ and __fastcall symbols from MSVC++,
6510    # which start with @ or ?.
6511    lt_cv_sys_global_symbol_pipe="$AWK '"\
6512"     {last_section=section; section=\$ 3};"\
6513"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6514"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6515"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6516"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6517"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6518"     \$ 0!~/External *\|/{next};"\
6519"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6520"     {if(hide[section]) next};"\
6521"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6522"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6523"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6524"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6525"     ' prfx=^$ac_symprfx"
6526  else
6527    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6528  fi
6529  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6530
6531  # Check to see that the pipe works correctly.
6532  pipe_works=no
6533
6534  rm -f conftest*
6535  cat > conftest.$ac_ext <<_LT_EOF
6536#ifdef __cplusplus
6537extern "C" {
6538#endif
6539char nm_test_var;
6540void nm_test_func(void);
6541void nm_test_func(void){}
6542#ifdef __cplusplus
6543}
6544#endif
6545int main(){nm_test_var='a';nm_test_func();return(0);}
6546_LT_EOF
6547
6548  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6549  (eval $ac_compile) 2>&5
6550  ac_status=$?
6551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552  test $ac_status = 0; }; then
6553    # Now try to grab the symbols.
6554    nlist=conftest.nm
6555    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6556    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6557      # Try sorting and uniquifying the output.
6558      if sort "$nlist" | uniq > "$nlist"T; then
6559	mv -f "$nlist"T "$nlist"
6560      else
6561	rm -f "$nlist"T
6562      fi
6563
6564      # Make sure that we snagged all the symbols we need.
6565      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6566	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6567	  cat <<_LT_EOF > conftest.$ac_ext
6568/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6569#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6570/* DATA imports from DLLs on WIN32 can't be const, because runtime
6571   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6572# define LT_DLSYM_CONST
6573#elif defined __osf__
6574/* This system does not cope well with relocations in const data.  */
6575# define LT_DLSYM_CONST
6576#else
6577# define LT_DLSYM_CONST const
6578#endif
6579
6580#ifdef __cplusplus
6581extern "C" {
6582#endif
6583
6584_LT_EOF
6585	  # Now generate the symbol file.
6586	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6587
6588	  cat <<_LT_EOF >> conftest.$ac_ext
6589
6590/* The mapping between symbol names and symbols.  */
6591LT_DLSYM_CONST struct {
6592  const char *name;
6593  void       *address;
6594}
6595lt__PROGRAM__LTX_preloaded_symbols[] =
6596{
6597  { "@PROGRAM@", (void *) 0 },
6598_LT_EOF
6599	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6600	  cat <<\_LT_EOF >> conftest.$ac_ext
6601  {0, (void *) 0}
6602};
6603
6604/* This works around a problem in FreeBSD linker */
6605#ifdef FREEBSD_WORKAROUND
6606static const void *lt_preloaded_setup() {
6607  return lt__PROGRAM__LTX_preloaded_symbols;
6608}
6609#endif
6610
6611#ifdef __cplusplus
6612}
6613#endif
6614_LT_EOF
6615	  # Now try linking the two files.
6616	  mv conftest.$ac_objext conftstm.$ac_objext
6617	  lt_globsym_save_LIBS=$LIBS
6618	  lt_globsym_save_CFLAGS=$CFLAGS
6619	  LIBS=conftstm.$ac_objext
6620	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6621	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6622  (eval $ac_link) 2>&5
6623  ac_status=$?
6624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6626	    pipe_works=yes
6627	  fi
6628	  LIBS=$lt_globsym_save_LIBS
6629	  CFLAGS=$lt_globsym_save_CFLAGS
6630	else
6631	  echo "cannot find nm_test_func in $nlist" >&5
6632	fi
6633      else
6634	echo "cannot find nm_test_var in $nlist" >&5
6635      fi
6636    else
6637      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6638    fi
6639  else
6640    echo "$progname: failed program was:" >&5
6641    cat conftest.$ac_ext >&5
6642  fi
6643  rm -rf conftest* conftst*
6644
6645  # Do not use the global_symbol_pipe unless it works.
6646  if test yes = "$pipe_works"; then
6647    break
6648  else
6649    lt_cv_sys_global_symbol_pipe=
6650  fi
6651done
6652
6653fi
6654
6655if test -z "$lt_cv_sys_global_symbol_pipe"; then
6656  lt_cv_sys_global_symbol_to_cdecl=
6657fi
6658if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6660$as_echo "failed" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6663$as_echo "ok" >&6; }
6664fi
6665
6666# Response file support.
6667if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6668  nm_file_list_spec='@'
6669elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6670  nm_file_list_spec='@'
6671fi
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6710$as_echo_n "checking for sysroot... " >&6; }
6711
6712# Check whether --with-sysroot was given.
6713if test "${with_sysroot+set}" = set; then :
6714  withval=$with_sysroot;
6715else
6716  with_sysroot=no
6717fi
6718
6719
6720lt_sysroot=
6721case $with_sysroot in #(
6722 yes)
6723   if test yes = "$GCC"; then
6724     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6725   fi
6726   ;; #(
6727 /*)
6728   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6729   ;; #(
6730 no|'')
6731   ;; #(
6732 *)
6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6734$as_echo "$with_sysroot" >&6; }
6735   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6736   ;;
6737esac
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6740$as_echo "${lt_sysroot:-no}" >&6; }
6741
6742
6743
6744
6745
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6747$as_echo_n "checking for a working dd... " >&6; }
6748if ${ac_cv_path_lt_DD+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  printf 0123456789abcdef0123456789abcdef >conftest.i
6752cat conftest.i conftest.i >conftest2.i
6753: ${lt_DD:=$DD}
6754if test -z "$lt_DD"; then
6755  ac_path_lt_DD_found=false
6756  # Loop through the user's path and test for each of PROGNAME-LIST
6757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  test -z "$as_dir" && as_dir=.
6762    for ac_prog in dd; do
6763    for ac_exec_ext in '' $ac_executable_extensions; do
6764      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6765      as_fn_executable_p "$ac_path_lt_DD" || continue
6766if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6767  cmp -s conftest.i conftest.out \
6768  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6769fi
6770      $ac_path_lt_DD_found && break 3
6771    done
6772  done
6773  done
6774IFS=$as_save_IFS
6775  if test -z "$ac_cv_path_lt_DD"; then
6776    :
6777  fi
6778else
6779  ac_cv_path_lt_DD=$lt_DD
6780fi
6781
6782rm -f conftest.i conftest2.i conftest.out
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6785$as_echo "$ac_cv_path_lt_DD" >&6; }
6786
6787
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6789$as_echo_n "checking how to truncate binary pipes... " >&6; }
6790if ${lt_cv_truncate_bin+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  printf 0123456789abcdef0123456789abcdef >conftest.i
6794cat conftest.i conftest.i >conftest2.i
6795lt_cv_truncate_bin=
6796if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6797  cmp -s conftest.i conftest.out \
6798  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6799fi
6800rm -f conftest.i conftest2.i conftest.out
6801test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6802fi
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6804$as_echo "$lt_cv_truncate_bin" >&6; }
6805
6806
6807
6808
6809
6810
6811
6812# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6813func_cc_basename ()
6814{
6815    for cc_temp in $*""; do
6816      case $cc_temp in
6817        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6818        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6819        \-*) ;;
6820        *) break;;
6821      esac
6822    done
6823    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6824}
6825
6826# Check whether --enable-libtool-lock was given.
6827if test "${enable_libtool_lock+set}" = set; then :
6828  enableval=$enable_libtool_lock;
6829fi
6830
6831test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6832
6833# Some flags need to be propagated to the compiler or linker for good
6834# libtool support.
6835case $host in
6836ia64-*-hpux*)
6837  # Find out what ABI is being produced by ac_compile, and set mode
6838  # options accordingly.
6839  echo 'int i;' > conftest.$ac_ext
6840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841  (eval $ac_compile) 2>&5
6842  ac_status=$?
6843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844  test $ac_status = 0; }; then
6845    case `/usr/bin/file conftest.$ac_objext` in
6846      *ELF-32*)
6847	HPUX_IA64_MODE=32
6848	;;
6849      *ELF-64*)
6850	HPUX_IA64_MODE=64
6851	;;
6852    esac
6853  fi
6854  rm -rf conftest*
6855  ;;
6856*-*-irix6*)
6857  # Find out what ABI is being produced by ac_compile, and set linker
6858  # options accordingly.
6859  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6860  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6861  (eval $ac_compile) 2>&5
6862  ac_status=$?
6863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864  test $ac_status = 0; }; then
6865    if test yes = "$lt_cv_prog_gnu_ld"; then
6866      case `/usr/bin/file conftest.$ac_objext` in
6867	*32-bit*)
6868	  LD="${LD-ld} -melf32bsmip"
6869	  ;;
6870	*N32*)
6871	  LD="${LD-ld} -melf32bmipn32"
6872	  ;;
6873	*64-bit*)
6874	  LD="${LD-ld} -melf64bmip"
6875	;;
6876      esac
6877    else
6878      case `/usr/bin/file conftest.$ac_objext` in
6879	*32-bit*)
6880	  LD="${LD-ld} -32"
6881	  ;;
6882	*N32*)
6883	  LD="${LD-ld} -n32"
6884	  ;;
6885	*64-bit*)
6886	  LD="${LD-ld} -64"
6887	  ;;
6888      esac
6889    fi
6890  fi
6891  rm -rf conftest*
6892  ;;
6893
6894mips64*-*linux*)
6895  # Find out what ABI is being produced by ac_compile, and set linker
6896  # options accordingly.
6897  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6898  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899  (eval $ac_compile) 2>&5
6900  ac_status=$?
6901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902  test $ac_status = 0; }; then
6903    emul=elf
6904    case `/usr/bin/file conftest.$ac_objext` in
6905      *32-bit*)
6906	emul="${emul}32"
6907	;;
6908      *64-bit*)
6909	emul="${emul}64"
6910	;;
6911    esac
6912    case `/usr/bin/file conftest.$ac_objext` in
6913      *MSB*)
6914	emul="${emul}btsmip"
6915	;;
6916      *LSB*)
6917	emul="${emul}ltsmip"
6918	;;
6919    esac
6920    case `/usr/bin/file conftest.$ac_objext` in
6921      *N32*)
6922	emul="${emul}n32"
6923	;;
6924    esac
6925    LD="${LD-ld} -m $emul"
6926  fi
6927  rm -rf conftest*
6928  ;;
6929
6930x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6931s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6932  # Find out what ABI is being produced by ac_compile, and set linker
6933  # options accordingly.  Note that the listed cases only cover the
6934  # situations where additional linker options are needed (such as when
6935  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6936  # vice versa); the common cases where no linker options are needed do
6937  # not appear in the list.
6938  echo 'int i;' > conftest.$ac_ext
6939  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940  (eval $ac_compile) 2>&5
6941  ac_status=$?
6942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943  test $ac_status = 0; }; then
6944    case `/usr/bin/file conftest.o` in
6945      *32-bit*)
6946	case $host in
6947	  x86_64-*kfreebsd*-gnu)
6948	    LD="${LD-ld} -m elf_i386_fbsd"
6949	    ;;
6950	  x86_64-*linux*)
6951	    case `/usr/bin/file conftest.o` in
6952	      *x86-64*)
6953		LD="${LD-ld} -m elf32_x86_64"
6954		;;
6955	      *)
6956		LD="${LD-ld} -m elf_i386"
6957		;;
6958	    esac
6959	    ;;
6960	  powerpc64le-*linux*)
6961	    LD="${LD-ld} -m elf32lppclinux"
6962	    ;;
6963	  powerpc64-*linux*)
6964	    LD="${LD-ld} -m elf32ppclinux"
6965	    ;;
6966	  s390x-*linux*)
6967	    LD="${LD-ld} -m elf_s390"
6968	    ;;
6969	  sparc64-*linux*)
6970	    LD="${LD-ld} -m elf32_sparc"
6971	    ;;
6972	esac
6973	;;
6974      *64-bit*)
6975	case $host in
6976	  x86_64-*kfreebsd*-gnu)
6977	    LD="${LD-ld} -m elf_x86_64_fbsd"
6978	    ;;
6979	  x86_64-*linux*)
6980	    LD="${LD-ld} -m elf_x86_64"
6981	    ;;
6982	  powerpcle-*linux*)
6983	    LD="${LD-ld} -m elf64lppc"
6984	    ;;
6985	  powerpc-*linux*)
6986	    LD="${LD-ld} -m elf64ppc"
6987	    ;;
6988	  s390*-*linux*|s390*-*tpf*)
6989	    LD="${LD-ld} -m elf64_s390"
6990	    ;;
6991	  sparc*-*linux*)
6992	    LD="${LD-ld} -m elf64_sparc"
6993	    ;;
6994	esac
6995	;;
6996    esac
6997  fi
6998  rm -rf conftest*
6999  ;;
7000
7001*-*-sco3.2v5*)
7002  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7003  SAVE_CFLAGS=$CFLAGS
7004  CFLAGS="$CFLAGS -belf"
7005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7006$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7007if ${lt_cv_cc_needs_belf+:} false; then :
7008  $as_echo_n "(cached) " >&6
7009else
7010  ac_ext=c
7011ac_cpp='$CPP $CPPFLAGS'
7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018
7019int
7020main ()
7021{
7022
7023  ;
7024  return 0;
7025}
7026_ACEOF
7027if ac_fn_c_try_link "$LINENO"; then :
7028  lt_cv_cc_needs_belf=yes
7029else
7030  lt_cv_cc_needs_belf=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext \
7033    conftest$ac_exeext conftest.$ac_ext
7034     ac_ext=c
7035ac_cpp='$CPP $CPPFLAGS'
7036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7042$as_echo "$lt_cv_cc_needs_belf" >&6; }
7043  if test yes != "$lt_cv_cc_needs_belf"; then
7044    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7045    CFLAGS=$SAVE_CFLAGS
7046  fi
7047  ;;
7048*-*solaris*)
7049  # Find out what ABI is being produced by ac_compile, and set linker
7050  # options accordingly.
7051  echo 'int i;' > conftest.$ac_ext
7052  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7053  (eval $ac_compile) 2>&5
7054  ac_status=$?
7055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056  test $ac_status = 0; }; then
7057    case `/usr/bin/file conftest.o` in
7058    *64-bit*)
7059      case $lt_cv_prog_gnu_ld in
7060      yes*)
7061        case $host in
7062        i?86-*-solaris*|x86_64-*-solaris*)
7063          LD="${LD-ld} -m elf_x86_64"
7064          ;;
7065        sparc*-*-solaris*)
7066          LD="${LD-ld} -m elf64_sparc"
7067          ;;
7068        esac
7069        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7070        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7071          LD=${LD-ld}_sol2
7072        fi
7073        ;;
7074      *)
7075	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7076	  LD="${LD-ld} -64"
7077	fi
7078	;;
7079      esac
7080      ;;
7081    esac
7082  fi
7083  rm -rf conftest*
7084  ;;
7085esac
7086
7087need_locks=$enable_libtool_lock
7088
7089if test -n "$ac_tool_prefix"; then
7090  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7091set dummy ${ac_tool_prefix}mt; ac_word=$2
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093$as_echo_n "checking for $ac_word... " >&6; }
7094if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7095  $as_echo_n "(cached) " >&6
7096else
7097  if test -n "$MANIFEST_TOOL"; then
7098  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7099else
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103  IFS=$as_save_IFS
7104  test -z "$as_dir" && as_dir=.
7105    for ac_exec_ext in '' $ac_executable_extensions; do
7106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109    break 2
7110  fi
7111done
7112  done
7113IFS=$as_save_IFS
7114
7115fi
7116fi
7117MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7118if test -n "$MANIFEST_TOOL"; then
7119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7120$as_echo "$MANIFEST_TOOL" >&6; }
7121else
7122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123$as_echo "no" >&6; }
7124fi
7125
7126
7127fi
7128if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7129  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7130  # Extract the first word of "mt", so it can be a program name with args.
7131set dummy mt; ac_word=$2
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133$as_echo_n "checking for $ac_word... " >&6; }
7134if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7135  $as_echo_n "(cached) " >&6
7136else
7137  if test -n "$ac_ct_MANIFEST_TOOL"; then
7138  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143  IFS=$as_save_IFS
7144  test -z "$as_dir" && as_dir=.
7145    for ac_exec_ext in '' $ac_executable_extensions; do
7146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149    break 2
7150  fi
7151done
7152  done
7153IFS=$as_save_IFS
7154
7155fi
7156fi
7157ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7158if test -n "$ac_ct_MANIFEST_TOOL"; then
7159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7160$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7161else
7162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163$as_echo "no" >&6; }
7164fi
7165
7166  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7167    MANIFEST_TOOL=":"
7168  else
7169    case $cross_compiling:$ac_tool_warned in
7170yes:)
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173ac_tool_warned=yes ;;
7174esac
7175    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7176  fi
7177else
7178  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7179fi
7180
7181test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7183$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7184if ${lt_cv_path_mainfest_tool+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  lt_cv_path_mainfest_tool=no
7188  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7189  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7190  cat conftest.err >&5
7191  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7192    lt_cv_path_mainfest_tool=yes
7193  fi
7194  rm -f conftest*
7195fi
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7197$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7198if test yes != "$lt_cv_path_mainfest_tool"; then
7199  MANIFEST_TOOL=:
7200fi
7201
7202
7203
7204
7205
7206
7207  case $host_os in
7208    rhapsody* | darwin*)
7209    if test -n "$ac_tool_prefix"; then
7210  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7211set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if ${ac_cv_prog_DSYMUTIL+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  if test -n "$DSYMUTIL"; then
7218  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223  IFS=$as_save_IFS
7224  test -z "$as_dir" && as_dir=.
7225    for ac_exec_ext in '' $ac_executable_extensions; do
7226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229    break 2
7230  fi
7231done
7232  done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237DSYMUTIL=$ac_cv_prog_DSYMUTIL
7238if test -n "$DSYMUTIL"; then
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7240$as_echo "$DSYMUTIL" >&6; }
7241else
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246
7247fi
7248if test -z "$ac_cv_prog_DSYMUTIL"; then
7249  ac_ct_DSYMUTIL=$DSYMUTIL
7250  # Extract the first word of "dsymutil", so it can be a program name with args.
7251set dummy dsymutil; ac_word=$2
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253$as_echo_n "checking for $ac_word... " >&6; }
7254if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7255  $as_echo_n "(cached) " >&6
7256else
7257  if test -n "$ac_ct_DSYMUTIL"; then
7258  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263  IFS=$as_save_IFS
7264  test -z "$as_dir" && as_dir=.
7265    for ac_exec_ext in '' $ac_executable_extensions; do
7266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269    break 2
7270  fi
7271done
7272  done
7273IFS=$as_save_IFS
7274
7275fi
7276fi
7277ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7278if test -n "$ac_ct_DSYMUTIL"; then
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7280$as_echo "$ac_ct_DSYMUTIL" >&6; }
7281else
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
7284fi
7285
7286  if test "x$ac_ct_DSYMUTIL" = x; then
7287    DSYMUTIL=":"
7288  else
7289    case $cross_compiling:$ac_tool_warned in
7290yes:)
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293ac_tool_warned=yes ;;
7294esac
7295    DSYMUTIL=$ac_ct_DSYMUTIL
7296  fi
7297else
7298  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7299fi
7300
7301    if test -n "$ac_tool_prefix"; then
7302  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7303set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
7306if ${ac_cv_prog_NMEDIT+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  if test -n "$NMEDIT"; then
7310  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315  IFS=$as_save_IFS
7316  test -z "$as_dir" && as_dir=.
7317    for ac_exec_ext in '' $ac_executable_extensions; do
7318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321    break 2
7322  fi
7323done
7324  done
7325IFS=$as_save_IFS
7326
7327fi
7328fi
7329NMEDIT=$ac_cv_prog_NMEDIT
7330if test -n "$NMEDIT"; then
7331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7332$as_echo "$NMEDIT" >&6; }
7333else
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
7336fi
7337
7338
7339fi
7340if test -z "$ac_cv_prog_NMEDIT"; then
7341  ac_ct_NMEDIT=$NMEDIT
7342  # Extract the first word of "nmedit", so it can be a program name with args.
7343set dummy nmedit; ac_word=$2
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
7346if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  if test -n "$ac_ct_NMEDIT"; then
7350  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357    for ac_exec_ext in '' $ac_executable_extensions; do
7358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364  done
7365IFS=$as_save_IFS
7366
7367fi
7368fi
7369ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7370if test -n "$ac_ct_NMEDIT"; then
7371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7372$as_echo "$ac_ct_NMEDIT" >&6; }
7373else
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
7376fi
7377
7378  if test "x$ac_ct_NMEDIT" = x; then
7379    NMEDIT=":"
7380  else
7381    case $cross_compiling:$ac_tool_warned in
7382yes:)
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385ac_tool_warned=yes ;;
7386esac
7387    NMEDIT=$ac_ct_NMEDIT
7388  fi
7389else
7390  NMEDIT="$ac_cv_prog_NMEDIT"
7391fi
7392
7393    if test -n "$ac_tool_prefix"; then
7394  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7395set dummy ${ac_tool_prefix}lipo; ac_word=$2
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397$as_echo_n "checking for $ac_word... " >&6; }
7398if ${ac_cv_prog_LIPO+:} false; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  if test -n "$LIPO"; then
7402  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407  IFS=$as_save_IFS
7408  test -z "$as_dir" && as_dir=.
7409    for ac_exec_ext in '' $ac_executable_extensions; do
7410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413    break 2
7414  fi
7415done
7416  done
7417IFS=$as_save_IFS
7418
7419fi
7420fi
7421LIPO=$ac_cv_prog_LIPO
7422if test -n "$LIPO"; then
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7424$as_echo "$LIPO" >&6; }
7425else
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
7428fi
7429
7430
7431fi
7432if test -z "$ac_cv_prog_LIPO"; then
7433  ac_ct_LIPO=$LIPO
7434  # Extract the first word of "lipo", so it can be a program name with args.
7435set dummy lipo; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  if test -n "$ac_ct_LIPO"; then
7442  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449    for ac_exec_ext in '' $ac_executable_extensions; do
7450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451    ac_cv_prog_ac_ct_LIPO="lipo"
7452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456  done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7462if test -n "$ac_ct_LIPO"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7464$as_echo "$ac_ct_LIPO" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470  if test "x$ac_ct_LIPO" = x; then
7471    LIPO=":"
7472  else
7473    case $cross_compiling:$ac_tool_warned in
7474yes:)
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477ac_tool_warned=yes ;;
7478esac
7479    LIPO=$ac_ct_LIPO
7480  fi
7481else
7482  LIPO="$ac_cv_prog_LIPO"
7483fi
7484
7485    if test -n "$ac_tool_prefix"; then
7486  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7487set dummy ${ac_tool_prefix}otool; ac_word=$2
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489$as_echo_n "checking for $ac_word... " >&6; }
7490if ${ac_cv_prog_OTOOL+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  if test -n "$OTOOL"; then
7494  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7495else
7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499  IFS=$as_save_IFS
7500  test -z "$as_dir" && as_dir=.
7501    for ac_exec_ext in '' $ac_executable_extensions; do
7502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505    break 2
7506  fi
7507done
7508  done
7509IFS=$as_save_IFS
7510
7511fi
7512fi
7513OTOOL=$ac_cv_prog_OTOOL
7514if test -n "$OTOOL"; then
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7516$as_echo "$OTOOL" >&6; }
7517else
7518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
7520fi
7521
7522
7523fi
7524if test -z "$ac_cv_prog_OTOOL"; then
7525  ac_ct_OTOOL=$OTOOL
7526  # Extract the first word of "otool", so it can be a program name with args.
7527set dummy otool; ac_word=$2
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  if test -n "$ac_ct_OTOOL"; then
7534  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539  IFS=$as_save_IFS
7540  test -z "$as_dir" && as_dir=.
7541    for ac_exec_ext in '' $ac_executable_extensions; do
7542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543    ac_cv_prog_ac_ct_OTOOL="otool"
7544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545    break 2
7546  fi
7547done
7548  done
7549IFS=$as_save_IFS
7550
7551fi
7552fi
7553ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7554if test -n "$ac_ct_OTOOL"; then
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7556$as_echo "$ac_ct_OTOOL" >&6; }
7557else
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
7560fi
7561
7562  if test "x$ac_ct_OTOOL" = x; then
7563    OTOOL=":"
7564  else
7565    case $cross_compiling:$ac_tool_warned in
7566yes:)
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569ac_tool_warned=yes ;;
7570esac
7571    OTOOL=$ac_ct_OTOOL
7572  fi
7573else
7574  OTOOL="$ac_cv_prog_OTOOL"
7575fi
7576
7577    if test -n "$ac_tool_prefix"; then
7578  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7579set dummy ${ac_tool_prefix}otool64; ac_word=$2
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581$as_echo_n "checking for $ac_word... " >&6; }
7582if ${ac_cv_prog_OTOOL64+:} false; then :
7583  $as_echo_n "(cached) " >&6
7584else
7585  if test -n "$OTOOL64"; then
7586  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7587else
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591  IFS=$as_save_IFS
7592  test -z "$as_dir" && as_dir=.
7593    for ac_exec_ext in '' $ac_executable_extensions; do
7594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597    break 2
7598  fi
7599done
7600  done
7601IFS=$as_save_IFS
7602
7603fi
7604fi
7605OTOOL64=$ac_cv_prog_OTOOL64
7606if test -n "$OTOOL64"; then
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7608$as_echo "$OTOOL64" >&6; }
7609else
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611$as_echo "no" >&6; }
7612fi
7613
7614
7615fi
7616if test -z "$ac_cv_prog_OTOOL64"; then
7617  ac_ct_OTOOL64=$OTOOL64
7618  # Extract the first word of "otool64", so it can be a program name with args.
7619set dummy otool64; ac_word=$2
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621$as_echo_n "checking for $ac_word... " >&6; }
7622if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  if test -n "$ac_ct_OTOOL64"; then
7626  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7627else
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631  IFS=$as_save_IFS
7632  test -z "$as_dir" && as_dir=.
7633    for ac_exec_ext in '' $ac_executable_extensions; do
7634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635    ac_cv_prog_ac_ct_OTOOL64="otool64"
7636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637    break 2
7638  fi
7639done
7640  done
7641IFS=$as_save_IFS
7642
7643fi
7644fi
7645ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7646if test -n "$ac_ct_OTOOL64"; then
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7648$as_echo "$ac_ct_OTOOL64" >&6; }
7649else
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
7652fi
7653
7654  if test "x$ac_ct_OTOOL64" = x; then
7655    OTOOL64=":"
7656  else
7657    case $cross_compiling:$ac_tool_warned in
7658yes:)
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661ac_tool_warned=yes ;;
7662esac
7663    OTOOL64=$ac_ct_OTOOL64
7664  fi
7665else
7666  OTOOL64="$ac_cv_prog_OTOOL64"
7667fi
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7696$as_echo_n "checking for -single_module linker flag... " >&6; }
7697if ${lt_cv_apple_cc_single_mod+:} false; then :
7698  $as_echo_n "(cached) " >&6
7699else
7700  lt_cv_apple_cc_single_mod=no
7701      if test -z "$LT_MULTI_MODULE"; then
7702	# By default we will add the -single_module flag. You can override
7703	# by either setting the environment variable LT_MULTI_MODULE
7704	# non-empty at configure time, or by adding -multi_module to the
7705	# link flags.
7706	rm -rf libconftest.dylib*
7707	echo "int foo(void){return 1;}" > conftest.c
7708	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7709-dynamiclib -Wl,-single_module conftest.c" >&5
7710	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7711	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7712        _lt_result=$?
7713	# If there is a non-empty error log, and "single_module"
7714	# appears in it, assume the flag caused a linker warning
7715        if test -s conftest.err && $GREP single_module conftest.err; then
7716	  cat conftest.err >&5
7717	# Otherwise, if the output was created with a 0 exit code from
7718	# the compiler, it worked.
7719	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7720	  lt_cv_apple_cc_single_mod=yes
7721	else
7722	  cat conftest.err >&5
7723	fi
7724	rm -rf libconftest.dylib*
7725	rm -f conftest.*
7726      fi
7727fi
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7729$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7730
7731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7732$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7733if ${lt_cv_ld_exported_symbols_list+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  lt_cv_ld_exported_symbols_list=no
7737      save_LDFLAGS=$LDFLAGS
7738      echo "_main" > conftest.sym
7739      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7740      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742
7743int
7744main ()
7745{
7746
7747  ;
7748  return 0;
7749}
7750_ACEOF
7751if ac_fn_c_try_link "$LINENO"; then :
7752  lt_cv_ld_exported_symbols_list=yes
7753else
7754  lt_cv_ld_exported_symbols_list=no
7755fi
7756rm -f core conftest.err conftest.$ac_objext \
7757    conftest$ac_exeext conftest.$ac_ext
7758	LDFLAGS=$save_LDFLAGS
7759
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7762$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7763
7764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7765$as_echo_n "checking for -force_load linker flag... " >&6; }
7766if ${lt_cv_ld_force_load+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  lt_cv_ld_force_load=no
7770      cat > conftest.c << _LT_EOF
7771int forced_loaded() { return 2;}
7772_LT_EOF
7773      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7774      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7775      echo "$AR cru libconftest.a conftest.o" >&5
7776      $AR cru libconftest.a conftest.o 2>&5
7777      echo "$RANLIB libconftest.a" >&5
7778      $RANLIB libconftest.a 2>&5
7779      cat > conftest.c << _LT_EOF
7780int main() { return 0;}
7781_LT_EOF
7782      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7783      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7784      _lt_result=$?
7785      if test -s conftest.err && $GREP force_load conftest.err; then
7786	cat conftest.err >&5
7787      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7788	lt_cv_ld_force_load=yes
7789      else
7790	cat conftest.err >&5
7791      fi
7792        rm -f conftest.err libconftest.a conftest conftest.c
7793        rm -rf conftest.dSYM
7794
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7797$as_echo "$lt_cv_ld_force_load" >&6; }
7798    case $host_os in
7799    rhapsody* | darwin1.[012])
7800      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7801    darwin1.*)
7802      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7803    darwin*) # darwin 5.x on
7804      # if running on 10.5 or later, the deployment target defaults
7805      # to the OS version, if on x86, and 10.4, the deployment
7806      # target defaults to 10.4. Don't you love it?
7807      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7808	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7809	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7810	10.[012][,.]*)
7811	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7812	10.*)
7813	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7814      esac
7815    ;;
7816  esac
7817    if test yes = "$lt_cv_apple_cc_single_mod"; then
7818      _lt_dar_single_mod='$single_module'
7819    fi
7820    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7821      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7822    else
7823      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7824    fi
7825    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7826      _lt_dsymutil='~$DSYMUTIL $lib || :'
7827    else
7828      _lt_dsymutil=
7829    fi
7830    ;;
7831  esac
7832
7833# func_munge_path_list VARIABLE PATH
7834# -----------------------------------
7835# VARIABLE is name of variable containing _space_ separated list of
7836# directories to be munged by the contents of PATH, which is string
7837# having a format:
7838# "DIR[:DIR]:"
7839#       string "DIR[ DIR]" will be prepended to VARIABLE
7840# ":DIR[:DIR]"
7841#       string "DIR[ DIR]" will be appended to VARIABLE
7842# "DIRP[:DIRP]::[DIRA:]DIRA"
7843#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7844#       "DIRA[ DIRA]" will be appended to VARIABLE
7845# "DIR[:DIR]"
7846#       VARIABLE will be replaced by "DIR[ DIR]"
7847func_munge_path_list ()
7848{
7849    case x$2 in
7850    x)
7851        ;;
7852    *:)
7853        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7854        ;;
7855    x:*)
7856        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7857        ;;
7858    *::*)
7859        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7860        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7861        ;;
7862    *)
7863        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7864        ;;
7865    esac
7866}
7867
7868ac_ext=c
7869ac_cpp='$CPP $CPPFLAGS'
7870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7874$as_echo_n "checking how to run the C preprocessor... " >&6; }
7875# On Suns, sometimes $CPP names a directory.
7876if test -n "$CPP" && test -d "$CPP"; then
7877  CPP=
7878fi
7879if test -z "$CPP"; then
7880  if ${ac_cv_prog_CPP+:} false; then :
7881  $as_echo_n "(cached) " >&6
7882else
7883      # Double quotes because CPP needs to be expanded
7884    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7885    do
7886      ac_preproc_ok=false
7887for ac_c_preproc_warn_flag in '' yes
7888do
7889  # Use a header file that comes with gcc, so configuring glibc
7890  # with a fresh cross-compiler works.
7891  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7892  # <limits.h> exists even on freestanding compilers.
7893  # On the NeXT, cc -E runs the code through the compiler's parser,
7894  # not just through cpp. "Syntax error" is here to catch this case.
7895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897#ifdef __STDC__
7898# include <limits.h>
7899#else
7900# include <assert.h>
7901#endif
7902		     Syntax error
7903_ACEOF
7904if ac_fn_c_try_cpp "$LINENO"; then :
7905
7906else
7907  # Broken: fails on valid input.
7908continue
7909fi
7910rm -f conftest.err conftest.i conftest.$ac_ext
7911
7912  # OK, works on sane cases.  Now check whether nonexistent headers
7913  # can be detected and how.
7914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915/* end confdefs.h.  */
7916#include <ac_nonexistent.h>
7917_ACEOF
7918if ac_fn_c_try_cpp "$LINENO"; then :
7919  # Broken: success on invalid input.
7920continue
7921else
7922  # Passes both tests.
7923ac_preproc_ok=:
7924break
7925fi
7926rm -f conftest.err conftest.i conftest.$ac_ext
7927
7928done
7929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7930rm -f conftest.i conftest.err conftest.$ac_ext
7931if $ac_preproc_ok; then :
7932  break
7933fi
7934
7935    done
7936    ac_cv_prog_CPP=$CPP
7937
7938fi
7939  CPP=$ac_cv_prog_CPP
7940else
7941  ac_cv_prog_CPP=$CPP
7942fi
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7944$as_echo "$CPP" >&6; }
7945ac_preproc_ok=false
7946for ac_c_preproc_warn_flag in '' yes
7947do
7948  # Use a header file that comes with gcc, so configuring glibc
7949  # with a fresh cross-compiler works.
7950  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7951  # <limits.h> exists even on freestanding compilers.
7952  # On the NeXT, cc -E runs the code through the compiler's parser,
7953  # not just through cpp. "Syntax error" is here to catch this case.
7954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956#ifdef __STDC__
7957# include <limits.h>
7958#else
7959# include <assert.h>
7960#endif
7961		     Syntax error
7962_ACEOF
7963if ac_fn_c_try_cpp "$LINENO"; then :
7964
7965else
7966  # Broken: fails on valid input.
7967continue
7968fi
7969rm -f conftest.err conftest.i conftest.$ac_ext
7970
7971  # OK, works on sane cases.  Now check whether nonexistent headers
7972  # can be detected and how.
7973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h.  */
7975#include <ac_nonexistent.h>
7976_ACEOF
7977if ac_fn_c_try_cpp "$LINENO"; then :
7978  # Broken: success on invalid input.
7979continue
7980else
7981  # Passes both tests.
7982ac_preproc_ok=:
7983break
7984fi
7985rm -f conftest.err conftest.i conftest.$ac_ext
7986
7987done
7988# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7989rm -f conftest.i conftest.err conftest.$ac_ext
7990if $ac_preproc_ok; then :
7991
7992else
7993  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7995as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7996See \`config.log' for more details" "$LINENO" 5; }
7997fi
7998
7999ac_ext=c
8000ac_cpp='$CPP $CPPFLAGS'
8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
8005
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8007$as_echo_n "checking for ANSI C header files... " >&6; }
8008if ${ac_cv_header_stdc+:} false; then :
8009  $as_echo_n "(cached) " >&6
8010else
8011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012/* end confdefs.h.  */
8013#include <stdlib.h>
8014#include <stdarg.h>
8015#include <string.h>
8016#include <float.h>
8017
8018int
8019main ()
8020{
8021
8022  ;
8023  return 0;
8024}
8025_ACEOF
8026if ac_fn_c_try_compile "$LINENO"; then :
8027  ac_cv_header_stdc=yes
8028else
8029  ac_cv_header_stdc=no
8030fi
8031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032
8033if test $ac_cv_header_stdc = yes; then
8034  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037#include <string.h>
8038
8039_ACEOF
8040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041  $EGREP "memchr" >/dev/null 2>&1; then :
8042
8043else
8044  ac_cv_header_stdc=no
8045fi
8046rm -f conftest*
8047
8048fi
8049
8050if test $ac_cv_header_stdc = yes; then
8051  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054#include <stdlib.h>
8055
8056_ACEOF
8057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8058  $EGREP "free" >/dev/null 2>&1; then :
8059
8060else
8061  ac_cv_header_stdc=no
8062fi
8063rm -f conftest*
8064
8065fi
8066
8067if test $ac_cv_header_stdc = yes; then
8068  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8069  if test "$cross_compiling" = yes; then :
8070  :
8071else
8072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074#include <ctype.h>
8075#include <stdlib.h>
8076#if ((' ' & 0x0FF) == 0x020)
8077# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8078# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8079#else
8080# define ISLOWER(c) \
8081		   (('a' <= (c) && (c) <= 'i') \
8082		     || ('j' <= (c) && (c) <= 'r') \
8083		     || ('s' <= (c) && (c) <= 'z'))
8084# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8085#endif
8086
8087#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8088int
8089main ()
8090{
8091  int i;
8092  for (i = 0; i < 256; i++)
8093    if (XOR (islower (i), ISLOWER (i))
8094	|| toupper (i) != TOUPPER (i))
8095      return 2;
8096  return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_run "$LINENO"; then :
8100
8101else
8102  ac_cv_header_stdc=no
8103fi
8104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8105  conftest.$ac_objext conftest.beam conftest.$ac_ext
8106fi
8107
8108fi
8109fi
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8111$as_echo "$ac_cv_header_stdc" >&6; }
8112if test $ac_cv_header_stdc = yes; then
8113
8114$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8115
8116fi
8117
8118# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8119for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8120		  inttypes.h stdint.h unistd.h
8121do :
8122  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8123ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8124"
8125if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8126  cat >>confdefs.h <<_ACEOF
8127#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128_ACEOF
8129
8130fi
8131
8132done
8133
8134
8135for ac_header in dlfcn.h
8136do :
8137  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8138"
8139if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8140  cat >>confdefs.h <<_ACEOF
8141#define HAVE_DLFCN_H 1
8142_ACEOF
8143
8144fi
8145
8146done
8147
8148
8149
8150
8151
8152# Set options
8153
8154
8155
8156        enable_dlopen=no
8157
8158
8159  enable_win32_dll=no
8160
8161
8162            # Check whether --enable-shared was given.
8163if test "${enable_shared+set}" = set; then :
8164  enableval=$enable_shared; p=${PACKAGE-default}
8165    case $enableval in
8166    yes) enable_shared=yes ;;
8167    no) enable_shared=no ;;
8168    *)
8169      enable_shared=no
8170      # Look at the argument we got.  We use all the common list separators.
8171      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8172      for pkg in $enableval; do
8173	IFS=$lt_save_ifs
8174	if test "X$pkg" = "X$p"; then
8175	  enable_shared=yes
8176	fi
8177      done
8178      IFS=$lt_save_ifs
8179      ;;
8180    esac
8181else
8182  enable_shared=yes
8183fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193  # Check whether --enable-static was given.
8194if test "${enable_static+set}" = set; then :
8195  enableval=$enable_static; p=${PACKAGE-default}
8196    case $enableval in
8197    yes) enable_static=yes ;;
8198    no) enable_static=no ;;
8199    *)
8200     enable_static=no
8201      # Look at the argument we got.  We use all the common list separators.
8202      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8203      for pkg in $enableval; do
8204	IFS=$lt_save_ifs
8205	if test "X$pkg" = "X$p"; then
8206	  enable_static=yes
8207	fi
8208      done
8209      IFS=$lt_save_ifs
8210      ;;
8211    esac
8212else
8213  enable_static=yes
8214fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225# Check whether --with-pic was given.
8226if test "${with_pic+set}" = set; then :
8227  withval=$with_pic; lt_p=${PACKAGE-default}
8228    case $withval in
8229    yes|no) pic_mode=$withval ;;
8230    *)
8231      pic_mode=default
8232      # Look at the argument we got.  We use all the common list separators.
8233      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8234      for lt_pkg in $withval; do
8235	IFS=$lt_save_ifs
8236	if test "X$lt_pkg" = "X$lt_p"; then
8237	  pic_mode=yes
8238	fi
8239      done
8240      IFS=$lt_save_ifs
8241      ;;
8242    esac
8243else
8244  pic_mode=default
8245fi
8246
8247
8248
8249
8250
8251
8252
8253
8254  # Check whether --enable-fast-install was given.
8255if test "${enable_fast_install+set}" = set; then :
8256  enableval=$enable_fast_install; p=${PACKAGE-default}
8257    case $enableval in
8258    yes) enable_fast_install=yes ;;
8259    no) enable_fast_install=no ;;
8260    *)
8261      enable_fast_install=no
8262      # Look at the argument we got.  We use all the common list separators.
8263      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8264      for pkg in $enableval; do
8265	IFS=$lt_save_ifs
8266	if test "X$pkg" = "X$p"; then
8267	  enable_fast_install=yes
8268	fi
8269      done
8270      IFS=$lt_save_ifs
8271      ;;
8272    esac
8273else
8274  enable_fast_install=yes
8275fi
8276
8277
8278
8279
8280
8281
8282
8283
8284  shared_archive_member_spec=
8285case $host,$enable_shared in
8286power*-*-aix[5-9]*,yes)
8287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8288$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8289
8290# Check whether --with-aix-soname was given.
8291if test "${with_aix_soname+set}" = set; then :
8292  withval=$with_aix_soname; case $withval in
8293    aix|svr4|both)
8294      ;;
8295    *)
8296      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8297      ;;
8298    esac
8299    lt_cv_with_aix_soname=$with_aix_soname
8300else
8301  if ${lt_cv_with_aix_soname+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  lt_cv_with_aix_soname=aix
8305fi
8306
8307    with_aix_soname=$lt_cv_with_aix_soname
8308fi
8309
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8311$as_echo "$with_aix_soname" >&6; }
8312  if test aix != "$with_aix_soname"; then
8313    # For the AIX way of multilib, we name the shared archive member
8314    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8315    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8316    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8317    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8318    if test 64 = "${OBJECT_MODE-32}"; then
8319      shared_archive_member_spec=shr_64
8320    else
8321      shared_archive_member_spec=shr
8322    fi
8323  fi
8324  ;;
8325*)
8326  with_aix_soname=aix
8327  ;;
8328esac
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339# This can be used to rebuild libtool when needed
8340LIBTOOL_DEPS=$ltmain
8341
8342# Always use our own libtool.
8343LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374test -z "$LN_S" && LN_S="ln -s"
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389if test -n "${ZSH_VERSION+set}"; then
8390   setopt NO_GLOB_SUBST
8391fi
8392
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8394$as_echo_n "checking for objdir... " >&6; }
8395if ${lt_cv_objdir+:} false; then :
8396  $as_echo_n "(cached) " >&6
8397else
8398  rm -f .libs 2>/dev/null
8399mkdir .libs 2>/dev/null
8400if test -d .libs; then
8401  lt_cv_objdir=.libs
8402else
8403  # MS-DOS does not allow filenames that begin with a dot.
8404  lt_cv_objdir=_libs
8405fi
8406rmdir .libs 2>/dev/null
8407fi
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8409$as_echo "$lt_cv_objdir" >&6; }
8410objdir=$lt_cv_objdir
8411
8412
8413
8414
8415
8416cat >>confdefs.h <<_ACEOF
8417#define LT_OBJDIR "$lt_cv_objdir/"
8418_ACEOF
8419
8420
8421
8422
8423case $host_os in
8424aix3*)
8425  # AIX sometimes has problems with the GCC collect2 program.  For some
8426  # reason, if we set the COLLECT_NAMES environment variable, the problems
8427  # vanish in a puff of smoke.
8428  if test set != "${COLLECT_NAMES+set}"; then
8429    COLLECT_NAMES=
8430    export COLLECT_NAMES
8431  fi
8432  ;;
8433esac
8434
8435# Global variables:
8436ofile=libtool
8437can_build_shared=yes
8438
8439# All known linkers require a '.a' archive for static linking (except MSVC,
8440# which needs '.lib').
8441libext=a
8442
8443with_gnu_ld=$lt_cv_prog_gnu_ld
8444
8445old_CC=$CC
8446old_CFLAGS=$CFLAGS
8447
8448# Set sane defaults for various variables
8449test -z "$CC" && CC=cc
8450test -z "$LTCC" && LTCC=$CC
8451test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8452test -z "$LD" && LD=ld
8453test -z "$ac_objext" && ac_objext=o
8454
8455func_cc_basename $compiler
8456cc_basename=$func_cc_basename_result
8457
8458
8459# Only perform the check for file, if the check method requires it
8460test -z "$MAGIC_CMD" && MAGIC_CMD=file
8461case $deplibs_check_method in
8462file_magic*)
8463  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8465$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8466if ${lt_cv_path_MAGIC_CMD+:} false; then :
8467  $as_echo_n "(cached) " >&6
8468else
8469  case $MAGIC_CMD in
8470[\\/*] |  ?:[\\/]*)
8471  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8472  ;;
8473*)
8474  lt_save_MAGIC_CMD=$MAGIC_CMD
8475  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8476  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477  for ac_dir in $ac_dummy; do
8478    IFS=$lt_save_ifs
8479    test -z "$ac_dir" && ac_dir=.
8480    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8481      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8482      if test -n "$file_magic_test_file"; then
8483	case $deplibs_check_method in
8484	"file_magic "*)
8485	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8487	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488	    $EGREP "$file_magic_regex" > /dev/null; then
8489	    :
8490	  else
8491	    cat <<_LT_EOF 1>&2
8492
8493*** Warning: the command libtool uses to detect shared libraries,
8494*** $file_magic_cmd, produces output that libtool cannot recognize.
8495*** The result is that libtool may fail to recognize shared libraries
8496*** as such.  This will affect the creation of libtool libraries that
8497*** depend on shared libraries, but programs linked with such libtool
8498*** libraries will work regardless of this problem.  Nevertheless, you
8499*** may want to report the problem to your system manager and/or to
8500*** bug-libtool@gnu.org
8501
8502_LT_EOF
8503	  fi ;;
8504	esac
8505      fi
8506      break
8507    fi
8508  done
8509  IFS=$lt_save_ifs
8510  MAGIC_CMD=$lt_save_MAGIC_CMD
8511  ;;
8512esac
8513fi
8514
8515MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8516if test -n "$MAGIC_CMD"; then
8517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8518$as_echo "$MAGIC_CMD" >&6; }
8519else
8520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521$as_echo "no" >&6; }
8522fi
8523
8524
8525
8526
8527
8528if test -z "$lt_cv_path_MAGIC_CMD"; then
8529  if test -n "$ac_tool_prefix"; then
8530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8531$as_echo_n "checking for file... " >&6; }
8532if ${lt_cv_path_MAGIC_CMD+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  case $MAGIC_CMD in
8536[\\/*] |  ?:[\\/]*)
8537  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8538  ;;
8539*)
8540  lt_save_MAGIC_CMD=$MAGIC_CMD
8541  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8542  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8543  for ac_dir in $ac_dummy; do
8544    IFS=$lt_save_ifs
8545    test -z "$ac_dir" && ac_dir=.
8546    if test -f "$ac_dir/file"; then
8547      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8548      if test -n "$file_magic_test_file"; then
8549	case $deplibs_check_method in
8550	"file_magic "*)
8551	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8552	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8553	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8554	    $EGREP "$file_magic_regex" > /dev/null; then
8555	    :
8556	  else
8557	    cat <<_LT_EOF 1>&2
8558
8559*** Warning: the command libtool uses to detect shared libraries,
8560*** $file_magic_cmd, produces output that libtool cannot recognize.
8561*** The result is that libtool may fail to recognize shared libraries
8562*** as such.  This will affect the creation of libtool libraries that
8563*** depend on shared libraries, but programs linked with such libtool
8564*** libraries will work regardless of this problem.  Nevertheless, you
8565*** may want to report the problem to your system manager and/or to
8566*** bug-libtool@gnu.org
8567
8568_LT_EOF
8569	  fi ;;
8570	esac
8571      fi
8572      break
8573    fi
8574  done
8575  IFS=$lt_save_ifs
8576  MAGIC_CMD=$lt_save_MAGIC_CMD
8577  ;;
8578esac
8579fi
8580
8581MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8582if test -n "$MAGIC_CMD"; then
8583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8584$as_echo "$MAGIC_CMD" >&6; }
8585else
8586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587$as_echo "no" >&6; }
8588fi
8589
8590
8591  else
8592    MAGIC_CMD=:
8593  fi
8594fi
8595
8596  fi
8597  ;;
8598esac
8599
8600# Use C for the default configuration in the libtool script
8601
8602lt_save_CC=$CC
8603ac_ext=c
8604ac_cpp='$CPP $CPPFLAGS'
8605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8607ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608
8609
8610# Source file extension for C test sources.
8611ac_ext=c
8612
8613# Object file extension for compiled C test sources.
8614objext=o
8615objext=$objext
8616
8617# Code to be used in simple compile tests
8618lt_simple_compile_test_code="int some_variable = 0;"
8619
8620# Code to be used in simple link tests
8621lt_simple_link_test_code='int main(){return(0);}'
8622
8623
8624
8625
8626
8627
8628
8629# If no C compiler was specified, use CC.
8630LTCC=${LTCC-"$CC"}
8631
8632# If no C compiler flags were specified, use CFLAGS.
8633LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8634
8635# Allow CC to be a program name with arguments.
8636compiler=$CC
8637
8638# Save the default compiler, since it gets overwritten when the other
8639# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8640compiler_DEFAULT=$CC
8641
8642# save warnings/boilerplate of simple test code
8643ac_outfile=conftest.$ac_objext
8644echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8645eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8646_lt_compiler_boilerplate=`cat conftest.err`
8647$RM conftest*
8648
8649ac_outfile=conftest.$ac_objext
8650echo "$lt_simple_link_test_code" >conftest.$ac_ext
8651eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8652_lt_linker_boilerplate=`cat conftest.err`
8653$RM -r conftest*
8654
8655
8656## CAVEAT EMPTOR:
8657## There is no encapsulation within the following macros, do not change
8658## the running order or otherwise move them around unless you know exactly
8659## what you are doing...
8660if test -n "$compiler"; then
8661
8662lt_prog_compiler_no_builtin_flag=
8663
8664if test yes = "$GCC"; then
8665  case $cc_basename in
8666  nvcc*)
8667    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8668  *)
8669    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8670  esac
8671
8672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8673$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8674if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  lt_cv_prog_compiler_rtti_exceptions=no
8678   ac_outfile=conftest.$ac_objext
8679   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8680   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8681   # Insert the option either (1) after the last *FLAGS variable, or
8682   # (2) before a word containing "conftest.", or (3) at the end.
8683   # Note that $ac_compile itself does not contain backslashes and begins
8684   # with a dollar sign (not a hyphen), so the echo should work correctly.
8685   # The option is referenced via a variable to avoid confusing sed.
8686   lt_compile=`echo "$ac_compile" | $SED \
8687   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689   -e 's:$: $lt_compiler_flag:'`
8690   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8691   (eval "$lt_compile" 2>conftest.err)
8692   ac_status=$?
8693   cat conftest.err >&5
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   if (exit $ac_status) && test -s "$ac_outfile"; then
8696     # The compiler can only warn and ignore the option if not recognized
8697     # So say no if there are warnings other than the usual output.
8698     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8699     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8700     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8701       lt_cv_prog_compiler_rtti_exceptions=yes
8702     fi
8703   fi
8704   $RM conftest*
8705
8706fi
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8708$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8709
8710if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8711    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8712else
8713    :
8714fi
8715
8716fi
8717
8718
8719
8720
8721
8722
8723  lt_prog_compiler_wl=
8724lt_prog_compiler_pic=
8725lt_prog_compiler_static=
8726
8727
8728  if test yes = "$GCC"; then
8729    lt_prog_compiler_wl='-Wl,'
8730    lt_prog_compiler_static='-static'
8731
8732    case $host_os in
8733      aix*)
8734      # All AIX code is PIC.
8735      if test ia64 = "$host_cpu"; then
8736	# AIX 5 now supports IA64 processor
8737	lt_prog_compiler_static='-Bstatic'
8738      fi
8739      lt_prog_compiler_pic='-fPIC'
8740      ;;
8741
8742    amigaos*)
8743      case $host_cpu in
8744      powerpc)
8745            # see comment about AmigaOS4 .so support
8746            lt_prog_compiler_pic='-fPIC'
8747        ;;
8748      m68k)
8749            # FIXME: we need at least 68020 code to build shared libraries, but
8750            # adding the '-m68020' flag to GCC prevents building anything better,
8751            # like '-m68040'.
8752            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8753        ;;
8754      esac
8755      ;;
8756
8757    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8758      # PIC is the default for these OSes.
8759      ;;
8760
8761    mingw* | cygwin* | pw32* | os2* | cegcc*)
8762      # This hack is so that the source file can tell whether it is being
8763      # built for inclusion in a dll (and should export symbols for example).
8764      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8765      # (--disable-auto-import) libraries
8766      lt_prog_compiler_pic='-DDLL_EXPORT'
8767      case $host_os in
8768      os2*)
8769	lt_prog_compiler_static='$wl-static'
8770	;;
8771      esac
8772      ;;
8773
8774    darwin* | rhapsody*)
8775      # PIC is the default on this platform
8776      # Common symbols not allowed in MH_DYLIB files
8777      lt_prog_compiler_pic='-fno-common'
8778      ;;
8779
8780    haiku*)
8781      # PIC is the default for Haiku.
8782      # The "-static" flag exists, but is broken.
8783      lt_prog_compiler_static=
8784      ;;
8785
8786    hpux*)
8787      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8788      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8789      # sets the default TLS model and affects inlining.
8790      case $host_cpu in
8791      hppa*64*)
8792	# +Z the default
8793	;;
8794      *)
8795	lt_prog_compiler_pic='-fPIC'
8796	;;
8797      esac
8798      ;;
8799
8800    interix[3-9]*)
8801      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8802      # Instead, we relocate shared libraries at runtime.
8803      ;;
8804
8805    msdosdjgpp*)
8806      # Just because we use GCC doesn't mean we suddenly get shared libraries
8807      # on systems that don't support them.
8808      lt_prog_compiler_can_build_shared=no
8809      enable_shared=no
8810      ;;
8811
8812    *nto* | *qnx*)
8813      # QNX uses GNU C++, but need to define -shared option too, otherwise
8814      # it will coredump.
8815      lt_prog_compiler_pic='-fPIC -shared'
8816      ;;
8817
8818    sysv4*MP*)
8819      if test -d /usr/nec; then
8820	lt_prog_compiler_pic=-Kconform_pic
8821      fi
8822      ;;
8823
8824    *)
8825      lt_prog_compiler_pic='-fPIC'
8826      ;;
8827    esac
8828
8829    case $cc_basename in
8830    nvcc*) # Cuda Compiler Driver 2.2
8831      lt_prog_compiler_wl='-Xlinker '
8832      if test -n "$lt_prog_compiler_pic"; then
8833        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8834      fi
8835      ;;
8836    esac
8837  else
8838    # PORTME Check for flag to pass linker flags through the system compiler.
8839    case $host_os in
8840    aix*)
8841      lt_prog_compiler_wl='-Wl,'
8842      if test ia64 = "$host_cpu"; then
8843	# AIX 5 now supports IA64 processor
8844	lt_prog_compiler_static='-Bstatic'
8845      else
8846	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8847      fi
8848      ;;
8849
8850    darwin* | rhapsody*)
8851      # PIC is the default on this platform
8852      # Common symbols not allowed in MH_DYLIB files
8853      lt_prog_compiler_pic='-fno-common'
8854      case $cc_basename in
8855      nagfor*)
8856        # NAG Fortran compiler
8857        lt_prog_compiler_wl='-Wl,-Wl,,'
8858        lt_prog_compiler_pic='-PIC'
8859        lt_prog_compiler_static='-Bstatic'
8860        ;;
8861      esac
8862      ;;
8863
8864    mingw* | cygwin* | pw32* | os2* | cegcc*)
8865      # This hack is so that the source file can tell whether it is being
8866      # built for inclusion in a dll (and should export symbols for example).
8867      lt_prog_compiler_pic='-DDLL_EXPORT'
8868      case $host_os in
8869      os2*)
8870	lt_prog_compiler_static='$wl-static'
8871	;;
8872      esac
8873      ;;
8874
8875    hpux9* | hpux10* | hpux11*)
8876      lt_prog_compiler_wl='-Wl,'
8877      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8878      # not for PA HP-UX.
8879      case $host_cpu in
8880      hppa*64*|ia64*)
8881	# +Z the default
8882	;;
8883      *)
8884	lt_prog_compiler_pic='+Z'
8885	;;
8886      esac
8887      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8888      lt_prog_compiler_static='$wl-a ${wl}archive'
8889      ;;
8890
8891    irix5* | irix6* | nonstopux*)
8892      lt_prog_compiler_wl='-Wl,'
8893      # PIC (with -KPIC) is the default.
8894      lt_prog_compiler_static='-non_shared'
8895      ;;
8896
8897    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8898      case $cc_basename in
8899      # old Intel for x86_64, which still supported -KPIC.
8900      ecc*)
8901	lt_prog_compiler_wl='-Wl,'
8902	lt_prog_compiler_pic='-KPIC'
8903	lt_prog_compiler_static='-static'
8904        ;;
8905      # icc used to be incompatible with GCC.
8906      # ICC 10 doesn't accept -KPIC any more.
8907      icc* | ifort*)
8908	lt_prog_compiler_wl='-Wl,'
8909	lt_prog_compiler_pic='-fPIC'
8910	lt_prog_compiler_static='-static'
8911        ;;
8912      # Lahey Fortran 8.1.
8913      lf95*)
8914	lt_prog_compiler_wl='-Wl,'
8915	lt_prog_compiler_pic='--shared'
8916	lt_prog_compiler_static='--static'
8917	;;
8918      nagfor*)
8919	# NAG Fortran compiler
8920	lt_prog_compiler_wl='-Wl,-Wl,,'
8921	lt_prog_compiler_pic='-PIC'
8922	lt_prog_compiler_static='-Bstatic'
8923	;;
8924      tcc*)
8925	# Fabrice Bellard et al's Tiny C Compiler
8926	lt_prog_compiler_wl='-Wl,'
8927	lt_prog_compiler_pic='-fPIC'
8928	lt_prog_compiler_static='-static'
8929	;;
8930      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8931        # Portland Group compilers (*not* the Pentium gcc compiler,
8932	# which looks to be a dead project)
8933	lt_prog_compiler_wl='-Wl,'
8934	lt_prog_compiler_pic='-fpic'
8935	lt_prog_compiler_static='-Bstatic'
8936        ;;
8937      ccc*)
8938        lt_prog_compiler_wl='-Wl,'
8939        # All Alpha code is PIC.
8940        lt_prog_compiler_static='-non_shared'
8941        ;;
8942      xl* | bgxl* | bgf* | mpixl*)
8943	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8944	lt_prog_compiler_wl='-Wl,'
8945	lt_prog_compiler_pic='-qpic'
8946	lt_prog_compiler_static='-qstaticlink'
8947	;;
8948      *)
8949	case `$CC -V 2>&1 | sed 5q` in
8950	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8951	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8952	  lt_prog_compiler_pic='-KPIC'
8953	  lt_prog_compiler_static='-Bstatic'
8954	  lt_prog_compiler_wl=''
8955	  ;;
8956	*Sun\ F* | *Sun*Fortran*)
8957	  lt_prog_compiler_pic='-KPIC'
8958	  lt_prog_compiler_static='-Bstatic'
8959	  lt_prog_compiler_wl='-Qoption ld '
8960	  ;;
8961	*Sun\ C*)
8962	  # Sun C 5.9
8963	  lt_prog_compiler_pic='-KPIC'
8964	  lt_prog_compiler_static='-Bstatic'
8965	  lt_prog_compiler_wl='-Wl,'
8966	  ;;
8967        *Intel*\ [CF]*Compiler*)
8968	  lt_prog_compiler_wl='-Wl,'
8969	  lt_prog_compiler_pic='-fPIC'
8970	  lt_prog_compiler_static='-static'
8971	  ;;
8972	*Portland\ Group*)
8973	  lt_prog_compiler_wl='-Wl,'
8974	  lt_prog_compiler_pic='-fpic'
8975	  lt_prog_compiler_static='-Bstatic'
8976	  ;;
8977	esac
8978	;;
8979      esac
8980      ;;
8981
8982    newsos6)
8983      lt_prog_compiler_pic='-KPIC'
8984      lt_prog_compiler_static='-Bstatic'
8985      ;;
8986
8987    *nto* | *qnx*)
8988      # QNX uses GNU C++, but need to define -shared option too, otherwise
8989      # it will coredump.
8990      lt_prog_compiler_pic='-fPIC -shared'
8991      ;;
8992
8993    osf3* | osf4* | osf5*)
8994      lt_prog_compiler_wl='-Wl,'
8995      # All OSF/1 code is PIC.
8996      lt_prog_compiler_static='-non_shared'
8997      ;;
8998
8999    rdos*)
9000      lt_prog_compiler_static='-non_shared'
9001      ;;
9002
9003    solaris*)
9004      lt_prog_compiler_pic='-KPIC'
9005      lt_prog_compiler_static='-Bstatic'
9006      case $cc_basename in
9007      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9008	lt_prog_compiler_wl='-Qoption ld ';;
9009      *)
9010	lt_prog_compiler_wl='-Wl,';;
9011      esac
9012      ;;
9013
9014    sunos4*)
9015      lt_prog_compiler_wl='-Qoption ld '
9016      lt_prog_compiler_pic='-PIC'
9017      lt_prog_compiler_static='-Bstatic'
9018      ;;
9019
9020    sysv4 | sysv4.2uw2* | sysv4.3*)
9021      lt_prog_compiler_wl='-Wl,'
9022      lt_prog_compiler_pic='-KPIC'
9023      lt_prog_compiler_static='-Bstatic'
9024      ;;
9025
9026    sysv4*MP*)
9027      if test -d /usr/nec; then
9028	lt_prog_compiler_pic='-Kconform_pic'
9029	lt_prog_compiler_static='-Bstatic'
9030      fi
9031      ;;
9032
9033    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9034      lt_prog_compiler_wl='-Wl,'
9035      lt_prog_compiler_pic='-KPIC'
9036      lt_prog_compiler_static='-Bstatic'
9037      ;;
9038
9039    unicos*)
9040      lt_prog_compiler_wl='-Wl,'
9041      lt_prog_compiler_can_build_shared=no
9042      ;;
9043
9044    uts4*)
9045      lt_prog_compiler_pic='-pic'
9046      lt_prog_compiler_static='-Bstatic'
9047      ;;
9048
9049    *)
9050      lt_prog_compiler_can_build_shared=no
9051      ;;
9052    esac
9053  fi
9054
9055case $host_os in
9056  # For platforms that do not support PIC, -DPIC is meaningless:
9057  *djgpp*)
9058    lt_prog_compiler_pic=
9059    ;;
9060  *)
9061    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9062    ;;
9063esac
9064
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9066$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9067if ${lt_cv_prog_compiler_pic+:} false; then :
9068  $as_echo_n "(cached) " >&6
9069else
9070  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9071fi
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9073$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9074lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9075
9076#
9077# Check to make sure the PIC flag actually works.
9078#
9079if test -n "$lt_prog_compiler_pic"; then
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9081$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9082if ${lt_cv_prog_compiler_pic_works+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  lt_cv_prog_compiler_pic_works=no
9086   ac_outfile=conftest.$ac_objext
9087   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9089   # Insert the option either (1) after the last *FLAGS variable, or
9090   # (2) before a word containing "conftest.", or (3) at the end.
9091   # Note that $ac_compile itself does not contain backslashes and begins
9092   # with a dollar sign (not a hyphen), so the echo should work correctly.
9093   # The option is referenced via a variable to avoid confusing sed.
9094   lt_compile=`echo "$ac_compile" | $SED \
9095   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097   -e 's:$: $lt_compiler_flag:'`
9098   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099   (eval "$lt_compile" 2>conftest.err)
9100   ac_status=$?
9101   cat conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   if (exit $ac_status) && test -s "$ac_outfile"; then
9104     # The compiler can only warn and ignore the option if not recognized
9105     # So say no if there are warnings other than the usual output.
9106     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9107     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9108     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9109       lt_cv_prog_compiler_pic_works=yes
9110     fi
9111   fi
9112   $RM conftest*
9113
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9116$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9117
9118if test yes = "$lt_cv_prog_compiler_pic_works"; then
9119    case $lt_prog_compiler_pic in
9120     "" | " "*) ;;
9121     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9122     esac
9123else
9124    lt_prog_compiler_pic=
9125     lt_prog_compiler_can_build_shared=no
9126fi
9127
9128fi
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140#
9141# Check to make sure the static flag actually works.
9142#
9143wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9145$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9146if ${lt_cv_prog_compiler_static_works+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  lt_cv_prog_compiler_static_works=no
9150   save_LDFLAGS=$LDFLAGS
9151   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9152   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9153   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9154     # The linker can only warn and ignore the option if not recognized
9155     # So say no if there are warnings
9156     if test -s conftest.err; then
9157       # Append any errors to the config.log.
9158       cat conftest.err 1>&5
9159       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9160       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9161       if diff conftest.exp conftest.er2 >/dev/null; then
9162         lt_cv_prog_compiler_static_works=yes
9163       fi
9164     else
9165       lt_cv_prog_compiler_static_works=yes
9166     fi
9167   fi
9168   $RM -r conftest*
9169   LDFLAGS=$save_LDFLAGS
9170
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9173$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9174
9175if test yes = "$lt_cv_prog_compiler_static_works"; then
9176    :
9177else
9178    lt_prog_compiler_static=
9179fi
9180
9181
9182
9183
9184
9185
9186
9187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9188$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9189if ${lt_cv_prog_compiler_c_o+:} false; then :
9190  $as_echo_n "(cached) " >&6
9191else
9192  lt_cv_prog_compiler_c_o=no
9193   $RM -r conftest 2>/dev/null
9194   mkdir conftest
9195   cd conftest
9196   mkdir out
9197   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9198
9199   lt_compiler_flag="-o out/conftest2.$ac_objext"
9200   # Insert the option either (1) after the last *FLAGS variable, or
9201   # (2) before a word containing "conftest.", or (3) at the end.
9202   # Note that $ac_compile itself does not contain backslashes and begins
9203   # with a dollar sign (not a hyphen), so the echo should work correctly.
9204   lt_compile=`echo "$ac_compile" | $SED \
9205   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9207   -e 's:$: $lt_compiler_flag:'`
9208   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9209   (eval "$lt_compile" 2>out/conftest.err)
9210   ac_status=$?
9211   cat out/conftest.err >&5
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9214   then
9215     # The compiler can only warn and ignore the option if not recognized
9216     # So say no if there are warnings
9217     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9218     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9219     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9220       lt_cv_prog_compiler_c_o=yes
9221     fi
9222   fi
9223   chmod u+w . 2>&5
9224   $RM conftest*
9225   # SGI C++ compiler will create directory out/ii_files/ for
9226   # template instantiation
9227   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9228   $RM out/* && rmdir out
9229   cd ..
9230   $RM -r conftest
9231   $RM conftest*
9232
9233fi
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9235$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9236
9237
9238
9239
9240
9241
9242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9243$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9244if ${lt_cv_prog_compiler_c_o+:} false; then :
9245  $as_echo_n "(cached) " >&6
9246else
9247  lt_cv_prog_compiler_c_o=no
9248   $RM -r conftest 2>/dev/null
9249   mkdir conftest
9250   cd conftest
9251   mkdir out
9252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9253
9254   lt_compiler_flag="-o out/conftest2.$ac_objext"
9255   # Insert the option either (1) after the last *FLAGS variable, or
9256   # (2) before a word containing "conftest.", or (3) at the end.
9257   # Note that $ac_compile itself does not contain backslashes and begins
9258   # with a dollar sign (not a hyphen), so the echo should work correctly.
9259   lt_compile=`echo "$ac_compile" | $SED \
9260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9262   -e 's:$: $lt_compiler_flag:'`
9263   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9264   (eval "$lt_compile" 2>out/conftest.err)
9265   ac_status=$?
9266   cat out/conftest.err >&5
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9269   then
9270     # The compiler can only warn and ignore the option if not recognized
9271     # So say no if there are warnings
9272     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9273     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9274     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9275       lt_cv_prog_compiler_c_o=yes
9276     fi
9277   fi
9278   chmod u+w . 2>&5
9279   $RM conftest*
9280   # SGI C++ compiler will create directory out/ii_files/ for
9281   # template instantiation
9282   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9283   $RM out/* && rmdir out
9284   cd ..
9285   $RM -r conftest
9286   $RM conftest*
9287
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9290$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9291
9292
9293
9294
9295hard_links=nottested
9296if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9297  # do not overwrite the value of need_locks provided by the user
9298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9299$as_echo_n "checking if we can lock with hard links... " >&6; }
9300  hard_links=yes
9301  $RM conftest*
9302  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9303  touch conftest.a
9304  ln conftest.a conftest.b 2>&5 || hard_links=no
9305  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9307$as_echo "$hard_links" >&6; }
9308  if test no = "$hard_links"; then
9309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9310$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9311    need_locks=warn
9312  fi
9313else
9314  need_locks=no
9315fi
9316
9317
9318
9319
9320
9321
9322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9323$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9324
9325  runpath_var=
9326  allow_undefined_flag=
9327  always_export_symbols=no
9328  archive_cmds=
9329  archive_expsym_cmds=
9330  compiler_needs_object=no
9331  enable_shared_with_static_runtimes=no
9332  export_dynamic_flag_spec=
9333  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9334  hardcode_automatic=no
9335  hardcode_direct=no
9336  hardcode_direct_absolute=no
9337  hardcode_libdir_flag_spec=
9338  hardcode_libdir_separator=
9339  hardcode_minus_L=no
9340  hardcode_shlibpath_var=unsupported
9341  inherit_rpath=no
9342  link_all_deplibs=unknown
9343  module_cmds=
9344  module_expsym_cmds=
9345  old_archive_from_new_cmds=
9346  old_archive_from_expsyms_cmds=
9347  thread_safe_flag_spec=
9348  whole_archive_flag_spec=
9349  # include_expsyms should be a list of space-separated symbols to be *always*
9350  # included in the symbol list
9351  include_expsyms=
9352  # exclude_expsyms can be an extended regexp of symbols to exclude
9353  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9354  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9355  # as well as any symbol that contains 'd'.
9356  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9357  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9358  # platforms (ab)use it in PIC code, but their linkers get confused if
9359  # the symbol is explicitly referenced.  Since portable code cannot
9360  # rely on this symbol name, it's probably fine to never include it in
9361  # preloaded symbol tables.
9362  # Exclude shared library initialization/finalization symbols.
9363  extract_expsyms_cmds=
9364
9365  case $host_os in
9366  cygwin* | mingw* | pw32* | cegcc*)
9367    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9368    # When not using gcc, we currently assume that we are using
9369    # Microsoft Visual C++.
9370    if test yes != "$GCC"; then
9371      with_gnu_ld=no
9372    fi
9373    ;;
9374  interix*)
9375    # we just hope/assume this is gcc and not c89 (= MSVC++)
9376    with_gnu_ld=yes
9377    ;;
9378  openbsd* | bitrig*)
9379    with_gnu_ld=no
9380    ;;
9381  linux* | k*bsd*-gnu | gnu*)
9382    link_all_deplibs=no
9383    ;;
9384  esac
9385
9386  ld_shlibs=yes
9387
9388  # On some targets, GNU ld is compatible enough with the native linker
9389  # that we're better off using the native interface for both.
9390  lt_use_gnu_ld_interface=no
9391  if test yes = "$with_gnu_ld"; then
9392    case $host_os in
9393      aix*)
9394	# The AIX port of GNU ld has always aspired to compatibility
9395	# with the native linker.  However, as the warning in the GNU ld
9396	# block says, versions before 2.19.5* couldn't really create working
9397	# shared libraries, regardless of the interface used.
9398	case `$LD -v 2>&1` in
9399	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9400	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9401	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9402	  *)
9403	    lt_use_gnu_ld_interface=yes
9404	    ;;
9405	esac
9406	;;
9407      *)
9408	lt_use_gnu_ld_interface=yes
9409	;;
9410    esac
9411  fi
9412
9413  if test yes = "$lt_use_gnu_ld_interface"; then
9414    # If archive_cmds runs LD, not CC, wlarc should be empty
9415    wlarc='$wl'
9416
9417    # Set some defaults for GNU ld with shared library support. These
9418    # are reset later if shared libraries are not supported. Putting them
9419    # here allows them to be overridden if necessary.
9420    runpath_var=LD_RUN_PATH
9421    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9422    export_dynamic_flag_spec='$wl--export-dynamic'
9423    # ancient GNU ld didn't support --whole-archive et. al.
9424    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9425      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9426    else
9427      whole_archive_flag_spec=
9428    fi
9429    supports_anon_versioning=no
9430    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9431      *GNU\ gold*) supports_anon_versioning=yes ;;
9432      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9433      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9434      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9435      *\ 2.11.*) ;; # other 2.11 versions
9436      *) supports_anon_versioning=yes ;;
9437    esac
9438
9439    # See if GNU ld supports shared libraries.
9440    case $host_os in
9441    aix[3-9]*)
9442      # On AIX/PPC, the GNU linker is very broken
9443      if test ia64 != "$host_cpu"; then
9444	ld_shlibs=no
9445	cat <<_LT_EOF 1>&2
9446
9447*** Warning: the GNU linker, at least up to release 2.19, is reported
9448*** to be unable to reliably create shared libraries on AIX.
9449*** Therefore, libtool is disabling shared libraries support.  If you
9450*** really care for shared libraries, you may want to install binutils
9451*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9452*** You will then need to restart the configuration process.
9453
9454_LT_EOF
9455      fi
9456      ;;
9457
9458    amigaos*)
9459      case $host_cpu in
9460      powerpc)
9461            # see comment about AmigaOS4 .so support
9462            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9463            archive_expsym_cmds=''
9464        ;;
9465      m68k)
9466            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)'
9467            hardcode_libdir_flag_spec='-L$libdir'
9468            hardcode_minus_L=yes
9469        ;;
9470      esac
9471      ;;
9472
9473    beos*)
9474      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9475	allow_undefined_flag=unsupported
9476	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9477	# support --undefined.  This deserves some investigation.  FIXME
9478	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9479      else
9480	ld_shlibs=no
9481      fi
9482      ;;
9483
9484    cygwin* | mingw* | pw32* | cegcc*)
9485      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9486      # as there is no search path for DLLs.
9487      hardcode_libdir_flag_spec='-L$libdir'
9488      export_dynamic_flag_spec='$wl--export-all-symbols'
9489      allow_undefined_flag=unsupported
9490      always_export_symbols=no
9491      enable_shared_with_static_runtimes=yes
9492      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'
9493      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9494
9495      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9496        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9497	# If the export-symbols file already is a .def file, use it as
9498	# is; otherwise, prepend EXPORTS...
9499	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9500          cp $export_symbols $output_objdir/$soname.def;
9501        else
9502          echo EXPORTS > $output_objdir/$soname.def;
9503          cat $export_symbols >> $output_objdir/$soname.def;
9504        fi~
9505        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9506      else
9507	ld_shlibs=no
9508      fi
9509      ;;
9510
9511    haiku*)
9512      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9513      link_all_deplibs=yes
9514      ;;
9515
9516    os2*)
9517      hardcode_libdir_flag_spec='-L$libdir'
9518      hardcode_minus_L=yes
9519      allow_undefined_flag=unsupported
9520      shrext_cmds=.dll
9521      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9522	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9523	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9524	$ECHO EXPORTS >> $output_objdir/$libname.def~
9525	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9526	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9527	emximp -o $lib $output_objdir/$libname.def'
9528      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9529	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9530	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9531	$ECHO EXPORTS >> $output_objdir/$libname.def~
9532	prefix_cmds="$SED"~
9533	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9534	  prefix_cmds="$prefix_cmds -e 1d";
9535	fi~
9536	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9537	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9538	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9539	emximp -o $lib $output_objdir/$libname.def'
9540      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9541      enable_shared_with_static_runtimes=yes
9542      ;;
9543
9544    interix[3-9]*)
9545      hardcode_direct=no
9546      hardcode_shlibpath_var=no
9547      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9548      export_dynamic_flag_spec='$wl-E'
9549      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9550      # Instead, shared libraries are loaded at an image base (0x10000000 by
9551      # default) and relocated if they conflict, which is a slow very memory
9552      # consuming and fragmenting process.  To avoid this, we pick a random,
9553      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9554      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9555      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9556      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'
9557      ;;
9558
9559    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9560      tmp_diet=no
9561      if test linux-dietlibc = "$host_os"; then
9562	case $cc_basename in
9563	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9564	esac
9565      fi
9566      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9567	 && test no = "$tmp_diet"
9568      then
9569	tmp_addflag=' $pic_flag'
9570	tmp_sharedflag='-shared'
9571	case $cc_basename,$host_cpu in
9572        pgcc*)				# Portland Group C compiler
9573	  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'
9574	  tmp_addflag=' $pic_flag'
9575	  ;;
9576	pgf77* | pgf90* | pgf95* | pgfortran*)
9577					# Portland Group f77 and f90 compilers
9578	  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'
9579	  tmp_addflag=' $pic_flag -Mnomain' ;;
9580	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9581	  tmp_addflag=' -i_dynamic' ;;
9582	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9583	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9584	ifc* | ifort*)			# Intel Fortran compiler
9585	  tmp_addflag=' -nofor_main' ;;
9586	lf95*)				# Lahey Fortran 8.1
9587	  whole_archive_flag_spec=
9588	  tmp_sharedflag='--shared' ;;
9589        nagfor*)                        # NAGFOR 5.3
9590          tmp_sharedflag='-Wl,-shared' ;;
9591	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9592	  tmp_sharedflag='-qmkshrobj'
9593	  tmp_addflag= ;;
9594	nvcc*)	# Cuda Compiler Driver 2.2
9595	  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'
9596	  compiler_needs_object=yes
9597	  ;;
9598	esac
9599	case `$CC -V 2>&1 | sed 5q` in
9600	*Sun\ C*)			# Sun C 5.9
9601	  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'
9602	  compiler_needs_object=yes
9603	  tmp_sharedflag='-G' ;;
9604	*Sun\ F*)			# Sun Fortran 8.3
9605	  tmp_sharedflag='-G' ;;
9606	esac
9607	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9608
9609        if test yes = "$supports_anon_versioning"; then
9610          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9611            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9612            echo "local: *; };" >> $output_objdir/$libname.ver~
9613            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9614        fi
9615
9616	case $cc_basename in
9617	tcc*)
9618	  export_dynamic_flag_spec='-rdynamic'
9619	  ;;
9620	xlf* | bgf* | bgxlf* | mpixlf*)
9621	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9622	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9623	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9624	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9625	  if test yes = "$supports_anon_versioning"; then
9626	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9627              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9628              echo "local: *; };" >> $output_objdir/$libname.ver~
9629              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9630	  fi
9631	  ;;
9632	esac
9633      else
9634        ld_shlibs=no
9635      fi
9636      ;;
9637
9638    netbsd* | netbsdelf*-gnu)
9639      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9640	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9641	wlarc=
9642      else
9643	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9644	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9645      fi
9646      ;;
9647
9648    solaris*)
9649      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9650	ld_shlibs=no
9651	cat <<_LT_EOF 1>&2
9652
9653*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9654*** create shared libraries on Solaris systems.  Therefore, libtool
9655*** is disabling shared libraries support.  We urge you to upgrade GNU
9656*** binutils to release 2.9.1 or newer.  Another option is to modify
9657*** your PATH or compiler configuration so that the native linker is
9658*** used, and then restart.
9659
9660_LT_EOF
9661      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9662	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9663	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9664      else
9665	ld_shlibs=no
9666      fi
9667      ;;
9668
9669    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9670      case `$LD -v 2>&1` in
9671        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9672	ld_shlibs=no
9673	cat <<_LT_EOF 1>&2
9674
9675*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9676*** reliably create shared libraries on SCO systems.  Therefore, libtool
9677*** is disabling shared libraries support.  We urge you to upgrade GNU
9678*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9679*** your PATH or compiler configuration so that the native linker is
9680*** used, and then restart.
9681
9682_LT_EOF
9683	;;
9684	*)
9685	  # For security reasons, it is highly recommended that you always
9686	  # use absolute paths for naming shared libraries, and exclude the
9687	  # DT_RUNPATH tag from executables and libraries.  But doing so
9688	  # requires that you compile everything twice, which is a pain.
9689	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9690	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9691	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9692	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9693	  else
9694	    ld_shlibs=no
9695	  fi
9696	;;
9697      esac
9698      ;;
9699
9700    sunos4*)
9701      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9702      wlarc=
9703      hardcode_direct=yes
9704      hardcode_shlibpath_var=no
9705      ;;
9706
9707    *)
9708      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9709	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9710	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9711      else
9712	ld_shlibs=no
9713      fi
9714      ;;
9715    esac
9716
9717    if test no = "$ld_shlibs"; then
9718      runpath_var=
9719      hardcode_libdir_flag_spec=
9720      export_dynamic_flag_spec=
9721      whole_archive_flag_spec=
9722    fi
9723  else
9724    # PORTME fill in a description of your system's linker (not GNU ld)
9725    case $host_os in
9726    aix3*)
9727      allow_undefined_flag=unsupported
9728      always_export_symbols=yes
9729      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'
9730      # Note: this linker hardcodes the directories in LIBPATH if there
9731      # are no directories specified by -L.
9732      hardcode_minus_L=yes
9733      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9734	# Neither direct hardcoding nor static linking is supported with a
9735	# broken collect2.
9736	hardcode_direct=unsupported
9737      fi
9738      ;;
9739
9740    aix[4-9]*)
9741      if test ia64 = "$host_cpu"; then
9742	# On IA64, the linker does run time linking by default, so we don't
9743	# have to do anything special.
9744	aix_use_runtimelinking=no
9745	exp_sym_flag='-Bexport'
9746	no_entry_flag=
9747      else
9748	# If we're using GNU nm, then we don't want the "-C" option.
9749	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9750	# Without the "-l" option, or with the "-B" option, AIX nm treats
9751	# weak defined symbols like other global defined symbols, whereas
9752	# GNU nm marks them as "W".
9753	# While the 'weak' keyword is ignored in the Export File, we need
9754	# it in the Import File for the 'aix-soname' feature, so we have
9755	# to replace the "-B" option with "-P" for AIX nm.
9756	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9757	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9758	else
9759	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9760	fi
9761	aix_use_runtimelinking=no
9762
9763	# Test if we are trying to use run time linking or normal
9764	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9765	# have runtime linking enabled, and use it for executables.
9766	# For shared libraries, we enable/disable runtime linking
9767	# depending on the kind of the shared library created -
9768	# when "with_aix_soname,aix_use_runtimelinking" is:
9769	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9770	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9771	#            lib.a           static archive
9772	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9773	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9774	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9775	#            lib.a(lib.so.V) shared, rtl:no
9776	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9777	#            lib.a           static archive
9778	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9779	  for ld_flag in $LDFLAGS; do
9780	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9781	    aix_use_runtimelinking=yes
9782	    break
9783	  fi
9784	  done
9785	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9786	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9787	    # so we don't have lib.a shared libs to link our executables.
9788	    # We have to force runtime linking in this case.
9789	    aix_use_runtimelinking=yes
9790	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9791	  fi
9792	  ;;
9793	esac
9794
9795	exp_sym_flag='-bexport'
9796	no_entry_flag='-bnoentry'
9797      fi
9798
9799      # When large executables or shared objects are built, AIX ld can
9800      # have problems creating the table of contents.  If linking a library
9801      # or program results in "error TOC overflow" add -mminimal-toc to
9802      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9803      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9804
9805      archive_cmds=''
9806      hardcode_direct=yes
9807      hardcode_direct_absolute=yes
9808      hardcode_libdir_separator=':'
9809      link_all_deplibs=yes
9810      file_list_spec='$wl-f,'
9811      case $with_aix_soname,$aix_use_runtimelinking in
9812      aix,*) ;; # traditional, no import file
9813      svr4,* | *,yes) # use import file
9814	# The Import File defines what to hardcode.
9815	hardcode_direct=no
9816	hardcode_direct_absolute=no
9817	;;
9818      esac
9819
9820      if test yes = "$GCC"; then
9821	case $host_os in aix4.[012]|aix4.[012].*)
9822	# We only want to do this on AIX 4.2 and lower, the check
9823	# below for broken collect2 doesn't work under 4.3+
9824	  collect2name=`$CC -print-prog-name=collect2`
9825	  if test -f "$collect2name" &&
9826	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9827	  then
9828	  # We have reworked collect2
9829	  :
9830	  else
9831	  # We have old collect2
9832	  hardcode_direct=unsupported
9833	  # It fails to find uninstalled libraries when the uninstalled
9834	  # path is not listed in the libpath.  Setting hardcode_minus_L
9835	  # to unsupported forces relinking
9836	  hardcode_minus_L=yes
9837	  hardcode_libdir_flag_spec='-L$libdir'
9838	  hardcode_libdir_separator=
9839	  fi
9840	  ;;
9841	esac
9842	shared_flag='-shared'
9843	if test yes = "$aix_use_runtimelinking"; then
9844	  shared_flag="$shared_flag "'$wl-G'
9845	fi
9846	# Need to ensure runtime linking is disabled for the traditional
9847	# shared library, or the linker may eventually find shared libraries
9848	# /with/ Import File - we do not want to mix them.
9849	shared_flag_aix='-shared'
9850	shared_flag_svr4='-shared $wl-G'
9851      else
9852	# not using gcc
9853	if test ia64 = "$host_cpu"; then
9854	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9855	# chokes on -Wl,-G. The following line is correct:
9856	  shared_flag='-G'
9857	else
9858	  if test yes = "$aix_use_runtimelinking"; then
9859	    shared_flag='$wl-G'
9860	  else
9861	    shared_flag='$wl-bM:SRE'
9862	  fi
9863	  shared_flag_aix='$wl-bM:SRE'
9864	  shared_flag_svr4='$wl-G'
9865	fi
9866      fi
9867
9868      export_dynamic_flag_spec='$wl-bexpall'
9869      # It seems that -bexpall does not export symbols beginning with
9870      # underscore (_), so it is better to generate a list of symbols to export.
9871      always_export_symbols=yes
9872      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9873	# Warning - without using the other runtime loading flags (-brtl),
9874	# -berok will link without error, but may produce a broken library.
9875	allow_undefined_flag='-berok'
9876        # Determine the default libpath from the value encoded in an
9877        # empty executable.
9878        if test set = "${lt_cv_aix_libpath+set}"; then
9879  aix_libpath=$lt_cv_aix_libpath
9880else
9881  if ${lt_cv_aix_libpath_+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h.  */
9886
9887int
9888main ()
9889{
9890
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895if ac_fn_c_try_link "$LINENO"; then :
9896
9897  lt_aix_libpath_sed='
9898      /Import File Strings/,/^$/ {
9899	  /^0/ {
9900	      s/^0  *\([^ ]*\) *$/\1/
9901	      p
9902	  }
9903      }'
9904  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905  # Check for a 64-bit object if we didn't find anything.
9906  if test -z "$lt_cv_aix_libpath_"; then
9907    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908  fi
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911    conftest$ac_exeext conftest.$ac_ext
9912  if test -z "$lt_cv_aix_libpath_"; then
9913    lt_cv_aix_libpath_=/usr/lib:/lib
9914  fi
9915
9916fi
9917
9918  aix_libpath=$lt_cv_aix_libpath_
9919fi
9920
9921        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9922        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9923      else
9924	if test ia64 = "$host_cpu"; then
9925	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9926	  allow_undefined_flag="-z nodefs"
9927	  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"
9928	else
9929	 # Determine the default libpath from the value encoded in an
9930	 # empty executable.
9931	 if test set = "${lt_cv_aix_libpath+set}"; then
9932  aix_libpath=$lt_cv_aix_libpath
9933else
9934  if ${lt_cv_aix_libpath_+:} false; then :
9935  $as_echo_n "(cached) " >&6
9936else
9937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h.  */
9939
9940int
9941main ()
9942{
9943
9944  ;
9945  return 0;
9946}
9947_ACEOF
9948if ac_fn_c_try_link "$LINENO"; then :
9949
9950  lt_aix_libpath_sed='
9951      /Import File Strings/,/^$/ {
9952	  /^0/ {
9953	      s/^0  *\([^ ]*\) *$/\1/
9954	      p
9955	  }
9956      }'
9957  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9958  # Check for a 64-bit object if we didn't find anything.
9959  if test -z "$lt_cv_aix_libpath_"; then
9960    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961  fi
9962fi
9963rm -f core conftest.err conftest.$ac_objext \
9964    conftest$ac_exeext conftest.$ac_ext
9965  if test -z "$lt_cv_aix_libpath_"; then
9966    lt_cv_aix_libpath_=/usr/lib:/lib
9967  fi
9968
9969fi
9970
9971  aix_libpath=$lt_cv_aix_libpath_
9972fi
9973
9974	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9975	  # Warning - without using the other run time loading flags,
9976	  # -berok will link without error, but may produce a broken library.
9977	  no_undefined_flag=' $wl-bernotok'
9978	  allow_undefined_flag=' $wl-berok'
9979	  if test yes = "$with_gnu_ld"; then
9980	    # We only use this code for GNU lds that support --whole-archive.
9981	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9982	  else
9983	    # Exported symbols can be pulled into shared objects from archives
9984	    whole_archive_flag_spec='$convenience'
9985	  fi
9986	  archive_cmds_need_lc=yes
9987	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9988	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9989	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9990	  if test svr4 != "$with_aix_soname"; then
9991	    # This is similar to how AIX traditionally builds its shared libraries.
9992	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9993	  fi
9994	  if test aix != "$with_aix_soname"; then
9995	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9996	  else
9997	    # used by -dlpreopen to get the symbols
9998	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9999	  fi
10000	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10001	fi
10002      fi
10003      ;;
10004
10005    amigaos*)
10006      case $host_cpu in
10007      powerpc)
10008            # see comment about AmigaOS4 .so support
10009            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10010            archive_expsym_cmds=''
10011        ;;
10012      m68k)
10013            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)'
10014            hardcode_libdir_flag_spec='-L$libdir'
10015            hardcode_minus_L=yes
10016        ;;
10017      esac
10018      ;;
10019
10020    bsdi[45]*)
10021      export_dynamic_flag_spec=-rdynamic
10022      ;;
10023
10024    cygwin* | mingw* | pw32* | cegcc*)
10025      # When not using gcc, we currently assume that we are using
10026      # Microsoft Visual C++.
10027      # hardcode_libdir_flag_spec is actually meaningless, as there is
10028      # no search path for DLLs.
10029      case $cc_basename in
10030      cl*)
10031	# Native MSVC
10032	hardcode_libdir_flag_spec=' '
10033	allow_undefined_flag=unsupported
10034	always_export_symbols=yes
10035	file_list_spec='@'
10036	# Tell ltmain to make .lib files, not .a files.
10037	libext=lib
10038	# Tell ltmain to make .dll files, not .so files.
10039	shrext_cmds=.dll
10040	# FIXME: Setting linknames here is a bad hack.
10041	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10042	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10043            cp "$export_symbols" "$output_objdir/$soname.def";
10044            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10045          else
10046            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10047          fi~
10048          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10049          linknames='
10050	# The linker will not automatically build a static lib if we build a DLL.
10051	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10052	enable_shared_with_static_runtimes=yes
10053	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10054	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10055	# Don't use ranlib
10056	old_postinstall_cmds='chmod 644 $oldlib'
10057	postlink_cmds='lt_outputfile="@OUTPUT@"~
10058          lt_tool_outputfile="@TOOL_OUTPUT@"~
10059          case $lt_outputfile in
10060            *.exe|*.EXE) ;;
10061            *)
10062              lt_outputfile=$lt_outputfile.exe
10063              lt_tool_outputfile=$lt_tool_outputfile.exe
10064              ;;
10065          esac~
10066          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10067            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10068            $RM "$lt_outputfile.manifest";
10069          fi'
10070	;;
10071      *)
10072	# Assume MSVC wrapper
10073	hardcode_libdir_flag_spec=' '
10074	allow_undefined_flag=unsupported
10075	# Tell ltmain to make .lib files, not .a files.
10076	libext=lib
10077	# Tell ltmain to make .dll files, not .so files.
10078	shrext_cmds=.dll
10079	# FIXME: Setting linknames here is a bad hack.
10080	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10081	# The linker will automatically build a .lib file if we build a DLL.
10082	old_archive_from_new_cmds='true'
10083	# FIXME: Should let the user specify the lib program.
10084	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10085	enable_shared_with_static_runtimes=yes
10086	;;
10087      esac
10088      ;;
10089
10090    darwin* | rhapsody*)
10091
10092
10093  archive_cmds_need_lc=no
10094  hardcode_direct=no
10095  hardcode_automatic=yes
10096  hardcode_shlibpath_var=unsupported
10097  if test yes = "$lt_cv_ld_force_load"; then
10098    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\"`'
10099
10100  else
10101    whole_archive_flag_spec=''
10102  fi
10103  link_all_deplibs=yes
10104  allow_undefined_flag=$_lt_dar_allow_undefined
10105  case $cc_basename in
10106     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10107     *) _lt_dar_can_shared=$GCC ;;
10108  esac
10109  if test yes = "$_lt_dar_can_shared"; then
10110    output_verbose_link_cmd=func_echo_all
10111    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10112    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10113    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"
10114    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"
10115
10116  else
10117  ld_shlibs=no
10118  fi
10119
10120      ;;
10121
10122    dgux*)
10123      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124      hardcode_libdir_flag_spec='-L$libdir'
10125      hardcode_shlibpath_var=no
10126      ;;
10127
10128    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10129    # support.  Future versions do this automatically, but an explicit c++rt0.o
10130    # does not break anything, and helps significantly (at the cost of a little
10131    # extra space).
10132    freebsd2.2*)
10133      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10134      hardcode_libdir_flag_spec='-R$libdir'
10135      hardcode_direct=yes
10136      hardcode_shlibpath_var=no
10137      ;;
10138
10139    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10140    freebsd2.*)
10141      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10142      hardcode_direct=yes
10143      hardcode_minus_L=yes
10144      hardcode_shlibpath_var=no
10145      ;;
10146
10147    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10148    freebsd* | dragonfly*)
10149      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150      hardcode_libdir_flag_spec='-R$libdir'
10151      hardcode_direct=yes
10152      hardcode_shlibpath_var=no
10153      ;;
10154
10155    hpux9*)
10156      if test yes = "$GCC"; then
10157	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10158      else
10159	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10160      fi
10161      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10162      hardcode_libdir_separator=:
10163      hardcode_direct=yes
10164
10165      # hardcode_minus_L: Not really in the search PATH,
10166      # but as the default location of the library.
10167      hardcode_minus_L=yes
10168      export_dynamic_flag_spec='$wl-E'
10169      ;;
10170
10171    hpux10*)
10172      if test yes,no = "$GCC,$with_gnu_ld"; then
10173	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10174      else
10175	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10176      fi
10177      if test no = "$with_gnu_ld"; then
10178	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10179	hardcode_libdir_separator=:
10180	hardcode_direct=yes
10181	hardcode_direct_absolute=yes
10182	export_dynamic_flag_spec='$wl-E'
10183	# hardcode_minus_L: Not really in the search PATH,
10184	# but as the default location of the library.
10185	hardcode_minus_L=yes
10186      fi
10187      ;;
10188
10189    hpux11*)
10190      if test yes,no = "$GCC,$with_gnu_ld"; then
10191	case $host_cpu in
10192	hppa*64*)
10193	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10194	  ;;
10195	ia64*)
10196	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10197	  ;;
10198	*)
10199	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200	  ;;
10201	esac
10202      else
10203	case $host_cpu in
10204	hppa*64*)
10205	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10206	  ;;
10207	ia64*)
10208	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10209	  ;;
10210	*)
10211
10212	  # Older versions of the 11.00 compiler do not understand -b yet
10213	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10214	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10215$as_echo_n "checking if $CC understands -b... " >&6; }
10216if ${lt_cv_prog_compiler__b+:} false; then :
10217  $as_echo_n "(cached) " >&6
10218else
10219  lt_cv_prog_compiler__b=no
10220   save_LDFLAGS=$LDFLAGS
10221   LDFLAGS="$LDFLAGS -b"
10222   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10224     # The linker can only warn and ignore the option if not recognized
10225     # So say no if there are warnings
10226     if test -s conftest.err; then
10227       # Append any errors to the config.log.
10228       cat conftest.err 1>&5
10229       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10231       if diff conftest.exp conftest.er2 >/dev/null; then
10232         lt_cv_prog_compiler__b=yes
10233       fi
10234     else
10235       lt_cv_prog_compiler__b=yes
10236     fi
10237   fi
10238   $RM -r conftest*
10239   LDFLAGS=$save_LDFLAGS
10240
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10243$as_echo "$lt_cv_prog_compiler__b" >&6; }
10244
10245if test yes = "$lt_cv_prog_compiler__b"; then
10246    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10247else
10248    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10249fi
10250
10251	  ;;
10252	esac
10253      fi
10254      if test no = "$with_gnu_ld"; then
10255	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10256	hardcode_libdir_separator=:
10257
10258	case $host_cpu in
10259	hppa*64*|ia64*)
10260	  hardcode_direct=no
10261	  hardcode_shlibpath_var=no
10262	  ;;
10263	*)
10264	  hardcode_direct=yes
10265	  hardcode_direct_absolute=yes
10266	  export_dynamic_flag_spec='$wl-E'
10267
10268	  # hardcode_minus_L: Not really in the search PATH,
10269	  # but as the default location of the library.
10270	  hardcode_minus_L=yes
10271	  ;;
10272	esac
10273      fi
10274      ;;
10275
10276    irix5* | irix6* | nonstopux*)
10277      if test yes = "$GCC"; then
10278	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'
10279	# Try to use the -exported_symbol ld option, if it does not
10280	# work, assume that -exports_file does not work either and
10281	# implicitly export all symbols.
10282	# This should be the same for all languages, so no per-tag cache variable.
10283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10284$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10285if ${lt_cv_irix_exported_symbol+:} false; then :
10286  $as_echo_n "(cached) " >&6
10287else
10288  save_LDFLAGS=$LDFLAGS
10289	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10290	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h.  */
10292int foo (void) { return 0; }
10293_ACEOF
10294if ac_fn_c_try_link "$LINENO"; then :
10295  lt_cv_irix_exported_symbol=yes
10296else
10297  lt_cv_irix_exported_symbol=no
10298fi
10299rm -f core conftest.err conftest.$ac_objext \
10300    conftest$ac_exeext conftest.$ac_ext
10301           LDFLAGS=$save_LDFLAGS
10302fi
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10304$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10305	if test yes = "$lt_cv_irix_exported_symbol"; then
10306          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'
10307	fi
10308	link_all_deplibs=no
10309      else
10310	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'
10311	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'
10312      fi
10313      archive_cmds_need_lc='no'
10314      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10315      hardcode_libdir_separator=:
10316      inherit_rpath=yes
10317      link_all_deplibs=yes
10318      ;;
10319
10320    linux*)
10321      case $cc_basename in
10322      tcc*)
10323	# Fabrice Bellard et al's Tiny C Compiler
10324	ld_shlibs=yes
10325	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10326	;;
10327      esac
10328      ;;
10329
10330    netbsd* | netbsdelf*-gnu)
10331      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10332	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10333      else
10334	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10335      fi
10336      hardcode_libdir_flag_spec='-R$libdir'
10337      hardcode_direct=yes
10338      hardcode_shlibpath_var=no
10339      ;;
10340
10341    newsos6)
10342      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343      hardcode_direct=yes
10344      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10345      hardcode_libdir_separator=:
10346      hardcode_shlibpath_var=no
10347      ;;
10348
10349    *nto* | *qnx*)
10350      ;;
10351
10352    openbsd* | bitrig*)
10353      if test -f /usr/libexec/ld.so; then
10354	hardcode_direct=yes
10355	hardcode_shlibpath_var=no
10356	hardcode_direct_absolute=yes
10357	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10358	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10359	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10360	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10361	  export_dynamic_flag_spec='$wl-E'
10362	else
10363	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10364	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10365	fi
10366      else
10367	ld_shlibs=no
10368      fi
10369      ;;
10370
10371    os2*)
10372      hardcode_libdir_flag_spec='-L$libdir'
10373      hardcode_minus_L=yes
10374      allow_undefined_flag=unsupported
10375      shrext_cmds=.dll
10376      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10377	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10378	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10379	$ECHO EXPORTS >> $output_objdir/$libname.def~
10380	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10381	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10382	emximp -o $lib $output_objdir/$libname.def'
10383      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10384	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10385	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10386	$ECHO EXPORTS >> $output_objdir/$libname.def~
10387	prefix_cmds="$SED"~
10388	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10389	  prefix_cmds="$prefix_cmds -e 1d";
10390	fi~
10391	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10392	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10393	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10394	emximp -o $lib $output_objdir/$libname.def'
10395      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10396      enable_shared_with_static_runtimes=yes
10397      ;;
10398
10399    osf3*)
10400      if test yes = "$GCC"; then
10401	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10402	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'
10403      else
10404	allow_undefined_flag=' -expect_unresolved \*'
10405	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'
10406      fi
10407      archive_cmds_need_lc='no'
10408      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10409      hardcode_libdir_separator=:
10410      ;;
10411
10412    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10413      if test yes = "$GCC"; then
10414	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10415	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'
10416	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10417      else
10418	allow_undefined_flag=' -expect_unresolved \*'
10419	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'
10420	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~
10421          $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'
10422
10423	# Both c and cxx compiler support -rpath directly
10424	hardcode_libdir_flag_spec='-rpath $libdir'
10425      fi
10426      archive_cmds_need_lc='no'
10427      hardcode_libdir_separator=:
10428      ;;
10429
10430    solaris*)
10431      no_undefined_flag=' -z defs'
10432      if test yes = "$GCC"; then
10433	wlarc='$wl'
10434	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10435	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10436          $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'
10437      else
10438	case `$CC -V 2>&1` in
10439	*"Compilers 5.0"*)
10440	  wlarc=''
10441	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10442	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10443            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10444	  ;;
10445	*)
10446	  wlarc='$wl'
10447	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10448	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10449            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10450	  ;;
10451	esac
10452      fi
10453      hardcode_libdir_flag_spec='-R$libdir'
10454      hardcode_shlibpath_var=no
10455      case $host_os in
10456      solaris2.[0-5] | solaris2.[0-5].*) ;;
10457      *)
10458	# The compiler driver will combine and reorder linker options,
10459	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10460	# but is careful enough not to reorder.
10461	# Supported since Solaris 2.6 (maybe 2.5.1?)
10462	if test yes = "$GCC"; then
10463	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10464	else
10465	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10466	fi
10467	;;
10468      esac
10469      link_all_deplibs=yes
10470      ;;
10471
10472    sunos4*)
10473      if test sequent = "$host_vendor"; then
10474	# Use $CC to link under sequent, because it throws in some extra .o
10475	# files that make .init and .fini sections work.
10476	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10477      else
10478	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10479      fi
10480      hardcode_libdir_flag_spec='-L$libdir'
10481      hardcode_direct=yes
10482      hardcode_minus_L=yes
10483      hardcode_shlibpath_var=no
10484      ;;
10485
10486    sysv4)
10487      case $host_vendor in
10488	sni)
10489	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490	  hardcode_direct=yes # is this really true???
10491	;;
10492	siemens)
10493	  ## LD is ld it makes a PLAMLIB
10494	  ## CC just makes a GrossModule.
10495	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10496	  reload_cmds='$CC -r -o $output$reload_objs'
10497	  hardcode_direct=no
10498        ;;
10499	motorola)
10500	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10502	;;
10503      esac
10504      runpath_var='LD_RUN_PATH'
10505      hardcode_shlibpath_var=no
10506      ;;
10507
10508    sysv4.3*)
10509      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510      hardcode_shlibpath_var=no
10511      export_dynamic_flag_spec='-Bexport'
10512      ;;
10513
10514    sysv4*MP*)
10515      if test -d /usr/nec; then
10516	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517	hardcode_shlibpath_var=no
10518	runpath_var=LD_RUN_PATH
10519	hardcode_runpath_var=yes
10520	ld_shlibs=yes
10521      fi
10522      ;;
10523
10524    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10525      no_undefined_flag='$wl-z,text'
10526      archive_cmds_need_lc=no
10527      hardcode_shlibpath_var=no
10528      runpath_var='LD_RUN_PATH'
10529
10530      if test yes = "$GCC"; then
10531	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10533      else
10534	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10536      fi
10537      ;;
10538
10539    sysv5* | sco3.2v5* | sco5v6*)
10540      # Note: We CANNOT use -z defs as we might desire, because we do not
10541      # link with -lc, and that would cause any symbols used from libc to
10542      # always be unresolved, which means just about no library would
10543      # ever link correctly.  If we're not using GNU ld we use -z text
10544      # though, which does catch some bad symbols but isn't as heavy-handed
10545      # as -z defs.
10546      no_undefined_flag='$wl-z,text'
10547      allow_undefined_flag='$wl-z,nodefs'
10548      archive_cmds_need_lc=no
10549      hardcode_shlibpath_var=no
10550      hardcode_libdir_flag_spec='$wl-R,$libdir'
10551      hardcode_libdir_separator=':'
10552      link_all_deplibs=yes
10553      export_dynamic_flag_spec='$wl-Bexport'
10554      runpath_var='LD_RUN_PATH'
10555
10556      if test yes = "$GCC"; then
10557	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559      else
10560	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562      fi
10563      ;;
10564
10565    uts4*)
10566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567      hardcode_libdir_flag_spec='-L$libdir'
10568      hardcode_shlibpath_var=no
10569      ;;
10570
10571    *)
10572      ld_shlibs=no
10573      ;;
10574    esac
10575
10576    if test sni = "$host_vendor"; then
10577      case $host in
10578      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10579	export_dynamic_flag_spec='$wl-Blargedynsym'
10580	;;
10581      esac
10582    fi
10583  fi
10584
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10586$as_echo "$ld_shlibs" >&6; }
10587test no = "$ld_shlibs" && can_build_shared=no
10588
10589with_gnu_ld=$with_gnu_ld
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605#
10606# Do we need to explicitly link libc?
10607#
10608case "x$archive_cmds_need_lc" in
10609x|xyes)
10610  # Assume -lc should be added
10611  archive_cmds_need_lc=yes
10612
10613  if test yes,yes = "$GCC,$enable_shared"; then
10614    case $archive_cmds in
10615    *'~'*)
10616      # FIXME: we may have to deal with multi-command sequences.
10617      ;;
10618    '$CC '*)
10619      # Test whether the compiler implicitly links with -lc since on some
10620      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10621      # to ld, don't add -lc before -lgcc.
10622      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10623$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10624if ${lt_cv_archive_cmds_need_lc+:} false; then :
10625  $as_echo_n "(cached) " >&6
10626else
10627  $RM conftest*
10628	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629
10630	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10631  (eval $ac_compile) 2>&5
10632  ac_status=$?
10633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10634  test $ac_status = 0; } 2>conftest.err; then
10635	  soname=conftest
10636	  lib=conftest
10637	  libobjs=conftest.$ac_objext
10638	  deplibs=
10639	  wl=$lt_prog_compiler_wl
10640	  pic_flag=$lt_prog_compiler_pic
10641	  compiler_flags=-v
10642	  linker_flags=-v
10643	  verstring=
10644	  output_objdir=.
10645	  libname=conftest
10646	  lt_save_allow_undefined_flag=$allow_undefined_flag
10647	  allow_undefined_flag=
10648	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10649  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10650  ac_status=$?
10651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652  test $ac_status = 0; }
10653	  then
10654	    lt_cv_archive_cmds_need_lc=no
10655	  else
10656	    lt_cv_archive_cmds_need_lc=yes
10657	  fi
10658	  allow_undefined_flag=$lt_save_allow_undefined_flag
10659	else
10660	  cat conftest.err 1>&5
10661	fi
10662	$RM conftest*
10663
10664fi
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10666$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10667      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10668      ;;
10669    esac
10670  fi
10671  ;;
10672esac
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10826$as_echo_n "checking dynamic linker characteristics... " >&6; }
10827
10828if test yes = "$GCC"; then
10829  case $host_os in
10830    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10831    *) lt_awk_arg='/^libraries:/' ;;
10832  esac
10833  case $host_os in
10834    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10835    *) lt_sed_strip_eq='s|=/|/|g' ;;
10836  esac
10837  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10838  case $lt_search_path_spec in
10839  *\;*)
10840    # if the path contains ";" then we assume it to be the separator
10841    # otherwise default to the standard path separator (i.e. ":") - it is
10842    # assumed that no part of a normal pathname contains ";" but that should
10843    # okay in the real world where ";" in dirpaths is itself problematic.
10844    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10845    ;;
10846  *)
10847    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10848    ;;
10849  esac
10850  # Ok, now we have the path, separated by spaces, we can step through it
10851  # and add multilib dir if necessary...
10852  lt_tmp_lt_search_path_spec=
10853  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10854  # ...but if some path component already ends with the multilib dir we assume
10855  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10856  case "$lt_multi_os_dir; $lt_search_path_spec " in
10857  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10858    lt_multi_os_dir=
10859    ;;
10860  esac
10861  for lt_sys_path in $lt_search_path_spec; do
10862    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10863      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10864    elif test -n "$lt_multi_os_dir"; then
10865      test -d "$lt_sys_path" && \
10866	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10867    fi
10868  done
10869  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10870BEGIN {RS = " "; FS = "/|\n";} {
10871  lt_foo = "";
10872  lt_count = 0;
10873  for (lt_i = NF; lt_i > 0; lt_i--) {
10874    if ($lt_i != "" && $lt_i != ".") {
10875      if ($lt_i == "..") {
10876        lt_count++;
10877      } else {
10878        if (lt_count == 0) {
10879          lt_foo = "/" $lt_i lt_foo;
10880        } else {
10881          lt_count--;
10882        }
10883      }
10884    }
10885  }
10886  if (lt_foo != "") { lt_freq[lt_foo]++; }
10887  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10888}'`
10889  # AWK program above erroneously prepends '/' to C:/dos/paths
10890  # for these hosts.
10891  case $host_os in
10892    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10893      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10894  esac
10895  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10896else
10897  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10898fi
10899library_names_spec=
10900libname_spec='lib$name'
10901soname_spec=
10902shrext_cmds=.so
10903postinstall_cmds=
10904postuninstall_cmds=
10905finish_cmds=
10906finish_eval=
10907shlibpath_var=
10908shlibpath_overrides_runpath=unknown
10909version_type=none
10910dynamic_linker="$host_os ld.so"
10911sys_lib_dlsearch_path_spec="/lib /usr/lib"
10912need_lib_prefix=unknown
10913hardcode_into_libs=no
10914
10915# when you set need_version to no, make sure it does not cause -set_version
10916# flags to be left without arguments
10917need_version=unknown
10918
10919
10920
10921case $host_os in
10922aix3*)
10923  version_type=linux # correct to gnu/linux during the next big refactor
10924  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10925  shlibpath_var=LIBPATH
10926
10927  # AIX 3 has no versioning support, so we append a major version to the name.
10928  soname_spec='$libname$release$shared_ext$major'
10929  ;;
10930
10931aix[4-9]*)
10932  version_type=linux # correct to gnu/linux during the next big refactor
10933  need_lib_prefix=no
10934  need_version=no
10935  hardcode_into_libs=yes
10936  if test ia64 = "$host_cpu"; then
10937    # AIX 5 supports IA64
10938    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10939    shlibpath_var=LD_LIBRARY_PATH
10940  else
10941    # With GCC up to 2.95.x, collect2 would create an import file
10942    # for dependence libraries.  The import file would start with
10943    # the line '#! .'.  This would cause the generated library to
10944    # depend on '.', always an invalid library.  This was fixed in
10945    # development snapshots of GCC prior to 3.0.
10946    case $host_os in
10947      aix4 | aix4.[01] | aix4.[01].*)
10948      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10949	   echo ' yes '
10950	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10951	:
10952      else
10953	can_build_shared=no
10954      fi
10955      ;;
10956    esac
10957    # Using Import Files as archive members, it is possible to support
10958    # filename-based versioning of shared library archives on AIX. While
10959    # this would work for both with and without runtime linking, it will
10960    # prevent static linking of such archives. So we do filename-based
10961    # shared library versioning with .so extension only, which is used
10962    # when both runtime linking and shared linking is enabled.
10963    # Unfortunately, runtime linking may impact performance, so we do
10964    # not want this to be the default eventually. Also, we use the
10965    # versioned .so libs for executables only if there is the -brtl
10966    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10967    # To allow for filename-based versioning support, we need to create
10968    # libNAME.so.V as an archive file, containing:
10969    # *) an Import File, referring to the versioned filename of the
10970    #    archive as well as the shared archive member, telling the
10971    #    bitwidth (32 or 64) of that shared object, and providing the
10972    #    list of exported symbols of that shared object, eventually
10973    #    decorated with the 'weak' keyword
10974    # *) the shared object with the F_LOADONLY flag set, to really avoid
10975    #    it being seen by the linker.
10976    # At run time we better use the real file rather than another symlink,
10977    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10978
10979    case $with_aix_soname,$aix_use_runtimelinking in
10980    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10981    # soname into executable. Probably we can add versioning support to
10982    # collect2, so additional links can be useful in future.
10983    aix,yes) # traditional libtool
10984      dynamic_linker='AIX unversionable lib.so'
10985      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10986      # instead of lib<name>.a to let people know that these are not
10987      # typical AIX shared libraries.
10988      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10989      ;;
10990    aix,no) # traditional AIX only
10991      dynamic_linker='AIX lib.a(lib.so.V)'
10992      # We preserve .a as extension for shared libraries through AIX4.2
10993      # and later when we are not doing run time linking.
10994      library_names_spec='$libname$release.a $libname.a'
10995      soname_spec='$libname$release$shared_ext$major'
10996      ;;
10997    svr4,*) # full svr4 only
10998      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10999      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11000      # We do not specify a path in Import Files, so LIBPATH fires.
11001      shlibpath_overrides_runpath=yes
11002      ;;
11003    *,yes) # both, prefer svr4
11004      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11005      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11006      # unpreferred sharedlib libNAME.a needs extra handling
11007      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11008      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11009      # We do not specify a path in Import Files, so LIBPATH fires.
11010      shlibpath_overrides_runpath=yes
11011      ;;
11012    *,no) # both, prefer aix
11013      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11014      library_names_spec='$libname$release.a $libname.a'
11015      soname_spec='$libname$release$shared_ext$major'
11016      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11017      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11018      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11019      ;;
11020    esac
11021    shlibpath_var=LIBPATH
11022  fi
11023  ;;
11024
11025amigaos*)
11026  case $host_cpu in
11027  powerpc)
11028    # Since July 2007 AmigaOS4 officially supports .so libraries.
11029    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11030    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11031    ;;
11032  m68k)
11033    library_names_spec='$libname.ixlibrary $libname.a'
11034    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11035    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11036    ;;
11037  esac
11038  ;;
11039
11040beos*)
11041  library_names_spec='$libname$shared_ext'
11042  dynamic_linker="$host_os ld.so"
11043  shlibpath_var=LIBRARY_PATH
11044  ;;
11045
11046bsdi[45]*)
11047  version_type=linux # correct to gnu/linux during the next big refactor
11048  need_version=no
11049  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11050  soname_spec='$libname$release$shared_ext$major'
11051  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11052  shlibpath_var=LD_LIBRARY_PATH
11053  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11054  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11055  # the default ld.so.conf also contains /usr/contrib/lib and
11056  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11057  # libtool to hard-code these into programs
11058  ;;
11059
11060cygwin* | mingw* | pw32* | cegcc*)
11061  version_type=windows
11062  shrext_cmds=.dll
11063  need_version=no
11064  need_lib_prefix=no
11065
11066  case $GCC,$cc_basename in
11067  yes,*)
11068    # gcc
11069    library_names_spec='$libname.dll.a'
11070    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11071    postinstall_cmds='base_file=`basename \$file`~
11072      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11073      dldir=$destdir/`dirname \$dlpath`~
11074      test -d \$dldir || mkdir -p \$dldir~
11075      $install_prog $dir/$dlname \$dldir/$dlname~
11076      chmod a+x \$dldir/$dlname~
11077      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11078        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11079      fi'
11080    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11081      dlpath=$dir/\$dldll~
11082       $RM \$dlpath'
11083    shlibpath_overrides_runpath=yes
11084
11085    case $host_os in
11086    cygwin*)
11087      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11088      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11089
11090      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11091      ;;
11092    mingw* | cegcc*)
11093      # MinGW DLLs use traditional 'lib' prefix
11094      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11095      ;;
11096    pw32*)
11097      # pw32 DLLs use 'pw' prefix rather than 'lib'
11098      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11099      ;;
11100    esac
11101    dynamic_linker='Win32 ld.exe'
11102    ;;
11103
11104  *,cl*)
11105    # Native MSVC
11106    libname_spec='$name'
11107    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11108    library_names_spec='$libname.dll.lib'
11109
11110    case $build_os in
11111    mingw*)
11112      sys_lib_search_path_spec=
11113      lt_save_ifs=$IFS
11114      IFS=';'
11115      for lt_path in $LIB
11116      do
11117        IFS=$lt_save_ifs
11118        # Let DOS variable expansion print the short 8.3 style file name.
11119        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11120        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11121      done
11122      IFS=$lt_save_ifs
11123      # Convert to MSYS style.
11124      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11125      ;;
11126    cygwin*)
11127      # Convert to unix form, then to dos form, then back to unix form
11128      # but this time dos style (no spaces!) so that the unix form looks
11129      # like /cygdrive/c/PROGRA~1:/cygdr...
11130      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11131      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11132      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11133      ;;
11134    *)
11135      sys_lib_search_path_spec=$LIB
11136      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11137        # It is most probably a Windows format PATH.
11138        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11139      else
11140        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11141      fi
11142      # FIXME: find the short name or the path components, as spaces are
11143      # common. (e.g. "Program Files" -> "PROGRA~1")
11144      ;;
11145    esac
11146
11147    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11148    postinstall_cmds='base_file=`basename \$file`~
11149      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11150      dldir=$destdir/`dirname \$dlpath`~
11151      test -d \$dldir || mkdir -p \$dldir~
11152      $install_prog $dir/$dlname \$dldir/$dlname'
11153    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11154      dlpath=$dir/\$dldll~
11155       $RM \$dlpath'
11156    shlibpath_overrides_runpath=yes
11157    dynamic_linker='Win32 link.exe'
11158    ;;
11159
11160  *)
11161    # Assume MSVC wrapper
11162    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11163    dynamic_linker='Win32 ld.exe'
11164    ;;
11165  esac
11166  # FIXME: first we should search . and the directory the executable is in
11167  shlibpath_var=PATH
11168  ;;
11169
11170darwin* | rhapsody*)
11171  dynamic_linker="$host_os dyld"
11172  version_type=darwin
11173  need_lib_prefix=no
11174  need_version=no
11175  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11176  soname_spec='$libname$release$major$shared_ext'
11177  shlibpath_overrides_runpath=yes
11178  shlibpath_var=DYLD_LIBRARY_PATH
11179  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11180
11181  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11182  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11183  ;;
11184
11185dgux*)
11186  version_type=linux # correct to gnu/linux during the next big refactor
11187  need_lib_prefix=no
11188  need_version=no
11189  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11190  soname_spec='$libname$release$shared_ext$major'
11191  shlibpath_var=LD_LIBRARY_PATH
11192  ;;
11193
11194freebsd* | dragonfly*)
11195  # DragonFly does not have aout.  When/if they implement a new
11196  # versioning mechanism, adjust this.
11197  if test -x /usr/bin/objformat; then
11198    objformat=`/usr/bin/objformat`
11199  else
11200    case $host_os in
11201    freebsd[23].*) objformat=aout ;;
11202    *) objformat=elf ;;
11203    esac
11204  fi
11205  version_type=freebsd-$objformat
11206  case $version_type in
11207    freebsd-elf*)
11208      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11209      soname_spec='$libname$release$shared_ext$major'
11210      need_version=no
11211      need_lib_prefix=no
11212      ;;
11213    freebsd-*)
11214      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11215      need_version=yes
11216      ;;
11217  esac
11218  shlibpath_var=LD_LIBRARY_PATH
11219  case $host_os in
11220  freebsd2.*)
11221    shlibpath_overrides_runpath=yes
11222    ;;
11223  freebsd3.[01]* | freebsdelf3.[01]*)
11224    shlibpath_overrides_runpath=yes
11225    hardcode_into_libs=yes
11226    ;;
11227  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11228  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11229    shlibpath_overrides_runpath=no
11230    hardcode_into_libs=yes
11231    ;;
11232  *) # from 4.6 on, and DragonFly
11233    shlibpath_overrides_runpath=yes
11234    hardcode_into_libs=yes
11235    ;;
11236  esac
11237  ;;
11238
11239haiku*)
11240  version_type=linux # correct to gnu/linux during the next big refactor
11241  need_lib_prefix=no
11242  need_version=no
11243  dynamic_linker="$host_os runtime_loader"
11244  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245  soname_spec='$libname$release$shared_ext$major'
11246  shlibpath_var=LIBRARY_PATH
11247  shlibpath_overrides_runpath=no
11248  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11249  hardcode_into_libs=yes
11250  ;;
11251
11252hpux9* | hpux10* | hpux11*)
11253  # Give a soname corresponding to the major version so that dld.sl refuses to
11254  # link against other versions.
11255  version_type=sunos
11256  need_lib_prefix=no
11257  need_version=no
11258  case $host_cpu in
11259  ia64*)
11260    shrext_cmds='.so'
11261    hardcode_into_libs=yes
11262    dynamic_linker="$host_os dld.so"
11263    shlibpath_var=LD_LIBRARY_PATH
11264    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11265    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11266    soname_spec='$libname$release$shared_ext$major'
11267    if test 32 = "$HPUX_IA64_MODE"; then
11268      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11269      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11270    else
11271      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11272      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11273    fi
11274    ;;
11275  hppa*64*)
11276    shrext_cmds='.sl'
11277    hardcode_into_libs=yes
11278    dynamic_linker="$host_os dld.sl"
11279    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11280    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11281    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11282    soname_spec='$libname$release$shared_ext$major'
11283    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11284    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11285    ;;
11286  *)
11287    shrext_cmds='.sl'
11288    dynamic_linker="$host_os dld.sl"
11289    shlibpath_var=SHLIB_PATH
11290    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11291    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11292    soname_spec='$libname$release$shared_ext$major'
11293    ;;
11294  esac
11295  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11296  postinstall_cmds='chmod 555 $lib'
11297  # or fails outright, so override atomically:
11298  install_override_mode=555
11299  ;;
11300
11301interix[3-9]*)
11302  version_type=linux # correct to gnu/linux during the next big refactor
11303  need_lib_prefix=no
11304  need_version=no
11305  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11306  soname_spec='$libname$release$shared_ext$major'
11307  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11308  shlibpath_var=LD_LIBRARY_PATH
11309  shlibpath_overrides_runpath=no
11310  hardcode_into_libs=yes
11311  ;;
11312
11313irix5* | irix6* | nonstopux*)
11314  case $host_os in
11315    nonstopux*) version_type=nonstopux ;;
11316    *)
11317	if test yes = "$lt_cv_prog_gnu_ld"; then
11318		version_type=linux # correct to gnu/linux during the next big refactor
11319	else
11320		version_type=irix
11321	fi ;;
11322  esac
11323  need_lib_prefix=no
11324  need_version=no
11325  soname_spec='$libname$release$shared_ext$major'
11326  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11327  case $host_os in
11328  irix5* | nonstopux*)
11329    libsuff= shlibsuff=
11330    ;;
11331  *)
11332    case $LD in # libtool.m4 will add one of these switches to LD
11333    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11334      libsuff= shlibsuff= libmagic=32-bit;;
11335    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11336      libsuff=32 shlibsuff=N32 libmagic=N32;;
11337    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11338      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11339    *) libsuff= shlibsuff= libmagic=never-match;;
11340    esac
11341    ;;
11342  esac
11343  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11344  shlibpath_overrides_runpath=no
11345  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11346  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11347  hardcode_into_libs=yes
11348  ;;
11349
11350# No shared lib support for Linux oldld, aout, or coff.
11351linux*oldld* | linux*aout* | linux*coff*)
11352  dynamic_linker=no
11353  ;;
11354
11355linux*android*)
11356  version_type=none # Android doesn't support versioned libraries.
11357  need_lib_prefix=no
11358  need_version=no
11359  library_names_spec='$libname$release$shared_ext'
11360  soname_spec='$libname$release$shared_ext'
11361  finish_cmds=
11362  shlibpath_var=LD_LIBRARY_PATH
11363  shlibpath_overrides_runpath=yes
11364
11365  # This implies no fast_install, which is unacceptable.
11366  # Some rework will be needed to allow for fast_install
11367  # before this can be enabled.
11368  hardcode_into_libs=yes
11369
11370  dynamic_linker='Android linker'
11371  # Don't embed -rpath directories since the linker doesn't support them.
11372  hardcode_libdir_flag_spec='-L$libdir'
11373  ;;
11374
11375# This must be glibc/ELF.
11376linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11377  version_type=linux # correct to gnu/linux during the next big refactor
11378  need_lib_prefix=no
11379  need_version=no
11380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381  soname_spec='$libname$release$shared_ext$major'
11382  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11383  shlibpath_var=LD_LIBRARY_PATH
11384  shlibpath_overrides_runpath=no
11385
11386  # Some binutils ld are patched to set DT_RUNPATH
11387  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11388  $as_echo_n "(cached) " >&6
11389else
11390  lt_cv_shlibpath_overrides_runpath=no
11391    save_LDFLAGS=$LDFLAGS
11392    save_libdir=$libdir
11393    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11394	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396/* end confdefs.h.  */
11397
11398int
11399main ()
11400{
11401
11402  ;
11403  return 0;
11404}
11405_ACEOF
11406if ac_fn_c_try_link "$LINENO"; then :
11407  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11408  lt_cv_shlibpath_overrides_runpath=yes
11409fi
11410fi
11411rm -f core conftest.err conftest.$ac_objext \
11412    conftest$ac_exeext conftest.$ac_ext
11413    LDFLAGS=$save_LDFLAGS
11414    libdir=$save_libdir
11415
11416fi
11417
11418  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11419
11420  # This implies no fast_install, which is unacceptable.
11421  # Some rework will be needed to allow for fast_install
11422  # before this can be enabled.
11423  hardcode_into_libs=yes
11424
11425  # Ideally, we could use ldconfig to report *all* directores which are
11426  # searched for libraries, however this is still not possible.  Aside from not
11427  # being certain /sbin/ldconfig is available, command
11428  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11429  # even though it is searched at run-time.  Try to do the best guess by
11430  # appending ld.so.conf contents (and includes) to the search path.
11431  if test -f /etc/ld.so.conf; then
11432    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' ' '`
11433    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11434  fi
11435
11436  # We used to test for /lib/ld.so.1 and disable shared libraries on
11437  # powerpc, because MkLinux only supported shared libraries with the
11438  # GNU dynamic linker.  Since this was broken with cross compilers,
11439  # most powerpc-linux boxes support dynamic linking these days and
11440  # people can always --disable-shared, the test was removed, and we
11441  # assume the GNU/Linux dynamic linker is in use.
11442  dynamic_linker='GNU/Linux ld.so'
11443  ;;
11444
11445netbsdelf*-gnu)
11446  version_type=linux
11447  need_lib_prefix=no
11448  need_version=no
11449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11450  soname_spec='${libname}${release}${shared_ext}$major'
11451  shlibpath_var=LD_LIBRARY_PATH
11452  shlibpath_overrides_runpath=no
11453  hardcode_into_libs=yes
11454  dynamic_linker='NetBSD ld.elf_so'
11455  ;;
11456
11457netbsd*)
11458  version_type=sunos
11459  need_lib_prefix=no
11460  need_version=no
11461  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11462    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11463    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11464    dynamic_linker='NetBSD (a.out) ld.so'
11465  else
11466    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11467    soname_spec='$libname$release$shared_ext$major'
11468    dynamic_linker='NetBSD ld.elf_so'
11469  fi
11470  shlibpath_var=LD_LIBRARY_PATH
11471  shlibpath_overrides_runpath=yes
11472  hardcode_into_libs=yes
11473  ;;
11474
11475newsos6)
11476  version_type=linux # correct to gnu/linux during the next big refactor
11477  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11478  shlibpath_var=LD_LIBRARY_PATH
11479  shlibpath_overrides_runpath=yes
11480  ;;
11481
11482*nto* | *qnx*)
11483  version_type=qnx
11484  need_lib_prefix=no
11485  need_version=no
11486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11487  soname_spec='$libname$release$shared_ext$major'
11488  shlibpath_var=LD_LIBRARY_PATH
11489  shlibpath_overrides_runpath=no
11490  hardcode_into_libs=yes
11491  dynamic_linker='ldqnx.so'
11492  ;;
11493
11494openbsd* | bitrig*)
11495  version_type=sunos
11496  sys_lib_dlsearch_path_spec=/usr/lib
11497  need_lib_prefix=no
11498  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11499    need_version=no
11500  else
11501    need_version=yes
11502  fi
11503  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11504  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11505  shlibpath_var=LD_LIBRARY_PATH
11506  shlibpath_overrides_runpath=yes
11507  ;;
11508
11509os2*)
11510  libname_spec='$name'
11511  version_type=windows
11512  shrext_cmds=.dll
11513  need_version=no
11514  need_lib_prefix=no
11515  # OS/2 can only load a DLL with a base name of 8 characters or less.
11516  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11517    v=$($ECHO $release$versuffix | tr -d .-);
11518    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11519    $ECHO $n$v`$shared_ext'
11520  library_names_spec='${libname}_dll.$libext'
11521  dynamic_linker='OS/2 ld.exe'
11522  shlibpath_var=BEGINLIBPATH
11523  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11524  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11525  postinstall_cmds='base_file=`basename \$file`~
11526    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11527    dldir=$destdir/`dirname \$dlpath`~
11528    test -d \$dldir || mkdir -p \$dldir~
11529    $install_prog $dir/$dlname \$dldir/$dlname~
11530    chmod a+x \$dldir/$dlname~
11531    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11532      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11533    fi'
11534  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11535    dlpath=$dir/\$dldll~
11536    $RM \$dlpath'
11537  ;;
11538
11539osf3* | osf4* | osf5*)
11540  version_type=osf
11541  need_lib_prefix=no
11542  need_version=no
11543  soname_spec='$libname$release$shared_ext$major'
11544  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545  shlibpath_var=LD_LIBRARY_PATH
11546  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11547  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11548  ;;
11549
11550rdos*)
11551  dynamic_linker=no
11552  ;;
11553
11554solaris*)
11555  version_type=linux # correct to gnu/linux during the next big refactor
11556  need_lib_prefix=no
11557  need_version=no
11558  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11559  soname_spec='$libname$release$shared_ext$major'
11560  shlibpath_var=LD_LIBRARY_PATH
11561  shlibpath_overrides_runpath=yes
11562  hardcode_into_libs=yes
11563  # ldd complains unless libraries are executable
11564  postinstall_cmds='chmod +x $lib'
11565  ;;
11566
11567sunos4*)
11568  version_type=sunos
11569  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11570  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11571  shlibpath_var=LD_LIBRARY_PATH
11572  shlibpath_overrides_runpath=yes
11573  if test yes = "$with_gnu_ld"; then
11574    need_lib_prefix=no
11575  fi
11576  need_version=yes
11577  ;;
11578
11579sysv4 | sysv4.3*)
11580  version_type=linux # correct to gnu/linux during the next big refactor
11581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582  soname_spec='$libname$release$shared_ext$major'
11583  shlibpath_var=LD_LIBRARY_PATH
11584  case $host_vendor in
11585    sni)
11586      shlibpath_overrides_runpath=no
11587      need_lib_prefix=no
11588      runpath_var=LD_RUN_PATH
11589      ;;
11590    siemens)
11591      need_lib_prefix=no
11592      ;;
11593    motorola)
11594      need_lib_prefix=no
11595      need_version=no
11596      shlibpath_overrides_runpath=no
11597      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11598      ;;
11599  esac
11600  ;;
11601
11602sysv4*MP*)
11603  if test -d /usr/nec; then
11604    version_type=linux # correct to gnu/linux during the next big refactor
11605    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11606    soname_spec='$libname$shared_ext.$major'
11607    shlibpath_var=LD_LIBRARY_PATH
11608  fi
11609  ;;
11610
11611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11612  version_type=sco
11613  need_lib_prefix=no
11614  need_version=no
11615  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11616  soname_spec='$libname$release$shared_ext$major'
11617  shlibpath_var=LD_LIBRARY_PATH
11618  shlibpath_overrides_runpath=yes
11619  hardcode_into_libs=yes
11620  if test yes = "$with_gnu_ld"; then
11621    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11622  else
11623    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11624    case $host_os in
11625      sco3.2v5*)
11626        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11627	;;
11628    esac
11629  fi
11630  sys_lib_dlsearch_path_spec='/usr/lib'
11631  ;;
11632
11633tpf*)
11634  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11635  version_type=linux # correct to gnu/linux during the next big refactor
11636  need_lib_prefix=no
11637  need_version=no
11638  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639  shlibpath_var=LD_LIBRARY_PATH
11640  shlibpath_overrides_runpath=no
11641  hardcode_into_libs=yes
11642  ;;
11643
11644uts4*)
11645  version_type=linux # correct to gnu/linux during the next big refactor
11646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11647  soname_spec='$libname$release$shared_ext$major'
11648  shlibpath_var=LD_LIBRARY_PATH
11649  ;;
11650
11651*)
11652  dynamic_linker=no
11653  ;;
11654esac
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11656$as_echo "$dynamic_linker" >&6; }
11657test no = "$dynamic_linker" && can_build_shared=no
11658
11659variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11660if test yes = "$GCC"; then
11661  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11662fi
11663
11664if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11665  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11666fi
11667
11668if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11669  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11670fi
11671
11672# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11673configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11674
11675# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11676func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11677
11678# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11679configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11778$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11779hardcode_action=
11780if test -n "$hardcode_libdir_flag_spec" ||
11781   test -n "$runpath_var" ||
11782   test yes = "$hardcode_automatic"; then
11783
11784  # We can hardcode non-existent directories.
11785  if test no != "$hardcode_direct" &&
11786     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11787     # have to relink, otherwise we might link with an installed library
11788     # when we should be linking with a yet-to-be-installed one
11789     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11790     test no != "$hardcode_minus_L"; then
11791    # Linking always hardcodes the temporary library directory.
11792    hardcode_action=relink
11793  else
11794    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11795    hardcode_action=immediate
11796  fi
11797else
11798  # We cannot hardcode anything, or else we can only hardcode existing
11799  # directories.
11800  hardcode_action=unsupported
11801fi
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11803$as_echo "$hardcode_action" >&6; }
11804
11805if test relink = "$hardcode_action" ||
11806   test yes = "$inherit_rpath"; then
11807  # Fast installation is not supported
11808  enable_fast_install=no
11809elif test yes = "$shlibpath_overrides_runpath" ||
11810     test no = "$enable_shared"; then
11811  # Fast installation is not necessary
11812  enable_fast_install=needless
11813fi
11814
11815
11816
11817
11818
11819
11820  if test yes != "$enable_dlopen"; then
11821  enable_dlopen=unknown
11822  enable_dlopen_self=unknown
11823  enable_dlopen_self_static=unknown
11824else
11825  lt_cv_dlopen=no
11826  lt_cv_dlopen_libs=
11827
11828  case $host_os in
11829  beos*)
11830    lt_cv_dlopen=load_add_on
11831    lt_cv_dlopen_libs=
11832    lt_cv_dlopen_self=yes
11833    ;;
11834
11835  mingw* | pw32* | cegcc*)
11836    lt_cv_dlopen=LoadLibrary
11837    lt_cv_dlopen_libs=
11838    ;;
11839
11840  cygwin*)
11841    lt_cv_dlopen=dlopen
11842    lt_cv_dlopen_libs=
11843    ;;
11844
11845  darwin*)
11846    # if libdl is installed we need to link against it
11847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11848$as_echo_n "checking for dlopen in -ldl... " >&6; }
11849if ${ac_cv_lib_dl_dlopen+:} false; then :
11850  $as_echo_n "(cached) " >&6
11851else
11852  ac_check_lib_save_LIBS=$LIBS
11853LIBS="-ldl  $LIBS"
11854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855/* end confdefs.h.  */
11856
11857/* Override any GCC internal prototype to avoid an error.
11858   Use char because int might match the return type of a GCC
11859   builtin and then its argument prototype would still apply.  */
11860#ifdef __cplusplus
11861extern "C"
11862#endif
11863char dlopen ();
11864int
11865main ()
11866{
11867return dlopen ();
11868  ;
11869  return 0;
11870}
11871_ACEOF
11872if ac_fn_c_try_link "$LINENO"; then :
11873  ac_cv_lib_dl_dlopen=yes
11874else
11875  ac_cv_lib_dl_dlopen=no
11876fi
11877rm -f core conftest.err conftest.$ac_objext \
11878    conftest$ac_exeext conftest.$ac_ext
11879LIBS=$ac_check_lib_save_LIBS
11880fi
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11883if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11884  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11885else
11886
11887    lt_cv_dlopen=dyld
11888    lt_cv_dlopen_libs=
11889    lt_cv_dlopen_self=yes
11890
11891fi
11892
11893    ;;
11894
11895  tpf*)
11896    # Don't try to run any link tests for TPF.  We know it's impossible
11897    # because TPF is a cross-compiler, and we know how we open DSOs.
11898    lt_cv_dlopen=dlopen
11899    lt_cv_dlopen_libs=
11900    lt_cv_dlopen_self=no
11901    ;;
11902
11903  *)
11904    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11905if test "x$ac_cv_func_shl_load" = xyes; then :
11906  lt_cv_dlopen=shl_load
11907else
11908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11909$as_echo_n "checking for shl_load in -ldld... " >&6; }
11910if ${ac_cv_lib_dld_shl_load+:} false; then :
11911  $as_echo_n "(cached) " >&6
11912else
11913  ac_check_lib_save_LIBS=$LIBS
11914LIBS="-ldld  $LIBS"
11915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916/* end confdefs.h.  */
11917
11918/* Override any GCC internal prototype to avoid an error.
11919   Use char because int might match the return type of a GCC
11920   builtin and then its argument prototype would still apply.  */
11921#ifdef __cplusplus
11922extern "C"
11923#endif
11924char shl_load ();
11925int
11926main ()
11927{
11928return shl_load ();
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_link "$LINENO"; then :
11934  ac_cv_lib_dld_shl_load=yes
11935else
11936  ac_cv_lib_dld_shl_load=no
11937fi
11938rm -f core conftest.err conftest.$ac_objext \
11939    conftest$ac_exeext conftest.$ac_ext
11940LIBS=$ac_check_lib_save_LIBS
11941fi
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11943$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11944if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11945  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11946else
11947  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11948if test "x$ac_cv_func_dlopen" = xyes; then :
11949  lt_cv_dlopen=dlopen
11950else
11951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11952$as_echo_n "checking for dlopen in -ldl... " >&6; }
11953if ${ac_cv_lib_dl_dlopen+:} false; then :
11954  $as_echo_n "(cached) " >&6
11955else
11956  ac_check_lib_save_LIBS=$LIBS
11957LIBS="-ldl  $LIBS"
11958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959/* end confdefs.h.  */
11960
11961/* Override any GCC internal prototype to avoid an error.
11962   Use char because int might match the return type of a GCC
11963   builtin and then its argument prototype would still apply.  */
11964#ifdef __cplusplus
11965extern "C"
11966#endif
11967char dlopen ();
11968int
11969main ()
11970{
11971return dlopen ();
11972  ;
11973  return 0;
11974}
11975_ACEOF
11976if ac_fn_c_try_link "$LINENO"; then :
11977  ac_cv_lib_dl_dlopen=yes
11978else
11979  ac_cv_lib_dl_dlopen=no
11980fi
11981rm -f core conftest.err conftest.$ac_objext \
11982    conftest$ac_exeext conftest.$ac_ext
11983LIBS=$ac_check_lib_save_LIBS
11984fi
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11986$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11987if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11988  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11989else
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11991$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11992if ${ac_cv_lib_svld_dlopen+:} false; then :
11993  $as_echo_n "(cached) " >&6
11994else
11995  ac_check_lib_save_LIBS=$LIBS
11996LIBS="-lsvld  $LIBS"
11997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998/* end confdefs.h.  */
11999
12000/* Override any GCC internal prototype to avoid an error.
12001   Use char because int might match the return type of a GCC
12002   builtin and then its argument prototype would still apply.  */
12003#ifdef __cplusplus
12004extern "C"
12005#endif
12006char dlopen ();
12007int
12008main ()
12009{
12010return dlopen ();
12011  ;
12012  return 0;
12013}
12014_ACEOF
12015if ac_fn_c_try_link "$LINENO"; then :
12016  ac_cv_lib_svld_dlopen=yes
12017else
12018  ac_cv_lib_svld_dlopen=no
12019fi
12020rm -f core conftest.err conftest.$ac_objext \
12021    conftest$ac_exeext conftest.$ac_ext
12022LIBS=$ac_check_lib_save_LIBS
12023fi
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12025$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12026if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12027  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12028else
12029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12030$as_echo_n "checking for dld_link in -ldld... " >&6; }
12031if ${ac_cv_lib_dld_dld_link+:} false; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034  ac_check_lib_save_LIBS=$LIBS
12035LIBS="-ldld  $LIBS"
12036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037/* end confdefs.h.  */
12038
12039/* Override any GCC internal prototype to avoid an error.
12040   Use char because int might match the return type of a GCC
12041   builtin and then its argument prototype would still apply.  */
12042#ifdef __cplusplus
12043extern "C"
12044#endif
12045char dld_link ();
12046int
12047main ()
12048{
12049return dld_link ();
12050  ;
12051  return 0;
12052}
12053_ACEOF
12054if ac_fn_c_try_link "$LINENO"; then :
12055  ac_cv_lib_dld_dld_link=yes
12056else
12057  ac_cv_lib_dld_dld_link=no
12058fi
12059rm -f core conftest.err conftest.$ac_objext \
12060    conftest$ac_exeext conftest.$ac_ext
12061LIBS=$ac_check_lib_save_LIBS
12062fi
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12064$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12065if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12066  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12067fi
12068
12069
12070fi
12071
12072
12073fi
12074
12075
12076fi
12077
12078
12079fi
12080
12081
12082fi
12083
12084    ;;
12085  esac
12086
12087  if test no = "$lt_cv_dlopen"; then
12088    enable_dlopen=no
12089  else
12090    enable_dlopen=yes
12091  fi
12092
12093  case $lt_cv_dlopen in
12094  dlopen)
12095    save_CPPFLAGS=$CPPFLAGS
12096    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12097
12098    save_LDFLAGS=$LDFLAGS
12099    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12100
12101    save_LIBS=$LIBS
12102    LIBS="$lt_cv_dlopen_libs $LIBS"
12103
12104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12105$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12106if ${lt_cv_dlopen_self+:} false; then :
12107  $as_echo_n "(cached) " >&6
12108else
12109  	  if test yes = "$cross_compiling"; then :
12110  lt_cv_dlopen_self=cross
12111else
12112  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12113  lt_status=$lt_dlunknown
12114  cat > conftest.$ac_ext <<_LT_EOF
12115#line $LINENO "configure"
12116#include "confdefs.h"
12117
12118#if HAVE_DLFCN_H
12119#include <dlfcn.h>
12120#endif
12121
12122#include <stdio.h>
12123
12124#ifdef RTLD_GLOBAL
12125#  define LT_DLGLOBAL		RTLD_GLOBAL
12126#else
12127#  ifdef DL_GLOBAL
12128#    define LT_DLGLOBAL		DL_GLOBAL
12129#  else
12130#    define LT_DLGLOBAL		0
12131#  endif
12132#endif
12133
12134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12135   find out it does not work in some platform. */
12136#ifndef LT_DLLAZY_OR_NOW
12137#  ifdef RTLD_LAZY
12138#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12139#  else
12140#    ifdef DL_LAZY
12141#      define LT_DLLAZY_OR_NOW		DL_LAZY
12142#    else
12143#      ifdef RTLD_NOW
12144#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12145#      else
12146#        ifdef DL_NOW
12147#          define LT_DLLAZY_OR_NOW	DL_NOW
12148#        else
12149#          define LT_DLLAZY_OR_NOW	0
12150#        endif
12151#      endif
12152#    endif
12153#  endif
12154#endif
12155
12156/* When -fvisibility=hidden is used, assume the code has been annotated
12157   correspondingly for the symbols needed.  */
12158#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12159int fnord () __attribute__((visibility("default")));
12160#endif
12161
12162int fnord () { return 42; }
12163int main ()
12164{
12165  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12166  int status = $lt_dlunknown;
12167
12168  if (self)
12169    {
12170      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12171      else
12172        {
12173	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12174          else puts (dlerror ());
12175	}
12176      /* dlclose (self); */
12177    }
12178  else
12179    puts (dlerror ());
12180
12181  return status;
12182}
12183_LT_EOF
12184  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12185  (eval $ac_link) 2>&5
12186  ac_status=$?
12187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12188  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12189    (./conftest; exit; ) >&5 2>/dev/null
12190    lt_status=$?
12191    case x$lt_status in
12192      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12193      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12194      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12195    esac
12196  else :
12197    # compilation failed
12198    lt_cv_dlopen_self=no
12199  fi
12200fi
12201rm -fr conftest*
12202
12203
12204fi
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12206$as_echo "$lt_cv_dlopen_self" >&6; }
12207
12208    if test yes = "$lt_cv_dlopen_self"; then
12209      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12210      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12211$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12212if ${lt_cv_dlopen_self_static+:} false; then :
12213  $as_echo_n "(cached) " >&6
12214else
12215  	  if test yes = "$cross_compiling"; then :
12216  lt_cv_dlopen_self_static=cross
12217else
12218  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12219  lt_status=$lt_dlunknown
12220  cat > conftest.$ac_ext <<_LT_EOF
12221#line $LINENO "configure"
12222#include "confdefs.h"
12223
12224#if HAVE_DLFCN_H
12225#include <dlfcn.h>
12226#endif
12227
12228#include <stdio.h>
12229
12230#ifdef RTLD_GLOBAL
12231#  define LT_DLGLOBAL		RTLD_GLOBAL
12232#else
12233#  ifdef DL_GLOBAL
12234#    define LT_DLGLOBAL		DL_GLOBAL
12235#  else
12236#    define LT_DLGLOBAL		0
12237#  endif
12238#endif
12239
12240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12241   find out it does not work in some platform. */
12242#ifndef LT_DLLAZY_OR_NOW
12243#  ifdef RTLD_LAZY
12244#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12245#  else
12246#    ifdef DL_LAZY
12247#      define LT_DLLAZY_OR_NOW		DL_LAZY
12248#    else
12249#      ifdef RTLD_NOW
12250#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12251#      else
12252#        ifdef DL_NOW
12253#          define LT_DLLAZY_OR_NOW	DL_NOW
12254#        else
12255#          define LT_DLLAZY_OR_NOW	0
12256#        endif
12257#      endif
12258#    endif
12259#  endif
12260#endif
12261
12262/* When -fvisibility=hidden is used, assume the code has been annotated
12263   correspondingly for the symbols needed.  */
12264#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12265int fnord () __attribute__((visibility("default")));
12266#endif
12267
12268int fnord () { return 42; }
12269int main ()
12270{
12271  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272  int status = $lt_dlunknown;
12273
12274  if (self)
12275    {
12276      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12277      else
12278        {
12279	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12280          else puts (dlerror ());
12281	}
12282      /* dlclose (self); */
12283    }
12284  else
12285    puts (dlerror ());
12286
12287  return status;
12288}
12289_LT_EOF
12290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12291  (eval $ac_link) 2>&5
12292  ac_status=$?
12293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12294  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12295    (./conftest; exit; ) >&5 2>/dev/null
12296    lt_status=$?
12297    case x$lt_status in
12298      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12299      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12300      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12301    esac
12302  else :
12303    # compilation failed
12304    lt_cv_dlopen_self_static=no
12305  fi
12306fi
12307rm -fr conftest*
12308
12309
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12312$as_echo "$lt_cv_dlopen_self_static" >&6; }
12313    fi
12314
12315    CPPFLAGS=$save_CPPFLAGS
12316    LDFLAGS=$save_LDFLAGS
12317    LIBS=$save_LIBS
12318    ;;
12319  esac
12320
12321  case $lt_cv_dlopen_self in
12322  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12323  *) enable_dlopen_self=unknown ;;
12324  esac
12325
12326  case $lt_cv_dlopen_self_static in
12327  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12328  *) enable_dlopen_self_static=unknown ;;
12329  esac
12330fi
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348striplib=
12349old_striplib=
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12351$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12352if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12353  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12354  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12356$as_echo "yes" >&6; }
12357else
12358# FIXME - insert some real tests, host_os isn't really good enough
12359  case $host_os in
12360  darwin*)
12361    if test -n "$STRIP"; then
12362      striplib="$STRIP -x"
12363      old_striplib="$STRIP -S"
12364      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12365$as_echo "yes" >&6; }
12366    else
12367      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368$as_echo "no" >&6; }
12369    fi
12370    ;;
12371  *)
12372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374    ;;
12375  esac
12376fi
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389  # Report what library types will actually be built
12390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12391$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12393$as_echo "$can_build_shared" >&6; }
12394
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12396$as_echo_n "checking whether to build shared libraries... " >&6; }
12397  test no = "$can_build_shared" && enable_shared=no
12398
12399  # On AIX, shared libraries and static libraries use the same namespace, and
12400  # are all built from PIC.
12401  case $host_os in
12402  aix3*)
12403    test yes = "$enable_shared" && enable_static=no
12404    if test -n "$RANLIB"; then
12405      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12406      postinstall_cmds='$RANLIB $lib'
12407    fi
12408    ;;
12409
12410  aix[4-9]*)
12411    if test ia64 != "$host_cpu"; then
12412      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12413      yes,aix,yes) ;;			# shared object as lib.so file only
12414      yes,svr4,*) ;;			# shared object as lib.so archive member only
12415      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12416      esac
12417    fi
12418    ;;
12419  esac
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12421$as_echo "$enable_shared" >&6; }
12422
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12424$as_echo_n "checking whether to build static libraries... " >&6; }
12425  # Make sure either enable_shared or enable_static is yes.
12426  test yes = "$enable_shared" || enable_static=yes
12427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12428$as_echo "$enable_static" >&6; }
12429
12430
12431
12432
12433fi
12434ac_ext=c
12435ac_cpp='$CPP $CPPFLAGS'
12436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440CC=$lt_save_CC
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456        ac_config_commands="$ac_config_commands libtool"
12457
12458
12459
12460
12461# Only expand once:
12462
12463
12464
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12466$as_echo_n "checking whether ln -s works... " >&6; }
12467LN_S=$as_ln_s
12468if test "$LN_S" = "ln -s"; then
12469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12470$as_echo "yes" >&6; }
12471else
12472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12473$as_echo "no, using $LN_S" >&6; }
12474fi
12475
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12477$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12478set x ${MAKE-make}
12479ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12480if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  cat >conftest.make <<\_ACEOF
12484SHELL = /bin/sh
12485all:
12486	@echo '@@@%%%=$(MAKE)=@@@%%%'
12487_ACEOF
12488# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12489case `${MAKE-make} -f conftest.make 2>/dev/null` in
12490  *@@@%%%=?*=@@@%%%*)
12491    eval ac_cv_prog_make_${ac_make}_set=yes;;
12492  *)
12493    eval ac_cv_prog_make_${ac_make}_set=no;;
12494esac
12495rm -f conftest.make
12496fi
12497if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12499$as_echo "yes" >&6; }
12500  SET_MAKE=
12501else
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504  SET_MAKE="MAKE=${MAKE-make}"
12505fi
12506
12507
12508ac_ext=cpp
12509ac_cpp='$CXXCPP $CPPFLAGS'
12510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12513if test -z "$CXX"; then
12514  if test -n "$CCC"; then
12515    CXX=$CCC
12516  else
12517    if test -n "$ac_tool_prefix"; then
12518  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
12519  do
12520    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
12524if ${ac_cv_prog_CXX+:} false; then :
12525  $as_echo_n "(cached) " >&6
12526else
12527  if test -n "$CXX"; then
12528  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12529else
12530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in $PATH
12532do
12533  IFS=$as_save_IFS
12534  test -z "$as_dir" && as_dir=.
12535    for ac_exec_ext in '' $ac_executable_extensions; do
12536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539    break 2
12540  fi
12541done
12542  done
12543IFS=$as_save_IFS
12544
12545fi
12546fi
12547CXX=$ac_cv_prog_CXX
12548if test -n "$CXX"; then
12549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12550$as_echo "$CXX" >&6; }
12551else
12552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553$as_echo "no" >&6; }
12554fi
12555
12556
12557    test -n "$CXX" && break
12558  done
12559fi
12560if test -z "$CXX"; then
12561  ac_ct_CXX=$CXX
12562  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
12563do
12564  # Extract the first word of "$ac_prog", so it can be a program name with args.
12565set dummy $ac_prog; ac_word=$2
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567$as_echo_n "checking for $ac_word... " >&6; }
12568if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12569  $as_echo_n "(cached) " >&6
12570else
12571  if test -n "$ac_ct_CXX"; then
12572  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12573else
12574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575for as_dir in $PATH
12576do
12577  IFS=$as_save_IFS
12578  test -z "$as_dir" && as_dir=.
12579    for ac_exec_ext in '' $ac_executable_extensions; do
12580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12581    ac_cv_prog_ac_ct_CXX="$ac_prog"
12582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12583    break 2
12584  fi
12585done
12586  done
12587IFS=$as_save_IFS
12588
12589fi
12590fi
12591ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12592if test -n "$ac_ct_CXX"; then
12593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12594$as_echo "$ac_ct_CXX" >&6; }
12595else
12596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597$as_echo "no" >&6; }
12598fi
12599
12600
12601  test -n "$ac_ct_CXX" && break
12602done
12603
12604  if test "x$ac_ct_CXX" = x; then
12605    CXX="g++"
12606  else
12607    case $cross_compiling:$ac_tool_warned in
12608yes:)
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12611ac_tool_warned=yes ;;
12612esac
12613    CXX=$ac_ct_CXX
12614  fi
12615fi
12616
12617  fi
12618fi
12619# Provide some information about the compiler.
12620$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12621set X $ac_compile
12622ac_compiler=$2
12623for ac_option in --version -v -V -qversion; do
12624  { { ac_try="$ac_compiler $ac_option >&5"
12625case "(($ac_try" in
12626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627  *) ac_try_echo=$ac_try;;
12628esac
12629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12630$as_echo "$ac_try_echo"; } >&5
12631  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12632  ac_status=$?
12633  if test -s conftest.err; then
12634    sed '10a\
12635... rest of stderr output deleted ...
12636         10q' conftest.err >conftest.er1
12637    cat conftest.er1 >&5
12638  fi
12639  rm -f conftest.er1 conftest.err
12640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641  test $ac_status = 0; }
12642done
12643
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12645$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12646if ${ac_cv_cxx_compiler_gnu+:} false; then :
12647  $as_echo_n "(cached) " >&6
12648else
12649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650/* end confdefs.h.  */
12651
12652int
12653main ()
12654{
12655#ifndef __GNUC__
12656       choke me
12657#endif
12658
12659  ;
12660  return 0;
12661}
12662_ACEOF
12663if ac_fn_cxx_try_compile "$LINENO"; then :
12664  ac_compiler_gnu=yes
12665else
12666  ac_compiler_gnu=no
12667fi
12668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12670
12671fi
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12673$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12674if test $ac_compiler_gnu = yes; then
12675  GXX=yes
12676else
12677  GXX=
12678fi
12679ac_test_CXXFLAGS=${CXXFLAGS+set}
12680ac_save_CXXFLAGS=$CXXFLAGS
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12682$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12683if ${ac_cv_prog_cxx_g+:} false; then :
12684  $as_echo_n "(cached) " >&6
12685else
12686  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12687   ac_cxx_werror_flag=yes
12688   ac_cv_prog_cxx_g=no
12689   CXXFLAGS="-g"
12690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691/* end confdefs.h.  */
12692
12693int
12694main ()
12695{
12696
12697  ;
12698  return 0;
12699}
12700_ACEOF
12701if ac_fn_cxx_try_compile "$LINENO"; then :
12702  ac_cv_prog_cxx_g=yes
12703else
12704  CXXFLAGS=""
12705      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706/* end confdefs.h.  */
12707
12708int
12709main ()
12710{
12711
12712  ;
12713  return 0;
12714}
12715_ACEOF
12716if ac_fn_cxx_try_compile "$LINENO"; then :
12717
12718else
12719  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12720	 CXXFLAGS="-g"
12721	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722/* end confdefs.h.  */
12723
12724int
12725main ()
12726{
12727
12728  ;
12729  return 0;
12730}
12731_ACEOF
12732if ac_fn_cxx_try_compile "$LINENO"; then :
12733  ac_cv_prog_cxx_g=yes
12734fi
12735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736fi
12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738fi
12739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12740   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12743$as_echo "$ac_cv_prog_cxx_g" >&6; }
12744if test "$ac_test_CXXFLAGS" = set; then
12745  CXXFLAGS=$ac_save_CXXFLAGS
12746elif test $ac_cv_prog_cxx_g = yes; then
12747  if test "$GXX" = yes; then
12748    CXXFLAGS="-g -O2"
12749  else
12750    CXXFLAGS="-g"
12751  fi
12752else
12753  if test "$GXX" = yes; then
12754    CXXFLAGS="-O2"
12755  else
12756    CXXFLAGS=
12757  fi
12758fi
12759ac_ext=c
12760ac_cpp='$CPP $CPPFLAGS'
12761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763ac_compiler_gnu=$ac_cv_c_compiler_gnu
12764
12765depcc="$CXX"  am_compiler_list=
12766
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12768$as_echo_n "checking dependency style of $depcc... " >&6; }
12769if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12770  $as_echo_n "(cached) " >&6
12771else
12772  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12773  # We make a subdir and do the tests there.  Otherwise we can end up
12774  # making bogus files that we don't know about and never remove.  For
12775  # instance it was reported that on HP-UX the gcc test will end up
12776  # making a dummy file named 'D' -- because '-MD' means "put the output
12777  # in D".
12778  rm -rf conftest.dir
12779  mkdir conftest.dir
12780  # Copy depcomp to subdir because otherwise we won't find it if we're
12781  # using a relative directory.
12782  cp "$am_depcomp" conftest.dir
12783  cd conftest.dir
12784  # We will build objects and dependencies in a subdirectory because
12785  # it helps to detect inapplicable dependency modes.  For instance
12786  # both Tru64's cc and ICC support -MD to output dependencies as a
12787  # side effect of compilation, but ICC will put the dependencies in
12788  # the current directory while Tru64 will put them in the object
12789  # directory.
12790  mkdir sub
12791
12792  am_cv_CXX_dependencies_compiler_type=none
12793  if test "$am_compiler_list" = ""; then
12794     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12795  fi
12796  am__universal=false
12797  case " $depcc " in #(
12798     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12799     esac
12800
12801  for depmode in $am_compiler_list; do
12802    # Setup a source with many dependencies, because some compilers
12803    # like to wrap large dependency lists on column 80 (with \), and
12804    # we should not choose a depcomp mode which is confused by this.
12805    #
12806    # We need to recreate these files for each test, as the compiler may
12807    # overwrite some of them when testing with obscure command lines.
12808    # This happens at least with the AIX C compiler.
12809    : > sub/conftest.c
12810    for i in 1 2 3 4 5 6; do
12811      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12812      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12813      # Solaris 10 /bin/sh.
12814      echo '/* dummy */' > sub/conftst$i.h
12815    done
12816    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12817
12818    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12819    # mode.  It turns out that the SunPro C++ compiler does not properly
12820    # handle '-M -o', and we need to detect this.  Also, some Intel
12821    # versions had trouble with output in subdirs.
12822    am__obj=sub/conftest.${OBJEXT-o}
12823    am__minus_obj="-o $am__obj"
12824    case $depmode in
12825    gcc)
12826      # This depmode causes a compiler race in universal mode.
12827      test "$am__universal" = false || continue
12828      ;;
12829    nosideeffect)
12830      # After this tag, mechanisms are not by side-effect, so they'll
12831      # only be used when explicitly requested.
12832      if test "x$enable_dependency_tracking" = xyes; then
12833	continue
12834      else
12835	break
12836      fi
12837      ;;
12838    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12839      # This compiler won't grok '-c -o', but also, the minuso test has
12840      # not run yet.  These depmodes are late enough in the game, and
12841      # so weak that their functioning should not be impacted.
12842      am__obj=conftest.${OBJEXT-o}
12843      am__minus_obj=
12844      ;;
12845    none) break ;;
12846    esac
12847    if depmode=$depmode \
12848       source=sub/conftest.c object=$am__obj \
12849       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12850       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12851         >/dev/null 2>conftest.err &&
12852       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12853       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12854       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12855       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12856      # icc doesn't choke on unknown options, it will just issue warnings
12857      # or remarks (even with -Werror).  So we grep stderr for any message
12858      # that says an option was ignored or not supported.
12859      # When given -MP, icc 7.0 and 7.1 complain thusly:
12860      #   icc: Command line warning: ignoring option '-M'; no argument required
12861      # The diagnosis changed in icc 8.0:
12862      #   icc: Command line remark: option '-MP' not supported
12863      if (grep 'ignoring option' conftest.err ||
12864          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12865        am_cv_CXX_dependencies_compiler_type=$depmode
12866        break
12867      fi
12868    fi
12869  done
12870
12871  cd ..
12872  rm -rf conftest.dir
12873else
12874  am_cv_CXX_dependencies_compiler_type=none
12875fi
12876
12877fi
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12879$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12880CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12881
12882 if
12883  test "x$enable_dependency_tracking" != xno \
12884  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12885  am__fastdepCXX_TRUE=
12886  am__fastdepCXX_FALSE='#'
12887else
12888  am__fastdepCXX_TRUE='#'
12889  am__fastdepCXX_FALSE=
12890fi
12891
12892
12893
12894
12895func_stripname_cnf ()
12896{
12897  case $2 in
12898  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12899  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12900  esac
12901} # func_stripname_cnf
12902
12903      if test -n "$CXX" && ( test no != "$CXX" &&
12904    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12905    (test g++ != "$CXX"))); then
12906  ac_ext=cpp
12907ac_cpp='$CXXCPP $CPPFLAGS'
12908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12912$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12913if test -z "$CXXCPP"; then
12914  if ${ac_cv_prog_CXXCPP+:} false; then :
12915  $as_echo_n "(cached) " >&6
12916else
12917      # Double quotes because CXXCPP needs to be expanded
12918    for CXXCPP in "$CXX -E" "/lib/cpp"
12919    do
12920      ac_preproc_ok=false
12921for ac_cxx_preproc_warn_flag in '' yes
12922do
12923  # Use a header file that comes with gcc, so configuring glibc
12924  # with a fresh cross-compiler works.
12925  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12926  # <limits.h> exists even on freestanding compilers.
12927  # On the NeXT, cc -E runs the code through the compiler's parser,
12928  # not just through cpp. "Syntax error" is here to catch this case.
12929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h.  */
12931#ifdef __STDC__
12932# include <limits.h>
12933#else
12934# include <assert.h>
12935#endif
12936		     Syntax error
12937_ACEOF
12938if ac_fn_cxx_try_cpp "$LINENO"; then :
12939
12940else
12941  # Broken: fails on valid input.
12942continue
12943fi
12944rm -f conftest.err conftest.i conftest.$ac_ext
12945
12946  # OK, works on sane cases.  Now check whether nonexistent headers
12947  # can be detected and how.
12948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949/* end confdefs.h.  */
12950#include <ac_nonexistent.h>
12951_ACEOF
12952if ac_fn_cxx_try_cpp "$LINENO"; then :
12953  # Broken: success on invalid input.
12954continue
12955else
12956  # Passes both tests.
12957ac_preproc_ok=:
12958break
12959fi
12960rm -f conftest.err conftest.i conftest.$ac_ext
12961
12962done
12963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12964rm -f conftest.i conftest.err conftest.$ac_ext
12965if $ac_preproc_ok; then :
12966  break
12967fi
12968
12969    done
12970    ac_cv_prog_CXXCPP=$CXXCPP
12971
12972fi
12973  CXXCPP=$ac_cv_prog_CXXCPP
12974else
12975  ac_cv_prog_CXXCPP=$CXXCPP
12976fi
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12978$as_echo "$CXXCPP" >&6; }
12979ac_preproc_ok=false
12980for ac_cxx_preproc_warn_flag in '' yes
12981do
12982  # Use a header file that comes with gcc, so configuring glibc
12983  # with a fresh cross-compiler works.
12984  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985  # <limits.h> exists even on freestanding compilers.
12986  # On the NeXT, cc -E runs the code through the compiler's parser,
12987  # not just through cpp. "Syntax error" is here to catch this case.
12988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989/* end confdefs.h.  */
12990#ifdef __STDC__
12991# include <limits.h>
12992#else
12993# include <assert.h>
12994#endif
12995		     Syntax error
12996_ACEOF
12997if ac_fn_cxx_try_cpp "$LINENO"; then :
12998
12999else
13000  # Broken: fails on valid input.
13001continue
13002fi
13003rm -f conftest.err conftest.i conftest.$ac_ext
13004
13005  # OK, works on sane cases.  Now check whether nonexistent headers
13006  # can be detected and how.
13007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008/* end confdefs.h.  */
13009#include <ac_nonexistent.h>
13010_ACEOF
13011if ac_fn_cxx_try_cpp "$LINENO"; then :
13012  # Broken: success on invalid input.
13013continue
13014else
13015  # Passes both tests.
13016ac_preproc_ok=:
13017break
13018fi
13019rm -f conftest.err conftest.i conftest.$ac_ext
13020
13021done
13022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13023rm -f conftest.i conftest.err conftest.$ac_ext
13024if $ac_preproc_ok; then :
13025
13026else
13027  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13029as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13030See \`config.log' for more details" "$LINENO" 5; }
13031fi
13032
13033ac_ext=c
13034ac_cpp='$CPP $CPPFLAGS'
13035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037ac_compiler_gnu=$ac_cv_c_compiler_gnu
13038
13039else
13040  _lt_caught_CXX_error=yes
13041fi
13042
13043ac_ext=cpp
13044ac_cpp='$CXXCPP $CPPFLAGS'
13045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13048
13049archive_cmds_need_lc_CXX=no
13050allow_undefined_flag_CXX=
13051always_export_symbols_CXX=no
13052archive_expsym_cmds_CXX=
13053compiler_needs_object_CXX=no
13054export_dynamic_flag_spec_CXX=
13055hardcode_direct_CXX=no
13056hardcode_direct_absolute_CXX=no
13057hardcode_libdir_flag_spec_CXX=
13058hardcode_libdir_separator_CXX=
13059hardcode_minus_L_CXX=no
13060hardcode_shlibpath_var_CXX=unsupported
13061hardcode_automatic_CXX=no
13062inherit_rpath_CXX=no
13063module_cmds_CXX=
13064module_expsym_cmds_CXX=
13065link_all_deplibs_CXX=unknown
13066old_archive_cmds_CXX=$old_archive_cmds
13067reload_flag_CXX=$reload_flag
13068reload_cmds_CXX=$reload_cmds
13069no_undefined_flag_CXX=
13070whole_archive_flag_spec_CXX=
13071enable_shared_with_static_runtimes_CXX=no
13072
13073# Source file extension for C++ test sources.
13074ac_ext=cpp
13075
13076# Object file extension for compiled C++ test sources.
13077objext=o
13078objext_CXX=$objext
13079
13080# No sense in running all these tests if we already determined that
13081# the CXX compiler isn't working.  Some variables (like enable_shared)
13082# are currently assumed to apply to all compilers on this platform,
13083# and will be corrupted by setting them based on a non-working compiler.
13084if test yes != "$_lt_caught_CXX_error"; then
13085  # Code to be used in simple compile tests
13086  lt_simple_compile_test_code="int some_variable = 0;"
13087
13088  # Code to be used in simple link tests
13089  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13090
13091  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13092
13093
13094
13095
13096
13097
13098# If no C compiler was specified, use CC.
13099LTCC=${LTCC-"$CC"}
13100
13101# If no C compiler flags were specified, use CFLAGS.
13102LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13103
13104# Allow CC to be a program name with arguments.
13105compiler=$CC
13106
13107
13108  # save warnings/boilerplate of simple test code
13109  ac_outfile=conftest.$ac_objext
13110echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13111eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13112_lt_compiler_boilerplate=`cat conftest.err`
13113$RM conftest*
13114
13115  ac_outfile=conftest.$ac_objext
13116echo "$lt_simple_link_test_code" >conftest.$ac_ext
13117eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13118_lt_linker_boilerplate=`cat conftest.err`
13119$RM -r conftest*
13120
13121
13122  # Allow CC to be a program name with arguments.
13123  lt_save_CC=$CC
13124  lt_save_CFLAGS=$CFLAGS
13125  lt_save_LD=$LD
13126  lt_save_GCC=$GCC
13127  GCC=$GXX
13128  lt_save_with_gnu_ld=$with_gnu_ld
13129  lt_save_path_LD=$lt_cv_path_LD
13130  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13131    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13132  else
13133    $as_unset lt_cv_prog_gnu_ld
13134  fi
13135  if test -n "${lt_cv_path_LDCXX+set}"; then
13136    lt_cv_path_LD=$lt_cv_path_LDCXX
13137  else
13138    $as_unset lt_cv_path_LD
13139  fi
13140  test -z "${LDCXX+set}" || LD=$LDCXX
13141  CC=${CXX-"c++"}
13142  CFLAGS=$CXXFLAGS
13143  compiler=$CC
13144  compiler_CXX=$CC
13145  func_cc_basename $compiler
13146cc_basename=$func_cc_basename_result
13147
13148
13149  if test -n "$compiler"; then
13150    # We don't want -fno-exception when compiling C++ code, so set the
13151    # no_builtin_flag separately
13152    if test yes = "$GXX"; then
13153      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13154    else
13155      lt_prog_compiler_no_builtin_flag_CXX=
13156    fi
13157
13158    if test yes = "$GXX"; then
13159      # Set up default GNU C++ configuration
13160
13161
13162
13163# Check whether --with-gnu-ld was given.
13164if test "${with_gnu_ld+set}" = set; then :
13165  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13166else
13167  with_gnu_ld=no
13168fi
13169
13170ac_prog=ld
13171if test yes = "$GCC"; then
13172  # Check if gcc -print-prog-name=ld gives a path.
13173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13174$as_echo_n "checking for ld used by $CC... " >&6; }
13175  case $host in
13176  *-*-mingw*)
13177    # gcc leaves a trailing carriage return, which upsets mingw
13178    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13179  *)
13180    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13181  esac
13182  case $ac_prog in
13183    # Accept absolute paths.
13184    [\\/]* | ?:[\\/]*)
13185      re_direlt='/[^/][^/]*/\.\./'
13186      # Canonicalize the pathname of ld
13187      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13188      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13189	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13190      done
13191      test -z "$LD" && LD=$ac_prog
13192      ;;
13193  "")
13194    # If it fails, then pretend we aren't using GCC.
13195    ac_prog=ld
13196    ;;
13197  *)
13198    # If it is relative, then search for the first ld in PATH.
13199    with_gnu_ld=unknown
13200    ;;
13201  esac
13202elif test yes = "$with_gnu_ld"; then
13203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13204$as_echo_n "checking for GNU ld... " >&6; }
13205else
13206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13207$as_echo_n "checking for non-GNU ld... " >&6; }
13208fi
13209if ${lt_cv_path_LD+:} false; then :
13210  $as_echo_n "(cached) " >&6
13211else
13212  if test -z "$LD"; then
13213  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13214  for ac_dir in $PATH; do
13215    IFS=$lt_save_ifs
13216    test -z "$ac_dir" && ac_dir=.
13217    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13218      lt_cv_path_LD=$ac_dir/$ac_prog
13219      # Check to see if the program is GNU ld.  I'd rather use --version,
13220      # but apparently some variants of GNU ld only accept -v.
13221      # Break only if it was the GNU/non-GNU ld that we prefer.
13222      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13223      *GNU* | *'with BFD'*)
13224	test no != "$with_gnu_ld" && break
13225	;;
13226      *)
13227	test yes != "$with_gnu_ld" && break
13228	;;
13229      esac
13230    fi
13231  done
13232  IFS=$lt_save_ifs
13233else
13234  lt_cv_path_LD=$LD # Let the user override the test with a path.
13235fi
13236fi
13237
13238LD=$lt_cv_path_LD
13239if test -n "$LD"; then
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13241$as_echo "$LD" >&6; }
13242else
13243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
13245fi
13246test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13248$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13249if ${lt_cv_prog_gnu_ld+:} false; then :
13250  $as_echo_n "(cached) " >&6
13251else
13252  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13253case `$LD -v 2>&1 </dev/null` in
13254*GNU* | *'with BFD'*)
13255  lt_cv_prog_gnu_ld=yes
13256  ;;
13257*)
13258  lt_cv_prog_gnu_ld=no
13259  ;;
13260esac
13261fi
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13263$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13264with_gnu_ld=$lt_cv_prog_gnu_ld
13265
13266
13267
13268
13269
13270
13271
13272      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13273      # archiving commands below assume that GNU ld is being used.
13274      if test yes = "$with_gnu_ld"; then
13275        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13276        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'
13277
13278        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13279        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13280
13281        # If archive_cmds runs LD, not CC, wlarc should be empty
13282        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13283        #     investigate it a little bit more. (MM)
13284        wlarc='$wl'
13285
13286        # ancient GNU ld didn't support --whole-archive et. al.
13287        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13288	  $GREP 'no-whole-archive' > /dev/null; then
13289          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13290        else
13291          whole_archive_flag_spec_CXX=
13292        fi
13293      else
13294        with_gnu_ld=no
13295        wlarc=
13296
13297        # A generic and very simple default shared library creation
13298        # command for GNU C++ for the case where it uses the native
13299        # linker, instead of GNU ld.  If possible, this setting should
13300        # overridden to take advantage of the native linker features on
13301        # the platform it is being used on.
13302        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13303      fi
13304
13305      # Commands to make compiler produce verbose output that lists
13306      # what "hidden" libraries, object files and flags are used when
13307      # linking a shared library.
13308      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13309
13310    else
13311      GXX=no
13312      with_gnu_ld=no
13313      wlarc=
13314    fi
13315
13316    # PORTME: fill in a description of your system's C++ link characteristics
13317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13318$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13319    ld_shlibs_CXX=yes
13320    case $host_os in
13321      aix3*)
13322        # FIXME: insert proper C++ library support
13323        ld_shlibs_CXX=no
13324        ;;
13325      aix[4-9]*)
13326        if test ia64 = "$host_cpu"; then
13327          # On IA64, the linker does run time linking by default, so we don't
13328          # have to do anything special.
13329          aix_use_runtimelinking=no
13330          exp_sym_flag='-Bexport'
13331          no_entry_flag=
13332        else
13333          aix_use_runtimelinking=no
13334
13335          # Test if we are trying to use run time linking or normal
13336          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13337          # have runtime linking enabled, and use it for executables.
13338          # For shared libraries, we enable/disable runtime linking
13339          # depending on the kind of the shared library created -
13340          # when "with_aix_soname,aix_use_runtimelinking" is:
13341          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13342          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13343          #            lib.a           static archive
13344          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13345          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13346          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13347          #            lib.a(lib.so.V) shared, rtl:no
13348          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13349          #            lib.a           static archive
13350          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13351	    for ld_flag in $LDFLAGS; do
13352	      case $ld_flag in
13353	      *-brtl*)
13354	        aix_use_runtimelinking=yes
13355	        break
13356	        ;;
13357	      esac
13358	    done
13359	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13360	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13361	      # so we don't have lib.a shared libs to link our executables.
13362	      # We have to force runtime linking in this case.
13363	      aix_use_runtimelinking=yes
13364	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13365	    fi
13366	    ;;
13367          esac
13368
13369          exp_sym_flag='-bexport'
13370          no_entry_flag='-bnoentry'
13371        fi
13372
13373        # When large executables or shared objects are built, AIX ld can
13374        # have problems creating the table of contents.  If linking a library
13375        # or program results in "error TOC overflow" add -mminimal-toc to
13376        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13377        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13378
13379        archive_cmds_CXX=''
13380        hardcode_direct_CXX=yes
13381        hardcode_direct_absolute_CXX=yes
13382        hardcode_libdir_separator_CXX=':'
13383        link_all_deplibs_CXX=yes
13384        file_list_spec_CXX='$wl-f,'
13385        case $with_aix_soname,$aix_use_runtimelinking in
13386        aix,*) ;;	# no import file
13387        svr4,* | *,yes) # use import file
13388          # The Import File defines what to hardcode.
13389          hardcode_direct_CXX=no
13390          hardcode_direct_absolute_CXX=no
13391          ;;
13392        esac
13393
13394        if test yes = "$GXX"; then
13395          case $host_os in aix4.[012]|aix4.[012].*)
13396          # We only want to do this on AIX 4.2 and lower, the check
13397          # below for broken collect2 doesn't work under 4.3+
13398	  collect2name=`$CC -print-prog-name=collect2`
13399	  if test -f "$collect2name" &&
13400	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13401	  then
13402	    # We have reworked collect2
13403	    :
13404	  else
13405	    # We have old collect2
13406	    hardcode_direct_CXX=unsupported
13407	    # It fails to find uninstalled libraries when the uninstalled
13408	    # path is not listed in the libpath.  Setting hardcode_minus_L
13409	    # to unsupported forces relinking
13410	    hardcode_minus_L_CXX=yes
13411	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13412	    hardcode_libdir_separator_CXX=
13413	  fi
13414          esac
13415          shared_flag='-shared'
13416	  if test yes = "$aix_use_runtimelinking"; then
13417	    shared_flag=$shared_flag' $wl-G'
13418	  fi
13419	  # Need to ensure runtime linking is disabled for the traditional
13420	  # shared library, or the linker may eventually find shared libraries
13421	  # /with/ Import File - we do not want to mix them.
13422	  shared_flag_aix='-shared'
13423	  shared_flag_svr4='-shared $wl-G'
13424        else
13425          # not using gcc
13426          if test ia64 = "$host_cpu"; then
13427	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13428	  # chokes on -Wl,-G. The following line is correct:
13429	  shared_flag='-G'
13430          else
13431	    if test yes = "$aix_use_runtimelinking"; then
13432	      shared_flag='$wl-G'
13433	    else
13434	      shared_flag='$wl-bM:SRE'
13435	    fi
13436	    shared_flag_aix='$wl-bM:SRE'
13437	    shared_flag_svr4='$wl-G'
13438          fi
13439        fi
13440
13441        export_dynamic_flag_spec_CXX='$wl-bexpall'
13442        # It seems that -bexpall does not export symbols beginning with
13443        # underscore (_), so it is better to generate a list of symbols to
13444	# export.
13445        always_export_symbols_CXX=yes
13446	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13447          # Warning - without using the other runtime loading flags (-brtl),
13448          # -berok will link without error, but may produce a broken library.
13449          # The "-G" linker flag allows undefined symbols.
13450          no_undefined_flag_CXX='-bernotok'
13451          # Determine the default libpath from the value encoded in an empty
13452          # executable.
13453          if test set = "${lt_cv_aix_libpath+set}"; then
13454  aix_libpath=$lt_cv_aix_libpath
13455else
13456  if ${lt_cv_aix_libpath__CXX+:} false; then :
13457  $as_echo_n "(cached) " >&6
13458else
13459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460/* end confdefs.h.  */
13461
13462int
13463main ()
13464{
13465
13466  ;
13467  return 0;
13468}
13469_ACEOF
13470if ac_fn_cxx_try_link "$LINENO"; then :
13471
13472  lt_aix_libpath_sed='
13473      /Import File Strings/,/^$/ {
13474	  /^0/ {
13475	      s/^0  *\([^ ]*\) *$/\1/
13476	      p
13477	  }
13478      }'
13479  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13480  # Check for a 64-bit object if we didn't find anything.
13481  if test -z "$lt_cv_aix_libpath__CXX"; then
13482    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483  fi
13484fi
13485rm -f core conftest.err conftest.$ac_objext \
13486    conftest$ac_exeext conftest.$ac_ext
13487  if test -z "$lt_cv_aix_libpath__CXX"; then
13488    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13489  fi
13490
13491fi
13492
13493  aix_libpath=$lt_cv_aix_libpath__CXX
13494fi
13495
13496          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13497
13498          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13499        else
13500          if test ia64 = "$host_cpu"; then
13501	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13502	    allow_undefined_flag_CXX="-z nodefs"
13503	    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"
13504          else
13505	    # Determine the default libpath from the value encoded in an
13506	    # empty executable.
13507	    if test set = "${lt_cv_aix_libpath+set}"; then
13508  aix_libpath=$lt_cv_aix_libpath
13509else
13510  if ${lt_cv_aix_libpath__CXX+:} false; then :
13511  $as_echo_n "(cached) " >&6
13512else
13513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514/* end confdefs.h.  */
13515
13516int
13517main ()
13518{
13519
13520  ;
13521  return 0;
13522}
13523_ACEOF
13524if ac_fn_cxx_try_link "$LINENO"; then :
13525
13526  lt_aix_libpath_sed='
13527      /Import File Strings/,/^$/ {
13528	  /^0/ {
13529	      s/^0  *\([^ ]*\) *$/\1/
13530	      p
13531	  }
13532      }'
13533  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13534  # Check for a 64-bit object if we didn't find anything.
13535  if test -z "$lt_cv_aix_libpath__CXX"; then
13536    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13537  fi
13538fi
13539rm -f core conftest.err conftest.$ac_objext \
13540    conftest$ac_exeext conftest.$ac_ext
13541  if test -z "$lt_cv_aix_libpath__CXX"; then
13542    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13543  fi
13544
13545fi
13546
13547  aix_libpath=$lt_cv_aix_libpath__CXX
13548fi
13549
13550	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13551	    # Warning - without using the other run time loading flags,
13552	    # -berok will link without error, but may produce a broken library.
13553	    no_undefined_flag_CXX=' $wl-bernotok'
13554	    allow_undefined_flag_CXX=' $wl-berok'
13555	    if test yes = "$with_gnu_ld"; then
13556	      # We only use this code for GNU lds that support --whole-archive.
13557	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13558	    else
13559	      # Exported symbols can be pulled into shared objects from archives
13560	      whole_archive_flag_spec_CXX='$convenience'
13561	    fi
13562	    archive_cmds_need_lc_CXX=yes
13563	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13564	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13565	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13566	    if test svr4 != "$with_aix_soname"; then
13567	      # This is similar to how AIX traditionally builds its shared
13568	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13569	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13570	    fi
13571	    if test aix != "$with_aix_soname"; then
13572	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13573	    else
13574	      # used by -dlpreopen to get the symbols
13575	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13576	    fi
13577	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13578          fi
13579        fi
13580        ;;
13581
13582      beos*)
13583	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13584	  allow_undefined_flag_CXX=unsupported
13585	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13586	  # support --undefined.  This deserves some investigation.  FIXME
13587	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13588	else
13589	  ld_shlibs_CXX=no
13590	fi
13591	;;
13592
13593      chorus*)
13594        case $cc_basename in
13595          *)
13596	  # FIXME: insert proper C++ library support
13597	  ld_shlibs_CXX=no
13598	  ;;
13599        esac
13600        ;;
13601
13602      cygwin* | mingw* | pw32* | cegcc*)
13603	case $GXX,$cc_basename in
13604	,cl* | no,cl*)
13605	  # Native MSVC
13606	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13607	  # no search path for DLLs.
13608	  hardcode_libdir_flag_spec_CXX=' '
13609	  allow_undefined_flag_CXX=unsupported
13610	  always_export_symbols_CXX=yes
13611	  file_list_spec_CXX='@'
13612	  # Tell ltmain to make .lib files, not .a files.
13613	  libext=lib
13614	  # Tell ltmain to make .dll files, not .so files.
13615	  shrext_cmds=.dll
13616	  # FIXME: Setting linknames here is a bad hack.
13617	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13618	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13619              cp "$export_symbols" "$output_objdir/$soname.def";
13620              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13621            else
13622              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13623            fi~
13624            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13625            linknames='
13626	  # The linker will not automatically build a static lib if we build a DLL.
13627	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13628	  enable_shared_with_static_runtimes_CXX=yes
13629	  # Don't use ranlib
13630	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13631	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13632            lt_tool_outputfile="@TOOL_OUTPUT@"~
13633            case $lt_outputfile in
13634              *.exe|*.EXE) ;;
13635              *)
13636                lt_outputfile=$lt_outputfile.exe
13637                lt_tool_outputfile=$lt_tool_outputfile.exe
13638                ;;
13639            esac~
13640            func_to_tool_file "$lt_outputfile"~
13641            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13642              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13643              $RM "$lt_outputfile.manifest";
13644            fi'
13645	  ;;
13646	*)
13647	  # g++
13648	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13649	  # as there is no search path for DLLs.
13650	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13651	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13652	  allow_undefined_flag_CXX=unsupported
13653	  always_export_symbols_CXX=no
13654	  enable_shared_with_static_runtimes_CXX=yes
13655
13656	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13657	    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'
13658	    # If the export-symbols file already is a .def file, use it as
13659	    # is; otherwise, prepend EXPORTS...
13660	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13661              cp $export_symbols $output_objdir/$soname.def;
13662            else
13663              echo EXPORTS > $output_objdir/$soname.def;
13664              cat $export_symbols >> $output_objdir/$soname.def;
13665            fi~
13666            $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'
13667	  else
13668	    ld_shlibs_CXX=no
13669	  fi
13670	  ;;
13671	esac
13672	;;
13673      darwin* | rhapsody*)
13674
13675
13676  archive_cmds_need_lc_CXX=no
13677  hardcode_direct_CXX=no
13678  hardcode_automatic_CXX=yes
13679  hardcode_shlibpath_var_CXX=unsupported
13680  if test yes = "$lt_cv_ld_force_load"; then
13681    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\"`'
13682
13683  else
13684    whole_archive_flag_spec_CXX=''
13685  fi
13686  link_all_deplibs_CXX=yes
13687  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13688  case $cc_basename in
13689     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13690     *) _lt_dar_can_shared=$GCC ;;
13691  esac
13692  if test yes = "$_lt_dar_can_shared"; then
13693    output_verbose_link_cmd=func_echo_all
13694    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"
13695    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13696    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"
13697    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"
13698       if test yes != "$lt_cv_apple_cc_single_mod"; then
13699      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"
13700      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"
13701    fi
13702
13703  else
13704  ld_shlibs_CXX=no
13705  fi
13706
13707	;;
13708
13709      os2*)
13710	hardcode_libdir_flag_spec_CXX='-L$libdir'
13711	hardcode_minus_L_CXX=yes
13712	allow_undefined_flag_CXX=unsupported
13713	shrext_cmds=.dll
13714	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13715	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13716	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13717	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13718	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13719	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13720	  emximp -o $lib $output_objdir/$libname.def'
13721	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13722	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13723	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13724	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13725	  prefix_cmds="$SED"~
13726	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13727	    prefix_cmds="$prefix_cmds -e 1d";
13728	  fi~
13729	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13730	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13731	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13732	  emximp -o $lib $output_objdir/$libname.def'
13733	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13734	enable_shared_with_static_runtimes_CXX=yes
13735	;;
13736
13737      dgux*)
13738        case $cc_basename in
13739          ec++*)
13740	    # FIXME: insert proper C++ library support
13741	    ld_shlibs_CXX=no
13742	    ;;
13743          ghcx*)
13744	    # Green Hills C++ Compiler
13745	    # FIXME: insert proper C++ library support
13746	    ld_shlibs_CXX=no
13747	    ;;
13748          *)
13749	    # FIXME: insert proper C++ library support
13750	    ld_shlibs_CXX=no
13751	    ;;
13752        esac
13753        ;;
13754
13755      freebsd2.*)
13756        # C++ shared libraries reported to be fairly broken before
13757	# switch to ELF
13758        ld_shlibs_CXX=no
13759        ;;
13760
13761      freebsd-elf*)
13762        archive_cmds_need_lc_CXX=no
13763        ;;
13764
13765      freebsd* | dragonfly*)
13766        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13767        # conventions
13768        ld_shlibs_CXX=yes
13769        ;;
13770
13771      haiku*)
13772        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13773        link_all_deplibs_CXX=yes
13774        ;;
13775
13776      hpux9*)
13777        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13778        hardcode_libdir_separator_CXX=:
13779        export_dynamic_flag_spec_CXX='$wl-E'
13780        hardcode_direct_CXX=yes
13781        hardcode_minus_L_CXX=yes # Not in the search PATH,
13782				             # but as the default
13783				             # location of the library.
13784
13785        case $cc_basename in
13786          CC*)
13787            # FIXME: insert proper C++ library support
13788            ld_shlibs_CXX=no
13789            ;;
13790          aCC*)
13791            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13792            # Commands to make compiler produce verbose output that lists
13793            # what "hidden" libraries, object files and flags are used when
13794            # linking a shared library.
13795            #
13796            # There doesn't appear to be a way to prevent this compiler from
13797            # explicitly linking system object files so we need to strip them
13798            # from the output so that they don't get included in the library
13799            # dependencies.
13800            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"'
13801            ;;
13802          *)
13803            if test yes = "$GXX"; then
13804              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13805            else
13806              # FIXME: insert proper C++ library support
13807              ld_shlibs_CXX=no
13808            fi
13809            ;;
13810        esac
13811        ;;
13812
13813      hpux10*|hpux11*)
13814        if test no = "$with_gnu_ld"; then
13815	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13816	  hardcode_libdir_separator_CXX=:
13817
13818          case $host_cpu in
13819            hppa*64*|ia64*)
13820              ;;
13821            *)
13822	      export_dynamic_flag_spec_CXX='$wl-E'
13823              ;;
13824          esac
13825        fi
13826        case $host_cpu in
13827          hppa*64*|ia64*)
13828            hardcode_direct_CXX=no
13829            hardcode_shlibpath_var_CXX=no
13830            ;;
13831          *)
13832            hardcode_direct_CXX=yes
13833            hardcode_direct_absolute_CXX=yes
13834            hardcode_minus_L_CXX=yes # Not in the search PATH,
13835					         # but as the default
13836					         # location of the library.
13837            ;;
13838        esac
13839
13840        case $cc_basename in
13841          CC*)
13842	    # FIXME: insert proper C++ library support
13843	    ld_shlibs_CXX=no
13844	    ;;
13845          aCC*)
13846	    case $host_cpu in
13847	      hppa*64*)
13848	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849	        ;;
13850	      ia64*)
13851	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13852	        ;;
13853	      *)
13854	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13855	        ;;
13856	    esac
13857	    # Commands to make compiler produce verbose output that lists
13858	    # what "hidden" libraries, object files and flags are used when
13859	    # linking a shared library.
13860	    #
13861	    # There doesn't appear to be a way to prevent this compiler from
13862	    # explicitly linking system object files so we need to strip them
13863	    # from the output so that they don't get included in the library
13864	    # dependencies.
13865	    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"'
13866	    ;;
13867          *)
13868	    if test yes = "$GXX"; then
13869	      if test no = "$with_gnu_ld"; then
13870	        case $host_cpu in
13871	          hppa*64*)
13872	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13873	            ;;
13874	          ia64*)
13875	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13876	            ;;
13877	          *)
13878	            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'
13879	            ;;
13880	        esac
13881	      fi
13882	    else
13883	      # FIXME: insert proper C++ library support
13884	      ld_shlibs_CXX=no
13885	    fi
13886	    ;;
13887        esac
13888        ;;
13889
13890      interix[3-9]*)
13891	hardcode_direct_CXX=no
13892	hardcode_shlibpath_var_CXX=no
13893	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13894	export_dynamic_flag_spec_CXX='$wl-E'
13895	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13896	# Instead, shared libraries are loaded at an image base (0x10000000 by
13897	# default) and relocated if they conflict, which is a slow very memory
13898	# consuming and fragmenting process.  To avoid this, we pick a random,
13899	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13900	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13901	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'
13902	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'
13903	;;
13904      irix5* | irix6*)
13905        case $cc_basename in
13906          CC*)
13907	    # SGI C++
13908	    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'
13909
13910	    # Archives containing C++ object files must be created using
13911	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13912	    # necessary to make sure instantiated templates are included
13913	    # in the archive.
13914	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13915	    ;;
13916          *)
13917	    if test yes = "$GXX"; then
13918	      if test no = "$with_gnu_ld"; then
13919	        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'
13920	      else
13921	        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'
13922	      fi
13923	    fi
13924	    link_all_deplibs_CXX=yes
13925	    ;;
13926        esac
13927        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13928        hardcode_libdir_separator_CXX=:
13929        inherit_rpath_CXX=yes
13930        ;;
13931
13932      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13933        case $cc_basename in
13934          KCC*)
13935	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13936
13937	    # KCC will only create a shared library if the output file
13938	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13939	    # to its proper name (with version) after linking.
13940	    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'
13941	    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'
13942	    # Commands to make compiler produce verbose output that lists
13943	    # what "hidden" libraries, object files and flags are used when
13944	    # linking a shared library.
13945	    #
13946	    # There doesn't appear to be a way to prevent this compiler from
13947	    # explicitly linking system object files so we need to strip them
13948	    # from the output so that they don't get included in the library
13949	    # dependencies.
13950	    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"'
13951
13952	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13953	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13954
13955	    # Archives containing C++ object files must be created using
13956	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13957	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13958	    ;;
13959	  icpc* | ecpc* )
13960	    # Intel C++
13961	    with_gnu_ld=yes
13962	    # version 8.0 and above of icpc choke on multiply defined symbols
13963	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13964	    # earlier do not add the objects themselves.
13965	    case `$CC -V 2>&1` in
13966	      *"Version 7."*)
13967	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13968		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'
13969		;;
13970	      *)  # Version 8.0 or newer
13971	        tmp_idyn=
13972	        case $host_cpu in
13973		  ia64*) tmp_idyn=' -i_dynamic';;
13974		esac
13975	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13976		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'
13977		;;
13978	    esac
13979	    archive_cmds_need_lc_CXX=no
13980	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13981	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13982	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13983	    ;;
13984          pgCC* | pgcpp*)
13985            # Portland Group C++ compiler
13986	    case `$CC -V` in
13987	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13988	      prelink_cmds_CXX='tpldir=Template.dir~
13989               rm -rf $tpldir~
13990               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13991               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13992	      old_archive_cmds_CXX='tpldir=Template.dir~
13993                rm -rf $tpldir~
13994                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13995                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13996                $RANLIB $oldlib'
13997	      archive_cmds_CXX='tpldir=Template.dir~
13998                rm -rf $tpldir~
13999                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14000                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14001	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14002                rm -rf $tpldir~
14003                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14004                $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'
14005	      ;;
14006	    *) # Version 6 and above use weak symbols
14007	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14008	      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'
14009	      ;;
14010	    esac
14011
14012	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14013	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14014	    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'
14015            ;;
14016	  cxx*)
14017	    # Compaq C++
14018	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14019	    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'
14020
14021	    runpath_var=LD_RUN_PATH
14022	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14023	    hardcode_libdir_separator_CXX=:
14024
14025	    # Commands to make compiler produce verbose output that lists
14026	    # what "hidden" libraries, object files and flags are used when
14027	    # linking a shared library.
14028	    #
14029	    # There doesn't appear to be a way to prevent this compiler from
14030	    # explicitly linking system object files so we need to strip them
14031	    # from the output so that they don't get included in the library
14032	    # dependencies.
14033	    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'
14034	    ;;
14035	  xl* | mpixl* | bgxl*)
14036	    # IBM XL 8.0 on PPC, with GNU ld
14037	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14038	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14039	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14040	    if test yes = "$supports_anon_versioning"; then
14041	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14042                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14043                echo "local: *; };" >> $output_objdir/$libname.ver~
14044                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14045	    fi
14046	    ;;
14047	  *)
14048	    case `$CC -V 2>&1 | sed 5q` in
14049	    *Sun\ C*)
14050	      # Sun C++ 5.9
14051	      no_undefined_flag_CXX=' -zdefs'
14052	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14053	      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'
14054	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14055	      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'
14056	      compiler_needs_object_CXX=yes
14057
14058	      # Not sure whether something based on
14059	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14060	      # would be better.
14061	      output_verbose_link_cmd='func_echo_all'
14062
14063	      # Archives containing C++ object files must be created using
14064	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14065	      # necessary to make sure instantiated templates are included
14066	      # in the archive.
14067	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14068	      ;;
14069	    esac
14070	    ;;
14071	esac
14072	;;
14073
14074      lynxos*)
14075        # FIXME: insert proper C++ library support
14076	ld_shlibs_CXX=no
14077	;;
14078
14079      m88k*)
14080        # FIXME: insert proper C++ library support
14081        ld_shlibs_CXX=no
14082	;;
14083
14084      mvs*)
14085        case $cc_basename in
14086          cxx*)
14087	    # FIXME: insert proper C++ library support
14088	    ld_shlibs_CXX=no
14089	    ;;
14090	  *)
14091	    # FIXME: insert proper C++ library support
14092	    ld_shlibs_CXX=no
14093	    ;;
14094	esac
14095	;;
14096
14097      netbsd*)
14098        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14099	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14100	  wlarc=
14101	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14102	  hardcode_direct_CXX=yes
14103	  hardcode_shlibpath_var_CXX=no
14104	fi
14105	# Workaround some broken pre-1.5 toolchains
14106	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14107	;;
14108
14109      *nto* | *qnx*)
14110        ld_shlibs_CXX=yes
14111	;;
14112
14113      openbsd* | bitrig*)
14114	if test -f /usr/libexec/ld.so; then
14115	  hardcode_direct_CXX=yes
14116	  hardcode_shlibpath_var_CXX=no
14117	  hardcode_direct_absolute_CXX=yes
14118	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14119	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14120	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14121	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14122	    export_dynamic_flag_spec_CXX='$wl-E'
14123	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14124	  fi
14125	  output_verbose_link_cmd=func_echo_all
14126	else
14127	  ld_shlibs_CXX=no
14128	fi
14129	;;
14130
14131      osf3* | osf4* | osf5*)
14132        case $cc_basename in
14133          KCC*)
14134	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14135
14136	    # KCC will only create a shared library if the output file
14137	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14138	    # to its proper name (with version) after linking.
14139	    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'
14140
14141	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14142	    hardcode_libdir_separator_CXX=:
14143
14144	    # Archives containing C++ object files must be created using
14145	    # the KAI C++ compiler.
14146	    case $host in
14147	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14148	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14149	    esac
14150	    ;;
14151          RCC*)
14152	    # Rational C++ 2.4.1
14153	    # FIXME: insert proper C++ library support
14154	    ld_shlibs_CXX=no
14155	    ;;
14156          cxx*)
14157	    case $host in
14158	      osf3*)
14159	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14160	        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'
14161	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14162		;;
14163	      *)
14164	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14165	        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'
14166	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14167                  echo "-hidden">> $lib.exp~
14168                  $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~
14169                  $RM $lib.exp'
14170	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14171		;;
14172	    esac
14173
14174	    hardcode_libdir_separator_CXX=:
14175
14176	    # Commands to make compiler produce verbose output that lists
14177	    # what "hidden" libraries, object files and flags are used when
14178	    # linking a shared library.
14179	    #
14180	    # There doesn't appear to be a way to prevent this compiler from
14181	    # explicitly linking system object files so we need to strip them
14182	    # from the output so that they don't get included in the library
14183	    # dependencies.
14184	    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"'
14185	    ;;
14186	  *)
14187	    if test yes,no = "$GXX,$with_gnu_ld"; then
14188	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14189	      case $host in
14190	        osf3*)
14191	          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'
14192		  ;;
14193	        *)
14194	          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'
14195		  ;;
14196	      esac
14197
14198	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14199	      hardcode_libdir_separator_CXX=:
14200
14201	      # Commands to make compiler produce verbose output that lists
14202	      # what "hidden" libraries, object files and flags are used when
14203	      # linking a shared library.
14204	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14205
14206	    else
14207	      # FIXME: insert proper C++ library support
14208	      ld_shlibs_CXX=no
14209	    fi
14210	    ;;
14211        esac
14212        ;;
14213
14214      psos*)
14215        # FIXME: insert proper C++ library support
14216        ld_shlibs_CXX=no
14217        ;;
14218
14219      sunos4*)
14220        case $cc_basename in
14221          CC*)
14222	    # Sun C++ 4.x
14223	    # FIXME: insert proper C++ library support
14224	    ld_shlibs_CXX=no
14225	    ;;
14226          lcc*)
14227	    # Lucid
14228	    # FIXME: insert proper C++ library support
14229	    ld_shlibs_CXX=no
14230	    ;;
14231          *)
14232	    # FIXME: insert proper C++ library support
14233	    ld_shlibs_CXX=no
14234	    ;;
14235        esac
14236        ;;
14237
14238      solaris*)
14239        case $cc_basename in
14240          CC* | sunCC*)
14241	    # Sun C++ 4.2, 5.x and Centerline C++
14242            archive_cmds_need_lc_CXX=yes
14243	    no_undefined_flag_CXX=' -zdefs'
14244	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14245	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14246              $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'
14247
14248	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14249	    hardcode_shlibpath_var_CXX=no
14250	    case $host_os in
14251	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14252	      *)
14253		# The compiler driver will combine and reorder linker options,
14254		# but understands '-z linker_flag'.
14255	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14256		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14257	        ;;
14258	    esac
14259	    link_all_deplibs_CXX=yes
14260
14261	    output_verbose_link_cmd='func_echo_all'
14262
14263	    # Archives containing C++ object files must be created using
14264	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14265	    # necessary to make sure instantiated templates are included
14266	    # in the archive.
14267	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14268	    ;;
14269          gcx*)
14270	    # Green Hills C++ Compiler
14271	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14272
14273	    # The C++ compiler must be used to create the archive.
14274	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14275	    ;;
14276          *)
14277	    # GNU C++ compiler with Solaris linker
14278	    if test yes,no = "$GXX,$with_gnu_ld"; then
14279	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14280	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14281	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14282	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14283                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14284
14285	        # Commands to make compiler produce verbose output that lists
14286	        # what "hidden" libraries, object files and flags are used when
14287	        # linking a shared library.
14288	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14289	      else
14290	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14291	        # platform.
14292	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14293	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14294                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14295
14296	        # Commands to make compiler produce verbose output that lists
14297	        # what "hidden" libraries, object files and flags are used when
14298	        # linking a shared library.
14299	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14300	      fi
14301
14302	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14303	      case $host_os in
14304		solaris2.[0-5] | solaris2.[0-5].*) ;;
14305		*)
14306		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14307		  ;;
14308	      esac
14309	    fi
14310	    ;;
14311        esac
14312        ;;
14313
14314    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14315      no_undefined_flag_CXX='$wl-z,text'
14316      archive_cmds_need_lc_CXX=no
14317      hardcode_shlibpath_var_CXX=no
14318      runpath_var='LD_RUN_PATH'
14319
14320      case $cc_basename in
14321        CC*)
14322	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324	  ;;
14325	*)
14326	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14328	  ;;
14329      esac
14330      ;;
14331
14332      sysv5* | sco3.2v5* | sco5v6*)
14333	# Note: We CANNOT use -z defs as we might desire, because we do not
14334	# link with -lc, and that would cause any symbols used from libc to
14335	# always be unresolved, which means just about no library would
14336	# ever link correctly.  If we're not using GNU ld we use -z text
14337	# though, which does catch some bad symbols but isn't as heavy-handed
14338	# as -z defs.
14339	no_undefined_flag_CXX='$wl-z,text'
14340	allow_undefined_flag_CXX='$wl-z,nodefs'
14341	archive_cmds_need_lc_CXX=no
14342	hardcode_shlibpath_var_CXX=no
14343	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14344	hardcode_libdir_separator_CXX=':'
14345	link_all_deplibs_CXX=yes
14346	export_dynamic_flag_spec_CXX='$wl-Bexport'
14347	runpath_var='LD_RUN_PATH'
14348
14349	case $cc_basename in
14350          CC*)
14351	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14352	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14353	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14354              '"$old_archive_cmds_CXX"
14355	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14356              '"$reload_cmds_CXX"
14357	    ;;
14358	  *)
14359	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14360	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14361	    ;;
14362	esac
14363      ;;
14364
14365      tandem*)
14366        case $cc_basename in
14367          NCC*)
14368	    # NonStop-UX NCC 3.20
14369	    # FIXME: insert proper C++ library support
14370	    ld_shlibs_CXX=no
14371	    ;;
14372          *)
14373	    # FIXME: insert proper C++ library support
14374	    ld_shlibs_CXX=no
14375	    ;;
14376        esac
14377        ;;
14378
14379      vxworks*)
14380        # FIXME: insert proper C++ library support
14381        ld_shlibs_CXX=no
14382        ;;
14383
14384      *)
14385        # FIXME: insert proper C++ library support
14386        ld_shlibs_CXX=no
14387        ;;
14388    esac
14389
14390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14391$as_echo "$ld_shlibs_CXX" >&6; }
14392    test no = "$ld_shlibs_CXX" && can_build_shared=no
14393
14394    GCC_CXX=$GXX
14395    LD_CXX=$LD
14396
14397    ## CAVEAT EMPTOR:
14398    ## There is no encapsulation within the following macros, do not change
14399    ## the running order or otherwise move them around unless you know exactly
14400    ## what you are doing...
14401    # Dependencies to place before and after the object being linked:
14402predep_objects_CXX=
14403postdep_objects_CXX=
14404predeps_CXX=
14405postdeps_CXX=
14406compiler_lib_search_path_CXX=
14407
14408cat > conftest.$ac_ext <<_LT_EOF
14409class Foo
14410{
14411public:
14412  Foo (void) { a = 0; }
14413private:
14414  int a;
14415};
14416_LT_EOF
14417
14418
14419_lt_libdeps_save_CFLAGS=$CFLAGS
14420case "$CC $CFLAGS " in #(
14421*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14422*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14423*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14424esac
14425
14426if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14427  (eval $ac_compile) 2>&5
14428  ac_status=$?
14429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430  test $ac_status = 0; }; then
14431  # Parse the compiler output and extract the necessary
14432  # objects, libraries and library flags.
14433
14434  # Sentinel used to keep track of whether or not we are before
14435  # the conftest object file.
14436  pre_test_object_deps_done=no
14437
14438  for p in `eval "$output_verbose_link_cmd"`; do
14439    case $prev$p in
14440
14441    -L* | -R* | -l*)
14442       # Some compilers place space between "-{L,R}" and the path.
14443       # Remove the space.
14444       if test x-L = "$p" ||
14445          test x-R = "$p"; then
14446	 prev=$p
14447	 continue
14448       fi
14449
14450       # Expand the sysroot to ease extracting the directories later.
14451       if test -z "$prev"; then
14452         case $p in
14453         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14454         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14455         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14456         esac
14457       fi
14458       case $p in
14459       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14460       esac
14461       if test no = "$pre_test_object_deps_done"; then
14462	 case $prev in
14463	 -L | -R)
14464	   # Internal compiler library paths should come after those
14465	   # provided the user.  The postdeps already come after the
14466	   # user supplied libs so there is no need to process them.
14467	   if test -z "$compiler_lib_search_path_CXX"; then
14468	     compiler_lib_search_path_CXX=$prev$p
14469	   else
14470	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14471	   fi
14472	   ;;
14473	 # The "-l" case would never come before the object being
14474	 # linked, so don't bother handling this case.
14475	 esac
14476       else
14477	 if test -z "$postdeps_CXX"; then
14478	   postdeps_CXX=$prev$p
14479	 else
14480	   postdeps_CXX="${postdeps_CXX} $prev$p"
14481	 fi
14482       fi
14483       prev=
14484       ;;
14485
14486    *.lto.$objext) ;; # Ignore GCC LTO objects
14487    *.$objext)
14488       # This assumes that the test object file only shows up
14489       # once in the compiler output.
14490       if test "$p" = "conftest.$objext"; then
14491	 pre_test_object_deps_done=yes
14492	 continue
14493       fi
14494
14495       if test no = "$pre_test_object_deps_done"; then
14496	 if test -z "$predep_objects_CXX"; then
14497	   predep_objects_CXX=$p
14498	 else
14499	   predep_objects_CXX="$predep_objects_CXX $p"
14500	 fi
14501       else
14502	 if test -z "$postdep_objects_CXX"; then
14503	   postdep_objects_CXX=$p
14504	 else
14505	   postdep_objects_CXX="$postdep_objects_CXX $p"
14506	 fi
14507       fi
14508       ;;
14509
14510    *) ;; # Ignore the rest.
14511
14512    esac
14513  done
14514
14515  # Clean up.
14516  rm -f a.out a.exe
14517else
14518  echo "libtool.m4: error: problem compiling CXX test program"
14519fi
14520
14521$RM -f confest.$objext
14522CFLAGS=$_lt_libdeps_save_CFLAGS
14523
14524# PORTME: override above test on systems where it is broken
14525case $host_os in
14526interix[3-9]*)
14527  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14528  # hack all around it, let's just trust "g++" to DTRT.
14529  predep_objects_CXX=
14530  postdep_objects_CXX=
14531  postdeps_CXX=
14532  ;;
14533esac
14534
14535
14536case " $postdeps_CXX " in
14537*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14538esac
14539 compiler_lib_search_dirs_CXX=
14540if test -n "${compiler_lib_search_path_CXX}"; then
14541 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14542fi
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574    lt_prog_compiler_wl_CXX=
14575lt_prog_compiler_pic_CXX=
14576lt_prog_compiler_static_CXX=
14577
14578
14579  # C++ specific cases for pic, static, wl, etc.
14580  if test yes = "$GXX"; then
14581    lt_prog_compiler_wl_CXX='-Wl,'
14582    lt_prog_compiler_static_CXX='-static'
14583
14584    case $host_os in
14585    aix*)
14586      # All AIX code is PIC.
14587      if test ia64 = "$host_cpu"; then
14588	# AIX 5 now supports IA64 processor
14589	lt_prog_compiler_static_CXX='-Bstatic'
14590      fi
14591      lt_prog_compiler_pic_CXX='-fPIC'
14592      ;;
14593
14594    amigaos*)
14595      case $host_cpu in
14596      powerpc)
14597            # see comment about AmigaOS4 .so support
14598            lt_prog_compiler_pic_CXX='-fPIC'
14599        ;;
14600      m68k)
14601            # FIXME: we need at least 68020 code to build shared libraries, but
14602            # adding the '-m68020' flag to GCC prevents building anything better,
14603            # like '-m68040'.
14604            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14605        ;;
14606      esac
14607      ;;
14608
14609    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14610      # PIC is the default for these OSes.
14611      ;;
14612    mingw* | cygwin* | os2* | pw32* | cegcc*)
14613      # This hack is so that the source file can tell whether it is being
14614      # built for inclusion in a dll (and should export symbols for example).
14615      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14616      # (--disable-auto-import) libraries
14617      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14618      case $host_os in
14619      os2*)
14620	lt_prog_compiler_static_CXX='$wl-static'
14621	;;
14622      esac
14623      ;;
14624    darwin* | rhapsody*)
14625      # PIC is the default on this platform
14626      # Common symbols not allowed in MH_DYLIB files
14627      lt_prog_compiler_pic_CXX='-fno-common'
14628      ;;
14629    *djgpp*)
14630      # DJGPP does not support shared libraries at all
14631      lt_prog_compiler_pic_CXX=
14632      ;;
14633    haiku*)
14634      # PIC is the default for Haiku.
14635      # The "-static" flag exists, but is broken.
14636      lt_prog_compiler_static_CXX=
14637      ;;
14638    interix[3-9]*)
14639      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14640      # Instead, we relocate shared libraries at runtime.
14641      ;;
14642    sysv4*MP*)
14643      if test -d /usr/nec; then
14644	lt_prog_compiler_pic_CXX=-Kconform_pic
14645      fi
14646      ;;
14647    hpux*)
14648      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14649      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14650      # sets the default TLS model and affects inlining.
14651      case $host_cpu in
14652      hppa*64*)
14653	;;
14654      *)
14655	lt_prog_compiler_pic_CXX='-fPIC'
14656	;;
14657      esac
14658      ;;
14659    *qnx* | *nto*)
14660      # QNX uses GNU C++, but need to define -shared option too, otherwise
14661      # it will coredump.
14662      lt_prog_compiler_pic_CXX='-fPIC -shared'
14663      ;;
14664    *)
14665      lt_prog_compiler_pic_CXX='-fPIC'
14666      ;;
14667    esac
14668  else
14669    case $host_os in
14670      aix[4-9]*)
14671	# All AIX code is PIC.
14672	if test ia64 = "$host_cpu"; then
14673	  # AIX 5 now supports IA64 processor
14674	  lt_prog_compiler_static_CXX='-Bstatic'
14675	else
14676	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14677	fi
14678	;;
14679      chorus*)
14680	case $cc_basename in
14681	cxch68*)
14682	  # Green Hills C++ Compiler
14683	  # _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"
14684	  ;;
14685	esac
14686	;;
14687      mingw* | cygwin* | os2* | pw32* | cegcc*)
14688	# This hack is so that the source file can tell whether it is being
14689	# built for inclusion in a dll (and should export symbols for example).
14690	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14691	;;
14692      dgux*)
14693	case $cc_basename in
14694	  ec++*)
14695	    lt_prog_compiler_pic_CXX='-KPIC'
14696	    ;;
14697	  ghcx*)
14698	    # Green Hills C++ Compiler
14699	    lt_prog_compiler_pic_CXX='-pic'
14700	    ;;
14701	  *)
14702	    ;;
14703	esac
14704	;;
14705      freebsd* | dragonfly*)
14706	# FreeBSD uses GNU C++
14707	;;
14708      hpux9* | hpux10* | hpux11*)
14709	case $cc_basename in
14710	  CC*)
14711	    lt_prog_compiler_wl_CXX='-Wl,'
14712	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14713	    if test ia64 != "$host_cpu"; then
14714	      lt_prog_compiler_pic_CXX='+Z'
14715	    fi
14716	    ;;
14717	  aCC*)
14718	    lt_prog_compiler_wl_CXX='-Wl,'
14719	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14720	    case $host_cpu in
14721	    hppa*64*|ia64*)
14722	      # +Z the default
14723	      ;;
14724	    *)
14725	      lt_prog_compiler_pic_CXX='+Z'
14726	      ;;
14727	    esac
14728	    ;;
14729	  *)
14730	    ;;
14731	esac
14732	;;
14733      interix*)
14734	# This is c89, which is MS Visual C++ (no shared libs)
14735	# Anyone wants to do a port?
14736	;;
14737      irix5* | irix6* | nonstopux*)
14738	case $cc_basename in
14739	  CC*)
14740	    lt_prog_compiler_wl_CXX='-Wl,'
14741	    lt_prog_compiler_static_CXX='-non_shared'
14742	    # CC pic flag -KPIC is the default.
14743	    ;;
14744	  *)
14745	    ;;
14746	esac
14747	;;
14748      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14749	case $cc_basename in
14750	  KCC*)
14751	    # KAI C++ Compiler
14752	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14753	    lt_prog_compiler_pic_CXX='-fPIC'
14754	    ;;
14755	  ecpc* )
14756	    # old Intel C++ for x86_64, which still supported -KPIC.
14757	    lt_prog_compiler_wl_CXX='-Wl,'
14758	    lt_prog_compiler_pic_CXX='-KPIC'
14759	    lt_prog_compiler_static_CXX='-static'
14760	    ;;
14761	  icpc* )
14762	    # Intel C++, used to be incompatible with GCC.
14763	    # ICC 10 doesn't accept -KPIC any more.
14764	    lt_prog_compiler_wl_CXX='-Wl,'
14765	    lt_prog_compiler_pic_CXX='-fPIC'
14766	    lt_prog_compiler_static_CXX='-static'
14767	    ;;
14768	  pgCC* | pgcpp*)
14769	    # Portland Group C++ compiler
14770	    lt_prog_compiler_wl_CXX='-Wl,'
14771	    lt_prog_compiler_pic_CXX='-fpic'
14772	    lt_prog_compiler_static_CXX='-Bstatic'
14773	    ;;
14774	  cxx*)
14775	    # Compaq C++
14776	    # Make sure the PIC flag is empty.  It appears that all Alpha
14777	    # Linux and Compaq Tru64 Unix objects are PIC.
14778	    lt_prog_compiler_pic_CXX=
14779	    lt_prog_compiler_static_CXX='-non_shared'
14780	    ;;
14781	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14782	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14783	    lt_prog_compiler_wl_CXX='-Wl,'
14784	    lt_prog_compiler_pic_CXX='-qpic'
14785	    lt_prog_compiler_static_CXX='-qstaticlink'
14786	    ;;
14787	  *)
14788	    case `$CC -V 2>&1 | sed 5q` in
14789	    *Sun\ C*)
14790	      # Sun C++ 5.9
14791	      lt_prog_compiler_pic_CXX='-KPIC'
14792	      lt_prog_compiler_static_CXX='-Bstatic'
14793	      lt_prog_compiler_wl_CXX='-Qoption ld '
14794	      ;;
14795	    esac
14796	    ;;
14797	esac
14798	;;
14799      lynxos*)
14800	;;
14801      m88k*)
14802	;;
14803      mvs*)
14804	case $cc_basename in
14805	  cxx*)
14806	    lt_prog_compiler_pic_CXX='-W c,exportall'
14807	    ;;
14808	  *)
14809	    ;;
14810	esac
14811	;;
14812      netbsd* | netbsdelf*-gnu)
14813	;;
14814      *qnx* | *nto*)
14815        # QNX uses GNU C++, but need to define -shared option too, otherwise
14816        # it will coredump.
14817        lt_prog_compiler_pic_CXX='-fPIC -shared'
14818        ;;
14819      osf3* | osf4* | osf5*)
14820	case $cc_basename in
14821	  KCC*)
14822	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14823	    ;;
14824	  RCC*)
14825	    # Rational C++ 2.4.1
14826	    lt_prog_compiler_pic_CXX='-pic'
14827	    ;;
14828	  cxx*)
14829	    # Digital/Compaq C++
14830	    lt_prog_compiler_wl_CXX='-Wl,'
14831	    # Make sure the PIC flag is empty.  It appears that all Alpha
14832	    # Linux and Compaq Tru64 Unix objects are PIC.
14833	    lt_prog_compiler_pic_CXX=
14834	    lt_prog_compiler_static_CXX='-non_shared'
14835	    ;;
14836	  *)
14837	    ;;
14838	esac
14839	;;
14840      psos*)
14841	;;
14842      solaris*)
14843	case $cc_basename in
14844	  CC* | sunCC*)
14845	    # Sun C++ 4.2, 5.x and Centerline C++
14846	    lt_prog_compiler_pic_CXX='-KPIC'
14847	    lt_prog_compiler_static_CXX='-Bstatic'
14848	    lt_prog_compiler_wl_CXX='-Qoption ld '
14849	    ;;
14850	  gcx*)
14851	    # Green Hills C++ Compiler
14852	    lt_prog_compiler_pic_CXX='-PIC'
14853	    ;;
14854	  *)
14855	    ;;
14856	esac
14857	;;
14858      sunos4*)
14859	case $cc_basename in
14860	  CC*)
14861	    # Sun C++ 4.x
14862	    lt_prog_compiler_pic_CXX='-pic'
14863	    lt_prog_compiler_static_CXX='-Bstatic'
14864	    ;;
14865	  lcc*)
14866	    # Lucid
14867	    lt_prog_compiler_pic_CXX='-pic'
14868	    ;;
14869	  *)
14870	    ;;
14871	esac
14872	;;
14873      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14874	case $cc_basename in
14875	  CC*)
14876	    lt_prog_compiler_wl_CXX='-Wl,'
14877	    lt_prog_compiler_pic_CXX='-KPIC'
14878	    lt_prog_compiler_static_CXX='-Bstatic'
14879	    ;;
14880	esac
14881	;;
14882      tandem*)
14883	case $cc_basename in
14884	  NCC*)
14885	    # NonStop-UX NCC 3.20
14886	    lt_prog_compiler_pic_CXX='-KPIC'
14887	    ;;
14888	  *)
14889	    ;;
14890	esac
14891	;;
14892      vxworks*)
14893	;;
14894      *)
14895	lt_prog_compiler_can_build_shared_CXX=no
14896	;;
14897    esac
14898  fi
14899
14900case $host_os in
14901  # For platforms that do not support PIC, -DPIC is meaningless:
14902  *djgpp*)
14903    lt_prog_compiler_pic_CXX=
14904    ;;
14905  *)
14906    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14907    ;;
14908esac
14909
14910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14911$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14912if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14913  $as_echo_n "(cached) " >&6
14914else
14915  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14916fi
14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14918$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14919lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14920
14921#
14922# Check to make sure the PIC flag actually works.
14923#
14924if test -n "$lt_prog_compiler_pic_CXX"; then
14925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14926$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14927if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14928  $as_echo_n "(cached) " >&6
14929else
14930  lt_cv_prog_compiler_pic_works_CXX=no
14931   ac_outfile=conftest.$ac_objext
14932   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14933   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14934   # Insert the option either (1) after the last *FLAGS variable, or
14935   # (2) before a word containing "conftest.", or (3) at the end.
14936   # Note that $ac_compile itself does not contain backslashes and begins
14937   # with a dollar sign (not a hyphen), so the echo should work correctly.
14938   # The option is referenced via a variable to avoid confusing sed.
14939   lt_compile=`echo "$ac_compile" | $SED \
14940   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14941   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14942   -e 's:$: $lt_compiler_flag:'`
14943   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14944   (eval "$lt_compile" 2>conftest.err)
14945   ac_status=$?
14946   cat conftest.err >&5
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   if (exit $ac_status) && test -s "$ac_outfile"; then
14949     # The compiler can only warn and ignore the option if not recognized
14950     # So say no if there are warnings other than the usual output.
14951     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14952     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14953     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14954       lt_cv_prog_compiler_pic_works_CXX=yes
14955     fi
14956   fi
14957   $RM conftest*
14958
14959fi
14960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14961$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14962
14963if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14964    case $lt_prog_compiler_pic_CXX in
14965     "" | " "*) ;;
14966     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14967     esac
14968else
14969    lt_prog_compiler_pic_CXX=
14970     lt_prog_compiler_can_build_shared_CXX=no
14971fi
14972
14973fi
14974
14975
14976
14977
14978
14979#
14980# Check to make sure the static flag actually works.
14981#
14982wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14984$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14985if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14986  $as_echo_n "(cached) " >&6
14987else
14988  lt_cv_prog_compiler_static_works_CXX=no
14989   save_LDFLAGS=$LDFLAGS
14990   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14991   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14992   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14993     # The linker can only warn and ignore the option if not recognized
14994     # So say no if there are warnings
14995     if test -s conftest.err; then
14996       # Append any errors to the config.log.
14997       cat conftest.err 1>&5
14998       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14999       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15000       if diff conftest.exp conftest.er2 >/dev/null; then
15001         lt_cv_prog_compiler_static_works_CXX=yes
15002       fi
15003     else
15004       lt_cv_prog_compiler_static_works_CXX=yes
15005     fi
15006   fi
15007   $RM -r conftest*
15008   LDFLAGS=$save_LDFLAGS
15009
15010fi
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15012$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15013
15014if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15015    :
15016else
15017    lt_prog_compiler_static_CXX=
15018fi
15019
15020
15021
15022
15023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15025if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15026  $as_echo_n "(cached) " >&6
15027else
15028  lt_cv_prog_compiler_c_o_CXX=no
15029   $RM -r conftest 2>/dev/null
15030   mkdir conftest
15031   cd conftest
15032   mkdir out
15033   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15034
15035   lt_compiler_flag="-o out/conftest2.$ac_objext"
15036   # Insert the option either (1) after the last *FLAGS variable, or
15037   # (2) before a word containing "conftest.", or (3) at the end.
15038   # Note that $ac_compile itself does not contain backslashes and begins
15039   # with a dollar sign (not a hyphen), so the echo should work correctly.
15040   lt_compile=`echo "$ac_compile" | $SED \
15041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15043   -e 's:$: $lt_compiler_flag:'`
15044   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15045   (eval "$lt_compile" 2>out/conftest.err)
15046   ac_status=$?
15047   cat out/conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15050   then
15051     # The compiler can only warn and ignore the option if not recognized
15052     # So say no if there are warnings
15053     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15054     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15055     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15056       lt_cv_prog_compiler_c_o_CXX=yes
15057     fi
15058   fi
15059   chmod u+w . 2>&5
15060   $RM conftest*
15061   # SGI C++ compiler will create directory out/ii_files/ for
15062   # template instantiation
15063   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15064   $RM out/* && rmdir out
15065   cd ..
15066   $RM -r conftest
15067   $RM conftest*
15068
15069fi
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15071$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15072
15073
15074
15075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15076$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15077if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15078  $as_echo_n "(cached) " >&6
15079else
15080  lt_cv_prog_compiler_c_o_CXX=no
15081   $RM -r conftest 2>/dev/null
15082   mkdir conftest
15083   cd conftest
15084   mkdir out
15085   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15086
15087   lt_compiler_flag="-o out/conftest2.$ac_objext"
15088   # Insert the option either (1) after the last *FLAGS variable, or
15089   # (2) before a word containing "conftest.", or (3) at the end.
15090   # Note that $ac_compile itself does not contain backslashes and begins
15091   # with a dollar sign (not a hyphen), so the echo should work correctly.
15092   lt_compile=`echo "$ac_compile" | $SED \
15093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15095   -e 's:$: $lt_compiler_flag:'`
15096   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15097   (eval "$lt_compile" 2>out/conftest.err)
15098   ac_status=$?
15099   cat out/conftest.err >&5
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15102   then
15103     # The compiler can only warn and ignore the option if not recognized
15104     # So say no if there are warnings
15105     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15106     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15107     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15108       lt_cv_prog_compiler_c_o_CXX=yes
15109     fi
15110   fi
15111   chmod u+w . 2>&5
15112   $RM conftest*
15113   # SGI C++ compiler will create directory out/ii_files/ for
15114   # template instantiation
15115   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15116   $RM out/* && rmdir out
15117   cd ..
15118   $RM -r conftest
15119   $RM conftest*
15120
15121fi
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15123$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15124
15125
15126
15127
15128hard_links=nottested
15129if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15130  # do not overwrite the value of need_locks provided by the user
15131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15132$as_echo_n "checking if we can lock with hard links... " >&6; }
15133  hard_links=yes
15134  $RM conftest*
15135  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15136  touch conftest.a
15137  ln conftest.a conftest.b 2>&5 || hard_links=no
15138  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15140$as_echo "$hard_links" >&6; }
15141  if test no = "$hard_links"; then
15142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15143$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15144    need_locks=warn
15145  fi
15146else
15147  need_locks=no
15148fi
15149
15150
15151
15152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15153$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15154
15155  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15156  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15157  case $host_os in
15158  aix[4-9]*)
15159    # If we're using GNU nm, then we don't want the "-C" option.
15160    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15161    # Without the "-l" option, or with the "-B" option, AIX nm treats
15162    # weak defined symbols like other global defined symbols, whereas
15163    # GNU nm marks them as "W".
15164    # While the 'weak' keyword is ignored in the Export File, we need
15165    # it in the Import File for the 'aix-soname' feature, so we have
15166    # to replace the "-B" option with "-P" for AIX nm.
15167    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15168      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15169    else
15170      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15171    fi
15172    ;;
15173  pw32*)
15174    export_symbols_cmds_CXX=$ltdll_cmds
15175    ;;
15176  cygwin* | mingw* | cegcc*)
15177    case $cc_basename in
15178    cl*)
15179      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15180      ;;
15181    *)
15182      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'
15183      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15184      ;;
15185    esac
15186    ;;
15187  linux* | k*bsd*-gnu | gnu*)
15188    link_all_deplibs_CXX=no
15189    ;;
15190  *)
15191    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15192    ;;
15193  esac
15194
15195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15196$as_echo "$ld_shlibs_CXX" >&6; }
15197test no = "$ld_shlibs_CXX" && can_build_shared=no
15198
15199with_gnu_ld_CXX=$with_gnu_ld
15200
15201
15202
15203
15204
15205
15206#
15207# Do we need to explicitly link libc?
15208#
15209case "x$archive_cmds_need_lc_CXX" in
15210x|xyes)
15211  # Assume -lc should be added
15212  archive_cmds_need_lc_CXX=yes
15213
15214  if test yes,yes = "$GCC,$enable_shared"; then
15215    case $archive_cmds_CXX in
15216    *'~'*)
15217      # FIXME: we may have to deal with multi-command sequences.
15218      ;;
15219    '$CC '*)
15220      # Test whether the compiler implicitly links with -lc since on some
15221      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15222      # to ld, don't add -lc before -lgcc.
15223      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15224$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15225if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15226  $as_echo_n "(cached) " >&6
15227else
15228  $RM conftest*
15229	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15230
15231	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15232  (eval $ac_compile) 2>&5
15233  ac_status=$?
15234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15235  test $ac_status = 0; } 2>conftest.err; then
15236	  soname=conftest
15237	  lib=conftest
15238	  libobjs=conftest.$ac_objext
15239	  deplibs=
15240	  wl=$lt_prog_compiler_wl_CXX
15241	  pic_flag=$lt_prog_compiler_pic_CXX
15242	  compiler_flags=-v
15243	  linker_flags=-v
15244	  verstring=
15245	  output_objdir=.
15246	  libname=conftest
15247	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15248	  allow_undefined_flag_CXX=
15249	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15250  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15251  ac_status=$?
15252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253  test $ac_status = 0; }
15254	  then
15255	    lt_cv_archive_cmds_need_lc_CXX=no
15256	  else
15257	    lt_cv_archive_cmds_need_lc_CXX=yes
15258	  fi
15259	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15260	else
15261	  cat conftest.err 1>&5
15262	fi
15263	$RM conftest*
15264
15265fi
15266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15267$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15268      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15269      ;;
15270    esac
15271  fi
15272  ;;
15273esac
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15337$as_echo_n "checking dynamic linker characteristics... " >&6; }
15338
15339library_names_spec=
15340libname_spec='lib$name'
15341soname_spec=
15342shrext_cmds=.so
15343postinstall_cmds=
15344postuninstall_cmds=
15345finish_cmds=
15346finish_eval=
15347shlibpath_var=
15348shlibpath_overrides_runpath=unknown
15349version_type=none
15350dynamic_linker="$host_os ld.so"
15351sys_lib_dlsearch_path_spec="/lib /usr/lib"
15352need_lib_prefix=unknown
15353hardcode_into_libs=no
15354
15355# when you set need_version to no, make sure it does not cause -set_version
15356# flags to be left without arguments
15357need_version=unknown
15358
15359
15360
15361case $host_os in
15362aix3*)
15363  version_type=linux # correct to gnu/linux during the next big refactor
15364  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15365  shlibpath_var=LIBPATH
15366
15367  # AIX 3 has no versioning support, so we append a major version to the name.
15368  soname_spec='$libname$release$shared_ext$major'
15369  ;;
15370
15371aix[4-9]*)
15372  version_type=linux # correct to gnu/linux during the next big refactor
15373  need_lib_prefix=no
15374  need_version=no
15375  hardcode_into_libs=yes
15376  if test ia64 = "$host_cpu"; then
15377    # AIX 5 supports IA64
15378    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15379    shlibpath_var=LD_LIBRARY_PATH
15380  else
15381    # With GCC up to 2.95.x, collect2 would create an import file
15382    # for dependence libraries.  The import file would start with
15383    # the line '#! .'.  This would cause the generated library to
15384    # depend on '.', always an invalid library.  This was fixed in
15385    # development snapshots of GCC prior to 3.0.
15386    case $host_os in
15387      aix4 | aix4.[01] | aix4.[01].*)
15388      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15389	   echo ' yes '
15390	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15391	:
15392      else
15393	can_build_shared=no
15394      fi
15395      ;;
15396    esac
15397    # Using Import Files as archive members, it is possible to support
15398    # filename-based versioning of shared library archives on AIX. While
15399    # this would work for both with and without runtime linking, it will
15400    # prevent static linking of such archives. So we do filename-based
15401    # shared library versioning with .so extension only, which is used
15402    # when both runtime linking and shared linking is enabled.
15403    # Unfortunately, runtime linking may impact performance, so we do
15404    # not want this to be the default eventually. Also, we use the
15405    # versioned .so libs for executables only if there is the -brtl
15406    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15407    # To allow for filename-based versioning support, we need to create
15408    # libNAME.so.V as an archive file, containing:
15409    # *) an Import File, referring to the versioned filename of the
15410    #    archive as well as the shared archive member, telling the
15411    #    bitwidth (32 or 64) of that shared object, and providing the
15412    #    list of exported symbols of that shared object, eventually
15413    #    decorated with the 'weak' keyword
15414    # *) the shared object with the F_LOADONLY flag set, to really avoid
15415    #    it being seen by the linker.
15416    # At run time we better use the real file rather than another symlink,
15417    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15418
15419    case $with_aix_soname,$aix_use_runtimelinking in
15420    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15421    # soname into executable. Probably we can add versioning support to
15422    # collect2, so additional links can be useful in future.
15423    aix,yes) # traditional libtool
15424      dynamic_linker='AIX unversionable lib.so'
15425      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15426      # instead of lib<name>.a to let people know that these are not
15427      # typical AIX shared libraries.
15428      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15429      ;;
15430    aix,no) # traditional AIX only
15431      dynamic_linker='AIX lib.a(lib.so.V)'
15432      # We preserve .a as extension for shared libraries through AIX4.2
15433      # and later when we are not doing run time linking.
15434      library_names_spec='$libname$release.a $libname.a'
15435      soname_spec='$libname$release$shared_ext$major'
15436      ;;
15437    svr4,*) # full svr4 only
15438      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15439      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15440      # We do not specify a path in Import Files, so LIBPATH fires.
15441      shlibpath_overrides_runpath=yes
15442      ;;
15443    *,yes) # both, prefer svr4
15444      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15445      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15446      # unpreferred sharedlib libNAME.a needs extra handling
15447      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15448      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15449      # We do not specify a path in Import Files, so LIBPATH fires.
15450      shlibpath_overrides_runpath=yes
15451      ;;
15452    *,no) # both, prefer aix
15453      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15454      library_names_spec='$libname$release.a $libname.a'
15455      soname_spec='$libname$release$shared_ext$major'
15456      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15457      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15458      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15459      ;;
15460    esac
15461    shlibpath_var=LIBPATH
15462  fi
15463  ;;
15464
15465amigaos*)
15466  case $host_cpu in
15467  powerpc)
15468    # Since July 2007 AmigaOS4 officially supports .so libraries.
15469    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15470    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15471    ;;
15472  m68k)
15473    library_names_spec='$libname.ixlibrary $libname.a'
15474    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15475    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15476    ;;
15477  esac
15478  ;;
15479
15480beos*)
15481  library_names_spec='$libname$shared_ext'
15482  dynamic_linker="$host_os ld.so"
15483  shlibpath_var=LIBRARY_PATH
15484  ;;
15485
15486bsdi[45]*)
15487  version_type=linux # correct to gnu/linux during the next big refactor
15488  need_version=no
15489  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15490  soname_spec='$libname$release$shared_ext$major'
15491  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15492  shlibpath_var=LD_LIBRARY_PATH
15493  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15494  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15495  # the default ld.so.conf also contains /usr/contrib/lib and
15496  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15497  # libtool to hard-code these into programs
15498  ;;
15499
15500cygwin* | mingw* | pw32* | cegcc*)
15501  version_type=windows
15502  shrext_cmds=.dll
15503  need_version=no
15504  need_lib_prefix=no
15505
15506  case $GCC,$cc_basename in
15507  yes,*)
15508    # gcc
15509    library_names_spec='$libname.dll.a'
15510    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15511    postinstall_cmds='base_file=`basename \$file`~
15512      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15513      dldir=$destdir/`dirname \$dlpath`~
15514      test -d \$dldir || mkdir -p \$dldir~
15515      $install_prog $dir/$dlname \$dldir/$dlname~
15516      chmod a+x \$dldir/$dlname~
15517      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15518        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15519      fi'
15520    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15521      dlpath=$dir/\$dldll~
15522       $RM \$dlpath'
15523    shlibpath_overrides_runpath=yes
15524
15525    case $host_os in
15526    cygwin*)
15527      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15528      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15529
15530      ;;
15531    mingw* | cegcc*)
15532      # MinGW DLLs use traditional 'lib' prefix
15533      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15534      ;;
15535    pw32*)
15536      # pw32 DLLs use 'pw' prefix rather than 'lib'
15537      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15538      ;;
15539    esac
15540    dynamic_linker='Win32 ld.exe'
15541    ;;
15542
15543  *,cl*)
15544    # Native MSVC
15545    libname_spec='$name'
15546    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15547    library_names_spec='$libname.dll.lib'
15548
15549    case $build_os in
15550    mingw*)
15551      sys_lib_search_path_spec=
15552      lt_save_ifs=$IFS
15553      IFS=';'
15554      for lt_path in $LIB
15555      do
15556        IFS=$lt_save_ifs
15557        # Let DOS variable expansion print the short 8.3 style file name.
15558        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15559        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15560      done
15561      IFS=$lt_save_ifs
15562      # Convert to MSYS style.
15563      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15564      ;;
15565    cygwin*)
15566      # Convert to unix form, then to dos form, then back to unix form
15567      # but this time dos style (no spaces!) so that the unix form looks
15568      # like /cygdrive/c/PROGRA~1:/cygdr...
15569      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15570      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15571      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15572      ;;
15573    *)
15574      sys_lib_search_path_spec=$LIB
15575      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15576        # It is most probably a Windows format PATH.
15577        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15578      else
15579        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15580      fi
15581      # FIXME: find the short name or the path components, as spaces are
15582      # common. (e.g. "Program Files" -> "PROGRA~1")
15583      ;;
15584    esac
15585
15586    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15587    postinstall_cmds='base_file=`basename \$file`~
15588      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15589      dldir=$destdir/`dirname \$dlpath`~
15590      test -d \$dldir || mkdir -p \$dldir~
15591      $install_prog $dir/$dlname \$dldir/$dlname'
15592    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15593      dlpath=$dir/\$dldll~
15594       $RM \$dlpath'
15595    shlibpath_overrides_runpath=yes
15596    dynamic_linker='Win32 link.exe'
15597    ;;
15598
15599  *)
15600    # Assume MSVC wrapper
15601    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15602    dynamic_linker='Win32 ld.exe'
15603    ;;
15604  esac
15605  # FIXME: first we should search . and the directory the executable is in
15606  shlibpath_var=PATH
15607  ;;
15608
15609darwin* | rhapsody*)
15610  dynamic_linker="$host_os dyld"
15611  version_type=darwin
15612  need_lib_prefix=no
15613  need_version=no
15614  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15615  soname_spec='$libname$release$major$shared_ext'
15616  shlibpath_overrides_runpath=yes
15617  shlibpath_var=DYLD_LIBRARY_PATH
15618  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15619
15620  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15621  ;;
15622
15623dgux*)
15624  version_type=linux # correct to gnu/linux during the next big refactor
15625  need_lib_prefix=no
15626  need_version=no
15627  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15628  soname_spec='$libname$release$shared_ext$major'
15629  shlibpath_var=LD_LIBRARY_PATH
15630  ;;
15631
15632freebsd* | dragonfly*)
15633  # DragonFly does not have aout.  When/if they implement a new
15634  # versioning mechanism, adjust this.
15635  if test -x /usr/bin/objformat; then
15636    objformat=`/usr/bin/objformat`
15637  else
15638    case $host_os in
15639    freebsd[23].*) objformat=aout ;;
15640    *) objformat=elf ;;
15641    esac
15642  fi
15643  version_type=freebsd-$objformat
15644  case $version_type in
15645    freebsd-elf*)
15646      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15647      soname_spec='$libname$release$shared_ext$major'
15648      need_version=no
15649      need_lib_prefix=no
15650      ;;
15651    freebsd-*)
15652      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15653      need_version=yes
15654      ;;
15655  esac
15656  shlibpath_var=LD_LIBRARY_PATH
15657  case $host_os in
15658  freebsd2.*)
15659    shlibpath_overrides_runpath=yes
15660    ;;
15661  freebsd3.[01]* | freebsdelf3.[01]*)
15662    shlibpath_overrides_runpath=yes
15663    hardcode_into_libs=yes
15664    ;;
15665  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15666  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15667    shlibpath_overrides_runpath=no
15668    hardcode_into_libs=yes
15669    ;;
15670  *) # from 4.6 on, and DragonFly
15671    shlibpath_overrides_runpath=yes
15672    hardcode_into_libs=yes
15673    ;;
15674  esac
15675  ;;
15676
15677haiku*)
15678  version_type=linux # correct to gnu/linux during the next big refactor
15679  need_lib_prefix=no
15680  need_version=no
15681  dynamic_linker="$host_os runtime_loader"
15682  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15683  soname_spec='$libname$release$shared_ext$major'
15684  shlibpath_var=LIBRARY_PATH
15685  shlibpath_overrides_runpath=no
15686  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15687  hardcode_into_libs=yes
15688  ;;
15689
15690hpux9* | hpux10* | hpux11*)
15691  # Give a soname corresponding to the major version so that dld.sl refuses to
15692  # link against other versions.
15693  version_type=sunos
15694  need_lib_prefix=no
15695  need_version=no
15696  case $host_cpu in
15697  ia64*)
15698    shrext_cmds='.so'
15699    hardcode_into_libs=yes
15700    dynamic_linker="$host_os dld.so"
15701    shlibpath_var=LD_LIBRARY_PATH
15702    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15703    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15704    soname_spec='$libname$release$shared_ext$major'
15705    if test 32 = "$HPUX_IA64_MODE"; then
15706      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15707      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15708    else
15709      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15710      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15711    fi
15712    ;;
15713  hppa*64*)
15714    shrext_cmds='.sl'
15715    hardcode_into_libs=yes
15716    dynamic_linker="$host_os dld.sl"
15717    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15718    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15719    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15720    soname_spec='$libname$release$shared_ext$major'
15721    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15722    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15723    ;;
15724  *)
15725    shrext_cmds='.sl'
15726    dynamic_linker="$host_os dld.sl"
15727    shlibpath_var=SHLIB_PATH
15728    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15729    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15730    soname_spec='$libname$release$shared_ext$major'
15731    ;;
15732  esac
15733  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15734  postinstall_cmds='chmod 555 $lib'
15735  # or fails outright, so override atomically:
15736  install_override_mode=555
15737  ;;
15738
15739interix[3-9]*)
15740  version_type=linux # correct to gnu/linux during the next big refactor
15741  need_lib_prefix=no
15742  need_version=no
15743  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15744  soname_spec='$libname$release$shared_ext$major'
15745  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15746  shlibpath_var=LD_LIBRARY_PATH
15747  shlibpath_overrides_runpath=no
15748  hardcode_into_libs=yes
15749  ;;
15750
15751irix5* | irix6* | nonstopux*)
15752  case $host_os in
15753    nonstopux*) version_type=nonstopux ;;
15754    *)
15755	if test yes = "$lt_cv_prog_gnu_ld"; then
15756		version_type=linux # correct to gnu/linux during the next big refactor
15757	else
15758		version_type=irix
15759	fi ;;
15760  esac
15761  need_lib_prefix=no
15762  need_version=no
15763  soname_spec='$libname$release$shared_ext$major'
15764  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15765  case $host_os in
15766  irix5* | nonstopux*)
15767    libsuff= shlibsuff=
15768    ;;
15769  *)
15770    case $LD in # libtool.m4 will add one of these switches to LD
15771    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15772      libsuff= shlibsuff= libmagic=32-bit;;
15773    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15774      libsuff=32 shlibsuff=N32 libmagic=N32;;
15775    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15776      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15777    *) libsuff= shlibsuff= libmagic=never-match;;
15778    esac
15779    ;;
15780  esac
15781  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15782  shlibpath_overrides_runpath=no
15783  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15784  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15785  hardcode_into_libs=yes
15786  ;;
15787
15788# No shared lib support for Linux oldld, aout, or coff.
15789linux*oldld* | linux*aout* | linux*coff*)
15790  dynamic_linker=no
15791  ;;
15792
15793linux*android*)
15794  version_type=none # Android doesn't support versioned libraries.
15795  need_lib_prefix=no
15796  need_version=no
15797  library_names_spec='$libname$release$shared_ext'
15798  soname_spec='$libname$release$shared_ext'
15799  finish_cmds=
15800  shlibpath_var=LD_LIBRARY_PATH
15801  shlibpath_overrides_runpath=yes
15802
15803  # This implies no fast_install, which is unacceptable.
15804  # Some rework will be needed to allow for fast_install
15805  # before this can be enabled.
15806  hardcode_into_libs=yes
15807
15808  dynamic_linker='Android linker'
15809  # Don't embed -rpath directories since the linker doesn't support them.
15810  hardcode_libdir_flag_spec_CXX='-L$libdir'
15811  ;;
15812
15813# This must be glibc/ELF.
15814linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15815  version_type=linux # correct to gnu/linux during the next big refactor
15816  need_lib_prefix=no
15817  need_version=no
15818  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15819  soname_spec='$libname$release$shared_ext$major'
15820  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15821  shlibpath_var=LD_LIBRARY_PATH
15822  shlibpath_overrides_runpath=no
15823
15824  # Some binutils ld are patched to set DT_RUNPATH
15825  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15826  $as_echo_n "(cached) " >&6
15827else
15828  lt_cv_shlibpath_overrides_runpath=no
15829    save_LDFLAGS=$LDFLAGS
15830    save_libdir=$libdir
15831    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15832	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15833    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834/* end confdefs.h.  */
15835
15836int
15837main ()
15838{
15839
15840  ;
15841  return 0;
15842}
15843_ACEOF
15844if ac_fn_cxx_try_link "$LINENO"; then :
15845  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15846  lt_cv_shlibpath_overrides_runpath=yes
15847fi
15848fi
15849rm -f core conftest.err conftest.$ac_objext \
15850    conftest$ac_exeext conftest.$ac_ext
15851    LDFLAGS=$save_LDFLAGS
15852    libdir=$save_libdir
15853
15854fi
15855
15856  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15857
15858  # This implies no fast_install, which is unacceptable.
15859  # Some rework will be needed to allow for fast_install
15860  # before this can be enabled.
15861  hardcode_into_libs=yes
15862
15863  # Ideally, we could use ldconfig to report *all* directores which are
15864  # searched for libraries, however this is still not possible.  Aside from not
15865  # being certain /sbin/ldconfig is available, command
15866  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15867  # even though it is searched at run-time.  Try to do the best guess by
15868  # appending ld.so.conf contents (and includes) to the search path.
15869  if test -f /etc/ld.so.conf; then
15870    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' ' '`
15871    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15872  fi
15873
15874  # We used to test for /lib/ld.so.1 and disable shared libraries on
15875  # powerpc, because MkLinux only supported shared libraries with the
15876  # GNU dynamic linker.  Since this was broken with cross compilers,
15877  # most powerpc-linux boxes support dynamic linking these days and
15878  # people can always --disable-shared, the test was removed, and we
15879  # assume the GNU/Linux dynamic linker is in use.
15880  dynamic_linker='GNU/Linux ld.so'
15881  ;;
15882
15883netbsdelf*-gnu)
15884  version_type=linux
15885  need_lib_prefix=no
15886  need_version=no
15887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15888  soname_spec='${libname}${release}${shared_ext}$major'
15889  shlibpath_var=LD_LIBRARY_PATH
15890  shlibpath_overrides_runpath=no
15891  hardcode_into_libs=yes
15892  dynamic_linker='NetBSD ld.elf_so'
15893  ;;
15894
15895netbsd*)
15896  version_type=sunos
15897  need_lib_prefix=no
15898  need_version=no
15899  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15900    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15901    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15902    dynamic_linker='NetBSD (a.out) ld.so'
15903  else
15904    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15905    soname_spec='$libname$release$shared_ext$major'
15906    dynamic_linker='NetBSD ld.elf_so'
15907  fi
15908  shlibpath_var=LD_LIBRARY_PATH
15909  shlibpath_overrides_runpath=yes
15910  hardcode_into_libs=yes
15911  ;;
15912
15913newsos6)
15914  version_type=linux # correct to gnu/linux during the next big refactor
15915  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15916  shlibpath_var=LD_LIBRARY_PATH
15917  shlibpath_overrides_runpath=yes
15918  ;;
15919
15920*nto* | *qnx*)
15921  version_type=qnx
15922  need_lib_prefix=no
15923  need_version=no
15924  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15925  soname_spec='$libname$release$shared_ext$major'
15926  shlibpath_var=LD_LIBRARY_PATH
15927  shlibpath_overrides_runpath=no
15928  hardcode_into_libs=yes
15929  dynamic_linker='ldqnx.so'
15930  ;;
15931
15932openbsd* | bitrig*)
15933  version_type=sunos
15934  sys_lib_dlsearch_path_spec=/usr/lib
15935  need_lib_prefix=no
15936  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15937    need_version=no
15938  else
15939    need_version=yes
15940  fi
15941  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15942  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15943  shlibpath_var=LD_LIBRARY_PATH
15944  shlibpath_overrides_runpath=yes
15945  ;;
15946
15947os2*)
15948  libname_spec='$name'
15949  version_type=windows
15950  shrext_cmds=.dll
15951  need_version=no
15952  need_lib_prefix=no
15953  # OS/2 can only load a DLL with a base name of 8 characters or less.
15954  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15955    v=$($ECHO $release$versuffix | tr -d .-);
15956    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15957    $ECHO $n$v`$shared_ext'
15958  library_names_spec='${libname}_dll.$libext'
15959  dynamic_linker='OS/2 ld.exe'
15960  shlibpath_var=BEGINLIBPATH
15961  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15962  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15963  postinstall_cmds='base_file=`basename \$file`~
15964    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15965    dldir=$destdir/`dirname \$dlpath`~
15966    test -d \$dldir || mkdir -p \$dldir~
15967    $install_prog $dir/$dlname \$dldir/$dlname~
15968    chmod a+x \$dldir/$dlname~
15969    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15970      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15971    fi'
15972  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15973    dlpath=$dir/\$dldll~
15974    $RM \$dlpath'
15975  ;;
15976
15977osf3* | osf4* | osf5*)
15978  version_type=osf
15979  need_lib_prefix=no
15980  need_version=no
15981  soname_spec='$libname$release$shared_ext$major'
15982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15983  shlibpath_var=LD_LIBRARY_PATH
15984  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15985  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15986  ;;
15987
15988rdos*)
15989  dynamic_linker=no
15990  ;;
15991
15992solaris*)
15993  version_type=linux # correct to gnu/linux during the next big refactor
15994  need_lib_prefix=no
15995  need_version=no
15996  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15997  soname_spec='$libname$release$shared_ext$major'
15998  shlibpath_var=LD_LIBRARY_PATH
15999  shlibpath_overrides_runpath=yes
16000  hardcode_into_libs=yes
16001  # ldd complains unless libraries are executable
16002  postinstall_cmds='chmod +x $lib'
16003  ;;
16004
16005sunos4*)
16006  version_type=sunos
16007  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16008  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16009  shlibpath_var=LD_LIBRARY_PATH
16010  shlibpath_overrides_runpath=yes
16011  if test yes = "$with_gnu_ld"; then
16012    need_lib_prefix=no
16013  fi
16014  need_version=yes
16015  ;;
16016
16017sysv4 | sysv4.3*)
16018  version_type=linux # correct to gnu/linux during the next big refactor
16019  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16020  soname_spec='$libname$release$shared_ext$major'
16021  shlibpath_var=LD_LIBRARY_PATH
16022  case $host_vendor in
16023    sni)
16024      shlibpath_overrides_runpath=no
16025      need_lib_prefix=no
16026      runpath_var=LD_RUN_PATH
16027      ;;
16028    siemens)
16029      need_lib_prefix=no
16030      ;;
16031    motorola)
16032      need_lib_prefix=no
16033      need_version=no
16034      shlibpath_overrides_runpath=no
16035      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16036      ;;
16037  esac
16038  ;;
16039
16040sysv4*MP*)
16041  if test -d /usr/nec; then
16042    version_type=linux # correct to gnu/linux during the next big refactor
16043    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16044    soname_spec='$libname$shared_ext.$major'
16045    shlibpath_var=LD_LIBRARY_PATH
16046  fi
16047  ;;
16048
16049sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16050  version_type=sco
16051  need_lib_prefix=no
16052  need_version=no
16053  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16054  soname_spec='$libname$release$shared_ext$major'
16055  shlibpath_var=LD_LIBRARY_PATH
16056  shlibpath_overrides_runpath=yes
16057  hardcode_into_libs=yes
16058  if test yes = "$with_gnu_ld"; then
16059    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16060  else
16061    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16062    case $host_os in
16063      sco3.2v5*)
16064        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16065	;;
16066    esac
16067  fi
16068  sys_lib_dlsearch_path_spec='/usr/lib'
16069  ;;
16070
16071tpf*)
16072  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16073  version_type=linux # correct to gnu/linux during the next big refactor
16074  need_lib_prefix=no
16075  need_version=no
16076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16077  shlibpath_var=LD_LIBRARY_PATH
16078  shlibpath_overrides_runpath=no
16079  hardcode_into_libs=yes
16080  ;;
16081
16082uts4*)
16083  version_type=linux # correct to gnu/linux during the next big refactor
16084  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16085  soname_spec='$libname$release$shared_ext$major'
16086  shlibpath_var=LD_LIBRARY_PATH
16087  ;;
16088
16089*)
16090  dynamic_linker=no
16091  ;;
16092esac
16093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16094$as_echo "$dynamic_linker" >&6; }
16095test no = "$dynamic_linker" && can_build_shared=no
16096
16097variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16098if test yes = "$GCC"; then
16099  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16100fi
16101
16102if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16103  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16104fi
16105
16106if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16107  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16108fi
16109
16110# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16111configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16112
16113# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16114func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16115
16116# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16117configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16159$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16160hardcode_action_CXX=
16161if test -n "$hardcode_libdir_flag_spec_CXX" ||
16162   test -n "$runpath_var_CXX" ||
16163   test yes = "$hardcode_automatic_CXX"; then
16164
16165  # We can hardcode non-existent directories.
16166  if test no != "$hardcode_direct_CXX" &&
16167     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16168     # have to relink, otherwise we might link with an installed library
16169     # when we should be linking with a yet-to-be-installed one
16170     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16171     test no != "$hardcode_minus_L_CXX"; then
16172    # Linking always hardcodes the temporary library directory.
16173    hardcode_action_CXX=relink
16174  else
16175    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16176    hardcode_action_CXX=immediate
16177  fi
16178else
16179  # We cannot hardcode anything, or else we can only hardcode existing
16180  # directories.
16181  hardcode_action_CXX=unsupported
16182fi
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16184$as_echo "$hardcode_action_CXX" >&6; }
16185
16186if test relink = "$hardcode_action_CXX" ||
16187   test yes = "$inherit_rpath_CXX"; then
16188  # Fast installation is not supported
16189  enable_fast_install=no
16190elif test yes = "$shlibpath_overrides_runpath" ||
16191     test no = "$enable_shared"; then
16192  # Fast installation is not necessary
16193  enable_fast_install=needless
16194fi
16195
16196
16197
16198
16199
16200
16201
16202  fi # test -n "$compiler"
16203
16204  CC=$lt_save_CC
16205  CFLAGS=$lt_save_CFLAGS
16206  LDCXX=$LD
16207  LD=$lt_save_LD
16208  GCC=$lt_save_GCC
16209  with_gnu_ld=$lt_save_with_gnu_ld
16210  lt_cv_path_LDCXX=$lt_cv_path_LD
16211  lt_cv_path_LD=$lt_save_path_LD
16212  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16213  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16214fi # test yes != "$_lt_caught_CXX_error"
16215
16216ac_ext=c
16217ac_cpp='$CPP $CPPFLAGS'
16218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16220ac_compiler_gnu=$ac_cv_c_compiler_gnu
16221
16222
16223
16224ac_ext=cpp
16225ac_cpp='$CXXCPP $CPPFLAGS'
16226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16230$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16231if test -z "$CXXCPP"; then
16232  if ${ac_cv_prog_CXXCPP+:} false; then :
16233  $as_echo_n "(cached) " >&6
16234else
16235      # Double quotes because CXXCPP needs to be expanded
16236    for CXXCPP in "$CXX -E" "/lib/cpp"
16237    do
16238      ac_preproc_ok=false
16239for ac_cxx_preproc_warn_flag in '' yes
16240do
16241  # Use a header file that comes with gcc, so configuring glibc
16242  # with a fresh cross-compiler works.
16243  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16244  # <limits.h> exists even on freestanding compilers.
16245  # On the NeXT, cc -E runs the code through the compiler's parser,
16246  # not just through cpp. "Syntax error" is here to catch this case.
16247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249#ifdef __STDC__
16250# include <limits.h>
16251#else
16252# include <assert.h>
16253#endif
16254		     Syntax error
16255_ACEOF
16256if ac_fn_cxx_try_cpp "$LINENO"; then :
16257
16258else
16259  # Broken: fails on valid input.
16260continue
16261fi
16262rm -f conftest.err conftest.i conftest.$ac_ext
16263
16264  # OK, works on sane cases.  Now check whether nonexistent headers
16265  # can be detected and how.
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268#include <ac_nonexistent.h>
16269_ACEOF
16270if ac_fn_cxx_try_cpp "$LINENO"; then :
16271  # Broken: success on invalid input.
16272continue
16273else
16274  # Passes both tests.
16275ac_preproc_ok=:
16276break
16277fi
16278rm -f conftest.err conftest.i conftest.$ac_ext
16279
16280done
16281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16282rm -f conftest.i conftest.err conftest.$ac_ext
16283if $ac_preproc_ok; then :
16284  break
16285fi
16286
16287    done
16288    ac_cv_prog_CXXCPP=$CXXCPP
16289
16290fi
16291  CXXCPP=$ac_cv_prog_CXXCPP
16292else
16293  ac_cv_prog_CXXCPP=$CXXCPP
16294fi
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16296$as_echo "$CXXCPP" >&6; }
16297ac_preproc_ok=false
16298for ac_cxx_preproc_warn_flag in '' yes
16299do
16300  # Use a header file that comes with gcc, so configuring glibc
16301  # with a fresh cross-compiler works.
16302  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16303  # <limits.h> exists even on freestanding compilers.
16304  # On the NeXT, cc -E runs the code through the compiler's parser,
16305  # not just through cpp. "Syntax error" is here to catch this case.
16306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307/* end confdefs.h.  */
16308#ifdef __STDC__
16309# include <limits.h>
16310#else
16311# include <assert.h>
16312#endif
16313		     Syntax error
16314_ACEOF
16315if ac_fn_cxx_try_cpp "$LINENO"; then :
16316
16317else
16318  # Broken: fails on valid input.
16319continue
16320fi
16321rm -f conftest.err conftest.i conftest.$ac_ext
16322
16323  # OK, works on sane cases.  Now check whether nonexistent headers
16324  # can be detected and how.
16325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h.  */
16327#include <ac_nonexistent.h>
16328_ACEOF
16329if ac_fn_cxx_try_cpp "$LINENO"; then :
16330  # Broken: success on invalid input.
16331continue
16332else
16333  # Passes both tests.
16334ac_preproc_ok=:
16335break
16336fi
16337rm -f conftest.err conftest.i conftest.$ac_ext
16338
16339done
16340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16341rm -f conftest.i conftest.err conftest.$ac_ext
16342if $ac_preproc_ok; then :
16343
16344else
16345  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16347as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16348See \`config.log' for more details" "$LINENO" 5; }
16349fi
16350
16351ac_ext=c
16352ac_cpp='$CPP $CPPFLAGS'
16353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16355ac_compiler_gnu=$ac_cv_c_compiler_gnu
16356
16357ac_ext=cpp
16358ac_cpp='$CXXCPP $CPPFLAGS'
16359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16362
16363
16364# CXX fine tuning
16365case "$host" in
16366    *-dec-osf*)
16367        CXXFLAGS="$CXXFLAGS -std strict_ansi_errors"
16368        ;;
16369    *)
16370        ;;
16371esac
16372
16373# Doxygen
16374
16375# Check whether --enable-doxygen was given.
16376if test "${enable_doxygen+set}" = set; then :
16377  enableval=$enable_doxygen;
16378fi
16379
16380
16381# Check whether --enable-dot was given.
16382if test "${enable_dot+set}" = set; then :
16383  enableval=$enable_dot;
16384fi
16385
16386
16387# Check whether --enable-html-docs was given.
16388if test "${enable_html_docs+set}" = set; then :
16389  enableval=$enable_html_docs;
16390else
16391  enable_html_docs=yes
16392fi
16393
16394
16395# Check whether --enable-latex-docs was given.
16396if test "${enable_latex_docs+set}" = set; then :
16397  enableval=$enable_latex_docs;
16398else
16399  enable_latex_docs=no
16400fi
16401
16402
16403if test "x$enable_doxygen" = xno; then
16404        enable_doc=no
16405else
16406        # Extract the first word of "doxygen", so it can be a program name with args.
16407set dummy doxygen; ac_word=$2
16408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16409$as_echo_n "checking for $ac_word... " >&6; }
16410if ${ac_cv_path_DOXYGEN+:} false; then :
16411  $as_echo_n "(cached) " >&6
16412else
16413  case $DOXYGEN in
16414  [\\/]* | ?:[\\/]*)
16415  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16416  ;;
16417  *)
16418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16419for as_dir in $PATH
16420do
16421  IFS=$as_save_IFS
16422  test -z "$as_dir" && as_dir=.
16423    for ac_exec_ext in '' $ac_executable_extensions; do
16424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16425    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16427    break 2
16428  fi
16429done
16430  done
16431IFS=$as_save_IFS
16432
16433  ;;
16434esac
16435fi
16436DOXYGEN=$ac_cv_path_DOXYGEN
16437if test -n "$DOXYGEN"; then
16438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16439$as_echo "$DOXYGEN" >&6; }
16440else
16441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442$as_echo "no" >&6; }
16443fi
16444
16445
16446        if test "x$DOXYGEN" = x; then
16447                        if test "x$enable_doxygen" = xyes; then
16448                                        as_fn_error $? "could not find doxygen" "$LINENO" 5
16449                        fi
16450                        enable_doc=no
16451        else
16452                        enable_doc=yes
16453                        # Extract the first word of "dot", so it can be a program name with args.
16454set dummy dot; ac_word=$2
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16456$as_echo_n "checking for $ac_word... " >&6; }
16457if ${ac_cv_path_DOT+:} false; then :
16458  $as_echo_n "(cached) " >&6
16459else
16460  case $DOT in
16461  [\\/]* | ?:[\\/]*)
16462  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
16463  ;;
16464  *)
16465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16466for as_dir in $PATH
16467do
16468  IFS=$as_save_IFS
16469  test -z "$as_dir" && as_dir=.
16470    for ac_exec_ext in '' $ac_executable_extensions; do
16471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16472    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
16473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16474    break 2
16475  fi
16476done
16477  done
16478IFS=$as_save_IFS
16479
16480  ;;
16481esac
16482fi
16483DOT=$ac_cv_path_DOT
16484if test -n "$DOT"; then
16485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
16486$as_echo "$DOT" >&6; }
16487else
16488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16489$as_echo "no" >&6; }
16490fi
16491
16492
16493        fi
16494fi
16495 if test x$enable_doc = xyes; then
16496  DOC_TRUE=
16497  DOC_FALSE='#'
16498else
16499  DOC_TRUE='#'
16500  DOC_FALSE=
16501fi
16502
16503 if test x$enable_latex_docs = xyes; then
16504  LATEX_DOC_TRUE=
16505  LATEX_DOC_FALSE='#'
16506else
16507  LATEX_DOC_TRUE='#'
16508  LATEX_DOC_FALSE=
16509fi
16510
16511
16512if test x$DOT = x; then
16513        if test "x$enable_dot" = xyes; then
16514                as_fn_error $? "could not find dot" "$LINENO" 5
16515        fi
16516        enable_dot=no
16517else
16518        enable_dot=yes
16519fi
16520
16521manual_dest="manual"
16522base_dir=`(cd $srcdir && pwd)`
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533# Checks header files
16534# ----------------------------------------------------------------------------
16535
16536  apr_found="no"
16537
16538  if test "$target_os" = "os2-emx"; then
16539    # Scripts don't pass test -x on OS/2
16540    TEST_X="test -f"
16541  else
16542    TEST_X="test -x"
16543  fi
16544
16545  acceptable_majors="1"
16546
16547  apr_temp_acceptable_apr_config=""
16548  for apr_temp_major in $acceptable_majors
16549  do
16550    case $apr_temp_major in
16551      0)
16552      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
16553      ;;
16554      *)
16555      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
16556      ;;
16557    esac
16558  done
16559
16560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
16561$as_echo_n "checking for APR... " >&6; }
16562
16563# Check whether --with-apr was given.
16564if test "${with_apr+set}" = set; then :
16565  withval=$with_apr;
16566    if test "$withval" = "no" || test "$withval" = "yes"; then
16567      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
16568    fi
16569
16570    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
16571    do
16572      for lookdir in "$withval/bin" "$withval"
16573      do
16574        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
16575          apr_config="$lookdir/$apr_temp_apr_config_file"
16576
16577          apr_found="yes"
16578          break 2
16579        fi
16580      done
16581    done
16582
16583    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
16584      apr_config="$withval"
16585      apr_found="yes"
16586    fi
16587
16588            if test "$apr_found" != "yes"; then
16589      as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
16590    fi
16591
16592else
16593
16594        if test -n "1" && test "1" = "1"; then
16595      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
16596      do
16597        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
16598          apr_config="$apr_temp_apr_config_file"
16599
16600          apr_found="yes"
16601          break
16602        else
16603                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
16604            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
16605              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
16606
16607              apr_found="yes"
16608              break 2
16609            fi
16610          done
16611        fi
16612      done
16613    fi
16614        if test "$apr_found" = "no" && test -d ""; then
16615      apr_temp_abs_srcdir="`cd  && pwd`"
16616      apr_found="reconfig"
16617      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
16618      case $apr_bundled_major in
16619        "")
16620          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
16621        ;;
16622        0)
16623          apr_temp_apr_config_file="apr-config"
16624        ;;
16625        *)
16626          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
16627        ;;
16628      esac
16629      if test -n ""; then
16630        apr_config="/$apr_temp_apr_config_file"
16631      else
16632        apr_config="/$apr_temp_apr_config_file"
16633      fi
16634    fi
16635
16636fi
16637
16638
16639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
16640$as_echo "$apr_found" >&6; }
16641
16642if test "$apr_found" = "no"; then
16643  as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5
16644fi
16645
16646CPPFLAGS="$CPPFLAGS `$apr_config --cppflags` `$apr_config --includes`"
16647APR_LIBS="`$apr_config --link-ld --libs`"
16648
16649LDFLAGS="$LDFLAGS $APR_LIBS"
16650
16651
16652  apu_found="no"
16653
16654  if test "$target_os" = "os2-emx"; then
16655    # Scripts don't pass test -x on OS/2
16656    TEST_X="test -f"
16657  else
16658    TEST_X="test -x"
16659  fi
16660
16661  acceptable_majors="1"
16662
16663  apu_temp_acceptable_apu_config=""
16664  for apu_temp_major in $acceptable_majors
16665  do
16666    case $apu_temp_major in
16667      0)
16668      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
16669      ;;
16670      *)
16671      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
16672      ;;
16673    esac
16674  done
16675
16676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
16677$as_echo_n "checking for APR-util... " >&6; }
16678
16679# Check whether --with-apr-util was given.
16680if test "${with_apr_util+set}" = set; then :
16681  withval=$with_apr_util;
16682    if test "$withval" = "no" || test "$withval" = "yes"; then
16683      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
16684    fi
16685
16686    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
16687    do
16688      for lookdir in "$withval/bin" "$withval"
16689      do
16690        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
16691          apu_config="$lookdir/$apu_temp_apu_config_file"
16692
16693          apu_found="yes"
16694          break 2
16695        fi
16696      done
16697    done
16698
16699    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
16700      apu_config="$withval"
16701      apu_found="yes"
16702    fi
16703
16704            if test "$apu_found" != "yes"; then
16705      as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
16706    fi
16707
16708else
16709
16710    if test -n "1" && test "1" = "1"; then
16711      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
16712      do
16713        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
16714          apu_config="$apu_temp_apu_config_file"
16715
16716          apu_found="yes"
16717          break
16718        else
16719                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
16720            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
16721              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
16722
16723              apu_found="yes"
16724              break 2
16725            fi
16726          done
16727        fi
16728      done
16729    fi
16730        if test "$apu_found" = "no" && test -d ""; then
16731      apu_temp_abs_srcdir="`cd  && pwd`"
16732      apu_found="reconfig"
16733      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apu_version.h\"`"
16734      case $apu_bundled_major in
16735        "")
16736          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
16737        ;;
16738        0)
16739          apu_temp_apu_config_file="apu-config"
16740        ;;
16741        *)
16742          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
16743        ;;
16744      esac
16745      if test -n ""; then
16746        apu_config="/$apu_temp_apu_config_file"
16747      else
16748        apu_config="/$apu_temp_apu_config_file"
16749      fi
16750    fi
16751
16752fi
16753
16754
16755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
16756$as_echo "$apu_found" >&6; }
16757
16758if test "$apu_found" = "no"; then
16759 as_fn_error $? "APR-util could not be located. Please use the --with-apr-util option." "$LINENO" 5
16760fi
16761
16762CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
16763APU_LIBS="`$apu_config --link-ld --libs`"
16764
16765LDFLAGS="$LDFLAGS $APU_LIBS"
16766
16767# Checks local idioms
16768# ----------------------------------------------------------------------------
16769
16770# for local syslog() function for SyslogAppender
16771for ac_func in mbsrtowcs
16772do :
16773  ac_fn_cxx_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
16774if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
16775  cat >>confdefs.h <<_ACEOF
16776#define HAVE_MBSRTOWCS 1
16777_ACEOF
16778 have_mbsrtowcs=yes
16779else
16780  have_mbsrtowcs=no
16781fi
16782done
16783
16784if test "$have_mbsrtowcs" = "yes"
16785then
16786 HAS_MBSRTOWCS=1
16787
16788else
16789 HAS_MBSRTOWCS=0
16790
16791fi
16792
16793for ac_func in wcstombs
16794do :
16795  ac_fn_cxx_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs"
16796if test "x$ac_cv_func_wcstombs" = xyes; then :
16797  cat >>confdefs.h <<_ACEOF
16798#define HAVE_WCSTOMBS 1
16799_ACEOF
16800 have_wcstombs=yes
16801else
16802  have_wcstombs=no
16803fi
16804done
16805
16806if test "$have_wcstombs" = "yes"
16807then
16808 HAS_WCSTOMBS=1
16809
16810else
16811 HAS_WCSTOMBS=0
16812
16813fi
16814
16815# for local syslog() function for SyslogAppender
16816for ac_func in syslog
16817do :
16818  ac_fn_cxx_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16819if test "x$ac_cv_func_syslog" = xyes; then :
16820  cat >>confdefs.h <<_ACEOF
16821#define HAVE_SYSLOG 1
16822_ACEOF
16823 have_syslog=yes
16824else
16825  have_syslog=no
16826fi
16827done
16828
16829if test "$have_syslog" = "yes"
16830then
16831 HAS_SYSLOG=1
16832
16833else
16834 HAS_SYSLOG=0
16835
16836fi
16837
16838
16839ac_fn_cxx_check_header_mongrel "$LINENO" "locale" "ac_cv_header_locale" "$ac_includes_default"
16840if test "x$ac_cv_header_locale" = xyes; then :
16841  have_locale=yes
16842else
16843  have_locale=no
16844fi
16845
16846
16847if test "$have_locale" = "yes"
16848then
16849 HAS_STD_LOCALE=1
16850
16851else
16852 HAS_STD_LOCALE=0
16853
16854fi
16855
16856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16857$as_echo_n "checking for wchar_t... " >&6; }
16858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859/* end confdefs.h.  */
16860
16861                   #include <string>
16862                   std::wstring w;
16863_ACEOF
16864if ac_fn_cxx_try_compile "$LINENO"; then :
16865  have_wchar_t=yes
16866else
16867  have_wchar_t=no
16868fi
16869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wchar_t" >&5
16871$as_echo "$have_wchar_t" >&6; }
16872if test "$have_wchar_t" = "yes"
16873then
16874 HAS_WCHAR_T=1
16875
16876else
16877 HAS_WCHAR_T=0
16878
16879fi
16880
16881for ac_func in fwide
16882do :
16883  ac_fn_cxx_check_func "$LINENO" "fwide" "ac_cv_func_fwide"
16884if test "x$ac_cv_func_fwide" = xyes; then :
16885  cat >>confdefs.h <<_ACEOF
16886#define HAVE_FWIDE 1
16887_ACEOF
16888 have_fwide=yes
16889else
16890  have_fwide=no
16891fi
16892done
16893
16894if test "$have_fwide" = "yes"
16895then
16896 HAS_FWIDE=1
16897
16898else
16899 HAS_FWIDE=0
16900
16901fi
16902
16903
16904# Checks for libraries
16905# ----------------------------------------------------------------------------
16906
16907#for ODBCAppender
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC support" >&5
16909$as_echo_n "checking for ODBC support... " >&6; }
16910
16911# Check whether --with-ODBC was given.
16912if test "${with_ODBC+set}" = set; then :
16913  withval=$with_ODBC; ac_with_odbc=$withval
16914else
16915  ac_with_odbc=no
16916fi
16917
16918case "$ac_with_odbc" in
16919    Microsoft)
16920        HAS_ODBC=1
16921
16922        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Microsoft" >&5
16923$as_echo "Microsoft" >&6; }
16924        LIBS_ODBC="-lodbc32"
16925        ;;
16926    unixODBC)
16927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unixODBC" >&5
16928$as_echo "unixODBC" >&6; }
16929        ac_fn_cxx_check_header_mongrel "$LINENO" "sqlext.h" "ac_cv_header_sqlext_h" "$ac_includes_default"
16930if test "x$ac_cv_header_sqlext_h" = xyes; then :
16931
16932else
16933  as_fn_error $? "unixODBC not found !" "$LINENO" 5
16934fi
16935
16936
16937        HAS_ODBC=1
16938
16939        LIBS_ODBC="-lodbc"
16940        ;;
16941    iODBC)
16942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: iODBC" >&5
16943$as_echo "iODBC" >&6; }
16944        # Extract the first word of "iodbc-config", so it can be a program name with args.
16945set dummy iodbc-config; ac_word=$2
16946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16947$as_echo_n "checking for $ac_word... " >&6; }
16948if ${ac_cv_prog_IODBC_CONFIG+:} false; then :
16949  $as_echo_n "(cached) " >&6
16950else
16951  if test -n "$IODBC_CONFIG"; then
16952  ac_cv_prog_IODBC_CONFIG="$IODBC_CONFIG" # Let the user override the test.
16953else
16954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16955for as_dir in $PATH
16956do
16957  IFS=$as_save_IFS
16958  test -z "$as_dir" && as_dir=.
16959    for ac_exec_ext in '' $ac_executable_extensions; do
16960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16961    ac_cv_prog_IODBC_CONFIG="yes"
16962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16963    break 2
16964  fi
16965done
16966  done
16967IFS=$as_save_IFS
16968
16969  test -z "$ac_cv_prog_IODBC_CONFIG" && ac_cv_prog_IODBC_CONFIG="no"
16970fi
16971fi
16972IODBC_CONFIG=$ac_cv_prog_IODBC_CONFIG
16973if test -n "$IODBC_CONFIG"; then
16974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IODBC_CONFIG" >&5
16975$as_echo "$IODBC_CONFIG" >&6; }
16976else
16977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16978$as_echo "no" >&6; }
16979fi
16980
16981
16982        if test "x$IODBC_CONFIG" = "xyes"
16983        then
16984                HAS_ODBC=1
16985
16986                LIBS_ODBC="`iodbc-config --libs`"
16987                CPPFLAGS_ODBC="`iodbc-config --cflags`"
16988        else
16989                as_fn_error $? "iODBC not found !" "$LINENO" 5
16990        fi
16991        ;;
16992        no)
16993        HAS_ODBC=0
16994
16995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996$as_echo "no" >&6; }
16997        ;;
16998    *)
16999        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
17000$as_echo "???" >&6; }
17001        as_fn_error $? "Unknown option : $ac_with_odbc" "$LINENO" 5
17002        ;;
17003esac
17004
17005
17006
17007
17008#for SMTPAppender
17009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMTP support" >&5
17010$as_echo_n "checking for SMTP support... " >&6; }
17011
17012# Check whether --with-SMTP was given.
17013if test "${with_SMTP+set}" = set; then :
17014  withval=$with_SMTP; ac_with_smtp=$withval
17015else
17016  ac_with_smtp=no
17017fi
17018
17019case "$ac_with_smtp" in
17020    libesmtp)
17021        { $as_echo "$as_me:${as_lineno-$LINENO}: result: libesmtp" >&5
17022$as_echo "libesmtp" >&6; }
17023        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
17024$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
17025if ${ac_cv_lib_esmtp_smtp_create_session+:} false; then :
17026  $as_echo_n "(cached) " >&6
17027else
17028  ac_check_lib_save_LIBS=$LIBS
17029LIBS="-lesmtp -lesmtp $LIBS"
17030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031/* end confdefs.h.  */
17032
17033/* Override any GCC internal prototype to avoid an error.
17034   Use char because int might match the return type of a GCC
17035   builtin and then its argument prototype would still apply.  */
17036#ifdef __cplusplus
17037extern "C"
17038#endif
17039char smtp_create_session ();
17040int
17041main ()
17042{
17043return smtp_create_session ();
17044  ;
17045  return 0;
17046}
17047_ACEOF
17048if ac_fn_cxx_try_link "$LINENO"; then :
17049  ac_cv_lib_esmtp_smtp_create_session=yes
17050else
17051  ac_cv_lib_esmtp_smtp_create_session=no
17052fi
17053rm -f core conftest.err conftest.$ac_objext \
17054    conftest$ac_exeext conftest.$ac_ext
17055LIBS=$ac_check_lib_save_LIBS
17056fi
17057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
17058$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
17059if test "x$ac_cv_lib_esmtp_smtp_create_session" = xyes; then :
17060  cat >>confdefs.h <<_ACEOF
17061#define HAVE_LIBESMTP 1
17062_ACEOF
17063
17064  LIBS="-lesmtp $LIBS"
17065
17066else
17067  as_fn_error $? "libesmtp library not found !" "$LINENO" 5
17068fi
17069
17070        HAS_LIBESMTP=1
17071
17072        LIBS="-lesmtp $LIBS"
17073        ;;
17074        no)
17075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17076$as_echo "no" >&6; }
17077        HAS_LIBESMTP=0
17078
17079        ;;
17080    *)
17081        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
17082$as_echo "???" >&6; }
17083        as_fn_error $? "Unknown option : $ac_with_smtp" "$LINENO" 5
17084        ;;
17085esac
17086
17087#for char api
17088# Check whether --enable-char was given.
17089if test "${enable_char+set}" = set; then :
17090  enableval=$enable_char;
17091fi
17092
17093if test "x$enable_char" = xno; then
17094        have_char_api=no
17095else
17096        have_char_api=yes
17097fi
17098
17099if test "$have_char_api" = "yes"
17100then
17101    CHAR_API=1
17102
17103else
17104    CHAR_API=0
17105
17106fi
17107
17108#for wchar_t api
17109# Check whether --enable-wchar_t was given.
17110if test "${enable_wchar_t+set}" = set; then :
17111  enableval=$enable_wchar_t;
17112fi
17113
17114if test "x$enable_wchar_t" = xno; then
17115        have_wchar_t_api=no
17116else
17117    if test "$have_wchar_t" = "yes"
17118    then
17119        have_wchar_t_api=yes
17120    else
17121        have_wchar_t_api=no
17122    fi
17123fi
17124
17125if test "$have_wchar_t_api" = "yes"
17126then
17127    WCHAR_T_API=1
17128
17129else
17130    WCHAR_T_API=0
17131
17132fi
17133
17134#for unichar api
17135# Check whether --enable-unichar was given.
17136if test "${enable_unichar+set}" = set; then :
17137  enableval=$enable_unichar;
17138fi
17139
17140if test "x$enable_unichar" = "yes"
17141then
17142    UNICHAR_API=1
17143
17144else
17145    UNICHAR_API=0
17146
17147fi
17148
17149#for cfstring api
17150# Check whether --enable-cfstring was given.
17151if test "${enable_cfstring+set}" = set; then :
17152  enableval=$enable_cfstring;
17153fi
17154
17155if test "x$enable_cfstring" = xyes; then
17156        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfstring" >&5
17157$as_echo_n "checking for cfstring... " >&6; }
17158        CPPFLAGS="$CPPFLAGS -framework CoreFoundation"
17159        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160/* end confdefs.h.  */
17161
17162                   #include <CoreFoundation/CFString.h>
17163                   CFStringRef x = CFSTR("Hello");
17164_ACEOF
17165if ac_fn_cxx_try_compile "$LINENO"; then :
17166  have_cfstring_api=yes
17167else
17168  have_cfstring_api=no
17169fi
17170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cfstring_api" >&5
17172$as_echo "$have_cfstring_api" >&6; }
17173else
17174        have_cfstring_api=no
17175fi
17176
17177if test "$have_cfstring_api" = "yes"
17178then
17179    CFSTRING_API=1
17180
17181else
17182    CFSTRING_API=0
17183
17184fi
17185
17186#determine charset type
17187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking charset type" >&5
17188$as_echo_n "checking charset type... " >&6; }
17189
17190# Check whether --with-charset was given.
17191if test "${with_charset+set}" = set; then :
17192  withval=$with_charset; ac_with_charset=$withval
17193else
17194  ac_with_charset=auto
17195fi
17196
17197
17198case "$ac_with_charset" in
17199    utf-8)
17200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: utf-8" >&5
17201$as_echo "utf-8" >&6; }
17202        CHARSET_UTF8=1
17203
17204        CHARSET_ISO88591=0
17205
17206        CHARSET_USASCII=0
17207
17208        CHARSET_EBCDIC=0
17209
17210        ;;
17211
17212    iso-8859-1)
17213        { $as_echo "$as_me:${as_lineno-$LINENO}: result: iso-8859-1" >&5
17214$as_echo "iso-8859-1" >&6; }
17215        CHARSET_UTF8=0
17216
17217        CHARSET_ISO88591=1
17218
17219        CHARSET_USASCII=0
17220
17221        CHARSET_EBCDIC=0
17222
17223        ;;
17224
17225    usascii)
17226        { $as_echo "$as_me:${as_lineno-$LINENO}: result: usascii" >&5
17227$as_echo "usascii" >&6; }
17228        CHARSET_UTF8=0
17229
17230        CHARSET_ISO88591=0
17231
17232        CHARSET_USASCII=1
17233
17234        CHARSET_EBCDIC=0
17235
17236        ;;
17237
17238    ebcdic)
17239        { $as_echo "$as_me:${as_lineno-$LINENO}: result: usascii" >&5
17240$as_echo "usascii" >&6; }
17241        CHARSET_UTF8=0
17242
17243        CHARSET_ISO88591=0
17244
17245        CHARSET_USASCII=0
17246
17247        CHARSET_EBCDIC=1
17248
17249        ;;
17250
17251    auto)
17252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
17253$as_echo "auto" >&6; }
17254        CHARSET_UTF8=0
17255
17256        CHARSET_ISO88591=0
17257
17258        CHARSET_USASCII=0
17259
17260        CHARSET_EBCDIC=0
17261
17262        ;;
17263
17264    *)
17265        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
17266$as_echo "???" >&6; }
17267        as_fn_error $? "Invalid charset type: $ac_with_charset" "$LINENO" 5
17268        ;;
17269esac
17270
17271
17272
17273#determine logchar type
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking logchar type" >&5
17275$as_echo_n "checking logchar type... " >&6; }
17276
17277# Check whether --with-logchar was given.
17278if test "${with_logchar+set}" = set; then :
17279  withval=$with_logchar; ac_with_logchar=$withval
17280else
17281  ac_with_logchar=utf-8
17282fi
17283
17284
17285case "$ac_with_logchar" in
17286    utf-8)
17287        { $as_echo "$as_me:${as_lineno-$LINENO}: result: utf-8" >&5
17288$as_echo "utf-8" >&6; }
17289        LOGCHAR_IS_UTF8=1
17290
17291        LOGCHAR_IS_WCHAR=0
17292
17293        LOGCHAR_IS_UNICHAR=0
17294
17295        ;;
17296
17297    wchar_t)
17298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: wchar_t" >&5
17299$as_echo "wchar_t" >&6; }
17300        LOGCHAR_IS_UTF8=0
17301
17302        LOGCHAR_IS_WCHAR=1
17303
17304        LOGCHAR_IS_UNICHAR=0
17305
17306        ;;
17307
17308    unichar)
17309        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unichar" >&5
17310$as_echo "unichar" >&6; }
17311        LOGCHAR_IS_UTF8=0
17312
17313        LOGCHAR_IS_WCHAR=0
17314
17315        LOGCHAR_IS_UNICHAR=1
17316
17317        ;;
17318
17319    *)
17320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
17321$as_echo "???" >&6; }
17322        as_fn_error $? "Invalid logchar type: $ac_with_logchar" "$LINENO" 5
17323        ;;
17324esac
17325
17326
17327# Check whether --enable-non-blocking was given.
17328if test "${enable_non_blocking+set}" = set; then :
17329  enableval=$enable_non_blocking;
17330fi
17331
17332if test "x$enable_non_blocking" = xyes; then
17333        CXXFLAGS="$CXXFLAGS -std=c++11"
17334        $as_echo "#define NON_BLOCKING 1" >>confdefs.h
17335
17336        $as_echo "#define RW_MUTEX 1" >>confdefs.h
17337
17338        $as_echo "#define STATIC_STRINGSTREAM 1" >>confdefs.h
17339
17340fi
17341
17342 if test "x$enable_non_blocking" = xyes; then
17343  NON_BLOCKING_TRUE=
17344  NON_BLOCKING_FALSE='#'
17345else
17346  NON_BLOCKING_TRUE='#'
17347  NON_BLOCKING_FALSE=
17348fi
17349
17350
17351# Create files
17352# ----------------------------------------------------------------------------
17353
17354ac_config_files="$ac_config_files Makefile liblog4cxx.pc src/Makefile src/main/Makefile src/main/cpp/Makefile src/main/include/Makefile src/main/include/log4cxx/log4cxx.h src/main/include/log4cxx/private/log4cxx_private.h src/main/include/log4cxx/private/Makefile src/main/include/log4cxx/Makefile src/main/include/log4cxx/helpers/Makefile src/main/include/log4cxx/net/Makefile src/main/include/log4cxx/nt/Makefile src/main/include/log4cxx/spi/Makefile src/main/include/log4cxx/spi/location/Makefile src/main/include/log4cxx/varia/Makefile src/main/include/log4cxx/xml/Makefile src/main/include/log4cxx/config/Makefile src/main/include/log4cxx/db/Makefile src/main/include/log4cxx/rolling/Makefile src/main/include/log4cxx/pattern/Makefile src/main/include/log4cxx/filter/Makefile src/m4/Makefile src/site/Makefile src/site/doxy/Makefile src/site/doxy/Doxyfile src/test/Makefile src/test/resources/Makefile src/test/resources/input/Makefile src/test/resources/input/ndc/Makefile src/test/resources/input/rolling/Makefile src/test/resources/input/xml/Makefile src/test/cpp/Makefile src/test/resources/witness/Makefile src/test/resources/witness/encoding/Makefile src/test/resources/witness/ndc/Makefile src/test/resources/witness/rolling/Makefile src/examples/Makefile src/examples/cpp/Makefile"
17355
17356cat >confcache <<\_ACEOF
17357# This file is a shell script that caches the results of configure
17358# tests run on this system so they can be shared between configure
17359# scripts and configure runs, see configure's option --config-cache.
17360# It is not useful on other systems.  If it contains results you don't
17361# want to keep, you may remove or edit it.
17362#
17363# config.status only pays attention to the cache file if you give it
17364# the --recheck option to rerun configure.
17365#
17366# `ac_cv_env_foo' variables (set or unset) will be overridden when
17367# loading this file, other *unset* `ac_cv_foo' will be assigned the
17368# following values.
17369
17370_ACEOF
17371
17372# The following way of writing the cache mishandles newlines in values,
17373# but we know of no workaround that is simple, portable, and efficient.
17374# So, we kill variables containing newlines.
17375# Ultrix sh set writes to stderr and can't be redirected directly,
17376# and sets the high bit in the cache file unless we assign to the vars.
17377(
17378  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17379    eval ac_val=\$$ac_var
17380    case $ac_val in #(
17381    *${as_nl}*)
17382      case $ac_var in #(
17383      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17385      esac
17386      case $ac_var in #(
17387      _ | IFS | as_nl) ;; #(
17388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17389      *) { eval $ac_var=; unset $ac_var;} ;;
17390      esac ;;
17391    esac
17392  done
17393
17394  (set) 2>&1 |
17395    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17396    *${as_nl}ac_space=\ *)
17397      # `set' does not quote correctly, so add quotes: double-quote
17398      # substitution turns \\\\ into \\, and sed turns \\ into \.
17399      sed -n \
17400	"s/'/'\\\\''/g;
17401	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17402      ;; #(
17403    *)
17404      # `set' quotes correctly as required by POSIX, so do not add quotes.
17405      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17406      ;;
17407    esac |
17408    sort
17409) |
17410  sed '
17411     /^ac_cv_env_/b end
17412     t clear
17413     :clear
17414     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17415     t end
17416     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17417     :end' >>confcache
17418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17419  if test -w "$cache_file"; then
17420    if test "x$cache_file" != "x/dev/null"; then
17421      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17422$as_echo "$as_me: updating cache $cache_file" >&6;}
17423      if test ! -f "$cache_file" || test -h "$cache_file"; then
17424	cat confcache >"$cache_file"
17425      else
17426        case $cache_file in #(
17427        */* | ?:*)
17428	  mv -f confcache "$cache_file"$$ &&
17429	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17430        *)
17431	  mv -f confcache "$cache_file" ;;
17432	esac
17433      fi
17434    fi
17435  else
17436    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17438  fi
17439fi
17440rm -f confcache
17441
17442test "x$prefix" = xNONE && prefix=$ac_default_prefix
17443# Let make expand exec_prefix.
17444test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17445
17446# Transform confdefs.h into DEFS.
17447# Protect against shell expansion while executing Makefile rules.
17448# Protect against Makefile macro expansion.
17449#
17450# If the first sed substitution is executed (which looks for macros that
17451# take arguments), then branch to the quote section.  Otherwise,
17452# look for a macro that doesn't take arguments.
17453ac_script='
17454:mline
17455/\\$/{
17456 N
17457 s,\\\n,,
17458 b mline
17459}
17460t clear
17461:clear
17462s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
17463t quote
17464s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
17465t quote
17466b any
17467:quote
17468s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17469s/\[/\\&/g
17470s/\]/\\&/g
17471s/\$/$$/g
17472H
17473:any
17474${
17475	g
17476	s/^\n//
17477	s/\n/ /g
17478	p
17479}
17480'
17481DEFS=`sed -n "$ac_script" confdefs.h`
17482
17483
17484ac_libobjs=
17485ac_ltlibobjs=
17486U=
17487for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17488  # 1. Remove the extension, and $U if already installed.
17489  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17490  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17491  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17492  #    will be set to the directory where LIBOBJS objects are built.
17493  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17494  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17495done
17496LIBOBJS=$ac_libobjs
17497
17498LTLIBOBJS=$ac_ltlibobjs
17499
17500
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17502$as_echo_n "checking that generated files are newer than configure... " >&6; }
17503   if test -n "$am_sleep_pid"; then
17504     # Hide warnings about reused PIDs.
17505     wait $am_sleep_pid 2>/dev/null
17506   fi
17507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17508$as_echo "done" >&6; }
17509 if test -n "$EXEEXT"; then
17510  am__EXEEXT_TRUE=
17511  am__EXEEXT_FALSE='#'
17512else
17513  am__EXEEXT_TRUE='#'
17514  am__EXEEXT_FALSE=
17515fi
17516
17517if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17518  as_fn_error $? "conditional \"AMDEP\" was never defined.
17519Usually this means the macro was only invoked conditionally." "$LINENO" 5
17520fi
17521if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17522  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17523Usually this means the macro was only invoked conditionally." "$LINENO" 5
17524fi
17525if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17526  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17527Usually this means the macro was only invoked conditionally." "$LINENO" 5
17528fi
17529if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
17530  as_fn_error $? "conditional \"DOC\" was never defined.
17531Usually this means the macro was only invoked conditionally." "$LINENO" 5
17532fi
17533if test -z "${LATEX_DOC_TRUE}" && test -z "${LATEX_DOC_FALSE}"; then
17534  as_fn_error $? "conditional \"LATEX_DOC\" was never defined.
17535Usually this means the macro was only invoked conditionally." "$LINENO" 5
17536fi
17537if test -z "${NON_BLOCKING_TRUE}" && test -z "${NON_BLOCKING_FALSE}"; then
17538  as_fn_error $? "conditional \"NON_BLOCKING\" was never defined.
17539Usually this means the macro was only invoked conditionally." "$LINENO" 5
17540fi
17541
17542: "${CONFIG_STATUS=./config.status}"
17543ac_write_fail=0
17544ac_clean_files_save=$ac_clean_files
17545ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17546{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17547$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17548as_write_fail=0
17549cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17550#! $SHELL
17551# Generated by $as_me.
17552# Run this file to recreate the current configuration.
17553# Compiler output produced by configure, useful for debugging
17554# configure, is in config.log if it exists.
17555
17556debug=false
17557ac_cs_recheck=false
17558ac_cs_silent=false
17559
17560SHELL=\${CONFIG_SHELL-$SHELL}
17561export SHELL
17562_ASEOF
17563cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17564## -------------------- ##
17565## M4sh Initialization. ##
17566## -------------------- ##
17567
17568# Be more Bourne compatible
17569DUALCASE=1; export DUALCASE # for MKS sh
17570if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17571  emulate sh
17572  NULLCMD=:
17573  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17574  # is contrary to our usage.  Disable this feature.
17575  alias -g '${1+"$@"}'='"$@"'
17576  setopt NO_GLOB_SUBST
17577else
17578  case `(set -o) 2>/dev/null` in #(
17579  *posix*) :
17580    set -o posix ;; #(
17581  *) :
17582     ;;
17583esac
17584fi
17585
17586
17587as_nl='
17588'
17589export as_nl
17590# Printing a long string crashes Solaris 7 /usr/bin/printf.
17591as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17592as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17593as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17594# Prefer a ksh shell builtin over an external printf program on Solaris,
17595# but without wasting forks for bash or zsh.
17596if test -z "$BASH_VERSION$ZSH_VERSION" \
17597    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17598  as_echo='print -r --'
17599  as_echo_n='print -rn --'
17600elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17601  as_echo='printf %s\n'
17602  as_echo_n='printf %s'
17603else
17604  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17605    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17606    as_echo_n='/usr/ucb/echo -n'
17607  else
17608    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17609    as_echo_n_body='eval
17610      arg=$1;
17611      case $arg in #(
17612      *"$as_nl"*)
17613	expr "X$arg" : "X\\(.*\\)$as_nl";
17614	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17615      esac;
17616      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17617    '
17618    export as_echo_n_body
17619    as_echo_n='sh -c $as_echo_n_body as_echo'
17620  fi
17621  export as_echo_body
17622  as_echo='sh -c $as_echo_body as_echo'
17623fi
17624
17625# The user is always right.
17626if test "${PATH_SEPARATOR+set}" != set; then
17627  PATH_SEPARATOR=:
17628  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17629    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17630      PATH_SEPARATOR=';'
17631  }
17632fi
17633
17634
17635# IFS
17636# We need space, tab and new line, in precisely that order.  Quoting is
17637# there to prevent editors from complaining about space-tab.
17638# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17639# splitting by setting IFS to empty value.)
17640IFS=" ""	$as_nl"
17641
17642# Find who we are.  Look in the path if we contain no directory separator.
17643as_myself=
17644case $0 in #((
17645  *[\\/]* ) as_myself=$0 ;;
17646  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647for as_dir in $PATH
17648do
17649  IFS=$as_save_IFS
17650  test -z "$as_dir" && as_dir=.
17651    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17652  done
17653IFS=$as_save_IFS
17654
17655     ;;
17656esac
17657# We did not find ourselves, most probably we were run as `sh COMMAND'
17658# in which case we are not to be found in the path.
17659if test "x$as_myself" = x; then
17660  as_myself=$0
17661fi
17662if test ! -f "$as_myself"; then
17663  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17664  exit 1
17665fi
17666
17667# Unset variables that we do not need and which cause bugs (e.g. in
17668# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17669# suppresses any "Segmentation fault" message there.  '((' could
17670# trigger a bug in pdksh 5.2.14.
17671for as_var in BASH_ENV ENV MAIL MAILPATH
17672do eval test x\${$as_var+set} = xset \
17673  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17674done
17675PS1='$ '
17676PS2='> '
17677PS4='+ '
17678
17679# NLS nuisances.
17680LC_ALL=C
17681export LC_ALL
17682LANGUAGE=C
17683export LANGUAGE
17684
17685# CDPATH.
17686(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17687
17688
17689# as_fn_error STATUS ERROR [LINENO LOG_FD]
17690# ----------------------------------------
17691# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17692# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17693# script with STATUS, using 1 if that was 0.
17694as_fn_error ()
17695{
17696  as_status=$1; test $as_status -eq 0 && as_status=1
17697  if test "$4"; then
17698    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17699    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17700  fi
17701  $as_echo "$as_me: error: $2" >&2
17702  as_fn_exit $as_status
17703} # as_fn_error
17704
17705
17706# as_fn_set_status STATUS
17707# -----------------------
17708# Set $? to STATUS, without forking.
17709as_fn_set_status ()
17710{
17711  return $1
17712} # as_fn_set_status
17713
17714# as_fn_exit STATUS
17715# -----------------
17716# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17717as_fn_exit ()
17718{
17719  set +e
17720  as_fn_set_status $1
17721  exit $1
17722} # as_fn_exit
17723
17724# as_fn_unset VAR
17725# ---------------
17726# Portably unset VAR.
17727as_fn_unset ()
17728{
17729  { eval $1=; unset $1;}
17730}
17731as_unset=as_fn_unset
17732# as_fn_append VAR VALUE
17733# ----------------------
17734# Append the text in VALUE to the end of the definition contained in VAR. Take
17735# advantage of any shell optimizations that allow amortized linear growth over
17736# repeated appends, instead of the typical quadratic growth present in naive
17737# implementations.
17738if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17739  eval 'as_fn_append ()
17740  {
17741    eval $1+=\$2
17742  }'
17743else
17744  as_fn_append ()
17745  {
17746    eval $1=\$$1\$2
17747  }
17748fi # as_fn_append
17749
17750# as_fn_arith ARG...
17751# ------------------
17752# Perform arithmetic evaluation on the ARGs, and store the result in the
17753# global $as_val. Take advantage of shells that can avoid forks. The arguments
17754# must be portable across $(()) and expr.
17755if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17756  eval 'as_fn_arith ()
17757  {
17758    as_val=$(( $* ))
17759  }'
17760else
17761  as_fn_arith ()
17762  {
17763    as_val=`expr "$@" || test $? -eq 1`
17764  }
17765fi # as_fn_arith
17766
17767
17768if expr a : '\(a\)' >/dev/null 2>&1 &&
17769   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17770  as_expr=expr
17771else
17772  as_expr=false
17773fi
17774
17775if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17776  as_basename=basename
17777else
17778  as_basename=false
17779fi
17780
17781if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17782  as_dirname=dirname
17783else
17784  as_dirname=false
17785fi
17786
17787as_me=`$as_basename -- "$0" ||
17788$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17789	 X"$0" : 'X\(//\)$' \| \
17790	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17791$as_echo X/"$0" |
17792    sed '/^.*\/\([^/][^/]*\)\/*$/{
17793	    s//\1/
17794	    q
17795	  }
17796	  /^X\/\(\/\/\)$/{
17797	    s//\1/
17798	    q
17799	  }
17800	  /^X\/\(\/\).*/{
17801	    s//\1/
17802	    q
17803	  }
17804	  s/.*/./; q'`
17805
17806# Avoid depending upon Character Ranges.
17807as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17808as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17809as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17810as_cr_digits='0123456789'
17811as_cr_alnum=$as_cr_Letters$as_cr_digits
17812
17813ECHO_C= ECHO_N= ECHO_T=
17814case `echo -n x` in #(((((
17815-n*)
17816  case `echo 'xy\c'` in
17817  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17818  xy)  ECHO_C='\c';;
17819  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17820       ECHO_T='	';;
17821  esac;;
17822*)
17823  ECHO_N='-n';;
17824esac
17825
17826rm -f conf$$ conf$$.exe conf$$.file
17827if test -d conf$$.dir; then
17828  rm -f conf$$.dir/conf$$.file
17829else
17830  rm -f conf$$.dir
17831  mkdir conf$$.dir 2>/dev/null
17832fi
17833if (echo >conf$$.file) 2>/dev/null; then
17834  if ln -s conf$$.file conf$$ 2>/dev/null; then
17835    as_ln_s='ln -s'
17836    # ... but there are two gotchas:
17837    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17838    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17839    # In both cases, we have to default to `cp -pR'.
17840    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17841      as_ln_s='cp -pR'
17842  elif ln conf$$.file conf$$ 2>/dev/null; then
17843    as_ln_s=ln
17844  else
17845    as_ln_s='cp -pR'
17846  fi
17847else
17848  as_ln_s='cp -pR'
17849fi
17850rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17851rmdir conf$$.dir 2>/dev/null
17852
17853
17854# as_fn_mkdir_p
17855# -------------
17856# Create "$as_dir" as a directory, including parents if necessary.
17857as_fn_mkdir_p ()
17858{
17859
17860  case $as_dir in #(
17861  -*) as_dir=./$as_dir;;
17862  esac
17863  test -d "$as_dir" || eval $as_mkdir_p || {
17864    as_dirs=
17865    while :; do
17866      case $as_dir in #(
17867      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17868      *) as_qdir=$as_dir;;
17869      esac
17870      as_dirs="'$as_qdir' $as_dirs"
17871      as_dir=`$as_dirname -- "$as_dir" ||
17872$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17873	 X"$as_dir" : 'X\(//\)[^/]' \| \
17874	 X"$as_dir" : 'X\(//\)$' \| \
17875	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17876$as_echo X"$as_dir" |
17877    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17878	    s//\1/
17879	    q
17880	  }
17881	  /^X\(\/\/\)[^/].*/{
17882	    s//\1/
17883	    q
17884	  }
17885	  /^X\(\/\/\)$/{
17886	    s//\1/
17887	    q
17888	  }
17889	  /^X\(\/\).*/{
17890	    s//\1/
17891	    q
17892	  }
17893	  s/.*/./; q'`
17894      test -d "$as_dir" && break
17895    done
17896    test -z "$as_dirs" || eval "mkdir $as_dirs"
17897  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17898
17899
17900} # as_fn_mkdir_p
17901if mkdir -p . 2>/dev/null; then
17902  as_mkdir_p='mkdir -p "$as_dir"'
17903else
17904  test -d ./-p && rmdir ./-p
17905  as_mkdir_p=false
17906fi
17907
17908
17909# as_fn_executable_p FILE
17910# -----------------------
17911# Test if FILE is an executable regular file.
17912as_fn_executable_p ()
17913{
17914  test -f "$1" && test -x "$1"
17915} # as_fn_executable_p
17916as_test_x='test -x'
17917as_executable_p=as_fn_executable_p
17918
17919# Sed expression to map a string onto a valid CPP name.
17920as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17921
17922# Sed expression to map a string onto a valid variable name.
17923as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17924
17925
17926exec 6>&1
17927## ----------------------------------- ##
17928## Main body of $CONFIG_STATUS script. ##
17929## ----------------------------------- ##
17930_ASEOF
17931test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17932
17933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17934# Save the log message, to keep $0 and so on meaningful, and to
17935# report actual input values of CONFIG_FILES etc. instead of their
17936# values after options handling.
17937ac_log="
17938This file was extended by log4cxx $as_me 0.11.0, which was
17939generated by GNU Autoconf 2.69.  Invocation command line was
17940
17941  CONFIG_FILES    = $CONFIG_FILES
17942  CONFIG_HEADERS  = $CONFIG_HEADERS
17943  CONFIG_LINKS    = $CONFIG_LINKS
17944  CONFIG_COMMANDS = $CONFIG_COMMANDS
17945  $ $0 $@
17946
17947on `(hostname || uname -n) 2>/dev/null | sed 1q`
17948"
17949
17950_ACEOF
17951
17952case $ac_config_files in *"
17953"*) set x $ac_config_files; shift; ac_config_files=$*;;
17954esac
17955
17956
17957
17958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959# Files that config.status was made for.
17960config_files="$ac_config_files"
17961config_commands="$ac_config_commands"
17962
17963_ACEOF
17964
17965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17966ac_cs_usage="\
17967\`$as_me' instantiates files and other configuration actions
17968from templates according to the current configuration.  Unless the files
17969and actions are specified as TAGs, all are instantiated by default.
17970
17971Usage: $0 [OPTION]... [TAG]...
17972
17973  -h, --help       print this help, then exit
17974  -V, --version    print version number and configuration settings, then exit
17975      --config     print configuration, then exit
17976  -q, --quiet, --silent
17977                   do not print progress messages
17978  -d, --debug      don't remove temporary files
17979      --recheck    update $as_me by reconfiguring in the same conditions
17980      --file=FILE[:TEMPLATE]
17981                   instantiate the configuration file FILE
17982
17983Configuration files:
17984$config_files
17985
17986Configuration commands:
17987$config_commands
17988
17989Report bugs to the package provider."
17990
17991_ACEOF
17992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17994ac_cs_version="\\
17995log4cxx config.status 0.11.0
17996configured by $0, generated by GNU Autoconf 2.69,
17997  with options \\"\$ac_cs_config\\"
17998
17999Copyright (C) 2012 Free Software Foundation, Inc.
18000This config.status script is free software; the Free Software Foundation
18001gives unlimited permission to copy, distribute and modify it."
18002
18003ac_pwd='$ac_pwd'
18004srcdir='$srcdir'
18005INSTALL='$INSTALL'
18006MKDIR_P='$MKDIR_P'
18007AWK='$AWK'
18008test -n "\$AWK" || AWK=awk
18009_ACEOF
18010
18011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18012# The default lists apply if the user does not specify any file.
18013ac_need_defaults=:
18014while test $# != 0
18015do
18016  case $1 in
18017  --*=?*)
18018    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18019    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18020    ac_shift=:
18021    ;;
18022  --*=)
18023    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18024    ac_optarg=
18025    ac_shift=:
18026    ;;
18027  *)
18028    ac_option=$1
18029    ac_optarg=$2
18030    ac_shift=shift
18031    ;;
18032  esac
18033
18034  case $ac_option in
18035  # Handling of the options.
18036  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18037    ac_cs_recheck=: ;;
18038  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18039    $as_echo "$ac_cs_version"; exit ;;
18040  --config | --confi | --conf | --con | --co | --c )
18041    $as_echo "$ac_cs_config"; exit ;;
18042  --debug | --debu | --deb | --de | --d | -d )
18043    debug=: ;;
18044  --file | --fil | --fi | --f )
18045    $ac_shift
18046    case $ac_optarg in
18047    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18048    '') as_fn_error $? "missing file argument" ;;
18049    esac
18050    as_fn_append CONFIG_FILES " '$ac_optarg'"
18051    ac_need_defaults=false;;
18052  --he | --h |  --help | --hel | -h )
18053    $as_echo "$ac_cs_usage"; exit ;;
18054  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18055  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18056    ac_cs_silent=: ;;
18057
18058  # This is an error.
18059  -*) as_fn_error $? "unrecognized option: \`$1'
18060Try \`$0 --help' for more information." ;;
18061
18062  *) as_fn_append ac_config_targets " $1"
18063     ac_need_defaults=false ;;
18064
18065  esac
18066  shift
18067done
18068
18069ac_configure_extra_args=
18070
18071if $ac_cs_silent; then
18072  exec 6>/dev/null
18073  ac_configure_extra_args="$ac_configure_extra_args --silent"
18074fi
18075
18076_ACEOF
18077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18078if \$ac_cs_recheck; then
18079  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18080  shift
18081  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18082  CONFIG_SHELL='$SHELL'
18083  export CONFIG_SHELL
18084  exec "\$@"
18085fi
18086
18087_ACEOF
18088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18089exec 5>>config.log
18090{
18091  echo
18092  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18093## Running $as_me. ##
18094_ASBOX
18095  $as_echo "$ac_log"
18096} >&5
18097
18098_ACEOF
18099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18100#
18101# INIT-COMMANDS
18102#
18103AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18104
18105
18106# The HP-UX ksh and POSIX shell print the target directory to stdout
18107# if CDPATH is set.
18108(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18109
18110sed_quote_subst='$sed_quote_subst'
18111double_quote_subst='$double_quote_subst'
18112delay_variable_subst='$delay_variable_subst'
18113macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18114macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18115enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18116enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18117pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18118enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18119shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18120SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18121ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18122PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18123host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18124host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18125host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18126build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18127build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18128build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18129SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18130Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18131GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18132EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18133FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18134LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18135NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18136LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18137max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18138ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18139exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18140lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18141lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18142lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18143lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18144lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18145reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18146reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18147OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18148deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18149file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18150file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18151want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18152DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18153sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18154AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18155AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18156archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18157STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18158RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18159old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18160old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18161old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18162lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18163CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18164CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18165compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18166GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18167lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18168lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18169lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18170lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18171lt_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"`'
18172lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18173nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18174lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18175lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18176objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18177MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18178lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18179lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18180lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18181lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18182lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18183need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18184MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18185DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18186NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18187LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18188OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18189OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18190libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18191shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18192extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18193archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18194enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18195export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18196whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18197compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18198old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18199old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18200archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18201archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18202module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18203module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18204with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18205allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18206no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18207hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18208hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18209hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18210hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18211hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18212hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18213hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18214inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18215link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18216always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18217export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18218exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18219include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18220prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18221postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18222file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18223variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18224need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18225need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18226version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18227runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18228shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18229shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18230libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18231library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18232soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18233install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18234postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18235postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18236finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18237finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18238hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18239sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18240configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18241configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18242hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18243enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18244enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18245enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18246old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18247striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18248compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18249predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18250postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18251predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18252postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18253compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18254LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18255reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18256reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18257old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18258compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18259GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18260lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18261lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18262lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18263lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18264lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18265archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18266enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18267export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18268whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18269compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18270old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18271old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18272archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18273archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18274module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18275module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18276with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18277allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18278no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18279hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18280hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18281hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18282hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18283hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18284hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18285hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18286inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18287link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18288always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18289export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18290exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18291include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18292prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18293postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18294file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18295hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18296compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18297predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18298postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18299predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18300postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18301compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18302
18303LTCC='$LTCC'
18304LTCFLAGS='$LTCFLAGS'
18305compiler='$compiler_DEFAULT'
18306
18307# A function that is used when there is no print builtin or printf.
18308func_fallback_echo ()
18309{
18310  eval 'cat <<_LTECHO_EOF
18311\$1
18312_LTECHO_EOF'
18313}
18314
18315# Quote evaled strings.
18316for var in SHELL \
18317ECHO \
18318PATH_SEPARATOR \
18319SED \
18320GREP \
18321EGREP \
18322FGREP \
18323LD \
18324NM \
18325LN_S \
18326lt_SP2NL \
18327lt_NL2SP \
18328reload_flag \
18329OBJDUMP \
18330deplibs_check_method \
18331file_magic_cmd \
18332file_magic_glob \
18333want_nocaseglob \
18334DLLTOOL \
18335sharedlib_from_linklib_cmd \
18336AR \
18337AR_FLAGS \
18338archiver_list_spec \
18339STRIP \
18340RANLIB \
18341CC \
18342CFLAGS \
18343compiler \
18344lt_cv_sys_global_symbol_pipe \
18345lt_cv_sys_global_symbol_to_cdecl \
18346lt_cv_sys_global_symbol_to_import \
18347lt_cv_sys_global_symbol_to_c_name_address \
18348lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18349lt_cv_nm_interface \
18350nm_file_list_spec \
18351lt_cv_truncate_bin \
18352lt_prog_compiler_no_builtin_flag \
18353lt_prog_compiler_pic \
18354lt_prog_compiler_wl \
18355lt_prog_compiler_static \
18356lt_cv_prog_compiler_c_o \
18357need_locks \
18358MANIFEST_TOOL \
18359DSYMUTIL \
18360NMEDIT \
18361LIPO \
18362OTOOL \
18363OTOOL64 \
18364shrext_cmds \
18365export_dynamic_flag_spec \
18366whole_archive_flag_spec \
18367compiler_needs_object \
18368with_gnu_ld \
18369allow_undefined_flag \
18370no_undefined_flag \
18371hardcode_libdir_flag_spec \
18372hardcode_libdir_separator \
18373exclude_expsyms \
18374include_expsyms \
18375file_list_spec \
18376variables_saved_for_relink \
18377libname_spec \
18378library_names_spec \
18379soname_spec \
18380install_override_mode \
18381finish_eval \
18382old_striplib \
18383striplib \
18384compiler_lib_search_dirs \
18385predep_objects \
18386postdep_objects \
18387predeps \
18388postdeps \
18389compiler_lib_search_path \
18390LD_CXX \
18391reload_flag_CXX \
18392compiler_CXX \
18393lt_prog_compiler_no_builtin_flag_CXX \
18394lt_prog_compiler_pic_CXX \
18395lt_prog_compiler_wl_CXX \
18396lt_prog_compiler_static_CXX \
18397lt_cv_prog_compiler_c_o_CXX \
18398export_dynamic_flag_spec_CXX \
18399whole_archive_flag_spec_CXX \
18400compiler_needs_object_CXX \
18401with_gnu_ld_CXX \
18402allow_undefined_flag_CXX \
18403no_undefined_flag_CXX \
18404hardcode_libdir_flag_spec_CXX \
18405hardcode_libdir_separator_CXX \
18406exclude_expsyms_CXX \
18407include_expsyms_CXX \
18408file_list_spec_CXX \
18409compiler_lib_search_dirs_CXX \
18410predep_objects_CXX \
18411postdep_objects_CXX \
18412predeps_CXX \
18413postdeps_CXX \
18414compiler_lib_search_path_CXX; do
18415    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18416    *[\\\\\\\`\\"\\\$]*)
18417      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18418      ;;
18419    *)
18420      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18421      ;;
18422    esac
18423done
18424
18425# Double-quote double-evaled strings.
18426for var in reload_cmds \
18427old_postinstall_cmds \
18428old_postuninstall_cmds \
18429old_archive_cmds \
18430extract_expsyms_cmds \
18431old_archive_from_new_cmds \
18432old_archive_from_expsyms_cmds \
18433archive_cmds \
18434archive_expsym_cmds \
18435module_cmds \
18436module_expsym_cmds \
18437export_symbols_cmds \
18438prelink_cmds \
18439postlink_cmds \
18440postinstall_cmds \
18441postuninstall_cmds \
18442finish_cmds \
18443sys_lib_search_path_spec \
18444configure_time_dlsearch_path \
18445configure_time_lt_sys_library_path \
18446reload_cmds_CXX \
18447old_archive_cmds_CXX \
18448old_archive_from_new_cmds_CXX \
18449old_archive_from_expsyms_cmds_CXX \
18450archive_cmds_CXX \
18451archive_expsym_cmds_CXX \
18452module_cmds_CXX \
18453module_expsym_cmds_CXX \
18454export_symbols_cmds_CXX \
18455prelink_cmds_CXX \
18456postlink_cmds_CXX; do
18457    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18458    *[\\\\\\\`\\"\\\$]*)
18459      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18460      ;;
18461    *)
18462      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18463      ;;
18464    esac
18465done
18466
18467ac_aux_dir='$ac_aux_dir'
18468
18469# See if we are running on zsh, and set the options that allow our
18470# commands through without removal of \ escapes INIT.
18471if test -n "\${ZSH_VERSION+set}"; then
18472   setopt NO_GLOB_SUBST
18473fi
18474
18475
18476    PACKAGE='$PACKAGE'
18477    VERSION='$VERSION'
18478    RM='$RM'
18479    ofile='$ofile'
18480
18481
18482
18483
18484
18485
18486_ACEOF
18487
18488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18489
18490# Handling of arguments.
18491for ac_config_target in $ac_config_targets
18492do
18493  case $ac_config_target in
18494    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18495    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18496    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18497    "liblog4cxx.pc") CONFIG_FILES="$CONFIG_FILES liblog4cxx.pc" ;;
18498    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18499    "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
18500    "src/main/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/cpp/Makefile" ;;
18501    "src/main/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/Makefile" ;;
18502    "src/main/include/log4cxx/log4cxx.h") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/log4cxx.h" ;;
18503    "src/main/include/log4cxx/private/log4cxx_private.h") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/private/log4cxx_private.h" ;;
18504    "src/main/include/log4cxx/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/private/Makefile" ;;
18505    "src/main/include/log4cxx/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/Makefile" ;;
18506    "src/main/include/log4cxx/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/helpers/Makefile" ;;
18507    "src/main/include/log4cxx/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/net/Makefile" ;;
18508    "src/main/include/log4cxx/nt/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/nt/Makefile" ;;
18509    "src/main/include/log4cxx/spi/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/spi/Makefile" ;;
18510    "src/main/include/log4cxx/spi/location/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/spi/location/Makefile" ;;
18511    "src/main/include/log4cxx/varia/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/varia/Makefile" ;;
18512    "src/main/include/log4cxx/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/xml/Makefile" ;;
18513    "src/main/include/log4cxx/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/config/Makefile" ;;
18514    "src/main/include/log4cxx/db/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/db/Makefile" ;;
18515    "src/main/include/log4cxx/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/rolling/Makefile" ;;
18516    "src/main/include/log4cxx/pattern/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/pattern/Makefile" ;;
18517    "src/main/include/log4cxx/filter/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/filter/Makefile" ;;
18518    "src/m4/Makefile") CONFIG_FILES="$CONFIG_FILES src/m4/Makefile" ;;
18519    "src/site/Makefile") CONFIG_FILES="$CONFIG_FILES src/site/Makefile" ;;
18520    "src/site/doxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/site/doxy/Makefile" ;;
18521    "src/site/doxy/Doxyfile") CONFIG_FILES="$CONFIG_FILES src/site/doxy/Doxyfile" ;;
18522    "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
18523    "src/test/resources/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/Makefile" ;;
18524    "src/test/resources/input/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/Makefile" ;;
18525    "src/test/resources/input/ndc/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/ndc/Makefile" ;;
18526    "src/test/resources/input/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/rolling/Makefile" ;;
18527    "src/test/resources/input/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/xml/Makefile" ;;
18528    "src/test/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/cpp/Makefile" ;;
18529    "src/test/resources/witness/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/Makefile" ;;
18530    "src/test/resources/witness/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/encoding/Makefile" ;;
18531    "src/test/resources/witness/ndc/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/ndc/Makefile" ;;
18532    "src/test/resources/witness/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/rolling/Makefile" ;;
18533    "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
18534    "src/examples/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/cpp/Makefile" ;;
18535
18536  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18537  esac
18538done
18539
18540
18541# If the user did not use the arguments to specify the items to instantiate,
18542# then the envvar interface is used.  Set only those that are not.
18543# We use the long form for the default assignment because of an extremely
18544# bizarre bug on SunOS 4.1.3.
18545if $ac_need_defaults; then
18546  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18547  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18548fi
18549
18550# Have a temporary directory for convenience.  Make it in the build tree
18551# simply because there is no reason against having it here, and in addition,
18552# creating and moving files from /tmp can sometimes cause problems.
18553# Hook for its removal unless debugging.
18554# Note that there is a small window in which the directory will not be cleaned:
18555# after its creation but before its name has been assigned to `$tmp'.
18556$debug ||
18557{
18558  tmp= ac_tmp=
18559  trap 'exit_status=$?
18560  : "${ac_tmp:=$tmp}"
18561  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18562' 0
18563  trap 'as_fn_exit 1' 1 2 13 15
18564}
18565# Create a (secure) tmp directory for tmp files.
18566
18567{
18568  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18569  test -d "$tmp"
18570}  ||
18571{
18572  tmp=./conf$$-$RANDOM
18573  (umask 077 && mkdir "$tmp")
18574} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18575ac_tmp=$tmp
18576
18577# Set up the scripts for CONFIG_FILES section.
18578# No need to generate them if there are no CONFIG_FILES.
18579# This happens for instance with `./config.status config.h'.
18580if test -n "$CONFIG_FILES"; then
18581
18582
18583ac_cr=`echo X | tr X '\015'`
18584# On cygwin, bash can eat \r inside `` if the user requested igncr.
18585# But we know of no other shell where ac_cr would be empty at this
18586# point, so we can use a bashism as a fallback.
18587if test "x$ac_cr" = x; then
18588  eval ac_cr=\$\'\\r\'
18589fi
18590ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18591if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18592  ac_cs_awk_cr='\\r'
18593else
18594  ac_cs_awk_cr=$ac_cr
18595fi
18596
18597echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18598_ACEOF
18599
18600
18601{
18602  echo "cat >conf$$subs.awk <<_ACEOF" &&
18603  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18604  echo "_ACEOF"
18605} >conf$$subs.sh ||
18606  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18607ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18608ac_delim='%!_!# '
18609for ac_last_try in false false false false false :; do
18610  . ./conf$$subs.sh ||
18611    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18612
18613  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18614  if test $ac_delim_n = $ac_delim_num; then
18615    break
18616  elif $ac_last_try; then
18617    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18618  else
18619    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18620  fi
18621done
18622rm -f conf$$subs.sh
18623
18624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18625cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18626_ACEOF
18627sed -n '
18628h
18629s/^/S["/; s/!.*/"]=/
18630p
18631g
18632s/^[^!]*!//
18633:repl
18634t repl
18635s/'"$ac_delim"'$//
18636t delim
18637:nl
18638h
18639s/\(.\{148\}\)..*/\1/
18640t more1
18641s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18642p
18643n
18644b repl
18645:more1
18646s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18647p
18648g
18649s/.\{148\}//
18650t nl
18651:delim
18652h
18653s/\(.\{148\}\)..*/\1/
18654t more2
18655s/["\\]/\\&/g; s/^/"/; s/$/"/
18656p
18657b
18658:more2
18659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18660p
18661g
18662s/.\{148\}//
18663t delim
18664' <conf$$subs.awk | sed '
18665/^[^""]/{
18666  N
18667  s/\n//
18668}
18669' >>$CONFIG_STATUS || ac_write_fail=1
18670rm -f conf$$subs.awk
18671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18672_ACAWK
18673cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18674  for (key in S) S_is_set[key] = 1
18675  FS = ""
18676
18677}
18678{
18679  line = $ 0
18680  nfields = split(line, field, "@")
18681  substed = 0
18682  len = length(field[1])
18683  for (i = 2; i < nfields; i++) {
18684    key = field[i]
18685    keylen = length(key)
18686    if (S_is_set[key]) {
18687      value = S[key]
18688      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18689      len += length(value) + length(field[++i])
18690      substed = 1
18691    } else
18692      len += 1 + keylen
18693  }
18694
18695  print line
18696}
18697
18698_ACAWK
18699_ACEOF
18700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18701if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18702  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18703else
18704  cat
18705fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18706  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18707_ACEOF
18708
18709# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18710# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18711# trailing colons and then remove the whole line if VPATH becomes empty
18712# (actually we leave an empty line to preserve line numbers).
18713if test "x$srcdir" = x.; then
18714  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18715h
18716s///
18717s/^/:/
18718s/[	 ]*$/:/
18719s/:\$(srcdir):/:/g
18720s/:\${srcdir}:/:/g
18721s/:@srcdir@:/:/g
18722s/^:*//
18723s/:*$//
18724x
18725s/\(=[	 ]*\).*/\1/
18726G
18727s/\n//
18728s/^[^=]*=[	 ]*$//
18729}'
18730fi
18731
18732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18733fi # test -n "$CONFIG_FILES"
18734
18735
18736eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
18737shift
18738for ac_tag
18739do
18740  case $ac_tag in
18741  :[FHLC]) ac_mode=$ac_tag; continue;;
18742  esac
18743  case $ac_mode$ac_tag in
18744  :[FHL]*:*);;
18745  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18746  :[FH]-) ac_tag=-:-;;
18747  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18748  esac
18749  ac_save_IFS=$IFS
18750  IFS=:
18751  set x $ac_tag
18752  IFS=$ac_save_IFS
18753  shift
18754  ac_file=$1
18755  shift
18756
18757  case $ac_mode in
18758  :L) ac_source=$1;;
18759  :[FH])
18760    ac_file_inputs=
18761    for ac_f
18762    do
18763      case $ac_f in
18764      -) ac_f="$ac_tmp/stdin";;
18765      *) # Look for the file first in the build tree, then in the source tree
18766	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18767	 # because $ac_f cannot contain `:'.
18768	 test -f "$ac_f" ||
18769	   case $ac_f in
18770	   [\\/$]*) false;;
18771	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18772	   esac ||
18773	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18774      esac
18775      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18776      as_fn_append ac_file_inputs " '$ac_f'"
18777    done
18778
18779    # Let's still pretend it is `configure' which instantiates (i.e., don't
18780    # use $as_me), people would be surprised to read:
18781    #    /* config.h.  Generated by config.status.  */
18782    configure_input='Generated from '`
18783	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18784	`' by configure.'
18785    if test x"$ac_file" != x-; then
18786      configure_input="$ac_file.  $configure_input"
18787      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18788$as_echo "$as_me: creating $ac_file" >&6;}
18789    fi
18790    # Neutralize special characters interpreted by sed in replacement strings.
18791    case $configure_input in #(
18792    *\&* | *\|* | *\\* )
18793       ac_sed_conf_input=`$as_echo "$configure_input" |
18794       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18795    *) ac_sed_conf_input=$configure_input;;
18796    esac
18797
18798    case $ac_tag in
18799    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18800      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18801    esac
18802    ;;
18803  esac
18804
18805  ac_dir=`$as_dirname -- "$ac_file" ||
18806$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18807	 X"$ac_file" : 'X\(//\)[^/]' \| \
18808	 X"$ac_file" : 'X\(//\)$' \| \
18809	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18810$as_echo X"$ac_file" |
18811    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18812	    s//\1/
18813	    q
18814	  }
18815	  /^X\(\/\/\)[^/].*/{
18816	    s//\1/
18817	    q
18818	  }
18819	  /^X\(\/\/\)$/{
18820	    s//\1/
18821	    q
18822	  }
18823	  /^X\(\/\).*/{
18824	    s//\1/
18825	    q
18826	  }
18827	  s/.*/./; q'`
18828  as_dir="$ac_dir"; as_fn_mkdir_p
18829  ac_builddir=.
18830
18831case "$ac_dir" in
18832.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18833*)
18834  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18835  # A ".." for each directory in $ac_dir_suffix.
18836  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18837  case $ac_top_builddir_sub in
18838  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18839  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18840  esac ;;
18841esac
18842ac_abs_top_builddir=$ac_pwd
18843ac_abs_builddir=$ac_pwd$ac_dir_suffix
18844# for backward compatibility:
18845ac_top_builddir=$ac_top_build_prefix
18846
18847case $srcdir in
18848  .)  # We are building in place.
18849    ac_srcdir=.
18850    ac_top_srcdir=$ac_top_builddir_sub
18851    ac_abs_top_srcdir=$ac_pwd ;;
18852  [\\/]* | ?:[\\/]* )  # Absolute name.
18853    ac_srcdir=$srcdir$ac_dir_suffix;
18854    ac_top_srcdir=$srcdir
18855    ac_abs_top_srcdir=$srcdir ;;
18856  *) # Relative name.
18857    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18858    ac_top_srcdir=$ac_top_build_prefix$srcdir
18859    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18860esac
18861ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18862
18863
18864  case $ac_mode in
18865  :F)
18866  #
18867  # CONFIG_FILE
18868  #
18869
18870  case $INSTALL in
18871  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18872  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18873  esac
18874  ac_MKDIR_P=$MKDIR_P
18875  case $MKDIR_P in
18876  [\\/$]* | ?:[\\/]* ) ;;
18877  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18878  esac
18879_ACEOF
18880
18881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882# If the template does not know about datarootdir, expand it.
18883# FIXME: This hack should be removed a few years after 2.60.
18884ac_datarootdir_hack=; ac_datarootdir_seen=
18885ac_sed_dataroot='
18886/datarootdir/ {
18887  p
18888  q
18889}
18890/@datadir@/p
18891/@docdir@/p
18892/@infodir@/p
18893/@localedir@/p
18894/@mandir@/p'
18895case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18896*datarootdir*) ac_datarootdir_seen=yes;;
18897*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18898  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18899$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18900_ACEOF
18901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18902  ac_datarootdir_hack='
18903  s&@datadir@&$datadir&g
18904  s&@docdir@&$docdir&g
18905  s&@infodir@&$infodir&g
18906  s&@localedir@&$localedir&g
18907  s&@mandir@&$mandir&g
18908  s&\\\${datarootdir}&$datarootdir&g' ;;
18909esac
18910_ACEOF
18911
18912# Neutralize VPATH when `$srcdir' = `.'.
18913# Shell code in configure.ac might set extrasub.
18914# FIXME: do we really want to maintain this feature?
18915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18916ac_sed_extra="$ac_vpsub
18917$extrasub
18918_ACEOF
18919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18920:t
18921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18922s|@configure_input@|$ac_sed_conf_input|;t t
18923s&@top_builddir@&$ac_top_builddir_sub&;t t
18924s&@top_build_prefix@&$ac_top_build_prefix&;t t
18925s&@srcdir@&$ac_srcdir&;t t
18926s&@abs_srcdir@&$ac_abs_srcdir&;t t
18927s&@top_srcdir@&$ac_top_srcdir&;t t
18928s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18929s&@builddir@&$ac_builddir&;t t
18930s&@abs_builddir@&$ac_abs_builddir&;t t
18931s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18932s&@INSTALL@&$ac_INSTALL&;t t
18933s&@MKDIR_P@&$ac_MKDIR_P&;t t
18934$ac_datarootdir_hack
18935"
18936eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18937  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18938
18939test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18940  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18941  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18942      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18943  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18944which seems to be undefined.  Please make sure it is defined" >&5
18945$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18946which seems to be undefined.  Please make sure it is defined" >&2;}
18947
18948  rm -f "$ac_tmp/stdin"
18949  case $ac_file in
18950  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18951  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18952  esac \
18953  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18954 ;;
18955
18956
18957  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18958$as_echo "$as_me: executing $ac_file commands" >&6;}
18959 ;;
18960  esac
18961
18962
18963  case $ac_file$ac_mode in
18964    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18965  # Older Autoconf quotes --file arguments for eval, but not when files
18966  # are listed without --file.  Let's play safe and only enable the eval
18967  # if we detect the quoting.
18968  # TODO: see whether this extra hack can be removed once we start
18969  # requiring Autoconf 2.70 or later.
18970  case $CONFIG_FILES in #(
18971  *\'*) :
18972    eval set x "$CONFIG_FILES" ;; #(
18973  *) :
18974    set x $CONFIG_FILES ;; #(
18975  *) :
18976     ;;
18977esac
18978  shift
18979  # Used to flag and report bootstrapping failures.
18980  am_rc=0
18981  for am_mf
18982  do
18983    # Strip MF so we end up with the name of the file.
18984    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18985    # Check whether this is an Automake generated Makefile which includes
18986    # dependency-tracking related rules and includes.
18987    # Grep'ing the whole file directly is not great: AIX grep has a line
18988    # limit of 2048, but all sed's we know have understand at least 4000.
18989    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18990      || continue
18991    am_dirpart=`$as_dirname -- "$am_mf" ||
18992$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18993	 X"$am_mf" : 'X\(//\)[^/]' \| \
18994	 X"$am_mf" : 'X\(//\)$' \| \
18995	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18996$as_echo X"$am_mf" |
18997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18998	    s//\1/
18999	    q
19000	  }
19001	  /^X\(\/\/\)[^/].*/{
19002	    s//\1/
19003	    q
19004	  }
19005	  /^X\(\/\/\)$/{
19006	    s//\1/
19007	    q
19008	  }
19009	  /^X\(\/\).*/{
19010	    s//\1/
19011	    q
19012	  }
19013	  s/.*/./; q'`
19014    am_filepart=`$as_basename -- "$am_mf" ||
19015$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19016	 X"$am_mf" : 'X\(//\)$' \| \
19017	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19018$as_echo X/"$am_mf" |
19019    sed '/^.*\/\([^/][^/]*\)\/*$/{
19020	    s//\1/
19021	    q
19022	  }
19023	  /^X\/\(\/\/\)$/{
19024	    s//\1/
19025	    q
19026	  }
19027	  /^X\/\(\/\).*/{
19028	    s//\1/
19029	    q
19030	  }
19031	  s/.*/./; q'`
19032    { echo "$as_me:$LINENO: cd "$am_dirpart" \
19033      && sed -e '/# am--include-marker/d' "$am_filepart" \
19034        | $MAKE -f - am--depfiles" >&5
19035   (cd "$am_dirpart" \
19036      && sed -e '/# am--include-marker/d' "$am_filepart" \
19037        | $MAKE -f - am--depfiles) >&5 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } || am_rc=$?
19041  done
19042  if test $am_rc -ne 0; then
19043    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19045as_fn_error $? "Something went wrong bootstrapping makefile fragments
19046    for automatic dependency tracking.  Try re-running configure with the
19047    '--disable-dependency-tracking' option to at least be able to build
19048    the package (albeit without support for automatic dependency tracking).
19049See \`config.log' for more details" "$LINENO" 5; }
19050  fi
19051  { am_dirpart=; unset am_dirpart;}
19052  { am_filepart=; unset am_filepart;}
19053  { am_mf=; unset am_mf;}
19054  { am_rc=; unset am_rc;}
19055  rm -f conftest-deps.mk
19056}
19057 ;;
19058    "libtool":C)
19059
19060    # See if we are running on zsh, and set the options that allow our
19061    # commands through without removal of \ escapes.
19062    if test -n "${ZSH_VERSION+set}"; then
19063      setopt NO_GLOB_SUBST
19064    fi
19065
19066    cfgfile=${ofile}T
19067    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19068    $RM "$cfgfile"
19069
19070    cat <<_LT_EOF >> "$cfgfile"
19071#! $SHELL
19072# Generated automatically by $as_me ($PACKAGE) $VERSION
19073# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19074
19075# Provide generalized library-building support services.
19076# Written by Gordon Matzigkeit, 1996
19077
19078# Copyright (C) 2014 Free Software Foundation, Inc.
19079# This is free software; see the source for copying conditions.  There is NO
19080# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19081
19082# GNU Libtool is free software; you can redistribute it and/or modify
19083# it under the terms of the GNU General Public License as published by
19084# the Free Software Foundation; either version 2 of of the License, or
19085# (at your option) any later version.
19086#
19087# As a special exception to the GNU General Public License, if you
19088# distribute this file as part of a program or library that is built
19089# using GNU Libtool, you may include this file under the  same
19090# distribution terms that you use for the rest of that program.
19091#
19092# GNU Libtool is distributed in the hope that it will be useful, but
19093# WITHOUT ANY WARRANTY; without even the implied warranty of
19094# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19095# GNU General Public License for more details.
19096#
19097# You should have received a copy of the GNU General Public License
19098# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19099
19100
19101# The names of the tagged configurations supported by this script.
19102available_tags='CXX '
19103
19104# Configured defaults for sys_lib_dlsearch_path munging.
19105: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19106
19107# ### BEGIN LIBTOOL CONFIG
19108
19109# Which release of libtool.m4 was used?
19110macro_version=$macro_version
19111macro_revision=$macro_revision
19112
19113# Whether or not to build shared libraries.
19114build_libtool_libs=$enable_shared
19115
19116# Whether or not to build static libraries.
19117build_old_libs=$enable_static
19118
19119# What type of objects to build.
19120pic_mode=$pic_mode
19121
19122# Whether or not to optimize for fast installation.
19123fast_install=$enable_fast_install
19124
19125# Shared archive member basename,for filename based shared library versioning on AIX.
19126shared_archive_member_spec=$shared_archive_member_spec
19127
19128# Shell to use when invoking shell scripts.
19129SHELL=$lt_SHELL
19130
19131# An echo program that protects backslashes.
19132ECHO=$lt_ECHO
19133
19134# The PATH separator for the build system.
19135PATH_SEPARATOR=$lt_PATH_SEPARATOR
19136
19137# The host system.
19138host_alias=$host_alias
19139host=$host
19140host_os=$host_os
19141
19142# The build system.
19143build_alias=$build_alias
19144build=$build
19145build_os=$build_os
19146
19147# A sed program that does not truncate output.
19148SED=$lt_SED
19149
19150# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19151Xsed="\$SED -e 1s/^X//"
19152
19153# A grep program that handles long lines.
19154GREP=$lt_GREP
19155
19156# An ERE matcher.
19157EGREP=$lt_EGREP
19158
19159# A literal string matcher.
19160FGREP=$lt_FGREP
19161
19162# A BSD- or MS-compatible name lister.
19163NM=$lt_NM
19164
19165# Whether we need soft or hard links.
19166LN_S=$lt_LN_S
19167
19168# What is the maximum length of a command?
19169max_cmd_len=$max_cmd_len
19170
19171# Object file suffix (normally "o").
19172objext=$ac_objext
19173
19174# Executable file suffix (normally "").
19175exeext=$exeext
19176
19177# whether the shell understands "unset".
19178lt_unset=$lt_unset
19179
19180# turn spaces into newlines.
19181SP2NL=$lt_lt_SP2NL
19182
19183# turn newlines into spaces.
19184NL2SP=$lt_lt_NL2SP
19185
19186# convert \$build file names to \$host format.
19187to_host_file_cmd=$lt_cv_to_host_file_cmd
19188
19189# convert \$build files to toolchain format.
19190to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19191
19192# An object symbol dumper.
19193OBJDUMP=$lt_OBJDUMP
19194
19195# Method to check whether dependent libraries are shared objects.
19196deplibs_check_method=$lt_deplibs_check_method
19197
19198# Command to use when deplibs_check_method = "file_magic".
19199file_magic_cmd=$lt_file_magic_cmd
19200
19201# How to find potential files when deplibs_check_method = "file_magic".
19202file_magic_glob=$lt_file_magic_glob
19203
19204# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19205want_nocaseglob=$lt_want_nocaseglob
19206
19207# DLL creation program.
19208DLLTOOL=$lt_DLLTOOL
19209
19210# Command to associate shared and link libraries.
19211sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19212
19213# The archiver.
19214AR=$lt_AR
19215
19216# Flags to create an archive.
19217AR_FLAGS=$lt_AR_FLAGS
19218
19219# How to feed a file listing to the archiver.
19220archiver_list_spec=$lt_archiver_list_spec
19221
19222# A symbol stripping program.
19223STRIP=$lt_STRIP
19224
19225# Commands used to install an old-style archive.
19226RANLIB=$lt_RANLIB
19227old_postinstall_cmds=$lt_old_postinstall_cmds
19228old_postuninstall_cmds=$lt_old_postuninstall_cmds
19229
19230# Whether to use a lock for old archive extraction.
19231lock_old_archive_extraction=$lock_old_archive_extraction
19232
19233# A C compiler.
19234LTCC=$lt_CC
19235
19236# LTCC compiler flags.
19237LTCFLAGS=$lt_CFLAGS
19238
19239# Take the output of nm and produce a listing of raw symbols and C names.
19240global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19241
19242# Transform the output of nm in a proper C declaration.
19243global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19244
19245# Transform the output of nm into a list of symbols to manually relocate.
19246global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19247
19248# Transform the output of nm in a C name address pair.
19249global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19250
19251# Transform the output of nm in a C name address pair when lib prefix is needed.
19252global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19253
19254# The name lister interface.
19255nm_interface=$lt_lt_cv_nm_interface
19256
19257# Specify filename containing input files for \$NM.
19258nm_file_list_spec=$lt_nm_file_list_spec
19259
19260# The root where to search for dependent libraries,and where our libraries should be installed.
19261lt_sysroot=$lt_sysroot
19262
19263# Command to truncate a binary pipe.
19264lt_truncate_bin=$lt_lt_cv_truncate_bin
19265
19266# The name of the directory that contains temporary libtool files.
19267objdir=$objdir
19268
19269# Used to examine libraries when file_magic_cmd begins with "file".
19270MAGIC_CMD=$MAGIC_CMD
19271
19272# Must we lock files when doing compilation?
19273need_locks=$lt_need_locks
19274
19275# Manifest tool.
19276MANIFEST_TOOL=$lt_MANIFEST_TOOL
19277
19278# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19279DSYMUTIL=$lt_DSYMUTIL
19280
19281# Tool to change global to local symbols on Mac OS X.
19282NMEDIT=$lt_NMEDIT
19283
19284# Tool to manipulate fat objects and archives on Mac OS X.
19285LIPO=$lt_LIPO
19286
19287# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19288OTOOL=$lt_OTOOL
19289
19290# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19291OTOOL64=$lt_OTOOL64
19292
19293# Old archive suffix (normally "a").
19294libext=$libext
19295
19296# Shared library suffix (normally ".so").
19297shrext_cmds=$lt_shrext_cmds
19298
19299# The commands to extract the exported symbol list from a shared archive.
19300extract_expsyms_cmds=$lt_extract_expsyms_cmds
19301
19302# Variables whose values should be saved in libtool wrapper scripts and
19303# restored at link time.
19304variables_saved_for_relink=$lt_variables_saved_for_relink
19305
19306# Do we need the "lib" prefix for modules?
19307need_lib_prefix=$need_lib_prefix
19308
19309# Do we need a version for libraries?
19310need_version=$need_version
19311
19312# Library versioning type.
19313version_type=$version_type
19314
19315# Shared library runtime path variable.
19316runpath_var=$runpath_var
19317
19318# Shared library path variable.
19319shlibpath_var=$shlibpath_var
19320
19321# Is shlibpath searched before the hard-coded library search path?
19322shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19323
19324# Format of library name prefix.
19325libname_spec=$lt_libname_spec
19326
19327# List of archive names.  First name is the real one, the rest are links.
19328# The last name is the one that the linker finds with -lNAME
19329library_names_spec=$lt_library_names_spec
19330
19331# The coded name of the library, if different from the real name.
19332soname_spec=$lt_soname_spec
19333
19334# Permission mode override for installation of shared libraries.
19335install_override_mode=$lt_install_override_mode
19336
19337# Command to use after installation of a shared archive.
19338postinstall_cmds=$lt_postinstall_cmds
19339
19340# Command to use after uninstallation of a shared archive.
19341postuninstall_cmds=$lt_postuninstall_cmds
19342
19343# Commands used to finish a libtool library installation in a directory.
19344finish_cmds=$lt_finish_cmds
19345
19346# As "finish_cmds", except a single script fragment to be evaled but
19347# not shown.
19348finish_eval=$lt_finish_eval
19349
19350# Whether we should hardcode library paths into libraries.
19351hardcode_into_libs=$hardcode_into_libs
19352
19353# Compile-time system search path for libraries.
19354sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19355
19356# Detected run-time system search path for libraries.
19357sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19358
19359# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19360configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19361
19362# Whether dlopen is supported.
19363dlopen_support=$enable_dlopen
19364
19365# Whether dlopen of programs is supported.
19366dlopen_self=$enable_dlopen_self
19367
19368# Whether dlopen of statically linked programs is supported.
19369dlopen_self_static=$enable_dlopen_self_static
19370
19371# Commands to strip libraries.
19372old_striplib=$lt_old_striplib
19373striplib=$lt_striplib
19374
19375
19376# The linker used to build libraries.
19377LD=$lt_LD
19378
19379# How to create reloadable object files.
19380reload_flag=$lt_reload_flag
19381reload_cmds=$lt_reload_cmds
19382
19383# Commands used to build an old-style archive.
19384old_archive_cmds=$lt_old_archive_cmds
19385
19386# A language specific compiler.
19387CC=$lt_compiler
19388
19389# Is the compiler the GNU compiler?
19390with_gcc=$GCC
19391
19392# Compiler flag to turn off builtin functions.
19393no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19394
19395# Additional compiler flags for building library objects.
19396pic_flag=$lt_lt_prog_compiler_pic
19397
19398# How to pass a linker flag through the compiler.
19399wl=$lt_lt_prog_compiler_wl
19400
19401# Compiler flag to prevent dynamic linking.
19402link_static_flag=$lt_lt_prog_compiler_static
19403
19404# Does compiler simultaneously support -c and -o options?
19405compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19406
19407# Whether or not to add -lc for building shared libraries.
19408build_libtool_need_lc=$archive_cmds_need_lc
19409
19410# Whether or not to disallow shared libs when runtime libs are static.
19411allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19412
19413# Compiler flag to allow reflexive dlopens.
19414export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19415
19416# Compiler flag to generate shared objects directly from archives.
19417whole_archive_flag_spec=$lt_whole_archive_flag_spec
19418
19419# Whether the compiler copes with passing no objects directly.
19420compiler_needs_object=$lt_compiler_needs_object
19421
19422# Create an old-style archive from a shared archive.
19423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19424
19425# Create a temporary old-style archive to link instead of a shared archive.
19426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19427
19428# Commands used to build a shared archive.
19429archive_cmds=$lt_archive_cmds
19430archive_expsym_cmds=$lt_archive_expsym_cmds
19431
19432# Commands used to build a loadable module if different from building
19433# a shared archive.
19434module_cmds=$lt_module_cmds
19435module_expsym_cmds=$lt_module_expsym_cmds
19436
19437# Whether we are building with GNU ld or not.
19438with_gnu_ld=$lt_with_gnu_ld
19439
19440# Flag that allows shared libraries with undefined symbols to be built.
19441allow_undefined_flag=$lt_allow_undefined_flag
19442
19443# Flag that enforces no undefined symbols.
19444no_undefined_flag=$lt_no_undefined_flag
19445
19446# Flag to hardcode \$libdir into a binary during linking.
19447# This must work even if \$libdir does not exist
19448hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19449
19450# Whether we need a single "-rpath" flag with a separated argument.
19451hardcode_libdir_separator=$lt_hardcode_libdir_separator
19452
19453# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19454# DIR into the resulting binary.
19455hardcode_direct=$hardcode_direct
19456
19457# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19458# DIR into the resulting binary and the resulting library dependency is
19459# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19460# library is relocated.
19461hardcode_direct_absolute=$hardcode_direct_absolute
19462
19463# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19464# into the resulting binary.
19465hardcode_minus_L=$hardcode_minus_L
19466
19467# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19468# into the resulting binary.
19469hardcode_shlibpath_var=$hardcode_shlibpath_var
19470
19471# Set to "yes" if building a shared library automatically hardcodes DIR
19472# into the library and all subsequent libraries and executables linked
19473# against it.
19474hardcode_automatic=$hardcode_automatic
19475
19476# Set to yes if linker adds runtime paths of dependent libraries
19477# to runtime path list.
19478inherit_rpath=$inherit_rpath
19479
19480# Whether libtool must link a program against all its dependency libraries.
19481link_all_deplibs=$link_all_deplibs
19482
19483# Set to "yes" if exported symbols are required.
19484always_export_symbols=$always_export_symbols
19485
19486# The commands to list exported symbols.
19487export_symbols_cmds=$lt_export_symbols_cmds
19488
19489# Symbols that should not be listed in the preloaded symbols.
19490exclude_expsyms=$lt_exclude_expsyms
19491
19492# Symbols that must always be exported.
19493include_expsyms=$lt_include_expsyms
19494
19495# Commands necessary for linking programs (against libraries) with templates.
19496prelink_cmds=$lt_prelink_cmds
19497
19498# Commands necessary for finishing linking programs.
19499postlink_cmds=$lt_postlink_cmds
19500
19501# Specify filename containing input files.
19502file_list_spec=$lt_file_list_spec
19503
19504# How to hardcode a shared library path into an executable.
19505hardcode_action=$hardcode_action
19506
19507# The directories searched by this compiler when creating a shared library.
19508compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19509
19510# Dependencies to place before and after the objects being linked to
19511# create a shared library.
19512predep_objects=$lt_predep_objects
19513postdep_objects=$lt_postdep_objects
19514predeps=$lt_predeps
19515postdeps=$lt_postdeps
19516
19517# The library search path used internally by the compiler when linking
19518# a shared library.
19519compiler_lib_search_path=$lt_compiler_lib_search_path
19520
19521# ### END LIBTOOL CONFIG
19522
19523_LT_EOF
19524
19525    cat <<'_LT_EOF' >> "$cfgfile"
19526
19527# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19528
19529# func_munge_path_list VARIABLE PATH
19530# -----------------------------------
19531# VARIABLE is name of variable containing _space_ separated list of
19532# directories to be munged by the contents of PATH, which is string
19533# having a format:
19534# "DIR[:DIR]:"
19535#       string "DIR[ DIR]" will be prepended to VARIABLE
19536# ":DIR[:DIR]"
19537#       string "DIR[ DIR]" will be appended to VARIABLE
19538# "DIRP[:DIRP]::[DIRA:]DIRA"
19539#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19540#       "DIRA[ DIRA]" will be appended to VARIABLE
19541# "DIR[:DIR]"
19542#       VARIABLE will be replaced by "DIR[ DIR]"
19543func_munge_path_list ()
19544{
19545    case x$2 in
19546    x)
19547        ;;
19548    *:)
19549        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19550        ;;
19551    x:*)
19552        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19553        ;;
19554    *::*)
19555        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19556        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19557        ;;
19558    *)
19559        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19560        ;;
19561    esac
19562}
19563
19564
19565# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19566func_cc_basename ()
19567{
19568    for cc_temp in $*""; do
19569      case $cc_temp in
19570        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19571        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19572        \-*) ;;
19573        *) break;;
19574      esac
19575    done
19576    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19577}
19578
19579
19580# ### END FUNCTIONS SHARED WITH CONFIGURE
19581
19582_LT_EOF
19583
19584  case $host_os in
19585  aix3*)
19586    cat <<\_LT_EOF >> "$cfgfile"
19587# AIX sometimes has problems with the GCC collect2 program.  For some
19588# reason, if we set the COLLECT_NAMES environment variable, the problems
19589# vanish in a puff of smoke.
19590if test set != "${COLLECT_NAMES+set}"; then
19591  COLLECT_NAMES=
19592  export COLLECT_NAMES
19593fi
19594_LT_EOF
19595    ;;
19596  esac
19597
19598
19599ltmain=$ac_aux_dir/ltmain.sh
19600
19601
19602  # We use sed instead of cat because bash on DJGPP gets confused if
19603  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19604  # text mode, it properly converts lines to CR/LF.  This bash problem
19605  # is reportedly fixed, but why not run on old versions too?
19606  sed '$q' "$ltmain" >> "$cfgfile" \
19607     || (rm -f "$cfgfile"; exit 1)
19608
19609   mv -f "$cfgfile" "$ofile" ||
19610    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19611  chmod +x "$ofile"
19612
19613
19614    cat <<_LT_EOF >> "$ofile"
19615
19616# ### BEGIN LIBTOOL TAG CONFIG: CXX
19617
19618# The linker used to build libraries.
19619LD=$lt_LD_CXX
19620
19621# How to create reloadable object files.
19622reload_flag=$lt_reload_flag_CXX
19623reload_cmds=$lt_reload_cmds_CXX
19624
19625# Commands used to build an old-style archive.
19626old_archive_cmds=$lt_old_archive_cmds_CXX
19627
19628# A language specific compiler.
19629CC=$lt_compiler_CXX
19630
19631# Is the compiler the GNU compiler?
19632with_gcc=$GCC_CXX
19633
19634# Compiler flag to turn off builtin functions.
19635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19636
19637# Additional compiler flags for building library objects.
19638pic_flag=$lt_lt_prog_compiler_pic_CXX
19639
19640# How to pass a linker flag through the compiler.
19641wl=$lt_lt_prog_compiler_wl_CXX
19642
19643# Compiler flag to prevent dynamic linking.
19644link_static_flag=$lt_lt_prog_compiler_static_CXX
19645
19646# Does compiler simultaneously support -c and -o options?
19647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19648
19649# Whether or not to add -lc for building shared libraries.
19650build_libtool_need_lc=$archive_cmds_need_lc_CXX
19651
19652# Whether or not to disallow shared libs when runtime libs are static.
19653allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19654
19655# Compiler flag to allow reflexive dlopens.
19656export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19657
19658# Compiler flag to generate shared objects directly from archives.
19659whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19660
19661# Whether the compiler copes with passing no objects directly.
19662compiler_needs_object=$lt_compiler_needs_object_CXX
19663
19664# Create an old-style archive from a shared archive.
19665old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19666
19667# Create a temporary old-style archive to link instead of a shared archive.
19668old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19669
19670# Commands used to build a shared archive.
19671archive_cmds=$lt_archive_cmds_CXX
19672archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19673
19674# Commands used to build a loadable module if different from building
19675# a shared archive.
19676module_cmds=$lt_module_cmds_CXX
19677module_expsym_cmds=$lt_module_expsym_cmds_CXX
19678
19679# Whether we are building with GNU ld or not.
19680with_gnu_ld=$lt_with_gnu_ld_CXX
19681
19682# Flag that allows shared libraries with undefined symbols to be built.
19683allow_undefined_flag=$lt_allow_undefined_flag_CXX
19684
19685# Flag that enforces no undefined symbols.
19686no_undefined_flag=$lt_no_undefined_flag_CXX
19687
19688# Flag to hardcode \$libdir into a binary during linking.
19689# This must work even if \$libdir does not exist
19690hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19691
19692# Whether we need a single "-rpath" flag with a separated argument.
19693hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19694
19695# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19696# DIR into the resulting binary.
19697hardcode_direct=$hardcode_direct_CXX
19698
19699# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19700# DIR into the resulting binary and the resulting library dependency is
19701# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19702# library is relocated.
19703hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19704
19705# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19706# into the resulting binary.
19707hardcode_minus_L=$hardcode_minus_L_CXX
19708
19709# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19710# into the resulting binary.
19711hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19712
19713# Set to "yes" if building a shared library automatically hardcodes DIR
19714# into the library and all subsequent libraries and executables linked
19715# against it.
19716hardcode_automatic=$hardcode_automatic_CXX
19717
19718# Set to yes if linker adds runtime paths of dependent libraries
19719# to runtime path list.
19720inherit_rpath=$inherit_rpath_CXX
19721
19722# Whether libtool must link a program against all its dependency libraries.
19723link_all_deplibs=$link_all_deplibs_CXX
19724
19725# Set to "yes" if exported symbols are required.
19726always_export_symbols=$always_export_symbols_CXX
19727
19728# The commands to list exported symbols.
19729export_symbols_cmds=$lt_export_symbols_cmds_CXX
19730
19731# Symbols that should not be listed in the preloaded symbols.
19732exclude_expsyms=$lt_exclude_expsyms_CXX
19733
19734# Symbols that must always be exported.
19735include_expsyms=$lt_include_expsyms_CXX
19736
19737# Commands necessary for linking programs (against libraries) with templates.
19738prelink_cmds=$lt_prelink_cmds_CXX
19739
19740# Commands necessary for finishing linking programs.
19741postlink_cmds=$lt_postlink_cmds_CXX
19742
19743# Specify filename containing input files.
19744file_list_spec=$lt_file_list_spec_CXX
19745
19746# How to hardcode a shared library path into an executable.
19747hardcode_action=$hardcode_action_CXX
19748
19749# The directories searched by this compiler when creating a shared library.
19750compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19751
19752# Dependencies to place before and after the objects being linked to
19753# create a shared library.
19754predep_objects=$lt_predep_objects_CXX
19755postdep_objects=$lt_postdep_objects_CXX
19756predeps=$lt_predeps_CXX
19757postdeps=$lt_postdeps_CXX
19758
19759# The library search path used internally by the compiler when linking
19760# a shared library.
19761compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19762
19763# ### END LIBTOOL TAG CONFIG: CXX
19764_LT_EOF
19765
19766 ;;
19767
19768  esac
19769done # for ac_tag
19770
19771
19772as_fn_exit 0
19773_ACEOF
19774ac_clean_files=$ac_clean_files_save
19775
19776test $ac_write_fail = 0 ||
19777  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19778
19779
19780# configure is writing to config.log, and then calls config.status.
19781# config.status does its own redirection, appending to config.log.
19782# Unfortunately, on DOS this fails, as config.log is still kept open
19783# by configure, so config.status won't be able to write to it; its
19784# output is simply discarded.  So we exec the FD to /dev/null,
19785# effectively closing config.log, so it can be properly (re)opened and
19786# appended to by config.status.  When coming back to configure, we
19787# need to make the FD available again.
19788if test "$no_create" != yes; then
19789  ac_cs_success=:
19790  ac_config_status_args=
19791  test "$silent" = yes &&
19792    ac_config_status_args="$ac_config_status_args --quiet"
19793  exec 5>/dev/null
19794  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19795  exec 5>>config.log
19796  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19797  # would make configure fail if this is the last instruction.
19798  $ac_cs_success || as_fn_exit 1
19799fi
19800if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19801  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19802$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19803fi
19804
19805