1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="crf_learn.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_header_list=
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637CXXCPP
638OTOOL64
639OTOOL
640LIPO
641NMEDIT
642DSYMUTIL
643MANIFEST_TOOL
644RANLIB
645ac_ct_AR
646AR
647DLLTOOL
648OBJDUMP
649LN_S
650NM
651ac_ct_DUMPBIN
652DUMPBIN
653LD
654FGREP
655SED
656LIBTOOL
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665EGREP
666GREP
667CPP
668am__fastdepCXX_FALSE
669am__fastdepCXX_TRUE
670CXXDEPMODE
671ac_ct_CXX
672CXXFLAGS
673CXX
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_dependency_tracking
756enable_shared
757enable_static
758with_pic
759enable_fast_install
760with_gnu_ld
761with_sysroot
762enable_libtool_lock
763'
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CXX
773CXXFLAGS
774CCC
775CPP
776CXXCPP'
777
778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
782ac_unrecognized_opts=
783ac_unrecognized_sep=
784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
806# (The list follows the same order as the GNU Coding Standards.)
807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
815includedir='${prefix}/include'
816oldincludedir='/usr/include'
817docdir='${datarootdir}/doc/${PACKAGE}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
826
827ac_prev=
828ac_dashdash=
829for ac_option
830do
831  # If the previous option needs an argument, assign it.
832  if test -n "$ac_prev"; then
833    eval $ac_prev=\$ac_option
834    ac_prev=
835    continue
836  fi
837
838  case $ac_option in
839  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840  *=)   ac_optarg= ;;
841  *)    ac_optarg=yes ;;
842  esac
843
844  # Accept the important Cygnus configure options, so we can diagnose typos.
845
846  case $ac_dashdash$ac_option in
847  --)
848    ac_dashdash=yes ;;
849
850  -bindir | --bindir | --bindi | --bind | --bin | --bi)
851    ac_prev=bindir ;;
852  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853    bindir=$ac_optarg ;;
854
855  -build | --build | --buil | --bui | --bu)
856    ac_prev=build_alias ;;
857  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858    build_alias=$ac_optarg ;;
859
860  -cache-file | --cache-file | --cache-fil | --cache-fi \
861  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862    ac_prev=cache_file ;;
863  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865    cache_file=$ac_optarg ;;
866
867  --config-cache | -C)
868    cache_file=config.cache ;;
869
870  -datadir | --datadir | --datadi | --datad)
871    ac_prev=datadir ;;
872  -datadir=* | --datadir=* | --datadi=* | --datad=*)
873    datadir=$ac_optarg ;;
874
875  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876  | --dataroo | --dataro | --datar)
877    ac_prev=datarootdir ;;
878  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880    datarootdir=$ac_optarg ;;
881
882  -disable-* | --disable-*)
883    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884    # Reject names that are not valid shell variable names.
885    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886      as_fn_error $? "invalid feature name: $ac_useropt"
887    ac_useropt_orig=$ac_useropt
888    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889    case $ac_user_opts in
890      *"
891"enable_$ac_useropt"
892"*) ;;
893      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894	 ac_unrecognized_sep=', ';;
895    esac
896    eval enable_$ac_useropt=no ;;
897
898  -docdir | --docdir | --docdi | --doc | --do)
899    ac_prev=docdir ;;
900  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901    docdir=$ac_optarg ;;
902
903  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904    ac_prev=dvidir ;;
905  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906    dvidir=$ac_optarg ;;
907
908  -enable-* | --enable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=\$ac_optarg ;;
923
924  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926  | --exec | --exe | --ex)
927    ac_prev=exec_prefix ;;
928  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930  | --exec=* | --exe=* | --ex=*)
931    exec_prefix=$ac_optarg ;;
932
933  -gas | --gas | --ga | --g)
934    # Obsolete; use --with-gas.
935    with_gas=yes ;;
936
937  -help | --help | --hel | --he | -h)
938    ac_init_help=long ;;
939  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940    ac_init_help=recursive ;;
941  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942    ac_init_help=short ;;
943
944  -host | --host | --hos | --ho)
945    ac_prev=host_alias ;;
946  -host=* | --host=* | --hos=* | --ho=*)
947    host_alias=$ac_optarg ;;
948
949  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950    ac_prev=htmldir ;;
951  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952  | --ht=*)
953    htmldir=$ac_optarg ;;
954
955  -includedir | --includedir | --includedi | --included | --include \
956  | --includ | --inclu | --incl | --inc)
957    ac_prev=includedir ;;
958  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959  | --includ=* | --inclu=* | --incl=* | --inc=*)
960    includedir=$ac_optarg ;;
961
962  -infodir | --infodir | --infodi | --infod | --info | --inf)
963    ac_prev=infodir ;;
964  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965    infodir=$ac_optarg ;;
966
967  -libdir | --libdir | --libdi | --libd)
968    ac_prev=libdir ;;
969  -libdir=* | --libdir=* | --libdi=* | --libd=*)
970    libdir=$ac_optarg ;;
971
972  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973  | --libexe | --libex | --libe)
974    ac_prev=libexecdir ;;
975  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976  | --libexe=* | --libex=* | --libe=*)
977    libexecdir=$ac_optarg ;;
978
979  -localedir | --localedir | --localedi | --localed | --locale)
980    ac_prev=localedir ;;
981  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982    localedir=$ac_optarg ;;
983
984  -localstatedir | --localstatedir | --localstatedi | --localstated \
985  | --localstate | --localstat | --localsta | --localst | --locals)
986    ac_prev=localstatedir ;;
987  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989    localstatedir=$ac_optarg ;;
990
991  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992    ac_prev=mandir ;;
993  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994    mandir=$ac_optarg ;;
995
996  -nfp | --nfp | --nf)
997    # Obsolete; use --without-fp.
998    with_fp=no ;;
999
1000  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001  | --no-cr | --no-c | -n)
1002    no_create=yes ;;
1003
1004  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006    no_recursion=yes ;;
1007
1008  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010  | --oldin | --oldi | --old | --ol | --o)
1011    ac_prev=oldincludedir ;;
1012  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015    oldincludedir=$ac_optarg ;;
1016
1017  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018    ac_prev=prefix ;;
1019  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020    prefix=$ac_optarg ;;
1021
1022  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023  | --program-pre | --program-pr | --program-p)
1024    ac_prev=program_prefix ;;
1025  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027    program_prefix=$ac_optarg ;;
1028
1029  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030  | --program-suf | --program-su | --program-s)
1031    ac_prev=program_suffix ;;
1032  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034    program_suffix=$ac_optarg ;;
1035
1036  -program-transform-name | --program-transform-name \
1037  | --program-transform-nam | --program-transform-na \
1038  | --program-transform-n | --program-transform- \
1039  | --program-transform | --program-transfor \
1040  | --program-transfo | --program-transf \
1041  | --program-trans | --program-tran \
1042  | --progr-tra | --program-tr | --program-t)
1043    ac_prev=program_transform_name ;;
1044  -program-transform-name=* | --program-transform-name=* \
1045  | --program-transform-nam=* | --program-transform-na=* \
1046  | --program-transform-n=* | --program-transform-=* \
1047  | --program-transform=* | --program-transfor=* \
1048  | --program-transfo=* | --program-transf=* \
1049  | --program-trans=* | --program-tran=* \
1050  | --progr-tra=* | --program-tr=* | --program-t=*)
1051    program_transform_name=$ac_optarg ;;
1052
1053  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054    ac_prev=pdfdir ;;
1055  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056    pdfdir=$ac_optarg ;;
1057
1058  -psdir | --psdir | --psdi | --psd | --ps)
1059    ac_prev=psdir ;;
1060  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061    psdir=$ac_optarg ;;
1062
1063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064  | -silent | --silent | --silen | --sile | --sil)
1065    silent=yes ;;
1066
1067  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068    ac_prev=sbindir ;;
1069  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070  | --sbi=* | --sb=*)
1071    sbindir=$ac_optarg ;;
1072
1073  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075  | --sharedst | --shareds | --shared | --share | --shar \
1076  | --sha | --sh)
1077    ac_prev=sharedstatedir ;;
1078  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081  | --sha=* | --sh=*)
1082    sharedstatedir=$ac_optarg ;;
1083
1084  -site | --site | --sit)
1085    ac_prev=site ;;
1086  -site=* | --site=* | --sit=*)
1087    site=$ac_optarg ;;
1088
1089  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090    ac_prev=srcdir ;;
1091  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092    srcdir=$ac_optarg ;;
1093
1094  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095  | --syscon | --sysco | --sysc | --sys | --sy)
1096    ac_prev=sysconfdir ;;
1097  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099    sysconfdir=$ac_optarg ;;
1100
1101  -target | --target | --targe | --targ | --tar | --ta | --t)
1102    ac_prev=target_alias ;;
1103  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104    target_alias=$ac_optarg ;;
1105
1106  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107    verbose=yes ;;
1108
1109  -version | --version | --versio | --versi | --vers | -V)
1110    ac_init_version=: ;;
1111
1112  -with-* | --with-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid package name: $ac_useropt"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"with_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval with_$ac_useropt=\$ac_optarg ;;
1127
1128  -without-* | --without-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=no ;;
1143
1144  --x)
1145    # Obsolete; use --with-x.
1146    with_x=yes ;;
1147
1148  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149  | --x-incl | --x-inc | --x-in | --x-i)
1150    ac_prev=x_includes ;;
1151  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153    x_includes=$ac_optarg ;;
1154
1155  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157    ac_prev=x_libraries ;;
1158  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160    x_libraries=$ac_optarg ;;
1161
1162  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
1164    ;;
1165
1166  *=*)
1167    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168    # Reject names that are not valid shell variable names.
1169    case $ac_envvar in #(
1170      '' | [0-9]* | *[!_$as_cr_alnum]* )
1171      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172    esac
1173    eval $ac_envvar=\$ac_optarg
1174    export $ac_envvar ;;
1175
1176  *)
1177    # FIXME: should be removed in autoconf 3.0.
1178    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182    ;;
1183
1184  esac
1185done
1186
1187if test -n "$ac_prev"; then
1188  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189  as_fn_error $? "missing argument to $ac_option"
1190fi
1191
1192if test -n "$ac_unrecognized_opts"; then
1193  case $enable_option_checking in
1194    no) ;;
1195    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197  esac
1198fi
1199
1200# Check all directory arguments for consistency.
1201for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202		datadir sysconfdir sharedstatedir localstatedir includedir \
1203		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204		libdir localedir mandir
1205do
1206  eval ac_val=\$$ac_var
1207  # Remove trailing slashes.
1208  case $ac_val in
1209    */ )
1210      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211      eval $ac_var=\$ac_val;;
1212  esac
1213  # Be sure to have absolute directory names.
1214  case $ac_val in
1215    [\\/$]* | ?:[\\/]* )  continue;;
1216    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217  esac
1218  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230  if test "x$build_alias" = x; then
1231    cross_compiling=maybe
1232  elif test "x$build_alias" != "x$host_alias"; then
1233    cross_compiling=yes
1234  fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246  as_fn_error $? "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248  as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253  ac_srcdir_defaulted=yes
1254  # Try the directory containing this script, then the parent directory.
1255  ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257	 X"$as_myself" : 'X\(//\)[^/]' \| \
1258	 X"$as_myself" : 'X\(//\)$' \| \
1259	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)[^/].*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\).*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  s/.*/./; q'`
1278  srcdir=$ac_confdir
1279  if test ! -r "$srcdir/$ac_unique_file"; then
1280    srcdir=..
1281  fi
1282else
1283  ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292	pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295  srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305  eval ac_env_${ac_var}_value=\$${ac_var}
1306  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314  # Omit some internal or obsolete options to make the list less imposing.
1315  # This message is too long to be a string in the A/UX 3.1 sh.
1316  cat <<_ACEOF
1317\`configure' configures this package to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327  -h, --help              display this help and exit
1328      --help=short        display options specific to this package
1329      --help=recursive    display the short help of all the included packages
1330  -V, --version           display version information and exit
1331  -q, --quiet, --silent   do not print \`checking ...' messages
1332      --cache-file=FILE   cache test results in FILE [disabled]
1333  -C, --config-cache      alias for \`--cache-file=config.cache'
1334  -n, --no-create         do not create output files
1335      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338  --prefix=PREFIX         install architecture-independent files in PREFIX
1339                          [$ac_default_prefix]
1340  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                          [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351  --bindir=DIR            user executables [EPREFIX/bin]
1352  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353  --libexecdir=DIR        program executables [EPREFIX/libexec]
1354  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357  --libdir=DIR            object code libraries [EPREFIX/lib]
1358  --includedir=DIR        C header files [PREFIX/include]
1359  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362  --infodir=DIR           info documentation [DATAROOTDIR/info]
1363  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364  --mandir=DIR            man documentation [DATAROOTDIR/man]
1365  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1366  --htmldir=DIR           html documentation [DOCDIR]
1367  --dvidir=DIR            dvi documentation [DOCDIR]
1368  --pdfdir=DIR            pdf documentation [DOCDIR]
1369  --psdir=DIR             ps documentation [DOCDIR]
1370_ACEOF
1371
1372  cat <<\_ACEOF
1373
1374Program names:
1375  --program-prefix=PREFIX            prepend PREFIX to installed program names
1376  --program-suffix=SUFFIX            append SUFFIX to installed program names
1377  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379System types:
1380  --build=BUILD     configure for building on BUILD [guessed]
1381  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386
1387  cat <<\_ACEOF
1388
1389Optional Features:
1390  --disable-option-checking  ignore unrecognized --enable/--with options
1391  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393  --disable-dependency-tracking  speeds up one-time build
1394  --enable-dependency-tracking   do not reject slow dependency extractors
1395  --enable-shared[=PKGS]  build shared libraries [default=yes]
1396  --enable-static[=PKGS]  build static libraries [default=yes]
1397  --enable-fast-install[=PKGS]
1398                          optimize for fast installation [default=yes]
1399  --disable-libtool-lock  avoid locking (might break parallel builds)
1400
1401Optional Packages:
1402  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1405                          both]
1406  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1407  --with-sysroot=DIR Search for dependent libraries within DIR
1408                        (or the compiler's sysroot if not specified).
1409
1410Some influential environment variables:
1411  CC          C compiler command
1412  CFLAGS      C compiler flags
1413  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1414              nonstandard directory <lib dir>
1415  LIBS        libraries to pass to the linker, e.g. -l<library>
1416  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417              you have headers in a nonstandard directory <include dir>
1418  CXX         C++ compiler command
1419  CXXFLAGS    C++ compiler flags
1420  CPP         C preprocessor
1421  CXXCPP      C++ preprocessor
1422
1423Use these variables to override the choices made by `configure' or to help
1424it to find libraries and programs with nonstandard names/locations.
1425
1426Report bugs to the package provider.
1427_ACEOF
1428ac_status=$?
1429fi
1430
1431if test "$ac_init_help" = "recursive"; then
1432  # If there are subdirs, report their specific --help.
1433  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434    test -d "$ac_dir" ||
1435      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436      continue
1437    ac_builddir=.
1438
1439case "$ac_dir" in
1440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441*)
1442  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443  # A ".." for each directory in $ac_dir_suffix.
1444  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445  case $ac_top_builddir_sub in
1446  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448  esac ;;
1449esac
1450ac_abs_top_builddir=$ac_pwd
1451ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452# for backward compatibility:
1453ac_top_builddir=$ac_top_build_prefix
1454
1455case $srcdir in
1456  .)  # We are building in place.
1457    ac_srcdir=.
1458    ac_top_srcdir=$ac_top_builddir_sub
1459    ac_abs_top_srcdir=$ac_pwd ;;
1460  [\\/]* | ?:[\\/]* )  # Absolute name.
1461    ac_srcdir=$srcdir$ac_dir_suffix;
1462    ac_top_srcdir=$srcdir
1463    ac_abs_top_srcdir=$srcdir ;;
1464  *) # Relative name.
1465    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466    ac_top_srcdir=$ac_top_build_prefix$srcdir
1467    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468esac
1469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470
1471    cd "$ac_dir" || { ac_status=$?; continue; }
1472    # Check for guested configure.
1473    if test -f "$ac_srcdir/configure.gnu"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476    elif test -f "$ac_srcdir/configure"; then
1477      echo &&
1478      $SHELL "$ac_srcdir/configure" --help=recursive
1479    else
1480      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481    fi || ac_status=$?
1482    cd "$ac_pwd" || { ac_status=$?; break; }
1483  done
1484fi
1485
1486test -n "$ac_init_help" && exit $ac_status
1487if $ac_init_version; then
1488  cat <<\_ACEOF
1489configure
1490generated by GNU Autoconf 2.69
1491
1492Copyright (C) 2012 Free Software Foundation, Inc.
1493This configure script is free software; the Free Software Foundation
1494gives unlimited permission to copy, distribute and modify it.
1495_ACEOF
1496  exit
1497fi
1498
1499## ------------------------ ##
1500## Autoconf initialization. ##
1501## ------------------------ ##
1502
1503# ac_fn_c_try_compile LINENO
1504# --------------------------
1505# Try to compile conftest.$ac_ext, and return whether this succeeded.
1506ac_fn_c_try_compile ()
1507{
1508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509  rm -f conftest.$ac_objext
1510  if { { ac_try="$ac_compile"
1511case "(($ac_try" in
1512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513  *) ac_try_echo=$ac_try;;
1514esac
1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516$as_echo "$ac_try_echo"; } >&5
1517  (eval "$ac_compile") 2>conftest.err
1518  ac_status=$?
1519  if test -s conftest.err; then
1520    grep -v '^ *+' conftest.err >conftest.er1
1521    cat conftest.er1 >&5
1522    mv -f conftest.er1 conftest.err
1523  fi
1524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525  test $ac_status = 0; } && {
1526	 test -z "$ac_c_werror_flag" ||
1527	 test ! -s conftest.err
1528       } && test -s conftest.$ac_objext; then :
1529  ac_retval=0
1530else
1531  $as_echo "$as_me: failed program was:" >&5
1532sed 's/^/| /' conftest.$ac_ext >&5
1533
1534	ac_retval=1
1535fi
1536  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537  as_fn_set_status $ac_retval
1538
1539} # ac_fn_c_try_compile
1540
1541# ac_fn_cxx_try_compile LINENO
1542# ----------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_cxx_try_compile ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  rm -f conftest.$ac_objext
1548  if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_compile") 2>conftest.err
1556  ac_status=$?
1557  if test -s conftest.err; then
1558    grep -v '^ *+' conftest.err >conftest.er1
1559    cat conftest.er1 >&5
1560    mv -f conftest.er1 conftest.err
1561  fi
1562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563  test $ac_status = 0; } && {
1564	 test -z "$ac_cxx_werror_flag" ||
1565	 test ! -s conftest.err
1566       } && test -s conftest.$ac_objext; then :
1567  ac_retval=0
1568else
1569  $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572	ac_retval=1
1573fi
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_cxx_try_compile
1578
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } > conftest.i && {
1601	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       }; then :
1604  ac_retval=0
1605else
1606  $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609    ac_retval=1
1610fi
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_cpp
1615
1616# ac_fn_c_try_link LINENO
1617# -----------------------
1618# Try to link conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_link ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  rm -f conftest.$ac_objext conftest$ac_exeext
1623  if { { ac_try="$ac_link"
1624case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630  (eval "$ac_link") 2>conftest.err
1631  ac_status=$?
1632  if test -s conftest.err; then
1633    grep -v '^ *+' conftest.err >conftest.er1
1634    cat conftest.er1 >&5
1635    mv -f conftest.er1 conftest.err
1636  fi
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && {
1639	 test -z "$ac_c_werror_flag" ||
1640	 test ! -s conftest.err
1641       } && test -s conftest$ac_exeext && {
1642	 test "$cross_compiling" = yes ||
1643	 test -x conftest$ac_exeext
1644       }; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650	ac_retval=1
1651fi
1652  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1653  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1654  # interfere with the next link command; also delete a directory that is
1655  # left behind by Apple's compiler.  We do this before executing the actions.
1656  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_link
1661
1662# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663# -------------------------------------------------------
1664# Tests whether HEADER exists and can be compiled using the include files in
1665# INCLUDES, setting the cache variable VAR accordingly.
1666ac_fn_c_check_header_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670$as_echo_n "checking for $2... " >&6; }
1671if eval \${$3+:} false; then :
1672  $as_echo_n "(cached) " >&6
1673else
1674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h.  */
1676$4
1677#include <$2>
1678_ACEOF
1679if ac_fn_c_try_compile "$LINENO"; then :
1680  eval "$3=yes"
1681else
1682  eval "$3=no"
1683fi
1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685fi
1686eval ac_res=\$$3
1687	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688$as_echo "$ac_res" >&6; }
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691} # ac_fn_c_check_header_compile
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_link") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711  { { case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_try") 2>&5
1718  ac_status=$?
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; }; }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: program exited with status $ac_status" >&5
1724       $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727       ac_retval=$ac_status
1728fi
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_run
1734
1735# ac_fn_c_check_func LINENO FUNC VAR
1736# ----------------------------------
1737# Tests whether FUNC exists, setting the cache variable VAR accordingly
1738ac_fn_c_check_func ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
1743if eval \${$3+:} false; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1750#define $2 innocuous_$2
1751
1752/* System header to define __stub macros and hopefully few prototypes,
1753    which can conflict with char $2 (); below.
1754    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755    <limits.h> exists even on freestanding compilers.  */
1756
1757#ifdef __STDC__
1758# include <limits.h>
1759#else
1760# include <assert.h>
1761#endif
1762
1763#undef $2
1764
1765/* Override any GCC internal prototype to avoid an error.
1766   Use char because int might match the return type of a GCC
1767   builtin and then its argument prototype would still apply.  */
1768#ifdef __cplusplus
1769extern "C"
1770#endif
1771char $2 ();
1772/* The GNU C library defines this for functions which it implements
1773    to always fail with ENOSYS.  Some functions are actually named
1774    something starting with __ and the normal name is an alias.  */
1775#if defined __stub_$2 || defined __stub___$2
1776choke me
1777#endif
1778
1779int
1780main ()
1781{
1782return $2 ();
1783  ;
1784  return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_link "$LINENO"; then :
1788  eval "$3=yes"
1789else
1790  eval "$3=no"
1791fi
1792rm -f core conftest.err conftest.$ac_objext \
1793    conftest$ac_exeext conftest.$ac_ext
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800} # ac_fn_c_check_func
1801
1802# ac_fn_cxx_try_cpp LINENO
1803# ------------------------
1804# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_cxx_try_cpp ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if { { ac_try="$ac_cpp conftest.$ac_ext"
1809case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1816  ac_status=$?
1817  if test -s conftest.err; then
1818    grep -v '^ *+' conftest.err >conftest.er1
1819    cat conftest.er1 >&5
1820    mv -f conftest.er1 conftest.err
1821  fi
1822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823  test $ac_status = 0; } > conftest.i && {
1824	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1825	 test ! -s conftest.err
1826       }; then :
1827  ac_retval=0
1828else
1829  $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832    ac_retval=1
1833fi
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835  as_fn_set_status $ac_retval
1836
1837} # ac_fn_cxx_try_cpp
1838
1839# ac_fn_cxx_try_link LINENO
1840# -------------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded.
1842ac_fn_cxx_try_link ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  rm -f conftest.$ac_objext conftest$ac_exeext
1846  if { { ac_try="$ac_link"
1847case "(($ac_try" in
1848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849  *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853  (eval "$ac_link") 2>conftest.err
1854  ac_status=$?
1855  if test -s conftest.err; then
1856    grep -v '^ *+' conftest.err >conftest.er1
1857    cat conftest.er1 >&5
1858    mv -f conftest.er1 conftest.err
1859  fi
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; } && {
1862	 test -z "$ac_cxx_werror_flag" ||
1863	 test ! -s conftest.err
1864       } && test -s conftest$ac_exeext && {
1865	 test "$cross_compiling" = yes ||
1866	 test -x conftest$ac_exeext
1867       }; then :
1868  ac_retval=0
1869else
1870  $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873	ac_retval=1
1874fi
1875  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877  # interfere with the next link command; also delete a directory that is
1878  # left behind by Apple's compiler.  We do this before executing the actions.
1879  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881  as_fn_set_status $ac_retval
1882
1883} # ac_fn_cxx_try_link
1884
1885# ac_fn_cxx_try_run LINENO
1886# ------------------------
1887# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888# that executables *can* be run.
1889ac_fn_cxx_try_run ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  if { { ac_try="$ac_link"
1893case "(($ac_try" in
1894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895  *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899  (eval "$ac_link") 2>&5
1900  ac_status=$?
1901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1903  { { case "(($ac_try" in
1904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905  *) ac_try_echo=$ac_try;;
1906esac
1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908$as_echo "$ac_try_echo"; } >&5
1909  (eval "$ac_try") 2>&5
1910  ac_status=$?
1911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912  test $ac_status = 0; }; }; then :
1913  ac_retval=0
1914else
1915  $as_echo "$as_me: program exited with status $ac_status" >&5
1916       $as_echo "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919       ac_retval=$ac_status
1920fi
1921  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923  as_fn_set_status $ac_retval
1924
1925} # ac_fn_cxx_try_run
1926
1927# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1928# ---------------------------------------------------------
1929# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1930# the include files in INCLUDES and setting the cache variable VAR
1931# accordingly.
1932ac_fn_cxx_check_header_mongrel ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  if eval \${$3+:} false; then :
1936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939  $as_echo_n "(cached) " >&6
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944else
1945  # Is the header compilable?
1946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1947$as_echo_n "checking $2 usability... " >&6; }
1948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$4
1951#include <$2>
1952_ACEOF
1953if ac_fn_cxx_try_compile "$LINENO"; then :
1954  ac_header_compiler=yes
1955else
1956  ac_header_compiler=no
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1960$as_echo "$ac_header_compiler" >&6; }
1961
1962# Is the header present?
1963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1964$as_echo_n "checking $2 presence... " >&6; }
1965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967#include <$2>
1968_ACEOF
1969if ac_fn_cxx_try_cpp "$LINENO"; then :
1970  ac_header_preproc=yes
1971else
1972  ac_header_preproc=no
1973fi
1974rm -f conftest.err conftest.i conftest.$ac_ext
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1976$as_echo "$ac_header_preproc" >&6; }
1977
1978# So?  What about this header?
1979case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1980  yes:no: )
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1982$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985    ;;
1986  no:yes:* )
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1988$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1990$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1991    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1992$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1994$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997    ;;
1998esac
1999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000$as_echo_n "checking for $2... " >&6; }
2001if eval \${$3+:} false; then :
2002  $as_echo_n "(cached) " >&6
2003else
2004  eval "$3=\$ac_header_compiler"
2005fi
2006eval ac_res=\$$3
2007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009fi
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012} # ac_fn_cxx_check_header_mongrel
2013
2014# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2015# ---------------------------------------------
2016# Tests whether TYPE exists after having included INCLUDES, setting cache
2017# variable VAR accordingly.
2018ac_fn_cxx_check_type ()
2019{
2020  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022$as_echo_n "checking for $2... " >&6; }
2023if eval \${$3+:} false; then :
2024  $as_echo_n "(cached) " >&6
2025else
2026  eval "$3=no"
2027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030int
2031main ()
2032{
2033if (sizeof ($2))
2034	 return 0;
2035  ;
2036  return 0;
2037}
2038_ACEOF
2039if ac_fn_cxx_try_compile "$LINENO"; then :
2040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042$4
2043int
2044main ()
2045{
2046if (sizeof (($2)))
2047	    return 0;
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_cxx_try_compile "$LINENO"; then :
2053
2054else
2055  eval "$3=yes"
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060fi
2061eval ac_res=\$$3
2062	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063$as_echo "$ac_res" >&6; }
2064  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066} # ac_fn_cxx_check_type
2067
2068# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2069# ---------------------------------------------------------
2070# Tests whether HEADER exists and can be compiled using the include files in
2071# INCLUDES, setting the cache variable VAR accordingly.
2072ac_fn_cxx_check_header_compile ()
2073{
2074  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
2077if eval \${$3+:} false; then :
2078  $as_echo_n "(cached) " >&6
2079else
2080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083#include <$2>
2084_ACEOF
2085if ac_fn_cxx_try_compile "$LINENO"; then :
2086  eval "$3=yes"
2087else
2088  eval "$3=no"
2089fi
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091fi
2092eval ac_res=\$$3
2093	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094$as_echo "$ac_res" >&6; }
2095  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096
2097} # ac_fn_cxx_check_header_compile
2098
2099# ac_fn_cxx_check_func LINENO FUNC VAR
2100# ------------------------------------
2101# Tests whether FUNC exists, setting the cache variable VAR accordingly
2102ac_fn_cxx_check_func ()
2103{
2104  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106$as_echo_n "checking for $2... " >&6; }
2107if eval \${$3+:} false; then :
2108  $as_echo_n "(cached) " >&6
2109else
2110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2113   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2114#define $2 innocuous_$2
2115
2116/* System header to define __stub macros and hopefully few prototypes,
2117    which can conflict with char $2 (); below.
2118    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2119    <limits.h> exists even on freestanding compilers.  */
2120
2121#ifdef __STDC__
2122# include <limits.h>
2123#else
2124# include <assert.h>
2125#endif
2126
2127#undef $2
2128
2129/* Override any GCC internal prototype to avoid an error.
2130   Use char because int might match the return type of a GCC
2131   builtin and then its argument prototype would still apply.  */
2132#ifdef __cplusplus
2133extern "C"
2134#endif
2135char $2 ();
2136/* The GNU C library defines this for functions which it implements
2137    to always fail with ENOSYS.  Some functions are actually named
2138    something starting with __ and the normal name is an alias.  */
2139#if defined __stub_$2 || defined __stub___$2
2140choke me
2141#endif
2142
2143int
2144main ()
2145{
2146return $2 ();
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151if ac_fn_cxx_try_link "$LINENO"; then :
2152  eval "$3=yes"
2153else
2154  eval "$3=no"
2155fi
2156rm -f core conftest.err conftest.$ac_objext \
2157    conftest$ac_exeext conftest.$ac_ext
2158fi
2159eval ac_res=\$$3
2160	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161$as_echo "$ac_res" >&6; }
2162  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163
2164} # ac_fn_cxx_check_func
2165cat >config.log <<_ACEOF
2166This file contains any messages produced by compilers while
2167running configure, to aid debugging if configure makes a mistake.
2168
2169It was created by $as_me, which was
2170generated by GNU Autoconf 2.69.  Invocation command line was
2171
2172  $ $0 $@
2173
2174_ACEOF
2175exec 5>>config.log
2176{
2177cat <<_ASUNAME
2178## --------- ##
2179## Platform. ##
2180## --------- ##
2181
2182hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2183uname -m = `(uname -m) 2>/dev/null || echo unknown`
2184uname -r = `(uname -r) 2>/dev/null || echo unknown`
2185uname -s = `(uname -s) 2>/dev/null || echo unknown`
2186uname -v = `(uname -v) 2>/dev/null || echo unknown`
2187
2188/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2189/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2190
2191/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2192/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2193/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2194/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2195/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2196/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2197/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2198
2199_ASUNAME
2200
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204  IFS=$as_save_IFS
2205  test -z "$as_dir" && as_dir=.
2206    $as_echo "PATH: $as_dir"
2207  done
2208IFS=$as_save_IFS
2209
2210} >&5
2211
2212cat >&5 <<_ACEOF
2213
2214
2215## ----------- ##
2216## Core tests. ##
2217## ----------- ##
2218
2219_ACEOF
2220
2221
2222# Keep a trace of the command line.
2223# Strip out --no-create and --no-recursion so they do not pile up.
2224# Strip out --silent because we don't want to record it for future runs.
2225# Also quote any args containing shell meta-characters.
2226# Make two passes to allow for proper duplicate-argument suppression.
2227ac_configure_args=
2228ac_configure_args0=
2229ac_configure_args1=
2230ac_must_keep_next=false
2231for ac_pass in 1 2
2232do
2233  for ac_arg
2234  do
2235    case $ac_arg in
2236    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2237    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2238    | -silent | --silent | --silen | --sile | --sil)
2239      continue ;;
2240    *\'*)
2241      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2242    esac
2243    case $ac_pass in
2244    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2245    2)
2246      as_fn_append ac_configure_args1 " '$ac_arg'"
2247      if test $ac_must_keep_next = true; then
2248	ac_must_keep_next=false # Got value, back to normal.
2249      else
2250	case $ac_arg in
2251	  *=* | --config-cache | -C | -disable-* | --disable-* \
2252	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2253	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2254	  | -with-* | --with-* | -without-* | --without-* | --x)
2255	    case "$ac_configure_args0 " in
2256	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2257	    esac
2258	    ;;
2259	  -* ) ac_must_keep_next=true ;;
2260	esac
2261      fi
2262      as_fn_append ac_configure_args " '$ac_arg'"
2263      ;;
2264    esac
2265  done
2266done
2267{ ac_configure_args0=; unset ac_configure_args0;}
2268{ ac_configure_args1=; unset ac_configure_args1;}
2269
2270# When interrupted or exit'd, cleanup temporary files, and complete
2271# config.log.  We remove comments because anyway the quotes in there
2272# would cause problems or look ugly.
2273# WARNING: Use '\'' to represent an apostrophe within the trap.
2274# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2275trap 'exit_status=$?
2276  # Save into config.log some information that might help in debugging.
2277  {
2278    echo
2279
2280    $as_echo "## ---------------- ##
2281## Cache variables. ##
2282## ---------------- ##"
2283    echo
2284    # The following way of writing the cache mishandles newlines in values,
2285(
2286  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2287    eval ac_val=\$$ac_var
2288    case $ac_val in #(
2289    *${as_nl}*)
2290      case $ac_var in #(
2291      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2292$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2293      esac
2294      case $ac_var in #(
2295      _ | IFS | as_nl) ;; #(
2296      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2297      *) { eval $ac_var=; unset $ac_var;} ;;
2298      esac ;;
2299    esac
2300  done
2301  (set) 2>&1 |
2302    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2303    *${as_nl}ac_space=\ *)
2304      sed -n \
2305	"s/'\''/'\''\\\\'\'''\''/g;
2306	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2307      ;; #(
2308    *)
2309      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2310      ;;
2311    esac |
2312    sort
2313)
2314    echo
2315
2316    $as_echo "## ----------------- ##
2317## Output variables. ##
2318## ----------------- ##"
2319    echo
2320    for ac_var in $ac_subst_vars
2321    do
2322      eval ac_val=\$$ac_var
2323      case $ac_val in
2324      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325      esac
2326      $as_echo "$ac_var='\''$ac_val'\''"
2327    done | sort
2328    echo
2329
2330    if test -n "$ac_subst_files"; then
2331      $as_echo "## ------------------- ##
2332## File substitutions. ##
2333## ------------------- ##"
2334      echo
2335      for ac_var in $ac_subst_files
2336      do
2337	eval ac_val=\$$ac_var
2338	case $ac_val in
2339	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340	esac
2341	$as_echo "$ac_var='\''$ac_val'\''"
2342      done | sort
2343      echo
2344    fi
2345
2346    if test -s confdefs.h; then
2347      $as_echo "## ----------- ##
2348## confdefs.h. ##
2349## ----------- ##"
2350      echo
2351      cat confdefs.h
2352      echo
2353    fi
2354    test "$ac_signal" != 0 &&
2355      $as_echo "$as_me: caught signal $ac_signal"
2356    $as_echo "$as_me: exit $exit_status"
2357  } >&5
2358  rm -f core *.core core.conftest.* &&
2359    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360    exit $exit_status
2361' 0
2362for ac_signal in 1 2 13 15; do
2363  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364done
2365ac_signal=0
2366
2367# confdefs.h avoids OS command line length limits that DEFS can exceed.
2368rm -f -r conftest* confdefs.h
2369
2370$as_echo "/* confdefs.h */" > confdefs.h
2371
2372# Predefined preprocessor variables.
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_NAME "$PACKAGE_NAME"
2376_ACEOF
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380_ACEOF
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_VERSION "$PACKAGE_VERSION"
2384_ACEOF
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_STRING "$PACKAGE_STRING"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392_ACEOF
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_URL "$PACKAGE_URL"
2396_ACEOF
2397
2398
2399# Let the site file select an alternate cache file if it wants to.
2400# Prefer an explicitly selected file to automatically selected ones.
2401ac_site_file1=NONE
2402ac_site_file2=NONE
2403if test -n "$CONFIG_SITE"; then
2404  # We do not want a PATH search for config.site.
2405  case $CONFIG_SITE in #((
2406    -*)  ac_site_file1=./$CONFIG_SITE;;
2407    */*) ac_site_file1=$CONFIG_SITE;;
2408    *)   ac_site_file1=./$CONFIG_SITE;;
2409  esac
2410elif test "x$prefix" != xNONE; then
2411  ac_site_file1=$prefix/share/config.site
2412  ac_site_file2=$prefix/etc/config.site
2413else
2414  ac_site_file1=$ac_default_prefix/share/config.site
2415  ac_site_file2=$ac_default_prefix/etc/config.site
2416fi
2417for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2418do
2419  test "x$ac_site_file" = xNONE && continue
2420  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2421    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2422$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2423    sed 's/^/| /' "$ac_site_file" >&5
2424    . "$ac_site_file" \
2425      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427as_fn_error $? "failed to load site script $ac_site_file
2428See \`config.log' for more details" "$LINENO" 5; }
2429  fi
2430done
2431
2432if test -r "$cache_file"; then
2433  # Some versions of bash will fail to source /dev/null (special files
2434  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2435  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2436    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2437$as_echo "$as_me: loading cache $cache_file" >&6;}
2438    case $cache_file in
2439      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2440      *)                      . "./$cache_file";;
2441    esac
2442  fi
2443else
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2445$as_echo "$as_me: creating cache $cache_file" >&6;}
2446  >$cache_file
2447fi
2448
2449as_fn_append ac_header_list " stdlib.h"
2450as_fn_append ac_header_list " unistd.h"
2451as_fn_append ac_header_list " sys/param.h"
2452# Check that the precious variables saved in the cache have kept the same
2453# value.
2454ac_cache_corrupted=false
2455for ac_var in $ac_precious_vars; do
2456  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457  eval ac_new_set=\$ac_env_${ac_var}_set
2458  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459  eval ac_new_val=\$ac_env_${ac_var}_value
2460  case $ac_old_set,$ac_new_set in
2461    set,)
2462      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464      ac_cache_corrupted=: ;;
2465    ,set)
2466      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468      ac_cache_corrupted=: ;;
2469    ,);;
2470    *)
2471      if test "x$ac_old_val" != "x$ac_new_val"; then
2472	# differences in whitespace do not lead to failure.
2473	ac_old_val_w=`echo x $ac_old_val`
2474	ac_new_val_w=`echo x $ac_new_val`
2475	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478	  ac_cache_corrupted=:
2479	else
2480	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482	  eval $ac_var=\$ac_old_val
2483	fi
2484	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2485$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2486	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2487$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2488      fi;;
2489  esac
2490  # Pass precious variables to config.status.
2491  if test "$ac_new_set" = set; then
2492    case $ac_new_val in
2493    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494    *) ac_arg=$ac_var=$ac_new_val ;;
2495    esac
2496    case " $ac_configure_args " in
2497      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2498      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499    esac
2500  fi
2501done
2502if $ac_cache_corrupted; then
2503  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2508fi
2509## -------------------- ##
2510## Main body of script. ##
2511## -------------------- ##
2512
2513ac_ext=c
2514ac_cpp='$CPP $CPPFLAGS'
2515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520
2521
2522am__api_version='1.11'
2523
2524ac_aux_dir=
2525for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2526  if test -f "$ac_dir/install-sh"; then
2527    ac_aux_dir=$ac_dir
2528    ac_install_sh="$ac_aux_dir/install-sh -c"
2529    break
2530  elif test -f "$ac_dir/install.sh"; then
2531    ac_aux_dir=$ac_dir
2532    ac_install_sh="$ac_aux_dir/install.sh -c"
2533    break
2534  elif test -f "$ac_dir/shtool"; then
2535    ac_aux_dir=$ac_dir
2536    ac_install_sh="$ac_aux_dir/shtool install -c"
2537    break
2538  fi
2539done
2540if test -z "$ac_aux_dir"; then
2541  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2542fi
2543
2544# These three variables are undocumented and unsupported,
2545# and are intended to be withdrawn in a future Autoconf release.
2546# They can cause serious problems if a builder's source tree is in a directory
2547# whose full name contains unusual characters.
2548ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2549ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2550ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2551
2552
2553# Find a good install program.  We prefer a C program (faster),
2554# so one script is as good as another.  But avoid the broken or
2555# incompatible versions:
2556# SysV /etc/install, /usr/sbin/install
2557# SunOS /usr/etc/install
2558# IRIX /sbin/install
2559# AIX /bin/install
2560# AmigaOS /C/install, which installs bootblocks on floppy discs
2561# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564# OS/2's system install, which has a completely different semantic
2565# ./install, which can be erroneously created by make from ./install.sh.
2566# Reject install programs that cannot install multiple files.
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2568$as_echo_n "checking for a BSD-compatible install... " >&6; }
2569if test -z "$INSTALL"; then
2570if ${ac_cv_path_install+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576  IFS=$as_save_IFS
2577  test -z "$as_dir" && as_dir=.
2578    # Account for people who put trailing slashes in PATH elements.
2579case $as_dir/ in #((
2580  ./ | .// | /[cC]/* | \
2581  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2582  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2583  /usr/ucb/* ) ;;
2584  *)
2585    # OSF1 and SCO ODT 3.0 have their own names for install.
2586    # Don't use installbsd from OSF since it installs stuff as root
2587    # by default.
2588    for ac_prog in ginstall scoinst install; do
2589      for ac_exec_ext in '' $ac_executable_extensions; do
2590	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2591	  if test $ac_prog = install &&
2592	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593	    # AIX install.  It has an incompatible calling convention.
2594	    :
2595	  elif test $ac_prog = install &&
2596	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597	    # program-specific install script used by HP pwplus--don't use.
2598	    :
2599	  else
2600	    rm -rf conftest.one conftest.two conftest.dir
2601	    echo one > conftest.one
2602	    echo two > conftest.two
2603	    mkdir conftest.dir
2604	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2605	      test -s conftest.one && test -s conftest.two &&
2606	      test -s conftest.dir/conftest.one &&
2607	      test -s conftest.dir/conftest.two
2608	    then
2609	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2610	      break 3
2611	    fi
2612	  fi
2613	fi
2614      done
2615    done
2616    ;;
2617esac
2618
2619  done
2620IFS=$as_save_IFS
2621
2622rm -rf conftest.one conftest.two conftest.dir
2623
2624fi
2625  if test "${ac_cv_path_install+set}" = set; then
2626    INSTALL=$ac_cv_path_install
2627  else
2628    # As a last resort, use the slow shell script.  Don't cache a
2629    # value for INSTALL within a source directory, because that will
2630    # break other packages using the cache if that directory is
2631    # removed, or if the value is a relative name.
2632    INSTALL=$ac_install_sh
2633  fi
2634fi
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2636$as_echo "$INSTALL" >&6; }
2637
2638# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639# It thinks the first close brace ends the variable substitution.
2640test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2641
2642test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2643
2644test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2645
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2647$as_echo_n "checking whether build environment is sane... " >&6; }
2648# Just in case
2649sleep 1
2650echo timestamp > conftest.file
2651# Reject unsafe characters in $srcdir or the absolute working directory
2652# name.  Accept space and tab only in the latter.
2653am_lf='
2654'
2655case `pwd` in
2656  *[\\\"\#\$\&\'\`$am_lf]*)
2657    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2658esac
2659case $srcdir in
2660  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2661    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2662esac
2663
2664# Do `set' in a subshell so we don't clobber the current shell's
2665# arguments.  Must try -L first in case configure is actually a
2666# symlink; some systems play weird games with the mod time of symlinks
2667# (eg FreeBSD returns the mod time of the symlink's containing
2668# directory).
2669if (
2670   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2671   if test "$*" = "X"; then
2672      # -L didn't work.
2673      set X `ls -t "$srcdir/configure" conftest.file`
2674   fi
2675   rm -f conftest.file
2676   if test "$*" != "X $srcdir/configure conftest.file" \
2677      && test "$*" != "X conftest.file $srcdir/configure"; then
2678
2679      # If neither matched, then we have a broken ls.  This can happen
2680      # if, for instance, CONFIG_SHELL is bash and it inherits a
2681      # broken ls alias from the environment.  This has actually
2682      # happened.  Such a system could not be considered "sane".
2683      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2684alias in your environment" "$LINENO" 5
2685   fi
2686
2687   test "$2" = conftest.file
2688   )
2689then
2690   # Ok.
2691   :
2692else
2693   as_fn_error $? "newly created file is older than distributed files!
2694Check your system clock" "$LINENO" 5
2695fi
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697$as_echo "yes" >&6; }
2698test "$program_prefix" != NONE &&
2699  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2700# Use a double $ so make ignores it.
2701test "$program_suffix" != NONE &&
2702  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2703# Double any \ or $.
2704# By default was `s,x,x', remove it if useless.
2705ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2706program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2707
2708# expand $ac_aux_dir to an absolute path
2709am_aux_dir=`cd $ac_aux_dir && pwd`
2710
2711if test x"${MISSING+set}" != xset; then
2712  case $am_aux_dir in
2713  *\ * | *\	*)
2714    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2715  *)
2716    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2717  esac
2718fi
2719# Use eval to expand $SHELL
2720if eval "$MISSING --run true"; then
2721  am_missing_run="$MISSING --run "
2722else
2723  am_missing_run=
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2725$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2726fi
2727
2728if test x"${install_sh}" != xset; then
2729  case $am_aux_dir in
2730  *\ * | *\	*)
2731    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2732  *)
2733    install_sh="\${SHELL} $am_aux_dir/install-sh"
2734  esac
2735fi
2736
2737# Installed binaries are usually stripped using `strip' when the user
2738# run `make install-strip'.  However `strip' might not be the right
2739# tool to use in cross-compilation environments, therefore Automake
2740# will honor the `STRIP' environment variable to overrule this program.
2741if test "$cross_compiling" != no; then
2742  if test -n "$ac_tool_prefix"; then
2743  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2744set dummy ${ac_tool_prefix}strip; ac_word=$2
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746$as_echo_n "checking for $ac_word... " >&6; }
2747if ${ac_cv_prog_STRIP+:} false; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  if test -n "$STRIP"; then
2751  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756  IFS=$as_save_IFS
2757  test -z "$as_dir" && as_dir=.
2758    for ac_exec_ext in '' $ac_executable_extensions; do
2759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762    break 2
2763  fi
2764done
2765  done
2766IFS=$as_save_IFS
2767
2768fi
2769fi
2770STRIP=$ac_cv_prog_STRIP
2771if test -n "$STRIP"; then
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2773$as_echo "$STRIP" >&6; }
2774else
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
2777fi
2778
2779
2780fi
2781if test -z "$ac_cv_prog_STRIP"; then
2782  ac_ct_STRIP=$STRIP
2783  # Extract the first word of "strip", so it can be a program name with args.
2784set dummy strip; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  if test -n "$ac_ct_STRIP"; then
2791  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800    ac_cv_prog_ac_ct_STRIP="strip"
2801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805  done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2811if test -n "$ac_ct_STRIP"; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2813$as_echo "$ac_ct_STRIP" >&6; }
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819  if test "x$ac_ct_STRIP" = x; then
2820    STRIP=":"
2821  else
2822    case $cross_compiling:$ac_tool_warned in
2823yes:)
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826ac_tool_warned=yes ;;
2827esac
2828    STRIP=$ac_ct_STRIP
2829  fi
2830else
2831  STRIP="$ac_cv_prog_STRIP"
2832fi
2833
2834fi
2835INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2836
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2838$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2839if test -z "$MKDIR_P"; then
2840  if ${ac_cv_path_mkdir+:} false; then :
2841  $as_echo_n "(cached) " >&6
2842else
2843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_prog in mkdir gmkdir; do
2849	 for ac_exec_ext in '' $ac_executable_extensions; do
2850	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2851	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2852	     'mkdir (GNU coreutils) '* | \
2853	     'mkdir (coreutils) '* | \
2854	     'mkdir (fileutils) '4.1*)
2855	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2856	       break 3;;
2857	   esac
2858	 done
2859       done
2860  done
2861IFS=$as_save_IFS
2862
2863fi
2864
2865  test -d ./--version && rmdir ./--version
2866  if test "${ac_cv_path_mkdir+set}" = set; then
2867    MKDIR_P="$ac_cv_path_mkdir -p"
2868  else
2869    # As a last resort, use the slow shell script.  Don't cache a
2870    # value for MKDIR_P within a source directory, because that will
2871    # break other packages using the cache if that directory is
2872    # removed, or if the value is a relative name.
2873    MKDIR_P="$ac_install_sh -d"
2874  fi
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2877$as_echo "$MKDIR_P" >&6; }
2878
2879mkdir_p="$MKDIR_P"
2880case $mkdir_p in
2881  [\\/$]* | ?:[\\/]*) ;;
2882  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2883esac
2884
2885for ac_prog in gawk mawk nawk awk
2886do
2887  # Extract the first word of "$ac_prog", so it can be a program name with args.
2888set dummy $ac_prog; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if ${ac_cv_prog_AWK+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$AWK"; then
2895  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902    for ac_exec_ext in '' $ac_executable_extensions; do
2903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904    ac_cv_prog_AWK="$ac_prog"
2905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909  done
2910IFS=$as_save_IFS
2911
2912fi
2913fi
2914AWK=$ac_cv_prog_AWK
2915if test -n "$AWK"; then
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2917$as_echo "$AWK" >&6; }
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924  test -n "$AWK" && break
2925done
2926
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2928$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2929set x ${MAKE-make}
2930ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2931if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2932  $as_echo_n "(cached) " >&6
2933else
2934  cat >conftest.make <<\_ACEOF
2935SHELL = /bin/sh
2936all:
2937	@echo '@@@%%%=$(MAKE)=@@@%%%'
2938_ACEOF
2939# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2940case `${MAKE-make} -f conftest.make 2>/dev/null` in
2941  *@@@%%%=?*=@@@%%%*)
2942    eval ac_cv_prog_make_${ac_make}_set=yes;;
2943  *)
2944    eval ac_cv_prog_make_${ac_make}_set=no;;
2945esac
2946rm -f conftest.make
2947fi
2948if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2950$as_echo "yes" >&6; }
2951  SET_MAKE=
2952else
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954$as_echo "no" >&6; }
2955  SET_MAKE="MAKE=${MAKE-make}"
2956fi
2957
2958rm -rf .tst 2>/dev/null
2959mkdir .tst 2>/dev/null
2960if test -d .tst; then
2961  am__leading_dot=.
2962else
2963  am__leading_dot=_
2964fi
2965rmdir .tst 2>/dev/null
2966
2967if test "`cd $srcdir && pwd`" != "`pwd`"; then
2968  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2969  # is not polluted with repeated "-I."
2970  am__isrc=' -I$(srcdir)'
2971  # test to see if srcdir already configured
2972  if test -f $srcdir/config.status; then
2973    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2974  fi
2975fi
2976
2977# test whether we have cygpath
2978if test -z "$CYGPATH_W"; then
2979  if (cygpath --version) >/dev/null 2>/dev/null; then
2980    CYGPATH_W='cygpath -w'
2981  else
2982    CYGPATH_W=echo
2983  fi
2984fi
2985
2986
2987# Define the identity of the package.
2988 PACKAGE=CRF++
2989 VERSION=0.59
2990
2991
2992cat >>confdefs.h <<_ACEOF
2993#define PACKAGE "$PACKAGE"
2994_ACEOF
2995
2996
2997cat >>confdefs.h <<_ACEOF
2998#define VERSION "$VERSION"
2999_ACEOF
3000
3001# Some tools Automake needs.
3002
3003ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3004
3005
3006AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3007
3008
3009AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3010
3011
3012AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3013
3014
3015MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3016
3017# We need awk for the "check" target.  The system "awk" is bad on
3018# some platforms.
3019# Always define AMTAR for backward compatibility.  Yes, it's still used
3020# in the wild :-(  We should find a proper way to deprecate it ...
3021AMTAR='$${TAR-tar}'
3022
3023am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3024
3025
3026
3027
3028
3029
3030ac_ext=c
3031ac_cpp='$CPP $CPPFLAGS'
3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035if test -n "$ac_tool_prefix"; then
3036  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if ${ac_cv_prog_CC+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073fi
3074if test -z "$ac_cv_prog_CC"; then
3075  ac_ct_CC=$CC
3076  # Extract the first word of "gcc", so it can be a program name with args.
3077set dummy gcc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_ac_ct_CC+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$ac_ct_CC"; then
3084  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_ac_ct_CC="gcc"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104if test -n "$ac_ct_CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106$as_echo "$ac_ct_CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112  if test "x$ac_ct_CC" = x; then
3113    CC=""
3114  else
3115    case $cross_compiling:$ac_tool_warned in
3116yes:)
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119ac_tool_warned=yes ;;
3120esac
3121    CC=$ac_ct_CC
3122  fi
3123else
3124  CC="$ac_cv_prog_CC"
3125fi
3126
3127if test -z "$CC"; then
3128          if test -n "$ac_tool_prefix"; then
3129    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3130set dummy ${ac_tool_prefix}cc; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if ${ac_cv_prog_CC+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if test -n "$CC"; then
3137  ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142  IFS=$as_save_IFS
3143  test -z "$as_dir" && as_dir=.
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146    ac_cv_prog_CC="${ac_tool_prefix}cc"
3147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148    break 2
3149  fi
3150done
3151  done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166  fi
3167fi
3168if test -z "$CC"; then
3169  # Extract the first word of "cc", so it can be a program name with args.
3170set dummy cc; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if ${ac_cv_prog_CC+:} false; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  if test -n "$CC"; then
3177  ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179  ac_prog_rejected=no
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  test -z "$as_dir" && as_dir=.
3185    for ac_exec_ext in '' $ac_executable_extensions; do
3186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3188       ac_prog_rejected=yes
3189       continue
3190     fi
3191    ac_cv_prog_CC="cc"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199if test $ac_prog_rejected = yes; then
3200  # We found a bogon in the path, so make sure we never use it.
3201  set dummy $ac_cv_prog_CC
3202  shift
3203  if test $# != 0; then
3204    # We chose a different compiler from the bogus one.
3205    # However, it has the same basename, so the bogon will be chosen
3206    # first if we set CC to just the basename; use the full file name.
3207    shift
3208    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3209  fi
3210fi
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216$as_echo "$CC" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223fi
3224if test -z "$CC"; then
3225  if test -n "$ac_tool_prefix"; then
3226  for ac_prog in cl.exe
3227  do
3228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if ${ac_cv_prog_CC+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265    test -n "$CC" && break
3266  done
3267fi
3268if test -z "$CC"; then
3269  ac_ct_CC=$CC
3270  for ac_prog in cl.exe
3271do
3272  # Extract the first word of "$ac_prog", so it can be a program name with args.
3273set dummy $ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_ac_ct_CC+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$ac_ct_CC"; then
3280  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_ac_ct_CC="$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300if test -n "$ac_ct_CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302$as_echo "$ac_ct_CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309  test -n "$ac_ct_CC" && break
3310done
3311
3312  if test "x$ac_ct_CC" = x; then
3313    CC=""
3314  else
3315    case $cross_compiling:$ac_tool_warned in
3316yes:)
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319ac_tool_warned=yes ;;
3320esac
3321    CC=$ac_ct_CC
3322  fi
3323fi
3324
3325fi
3326
3327
3328test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330as_fn_error $? "no acceptable C compiler found in \$PATH
3331See \`config.log' for more details" "$LINENO" 5; }
3332
3333# Provide some information about the compiler.
3334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3335set X $ac_compile
3336ac_compiler=$2
3337for ac_option in --version -v -V -qversion; do
3338  { { ac_try="$ac_compiler $ac_option >&5"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3346  ac_status=$?
3347  if test -s conftest.err; then
3348    sed '10a\
3349... rest of stderr output deleted ...
3350         10q' conftest.err >conftest.er1
3351    cat conftest.er1 >&5
3352  fi
3353  rm -f conftest.er1 conftest.err
3354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355  test $ac_status = 0; }
3356done
3357
3358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369ac_clean_files_save=$ac_clean_files
3370ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3371# Try to create an executable without -o first, disregard a.out.
3372# It will help us diagnose broken compilers, and finding out an intuition
3373# of exeext.
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3375$as_echo_n "checking whether the C compiler works... " >&6; }
3376ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3377
3378# The possible output files:
3379ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3380
3381ac_rmfiles=
3382for ac_file in $ac_files
3383do
3384  case $ac_file in
3385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3386    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3387  esac
3388done
3389rm -f $ac_rmfiles
3390
3391if { { ac_try="$ac_link_default"
3392case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398  (eval "$ac_link_default") 2>&5
3399  ac_status=$?
3400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401  test $ac_status = 0; }; then :
3402  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3404# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3405# so that the user can short-circuit this test for compilers unknown to
3406# Autoconf.
3407for ac_file in $ac_files ''
3408do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412	;;
3413    [ab].out )
3414	# We found the default executable, but exeext='' is most
3415	# certainly right.
3416	break;;
3417    *.* )
3418	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3419	then :; else
3420	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421	fi
3422	# We set ac_cv_exeext here because the later test for it is not
3423	# safe: cross compilers may not add the suffix if given an `-o'
3424	# argument, so we may need to know it at that point already.
3425	# Even if this section looks crufty: it has the advantage of
3426	# actually working.
3427	break;;
3428    * )
3429	break;;
3430  esac
3431done
3432test "$ac_cv_exeext" = no && ac_cv_exeext=
3433
3434else
3435  ac_file=''
3436fi
3437if test -z "$ac_file"; then :
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440$as_echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error 77 "C compiler cannot create executables
3446See \`config.log' for more details" "$LINENO" 5; }
3447else
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449$as_echo "yes" >&6; }
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3452$as_echo_n "checking for C compiler default output file name... " >&6; }
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3454$as_echo "$ac_file" >&6; }
3455ac_exeext=$ac_cv_exeext
3456
3457rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3458ac_clean_files=$ac_clean_files_save
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3460$as_echo_n "checking for suffix of executables... " >&6; }
3461if { { ac_try="$ac_link"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467$as_echo "$ac_try_echo"; } >&5
3468  (eval "$ac_link") 2>&5
3469  ac_status=$?
3470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471  test $ac_status = 0; }; then :
3472  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3473# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3474# work properly (i.e., refer to `conftest.exe'), while it won't with
3475# `rm'.
3476for ac_file in conftest.exe conftest conftest.*; do
3477  test -f "$ac_file" || continue
3478  case $ac_file in
3479    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481	  break;;
3482    * ) break;;
3483  esac
3484done
3485else
3486  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3489See \`config.log' for more details" "$LINENO" 5; }
3490fi
3491rm -f conftest conftest$ac_cv_exeext
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3493$as_echo "$ac_cv_exeext" >&6; }
3494
3495rm -f conftest.$ac_ext
3496EXEEXT=$ac_cv_exeext
3497ac_exeext=$EXEEXT
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500#include <stdio.h>
3501int
3502main ()
3503{
3504FILE *f = fopen ("conftest.out", "w");
3505 return ferror (f) || fclose (f) != 0;
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511ac_clean_files="$ac_clean_files conftest.out"
3512# Check that the compiler produces executables we can run.  If not, either
3513# the compiler is broken, or we cross compile.
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3515$as_echo_n "checking whether we are cross compiling... " >&6; }
3516if test "$cross_compiling" != yes; then
3517  { { ac_try="$ac_link"
3518case "(($ac_try" in
3519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520  *) ac_try_echo=$ac_try;;
3521esac
3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523$as_echo "$ac_try_echo"; } >&5
3524  (eval "$ac_link") 2>&5
3525  ac_status=$?
3526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527  test $ac_status = 0; }
3528  if { ac_try='./conftest$ac_cv_exeext'
3529  { { case "(($ac_try" in
3530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531  *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535  (eval "$ac_try") 2>&5
3536  ac_status=$?
3537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538  test $ac_status = 0; }; }; then
3539    cross_compiling=no
3540  else
3541    if test "$cross_compiling" = maybe; then
3542	cross_compiling=yes
3543    else
3544	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "cannot run C compiled programs.
3547If you meant to cross compile, use \`--host'.
3548See \`config.log' for more details" "$LINENO" 5; }
3549    fi
3550  fi
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3553$as_echo "$cross_compiling" >&6; }
3554
3555rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3556ac_clean_files=$ac_clean_files_save
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3558$as_echo_n "checking for suffix of object files... " >&6; }
3559if ${ac_cv_objext+:} false; then :
3560  $as_echo_n "(cached) " >&6
3561else
3562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573rm -f conftest.o conftest.obj
3574if { { ac_try="$ac_compile"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581  (eval "$ac_compile") 2>&5
3582  ac_status=$?
3583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584  test $ac_status = 0; }; then :
3585  for ac_file in conftest.o conftest.obj conftest.*; do
3586  test -f "$ac_file" || continue;
3587  case $ac_file in
3588    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590       break;;
3591  esac
3592done
3593else
3594  $as_echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599as_fn_error $? "cannot compute suffix of object files: cannot compile
3600See \`config.log' for more details" "$LINENO" 5; }
3601fi
3602rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3605$as_echo "$ac_cv_objext" >&6; }
3606OBJEXT=$ac_cv_objext
3607ac_objext=$OBJEXT
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3609$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3610if ${ac_cv_c_compiler_gnu+:} false; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615
3616int
3617main ()
3618{
3619#ifndef __GNUC__
3620       choke me
3621#endif
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627if ac_fn_c_try_compile "$LINENO"; then :
3628  ac_compiler_gnu=yes
3629else
3630  ac_compiler_gnu=no
3631fi
3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633ac_cv_c_compiler_gnu=$ac_compiler_gnu
3634
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3637$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3638if test $ac_compiler_gnu = yes; then
3639  GCC=yes
3640else
3641  GCC=
3642fi
3643ac_test_CFLAGS=${CFLAGS+set}
3644ac_save_CFLAGS=$CFLAGS
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3646$as_echo_n "checking whether $CC accepts -g... " >&6; }
3647if ${ac_cv_prog_cc_g+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650  ac_save_c_werror_flag=$ac_c_werror_flag
3651   ac_c_werror_flag=yes
3652   ac_cv_prog_cc_g=no
3653   CFLAGS="-g"
3654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666  ac_cv_prog_cc_g=yes
3667else
3668  CFLAGS=""
3669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671
3672int
3673main ()
3674{
3675
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680if ac_fn_c_try_compile "$LINENO"; then :
3681
3682else
3683  ac_c_werror_flag=$ac_save_c_werror_flag
3684	 CFLAGS="-g"
3685	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688int
3689main ()
3690{
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696if ac_fn_c_try_compile "$LINENO"; then :
3697  ac_cv_prog_cc_g=yes
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700fi
3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702fi
3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704   ac_c_werror_flag=$ac_save_c_werror_flag
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3707$as_echo "$ac_cv_prog_cc_g" >&6; }
3708if test "$ac_test_CFLAGS" = set; then
3709  CFLAGS=$ac_save_CFLAGS
3710elif test $ac_cv_prog_cc_g = yes; then
3711  if test "$GCC" = yes; then
3712    CFLAGS="-g -O2"
3713  else
3714    CFLAGS="-g"
3715  fi
3716else
3717  if test "$GCC" = yes; then
3718    CFLAGS="-O2"
3719  else
3720    CFLAGS=
3721  fi
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3724$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3725if ${ac_cv_prog_cc_c89+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  ac_cv_prog_cc_c89=no
3729ac_save_CC=$CC
3730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732#include <stdarg.h>
3733#include <stdio.h>
3734struct stat;
3735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3736struct buf { int x; };
3737FILE * (*rcsopen) (struct buf *, struct stat *, int);
3738static char *e (p, i)
3739     char **p;
3740     int i;
3741{
3742  return p[i];
3743}
3744static char *f (char * (*g) (char **, int), char **p, ...)
3745{
3746  char *s;
3747  va_list v;
3748  va_start (v,p);
3749  s = g (p, va_arg (v,int));
3750  va_end (v);
3751  return s;
3752}
3753
3754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3755   function prototypes and stuff, but not '\xHH' hex character constants.
3756   These don't provoke an error unfortunately, instead are silently treated
3757   as 'x'.  The following induces an error, until -std is added to get
3758   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3759   array size at least.  It's necessary to write '\x00'==0 to get something
3760   that's true only with -std.  */
3761int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3762
3763/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764   inside strings and character constants.  */
3765#define FOO(x) 'x'
3766int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3767
3768int test (int i, double x);
3769struct s1 {int (*f) (int a);};
3770struct s2 {int (*f) (double a);};
3771int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3772int argc;
3773char **argv;
3774int
3775main ()
3776{
3777return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3783	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784do
3785  CC="$ac_save_CC $ac_arg"
3786  if ac_fn_c_try_compile "$LINENO"; then :
3787  ac_cv_prog_cc_c89=$ac_arg
3788fi
3789rm -f core conftest.err conftest.$ac_objext
3790  test "x$ac_cv_prog_cc_c89" != "xno" && break
3791done
3792rm -f conftest.$ac_ext
3793CC=$ac_save_CC
3794
3795fi
3796# AC_CACHE_VAL
3797case "x$ac_cv_prog_cc_c89" in
3798  x)
3799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800$as_echo "none needed" >&6; } ;;
3801  xno)
3802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803$as_echo "unsupported" >&6; } ;;
3804  *)
3805    CC="$CC $ac_cv_prog_cc_c89"
3806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3808esac
3809if test "x$ac_cv_prog_cc_c89" != xno; then :
3810
3811fi
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818DEPDIR="${am__leading_dot}deps"
3819
3820ac_config_commands="$ac_config_commands depfiles"
3821
3822
3823am_make=${MAKE-make}
3824cat > confinc << 'END'
3825am__doit:
3826	@echo this is the am__doit target
3827.PHONY: am__doit
3828END
3829# If we don't find an include directive, just comment out the code.
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3831$as_echo_n "checking for style of include used by $am_make... " >&6; }
3832am__include="#"
3833am__quote=
3834_am_result=none
3835# First try GNU make style include.
3836echo "include confinc" > confmf
3837# Ignore all kinds of additional output from `make'.
3838case `$am_make -s -f confmf 2> /dev/null` in #(
3839*the\ am__doit\ target*)
3840  am__include=include
3841  am__quote=
3842  _am_result=GNU
3843  ;;
3844esac
3845# Now try BSD make style include.
3846if test "$am__include" = "#"; then
3847   echo '.include "confinc"' > confmf
3848   case `$am_make -s -f confmf 2> /dev/null` in #(
3849   *the\ am__doit\ target*)
3850     am__include=.include
3851     am__quote="\""
3852     _am_result=BSD
3853     ;;
3854   esac
3855fi
3856
3857
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3859$as_echo "$_am_result" >&6; }
3860rm -f confinc confmf
3861
3862# Check whether --enable-dependency-tracking was given.
3863if test "${enable_dependency_tracking+set}" = set; then :
3864  enableval=$enable_dependency_tracking;
3865fi
3866
3867if test "x$enable_dependency_tracking" != xno; then
3868  am_depcomp="$ac_aux_dir/depcomp"
3869  AMDEPBACKSLASH='\'
3870  am__nodep='_no'
3871fi
3872 if test "x$enable_dependency_tracking" != xno; then
3873  AMDEP_TRUE=
3874  AMDEP_FALSE='#'
3875else
3876  AMDEP_TRUE='#'
3877  AMDEP_FALSE=
3878fi
3879
3880
3881
3882depcc="$CC"   am_compiler_list=
3883
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3885$as_echo_n "checking dependency style of $depcc... " >&6; }
3886if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3887  $as_echo_n "(cached) " >&6
3888else
3889  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3890  # We make a subdir and do the tests there.  Otherwise we can end up
3891  # making bogus files that we don't know about and never remove.  For
3892  # instance it was reported that on HP-UX the gcc test will end up
3893  # making a dummy file named `D' -- because `-MD' means `put the output
3894  # in D'.
3895  rm -rf conftest.dir
3896  mkdir conftest.dir
3897  # Copy depcomp to subdir because otherwise we won't find it if we're
3898  # using a relative directory.
3899  cp "$am_depcomp" conftest.dir
3900  cd conftest.dir
3901  # We will build objects and dependencies in a subdirectory because
3902  # it helps to detect inapplicable dependency modes.  For instance
3903  # both Tru64's cc and ICC support -MD to output dependencies as a
3904  # side effect of compilation, but ICC will put the dependencies in
3905  # the current directory while Tru64 will put them in the object
3906  # directory.
3907  mkdir sub
3908
3909  am_cv_CC_dependencies_compiler_type=none
3910  if test "$am_compiler_list" = ""; then
3911     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3912  fi
3913  am__universal=false
3914  case " $depcc " in #(
3915     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3916     esac
3917
3918  for depmode in $am_compiler_list; do
3919    # Setup a source with many dependencies, because some compilers
3920    # like to wrap large dependency lists on column 80 (with \), and
3921    # we should not choose a depcomp mode which is confused by this.
3922    #
3923    # We need to recreate these files for each test, as the compiler may
3924    # overwrite some of them when testing with obscure command lines.
3925    # This happens at least with the AIX C compiler.
3926    : > sub/conftest.c
3927    for i in 1 2 3 4 5 6; do
3928      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3929      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3930      # Solaris 8's {/usr,}/bin/sh.
3931      touch sub/conftst$i.h
3932    done
3933    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3934
3935    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3936    # mode.  It turns out that the SunPro C++ compiler does not properly
3937    # handle `-M -o', and we need to detect this.  Also, some Intel
3938    # versions had trouble with output in subdirs
3939    am__obj=sub/conftest.${OBJEXT-o}
3940    am__minus_obj="-o $am__obj"
3941    case $depmode in
3942    gcc)
3943      # This depmode causes a compiler race in universal mode.
3944      test "$am__universal" = false || continue
3945      ;;
3946    nosideeffect)
3947      # after this tag, mechanisms are not by side-effect, so they'll
3948      # only be used when explicitly requested
3949      if test "x$enable_dependency_tracking" = xyes; then
3950	continue
3951      else
3952	break
3953      fi
3954      ;;
3955    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3956      # This compiler won't grok `-c -o', but also, the minuso test has
3957      # not run yet.  These depmodes are late enough in the game, and
3958      # so weak that their functioning should not be impacted.
3959      am__obj=conftest.${OBJEXT-o}
3960      am__minus_obj=
3961      ;;
3962    none) break ;;
3963    esac
3964    if depmode=$depmode \
3965       source=sub/conftest.c object=$am__obj \
3966       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3967       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3968         >/dev/null 2>conftest.err &&
3969       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3970       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3971       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3972       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3973      # icc doesn't choke on unknown options, it will just issue warnings
3974      # or remarks (even with -Werror).  So we grep stderr for any message
3975      # that says an option was ignored or not supported.
3976      # When given -MP, icc 7.0 and 7.1 complain thusly:
3977      #   icc: Command line warning: ignoring option '-M'; no argument required
3978      # The diagnosis changed in icc 8.0:
3979      #   icc: Command line remark: option '-MP' not supported
3980      if (grep 'ignoring option' conftest.err ||
3981          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3982        am_cv_CC_dependencies_compiler_type=$depmode
3983        break
3984      fi
3985    fi
3986  done
3987
3988  cd ..
3989  rm -rf conftest.dir
3990else
3991  am_cv_CC_dependencies_compiler_type=none
3992fi
3993
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3996$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3997CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3998
3999 if
4000  test "x$enable_dependency_tracking" != xno \
4001  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4002  am__fastdepCC_TRUE=
4003  am__fastdepCC_FALSE='#'
4004else
4005  am__fastdepCC_TRUE='#'
4006  am__fastdepCC_FALSE=
4007fi
4008
4009
4010ac_ext=cpp
4011ac_cpp='$CXXCPP $CPPFLAGS'
4012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4015if test -z "$CXX"; then
4016  if test -n "$CCC"; then
4017    CXX=$CCC
4018  else
4019    if test -n "$ac_tool_prefix"; then
4020  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4021  do
4022    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if ${ac_cv_prog_CXX+:} false; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  if test -n "$CXX"; then
4030  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035  IFS=$as_save_IFS
4036  test -z "$as_dir" && as_dir=.
4037    for ac_exec_ext in '' $ac_executable_extensions; do
4038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041    break 2
4042  fi
4043done
4044  done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049CXX=$ac_cv_prog_CXX
4050if test -n "$CXX"; then
4051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4052$as_echo "$CXX" >&6; }
4053else
4054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058
4059    test -n "$CXX" && break
4060  done
4061fi
4062if test -z "$CXX"; then
4063  ac_ct_CXX=$CXX
4064  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4065do
4066  # Extract the first word of "$ac_prog", so it can be a program name with args.
4067set dummy $ac_prog; ac_word=$2
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
4070if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  if test -n "$ac_ct_CXX"; then
4074  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081    for ac_exec_ext in '' $ac_executable_extensions; do
4082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083    ac_cv_prog_ac_ct_CXX="$ac_prog"
4084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087done
4088  done
4089IFS=$as_save_IFS
4090
4091fi
4092fi
4093ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4094if test -n "$ac_ct_CXX"; then
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4096$as_echo "$ac_ct_CXX" >&6; }
4097else
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099$as_echo "no" >&6; }
4100fi
4101
4102
4103  test -n "$ac_ct_CXX" && break
4104done
4105
4106  if test "x$ac_ct_CXX" = x; then
4107    CXX="g++"
4108  else
4109    case $cross_compiling:$ac_tool_warned in
4110yes:)
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4113ac_tool_warned=yes ;;
4114esac
4115    CXX=$ac_ct_CXX
4116  fi
4117fi
4118
4119  fi
4120fi
4121# Provide some information about the compiler.
4122$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4123set X $ac_compile
4124ac_compiler=$2
4125for ac_option in --version -v -V -qversion; do
4126  { { ac_try="$ac_compiler $ac_option >&5"
4127case "(($ac_try" in
4128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129  *) ac_try_echo=$ac_try;;
4130esac
4131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132$as_echo "$ac_try_echo"; } >&5
4133  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4134  ac_status=$?
4135  if test -s conftest.err; then
4136    sed '10a\
4137... rest of stderr output deleted ...
4138         10q' conftest.err >conftest.er1
4139    cat conftest.er1 >&5
4140  fi
4141  rm -f conftest.er1 conftest.err
4142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143  test $ac_status = 0; }
4144done
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4147$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4148if ${ac_cv_cxx_compiler_gnu+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h.  */
4153
4154int
4155main ()
4156{
4157#ifndef __GNUC__
4158       choke me
4159#endif
4160
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165if ac_fn_cxx_try_compile "$LINENO"; then :
4166  ac_compiler_gnu=yes
4167else
4168  ac_compiler_gnu=no
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4172
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4175$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4176if test $ac_compiler_gnu = yes; then
4177  GXX=yes
4178else
4179  GXX=
4180fi
4181ac_test_CXXFLAGS=${CXXFLAGS+set}
4182ac_save_CXXFLAGS=$CXXFLAGS
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4184$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4185if ${ac_cv_prog_cxx_g+:} false; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4189   ac_cxx_werror_flag=yes
4190   ac_cv_prog_cxx_g=no
4191   CXXFLAGS="-std=c++98 -g"
4192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194
4195int
4196main ()
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203if ac_fn_cxx_try_compile "$LINENO"; then :
4204  ac_cv_prog_cxx_g=yes
4205else
4206  CXXFLAGS="-std=c++98 "
4207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209
4210int
4211main ()
4212{
4213
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218if ac_fn_cxx_try_compile "$LINENO"; then :
4219
4220else
4221  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4222	 CXXFLAGS="-std=c++98 -g"
4223	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225
4226int
4227main ()
4228{
4229
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234if ac_fn_cxx_try_compile "$LINENO"; then :
4235  ac_cv_prog_cxx_g=yes
4236fi
4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238fi
4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240fi
4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4245$as_echo "$ac_cv_prog_cxx_g" >&6; }
4246if test "$ac_test_CXXFLAGS" = set; then
4247  CXXFLAGS=$ac_save_CXXFLAGS
4248elif test $ac_cv_prog_cxx_g = yes; then
4249  if test "$GXX" = yes; then
4250    CXXFLAGS="-std=c++98 -g -O2"
4251  else
4252    CXXFLAGS="-std=c++98 -g"
4253  fi
4254else
4255  if test "$GXX" = yes; then
4256    CXXFLAGS="-std=c++98 -O2"
4257  else
4258    CXXFLAGS=
4259  fi
4260fi
4261ac_ext=c
4262ac_cpp='$CPP $CPPFLAGS'
4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
4267depcc="$CXX"  am_compiler_list=
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4270$as_echo_n "checking dependency style of $depcc... " >&6; }
4271if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4272  $as_echo_n "(cached) " >&6
4273else
4274  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4275  # We make a subdir and do the tests there.  Otherwise we can end up
4276  # making bogus files that we don't know about and never remove.  For
4277  # instance it was reported that on HP-UX the gcc test will end up
4278  # making a dummy file named `D' -- because `-MD' means `put the output
4279  # in D'.
4280  rm -rf conftest.dir
4281  mkdir conftest.dir
4282  # Copy depcomp to subdir because otherwise we won't find it if we're
4283  # using a relative directory.
4284  cp "$am_depcomp" conftest.dir
4285  cd conftest.dir
4286  # We will build objects and dependencies in a subdirectory because
4287  # it helps to detect inapplicable dependency modes.  For instance
4288  # both Tru64's cc and ICC support -MD to output dependencies as a
4289  # side effect of compilation, but ICC will put the dependencies in
4290  # the current directory while Tru64 will put them in the object
4291  # directory.
4292  mkdir sub
4293
4294  am_cv_CXX_dependencies_compiler_type=none
4295  if test "$am_compiler_list" = ""; then
4296     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4297  fi
4298  am__universal=false
4299  case " $depcc " in #(
4300     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4301     esac
4302
4303  for depmode in $am_compiler_list; do
4304    # Setup a source with many dependencies, because some compilers
4305    # like to wrap large dependency lists on column 80 (with \), and
4306    # we should not choose a depcomp mode which is confused by this.
4307    #
4308    # We need to recreate these files for each test, as the compiler may
4309    # overwrite some of them when testing with obscure command lines.
4310    # This happens at least with the AIX C compiler.
4311    : > sub/conftest.c
4312    for i in 1 2 3 4 5 6; do
4313      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4314      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4315      # Solaris 8's {/usr,}/bin/sh.
4316      touch sub/conftst$i.h
4317    done
4318    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4319
4320    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4321    # mode.  It turns out that the SunPro C++ compiler does not properly
4322    # handle `-M -o', and we need to detect this.  Also, some Intel
4323    # versions had trouble with output in subdirs
4324    am__obj=sub/conftest.${OBJEXT-o}
4325    am__minus_obj="-o $am__obj"
4326    case $depmode in
4327    gcc)
4328      # This depmode causes a compiler race in universal mode.
4329      test "$am__universal" = false || continue
4330      ;;
4331    nosideeffect)
4332      # after this tag, mechanisms are not by side-effect, so they'll
4333      # only be used when explicitly requested
4334      if test "x$enable_dependency_tracking" = xyes; then
4335	continue
4336      else
4337	break
4338      fi
4339      ;;
4340    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4341      # This compiler won't grok `-c -o', but also, the minuso test has
4342      # not run yet.  These depmodes are late enough in the game, and
4343      # so weak that their functioning should not be impacted.
4344      am__obj=conftest.${OBJEXT-o}
4345      am__minus_obj=
4346      ;;
4347    none) break ;;
4348    esac
4349    if depmode=$depmode \
4350       source=sub/conftest.c object=$am__obj \
4351       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4352       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4353         >/dev/null 2>conftest.err &&
4354       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4355       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4356       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4357       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4358      # icc doesn't choke on unknown options, it will just issue warnings
4359      # or remarks (even with -Werror).  So we grep stderr for any message
4360      # that says an option was ignored or not supported.
4361      # When given -MP, icc 7.0 and 7.1 complain thusly:
4362      #   icc: Command line warning: ignoring option '-M'; no argument required
4363      # The diagnosis changed in icc 8.0:
4364      #   icc: Command line remark: option '-MP' not supported
4365      if (grep 'ignoring option' conftest.err ||
4366          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4367        am_cv_CXX_dependencies_compiler_type=$depmode
4368        break
4369      fi
4370    fi
4371  done
4372
4373  cd ..
4374  rm -rf conftest.dir
4375else
4376  am_cv_CXX_dependencies_compiler_type=none
4377fi
4378
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4381$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4382CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4383
4384 if
4385  test "x$enable_dependency_tracking" != xno \
4386  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4387  am__fastdepCXX_TRUE=
4388  am__fastdepCXX_FALSE='#'
4389else
4390  am__fastdepCXX_TRUE='#'
4391  am__fastdepCXX_FALSE=
4392fi
4393
4394
4395
4396ac_ext=c
4397ac_cpp='$CPP $CPPFLAGS'
4398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4402$as_echo_n "checking how to run the C preprocessor... " >&6; }
4403# On Suns, sometimes $CPP names a directory.
4404if test -n "$CPP" && test -d "$CPP"; then
4405  CPP=
4406fi
4407if test -z "$CPP"; then
4408  if ${ac_cv_prog_CPP+:} false; then :
4409  $as_echo_n "(cached) " >&6
4410else
4411      # Double quotes because CPP needs to be expanded
4412    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4413    do
4414      ac_preproc_ok=false
4415for ac_c_preproc_warn_flag in '' yes
4416do
4417  # Use a header file that comes with gcc, so configuring glibc
4418  # with a fresh cross-compiler works.
4419  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420  # <limits.h> exists even on freestanding compilers.
4421  # On the NeXT, cc -E runs the code through the compiler's parser,
4422  # not just through cpp. "Syntax error" is here to catch this case.
4423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425#ifdef __STDC__
4426# include <limits.h>
4427#else
4428# include <assert.h>
4429#endif
4430		     Syntax error
4431_ACEOF
4432if ac_fn_c_try_cpp "$LINENO"; then :
4433
4434else
4435  # Broken: fails on valid input.
4436continue
4437fi
4438rm -f conftest.err conftest.i conftest.$ac_ext
4439
4440  # OK, works on sane cases.  Now check whether nonexistent headers
4441  # can be detected and how.
4442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h.  */
4444#include <ac_nonexistent.h>
4445_ACEOF
4446if ac_fn_c_try_cpp "$LINENO"; then :
4447  # Broken: success on invalid input.
4448continue
4449else
4450  # Passes both tests.
4451ac_preproc_ok=:
4452break
4453fi
4454rm -f conftest.err conftest.i conftest.$ac_ext
4455
4456done
4457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458rm -f conftest.i conftest.err conftest.$ac_ext
4459if $ac_preproc_ok; then :
4460  break
4461fi
4462
4463    done
4464    ac_cv_prog_CPP=$CPP
4465
4466fi
4467  CPP=$ac_cv_prog_CPP
4468else
4469  ac_cv_prog_CPP=$CPP
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4472$as_echo "$CPP" >&6; }
4473ac_preproc_ok=false
4474for ac_c_preproc_warn_flag in '' yes
4475do
4476  # Use a header file that comes with gcc, so configuring glibc
4477  # with a fresh cross-compiler works.
4478  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479  # <limits.h> exists even on freestanding compilers.
4480  # On the NeXT, cc -E runs the code through the compiler's parser,
4481  # not just through cpp. "Syntax error" is here to catch this case.
4482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h.  */
4484#ifdef __STDC__
4485# include <limits.h>
4486#else
4487# include <assert.h>
4488#endif
4489		     Syntax error
4490_ACEOF
4491if ac_fn_c_try_cpp "$LINENO"; then :
4492
4493else
4494  # Broken: fails on valid input.
4495continue
4496fi
4497rm -f conftest.err conftest.i conftest.$ac_ext
4498
4499  # OK, works on sane cases.  Now check whether nonexistent headers
4500  # can be detected and how.
4501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h.  */
4503#include <ac_nonexistent.h>
4504_ACEOF
4505if ac_fn_c_try_cpp "$LINENO"; then :
4506  # Broken: success on invalid input.
4507continue
4508else
4509  # Passes both tests.
4510ac_preproc_ok=:
4511break
4512fi
4513rm -f conftest.err conftest.i conftest.$ac_ext
4514
4515done
4516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517rm -f conftest.i conftest.err conftest.$ac_ext
4518if $ac_preproc_ok; then :
4519
4520else
4521  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4524See \`config.log' for more details" "$LINENO" 5; }
4525fi
4526
4527ac_ext=c
4528ac_cpp='$CPP $CPPFLAGS'
4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532
4533
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4535$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4536if ${ac_cv_path_GREP+:} false; then :
4537  $as_echo_n "(cached) " >&6
4538else
4539  if test -z "$GREP"; then
4540  ac_path_GREP_found=false
4541  # Loop through the user's path and test for each of PROGNAME-LIST
4542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4544do
4545  IFS=$as_save_IFS
4546  test -z "$as_dir" && as_dir=.
4547    for ac_prog in grep ggrep; do
4548    for ac_exec_ext in '' $ac_executable_extensions; do
4549      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4550      as_fn_executable_p "$ac_path_GREP" || continue
4551# Check for GNU ac_path_GREP and select it if it is found.
4552  # Check for GNU $ac_path_GREP
4553case `"$ac_path_GREP" --version 2>&1` in
4554*GNU*)
4555  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4556*)
4557  ac_count=0
4558  $as_echo_n 0123456789 >"conftest.in"
4559  while :
4560  do
4561    cat "conftest.in" "conftest.in" >"conftest.tmp"
4562    mv "conftest.tmp" "conftest.in"
4563    cp "conftest.in" "conftest.nl"
4564    $as_echo 'GREP' >> "conftest.nl"
4565    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567    as_fn_arith $ac_count + 1 && ac_count=$as_val
4568    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4569      # Best one so far, save it but keep looking for a better one
4570      ac_cv_path_GREP="$ac_path_GREP"
4571      ac_path_GREP_max=$ac_count
4572    fi
4573    # 10*(2^10) chars as input seems more than enough
4574    test $ac_count -gt 10 && break
4575  done
4576  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4577esac
4578
4579      $ac_path_GREP_found && break 3
4580    done
4581  done
4582  done
4583IFS=$as_save_IFS
4584  if test -z "$ac_cv_path_GREP"; then
4585    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4586  fi
4587else
4588  ac_cv_path_GREP=$GREP
4589fi
4590
4591fi
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4593$as_echo "$ac_cv_path_GREP" >&6; }
4594 GREP="$ac_cv_path_GREP"
4595
4596
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4598$as_echo_n "checking for egrep... " >&6; }
4599if ${ac_cv_path_EGREP+:} false; then :
4600  $as_echo_n "(cached) " >&6
4601else
4602  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4603   then ac_cv_path_EGREP="$GREP -E"
4604   else
4605     if test -z "$EGREP"; then
4606  ac_path_EGREP_found=false
4607  # Loop through the user's path and test for each of PROGNAME-LIST
4608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610do
4611  IFS=$as_save_IFS
4612  test -z "$as_dir" && as_dir=.
4613    for ac_prog in egrep; do
4614    for ac_exec_ext in '' $ac_executable_extensions; do
4615      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4616      as_fn_executable_p "$ac_path_EGREP" || continue
4617# Check for GNU ac_path_EGREP and select it if it is found.
4618  # Check for GNU $ac_path_EGREP
4619case `"$ac_path_EGREP" --version 2>&1` in
4620*GNU*)
4621  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4622*)
4623  ac_count=0
4624  $as_echo_n 0123456789 >"conftest.in"
4625  while :
4626  do
4627    cat "conftest.in" "conftest.in" >"conftest.tmp"
4628    mv "conftest.tmp" "conftest.in"
4629    cp "conftest.in" "conftest.nl"
4630    $as_echo 'EGREP' >> "conftest.nl"
4631    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633    as_fn_arith $ac_count + 1 && ac_count=$as_val
4634    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635      # Best one so far, save it but keep looking for a better one
4636      ac_cv_path_EGREP="$ac_path_EGREP"
4637      ac_path_EGREP_max=$ac_count
4638    fi
4639    # 10*(2^10) chars as input seems more than enough
4640    test $ac_count -gt 10 && break
4641  done
4642  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643esac
4644
4645      $ac_path_EGREP_found && break 3
4646    done
4647  done
4648  done
4649IFS=$as_save_IFS
4650  if test -z "$ac_cv_path_EGREP"; then
4651    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652  fi
4653else
4654  ac_cv_path_EGREP=$EGREP
4655fi
4656
4657   fi
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4660$as_echo "$ac_cv_path_EGREP" >&6; }
4661 EGREP="$ac_cv_path_EGREP"
4662
4663
4664if test $ac_cv_c_compiler_gnu = yes; then
4665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4666$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4667if ${ac_cv_prog_gcc_traditional+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670    ac_pattern="Autoconf.*'x'"
4671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h.  */
4673#include <sgtty.h>
4674Autoconf TIOCGETP
4675_ACEOF
4676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4677  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4678  ac_cv_prog_gcc_traditional=yes
4679else
4680  ac_cv_prog_gcc_traditional=no
4681fi
4682rm -f conftest*
4683
4684
4685  if test $ac_cv_prog_gcc_traditional = no; then
4686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688#include <termio.h>
4689Autoconf TCGETA
4690_ACEOF
4691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4693  ac_cv_prog_gcc_traditional=yes
4694fi
4695rm -f conftest*
4696
4697  fi
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4700$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4701  if test $ac_cv_prog_gcc_traditional = yes; then
4702    CC="$CC -traditional"
4703  fi
4704fi
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4707$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4708set x ${MAKE-make}
4709ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4710if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  cat >conftest.make <<\_ACEOF
4714SHELL = /bin/sh
4715all:
4716	@echo '@@@%%%=$(MAKE)=@@@%%%'
4717_ACEOF
4718# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4719case `${MAKE-make} -f conftest.make 2>/dev/null` in
4720  *@@@%%%=?*=@@@%%%*)
4721    eval ac_cv_prog_make_${ac_make}_set=yes;;
4722  *)
4723    eval ac_cv_prog_make_${ac_make}_set=no;;
4724esac
4725rm -f conftest.make
4726fi
4727if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4729$as_echo "yes" >&6; }
4730  SET_MAKE=
4731else
4732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
4734  SET_MAKE="MAKE=${MAKE-make}"
4735fi
4736
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4738$as_echo_n "checking for library containing strerror... " >&6; }
4739if ${ac_cv_search_strerror+:} false; then :
4740  $as_echo_n "(cached) " >&6
4741else
4742  ac_func_search_save_LIBS=$LIBS
4743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745
4746/* Override any GCC internal prototype to avoid an error.
4747   Use char because int might match the return type of a GCC
4748   builtin and then its argument prototype would still apply.  */
4749#ifdef __cplusplus
4750extern "C"
4751#endif
4752char strerror ();
4753int
4754main ()
4755{
4756return strerror ();
4757  ;
4758  return 0;
4759}
4760_ACEOF
4761for ac_lib in '' cposix; do
4762  if test -z "$ac_lib"; then
4763    ac_res="none required"
4764  else
4765    ac_res=-l$ac_lib
4766    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4767  fi
4768  if ac_fn_c_try_link "$LINENO"; then :
4769  ac_cv_search_strerror=$ac_res
4770fi
4771rm -f core conftest.err conftest.$ac_objext \
4772    conftest$ac_exeext
4773  if ${ac_cv_search_strerror+:} false; then :
4774  break
4775fi
4776done
4777if ${ac_cv_search_strerror+:} false; then :
4778
4779else
4780  ac_cv_search_strerror=no
4781fi
4782rm conftest.$ac_ext
4783LIBS=$ac_func_search_save_LIBS
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4786$as_echo "$ac_cv_search_strerror" >&6; }
4787ac_res=$ac_cv_search_strerror
4788if test "$ac_res" != no; then :
4789  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4790
4791fi
4792
4793# Make sure we can run config.sub.
4794$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4795  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4796
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4798$as_echo_n "checking build system type... " >&6; }
4799if ${ac_cv_build+:} false; then :
4800  $as_echo_n "(cached) " >&6
4801else
4802  ac_build_alias=$build_alias
4803test "x$ac_build_alias" = x &&
4804  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4805test "x$ac_build_alias" = x &&
4806  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4807ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4808  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4809
4810fi
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4812$as_echo "$ac_cv_build" >&6; }
4813case $ac_cv_build in
4814*-*-*) ;;
4815*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4816esac
4817build=$ac_cv_build
4818ac_save_IFS=$IFS; IFS='-'
4819set x $ac_cv_build
4820shift
4821build_cpu=$1
4822build_vendor=$2
4823shift; shift
4824# Remember, the first character of IFS is used to create $*,
4825# except with old shells:
4826build_os=$*
4827IFS=$ac_save_IFS
4828case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4829
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4832$as_echo_n "checking host system type... " >&6; }
4833if ${ac_cv_host+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  if test "x$host_alias" = x; then
4837  ac_cv_host=$ac_cv_build
4838else
4839  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4840    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4841fi
4842
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4845$as_echo "$ac_cv_host" >&6; }
4846case $ac_cv_host in
4847*-*-*) ;;
4848*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4849esac
4850host=$ac_cv_host
4851ac_save_IFS=$IFS; IFS='-'
4852set x $ac_cv_host
4853shift
4854host_cpu=$1
4855host_vendor=$2
4856shift; shift
4857# Remember, the first character of IFS is used to create $*,
4858# except with old shells:
4859host_os=$*
4860IFS=$ac_save_IFS
4861case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4862
4863
4864
4865case $host_os in
4866  *cygwin* ) CYGWIN=yes;;
4867	 * ) CYGWIN=no;;
4868esac
4869
4870ac_ext=cpp
4871ac_cpp='$CXXCPP $CPPFLAGS'
4872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4875
4876case `pwd` in
4877  *\ * | *\	*)
4878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4879$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4880esac
4881
4882
4883
4884macro_version='2.4.2'
4885macro_revision='1.3337'
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899ltmain="$ac_aux_dir/ltmain.sh"
4900
4901# Backslashify metacharacters that are still active within
4902# double-quoted strings.
4903sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4904
4905# Same as above, but do not quote variable references.
4906double_quote_subst='s/\(["`\\]\)/\\\1/g'
4907
4908# Sed substitution to delay expansion of an escaped shell variable in a
4909# double_quote_subst'ed string.
4910delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4911
4912# Sed substitution to delay expansion of an escaped single quote.
4913delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4914
4915# Sed substitution to avoid accidental globbing in evaled expressions
4916no_glob_subst='s/\*/\\\*/g'
4917
4918ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4919ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4920ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4921
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4923$as_echo_n "checking how to print strings... " >&6; }
4924# Test print first, because it will be a builtin if present.
4925if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4926   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4927  ECHO='print -r --'
4928elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4929  ECHO='printf %s\n'
4930else
4931  # Use this function as a fallback that always works.
4932  func_fallback_echo ()
4933  {
4934    eval 'cat <<_LTECHO_EOF
4935$1
4936_LTECHO_EOF'
4937  }
4938  ECHO='func_fallback_echo'
4939fi
4940
4941# func_echo_all arg...
4942# Invoke $ECHO with all args, space-separated.
4943func_echo_all ()
4944{
4945    $ECHO ""
4946}
4947
4948case "$ECHO" in
4949  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4950$as_echo "printf" >&6; } ;;
4951  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4952$as_echo "print -r" >&6; } ;;
4953  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4954$as_echo "cat" >&6; } ;;
4955esac
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4971$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4972if ${ac_cv_path_SED+:} false; then :
4973  $as_echo_n "(cached) " >&6
4974else
4975            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4976     for ac_i in 1 2 3 4 5 6 7; do
4977       ac_script="$ac_script$as_nl$ac_script"
4978     done
4979     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4980     { ac_script=; unset ac_script;}
4981     if test -z "$SED"; then
4982  ac_path_SED_found=false
4983  # Loop through the user's path and test for each of PROGNAME-LIST
4984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987  IFS=$as_save_IFS
4988  test -z "$as_dir" && as_dir=.
4989    for ac_prog in sed gsed; do
4990    for ac_exec_ext in '' $ac_executable_extensions; do
4991      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4992      as_fn_executable_p "$ac_path_SED" || continue
4993# Check for GNU ac_path_SED and select it if it is found.
4994  # Check for GNU $ac_path_SED
4995case `"$ac_path_SED" --version 2>&1` in
4996*GNU*)
4997  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4998*)
4999  ac_count=0
5000  $as_echo_n 0123456789 >"conftest.in"
5001  while :
5002  do
5003    cat "conftest.in" "conftest.in" >"conftest.tmp"
5004    mv "conftest.tmp" "conftest.in"
5005    cp "conftest.in" "conftest.nl"
5006    $as_echo '' >> "conftest.nl"
5007    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009    as_fn_arith $ac_count + 1 && ac_count=$as_val
5010    if test $ac_count -gt ${ac_path_SED_max-0}; then
5011      # Best one so far, save it but keep looking for a better one
5012      ac_cv_path_SED="$ac_path_SED"
5013      ac_path_SED_max=$ac_count
5014    fi
5015    # 10*(2^10) chars as input seems more than enough
5016    test $ac_count -gt 10 && break
5017  done
5018  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5019esac
5020
5021      $ac_path_SED_found && break 3
5022    done
5023  done
5024  done
5025IFS=$as_save_IFS
5026  if test -z "$ac_cv_path_SED"; then
5027    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5028  fi
5029else
5030  ac_cv_path_SED=$SED
5031fi
5032
5033fi
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5035$as_echo "$ac_cv_path_SED" >&6; }
5036 SED="$ac_cv_path_SED"
5037  rm -f conftest.sed
5038
5039test -z "$SED" && SED=sed
5040Xsed="$SED -e 1s/^X//"
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5053$as_echo_n "checking for fgrep... " >&6; }
5054if ${ac_cv_path_FGREP+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5058   then ac_cv_path_FGREP="$GREP -F"
5059   else
5060     if test -z "$FGREP"; then
5061  ac_path_FGREP_found=false
5062  # Loop through the user's path and test for each of PROGNAME-LIST
5063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068    for ac_prog in fgrep; do
5069    for ac_exec_ext in '' $ac_executable_extensions; do
5070      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5071      as_fn_executable_p "$ac_path_FGREP" || continue
5072# Check for GNU ac_path_FGREP and select it if it is found.
5073  # Check for GNU $ac_path_FGREP
5074case `"$ac_path_FGREP" --version 2>&1` in
5075*GNU*)
5076  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5077*)
5078  ac_count=0
5079  $as_echo_n 0123456789 >"conftest.in"
5080  while :
5081  do
5082    cat "conftest.in" "conftest.in" >"conftest.tmp"
5083    mv "conftest.tmp" "conftest.in"
5084    cp "conftest.in" "conftest.nl"
5085    $as_echo 'FGREP' >> "conftest.nl"
5086    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5087    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5088    as_fn_arith $ac_count + 1 && ac_count=$as_val
5089    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5090      # Best one so far, save it but keep looking for a better one
5091      ac_cv_path_FGREP="$ac_path_FGREP"
5092      ac_path_FGREP_max=$ac_count
5093    fi
5094    # 10*(2^10) chars as input seems more than enough
5095    test $ac_count -gt 10 && break
5096  done
5097  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098esac
5099
5100      $ac_path_FGREP_found && break 3
5101    done
5102  done
5103  done
5104IFS=$as_save_IFS
5105  if test -z "$ac_cv_path_FGREP"; then
5106    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107  fi
5108else
5109  ac_cv_path_FGREP=$FGREP
5110fi
5111
5112   fi
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5115$as_echo "$ac_cv_path_FGREP" >&6; }
5116 FGREP="$ac_cv_path_FGREP"
5117
5118
5119test -z "$GREP" && GREP=grep
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139# Check whether --with-gnu-ld was given.
5140if test "${with_gnu_ld+set}" = set; then :
5141  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5142else
5143  with_gnu_ld=no
5144fi
5145
5146ac_prog=ld
5147if test "$GCC" = yes; then
5148  # Check if gcc -print-prog-name=ld gives a path.
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5150$as_echo_n "checking for ld used by $CC... " >&6; }
5151  case $host in
5152  *-*-mingw*)
5153    # gcc leaves a trailing carriage return which upsets mingw
5154    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5155  *)
5156    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5157  esac
5158  case $ac_prog in
5159    # Accept absolute paths.
5160    [\\/]* | ?:[\\/]*)
5161      re_direlt='/[^/][^/]*/\.\./'
5162      # Canonicalize the pathname of ld
5163      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5164      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5165	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5166      done
5167      test -z "$LD" && LD="$ac_prog"
5168      ;;
5169  "")
5170    # If it fails, then pretend we aren't using GCC.
5171    ac_prog=ld
5172    ;;
5173  *)
5174    # If it is relative, then search for the first ld in PATH.
5175    with_gnu_ld=unknown
5176    ;;
5177  esac
5178elif test "$with_gnu_ld" = yes; then
5179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5180$as_echo_n "checking for GNU ld... " >&6; }
5181else
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5183$as_echo_n "checking for non-GNU ld... " >&6; }
5184fi
5185if ${lt_cv_path_LD+:} false; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  if test -z "$LD"; then
5189  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5190  for ac_dir in $PATH; do
5191    IFS="$lt_save_ifs"
5192    test -z "$ac_dir" && ac_dir=.
5193    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5194      lt_cv_path_LD="$ac_dir/$ac_prog"
5195      # Check to see if the program is GNU ld.  I'd rather use --version,
5196      # but apparently some variants of GNU ld only accept -v.
5197      # Break only if it was the GNU/non-GNU ld that we prefer.
5198      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5199      *GNU* | *'with BFD'*)
5200	test "$with_gnu_ld" != no && break
5201	;;
5202      *)
5203	test "$with_gnu_ld" != yes && break
5204	;;
5205      esac
5206    fi
5207  done
5208  IFS="$lt_save_ifs"
5209else
5210  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5211fi
5212fi
5213
5214LD="$lt_cv_path_LD"
5215if test -n "$LD"; then
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5217$as_echo "$LD" >&6; }
5218else
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5224$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5225if ${lt_cv_prog_gnu_ld+:} false; then :
5226  $as_echo_n "(cached) " >&6
5227else
5228  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5229case `$LD -v 2>&1 </dev/null` in
5230*GNU* | *'with BFD'*)
5231  lt_cv_prog_gnu_ld=yes
5232  ;;
5233*)
5234  lt_cv_prog_gnu_ld=no
5235  ;;
5236esac
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5239$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5240with_gnu_ld=$lt_cv_prog_gnu_ld
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5251$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5252if ${lt_cv_path_NM+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  if test -n "$NM"; then
5256  # Let the user override the test.
5257  lt_cv_path_NM="$NM"
5258else
5259  lt_nm_to_check="${ac_tool_prefix}nm"
5260  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5261    lt_nm_to_check="$lt_nm_to_check nm"
5262  fi
5263  for lt_tmp_nm in $lt_nm_to_check; do
5264    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5265    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5266      IFS="$lt_save_ifs"
5267      test -z "$ac_dir" && ac_dir=.
5268      tmp_nm="$ac_dir/$lt_tmp_nm"
5269      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5270	# Check to see if the nm accepts a BSD-compat flag.
5271	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5272	#   nm: unknown option "B" ignored
5273	# Tru64's nm complains that /dev/null is an invalid object file
5274	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5275	*/dev/null* | *'Invalid file or object type'*)
5276	  lt_cv_path_NM="$tmp_nm -B"
5277	  break
5278	  ;;
5279	*)
5280	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5281	  */dev/null*)
5282	    lt_cv_path_NM="$tmp_nm -p"
5283	    break
5284	    ;;
5285	  *)
5286	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5287	    continue # so that we can try to find one that supports BSD flags
5288	    ;;
5289	  esac
5290	  ;;
5291	esac
5292      fi
5293    done
5294    IFS="$lt_save_ifs"
5295  done
5296  : ${lt_cv_path_NM=no}
5297fi
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5300$as_echo "$lt_cv_path_NM" >&6; }
5301if test "$lt_cv_path_NM" != "no"; then
5302  NM="$lt_cv_path_NM"
5303else
5304  # Didn't find any BSD compatible name lister, look for dumpbin.
5305  if test -n "$DUMPBIN"; then :
5306    # Let the user override the test.
5307  else
5308    if test -n "$ac_tool_prefix"; then
5309  for ac_prog in dumpbin "link -dump"
5310  do
5311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314$as_echo_n "checking for $ac_word... " >&6; }
5315if ${ac_cv_prog_DUMPBIN+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  if test -n "$DUMPBIN"; then
5319  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5320else
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324  IFS=$as_save_IFS
5325  test -z "$as_dir" && as_dir=.
5326    for ac_exec_ext in '' $ac_executable_extensions; do
5327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330    break 2
5331  fi
5332done
5333  done
5334IFS=$as_save_IFS
5335
5336fi
5337fi
5338DUMPBIN=$ac_cv_prog_DUMPBIN
5339if test -n "$DUMPBIN"; then
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5341$as_echo "$DUMPBIN" >&6; }
5342else
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
5345fi
5346
5347
5348    test -n "$DUMPBIN" && break
5349  done
5350fi
5351if test -z "$DUMPBIN"; then
5352  ac_ct_DUMPBIN=$DUMPBIN
5353  for ac_prog in dumpbin "link -dump"
5354do
5355  # Extract the first word of "$ac_prog", so it can be a program name with args.
5356set dummy $ac_prog; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$ac_ct_DUMPBIN"; then
5363  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5383if test -n "$ac_ct_DUMPBIN"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5385$as_echo "$ac_ct_DUMPBIN" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392  test -n "$ac_ct_DUMPBIN" && break
5393done
5394
5395  if test "x$ac_ct_DUMPBIN" = x; then
5396    DUMPBIN=":"
5397  else
5398    case $cross_compiling:$ac_tool_warned in
5399yes:)
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402ac_tool_warned=yes ;;
5403esac
5404    DUMPBIN=$ac_ct_DUMPBIN
5405  fi
5406fi
5407
5408    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5409    *COFF*)
5410      DUMPBIN="$DUMPBIN -symbols"
5411      ;;
5412    *)
5413      DUMPBIN=:
5414      ;;
5415    esac
5416  fi
5417
5418  if test "$DUMPBIN" != ":"; then
5419    NM="$DUMPBIN"
5420  fi
5421fi
5422test -z "$NM" && NM=nm
5423
5424
5425
5426
5427
5428
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5430$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5431if ${lt_cv_nm_interface+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  lt_cv_nm_interface="BSD nm"
5435  echo "int some_variable = 0;" > conftest.$ac_ext
5436  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5437  (eval "$ac_compile" 2>conftest.err)
5438  cat conftest.err >&5
5439  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5440  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5441  cat conftest.err >&5
5442  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5443  cat conftest.out >&5
5444  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5445    lt_cv_nm_interface="MS dumpbin"
5446  fi
5447  rm -f conftest*
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5450$as_echo "$lt_cv_nm_interface" >&6; }
5451
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5453$as_echo_n "checking whether ln -s works... " >&6; }
5454LN_S=$as_ln_s
5455if test "$LN_S" = "ln -s"; then
5456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5457$as_echo "yes" >&6; }
5458else
5459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5460$as_echo "no, using $LN_S" >&6; }
5461fi
5462
5463# find the maximum length of command line arguments
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5465$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5466if ${lt_cv_sys_max_cmd_len+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469    i=0
5470  teststring="ABCD"
5471
5472  case $build_os in
5473  msdosdjgpp*)
5474    # On DJGPP, this test can blow up pretty badly due to problems in libc
5475    # (any single argument exceeding 2000 bytes causes a buffer overrun
5476    # during glob expansion).  Even if it were fixed, the result of this
5477    # check would be larger than it should be.
5478    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5479    ;;
5480
5481  gnu*)
5482    # Under GNU Hurd, this test is not required because there is
5483    # no limit to the length of command line arguments.
5484    # Libtool will interpret -1 as no limit whatsoever
5485    lt_cv_sys_max_cmd_len=-1;
5486    ;;
5487
5488  cygwin* | mingw* | cegcc*)
5489    # On Win9x/ME, this test blows up -- it succeeds, but takes
5490    # about 5 minutes as the teststring grows exponentially.
5491    # Worse, since 9x/ME are not pre-emptively multitasking,
5492    # you end up with a "frozen" computer, even though with patience
5493    # the test eventually succeeds (with a max line length of 256k).
5494    # Instead, let's just punt: use the minimum linelength reported by
5495    # all of the supported platforms: 8192 (on NT/2K/XP).
5496    lt_cv_sys_max_cmd_len=8192;
5497    ;;
5498
5499  mint*)
5500    # On MiNT this can take a long time and run out of memory.
5501    lt_cv_sys_max_cmd_len=8192;
5502    ;;
5503
5504  amigaos*)
5505    # On AmigaOS with pdksh, this test takes hours, literally.
5506    # So we just punt and use a minimum line length of 8192.
5507    lt_cv_sys_max_cmd_len=8192;
5508    ;;
5509
5510  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5511    # This has been around since 386BSD, at least.  Likely further.
5512    if test -x /sbin/sysctl; then
5513      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5514    elif test -x /usr/sbin/sysctl; then
5515      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5516    else
5517      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5518    fi
5519    # And add a safety zone
5520    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5521    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5522    ;;
5523
5524  interix*)
5525    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5526    lt_cv_sys_max_cmd_len=196608
5527    ;;
5528
5529  os2*)
5530    # The test takes a long time on OS/2.
5531    lt_cv_sys_max_cmd_len=8192
5532    ;;
5533
5534  osf*)
5535    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5536    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5537    # nice to cause kernel panics so lets avoid the loop below.
5538    # First set a reasonable default.
5539    lt_cv_sys_max_cmd_len=16384
5540    #
5541    if test -x /sbin/sysconfig; then
5542      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5543        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5544      esac
5545    fi
5546    ;;
5547  sco3.2v5*)
5548    lt_cv_sys_max_cmd_len=102400
5549    ;;
5550  sysv5* | sco5v6* | sysv4.2uw2*)
5551    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5552    if test -n "$kargmax"; then
5553      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5554    else
5555      lt_cv_sys_max_cmd_len=32768
5556    fi
5557    ;;
5558  *)
5559    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5560    if test -n "$lt_cv_sys_max_cmd_len"; then
5561      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5562      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5563    else
5564      # Make teststring a little bigger before we do anything with it.
5565      # a 1K string should be a reasonable start.
5566      for i in 1 2 3 4 5 6 7 8 ; do
5567        teststring=$teststring$teststring
5568      done
5569      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5570      # If test is not a shell built-in, we'll probably end up computing a
5571      # maximum length that is only half of the actual maximum length, but
5572      # we can't tell.
5573      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5574	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5575	      test $i != 17 # 1/2 MB should be enough
5576      do
5577        i=`expr $i + 1`
5578        teststring=$teststring$teststring
5579      done
5580      # Only check the string length outside the loop.
5581      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5582      teststring=
5583      # Add a significant safety factor because C++ compilers can tack on
5584      # massive amounts of additional arguments before passing them to the
5585      # linker.  It appears as though 1/2 is a usable value.
5586      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5587    fi
5588    ;;
5589  esac
5590
5591fi
5592
5593if test -n $lt_cv_sys_max_cmd_len ; then
5594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5595$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5596else
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5598$as_echo "none" >&6; }
5599fi
5600max_cmd_len=$lt_cv_sys_max_cmd_len
5601
5602
5603
5604
5605
5606
5607: ${CP="cp -f"}
5608: ${MV="mv -f"}
5609: ${RM="rm -f"}
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5612$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5613# Try some XSI features
5614xsi_shell=no
5615( _lt_dummy="a/b/c"
5616  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5617      = c,a/b,b/c, \
5618    && eval 'test $(( 1 + 1 )) -eq 2 \
5619    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5620  && xsi_shell=yes
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5622$as_echo "$xsi_shell" >&6; }
5623
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5626$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5627lt_shell_append=no
5628( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5629    >/dev/null 2>&1 \
5630  && lt_shell_append=yes
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5632$as_echo "$lt_shell_append" >&6; }
5633
5634
5635if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5636  lt_unset=unset
5637else
5638  lt_unset=false
5639fi
5640
5641
5642
5643
5644
5645# test EBCDIC or ASCII
5646case `echo X|tr X '\101'` in
5647 A) # ASCII based system
5648    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5649  lt_SP2NL='tr \040 \012'
5650  lt_NL2SP='tr \015\012 \040\040'
5651  ;;
5652 *) # EBCDIC based system
5653  lt_SP2NL='tr \100 \n'
5654  lt_NL2SP='tr \r\n \100\100'
5655  ;;
5656esac
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5667$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5668if ${lt_cv_to_host_file_cmd+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  case $host in
5672  *-*-mingw* )
5673    case $build in
5674      *-*-mingw* ) # actually msys
5675        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5676        ;;
5677      *-*-cygwin* )
5678        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5679        ;;
5680      * ) # otherwise, assume *nix
5681        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5682        ;;
5683    esac
5684    ;;
5685  *-*-cygwin* )
5686    case $build in
5687      *-*-mingw* ) # actually msys
5688        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5689        ;;
5690      *-*-cygwin* )
5691        lt_cv_to_host_file_cmd=func_convert_file_noop
5692        ;;
5693      * ) # otherwise, assume *nix
5694        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5695        ;;
5696    esac
5697    ;;
5698  * ) # unhandled hosts (and "normal" native builds)
5699    lt_cv_to_host_file_cmd=func_convert_file_noop
5700    ;;
5701esac
5702
5703fi
5704
5705to_host_file_cmd=$lt_cv_to_host_file_cmd
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5707$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5708
5709
5710
5711
5712
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5714$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5715if ${lt_cv_to_tool_file_cmd+:} false; then :
5716  $as_echo_n "(cached) " >&6
5717else
5718  #assume ordinary cross tools, or native build.
5719lt_cv_to_tool_file_cmd=func_convert_file_noop
5720case $host in
5721  *-*-mingw* )
5722    case $build in
5723      *-*-mingw* ) # actually msys
5724        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5725        ;;
5726    esac
5727    ;;
5728esac
5729
5730fi
5731
5732to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5734$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5735
5736
5737
5738
5739
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5741$as_echo_n "checking for $LD option to reload object files... " >&6; }
5742if ${lt_cv_ld_reload_flag+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  lt_cv_ld_reload_flag='-r'
5746fi
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5748$as_echo "$lt_cv_ld_reload_flag" >&6; }
5749reload_flag=$lt_cv_ld_reload_flag
5750case $reload_flag in
5751"" | " "*) ;;
5752*) reload_flag=" $reload_flag" ;;
5753esac
5754reload_cmds='$LD$reload_flag -o $output$reload_objs'
5755case $host_os in
5756  cygwin* | mingw* | pw32* | cegcc*)
5757    if test "$GCC" != yes; then
5758      reload_cmds=false
5759    fi
5760    ;;
5761  darwin*)
5762    if test "$GCC" = yes; then
5763      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5764    else
5765      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5766    fi
5767    ;;
5768esac
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778if test -n "$ac_tool_prefix"; then
5779  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5780set dummy ${ac_tool_prefix}objdump; ac_word=$2
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782$as_echo_n "checking for $ac_word... " >&6; }
5783if ${ac_cv_prog_OBJDUMP+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  if test -n "$OBJDUMP"; then
5787  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792  IFS=$as_save_IFS
5793  test -z "$as_dir" && as_dir=.
5794    for ac_exec_ext in '' $ac_executable_extensions; do
5795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798    break 2
5799  fi
5800done
5801  done
5802IFS=$as_save_IFS
5803
5804fi
5805fi
5806OBJDUMP=$ac_cv_prog_OBJDUMP
5807if test -n "$OBJDUMP"; then
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5809$as_echo "$OBJDUMP" >&6; }
5810else
5811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813fi
5814
5815
5816fi
5817if test -z "$ac_cv_prog_OBJDUMP"; then
5818  ac_ct_OBJDUMP=$OBJDUMP
5819  # Extract the first word of "objdump", so it can be a program name with args.
5820set dummy objdump; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -n "$ac_ct_OBJDUMP"; then
5827  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834    for ac_exec_ext in '' $ac_executable_extensions; do
5835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841  done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5847if test -n "$ac_ct_OBJDUMP"; then
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5849$as_echo "$ac_ct_OBJDUMP" >&6; }
5850else
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855  if test "x$ac_ct_OBJDUMP" = x; then
5856    OBJDUMP="false"
5857  else
5858    case $cross_compiling:$ac_tool_warned in
5859yes:)
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862ac_tool_warned=yes ;;
5863esac
5864    OBJDUMP=$ac_ct_OBJDUMP
5865  fi
5866else
5867  OBJDUMP="$ac_cv_prog_OBJDUMP"
5868fi
5869
5870test -z "$OBJDUMP" && OBJDUMP=objdump
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5881$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5882if ${lt_cv_deplibs_check_method+:} false; then :
5883  $as_echo_n "(cached) " >&6
5884else
5885  lt_cv_file_magic_cmd='$MAGIC_CMD'
5886lt_cv_file_magic_test_file=
5887lt_cv_deplibs_check_method='unknown'
5888# Need to set the preceding variable on all platforms that support
5889# interlibrary dependencies.
5890# 'none' -- dependencies not supported.
5891# `unknown' -- same as none, but documents that we really don't know.
5892# 'pass_all' -- all dependencies passed with no checks.
5893# 'test_compile' -- check by making test program.
5894# 'file_magic [[regex]]' -- check by looking for files in library path
5895# which responds to the $file_magic_cmd with a given extended regex.
5896# If you have `file' or equivalent on your system and you're not sure
5897# whether `pass_all' will *always* work, you probably want this one.
5898
5899case $host_os in
5900aix[4-9]*)
5901  lt_cv_deplibs_check_method=pass_all
5902  ;;
5903
5904beos*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908bsdi[45]*)
5909  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5910  lt_cv_file_magic_cmd='/usr/bin/file -L'
5911  lt_cv_file_magic_test_file=/shlib/libc.so
5912  ;;
5913
5914cygwin*)
5915  # func_win32_libid is a shell function defined in ltmain.sh
5916  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5917  lt_cv_file_magic_cmd='func_win32_libid'
5918  ;;
5919
5920mingw* | pw32*)
5921  # Base MSYS/MinGW do not provide the 'file' command needed by
5922  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5923  # unless we find 'file', for example because we are cross-compiling.
5924  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5925  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5926    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5927    lt_cv_file_magic_cmd='func_win32_libid'
5928  else
5929    # Keep this pattern in sync with the one in func_win32_libid.
5930    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5931    lt_cv_file_magic_cmd='$OBJDUMP -f'
5932  fi
5933  ;;
5934
5935cegcc*)
5936  # use the weaker test based on 'objdump'. See mingw*.
5937  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5938  lt_cv_file_magic_cmd='$OBJDUMP -f'
5939  ;;
5940
5941darwin* | rhapsody*)
5942  lt_cv_deplibs_check_method=pass_all
5943  ;;
5944
5945freebsd* | dragonfly*)
5946  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5947    case $host_cpu in
5948    i*86 )
5949      # Not sure whether the presence of OpenBSD here was a mistake.
5950      # Let's accept both of them until this is cleared up.
5951      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5952      lt_cv_file_magic_cmd=/usr/bin/file
5953      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5954      ;;
5955    esac
5956  else
5957    lt_cv_deplibs_check_method=pass_all
5958  fi
5959  ;;
5960
5961gnu*)
5962  lt_cv_deplibs_check_method=pass_all
5963  ;;
5964
5965haiku*)
5966  lt_cv_deplibs_check_method=pass_all
5967  ;;
5968
5969hpux10.20* | hpux11*)
5970  lt_cv_file_magic_cmd=/usr/bin/file
5971  case $host_cpu in
5972  ia64*)
5973    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5974    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5975    ;;
5976  hppa*64*)
5977    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]'
5978    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5979    ;;
5980  *)
5981    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5982    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5983    ;;
5984  esac
5985  ;;
5986
5987interix[3-9]*)
5988  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5989  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5990  ;;
5991
5992irix5* | irix6* | nonstopux*)
5993  case $LD in
5994  *-32|*"-32 ") libmagic=32-bit;;
5995  *-n32|*"-n32 ") libmagic=N32;;
5996  *-64|*"-64 ") libmagic=64-bit;;
5997  *) libmagic=never-match;;
5998  esac
5999  lt_cv_deplibs_check_method=pass_all
6000  ;;
6001
6002# This must be glibc/ELF.
6003linux* | k*bsd*-gnu | kopensolaris*-gnu)
6004  lt_cv_deplibs_check_method=pass_all
6005  ;;
6006
6007netbsd* | netbsdelf*-gnu)
6008  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6009    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6010  else
6011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6012  fi
6013  ;;
6014
6015newos6*)
6016  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6017  lt_cv_file_magic_cmd=/usr/bin/file
6018  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6019  ;;
6020
6021*nto* | *qnx*)
6022  lt_cv_deplibs_check_method=pass_all
6023  ;;
6024
6025openbsd*)
6026  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6027    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6028  else
6029    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6030  fi
6031  ;;
6032
6033osf3* | osf4* | osf5*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037rdos*)
6038  lt_cv_deplibs_check_method=pass_all
6039  ;;
6040
6041solaris*)
6042  lt_cv_deplibs_check_method=pass_all
6043  ;;
6044
6045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6046  lt_cv_deplibs_check_method=pass_all
6047  ;;
6048
6049sysv4 | sysv4.3*)
6050  case $host_vendor in
6051  motorola)
6052    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]'
6053    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6054    ;;
6055  ncr)
6056    lt_cv_deplibs_check_method=pass_all
6057    ;;
6058  sequent)
6059    lt_cv_file_magic_cmd='/bin/file'
6060    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6061    ;;
6062  sni)
6063    lt_cv_file_magic_cmd='/bin/file'
6064    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6065    lt_cv_file_magic_test_file=/lib/libc.so
6066    ;;
6067  siemens)
6068    lt_cv_deplibs_check_method=pass_all
6069    ;;
6070  pc)
6071    lt_cv_deplibs_check_method=pass_all
6072    ;;
6073  esac
6074  ;;
6075
6076tpf*)
6077  lt_cv_deplibs_check_method=pass_all
6078  ;;
6079esac
6080
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6083$as_echo "$lt_cv_deplibs_check_method" >&6; }
6084
6085file_magic_glob=
6086want_nocaseglob=no
6087if test "$build" = "$host"; then
6088  case $host_os in
6089  mingw* | pw32*)
6090    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6091      want_nocaseglob=yes
6092    else
6093      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6094    fi
6095    ;;
6096  esac
6097fi
6098
6099file_magic_cmd=$lt_cv_file_magic_cmd
6100deplibs_check_method=$lt_cv_deplibs_check_method
6101test -z "$deplibs_check_method" && deplibs_check_method=unknown
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124if test -n "$ac_tool_prefix"; then
6125  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6126set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$DLLTOOL"; then
6133  ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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
6152DLLTOOL=$ac_cv_prog_DLLTOOL
6153if test -n "$DLLTOOL"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6155$as_echo "$DLLTOOL" >&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_DLLTOOL"; then
6164  ac_ct_DLLTOOL=$DLLTOOL
6165  # Extract the first word of "dlltool", so it can be a program name with args.
6166set dummy dlltool; 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_DLLTOOL+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  if test -n "$ac_ct_DLLTOOL"; then
6173  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6193if test -n "$ac_ct_DLLTOOL"; then
6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6195$as_echo "$ac_ct_DLLTOOL" >&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_DLLTOOL" = x; then
6202    DLLTOOL="false"
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    DLLTOOL=$ac_ct_DLLTOOL
6211  fi
6212else
6213  DLLTOOL="$ac_cv_prog_DLLTOOL"
6214fi
6215
6216test -z "$DLLTOOL" && DLLTOOL=dlltool
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6228$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6229if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  lt_cv_sharedlib_from_linklib_cmd='unknown'
6233
6234case $host_os in
6235cygwin* | mingw* | pw32* | cegcc*)
6236  # two different shell functions defined in ltmain.sh
6237  # decide which to use based on capabilities of $DLLTOOL
6238  case `$DLLTOOL --help 2>&1` in
6239  *--identify-strict*)
6240    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6241    ;;
6242  *)
6243    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6244    ;;
6245  esac
6246  ;;
6247*)
6248  # fallback: assume linklib IS sharedlib
6249  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6250  ;;
6251esac
6252
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6255$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6256sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6257test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6258
6259
6260
6261
6262
6263
6264
6265
6266if test -n "$ac_tool_prefix"; then
6267  for ac_prog in ar
6268  do
6269    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6270set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272$as_echo_n "checking for $ac_word... " >&6; }
6273if ${ac_cv_prog_AR+:} false; then :
6274  $as_echo_n "(cached) " >&6
6275else
6276  if test -n "$AR"; then
6277  ac_cv_prog_AR="$AR" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282  IFS=$as_save_IFS
6283  test -z "$as_dir" && as_dir=.
6284    for ac_exec_ext in '' $ac_executable_extensions; do
6285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288    break 2
6289  fi
6290done
6291  done
6292IFS=$as_save_IFS
6293
6294fi
6295fi
6296AR=$ac_cv_prog_AR
6297if test -n "$AR"; then
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6299$as_echo "$AR" >&6; }
6300else
6301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
6303fi
6304
6305
6306    test -n "$AR" && break
6307  done
6308fi
6309if test -z "$AR"; then
6310  ac_ct_AR=$AR
6311  for ac_prog in ar
6312do
6313  # Extract the first word of "$ac_prog", so it can be a program name with args.
6314set dummy $ac_prog; ac_word=$2
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316$as_echo_n "checking for $ac_word... " >&6; }
6317if ${ac_cv_prog_ac_ct_AR+:} false; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320  if test -n "$ac_ct_AR"; then
6321  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6322else
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326  IFS=$as_save_IFS
6327  test -z "$as_dir" && as_dir=.
6328    for ac_exec_ext in '' $ac_executable_extensions; do
6329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330    ac_cv_prog_ac_ct_AR="$ac_prog"
6331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332    break 2
6333  fi
6334done
6335  done
6336IFS=$as_save_IFS
6337
6338fi
6339fi
6340ac_ct_AR=$ac_cv_prog_ac_ct_AR
6341if test -n "$ac_ct_AR"; then
6342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6343$as_echo "$ac_ct_AR" >&6; }
6344else
6345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346$as_echo "no" >&6; }
6347fi
6348
6349
6350  test -n "$ac_ct_AR" && break
6351done
6352
6353  if test "x$ac_ct_AR" = x; then
6354    AR="false"
6355  else
6356    case $cross_compiling:$ac_tool_warned in
6357yes:)
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360ac_tool_warned=yes ;;
6361esac
6362    AR=$ac_ct_AR
6363  fi
6364fi
6365
6366: ${AR=ar}
6367: ${AR_FLAGS=cru}
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6380$as_echo_n "checking for archiver @FILE support... " >&6; }
6381if ${lt_cv_ar_at_file+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  lt_cv_ar_at_file=no
6385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387
6388int
6389main ()
6390{
6391
6392  ;
6393  return 0;
6394}
6395_ACEOF
6396if ac_fn_cxx_try_compile "$LINENO"; then :
6397  echo conftest.$ac_objext > conftest.lst
6398      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6399      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6400  (eval $lt_ar_try) 2>&5
6401  ac_status=$?
6402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403  test $ac_status = 0; }
6404      if test "$ac_status" -eq 0; then
6405	# Ensure the archiver fails upon bogus file names.
6406	rm -f conftest.$ac_objext libconftest.a
6407	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6408  (eval $lt_ar_try) 2>&5
6409  ac_status=$?
6410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411  test $ac_status = 0; }
6412	if test "$ac_status" -ne 0; then
6413          lt_cv_ar_at_file=@
6414        fi
6415      fi
6416      rm -f conftest.* libconftest.a
6417
6418fi
6419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6423$as_echo "$lt_cv_ar_at_file" >&6; }
6424
6425if test "x$lt_cv_ar_at_file" = xno; then
6426  archiver_list_spec=
6427else
6428  archiver_list_spec=$lt_cv_ar_at_file
6429fi
6430
6431
6432
6433
6434
6435
6436
6437if test -n "$ac_tool_prefix"; then
6438  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6439set dummy ${ac_tool_prefix}strip; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
6442if ${ac_cv_prog_STRIP+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  if test -n "$STRIP"; then
6446  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451  IFS=$as_save_IFS
6452  test -z "$as_dir" && as_dir=.
6453    for ac_exec_ext in '' $ac_executable_extensions; do
6454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457    break 2
6458  fi
6459done
6460  done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465STRIP=$ac_cv_prog_STRIP
6466if test -n "$STRIP"; then
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6468$as_echo "$STRIP" >&6; }
6469else
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474
6475fi
6476if test -z "$ac_cv_prog_STRIP"; then
6477  ac_ct_STRIP=$STRIP
6478  # Extract the first word of "strip", so it can be a program name with args.
6479set dummy strip; ac_word=$2
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481$as_echo_n "checking for $ac_word... " >&6; }
6482if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  if test -n "$ac_ct_STRIP"; then
6486  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491  IFS=$as_save_IFS
6492  test -z "$as_dir" && as_dir=.
6493    for ac_exec_ext in '' $ac_executable_extensions; do
6494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495    ac_cv_prog_ac_ct_STRIP="strip"
6496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497    break 2
6498  fi
6499done
6500  done
6501IFS=$as_save_IFS
6502
6503fi
6504fi
6505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6506if test -n "$ac_ct_STRIP"; then
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6508$as_echo "$ac_ct_STRIP" >&6; }
6509else
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
6512fi
6513
6514  if test "x$ac_ct_STRIP" = x; then
6515    STRIP=":"
6516  else
6517    case $cross_compiling:$ac_tool_warned in
6518yes:)
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521ac_tool_warned=yes ;;
6522esac
6523    STRIP=$ac_ct_STRIP
6524  fi
6525else
6526  STRIP="$ac_cv_prog_STRIP"
6527fi
6528
6529test -z "$STRIP" && STRIP=:
6530
6531
6532
6533
6534
6535
6536if test -n "$ac_tool_prefix"; then
6537  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6538set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if ${ac_cv_prog_RANLIB+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  if test -n "$RANLIB"; then
6545  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550  IFS=$as_save_IFS
6551  test -z "$as_dir" && as_dir=.
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564RANLIB=$ac_cv_prog_RANLIB
6565if test -n "$RANLIB"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6567$as_echo "$RANLIB" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573
6574fi
6575if test -z "$ac_cv_prog_RANLIB"; then
6576  ac_ct_RANLIB=$RANLIB
6577  # Extract the first word of "ranlib", so it can be a program name with args.
6578set dummy ranlib; ac_word=$2
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580$as_echo_n "checking for $ac_word... " >&6; }
6581if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6582  $as_echo_n "(cached) " >&6
6583else
6584  if test -n "$ac_ct_RANLIB"; then
6585  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6586else
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590  IFS=$as_save_IFS
6591  test -z "$as_dir" && as_dir=.
6592    for ac_exec_ext in '' $ac_executable_extensions; do
6593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594    ac_cv_prog_ac_ct_RANLIB="ranlib"
6595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596    break 2
6597  fi
6598done
6599  done
6600IFS=$as_save_IFS
6601
6602fi
6603fi
6604ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6605if test -n "$ac_ct_RANLIB"; then
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6607$as_echo "$ac_ct_RANLIB" >&6; }
6608else
6609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610$as_echo "no" >&6; }
6611fi
6612
6613  if test "x$ac_ct_RANLIB" = x; then
6614    RANLIB=":"
6615  else
6616    case $cross_compiling:$ac_tool_warned in
6617yes:)
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620ac_tool_warned=yes ;;
6621esac
6622    RANLIB=$ac_ct_RANLIB
6623  fi
6624else
6625  RANLIB="$ac_cv_prog_RANLIB"
6626fi
6627
6628test -z "$RANLIB" && RANLIB=:
6629
6630
6631
6632
6633
6634
6635# Determine commands to create old-style static archives.
6636old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6637old_postinstall_cmds='chmod 644 $oldlib'
6638old_postuninstall_cmds=
6639
6640if test -n "$RANLIB"; then
6641  case $host_os in
6642  openbsd*)
6643    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6644    ;;
6645  *)
6646    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6647    ;;
6648  esac
6649  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6650fi
6651
6652case $host_os in
6653  darwin*)
6654    lock_old_archive_extraction=yes ;;
6655  *)
6656    lock_old_archive_extraction=no ;;
6657esac
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
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# If no C compiler was specified, use CC.
6698LTCC=${LTCC-"$CC"}
6699
6700# If no C compiler flags were specified, use CFLAGS.
6701LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6702
6703# Allow CC to be a program name with arguments.
6704compiler=$CC
6705
6706
6707# Check for command to grab the raw symbol name followed by C symbol from nm.
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6709$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6710if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713
6714# These are sane defaults that work on at least a few old systems.
6715# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6716
6717# Character class describing NM global symbol codes.
6718symcode='[BCDEGRST]'
6719
6720# Regexp to match symbols that can be accessed directly from C.
6721sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6722
6723# Define system-specific variables.
6724case $host_os in
6725aix*)
6726  symcode='[BCDT]'
6727  ;;
6728cygwin* | mingw* | pw32* | cegcc*)
6729  symcode='[ABCDGISTW]'
6730  ;;
6731hpux*)
6732  if test "$host_cpu" = ia64; then
6733    symcode='[ABCDEGRST]'
6734  fi
6735  ;;
6736irix* | nonstopux*)
6737  symcode='[BCDEGRST]'
6738  ;;
6739osf*)
6740  symcode='[BCDEGQRST]'
6741  ;;
6742solaris*)
6743  symcode='[BDRT]'
6744  ;;
6745sco3.2v5*)
6746  symcode='[DT]'
6747  ;;
6748sysv4.2uw2*)
6749  symcode='[DT]'
6750  ;;
6751sysv5* | sco5v6* | unixware* | OpenUNIX*)
6752  symcode='[ABDT]'
6753  ;;
6754sysv4)
6755  symcode='[DFNSTU]'
6756  ;;
6757esac
6758
6759# If we're using GNU nm, then use its standard symbol codes.
6760case `$NM -V 2>&1` in
6761*GNU* | *'with BFD'*)
6762  symcode='[ABCDGIRSTW]' ;;
6763esac
6764
6765# Transform an extracted symbol line into a proper C declaration.
6766# Some systems (esp. on ia64) link data and code symbols differently,
6767# so use this general approach.
6768lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6769
6770# Transform an extracted symbol line into symbol name and symbol address
6771lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6772lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6773
6774# Handle CRLF in mingw tool chain
6775opt_cr=
6776case $build_os in
6777mingw*)
6778  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6779  ;;
6780esac
6781
6782# Try without a prefix underscore, then with it.
6783for ac_symprfx in "" "_"; do
6784
6785  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6786  symxfrm="\\1 $ac_symprfx\\2 \\2"
6787
6788  # Write the raw and C identifiers.
6789  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6790    # Fake it for dumpbin and say T for any non-static function
6791    # and D for any global variable.
6792    # Also find C++ and __fastcall symbols from MSVC++,
6793    # which start with @ or ?.
6794    lt_cv_sys_global_symbol_pipe="$AWK '"\
6795"     {last_section=section; section=\$ 3};"\
6796"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6797"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6798"     \$ 0!~/External *\|/{next};"\
6799"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6800"     {if(hide[section]) next};"\
6801"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6802"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6803"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6804"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6805"     ' prfx=^$ac_symprfx"
6806  else
6807    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6808  fi
6809  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6810
6811  # Check to see that the pipe works correctly.
6812  pipe_works=no
6813
6814  rm -f conftest*
6815  cat > conftest.$ac_ext <<_LT_EOF
6816#ifdef __cplusplus
6817extern "C" {
6818#endif
6819char nm_test_var;
6820void nm_test_func(void);
6821void nm_test_func(void){}
6822#ifdef __cplusplus
6823}
6824#endif
6825int main(){nm_test_var='a';nm_test_func();return(0);}
6826_LT_EOF
6827
6828  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829  (eval $ac_compile) 2>&5
6830  ac_status=$?
6831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832  test $ac_status = 0; }; then
6833    # Now try to grab the symbols.
6834    nlist=conftest.nm
6835    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6836  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6837  ac_status=$?
6838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839  test $ac_status = 0; } && test -s "$nlist"; then
6840      # Try sorting and uniquifying the output.
6841      if sort "$nlist" | uniq > "$nlist"T; then
6842	mv -f "$nlist"T "$nlist"
6843      else
6844	rm -f "$nlist"T
6845      fi
6846
6847      # Make sure that we snagged all the symbols we need.
6848      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6849	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6850	  cat <<_LT_EOF > conftest.$ac_ext
6851/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6852#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6853/* DATA imports from DLLs on WIN32 con't be const, because runtime
6854   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6855# define LT_DLSYM_CONST
6856#elif defined(__osf__)
6857/* This system does not cope well with relocations in const data.  */
6858# define LT_DLSYM_CONST
6859#else
6860# define LT_DLSYM_CONST const
6861#endif
6862
6863#ifdef __cplusplus
6864extern "C" {
6865#endif
6866
6867_LT_EOF
6868	  # Now generate the symbol file.
6869	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6870
6871	  cat <<_LT_EOF >> conftest.$ac_ext
6872
6873/* The mapping between symbol names and symbols.  */
6874LT_DLSYM_CONST struct {
6875  const char *name;
6876  void       *address;
6877}
6878lt__PROGRAM__LTX_preloaded_symbols[] =
6879{
6880  { "@PROGRAM@", (void *) 0 },
6881_LT_EOF
6882	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6883	  cat <<\_LT_EOF >> conftest.$ac_ext
6884  {0, (void *) 0}
6885};
6886
6887/* This works around a problem in FreeBSD linker */
6888#ifdef FREEBSD_WORKAROUND
6889static const void *lt_preloaded_setup() {
6890  return lt__PROGRAM__LTX_preloaded_symbols;
6891}
6892#endif
6893
6894#ifdef __cplusplus
6895}
6896#endif
6897_LT_EOF
6898	  # Now try linking the two files.
6899	  mv conftest.$ac_objext conftstm.$ac_objext
6900	  lt_globsym_save_LIBS=$LIBS
6901	  lt_globsym_save_CFLAGS=$CFLAGS
6902	  LIBS="conftstm.$ac_objext"
6903	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6904	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6905  (eval $ac_link) 2>&5
6906  ac_status=$?
6907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6909	    pipe_works=yes
6910	  fi
6911	  LIBS=$lt_globsym_save_LIBS
6912	  CFLAGS=$lt_globsym_save_CFLAGS
6913	else
6914	  echo "cannot find nm_test_func in $nlist" >&5
6915	fi
6916      else
6917	echo "cannot find nm_test_var in $nlist" >&5
6918      fi
6919    else
6920      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6921    fi
6922  else
6923    echo "$progname: failed program was:" >&5
6924    cat conftest.$ac_ext >&5
6925  fi
6926  rm -rf conftest* conftst*
6927
6928  # Do not use the global_symbol_pipe unless it works.
6929  if test "$pipe_works" = yes; then
6930    break
6931  else
6932    lt_cv_sys_global_symbol_pipe=
6933  fi
6934done
6935
6936fi
6937
6938if test -z "$lt_cv_sys_global_symbol_pipe"; then
6939  lt_cv_sys_global_symbol_to_cdecl=
6940fi
6941if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6943$as_echo "failed" >&6; }
6944else
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6946$as_echo "ok" >&6; }
6947fi
6948
6949# Response file support.
6950if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6951  nm_file_list_spec='@'
6952elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6953  nm_file_list_spec='@'
6954fi
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6983$as_echo_n "checking for sysroot... " >&6; }
6984
6985# Check whether --with-sysroot was given.
6986if test "${with_sysroot+set}" = set; then :
6987  withval=$with_sysroot;
6988else
6989  with_sysroot=no
6990fi
6991
6992
6993lt_sysroot=
6994case ${with_sysroot} in #(
6995 yes)
6996   if test "$GCC" = yes; then
6997     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6998   fi
6999   ;; #(
7000 /*)
7001   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7002   ;; #(
7003 no|'')
7004   ;; #(
7005 *)
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7007$as_echo "${with_sysroot}" >&6; }
7008   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7009   ;;
7010esac
7011
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7013$as_echo "${lt_sysroot:-no}" >&6; }
7014
7015
7016
7017
7018
7019# Check whether --enable-libtool-lock was given.
7020if test "${enable_libtool_lock+set}" = set; then :
7021  enableval=$enable_libtool_lock;
7022fi
7023
7024test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7025
7026# Some flags need to be propagated to the compiler or linker for good
7027# libtool support.
7028case $host in
7029ia64-*-hpux*)
7030  # Find out which ABI we are using.
7031  echo 'int i;' > conftest.$ac_ext
7032  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7033  (eval $ac_compile) 2>&5
7034  ac_status=$?
7035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036  test $ac_status = 0; }; then
7037    case `/usr/bin/file conftest.$ac_objext` in
7038      *ELF-32*)
7039	HPUX_IA64_MODE="32"
7040	;;
7041      *ELF-64*)
7042	HPUX_IA64_MODE="64"
7043	;;
7044    esac
7045  fi
7046  rm -rf conftest*
7047  ;;
7048*-*-irix6*)
7049  # Find out which ABI we are using.
7050  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7051  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7052  (eval $ac_compile) 2>&5
7053  ac_status=$?
7054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055  test $ac_status = 0; }; then
7056    if test "$lt_cv_prog_gnu_ld" = yes; then
7057      case `/usr/bin/file conftest.$ac_objext` in
7058	*32-bit*)
7059	  LD="${LD-ld} -melf32bsmip"
7060	  ;;
7061	*N32*)
7062	  LD="${LD-ld} -melf32bmipn32"
7063	  ;;
7064	*64-bit*)
7065	  LD="${LD-ld} -melf64bmip"
7066	;;
7067      esac
7068    else
7069      case `/usr/bin/file conftest.$ac_objext` in
7070	*32-bit*)
7071	  LD="${LD-ld} -32"
7072	  ;;
7073	*N32*)
7074	  LD="${LD-ld} -n32"
7075	  ;;
7076	*64-bit*)
7077	  LD="${LD-ld} -64"
7078	  ;;
7079      esac
7080    fi
7081  fi
7082  rm -rf conftest*
7083  ;;
7084
7085x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7086s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7087  # Find out which ABI we are using.
7088  echo 'int i;' > conftest.$ac_ext
7089  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090  (eval $ac_compile) 2>&5
7091  ac_status=$?
7092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093  test $ac_status = 0; }; then
7094    case `/usr/bin/file conftest.o` in
7095      *32-bit*)
7096	case $host in
7097	  x86_64-*kfreebsd*-gnu)
7098	    LD="${LD-ld} -m elf_i386_fbsd"
7099	    ;;
7100	  x86_64-*linux*)
7101	    LD="${LD-ld} -m elf_i386"
7102	    ;;
7103	  ppc64-*linux*|powerpc64-*linux*)
7104	    LD="${LD-ld} -m elf32ppclinux"
7105	    ;;
7106	  s390x-*linux*)
7107	    LD="${LD-ld} -m elf_s390"
7108	    ;;
7109	  sparc64-*linux*)
7110	    LD="${LD-ld} -m elf32_sparc"
7111	    ;;
7112	esac
7113	;;
7114      *64-bit*)
7115	case $host in
7116	  x86_64-*kfreebsd*-gnu)
7117	    LD="${LD-ld} -m elf_x86_64_fbsd"
7118	    ;;
7119	  x86_64-*linux*)
7120	    LD="${LD-ld} -m elf_x86_64"
7121	    ;;
7122	  ppc*-*linux*|powerpc*-*linux*)
7123	    LD="${LD-ld} -m elf64ppc"
7124	    ;;
7125	  s390*-*linux*|s390*-*tpf*)
7126	    LD="${LD-ld} -m elf64_s390"
7127	    ;;
7128	  sparc*-*linux*)
7129	    LD="${LD-ld} -m elf64_sparc"
7130	    ;;
7131	esac
7132	;;
7133    esac
7134  fi
7135  rm -rf conftest*
7136  ;;
7137
7138*-*-sco3.2v5*)
7139  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7140  SAVE_CFLAGS="$CFLAGS"
7141  CFLAGS="$CFLAGS -belf"
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7143$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7144if ${lt_cv_cc_needs_belf+:} false; then :
7145  $as_echo_n "(cached) " >&6
7146else
7147  ac_ext=c
7148ac_cpp='$CPP $CPPFLAGS'
7149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151ac_compiler_gnu=$ac_cv_c_compiler_gnu
7152
7153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h.  */
7155
7156int
7157main ()
7158{
7159
7160  ;
7161  return 0;
7162}
7163_ACEOF
7164if ac_fn_c_try_link "$LINENO"; then :
7165  lt_cv_cc_needs_belf=yes
7166else
7167  lt_cv_cc_needs_belf=no
7168fi
7169rm -f core conftest.err conftest.$ac_objext \
7170    conftest$ac_exeext conftest.$ac_ext
7171     ac_ext=c
7172ac_cpp='$CPP $CPPFLAGS'
7173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7179$as_echo "$lt_cv_cc_needs_belf" >&6; }
7180  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7181    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7182    CFLAGS="$SAVE_CFLAGS"
7183  fi
7184  ;;
7185*-*solaris*)
7186  # Find out which ABI we are using.
7187  echo 'int i;' > conftest.$ac_ext
7188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189  (eval $ac_compile) 2>&5
7190  ac_status=$?
7191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192  test $ac_status = 0; }; then
7193    case `/usr/bin/file conftest.o` in
7194    *64-bit*)
7195      case $lt_cv_prog_gnu_ld in
7196      yes*)
7197        case $host in
7198        i?86-*-solaris*)
7199          LD="${LD-ld} -m elf_x86_64"
7200          ;;
7201        sparc*-*-solaris*)
7202          LD="${LD-ld} -m elf64_sparc"
7203          ;;
7204        esac
7205        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7206        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7207          LD="${LD-ld}_sol2"
7208        fi
7209        ;;
7210      *)
7211	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7212	  LD="${LD-ld} -64"
7213	fi
7214	;;
7215      esac
7216      ;;
7217    esac
7218  fi
7219  rm -rf conftest*
7220  ;;
7221esac
7222
7223need_locks="$enable_libtool_lock"
7224
7225if test -n "$ac_tool_prefix"; then
7226  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7227set dummy ${ac_tool_prefix}mt; ac_word=$2
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  if test -n "$MANIFEST_TOOL"; then
7234  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239  IFS=$as_save_IFS
7240  test -z "$as_dir" && as_dir=.
7241    for ac_exec_ext in '' $ac_executable_extensions; do
7242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245    break 2
7246  fi
7247done
7248  done
7249IFS=$as_save_IFS
7250
7251fi
7252fi
7253MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7254if test -n "$MANIFEST_TOOL"; then
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7256$as_echo "$MANIFEST_TOOL" >&6; }
7257else
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
7260fi
7261
7262
7263fi
7264if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7265  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7266  # Extract the first word of "mt", so it can be a program name with args.
7267set dummy mt; ac_word=$2
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269$as_echo_n "checking for $ac_word... " >&6; }
7270if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$ac_ct_MANIFEST_TOOL"; then
7274  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7294if test -n "$ac_ct_MANIFEST_TOOL"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7296$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7303    MANIFEST_TOOL=":"
7304  else
7305    case $cross_compiling:$ac_tool_warned in
7306yes:)
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309ac_tool_warned=yes ;;
7310esac
7311    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7312  fi
7313else
7314  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7315fi
7316
7317test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7319$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7320if ${lt_cv_path_mainfest_tool+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  lt_cv_path_mainfest_tool=no
7324  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7325  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7326  cat conftest.err >&5
7327  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7328    lt_cv_path_mainfest_tool=yes
7329  fi
7330  rm -f conftest*
7331fi
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7333$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7334if test "x$lt_cv_path_mainfest_tool" != xyes; then
7335  MANIFEST_TOOL=:
7336fi
7337
7338
7339
7340
7341
7342
7343  case $host_os in
7344    rhapsody* | darwin*)
7345    if test -n "$ac_tool_prefix"; then
7346  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7347set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349$as_echo_n "checking for $ac_word... " >&6; }
7350if ${ac_cv_prog_DSYMUTIL+:} false; then :
7351  $as_echo_n "(cached) " >&6
7352else
7353  if test -n "$DSYMUTIL"; then
7354  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7355else
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359  IFS=$as_save_IFS
7360  test -z "$as_dir" && as_dir=.
7361    for ac_exec_ext in '' $ac_executable_extensions; do
7362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365    break 2
7366  fi
7367done
7368  done
7369IFS=$as_save_IFS
7370
7371fi
7372fi
7373DSYMUTIL=$ac_cv_prog_DSYMUTIL
7374if test -n "$DSYMUTIL"; then
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7376$as_echo "$DSYMUTIL" >&6; }
7377else
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379$as_echo "no" >&6; }
7380fi
7381
7382
7383fi
7384if test -z "$ac_cv_prog_DSYMUTIL"; then
7385  ac_ct_DSYMUTIL=$DSYMUTIL
7386  # Extract the first word of "dsymutil", so it can be a program name with args.
7387set dummy dsymutil; ac_word=$2
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389$as_echo_n "checking for $ac_word... " >&6; }
7390if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7391  $as_echo_n "(cached) " >&6
7392else
7393  if test -n "$ac_ct_DSYMUTIL"; then
7394  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7395else
7396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399  IFS=$as_save_IFS
7400  test -z "$as_dir" && as_dir=.
7401    for ac_exec_ext in '' $ac_executable_extensions; do
7402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405    break 2
7406  fi
7407done
7408  done
7409IFS=$as_save_IFS
7410
7411fi
7412fi
7413ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7414if test -n "$ac_ct_DSYMUTIL"; then
7415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7416$as_echo "$ac_ct_DSYMUTIL" >&6; }
7417else
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419$as_echo "no" >&6; }
7420fi
7421
7422  if test "x$ac_ct_DSYMUTIL" = x; then
7423    DSYMUTIL=":"
7424  else
7425    case $cross_compiling:$ac_tool_warned in
7426yes:)
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429ac_tool_warned=yes ;;
7430esac
7431    DSYMUTIL=$ac_ct_DSYMUTIL
7432  fi
7433else
7434  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7435fi
7436
7437    if test -n "$ac_tool_prefix"; then
7438  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7439set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
7442if ${ac_cv_prog_NMEDIT+:} false; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  if test -n "$NMEDIT"; then
7446  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451  IFS=$as_save_IFS
7452  test -z "$as_dir" && as_dir=.
7453    for ac_exec_ext in '' $ac_executable_extensions; do
7454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457    break 2
7458  fi
7459done
7460  done
7461IFS=$as_save_IFS
7462
7463fi
7464fi
7465NMEDIT=$ac_cv_prog_NMEDIT
7466if test -n "$NMEDIT"; then
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7468$as_echo "$NMEDIT" >&6; }
7469else
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
7472fi
7473
7474
7475fi
7476if test -z "$ac_cv_prog_NMEDIT"; then
7477  ac_ct_NMEDIT=$NMEDIT
7478  # Extract the first word of "nmedit", so it can be a program name with args.
7479set dummy nmedit; ac_word=$2
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481$as_echo_n "checking for $ac_word... " >&6; }
7482if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7483  $as_echo_n "(cached) " >&6
7484else
7485  if test -n "$ac_ct_NMEDIT"; then
7486  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491  IFS=$as_save_IFS
7492  test -z "$as_dir" && as_dir=.
7493    for ac_exec_ext in '' $ac_executable_extensions; do
7494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497    break 2
7498  fi
7499done
7500  done
7501IFS=$as_save_IFS
7502
7503fi
7504fi
7505ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7506if test -n "$ac_ct_NMEDIT"; then
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7508$as_echo "$ac_ct_NMEDIT" >&6; }
7509else
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511$as_echo "no" >&6; }
7512fi
7513
7514  if test "x$ac_ct_NMEDIT" = x; then
7515    NMEDIT=":"
7516  else
7517    case $cross_compiling:$ac_tool_warned in
7518yes:)
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521ac_tool_warned=yes ;;
7522esac
7523    NMEDIT=$ac_ct_NMEDIT
7524  fi
7525else
7526  NMEDIT="$ac_cv_prog_NMEDIT"
7527fi
7528
7529    if test -n "$ac_tool_prefix"; then
7530  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7531set dummy ${ac_tool_prefix}lipo; ac_word=$2
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533$as_echo_n "checking for $ac_word... " >&6; }
7534if ${ac_cv_prog_LIPO+:} false; then :
7535  $as_echo_n "(cached) " >&6
7536else
7537  if test -n "$LIPO"; then
7538  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7539else
7540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543  IFS=$as_save_IFS
7544  test -z "$as_dir" && as_dir=.
7545    for ac_exec_ext in '' $ac_executable_extensions; do
7546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549    break 2
7550  fi
7551done
7552  done
7553IFS=$as_save_IFS
7554
7555fi
7556fi
7557LIPO=$ac_cv_prog_LIPO
7558if test -n "$LIPO"; then
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7560$as_echo "$LIPO" >&6; }
7561else
7562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563$as_echo "no" >&6; }
7564fi
7565
7566
7567fi
7568if test -z "$ac_cv_prog_LIPO"; then
7569  ac_ct_LIPO=$LIPO
7570  # Extract the first word of "lipo", so it can be a program name with args.
7571set dummy lipo; ac_word=$2
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573$as_echo_n "checking for $ac_word... " >&6; }
7574if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  if test -n "$ac_ct_LIPO"; then
7578  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583  IFS=$as_save_IFS
7584  test -z "$as_dir" && as_dir=.
7585    for ac_exec_ext in '' $ac_executable_extensions; do
7586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587    ac_cv_prog_ac_ct_LIPO="lipo"
7588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589    break 2
7590  fi
7591done
7592  done
7593IFS=$as_save_IFS
7594
7595fi
7596fi
7597ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7598if test -n "$ac_ct_LIPO"; then
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7600$as_echo "$ac_ct_LIPO" >&6; }
7601else
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
7604fi
7605
7606  if test "x$ac_ct_LIPO" = x; then
7607    LIPO=":"
7608  else
7609    case $cross_compiling:$ac_tool_warned in
7610yes:)
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613ac_tool_warned=yes ;;
7614esac
7615    LIPO=$ac_ct_LIPO
7616  fi
7617else
7618  LIPO="$ac_cv_prog_LIPO"
7619fi
7620
7621    if test -n "$ac_tool_prefix"; then
7622  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7623set dummy ${ac_tool_prefix}otool; ac_word=$2
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
7626if ${ac_cv_prog_OTOOL+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  if test -n "$OTOOL"; then
7630  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7631else
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635  IFS=$as_save_IFS
7636  test -z "$as_dir" && as_dir=.
7637    for ac_exec_ext in '' $ac_executable_extensions; do
7638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641    break 2
7642  fi
7643done
7644  done
7645IFS=$as_save_IFS
7646
7647fi
7648fi
7649OTOOL=$ac_cv_prog_OTOOL
7650if test -n "$OTOOL"; then
7651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7652$as_echo "$OTOOL" >&6; }
7653else
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
7656fi
7657
7658
7659fi
7660if test -z "$ac_cv_prog_OTOOL"; then
7661  ac_ct_OTOOL=$OTOOL
7662  # Extract the first word of "otool", so it can be a program name with args.
7663set dummy otool; ac_word=$2
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
7666if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  if test -n "$ac_ct_OTOOL"; then
7670  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675  IFS=$as_save_IFS
7676  test -z "$as_dir" && as_dir=.
7677    for ac_exec_ext in '' $ac_executable_extensions; do
7678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679    ac_cv_prog_ac_ct_OTOOL="otool"
7680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681    break 2
7682  fi
7683done
7684  done
7685IFS=$as_save_IFS
7686
7687fi
7688fi
7689ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7690if test -n "$ac_ct_OTOOL"; then
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7692$as_echo "$ac_ct_OTOOL" >&6; }
7693else
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
7696fi
7697
7698  if test "x$ac_ct_OTOOL" = x; then
7699    OTOOL=":"
7700  else
7701    case $cross_compiling:$ac_tool_warned in
7702yes:)
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7705ac_tool_warned=yes ;;
7706esac
7707    OTOOL=$ac_ct_OTOOL
7708  fi
7709else
7710  OTOOL="$ac_cv_prog_OTOOL"
7711fi
7712
7713    if test -n "$ac_tool_prefix"; then
7714  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7715set dummy ${ac_tool_prefix}otool64; ac_word=$2
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
7718if ${ac_cv_prog_OTOOL64+:} false; then :
7719  $as_echo_n "(cached) " >&6
7720else
7721  if test -n "$OTOOL64"; then
7722  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729    for ac_exec_ext in '' $ac_executable_extensions; do
7730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736  done
7737IFS=$as_save_IFS
7738
7739fi
7740fi
7741OTOOL64=$ac_cv_prog_OTOOL64
7742if test -n "$OTOOL64"; then
7743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7744$as_echo "$OTOOL64" >&6; }
7745else
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
7748fi
7749
7750
7751fi
7752if test -z "$ac_cv_prog_OTOOL64"; then
7753  ac_ct_OTOOL64=$OTOOL64
7754  # Extract the first word of "otool64", so it can be a program name with args.
7755set dummy otool64; ac_word=$2
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757$as_echo_n "checking for $ac_word... " >&6; }
7758if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  if test -n "$ac_ct_OTOOL64"; then
7762  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767  IFS=$as_save_IFS
7768  test -z "$as_dir" && as_dir=.
7769    for ac_exec_ext in '' $ac_executable_extensions; do
7770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771    ac_cv_prog_ac_ct_OTOOL64="otool64"
7772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776  done
7777IFS=$as_save_IFS
7778
7779fi
7780fi
7781ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7782if test -n "$ac_ct_OTOOL64"; then
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7784$as_echo "$ac_ct_OTOOL64" >&6; }
7785else
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787$as_echo "no" >&6; }
7788fi
7789
7790  if test "x$ac_ct_OTOOL64" = x; then
7791    OTOOL64=":"
7792  else
7793    case $cross_compiling:$ac_tool_warned in
7794yes:)
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797ac_tool_warned=yes ;;
7798esac
7799    OTOOL64=$ac_ct_OTOOL64
7800  fi
7801else
7802  OTOOL64="$ac_cv_prog_OTOOL64"
7803fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7832$as_echo_n "checking for -single_module linker flag... " >&6; }
7833if ${lt_cv_apple_cc_single_mod+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  lt_cv_apple_cc_single_mod=no
7837      if test -z "${LT_MULTI_MODULE}"; then
7838	# By default we will add the -single_module flag. You can override
7839	# by either setting the environment variable LT_MULTI_MODULE
7840	# non-empty at configure time, or by adding -multi_module to the
7841	# link flags.
7842	rm -rf libconftest.dylib*
7843	echo "int foo(void){return 1;}" > conftest.c
7844	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7845-dynamiclib -Wl,-single_module conftest.c" >&5
7846	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7847	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7848        _lt_result=$?
7849	# If there is a non-empty error log, and "single_module"
7850	# appears in it, assume the flag caused a linker warning
7851        if test -s conftest.err && $GREP single_module conftest.err; then
7852	  cat conftest.err >&5
7853	# Otherwise, if the output was created with a 0 exit code from
7854	# the compiler, it worked.
7855	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7856	  lt_cv_apple_cc_single_mod=yes
7857	else
7858	  cat conftest.err >&5
7859	fi
7860	rm -rf libconftest.dylib*
7861	rm -f conftest.*
7862      fi
7863fi
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7865$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7866
7867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7868$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7869if ${lt_cv_ld_exported_symbols_list+:} false; then :
7870  $as_echo_n "(cached) " >&6
7871else
7872  lt_cv_ld_exported_symbols_list=no
7873      save_LDFLAGS=$LDFLAGS
7874      echo "_main" > conftest.sym
7875      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7876      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878
7879int
7880main ()
7881{
7882
7883  ;
7884  return 0;
7885}
7886_ACEOF
7887if ac_fn_c_try_link "$LINENO"; then :
7888  lt_cv_ld_exported_symbols_list=yes
7889else
7890  lt_cv_ld_exported_symbols_list=no
7891fi
7892rm -f core conftest.err conftest.$ac_objext \
7893    conftest$ac_exeext conftest.$ac_ext
7894	LDFLAGS="$save_LDFLAGS"
7895
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7898$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7899
7900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7901$as_echo_n "checking for -force_load linker flag... " >&6; }
7902if ${lt_cv_ld_force_load+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  lt_cv_ld_force_load=no
7906      cat > conftest.c << _LT_EOF
7907int forced_loaded() { return 2;}
7908_LT_EOF
7909      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7910      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7911      echo "$AR cru libconftest.a conftest.o" >&5
7912      $AR cru libconftest.a conftest.o 2>&5
7913      echo "$RANLIB libconftest.a" >&5
7914      $RANLIB libconftest.a 2>&5
7915      cat > conftest.c << _LT_EOF
7916int main() { return 0;}
7917_LT_EOF
7918      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7919      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7920      _lt_result=$?
7921      if test -s conftest.err && $GREP force_load conftest.err; then
7922	cat conftest.err >&5
7923      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7924	lt_cv_ld_force_load=yes
7925      else
7926	cat conftest.err >&5
7927      fi
7928        rm -f conftest.err libconftest.a conftest conftest.c
7929        rm -rf conftest.dSYM
7930
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7933$as_echo "$lt_cv_ld_force_load" >&6; }
7934    case $host_os in
7935    rhapsody* | darwin1.[012])
7936      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7937    darwin1.*)
7938      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7939    darwin*) # darwin 5.x on
7940      # if running on 10.5 or later, the deployment target defaults
7941      # to the OS version, if on x86, and 10.4, the deployment
7942      # target defaults to 10.4. Don't you love it?
7943      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7944	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7945	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7946	10.[012]*)
7947	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948	10.*)
7949	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7950      esac
7951    ;;
7952  esac
7953    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7954      _lt_dar_single_mod='$single_module'
7955    fi
7956    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7957      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7958    else
7959      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7960    fi
7961    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7962      _lt_dsymutil='~$DSYMUTIL $lib || :'
7963    else
7964      _lt_dsymutil=
7965    fi
7966    ;;
7967  esac
7968
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7970$as_echo_n "checking for ANSI C header files... " >&6; }
7971if ${ac_cv_header_stdc+:} false; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975/* end confdefs.h.  */
7976#include <stdlib.h>
7977#include <stdarg.h>
7978#include <string.h>
7979#include <float.h>
7980
7981int
7982main ()
7983{
7984
7985  ;
7986  return 0;
7987}
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"; then :
7990  ac_cv_header_stdc=yes
7991else
7992  ac_cv_header_stdc=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995
7996if test $ac_cv_header_stdc = yes; then
7997  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000#include <string.h>
8001
8002_ACEOF
8003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004  $EGREP "memchr" >/dev/null 2>&1; then :
8005
8006else
8007  ac_cv_header_stdc=no
8008fi
8009rm -f conftest*
8010
8011fi
8012
8013if test $ac_cv_header_stdc = yes; then
8014  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h.  */
8017#include <stdlib.h>
8018
8019_ACEOF
8020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8021  $EGREP "free" >/dev/null 2>&1; then :
8022
8023else
8024  ac_cv_header_stdc=no
8025fi
8026rm -f conftest*
8027
8028fi
8029
8030if test $ac_cv_header_stdc = yes; then
8031  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8032  if test "$cross_compiling" = yes; then :
8033  :
8034else
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037#include <ctype.h>
8038#include <stdlib.h>
8039#if ((' ' & 0x0FF) == 0x020)
8040# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8041# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8042#else
8043# define ISLOWER(c) \
8044		   (('a' <= (c) && (c) <= 'i') \
8045		     || ('j' <= (c) && (c) <= 'r') \
8046		     || ('s' <= (c) && (c) <= 'z'))
8047# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8048#endif
8049
8050#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8051int
8052main ()
8053{
8054  int i;
8055  for (i = 0; i < 256; i++)
8056    if (XOR (islower (i), ISLOWER (i))
8057	|| toupper (i) != TOUPPER (i))
8058      return 2;
8059  return 0;
8060}
8061_ACEOF
8062if ac_fn_c_try_run "$LINENO"; then :
8063
8064else
8065  ac_cv_header_stdc=no
8066fi
8067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8068  conftest.$ac_objext conftest.beam conftest.$ac_ext
8069fi
8070
8071fi
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8074$as_echo "$ac_cv_header_stdc" >&6; }
8075if test $ac_cv_header_stdc = yes; then
8076
8077$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8078
8079fi
8080
8081# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8082for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8083		  inttypes.h stdint.h unistd.h
8084do :
8085  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8086ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8087"
8088if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8089  cat >>confdefs.h <<_ACEOF
8090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8091_ACEOF
8092
8093fi
8094
8095done
8096
8097
8098for ac_header in dlfcn.h
8099do :
8100  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8101"
8102if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8103  cat >>confdefs.h <<_ACEOF
8104#define HAVE_DLFCN_H 1
8105_ACEOF
8106
8107fi
8108
8109done
8110
8111
8112
8113func_stripname_cnf ()
8114{
8115  case ${2} in
8116  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8117  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8118  esac
8119} # func_stripname_cnf
8120
8121
8122
8123
8124
8125# Set options
8126
8127
8128
8129        enable_dlopen=no
8130
8131
8132  enable_win32_dll=no
8133
8134
8135            # Check whether --enable-shared was given.
8136if test "${enable_shared+set}" = set; then :
8137  enableval=$enable_shared; p=${PACKAGE-default}
8138    case $enableval in
8139    yes) enable_shared=yes ;;
8140    no) enable_shared=no ;;
8141    *)
8142      enable_shared=no
8143      # Look at the argument we got.  We use all the common list separators.
8144      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8145      for pkg in $enableval; do
8146	IFS="$lt_save_ifs"
8147	if test "X$pkg" = "X$p"; then
8148	  enable_shared=yes
8149	fi
8150      done
8151      IFS="$lt_save_ifs"
8152      ;;
8153    esac
8154else
8155  enable_shared=yes
8156fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166  # Check whether --enable-static was given.
8167if test "${enable_static+set}" = set; then :
8168  enableval=$enable_static; p=${PACKAGE-default}
8169    case $enableval in
8170    yes) enable_static=yes ;;
8171    no) enable_static=no ;;
8172    *)
8173     enable_static=no
8174      # Look at the argument we got.  We use all the common list separators.
8175      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8176      for pkg in $enableval; do
8177	IFS="$lt_save_ifs"
8178	if test "X$pkg" = "X$p"; then
8179	  enable_static=yes
8180	fi
8181      done
8182      IFS="$lt_save_ifs"
8183      ;;
8184    esac
8185else
8186  enable_static=yes
8187fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198# Check whether --with-pic was given.
8199if test "${with_pic+set}" = set; then :
8200  withval=$with_pic; lt_p=${PACKAGE-default}
8201    case $withval in
8202    yes|no) pic_mode=$withval ;;
8203    *)
8204      pic_mode=default
8205      # Look at the argument we got.  We use all the common list separators.
8206      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8207      for lt_pkg in $withval; do
8208	IFS="$lt_save_ifs"
8209	if test "X$lt_pkg" = "X$lt_p"; then
8210	  pic_mode=yes
8211	fi
8212      done
8213      IFS="$lt_save_ifs"
8214      ;;
8215    esac
8216else
8217  pic_mode=default
8218fi
8219
8220
8221test -z "$pic_mode" && pic_mode=default
8222
8223
8224
8225
8226
8227
8228
8229  # Check whether --enable-fast-install was given.
8230if test "${enable_fast_install+set}" = set; then :
8231  enableval=$enable_fast_install; p=${PACKAGE-default}
8232    case $enableval in
8233    yes) enable_fast_install=yes ;;
8234    no) enable_fast_install=no ;;
8235    *)
8236      enable_fast_install=no
8237      # Look at the argument we got.  We use all the common list separators.
8238      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8239      for pkg in $enableval; do
8240	IFS="$lt_save_ifs"
8241	if test "X$pkg" = "X$p"; then
8242	  enable_fast_install=yes
8243	fi
8244      done
8245      IFS="$lt_save_ifs"
8246      ;;
8247    esac
8248else
8249  enable_fast_install=yes
8250fi
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262# This can be used to rebuild libtool when needed
8263LIBTOOL_DEPS="$ltmain"
8264
8265# Always use our own libtool.
8266LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297test -z "$LN_S" && LN_S="ln -s"
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312if test -n "${ZSH_VERSION+set}" ; then
8313   setopt NO_GLOB_SUBST
8314fi
8315
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8317$as_echo_n "checking for objdir... " >&6; }
8318if ${lt_cv_objdir+:} false; then :
8319  $as_echo_n "(cached) " >&6
8320else
8321  rm -f .libs 2>/dev/null
8322mkdir .libs 2>/dev/null
8323if test -d .libs; then
8324  lt_cv_objdir=.libs
8325else
8326  # MS-DOS does not allow filenames that begin with a dot.
8327  lt_cv_objdir=_libs
8328fi
8329rmdir .libs 2>/dev/null
8330fi
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8332$as_echo "$lt_cv_objdir" >&6; }
8333objdir=$lt_cv_objdir
8334
8335
8336
8337
8338
8339cat >>confdefs.h <<_ACEOF
8340#define LT_OBJDIR "$lt_cv_objdir/"
8341_ACEOF
8342
8343
8344
8345
8346case $host_os in
8347aix3*)
8348  # AIX sometimes has problems with the GCC collect2 program.  For some
8349  # reason, if we set the COLLECT_NAMES environment variable, the problems
8350  # vanish in a puff of smoke.
8351  if test "X${COLLECT_NAMES+set}" != Xset; then
8352    COLLECT_NAMES=
8353    export COLLECT_NAMES
8354  fi
8355  ;;
8356esac
8357
8358# Global variables:
8359ofile=libtool
8360can_build_shared=yes
8361
8362# All known linkers require a `.a' archive for static linking (except MSVC,
8363# which needs '.lib').
8364libext=a
8365
8366with_gnu_ld="$lt_cv_prog_gnu_ld"
8367
8368old_CC="$CC"
8369old_CFLAGS="$CFLAGS"
8370
8371# Set sane defaults for various variables
8372test -z "$CC" && CC=cc
8373test -z "$LTCC" && LTCC=$CC
8374test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8375test -z "$LD" && LD=ld
8376test -z "$ac_objext" && ac_objext=o
8377
8378for cc_temp in $compiler""; do
8379  case $cc_temp in
8380    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8381    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8382    \-*) ;;
8383    *) break;;
8384  esac
8385done
8386cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8387
8388
8389# Only perform the check for file, if the check method requires it
8390test -z "$MAGIC_CMD" && MAGIC_CMD=file
8391case $deplibs_check_method in
8392file_magic*)
8393  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8395$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8396if ${lt_cv_path_MAGIC_CMD+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  case $MAGIC_CMD in
8400[\\/*] |  ?:[\\/]*)
8401  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8402  ;;
8403*)
8404  lt_save_MAGIC_CMD="$MAGIC_CMD"
8405  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8406  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8407  for ac_dir in $ac_dummy; do
8408    IFS="$lt_save_ifs"
8409    test -z "$ac_dir" && ac_dir=.
8410    if test -f $ac_dir/${ac_tool_prefix}file; then
8411      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8412      if test -n "$file_magic_test_file"; then
8413	case $deplibs_check_method in
8414	"file_magic "*)
8415	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8416	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8417	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8418	    $EGREP "$file_magic_regex" > /dev/null; then
8419	    :
8420	  else
8421	    cat <<_LT_EOF 1>&2
8422
8423*** Warning: the command libtool uses to detect shared libraries,
8424*** $file_magic_cmd, produces output that libtool cannot recognize.
8425*** The result is that libtool may fail to recognize shared libraries
8426*** as such.  This will affect the creation of libtool libraries that
8427*** depend on shared libraries, but programs linked with such libtool
8428*** libraries will work regardless of this problem.  Nevertheless, you
8429*** may want to report the problem to your system manager and/or to
8430*** bug-libtool@gnu.org
8431
8432_LT_EOF
8433	  fi ;;
8434	esac
8435      fi
8436      break
8437    fi
8438  done
8439  IFS="$lt_save_ifs"
8440  MAGIC_CMD="$lt_save_MAGIC_CMD"
8441  ;;
8442esac
8443fi
8444
8445MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8446if test -n "$MAGIC_CMD"; then
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8448$as_echo "$MAGIC_CMD" >&6; }
8449else
8450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451$as_echo "no" >&6; }
8452fi
8453
8454
8455
8456
8457
8458if test -z "$lt_cv_path_MAGIC_CMD"; then
8459  if test -n "$ac_tool_prefix"; then
8460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8461$as_echo_n "checking for file... " >&6; }
8462if ${lt_cv_path_MAGIC_CMD+:} false; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  case $MAGIC_CMD in
8466[\\/*] |  ?:[\\/]*)
8467  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8468  ;;
8469*)
8470  lt_save_MAGIC_CMD="$MAGIC_CMD"
8471  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8472  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8473  for ac_dir in $ac_dummy; do
8474    IFS="$lt_save_ifs"
8475    test -z "$ac_dir" && ac_dir=.
8476    if test -f $ac_dir/file; then
8477      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8478      if test -n "$file_magic_test_file"; then
8479	case $deplibs_check_method in
8480	"file_magic "*)
8481	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8482	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8484	    $EGREP "$file_magic_regex" > /dev/null; then
8485	    :
8486	  else
8487	    cat <<_LT_EOF 1>&2
8488
8489*** Warning: the command libtool uses to detect shared libraries,
8490*** $file_magic_cmd, produces output that libtool cannot recognize.
8491*** The result is that libtool may fail to recognize shared libraries
8492*** as such.  This will affect the creation of libtool libraries that
8493*** depend on shared libraries, but programs linked with such libtool
8494*** libraries will work regardless of this problem.  Nevertheless, you
8495*** may want to report the problem to your system manager and/or to
8496*** bug-libtool@gnu.org
8497
8498_LT_EOF
8499	  fi ;;
8500	esac
8501      fi
8502      break
8503    fi
8504  done
8505  IFS="$lt_save_ifs"
8506  MAGIC_CMD="$lt_save_MAGIC_CMD"
8507  ;;
8508esac
8509fi
8510
8511MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512if test -n "$MAGIC_CMD"; then
8513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8514$as_echo "$MAGIC_CMD" >&6; }
8515else
8516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517$as_echo "no" >&6; }
8518fi
8519
8520
8521  else
8522    MAGIC_CMD=:
8523  fi
8524fi
8525
8526  fi
8527  ;;
8528esac
8529
8530# Use C for the default configuration in the libtool script
8531
8532lt_save_CC="$CC"
8533ac_ext=c
8534ac_cpp='$CPP $CPPFLAGS'
8535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8537ac_compiler_gnu=$ac_cv_c_compiler_gnu
8538
8539
8540# Source file extension for C test sources.
8541ac_ext=c
8542
8543# Object file extension for compiled C test sources.
8544objext=o
8545objext=$objext
8546
8547# Code to be used in simple compile tests
8548lt_simple_compile_test_code="int some_variable = 0;"
8549
8550# Code to be used in simple link tests
8551lt_simple_link_test_code='int main(){return(0);}'
8552
8553
8554
8555
8556
8557
8558
8559# If no C compiler was specified, use CC.
8560LTCC=${LTCC-"$CC"}
8561
8562# If no C compiler flags were specified, use CFLAGS.
8563LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8564
8565# Allow CC to be a program name with arguments.
8566compiler=$CC
8567
8568# Save the default compiler, since it gets overwritten when the other
8569# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8570compiler_DEFAULT=$CC
8571
8572# save warnings/boilerplate of simple test code
8573ac_outfile=conftest.$ac_objext
8574echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8575eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8576_lt_compiler_boilerplate=`cat conftest.err`
8577$RM conftest*
8578
8579ac_outfile=conftest.$ac_objext
8580echo "$lt_simple_link_test_code" >conftest.$ac_ext
8581eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8582_lt_linker_boilerplate=`cat conftest.err`
8583$RM -r conftest*
8584
8585
8586if test -n "$compiler"; then
8587
8588lt_prog_compiler_no_builtin_flag=
8589
8590if test "$GCC" = yes; then
8591  case $cc_basename in
8592  nvcc*)
8593    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8594  *)
8595    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8596  esac
8597
8598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8599$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8600if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8601  $as_echo_n "(cached) " >&6
8602else
8603  lt_cv_prog_compiler_rtti_exceptions=no
8604   ac_outfile=conftest.$ac_objext
8605   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606   lt_compiler_flag="-fno-rtti -fno-exceptions"
8607   # Insert the option either (1) after the last *FLAGS variable, or
8608   # (2) before a word containing "conftest.", or (3) at the end.
8609   # Note that $ac_compile itself does not contain backslashes and begins
8610   # with a dollar sign (not a hyphen), so the echo should work correctly.
8611   # The option is referenced via a variable to avoid confusing sed.
8612   lt_compile=`echo "$ac_compile" | $SED \
8613   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8614   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8615   -e 's:$: $lt_compiler_flag:'`
8616   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8617   (eval "$lt_compile" 2>conftest.err)
8618   ac_status=$?
8619   cat conftest.err >&5
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   if (exit $ac_status) && test -s "$ac_outfile"; then
8622     # The compiler can only warn and ignore the option if not recognized
8623     # So say no if there are warnings other than the usual output.
8624     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8625     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8626     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8627       lt_cv_prog_compiler_rtti_exceptions=yes
8628     fi
8629   fi
8630   $RM conftest*
8631
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8634$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8635
8636if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8637    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8638else
8639    :
8640fi
8641
8642fi
8643
8644
8645
8646
8647
8648
8649  lt_prog_compiler_wl=
8650lt_prog_compiler_pic=
8651lt_prog_compiler_static=
8652
8653
8654  if test "$GCC" = yes; then
8655    lt_prog_compiler_wl='-Wl,'
8656    lt_prog_compiler_static='-static'
8657
8658    case $host_os in
8659      aix*)
8660      # All AIX code is PIC.
8661      if test "$host_cpu" = ia64; then
8662	# AIX 5 now supports IA64 processor
8663	lt_prog_compiler_static='-Bstatic'
8664      fi
8665      ;;
8666
8667    amigaos*)
8668      case $host_cpu in
8669      powerpc)
8670            # see comment about AmigaOS4 .so support
8671            lt_prog_compiler_pic='-fPIC'
8672        ;;
8673      m68k)
8674            # FIXME: we need at least 68020 code to build shared libraries, but
8675            # adding the `-m68020' flag to GCC prevents building anything better,
8676            # like `-m68040'.
8677            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8678        ;;
8679      esac
8680      ;;
8681
8682    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8683      # PIC is the default for these OSes.
8684      ;;
8685
8686    mingw* | cygwin* | pw32* | os2* | cegcc*)
8687      # This hack is so that the source file can tell whether it is being
8688      # built for inclusion in a dll (and should export symbols for example).
8689      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8690      # (--disable-auto-import) libraries
8691      lt_prog_compiler_pic='-DDLL_EXPORT'
8692      ;;
8693
8694    darwin* | rhapsody*)
8695      # PIC is the default on this platform
8696      # Common symbols not allowed in MH_DYLIB files
8697      lt_prog_compiler_pic='-fno-common'
8698      ;;
8699
8700    haiku*)
8701      # PIC is the default for Haiku.
8702      # The "-static" flag exists, but is broken.
8703      lt_prog_compiler_static=
8704      ;;
8705
8706    hpux*)
8707      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8708      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8709      # sets the default TLS model and affects inlining.
8710      case $host_cpu in
8711      hppa*64*)
8712	# +Z the default
8713	;;
8714      *)
8715	lt_prog_compiler_pic='-fPIC'
8716	;;
8717      esac
8718      ;;
8719
8720    interix[3-9]*)
8721      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8722      # Instead, we relocate shared libraries at runtime.
8723      ;;
8724
8725    msdosdjgpp*)
8726      # Just because we use GCC doesn't mean we suddenly get shared libraries
8727      # on systems that don't support them.
8728      lt_prog_compiler_can_build_shared=no
8729      enable_shared=no
8730      ;;
8731
8732    *nto* | *qnx*)
8733      # QNX uses GNU C++, but need to define -shared option too, otherwise
8734      # it will coredump.
8735      lt_prog_compiler_pic='-fPIC -shared'
8736      ;;
8737
8738    sysv4*MP*)
8739      if test -d /usr/nec; then
8740	lt_prog_compiler_pic=-Kconform_pic
8741      fi
8742      ;;
8743
8744    *)
8745      lt_prog_compiler_pic='-fPIC'
8746      ;;
8747    esac
8748
8749    case $cc_basename in
8750    nvcc*) # Cuda Compiler Driver 2.2
8751      lt_prog_compiler_wl='-Xlinker '
8752      if test -n "$lt_prog_compiler_pic"; then
8753        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8754      fi
8755      ;;
8756    esac
8757  else
8758    # PORTME Check for flag to pass linker flags through the system compiler.
8759    case $host_os in
8760    aix*)
8761      lt_prog_compiler_wl='-Wl,'
8762      if test "$host_cpu" = ia64; then
8763	# AIX 5 now supports IA64 processor
8764	lt_prog_compiler_static='-Bstatic'
8765      else
8766	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8767      fi
8768      ;;
8769
8770    mingw* | cygwin* | pw32* | os2* | cegcc*)
8771      # This hack is so that the source file can tell whether it is being
8772      # built for inclusion in a dll (and should export symbols for example).
8773      lt_prog_compiler_pic='-DDLL_EXPORT'
8774      ;;
8775
8776    hpux9* | hpux10* | hpux11*)
8777      lt_prog_compiler_wl='-Wl,'
8778      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8779      # not for PA HP-UX.
8780      case $host_cpu in
8781      hppa*64*|ia64*)
8782	# +Z the default
8783	;;
8784      *)
8785	lt_prog_compiler_pic='+Z'
8786	;;
8787      esac
8788      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8789      lt_prog_compiler_static='${wl}-a ${wl}archive'
8790      ;;
8791
8792    irix5* | irix6* | nonstopux*)
8793      lt_prog_compiler_wl='-Wl,'
8794      # PIC (with -KPIC) is the default.
8795      lt_prog_compiler_static='-non_shared'
8796      ;;
8797
8798    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8799      case $cc_basename in
8800      # old Intel for x86_64 which still supported -KPIC.
8801      ecc*)
8802	lt_prog_compiler_wl='-Wl,'
8803	lt_prog_compiler_pic='-KPIC'
8804	lt_prog_compiler_static='-static'
8805        ;;
8806      # icc used to be incompatible with GCC.
8807      # ICC 10 doesn't accept -KPIC any more.
8808      icc* | ifort*)
8809	lt_prog_compiler_wl='-Wl,'
8810	lt_prog_compiler_pic='-fPIC'
8811	lt_prog_compiler_static='-static'
8812        ;;
8813      # Lahey Fortran 8.1.
8814      lf95*)
8815	lt_prog_compiler_wl='-Wl,'
8816	lt_prog_compiler_pic='--shared'
8817	lt_prog_compiler_static='--static'
8818	;;
8819      nagfor*)
8820	# NAG Fortran compiler
8821	lt_prog_compiler_wl='-Wl,-Wl,,'
8822	lt_prog_compiler_pic='-PIC'
8823	lt_prog_compiler_static='-Bstatic'
8824	;;
8825      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8826        # Portland Group compilers (*not* the Pentium gcc compiler,
8827	# which looks to be a dead project)
8828	lt_prog_compiler_wl='-Wl,'
8829	lt_prog_compiler_pic='-fpic'
8830	lt_prog_compiler_static='-Bstatic'
8831        ;;
8832      ccc*)
8833        lt_prog_compiler_wl='-Wl,'
8834        # All Alpha code is PIC.
8835        lt_prog_compiler_static='-non_shared'
8836        ;;
8837      xl* | bgxl* | bgf* | mpixl*)
8838	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8839	lt_prog_compiler_wl='-Wl,'
8840	lt_prog_compiler_pic='-qpic'
8841	lt_prog_compiler_static='-qstaticlink'
8842	;;
8843      *)
8844	case `$CC -V 2>&1 | sed 5q` in
8845	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8846	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8847	  lt_prog_compiler_pic='-KPIC'
8848	  lt_prog_compiler_static='-Bstatic'
8849	  lt_prog_compiler_wl=''
8850	  ;;
8851	*Sun\ F* | *Sun*Fortran*)
8852	  lt_prog_compiler_pic='-KPIC'
8853	  lt_prog_compiler_static='-Bstatic'
8854	  lt_prog_compiler_wl='-Qoption ld '
8855	  ;;
8856	*Sun\ C*)
8857	  # Sun C 5.9
8858	  lt_prog_compiler_pic='-KPIC'
8859	  lt_prog_compiler_static='-Bstatic'
8860	  lt_prog_compiler_wl='-Wl,'
8861	  ;;
8862        *Intel*\ [CF]*Compiler*)
8863	  lt_prog_compiler_wl='-Wl,'
8864	  lt_prog_compiler_pic='-fPIC'
8865	  lt_prog_compiler_static='-static'
8866	  ;;
8867	*Portland\ Group*)
8868	  lt_prog_compiler_wl='-Wl,'
8869	  lt_prog_compiler_pic='-fpic'
8870	  lt_prog_compiler_static='-Bstatic'
8871	  ;;
8872	esac
8873	;;
8874      esac
8875      ;;
8876
8877    newsos6)
8878      lt_prog_compiler_pic='-KPIC'
8879      lt_prog_compiler_static='-Bstatic'
8880      ;;
8881
8882    *nto* | *qnx*)
8883      # QNX uses GNU C++, but need to define -shared option too, otherwise
8884      # it will coredump.
8885      lt_prog_compiler_pic='-fPIC -shared'
8886      ;;
8887
8888    osf3* | osf4* | osf5*)
8889      lt_prog_compiler_wl='-Wl,'
8890      # All OSF/1 code is PIC.
8891      lt_prog_compiler_static='-non_shared'
8892      ;;
8893
8894    rdos*)
8895      lt_prog_compiler_static='-non_shared'
8896      ;;
8897
8898    solaris*)
8899      lt_prog_compiler_pic='-KPIC'
8900      lt_prog_compiler_static='-Bstatic'
8901      case $cc_basename in
8902      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8903	lt_prog_compiler_wl='-Qoption ld ';;
8904      *)
8905	lt_prog_compiler_wl='-Wl,';;
8906      esac
8907      ;;
8908
8909    sunos4*)
8910      lt_prog_compiler_wl='-Qoption ld '
8911      lt_prog_compiler_pic='-PIC'
8912      lt_prog_compiler_static='-Bstatic'
8913      ;;
8914
8915    sysv4 | sysv4.2uw2* | sysv4.3*)
8916      lt_prog_compiler_wl='-Wl,'
8917      lt_prog_compiler_pic='-KPIC'
8918      lt_prog_compiler_static='-Bstatic'
8919      ;;
8920
8921    sysv4*MP*)
8922      if test -d /usr/nec ;then
8923	lt_prog_compiler_pic='-Kconform_pic'
8924	lt_prog_compiler_static='-Bstatic'
8925      fi
8926      ;;
8927
8928    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8929      lt_prog_compiler_wl='-Wl,'
8930      lt_prog_compiler_pic='-KPIC'
8931      lt_prog_compiler_static='-Bstatic'
8932      ;;
8933
8934    unicos*)
8935      lt_prog_compiler_wl='-Wl,'
8936      lt_prog_compiler_can_build_shared=no
8937      ;;
8938
8939    uts4*)
8940      lt_prog_compiler_pic='-pic'
8941      lt_prog_compiler_static='-Bstatic'
8942      ;;
8943
8944    *)
8945      lt_prog_compiler_can_build_shared=no
8946      ;;
8947    esac
8948  fi
8949
8950case $host_os in
8951  # For platforms which do not support PIC, -DPIC is meaningless:
8952  *djgpp*)
8953    lt_prog_compiler_pic=
8954    ;;
8955  *)
8956    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8957    ;;
8958esac
8959
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8961$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8962if ${lt_cv_prog_compiler_pic+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8966fi
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8968$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8969lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8970
8971#
8972# Check to make sure the PIC flag actually works.
8973#
8974if test -n "$lt_prog_compiler_pic"; then
8975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8976$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8977if ${lt_cv_prog_compiler_pic_works+:} false; then :
8978  $as_echo_n "(cached) " >&6
8979else
8980  lt_cv_prog_compiler_pic_works=no
8981   ac_outfile=conftest.$ac_objext
8982   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8984   # Insert the option either (1) after the last *FLAGS variable, or
8985   # (2) before a word containing "conftest.", or (3) at the end.
8986   # Note that $ac_compile itself does not contain backslashes and begins
8987   # with a dollar sign (not a hyphen), so the echo should work correctly.
8988   # The option is referenced via a variable to avoid confusing sed.
8989   lt_compile=`echo "$ac_compile" | $SED \
8990   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992   -e 's:$: $lt_compiler_flag:'`
8993   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994   (eval "$lt_compile" 2>conftest.err)
8995   ac_status=$?
8996   cat conftest.err >&5
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   if (exit $ac_status) && test -s "$ac_outfile"; then
8999     # The compiler can only warn and ignore the option if not recognized
9000     # So say no if there are warnings other than the usual output.
9001     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9002     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9003     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9004       lt_cv_prog_compiler_pic_works=yes
9005     fi
9006   fi
9007   $RM conftest*
9008
9009fi
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9011$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9012
9013if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9014    case $lt_prog_compiler_pic in
9015     "" | " "*) ;;
9016     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9017     esac
9018else
9019    lt_prog_compiler_pic=
9020     lt_prog_compiler_can_build_shared=no
9021fi
9022
9023fi
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035#
9036# Check to make sure the static flag actually works.
9037#
9038wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9040$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9041if ${lt_cv_prog_compiler_static_works+:} false; then :
9042  $as_echo_n "(cached) " >&6
9043else
9044  lt_cv_prog_compiler_static_works=no
9045   save_LDFLAGS="$LDFLAGS"
9046   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9047   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9048   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9049     # The linker can only warn and ignore the option if not recognized
9050     # So say no if there are warnings
9051     if test -s conftest.err; then
9052       # Append any errors to the config.log.
9053       cat conftest.err 1>&5
9054       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9055       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9056       if diff conftest.exp conftest.er2 >/dev/null; then
9057         lt_cv_prog_compiler_static_works=yes
9058       fi
9059     else
9060       lt_cv_prog_compiler_static_works=yes
9061     fi
9062   fi
9063   $RM -r conftest*
9064   LDFLAGS="$save_LDFLAGS"
9065
9066fi
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9068$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9069
9070if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9071    :
9072else
9073    lt_prog_compiler_static=
9074fi
9075
9076
9077
9078
9079
9080
9081
9082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9083$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9084if ${lt_cv_prog_compiler_c_o+:} false; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  lt_cv_prog_compiler_c_o=no
9088   $RM -r conftest 2>/dev/null
9089   mkdir conftest
9090   cd conftest
9091   mkdir out
9092   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9093
9094   lt_compiler_flag="-o out/conftest2.$ac_objext"
9095   # Insert the option either (1) after the last *FLAGS variable, or
9096   # (2) before a word containing "conftest.", or (3) at the end.
9097   # Note that $ac_compile itself does not contain backslashes and begins
9098   # with a dollar sign (not a hyphen), so the echo should work correctly.
9099   lt_compile=`echo "$ac_compile" | $SED \
9100   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9101   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9102   -e 's:$: $lt_compiler_flag:'`
9103   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9104   (eval "$lt_compile" 2>out/conftest.err)
9105   ac_status=$?
9106   cat out/conftest.err >&5
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9109   then
9110     # The compiler can only warn and ignore the option if not recognized
9111     # So say no if there are warnings
9112     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9113     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9114     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9115       lt_cv_prog_compiler_c_o=yes
9116     fi
9117   fi
9118   chmod u+w . 2>&5
9119   $RM conftest*
9120   # SGI C++ compiler will create directory out/ii_files/ for
9121   # template instantiation
9122   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9123   $RM out/* && rmdir out
9124   cd ..
9125   $RM -r conftest
9126   $RM conftest*
9127
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9130$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9131
9132
9133
9134
9135
9136
9137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139if ${lt_cv_prog_compiler_c_o+:} false; then :
9140  $as_echo_n "(cached) " >&6
9141else
9142  lt_cv_prog_compiler_c_o=no
9143   $RM -r conftest 2>/dev/null
9144   mkdir conftest
9145   cd conftest
9146   mkdir out
9147   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148
9149   lt_compiler_flag="-o out/conftest2.$ac_objext"
9150   # Insert the option either (1) after the last *FLAGS variable, or
9151   # (2) before a word containing "conftest.", or (3) at the end.
9152   # Note that $ac_compile itself does not contain backslashes and begins
9153   # with a dollar sign (not a hyphen), so the echo should work correctly.
9154   lt_compile=`echo "$ac_compile" | $SED \
9155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157   -e 's:$: $lt_compiler_flag:'`
9158   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9159   (eval "$lt_compile" 2>out/conftest.err)
9160   ac_status=$?
9161   cat out/conftest.err >&5
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164   then
9165     # The compiler can only warn and ignore the option if not recognized
9166     # So say no if there are warnings
9167     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9168     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170       lt_cv_prog_compiler_c_o=yes
9171     fi
9172   fi
9173   chmod u+w . 2>&5
9174   $RM conftest*
9175   # SGI C++ compiler will create directory out/ii_files/ for
9176   # template instantiation
9177   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178   $RM out/* && rmdir out
9179   cd ..
9180   $RM -r conftest
9181   $RM conftest*
9182
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9186
9187
9188
9189
9190hard_links="nottested"
9191if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9192  # do not overwrite the value of need_locks provided by the user
9193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9194$as_echo_n "checking if we can lock with hard links... " >&6; }
9195  hard_links=yes
9196  $RM conftest*
9197  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198  touch conftest.a
9199  ln conftest.a conftest.b 2>&5 || hard_links=no
9200  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9202$as_echo "$hard_links" >&6; }
9203  if test "$hard_links" = no; then
9204    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9205$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9206    need_locks=warn
9207  fi
9208else
9209  need_locks=no
9210fi
9211
9212
9213
9214
9215
9216
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9218$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9219
9220  runpath_var=
9221  allow_undefined_flag=
9222  always_export_symbols=no
9223  archive_cmds=
9224  archive_expsym_cmds=
9225  compiler_needs_object=no
9226  enable_shared_with_static_runtimes=no
9227  export_dynamic_flag_spec=
9228  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9229  hardcode_automatic=no
9230  hardcode_direct=no
9231  hardcode_direct_absolute=no
9232  hardcode_libdir_flag_spec=
9233  hardcode_libdir_separator=
9234  hardcode_minus_L=no
9235  hardcode_shlibpath_var=unsupported
9236  inherit_rpath=no
9237  link_all_deplibs=unknown
9238  module_cmds=
9239  module_expsym_cmds=
9240  old_archive_from_new_cmds=
9241  old_archive_from_expsyms_cmds=
9242  thread_safe_flag_spec=
9243  whole_archive_flag_spec=
9244  # include_expsyms should be a list of space-separated symbols to be *always*
9245  # included in the symbol list
9246  include_expsyms=
9247  # exclude_expsyms can be an extended regexp of symbols to exclude
9248  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9249  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9250  # as well as any symbol that contains `d'.
9251  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9252  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9253  # platforms (ab)use it in PIC code, but their linkers get confused if
9254  # the symbol is explicitly referenced.  Since portable code cannot
9255  # rely on this symbol name, it's probably fine to never include it in
9256  # preloaded symbol tables.
9257  # Exclude shared library initialization/finalization symbols.
9258  extract_expsyms_cmds=
9259
9260  case $host_os in
9261  cygwin* | mingw* | pw32* | cegcc*)
9262    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9263    # When not using gcc, we currently assume that we are using
9264    # Microsoft Visual C++.
9265    if test "$GCC" != yes; then
9266      with_gnu_ld=no
9267    fi
9268    ;;
9269  interix*)
9270    # we just hope/assume this is gcc and not c89 (= MSVC++)
9271    with_gnu_ld=yes
9272    ;;
9273  openbsd*)
9274    with_gnu_ld=no
9275    ;;
9276  linux* | k*bsd*-gnu | gnu*)
9277    link_all_deplibs=no
9278    ;;
9279  esac
9280
9281  ld_shlibs=yes
9282
9283  # On some targets, GNU ld is compatible enough with the native linker
9284  # that we're better off using the native interface for both.
9285  lt_use_gnu_ld_interface=no
9286  if test "$with_gnu_ld" = yes; then
9287    case $host_os in
9288      aix*)
9289	# The AIX port of GNU ld has always aspired to compatibility
9290	# with the native linker.  However, as the warning in the GNU ld
9291	# block says, versions before 2.19.5* couldn't really create working
9292	# shared libraries, regardless of the interface used.
9293	case `$LD -v 2>&1` in
9294	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9295	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9296	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9297	  *)
9298	    lt_use_gnu_ld_interface=yes
9299	    ;;
9300	esac
9301	;;
9302      *)
9303	lt_use_gnu_ld_interface=yes
9304	;;
9305    esac
9306  fi
9307
9308  if test "$lt_use_gnu_ld_interface" = yes; then
9309    # If archive_cmds runs LD, not CC, wlarc should be empty
9310    wlarc='${wl}'
9311
9312    # Set some defaults for GNU ld with shared library support. These
9313    # are reset later if shared libraries are not supported. Putting them
9314    # here allows them to be overridden if necessary.
9315    runpath_var=LD_RUN_PATH
9316    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317    export_dynamic_flag_spec='${wl}--export-dynamic'
9318    # ancient GNU ld didn't support --whole-archive et. al.
9319    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9320      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9321    else
9322      whole_archive_flag_spec=
9323    fi
9324    supports_anon_versioning=no
9325    case `$LD -v 2>&1` in
9326      *GNU\ gold*) supports_anon_versioning=yes ;;
9327      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9328      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9329      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9330      *\ 2.11.*) ;; # other 2.11 versions
9331      *) supports_anon_versioning=yes ;;
9332    esac
9333
9334    # See if GNU ld supports shared libraries.
9335    case $host_os in
9336    aix[3-9]*)
9337      # On AIX/PPC, the GNU linker is very broken
9338      if test "$host_cpu" != ia64; then
9339	ld_shlibs=no
9340	cat <<_LT_EOF 1>&2
9341
9342*** Warning: the GNU linker, at least up to release 2.19, is reported
9343*** to be unable to reliably create shared libraries on AIX.
9344*** Therefore, libtool is disabling shared libraries support.  If you
9345*** really care for shared libraries, you may want to install binutils
9346*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9347*** You will then need to restart the configuration process.
9348
9349_LT_EOF
9350      fi
9351      ;;
9352
9353    amigaos*)
9354      case $host_cpu in
9355      powerpc)
9356            # see comment about AmigaOS4 .so support
9357            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358            archive_expsym_cmds=''
9359        ;;
9360      m68k)
9361            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)'
9362            hardcode_libdir_flag_spec='-L$libdir'
9363            hardcode_minus_L=yes
9364        ;;
9365      esac
9366      ;;
9367
9368    beos*)
9369      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370	allow_undefined_flag=unsupported
9371	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9372	# support --undefined.  This deserves some investigation.  FIXME
9373	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374      else
9375	ld_shlibs=no
9376      fi
9377      ;;
9378
9379    cygwin* | mingw* | pw32* | cegcc*)
9380      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9381      # as there is no search path for DLLs.
9382      hardcode_libdir_flag_spec='-L$libdir'
9383      export_dynamic_flag_spec='${wl}--export-all-symbols'
9384      allow_undefined_flag=unsupported
9385      always_export_symbols=no
9386      enable_shared_with_static_runtimes=yes
9387      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'
9388      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9389
9390      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9391        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9392	# If the export-symbols file already is a .def file (1st line
9393	# is EXPORTS), use it as is; otherwise, prepend...
9394	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9395	  cp $export_symbols $output_objdir/$soname.def;
9396	else
9397	  echo EXPORTS > $output_objdir/$soname.def;
9398	  cat $export_symbols >> $output_objdir/$soname.def;
9399	fi~
9400	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9401      else
9402	ld_shlibs=no
9403      fi
9404      ;;
9405
9406    haiku*)
9407      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408      link_all_deplibs=yes
9409      ;;
9410
9411    interix[3-9]*)
9412      hardcode_direct=no
9413      hardcode_shlibpath_var=no
9414      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9415      export_dynamic_flag_spec='${wl}-E'
9416      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9417      # Instead, shared libraries are loaded at an image base (0x10000000 by
9418      # default) and relocated if they conflict, which is a slow very memory
9419      # consuming and fragmenting process.  To avoid this, we pick a random,
9420      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9421      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9422      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9423      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'
9424      ;;
9425
9426    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9427      tmp_diet=no
9428      if test "$host_os" = linux-dietlibc; then
9429	case $cc_basename in
9430	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9431	esac
9432      fi
9433      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9434	 && test "$tmp_diet" = no
9435      then
9436	tmp_addflag=' $pic_flag'
9437	tmp_sharedflag='-shared'
9438	case $cc_basename,$host_cpu in
9439        pgcc*)				# Portland Group C compiler
9440	  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'
9441	  tmp_addflag=' $pic_flag'
9442	  ;;
9443	pgf77* | pgf90* | pgf95* | pgfortran*)
9444					# Portland Group f77 and f90 compilers
9445	  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'
9446	  tmp_addflag=' $pic_flag -Mnomain' ;;
9447	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9448	  tmp_addflag=' -i_dynamic' ;;
9449	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9450	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9451	ifc* | ifort*)			# Intel Fortran compiler
9452	  tmp_addflag=' -nofor_main' ;;
9453	lf95*)				# Lahey Fortran 8.1
9454	  whole_archive_flag_spec=
9455	  tmp_sharedflag='--shared' ;;
9456	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9457	  tmp_sharedflag='-qmkshrobj'
9458	  tmp_addflag= ;;
9459	nvcc*)	# Cuda Compiler Driver 2.2
9460	  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'
9461	  compiler_needs_object=yes
9462	  ;;
9463	esac
9464	case `$CC -V 2>&1 | sed 5q` in
9465	*Sun\ C*)			# Sun C 5.9
9466	  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'
9467	  compiler_needs_object=yes
9468	  tmp_sharedflag='-G' ;;
9469	*Sun\ F*)			# Sun Fortran 8.3
9470	  tmp_sharedflag='-G' ;;
9471	esac
9472	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473
9474        if test "x$supports_anon_versioning" = xyes; then
9475          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9476	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9477	    echo "local: *; };" >> $output_objdir/$libname.ver~
9478	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9479        fi
9480
9481	case $cc_basename in
9482	xlf* | bgf* | bgxlf* | mpixlf*)
9483	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9484	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9485	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9487	  if test "x$supports_anon_versioning" = xyes; then
9488	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9489	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9490	      echo "local: *; };" >> $output_objdir/$libname.ver~
9491	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9492	  fi
9493	  ;;
9494	esac
9495      else
9496        ld_shlibs=no
9497      fi
9498      ;;
9499
9500    netbsd* | netbsdelf*-gnu)
9501      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9502	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503	wlarc=
9504      else
9505	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507      fi
9508      ;;
9509
9510    solaris*)
9511      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9512	ld_shlibs=no
9513	cat <<_LT_EOF 1>&2
9514
9515*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9516*** create shared libraries on Solaris systems.  Therefore, libtool
9517*** is disabling shared libraries support.  We urge you to upgrade GNU
9518*** binutils to release 2.9.1 or newer.  Another option is to modify
9519*** your PATH or compiler configuration so that the native linker is
9520*** used, and then restart.
9521
9522_LT_EOF
9523      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526      else
9527	ld_shlibs=no
9528      fi
9529      ;;
9530
9531    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9532      case `$LD -v 2>&1` in
9533        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9534	ld_shlibs=no
9535	cat <<_LT_EOF 1>&2
9536
9537*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9538*** reliably create shared libraries on SCO systems.  Therefore, libtool
9539*** is disabling shared libraries support.  We urge you to upgrade GNU
9540*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9541*** your PATH or compiler configuration so that the native linker is
9542*** used, and then restart.
9543
9544_LT_EOF
9545	;;
9546	*)
9547	  # For security reasons, it is highly recommended that you always
9548	  # use absolute paths for naming shared libraries, and exclude the
9549	  # DT_RUNPATH tag from executables and libraries.  But doing so
9550	  # requires that you compile everything twice, which is a pain.
9551	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9555	  else
9556	    ld_shlibs=no
9557	  fi
9558	;;
9559      esac
9560      ;;
9561
9562    sunos4*)
9563      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564      wlarc=
9565      hardcode_direct=yes
9566      hardcode_shlibpath_var=no
9567      ;;
9568
9569    *)
9570      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573      else
9574	ld_shlibs=no
9575      fi
9576      ;;
9577    esac
9578
9579    if test "$ld_shlibs" = no; then
9580      runpath_var=
9581      hardcode_libdir_flag_spec=
9582      export_dynamic_flag_spec=
9583      whole_archive_flag_spec=
9584    fi
9585  else
9586    # PORTME fill in a description of your system's linker (not GNU ld)
9587    case $host_os in
9588    aix3*)
9589      allow_undefined_flag=unsupported
9590      always_export_symbols=yes
9591      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'
9592      # Note: this linker hardcodes the directories in LIBPATH if there
9593      # are no directories specified by -L.
9594      hardcode_minus_L=yes
9595      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9596	# Neither direct hardcoding nor static linking is supported with a
9597	# broken collect2.
9598	hardcode_direct=unsupported
9599      fi
9600      ;;
9601
9602    aix[4-9]*)
9603      if test "$host_cpu" = ia64; then
9604	# On IA64, the linker does run time linking by default, so we don't
9605	# have to do anything special.
9606	aix_use_runtimelinking=no
9607	exp_sym_flag='-Bexport'
9608	no_entry_flag=""
9609      else
9610	# If we're using GNU nm, then we don't want the "-C" option.
9611	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9612	# Also, AIX nm treats weak defined symbols like other global
9613	# defined symbols, whereas GNU nm marks them as "W".
9614	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9615	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9616	else
9617	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9618	fi
9619	aix_use_runtimelinking=no
9620
9621	# Test if we are trying to use run time linking or normal
9622	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623	# need to do runtime linking.
9624	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9625	  for ld_flag in $LDFLAGS; do
9626	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9627	    aix_use_runtimelinking=yes
9628	    break
9629	  fi
9630	  done
9631	  ;;
9632	esac
9633
9634	exp_sym_flag='-bexport'
9635	no_entry_flag='-bnoentry'
9636      fi
9637
9638      # When large executables or shared objects are built, AIX ld can
9639      # have problems creating the table of contents.  If linking a library
9640      # or program results in "error TOC overflow" add -mminimal-toc to
9641      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9642      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643
9644      archive_cmds=''
9645      hardcode_direct=yes
9646      hardcode_direct_absolute=yes
9647      hardcode_libdir_separator=':'
9648      link_all_deplibs=yes
9649      file_list_spec='${wl}-f,'
9650
9651      if test "$GCC" = yes; then
9652	case $host_os in aix4.[012]|aix4.[012].*)
9653	# We only want to do this on AIX 4.2 and lower, the check
9654	# below for broken collect2 doesn't work under 4.3+
9655	  collect2name=`${CC} -print-prog-name=collect2`
9656	  if test -f "$collect2name" &&
9657	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9658	  then
9659	  # We have reworked collect2
9660	  :
9661	  else
9662	  # We have old collect2
9663	  hardcode_direct=unsupported
9664	  # It fails to find uninstalled libraries when the uninstalled
9665	  # path is not listed in the libpath.  Setting hardcode_minus_L
9666	  # to unsupported forces relinking
9667	  hardcode_minus_L=yes
9668	  hardcode_libdir_flag_spec='-L$libdir'
9669	  hardcode_libdir_separator=
9670	  fi
9671	  ;;
9672	esac
9673	shared_flag='-shared'
9674	if test "$aix_use_runtimelinking" = yes; then
9675	  shared_flag="$shared_flag "'${wl}-G'
9676	fi
9677	link_all_deplibs=no
9678      else
9679	# not using gcc
9680	if test "$host_cpu" = ia64; then
9681	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9682	# chokes on -Wl,-G. The following line is correct:
9683	  shared_flag='-G'
9684	else
9685	  if test "$aix_use_runtimelinking" = yes; then
9686	    shared_flag='${wl}-G'
9687	  else
9688	    shared_flag='${wl}-bM:SRE'
9689	  fi
9690	fi
9691      fi
9692
9693      export_dynamic_flag_spec='${wl}-bexpall'
9694      # It seems that -bexpall does not export symbols beginning with
9695      # underscore (_), so it is better to generate a list of symbols to export.
9696      always_export_symbols=yes
9697      if test "$aix_use_runtimelinking" = yes; then
9698	# Warning - without using the other runtime loading flags (-brtl),
9699	# -berok will link without error, but may produce a broken library.
9700	allow_undefined_flag='-berok'
9701        # Determine the default libpath from the value encoded in an
9702        # empty executable.
9703        if test "${lt_cv_aix_libpath+set}" = set; then
9704  aix_libpath=$lt_cv_aix_libpath
9705else
9706  if ${lt_cv_aix_libpath_+:} false; then :
9707  $as_echo_n "(cached) " >&6
9708else
9709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710/* end confdefs.h.  */
9711
9712int
9713main ()
9714{
9715
9716  ;
9717  return 0;
9718}
9719_ACEOF
9720if ac_fn_c_try_link "$LINENO"; then :
9721
9722  lt_aix_libpath_sed='
9723      /Import File Strings/,/^$/ {
9724	  /^0/ {
9725	      s/^0  *\([^ ]*\) *$/\1/
9726	      p
9727	  }
9728      }'
9729  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730  # Check for a 64-bit object if we didn't find anything.
9731  if test -z "$lt_cv_aix_libpath_"; then
9732    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733  fi
9734fi
9735rm -f core conftest.err conftest.$ac_objext \
9736    conftest$ac_exeext conftest.$ac_ext
9737  if test -z "$lt_cv_aix_libpath_"; then
9738    lt_cv_aix_libpath_="/usr/lib:/lib"
9739  fi
9740
9741fi
9742
9743  aix_libpath=$lt_cv_aix_libpath_
9744fi
9745
9746        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9747        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9748      else
9749	if test "$host_cpu" = ia64; then
9750	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9751	  allow_undefined_flag="-z nodefs"
9752	  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"
9753	else
9754	 # Determine the default libpath from the value encoded in an
9755	 # empty executable.
9756	 if test "${lt_cv_aix_libpath+set}" = set; then
9757  aix_libpath=$lt_cv_aix_libpath
9758else
9759  if ${lt_cv_aix_libpath_+:} false; then :
9760  $as_echo_n "(cached) " >&6
9761else
9762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763/* end confdefs.h.  */
9764
9765int
9766main ()
9767{
9768
9769  ;
9770  return 0;
9771}
9772_ACEOF
9773if ac_fn_c_try_link "$LINENO"; then :
9774
9775  lt_aix_libpath_sed='
9776      /Import File Strings/,/^$/ {
9777	  /^0/ {
9778	      s/^0  *\([^ ]*\) *$/\1/
9779	      p
9780	  }
9781      }'
9782  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9783  # Check for a 64-bit object if we didn't find anything.
9784  if test -z "$lt_cv_aix_libpath_"; then
9785    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9786  fi
9787fi
9788rm -f core conftest.err conftest.$ac_objext \
9789    conftest$ac_exeext conftest.$ac_ext
9790  if test -z "$lt_cv_aix_libpath_"; then
9791    lt_cv_aix_libpath_="/usr/lib:/lib"
9792  fi
9793
9794fi
9795
9796  aix_libpath=$lt_cv_aix_libpath_
9797fi
9798
9799	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9800	  # Warning - without using the other run time loading flags,
9801	  # -berok will link without error, but may produce a broken library.
9802	  no_undefined_flag=' ${wl}-bernotok'
9803	  allow_undefined_flag=' ${wl}-berok'
9804	  if test "$with_gnu_ld" = yes; then
9805	    # We only use this code for GNU lds that support --whole-archive.
9806	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9807	  else
9808	    # Exported symbols can be pulled into shared objects from archives
9809	    whole_archive_flag_spec='$convenience'
9810	  fi
9811	  archive_cmds_need_lc=yes
9812	  # This is similar to how AIX traditionally builds its shared libraries.
9813	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9814	fi
9815      fi
9816      ;;
9817
9818    amigaos*)
9819      case $host_cpu in
9820      powerpc)
9821            # see comment about AmigaOS4 .so support
9822            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823            archive_expsym_cmds=''
9824        ;;
9825      m68k)
9826            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)'
9827            hardcode_libdir_flag_spec='-L$libdir'
9828            hardcode_minus_L=yes
9829        ;;
9830      esac
9831      ;;
9832
9833    bsdi[45]*)
9834      export_dynamic_flag_spec=-rdynamic
9835      ;;
9836
9837    cygwin* | mingw* | pw32* | cegcc*)
9838      # When not using gcc, we currently assume that we are using
9839      # Microsoft Visual C++.
9840      # hardcode_libdir_flag_spec is actually meaningless, as there is
9841      # no search path for DLLs.
9842      case $cc_basename in
9843      cl*)
9844	# Native MSVC
9845	hardcode_libdir_flag_spec=' '
9846	allow_undefined_flag=unsupported
9847	always_export_symbols=yes
9848	file_list_spec='@'
9849	# Tell ltmain to make .lib files, not .a files.
9850	libext=lib
9851	# Tell ltmain to make .dll files, not .so files.
9852	shrext_cmds=".dll"
9853	# FIXME: Setting linknames here is a bad hack.
9854	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9855	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9856	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9857	  else
9858	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9859	  fi~
9860	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9861	  linknames='
9862	# The linker will not automatically build a static lib if we build a DLL.
9863	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9864	enable_shared_with_static_runtimes=yes
9865	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9866	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9867	# Don't use ranlib
9868	old_postinstall_cmds='chmod 644 $oldlib'
9869	postlink_cmds='lt_outputfile="@OUTPUT@"~
9870	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9871	  case $lt_outputfile in
9872	    *.exe|*.EXE) ;;
9873	    *)
9874	      lt_outputfile="$lt_outputfile.exe"
9875	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9876	      ;;
9877	  esac~
9878	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9879	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9880	    $RM "$lt_outputfile.manifest";
9881	  fi'
9882	;;
9883      *)
9884	# Assume MSVC wrapper
9885	hardcode_libdir_flag_spec=' '
9886	allow_undefined_flag=unsupported
9887	# Tell ltmain to make .lib files, not .a files.
9888	libext=lib
9889	# Tell ltmain to make .dll files, not .so files.
9890	shrext_cmds=".dll"
9891	# FIXME: Setting linknames here is a bad hack.
9892	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9893	# The linker will automatically build a .lib file if we build a DLL.
9894	old_archive_from_new_cmds='true'
9895	# FIXME: Should let the user specify the lib program.
9896	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9897	enable_shared_with_static_runtimes=yes
9898	;;
9899      esac
9900      ;;
9901
9902    darwin* | rhapsody*)
9903
9904
9905  archive_cmds_need_lc=no
9906  hardcode_direct=no
9907  hardcode_automatic=yes
9908  hardcode_shlibpath_var=unsupported
9909  if test "$lt_cv_ld_force_load" = "yes"; then
9910    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\"`'
9911
9912  else
9913    whole_archive_flag_spec=''
9914  fi
9915  link_all_deplibs=yes
9916  allow_undefined_flag="$_lt_dar_allow_undefined"
9917  case $cc_basename in
9918     ifort*) _lt_dar_can_shared=yes ;;
9919     *) _lt_dar_can_shared=$GCC ;;
9920  esac
9921  if test "$_lt_dar_can_shared" = "yes"; then
9922    output_verbose_link_cmd=func_echo_all
9923    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9924    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9925    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}"
9926    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}"
9927
9928  else
9929  ld_shlibs=no
9930  fi
9931
9932      ;;
9933
9934    dgux*)
9935      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936      hardcode_libdir_flag_spec='-L$libdir'
9937      hardcode_shlibpath_var=no
9938      ;;
9939
9940    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9941    # support.  Future versions do this automatically, but an explicit c++rt0.o
9942    # does not break anything, and helps significantly (at the cost of a little
9943    # extra space).
9944    freebsd2.2*)
9945      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9946      hardcode_libdir_flag_spec='-R$libdir'
9947      hardcode_direct=yes
9948      hardcode_shlibpath_var=no
9949      ;;
9950
9951    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9952    freebsd2.*)
9953      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9954      hardcode_direct=yes
9955      hardcode_minus_L=yes
9956      hardcode_shlibpath_var=no
9957      ;;
9958
9959    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9960    freebsd* | dragonfly*)
9961      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962      hardcode_libdir_flag_spec='-R$libdir'
9963      hardcode_direct=yes
9964      hardcode_shlibpath_var=no
9965      ;;
9966
9967    hpux9*)
9968      if test "$GCC" = yes; then
9969	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9970      else
9971	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9972      fi
9973      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9974      hardcode_libdir_separator=:
9975      hardcode_direct=yes
9976
9977      # hardcode_minus_L: Not really in the search PATH,
9978      # but as the default location of the library.
9979      hardcode_minus_L=yes
9980      export_dynamic_flag_spec='${wl}-E'
9981      ;;
9982
9983    hpux10*)
9984      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9985	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986      else
9987	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988      fi
9989      if test "$with_gnu_ld" = no; then
9990	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9991	hardcode_libdir_separator=:
9992	hardcode_direct=yes
9993	hardcode_direct_absolute=yes
9994	export_dynamic_flag_spec='${wl}-E'
9995	# hardcode_minus_L: Not really in the search PATH,
9996	# but as the default location of the library.
9997	hardcode_minus_L=yes
9998      fi
9999      ;;
10000
10001    hpux11*)
10002      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10003	case $host_cpu in
10004	hppa*64*)
10005	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10006	  ;;
10007	ia64*)
10008	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10009	  ;;
10010	*)
10011	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10012	  ;;
10013	esac
10014      else
10015	case $host_cpu in
10016	hppa*64*)
10017	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10018	  ;;
10019	ia64*)
10020	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10021	  ;;
10022	*)
10023
10024	  # Older versions of the 11.00 compiler do not understand -b yet
10025	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10026	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10027$as_echo_n "checking if $CC understands -b... " >&6; }
10028if ${lt_cv_prog_compiler__b+:} false; then :
10029  $as_echo_n "(cached) " >&6
10030else
10031  lt_cv_prog_compiler__b=no
10032   save_LDFLAGS="$LDFLAGS"
10033   LDFLAGS="$LDFLAGS -b"
10034   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10035   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10036     # The linker can only warn and ignore the option if not recognized
10037     # So say no if there are warnings
10038     if test -s conftest.err; then
10039       # Append any errors to the config.log.
10040       cat conftest.err 1>&5
10041       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10042       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10043       if diff conftest.exp conftest.er2 >/dev/null; then
10044         lt_cv_prog_compiler__b=yes
10045       fi
10046     else
10047       lt_cv_prog_compiler__b=yes
10048     fi
10049   fi
10050   $RM -r conftest*
10051   LDFLAGS="$save_LDFLAGS"
10052
10053fi
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10055$as_echo "$lt_cv_prog_compiler__b" >&6; }
10056
10057if test x"$lt_cv_prog_compiler__b" = xyes; then
10058    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10059else
10060    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10061fi
10062
10063	  ;;
10064	esac
10065      fi
10066      if test "$with_gnu_ld" = no; then
10067	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10068	hardcode_libdir_separator=:
10069
10070	case $host_cpu in
10071	hppa*64*|ia64*)
10072	  hardcode_direct=no
10073	  hardcode_shlibpath_var=no
10074	  ;;
10075	*)
10076	  hardcode_direct=yes
10077	  hardcode_direct_absolute=yes
10078	  export_dynamic_flag_spec='${wl}-E'
10079
10080	  # hardcode_minus_L: Not really in the search PATH,
10081	  # but as the default location of the library.
10082	  hardcode_minus_L=yes
10083	  ;;
10084	esac
10085      fi
10086      ;;
10087
10088    irix5* | irix6* | nonstopux*)
10089      if test "$GCC" = yes; then
10090	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'
10091	# Try to use the -exported_symbol ld option, if it does not
10092	# work, assume that -exports_file does not work either and
10093	# implicitly export all symbols.
10094	# This should be the same for all languages, so no per-tag cache variable.
10095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10096$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10097if ${lt_cv_irix_exported_symbol+:} false; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  save_LDFLAGS="$LDFLAGS"
10101	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10102	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h.  */
10104int foo (void) { return 0; }
10105_ACEOF
10106if ac_fn_c_try_link "$LINENO"; then :
10107  lt_cv_irix_exported_symbol=yes
10108else
10109  lt_cv_irix_exported_symbol=no
10110fi
10111rm -f core conftest.err conftest.$ac_objext \
10112    conftest$ac_exeext conftest.$ac_ext
10113           LDFLAGS="$save_LDFLAGS"
10114fi
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10116$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10117	if test "$lt_cv_irix_exported_symbol" = yes; then
10118          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'
10119	fi
10120      else
10121	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'
10122	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'
10123      fi
10124      archive_cmds_need_lc='no'
10125      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126      hardcode_libdir_separator=:
10127      inherit_rpath=yes
10128      link_all_deplibs=yes
10129      ;;
10130
10131    netbsd* | netbsdelf*-gnu)
10132      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10133	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10134      else
10135	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10136      fi
10137      hardcode_libdir_flag_spec='-R$libdir'
10138      hardcode_direct=yes
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    newsos6)
10143      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144      hardcode_direct=yes
10145      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146      hardcode_libdir_separator=:
10147      hardcode_shlibpath_var=no
10148      ;;
10149
10150    *nto* | *qnx*)
10151      ;;
10152
10153    openbsd*)
10154      if test -f /usr/libexec/ld.so; then
10155	hardcode_direct=yes
10156	hardcode_shlibpath_var=no
10157	hardcode_direct_absolute=yes
10158	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10160	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10161	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162	  export_dynamic_flag_spec='${wl}-E'
10163	else
10164	  case $host_os in
10165	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10166	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167	     hardcode_libdir_flag_spec='-R$libdir'
10168	     ;;
10169	   *)
10170	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10171	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10172	     ;;
10173	  esac
10174	fi
10175      else
10176	ld_shlibs=no
10177      fi
10178      ;;
10179
10180    os2*)
10181      hardcode_libdir_flag_spec='-L$libdir'
10182      hardcode_minus_L=yes
10183      allow_undefined_flag=unsupported
10184      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10185      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10186      ;;
10187
10188    osf3*)
10189      if test "$GCC" = yes; then
10190	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10191	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'
10192      else
10193	allow_undefined_flag=' -expect_unresolved \*'
10194	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'
10195      fi
10196      archive_cmds_need_lc='no'
10197      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198      hardcode_libdir_separator=:
10199      ;;
10200
10201    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10202      if test "$GCC" = yes; then
10203	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10204	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'
10205	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10206      else
10207	allow_undefined_flag=' -expect_unresolved \*'
10208	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'
10209	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~
10210	$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'
10211
10212	# Both c and cxx compiler support -rpath directly
10213	hardcode_libdir_flag_spec='-rpath $libdir'
10214      fi
10215      archive_cmds_need_lc='no'
10216      hardcode_libdir_separator=:
10217      ;;
10218
10219    solaris*)
10220      no_undefined_flag=' -z defs'
10221      if test "$GCC" = yes; then
10222	wlarc='${wl}'
10223	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10224	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10225	  $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'
10226      else
10227	case `$CC -V 2>&1` in
10228	*"Compilers 5.0"*)
10229	  wlarc=''
10230	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10233	  ;;
10234	*)
10235	  wlarc='${wl}'
10236	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10237	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10238	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10239	  ;;
10240	esac
10241      fi
10242      hardcode_libdir_flag_spec='-R$libdir'
10243      hardcode_shlibpath_var=no
10244      case $host_os in
10245      solaris2.[0-5] | solaris2.[0-5].*) ;;
10246      *)
10247	# The compiler driver will combine and reorder linker options,
10248	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10249	# but is careful enough not to reorder.
10250	# Supported since Solaris 2.6 (maybe 2.5.1?)
10251	if test "$GCC" = yes; then
10252	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10253	else
10254	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10255	fi
10256	;;
10257      esac
10258      link_all_deplibs=yes
10259      ;;
10260
10261    sunos4*)
10262      if test "x$host_vendor" = xsequent; then
10263	# Use $CC to link under sequent, because it throws in some extra .o
10264	# files that make .init and .fini sections work.
10265	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10266      else
10267	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10268      fi
10269      hardcode_libdir_flag_spec='-L$libdir'
10270      hardcode_direct=yes
10271      hardcode_minus_L=yes
10272      hardcode_shlibpath_var=no
10273      ;;
10274
10275    sysv4)
10276      case $host_vendor in
10277	sni)
10278	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279	  hardcode_direct=yes # is this really true???
10280	;;
10281	siemens)
10282	  ## LD is ld it makes a PLAMLIB
10283	  ## CC just makes a GrossModule.
10284	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10285	  reload_cmds='$CC -r -o $output$reload_objs'
10286	  hardcode_direct=no
10287        ;;
10288	motorola)
10289	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10291	;;
10292      esac
10293      runpath_var='LD_RUN_PATH'
10294      hardcode_shlibpath_var=no
10295      ;;
10296
10297    sysv4.3*)
10298      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10299      hardcode_shlibpath_var=no
10300      export_dynamic_flag_spec='-Bexport'
10301      ;;
10302
10303    sysv4*MP*)
10304      if test -d /usr/nec; then
10305	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306	hardcode_shlibpath_var=no
10307	runpath_var=LD_RUN_PATH
10308	hardcode_runpath_var=yes
10309	ld_shlibs=yes
10310      fi
10311      ;;
10312
10313    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10314      no_undefined_flag='${wl}-z,text'
10315      archive_cmds_need_lc=no
10316      hardcode_shlibpath_var=no
10317      runpath_var='LD_RUN_PATH'
10318
10319      if test "$GCC" = yes; then
10320	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322      else
10323	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325      fi
10326      ;;
10327
10328    sysv5* | sco3.2v5* | sco5v6*)
10329      # Note: We can NOT use -z defs as we might desire, because we do not
10330      # link with -lc, and that would cause any symbols used from libc to
10331      # always be unresolved, which means just about no library would
10332      # ever link correctly.  If we're not using GNU ld we use -z text
10333      # though, which does catch some bad symbols but isn't as heavy-handed
10334      # as -z defs.
10335      no_undefined_flag='${wl}-z,text'
10336      allow_undefined_flag='${wl}-z,nodefs'
10337      archive_cmds_need_lc=no
10338      hardcode_shlibpath_var=no
10339      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10340      hardcode_libdir_separator=':'
10341      link_all_deplibs=yes
10342      export_dynamic_flag_spec='${wl}-Bexport'
10343      runpath_var='LD_RUN_PATH'
10344
10345      if test "$GCC" = yes; then
10346	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348      else
10349	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351      fi
10352      ;;
10353
10354    uts4*)
10355      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356      hardcode_libdir_flag_spec='-L$libdir'
10357      hardcode_shlibpath_var=no
10358      ;;
10359
10360    *)
10361      ld_shlibs=no
10362      ;;
10363    esac
10364
10365    if test x$host_vendor = xsni; then
10366      case $host in
10367      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10368	export_dynamic_flag_spec='${wl}-Blargedynsym'
10369	;;
10370      esac
10371    fi
10372  fi
10373
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10375$as_echo "$ld_shlibs" >&6; }
10376test "$ld_shlibs" = no && can_build_shared=no
10377
10378with_gnu_ld=$with_gnu_ld
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394#
10395# Do we need to explicitly link libc?
10396#
10397case "x$archive_cmds_need_lc" in
10398x|xyes)
10399  # Assume -lc should be added
10400  archive_cmds_need_lc=yes
10401
10402  if test "$enable_shared" = yes && test "$GCC" = yes; then
10403    case $archive_cmds in
10404    *'~'*)
10405      # FIXME: we may have to deal with multi-command sequences.
10406      ;;
10407    '$CC '*)
10408      # Test whether the compiler implicitly links with -lc since on some
10409      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10410      # to ld, don't add -lc before -lgcc.
10411      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10412$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10413if ${lt_cv_archive_cmds_need_lc+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416  $RM conftest*
10417	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10418
10419	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10420  (eval $ac_compile) 2>&5
10421  ac_status=$?
10422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10423  test $ac_status = 0; } 2>conftest.err; then
10424	  soname=conftest
10425	  lib=conftest
10426	  libobjs=conftest.$ac_objext
10427	  deplibs=
10428	  wl=$lt_prog_compiler_wl
10429	  pic_flag=$lt_prog_compiler_pic
10430	  compiler_flags=-v
10431	  linker_flags=-v
10432	  verstring=
10433	  output_objdir=.
10434	  libname=conftest
10435	  lt_save_allow_undefined_flag=$allow_undefined_flag
10436	  allow_undefined_flag=
10437	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10438  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10439  ac_status=$?
10440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10441  test $ac_status = 0; }
10442	  then
10443	    lt_cv_archive_cmds_need_lc=no
10444	  else
10445	    lt_cv_archive_cmds_need_lc=yes
10446	  fi
10447	  allow_undefined_flag=$lt_save_allow_undefined_flag
10448	else
10449	  cat conftest.err 1>&5
10450	fi
10451	$RM conftest*
10452
10453fi
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10455$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10456      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10457      ;;
10458    esac
10459  fi
10460  ;;
10461esac
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10615$as_echo_n "checking dynamic linker characteristics... " >&6; }
10616
10617if test "$GCC" = yes; then
10618  case $host_os in
10619    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10620    *) lt_awk_arg="/^libraries:/" ;;
10621  esac
10622  case $host_os in
10623    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10624    *) lt_sed_strip_eq="s,=/,/,g" ;;
10625  esac
10626  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10627  case $lt_search_path_spec in
10628  *\;*)
10629    # if the path contains ";" then we assume it to be the separator
10630    # otherwise default to the standard path separator (i.e. ":") - it is
10631    # assumed that no part of a normal pathname contains ";" but that should
10632    # okay in the real world where ";" in dirpaths is itself problematic.
10633    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10634    ;;
10635  *)
10636    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10637    ;;
10638  esac
10639  # Ok, now we have the path, separated by spaces, we can step through it
10640  # and add multilib dir if necessary.
10641  lt_tmp_lt_search_path_spec=
10642  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10643  for lt_sys_path in $lt_search_path_spec; do
10644    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10645      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10646    else
10647      test -d "$lt_sys_path" && \
10648	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10649    fi
10650  done
10651  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10652BEGIN {RS=" "; FS="/|\n";} {
10653  lt_foo="";
10654  lt_count=0;
10655  for (lt_i = NF; lt_i > 0; lt_i--) {
10656    if ($lt_i != "" && $lt_i != ".") {
10657      if ($lt_i == "..") {
10658        lt_count++;
10659      } else {
10660        if (lt_count == 0) {
10661          lt_foo="/" $lt_i lt_foo;
10662        } else {
10663          lt_count--;
10664        }
10665      }
10666    }
10667  }
10668  if (lt_foo != "") { lt_freq[lt_foo]++; }
10669  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10670}'`
10671  # AWK program above erroneously prepends '/' to C:/dos/paths
10672  # for these hosts.
10673  case $host_os in
10674    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10675      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10676  esac
10677  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10678else
10679  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10680fi
10681library_names_spec=
10682libname_spec='lib$name'
10683soname_spec=
10684shrext_cmds=".so"
10685postinstall_cmds=
10686postuninstall_cmds=
10687finish_cmds=
10688finish_eval=
10689shlibpath_var=
10690shlibpath_overrides_runpath=unknown
10691version_type=none
10692dynamic_linker="$host_os ld.so"
10693sys_lib_dlsearch_path_spec="/lib /usr/lib"
10694need_lib_prefix=unknown
10695hardcode_into_libs=no
10696
10697# when you set need_version to no, make sure it does not cause -set_version
10698# flags to be left without arguments
10699need_version=unknown
10700
10701case $host_os in
10702aix3*)
10703  version_type=linux # correct to gnu/linux during the next big refactor
10704  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10705  shlibpath_var=LIBPATH
10706
10707  # AIX 3 has no versioning support, so we append a major version to the name.
10708  soname_spec='${libname}${release}${shared_ext}$major'
10709  ;;
10710
10711aix[4-9]*)
10712  version_type=linux # correct to gnu/linux during the next big refactor
10713  need_lib_prefix=no
10714  need_version=no
10715  hardcode_into_libs=yes
10716  if test "$host_cpu" = ia64; then
10717    # AIX 5 supports IA64
10718    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10719    shlibpath_var=LD_LIBRARY_PATH
10720  else
10721    # With GCC up to 2.95.x, collect2 would create an import file
10722    # for dependence libraries.  The import file would start with
10723    # the line `#! .'.  This would cause the generated library to
10724    # depend on `.', always an invalid library.  This was fixed in
10725    # development snapshots of GCC prior to 3.0.
10726    case $host_os in
10727      aix4 | aix4.[01] | aix4.[01].*)
10728      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10729	   echo ' yes '
10730	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10731	:
10732      else
10733	can_build_shared=no
10734      fi
10735      ;;
10736    esac
10737    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10738    # soname into executable. Probably we can add versioning support to
10739    # collect2, so additional links can be useful in future.
10740    if test "$aix_use_runtimelinking" = yes; then
10741      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10742      # instead of lib<name>.a to let people know that these are not
10743      # typical AIX shared libraries.
10744      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745    else
10746      # We preserve .a as extension for shared libraries through AIX4.2
10747      # and later when we are not doing run time linking.
10748      library_names_spec='${libname}${release}.a $libname.a'
10749      soname_spec='${libname}${release}${shared_ext}$major'
10750    fi
10751    shlibpath_var=LIBPATH
10752  fi
10753  ;;
10754
10755amigaos*)
10756  case $host_cpu in
10757  powerpc)
10758    # Since July 2007 AmigaOS4 officially supports .so libraries.
10759    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10760    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761    ;;
10762  m68k)
10763    library_names_spec='$libname.ixlibrary $libname.a'
10764    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10765    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10766    ;;
10767  esac
10768  ;;
10769
10770beos*)
10771  library_names_spec='${libname}${shared_ext}'
10772  dynamic_linker="$host_os ld.so"
10773  shlibpath_var=LIBRARY_PATH
10774  ;;
10775
10776bsdi[45]*)
10777  version_type=linux # correct to gnu/linux during the next big refactor
10778  need_version=no
10779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780  soname_spec='${libname}${release}${shared_ext}$major'
10781  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10782  shlibpath_var=LD_LIBRARY_PATH
10783  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10784  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10785  # the default ld.so.conf also contains /usr/contrib/lib and
10786  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10787  # libtool to hard-code these into programs
10788  ;;
10789
10790cygwin* | mingw* | pw32* | cegcc*)
10791  version_type=windows
10792  shrext_cmds=".dll"
10793  need_version=no
10794  need_lib_prefix=no
10795
10796  case $GCC,$cc_basename in
10797  yes,*)
10798    # gcc
10799    library_names_spec='$libname.dll.a'
10800    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10801    postinstall_cmds='base_file=`basename \${file}`~
10802      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10803      dldir=$destdir/`dirname \$dlpath`~
10804      test -d \$dldir || mkdir -p \$dldir~
10805      $install_prog $dir/$dlname \$dldir/$dlname~
10806      chmod a+x \$dldir/$dlname~
10807      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10808        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10809      fi'
10810    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10811      dlpath=$dir/\$dldll~
10812       $RM \$dlpath'
10813    shlibpath_overrides_runpath=yes
10814
10815    case $host_os in
10816    cygwin*)
10817      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10818      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10819
10820      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10821      ;;
10822    mingw* | cegcc*)
10823      # MinGW DLLs use traditional 'lib' prefix
10824      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10825      ;;
10826    pw32*)
10827      # pw32 DLLs use 'pw' prefix rather than 'lib'
10828      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10829      ;;
10830    esac
10831    dynamic_linker='Win32 ld.exe'
10832    ;;
10833
10834  *,cl*)
10835    # Native MSVC
10836    libname_spec='$name'
10837    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10838    library_names_spec='${libname}.dll.lib'
10839
10840    case $build_os in
10841    mingw*)
10842      sys_lib_search_path_spec=
10843      lt_save_ifs=$IFS
10844      IFS=';'
10845      for lt_path in $LIB
10846      do
10847        IFS=$lt_save_ifs
10848        # Let DOS variable expansion print the short 8.3 style file name.
10849        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10850        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10851      done
10852      IFS=$lt_save_ifs
10853      # Convert to MSYS style.
10854      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10855      ;;
10856    cygwin*)
10857      # Convert to unix form, then to dos form, then back to unix form
10858      # but this time dos style (no spaces!) so that the unix form looks
10859      # like /cygdrive/c/PROGRA~1:/cygdr...
10860      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10861      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10862      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10863      ;;
10864    *)
10865      sys_lib_search_path_spec="$LIB"
10866      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10867        # It is most probably a Windows format PATH.
10868        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10869      else
10870        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10871      fi
10872      # FIXME: find the short name or the path components, as spaces are
10873      # common. (e.g. "Program Files" -> "PROGRA~1")
10874      ;;
10875    esac
10876
10877    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10878    postinstall_cmds='base_file=`basename \${file}`~
10879      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10880      dldir=$destdir/`dirname \$dlpath`~
10881      test -d \$dldir || mkdir -p \$dldir~
10882      $install_prog $dir/$dlname \$dldir/$dlname'
10883    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10884      dlpath=$dir/\$dldll~
10885       $RM \$dlpath'
10886    shlibpath_overrides_runpath=yes
10887    dynamic_linker='Win32 link.exe'
10888    ;;
10889
10890  *)
10891    # Assume MSVC wrapper
10892    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10893    dynamic_linker='Win32 ld.exe'
10894    ;;
10895  esac
10896  # FIXME: first we should search . and the directory the executable is in
10897  shlibpath_var=PATH
10898  ;;
10899
10900darwin* | rhapsody*)
10901  dynamic_linker="$host_os dyld"
10902  version_type=darwin
10903  need_lib_prefix=no
10904  need_version=no
10905  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10906  soname_spec='${libname}${release}${major}$shared_ext'
10907  shlibpath_overrides_runpath=yes
10908  shlibpath_var=DYLD_LIBRARY_PATH
10909  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10910
10911  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10912  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10913  ;;
10914
10915dgux*)
10916  version_type=linux # correct to gnu/linux during the next big refactor
10917  need_lib_prefix=no
10918  need_version=no
10919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10920  soname_spec='${libname}${release}${shared_ext}$major'
10921  shlibpath_var=LD_LIBRARY_PATH
10922  ;;
10923
10924freebsd* | dragonfly*)
10925  # DragonFly does not have aout.  When/if they implement a new
10926  # versioning mechanism, adjust this.
10927  if test -x /usr/bin/objformat; then
10928    objformat=`/usr/bin/objformat`
10929  else
10930    case $host_os in
10931    freebsd[23].*) objformat=aout ;;
10932    *) objformat=elf ;;
10933    esac
10934  fi
10935  version_type=freebsd-$objformat
10936  case $version_type in
10937    freebsd-elf*)
10938      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10939      need_version=no
10940      need_lib_prefix=no
10941      ;;
10942    freebsd-*)
10943      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10944      need_version=yes
10945      ;;
10946  esac
10947  shlibpath_var=LD_LIBRARY_PATH
10948  case $host_os in
10949  freebsd2.*)
10950    shlibpath_overrides_runpath=yes
10951    ;;
10952  freebsd3.[01]* | freebsdelf3.[01]*)
10953    shlibpath_overrides_runpath=yes
10954    hardcode_into_libs=yes
10955    ;;
10956  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10957  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10958    shlibpath_overrides_runpath=no
10959    hardcode_into_libs=yes
10960    ;;
10961  *) # from 4.6 on, and DragonFly
10962    shlibpath_overrides_runpath=yes
10963    hardcode_into_libs=yes
10964    ;;
10965  esac
10966  ;;
10967
10968gnu*)
10969  version_type=linux # correct to gnu/linux during the next big refactor
10970  need_lib_prefix=no
10971  need_version=no
10972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10973  soname_spec='${libname}${release}${shared_ext}$major'
10974  shlibpath_var=LD_LIBRARY_PATH
10975  shlibpath_overrides_runpath=no
10976  hardcode_into_libs=yes
10977  ;;
10978
10979haiku*)
10980  version_type=linux # correct to gnu/linux during the next big refactor
10981  need_lib_prefix=no
10982  need_version=no
10983  dynamic_linker="$host_os runtime_loader"
10984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10985  soname_spec='${libname}${release}${shared_ext}$major'
10986  shlibpath_var=LIBRARY_PATH
10987  shlibpath_overrides_runpath=yes
10988  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10989  hardcode_into_libs=yes
10990  ;;
10991
10992hpux9* | hpux10* | hpux11*)
10993  # Give a soname corresponding to the major version so that dld.sl refuses to
10994  # link against other versions.
10995  version_type=sunos
10996  need_lib_prefix=no
10997  need_version=no
10998  case $host_cpu in
10999  ia64*)
11000    shrext_cmds='.so'
11001    hardcode_into_libs=yes
11002    dynamic_linker="$host_os dld.so"
11003    shlibpath_var=LD_LIBRARY_PATH
11004    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006    soname_spec='${libname}${release}${shared_ext}$major'
11007    if test "X$HPUX_IA64_MODE" = X32; then
11008      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11009    else
11010      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11011    fi
11012    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013    ;;
11014  hppa*64*)
11015    shrext_cmds='.sl'
11016    hardcode_into_libs=yes
11017    dynamic_linker="$host_os dld.sl"
11018    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11019    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021    soname_spec='${libname}${release}${shared_ext}$major'
11022    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11023    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11024    ;;
11025  *)
11026    shrext_cmds='.sl'
11027    dynamic_linker="$host_os dld.sl"
11028    shlibpath_var=SHLIB_PATH
11029    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11030    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031    soname_spec='${libname}${release}${shared_ext}$major'
11032    ;;
11033  esac
11034  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11035  postinstall_cmds='chmod 555 $lib'
11036  # or fails outright, so override atomically:
11037  install_override_mode=555
11038  ;;
11039
11040interix[3-9]*)
11041  version_type=linux # correct to gnu/linux during the next big refactor
11042  need_lib_prefix=no
11043  need_version=no
11044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11045  soname_spec='${libname}${release}${shared_ext}$major'
11046  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11047  shlibpath_var=LD_LIBRARY_PATH
11048  shlibpath_overrides_runpath=no
11049  hardcode_into_libs=yes
11050  ;;
11051
11052irix5* | irix6* | nonstopux*)
11053  case $host_os in
11054    nonstopux*) version_type=nonstopux ;;
11055    *)
11056	if test "$lt_cv_prog_gnu_ld" = yes; then
11057		version_type=linux # correct to gnu/linux during the next big refactor
11058	else
11059		version_type=irix
11060	fi ;;
11061  esac
11062  need_lib_prefix=no
11063  need_version=no
11064  soname_spec='${libname}${release}${shared_ext}$major'
11065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11066  case $host_os in
11067  irix5* | nonstopux*)
11068    libsuff= shlibsuff=
11069    ;;
11070  *)
11071    case $LD in # libtool.m4 will add one of these switches to LD
11072    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11073      libsuff= shlibsuff= libmagic=32-bit;;
11074    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11075      libsuff=32 shlibsuff=N32 libmagic=N32;;
11076    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11077      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11078    *) libsuff= shlibsuff= libmagic=never-match;;
11079    esac
11080    ;;
11081  esac
11082  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11083  shlibpath_overrides_runpath=no
11084  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11085  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11086  hardcode_into_libs=yes
11087  ;;
11088
11089# No shared lib support for Linux oldld, aout, or coff.
11090linux*oldld* | linux*aout* | linux*coff*)
11091  dynamic_linker=no
11092  ;;
11093
11094# This must be glibc/ELF.
11095linux* | k*bsd*-gnu | kopensolaris*-gnu)
11096  version_type=linux # correct to gnu/linux during the next big refactor
11097  need_lib_prefix=no
11098  need_version=no
11099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100  soname_spec='${libname}${release}${shared_ext}$major'
11101  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11102  shlibpath_var=LD_LIBRARY_PATH
11103  shlibpath_overrides_runpath=no
11104
11105  # Some binutils ld are patched to set DT_RUNPATH
11106  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11107  $as_echo_n "(cached) " >&6
11108else
11109  lt_cv_shlibpath_overrides_runpath=no
11110    save_LDFLAGS=$LDFLAGS
11111    save_libdir=$libdir
11112    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11113	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115/* end confdefs.h.  */
11116
11117int
11118main ()
11119{
11120
11121  ;
11122  return 0;
11123}
11124_ACEOF
11125if ac_fn_c_try_link "$LINENO"; then :
11126  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11127  lt_cv_shlibpath_overrides_runpath=yes
11128fi
11129fi
11130rm -f core conftest.err conftest.$ac_objext \
11131    conftest$ac_exeext conftest.$ac_ext
11132    LDFLAGS=$save_LDFLAGS
11133    libdir=$save_libdir
11134
11135fi
11136
11137  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11138
11139  # This implies no fast_install, which is unacceptable.
11140  # Some rework will be needed to allow for fast_install
11141  # before this can be enabled.
11142  hardcode_into_libs=yes
11143
11144  # Append ld.so.conf contents to the search path
11145  if test -f /etc/ld.so.conf; then
11146    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' ' '`
11147    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11148  fi
11149
11150  # We used to test for /lib/ld.so.1 and disable shared libraries on
11151  # powerpc, because MkLinux only supported shared libraries with the
11152  # GNU dynamic linker.  Since this was broken with cross compilers,
11153  # most powerpc-linux boxes support dynamic linking these days and
11154  # people can always --disable-shared, the test was removed, and we
11155  # assume the GNU/Linux dynamic linker is in use.
11156  dynamic_linker='GNU/Linux ld.so'
11157  ;;
11158
11159netbsdelf*-gnu)
11160  version_type=linux
11161  need_lib_prefix=no
11162  need_version=no
11163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11164  soname_spec='${libname}${release}${shared_ext}$major'
11165  shlibpath_var=LD_LIBRARY_PATH
11166  shlibpath_overrides_runpath=no
11167  hardcode_into_libs=yes
11168  dynamic_linker='NetBSD ld.elf_so'
11169  ;;
11170
11171netbsd*)
11172  version_type=sunos
11173  need_lib_prefix=no
11174  need_version=no
11175  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11176    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11177    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11178    dynamic_linker='NetBSD (a.out) ld.so'
11179  else
11180    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11181    soname_spec='${libname}${release}${shared_ext}$major'
11182    dynamic_linker='NetBSD ld.elf_so'
11183  fi
11184  shlibpath_var=LD_LIBRARY_PATH
11185  shlibpath_overrides_runpath=yes
11186  hardcode_into_libs=yes
11187  ;;
11188
11189newsos6)
11190  version_type=linux # correct to gnu/linux during the next big refactor
11191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192  shlibpath_var=LD_LIBRARY_PATH
11193  shlibpath_overrides_runpath=yes
11194  ;;
11195
11196*nto* | *qnx*)
11197  version_type=qnx
11198  need_lib_prefix=no
11199  need_version=no
11200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201  soname_spec='${libname}${release}${shared_ext}$major'
11202  shlibpath_var=LD_LIBRARY_PATH
11203  shlibpath_overrides_runpath=no
11204  hardcode_into_libs=yes
11205  dynamic_linker='ldqnx.so'
11206  ;;
11207
11208openbsd*)
11209  version_type=sunos
11210  sys_lib_dlsearch_path_spec="/usr/lib"
11211  need_lib_prefix=no
11212  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11213  case $host_os in
11214    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11215    *)				need_version=no  ;;
11216  esac
11217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11218  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11219  shlibpath_var=LD_LIBRARY_PATH
11220  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11221    case $host_os in
11222      openbsd2.[89] | openbsd2.[89].*)
11223	shlibpath_overrides_runpath=no
11224	;;
11225      *)
11226	shlibpath_overrides_runpath=yes
11227	;;
11228      esac
11229  else
11230    shlibpath_overrides_runpath=yes
11231  fi
11232  ;;
11233
11234os2*)
11235  libname_spec='$name'
11236  shrext_cmds=".dll"
11237  need_lib_prefix=no
11238  library_names_spec='$libname${shared_ext} $libname.a'
11239  dynamic_linker='OS/2 ld.exe'
11240  shlibpath_var=LIBPATH
11241  ;;
11242
11243osf3* | osf4* | osf5*)
11244  version_type=osf
11245  need_lib_prefix=no
11246  need_version=no
11247  soname_spec='${libname}${release}${shared_ext}$major'
11248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249  shlibpath_var=LD_LIBRARY_PATH
11250  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11251  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11252  ;;
11253
11254rdos*)
11255  dynamic_linker=no
11256  ;;
11257
11258solaris*)
11259  version_type=linux # correct to gnu/linux during the next big refactor
11260  need_lib_prefix=no
11261  need_version=no
11262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263  soname_spec='${libname}${release}${shared_ext}$major'
11264  shlibpath_var=LD_LIBRARY_PATH
11265  shlibpath_overrides_runpath=yes
11266  hardcode_into_libs=yes
11267  # ldd complains unless libraries are executable
11268  postinstall_cmds='chmod +x $lib'
11269  ;;
11270
11271sunos4*)
11272  version_type=sunos
11273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11274  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11275  shlibpath_var=LD_LIBRARY_PATH
11276  shlibpath_overrides_runpath=yes
11277  if test "$with_gnu_ld" = yes; then
11278    need_lib_prefix=no
11279  fi
11280  need_version=yes
11281  ;;
11282
11283sysv4 | sysv4.3*)
11284  version_type=linux # correct to gnu/linux during the next big refactor
11285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286  soname_spec='${libname}${release}${shared_ext}$major'
11287  shlibpath_var=LD_LIBRARY_PATH
11288  case $host_vendor in
11289    sni)
11290      shlibpath_overrides_runpath=no
11291      need_lib_prefix=no
11292      runpath_var=LD_RUN_PATH
11293      ;;
11294    siemens)
11295      need_lib_prefix=no
11296      ;;
11297    motorola)
11298      need_lib_prefix=no
11299      need_version=no
11300      shlibpath_overrides_runpath=no
11301      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11302      ;;
11303  esac
11304  ;;
11305
11306sysv4*MP*)
11307  if test -d /usr/nec ;then
11308    version_type=linux # correct to gnu/linux during the next big refactor
11309    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11310    soname_spec='$libname${shared_ext}.$major'
11311    shlibpath_var=LD_LIBRARY_PATH
11312  fi
11313  ;;
11314
11315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11316  version_type=freebsd-elf
11317  need_lib_prefix=no
11318  need_version=no
11319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11320  soname_spec='${libname}${release}${shared_ext}$major'
11321  shlibpath_var=LD_LIBRARY_PATH
11322  shlibpath_overrides_runpath=yes
11323  hardcode_into_libs=yes
11324  if test "$with_gnu_ld" = yes; then
11325    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11326  else
11327    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11328    case $host_os in
11329      sco3.2v5*)
11330        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11331	;;
11332    esac
11333  fi
11334  sys_lib_dlsearch_path_spec='/usr/lib'
11335  ;;
11336
11337tpf*)
11338  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11339  version_type=linux # correct to gnu/linux during the next big refactor
11340  need_lib_prefix=no
11341  need_version=no
11342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343  shlibpath_var=LD_LIBRARY_PATH
11344  shlibpath_overrides_runpath=no
11345  hardcode_into_libs=yes
11346  ;;
11347
11348uts4*)
11349  version_type=linux # correct to gnu/linux during the next big refactor
11350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351  soname_spec='${libname}${release}${shared_ext}$major'
11352  shlibpath_var=LD_LIBRARY_PATH
11353  ;;
11354
11355*)
11356  dynamic_linker=no
11357  ;;
11358esac
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11360$as_echo "$dynamic_linker" >&6; }
11361test "$dynamic_linker" = no && can_build_shared=no
11362
11363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11364if test "$GCC" = yes; then
11365  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11366fi
11367
11368if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11369  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11370fi
11371if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11372  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11373fi
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11467$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11468hardcode_action=
11469if test -n "$hardcode_libdir_flag_spec" ||
11470   test -n "$runpath_var" ||
11471   test "X$hardcode_automatic" = "Xyes" ; then
11472
11473  # We can hardcode non-existent directories.
11474  if test "$hardcode_direct" != no &&
11475     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11476     # have to relink, otherwise we might link with an installed library
11477     # when we should be linking with a yet-to-be-installed one
11478     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11479     test "$hardcode_minus_L" != no; then
11480    # Linking always hardcodes the temporary library directory.
11481    hardcode_action=relink
11482  else
11483    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11484    hardcode_action=immediate
11485  fi
11486else
11487  # We cannot hardcode anything, or else we can only hardcode existing
11488  # directories.
11489  hardcode_action=unsupported
11490fi
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11492$as_echo "$hardcode_action" >&6; }
11493
11494if test "$hardcode_action" = relink ||
11495   test "$inherit_rpath" = yes; then
11496  # Fast installation is not supported
11497  enable_fast_install=no
11498elif test "$shlibpath_overrides_runpath" = yes ||
11499     test "$enable_shared" = no; then
11500  # Fast installation is not necessary
11501  enable_fast_install=needless
11502fi
11503
11504
11505
11506
11507
11508
11509  if test "x$enable_dlopen" != xyes; then
11510  enable_dlopen=unknown
11511  enable_dlopen_self=unknown
11512  enable_dlopen_self_static=unknown
11513else
11514  lt_cv_dlopen=no
11515  lt_cv_dlopen_libs=
11516
11517  case $host_os in
11518  beos*)
11519    lt_cv_dlopen="load_add_on"
11520    lt_cv_dlopen_libs=
11521    lt_cv_dlopen_self=yes
11522    ;;
11523
11524  mingw* | pw32* | cegcc*)
11525    lt_cv_dlopen="LoadLibrary"
11526    lt_cv_dlopen_libs=
11527    ;;
11528
11529  cygwin*)
11530    lt_cv_dlopen="dlopen"
11531    lt_cv_dlopen_libs=
11532    ;;
11533
11534  darwin*)
11535  # if libdl is installed we need to link against it
11536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11537$as_echo_n "checking for dlopen in -ldl... " >&6; }
11538if ${ac_cv_lib_dl_dlopen+:} false; then :
11539  $as_echo_n "(cached) " >&6
11540else
11541  ac_check_lib_save_LIBS=$LIBS
11542LIBS="-ldl  $LIBS"
11543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544/* end confdefs.h.  */
11545
11546/* Override any GCC internal prototype to avoid an error.
11547   Use char because int might match the return type of a GCC
11548   builtin and then its argument prototype would still apply.  */
11549#ifdef __cplusplus
11550extern "C"
11551#endif
11552char dlopen ();
11553int
11554main ()
11555{
11556return dlopen ();
11557  ;
11558  return 0;
11559}
11560_ACEOF
11561if ac_fn_c_try_link "$LINENO"; then :
11562  ac_cv_lib_dl_dlopen=yes
11563else
11564  ac_cv_lib_dl_dlopen=no
11565fi
11566rm -f core conftest.err conftest.$ac_objext \
11567    conftest$ac_exeext conftest.$ac_ext
11568LIBS=$ac_check_lib_save_LIBS
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11571$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11572if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11573  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11574else
11575
11576    lt_cv_dlopen="dyld"
11577    lt_cv_dlopen_libs=
11578    lt_cv_dlopen_self=yes
11579
11580fi
11581
11582    ;;
11583
11584  *)
11585    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11586if test "x$ac_cv_func_shl_load" = xyes; then :
11587  lt_cv_dlopen="shl_load"
11588else
11589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11590$as_echo_n "checking for shl_load in -ldld... " >&6; }
11591if ${ac_cv_lib_dld_shl_load+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  ac_check_lib_save_LIBS=$LIBS
11595LIBS="-ldld  $LIBS"
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598
11599/* Override any GCC internal prototype to avoid an error.
11600   Use char because int might match the return type of a GCC
11601   builtin and then its argument prototype would still apply.  */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char shl_load ();
11606int
11607main ()
11608{
11609return shl_load ();
11610  ;
11611  return 0;
11612}
11613_ACEOF
11614if ac_fn_c_try_link "$LINENO"; then :
11615  ac_cv_lib_dld_shl_load=yes
11616else
11617  ac_cv_lib_dld_shl_load=no
11618fi
11619rm -f core conftest.err conftest.$ac_objext \
11620    conftest$ac_exeext conftest.$ac_ext
11621LIBS=$ac_check_lib_save_LIBS
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11624$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11625if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11626  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11627else
11628  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11629if test "x$ac_cv_func_dlopen" = xyes; then :
11630  lt_cv_dlopen="dlopen"
11631else
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11633$as_echo_n "checking for dlopen in -ldl... " >&6; }
11634if ${ac_cv_lib_dl_dlopen+:} false; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  ac_check_lib_save_LIBS=$LIBS
11638LIBS="-ldl  $LIBS"
11639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640/* end confdefs.h.  */
11641
11642/* Override any GCC internal prototype to avoid an error.
11643   Use char because int might match the return type of a GCC
11644   builtin and then its argument prototype would still apply.  */
11645#ifdef __cplusplus
11646extern "C"
11647#endif
11648char dlopen ();
11649int
11650main ()
11651{
11652return dlopen ();
11653  ;
11654  return 0;
11655}
11656_ACEOF
11657if ac_fn_c_try_link "$LINENO"; then :
11658  ac_cv_lib_dl_dlopen=yes
11659else
11660  ac_cv_lib_dl_dlopen=no
11661fi
11662rm -f core conftest.err conftest.$ac_objext \
11663    conftest$ac_exeext conftest.$ac_ext
11664LIBS=$ac_check_lib_save_LIBS
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11667$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11668if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11669  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11670else
11671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11672$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11673if ${ac_cv_lib_svld_dlopen+:} false; then :
11674  $as_echo_n "(cached) " >&6
11675else
11676  ac_check_lib_save_LIBS=$LIBS
11677LIBS="-lsvld  $LIBS"
11678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679/* end confdefs.h.  */
11680
11681/* Override any GCC internal prototype to avoid an error.
11682   Use char because int might match the return type of a GCC
11683   builtin and then its argument prototype would still apply.  */
11684#ifdef __cplusplus
11685extern "C"
11686#endif
11687char dlopen ();
11688int
11689main ()
11690{
11691return dlopen ();
11692  ;
11693  return 0;
11694}
11695_ACEOF
11696if ac_fn_c_try_link "$LINENO"; then :
11697  ac_cv_lib_svld_dlopen=yes
11698else
11699  ac_cv_lib_svld_dlopen=no
11700fi
11701rm -f core conftest.err conftest.$ac_objext \
11702    conftest$ac_exeext conftest.$ac_ext
11703LIBS=$ac_check_lib_save_LIBS
11704fi
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11706$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11707if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11708  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11709else
11710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11711$as_echo_n "checking for dld_link in -ldld... " >&6; }
11712if ${ac_cv_lib_dld_dld_link+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  ac_check_lib_save_LIBS=$LIBS
11716LIBS="-ldld  $LIBS"
11717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718/* end confdefs.h.  */
11719
11720/* Override any GCC internal prototype to avoid an error.
11721   Use char because int might match the return type of a GCC
11722   builtin and then its argument prototype would still apply.  */
11723#ifdef __cplusplus
11724extern "C"
11725#endif
11726char dld_link ();
11727int
11728main ()
11729{
11730return dld_link ();
11731  ;
11732  return 0;
11733}
11734_ACEOF
11735if ac_fn_c_try_link "$LINENO"; then :
11736  ac_cv_lib_dld_dld_link=yes
11737else
11738  ac_cv_lib_dld_dld_link=no
11739fi
11740rm -f core conftest.err conftest.$ac_objext \
11741    conftest$ac_exeext conftest.$ac_ext
11742LIBS=$ac_check_lib_save_LIBS
11743fi
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11745$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11746if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11747  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11748fi
11749
11750
11751fi
11752
11753
11754fi
11755
11756
11757fi
11758
11759
11760fi
11761
11762
11763fi
11764
11765    ;;
11766  esac
11767
11768  if test "x$lt_cv_dlopen" != xno; then
11769    enable_dlopen=yes
11770  else
11771    enable_dlopen=no
11772  fi
11773
11774  case $lt_cv_dlopen in
11775  dlopen)
11776    save_CPPFLAGS="$CPPFLAGS"
11777    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11778
11779    save_LDFLAGS="$LDFLAGS"
11780    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11781
11782    save_LIBS="$LIBS"
11783    LIBS="$lt_cv_dlopen_libs $LIBS"
11784
11785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11786$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11787if ${lt_cv_dlopen_self+:} false; then :
11788  $as_echo_n "(cached) " >&6
11789else
11790  	  if test "$cross_compiling" = yes; then :
11791  lt_cv_dlopen_self=cross
11792else
11793  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11794  lt_status=$lt_dlunknown
11795  cat > conftest.$ac_ext <<_LT_EOF
11796#line $LINENO "configure"
11797#include "confdefs.h"
11798
11799#if HAVE_DLFCN_H
11800#include <dlfcn.h>
11801#endif
11802
11803#include <stdio.h>
11804
11805#ifdef RTLD_GLOBAL
11806#  define LT_DLGLOBAL		RTLD_GLOBAL
11807#else
11808#  ifdef DL_GLOBAL
11809#    define LT_DLGLOBAL		DL_GLOBAL
11810#  else
11811#    define LT_DLGLOBAL		0
11812#  endif
11813#endif
11814
11815/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11816   find out it does not work in some platform. */
11817#ifndef LT_DLLAZY_OR_NOW
11818#  ifdef RTLD_LAZY
11819#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11820#  else
11821#    ifdef DL_LAZY
11822#      define LT_DLLAZY_OR_NOW		DL_LAZY
11823#    else
11824#      ifdef RTLD_NOW
11825#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11826#      else
11827#        ifdef DL_NOW
11828#          define LT_DLLAZY_OR_NOW	DL_NOW
11829#        else
11830#          define LT_DLLAZY_OR_NOW	0
11831#        endif
11832#      endif
11833#    endif
11834#  endif
11835#endif
11836
11837/* When -fvisbility=hidden is used, assume the code has been annotated
11838   correspondingly for the symbols needed.  */
11839#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11840int fnord () __attribute__((visibility("default")));
11841#endif
11842
11843int fnord () { return 42; }
11844int main ()
11845{
11846  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11847  int status = $lt_dlunknown;
11848
11849  if (self)
11850    {
11851      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11852      else
11853        {
11854	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11855          else puts (dlerror ());
11856	}
11857      /* dlclose (self); */
11858    }
11859  else
11860    puts (dlerror ());
11861
11862  return status;
11863}
11864_LT_EOF
11865  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11866  (eval $ac_link) 2>&5
11867  ac_status=$?
11868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11870    (./conftest; exit; ) >&5 2>/dev/null
11871    lt_status=$?
11872    case x$lt_status in
11873      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11874      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11875      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11876    esac
11877  else :
11878    # compilation failed
11879    lt_cv_dlopen_self=no
11880  fi
11881fi
11882rm -fr conftest*
11883
11884
11885fi
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11887$as_echo "$lt_cv_dlopen_self" >&6; }
11888
11889    if test "x$lt_cv_dlopen_self" = xyes; then
11890      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11891      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11892$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11893if ${lt_cv_dlopen_self_static+:} false; then :
11894  $as_echo_n "(cached) " >&6
11895else
11896  	  if test "$cross_compiling" = yes; then :
11897  lt_cv_dlopen_self_static=cross
11898else
11899  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11900  lt_status=$lt_dlunknown
11901  cat > conftest.$ac_ext <<_LT_EOF
11902#line $LINENO "configure"
11903#include "confdefs.h"
11904
11905#if HAVE_DLFCN_H
11906#include <dlfcn.h>
11907#endif
11908
11909#include <stdio.h>
11910
11911#ifdef RTLD_GLOBAL
11912#  define LT_DLGLOBAL		RTLD_GLOBAL
11913#else
11914#  ifdef DL_GLOBAL
11915#    define LT_DLGLOBAL		DL_GLOBAL
11916#  else
11917#    define LT_DLGLOBAL		0
11918#  endif
11919#endif
11920
11921/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11922   find out it does not work in some platform. */
11923#ifndef LT_DLLAZY_OR_NOW
11924#  ifdef RTLD_LAZY
11925#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11926#  else
11927#    ifdef DL_LAZY
11928#      define LT_DLLAZY_OR_NOW		DL_LAZY
11929#    else
11930#      ifdef RTLD_NOW
11931#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11932#      else
11933#        ifdef DL_NOW
11934#          define LT_DLLAZY_OR_NOW	DL_NOW
11935#        else
11936#          define LT_DLLAZY_OR_NOW	0
11937#        endif
11938#      endif
11939#    endif
11940#  endif
11941#endif
11942
11943/* When -fvisbility=hidden is used, assume the code has been annotated
11944   correspondingly for the symbols needed.  */
11945#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11946int fnord () __attribute__((visibility("default")));
11947#endif
11948
11949int fnord () { return 42; }
11950int main ()
11951{
11952  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11953  int status = $lt_dlunknown;
11954
11955  if (self)
11956    {
11957      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11958      else
11959        {
11960	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11961          else puts (dlerror ());
11962	}
11963      /* dlclose (self); */
11964    }
11965  else
11966    puts (dlerror ());
11967
11968  return status;
11969}
11970_LT_EOF
11971  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11972  (eval $ac_link) 2>&5
11973  ac_status=$?
11974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11975  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11976    (./conftest; exit; ) >&5 2>/dev/null
11977    lt_status=$?
11978    case x$lt_status in
11979      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11980      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11981      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11982    esac
11983  else :
11984    # compilation failed
11985    lt_cv_dlopen_self_static=no
11986  fi
11987fi
11988rm -fr conftest*
11989
11990
11991fi
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11993$as_echo "$lt_cv_dlopen_self_static" >&6; }
11994    fi
11995
11996    CPPFLAGS="$save_CPPFLAGS"
11997    LDFLAGS="$save_LDFLAGS"
11998    LIBS="$save_LIBS"
11999    ;;
12000  esac
12001
12002  case $lt_cv_dlopen_self in
12003  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12004  *) enable_dlopen_self=unknown ;;
12005  esac
12006
12007  case $lt_cv_dlopen_self_static in
12008  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12009  *) enable_dlopen_self_static=unknown ;;
12010  esac
12011fi
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029striplib=
12030old_striplib=
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12032$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12033if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12034  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12035  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037$as_echo "yes" >&6; }
12038else
12039# FIXME - insert some real tests, host_os isn't really good enough
12040  case $host_os in
12041  darwin*)
12042    if test -n "$STRIP" ; then
12043      striplib="$STRIP -x"
12044      old_striplib="$STRIP -S"
12045      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046$as_echo "yes" >&6; }
12047    else
12048      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049$as_echo "no" >&6; }
12050    fi
12051    ;;
12052  *)
12053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054$as_echo "no" >&6; }
12055    ;;
12056  esac
12057fi
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070  # Report which library types will actually be built
12071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12072$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12074$as_echo "$can_build_shared" >&6; }
12075
12076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12077$as_echo_n "checking whether to build shared libraries... " >&6; }
12078  test "$can_build_shared" = "no" && enable_shared=no
12079
12080  # On AIX, shared libraries and static libraries use the same namespace, and
12081  # are all built from PIC.
12082  case $host_os in
12083  aix3*)
12084    test "$enable_shared" = yes && enable_static=no
12085    if test -n "$RANLIB"; then
12086      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12087      postinstall_cmds='$RANLIB $lib'
12088    fi
12089    ;;
12090
12091  aix[4-9]*)
12092    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12093      test "$enable_shared" = yes && enable_static=no
12094    fi
12095    ;;
12096  esac
12097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12098$as_echo "$enable_shared" >&6; }
12099
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12101$as_echo_n "checking whether to build static libraries... " >&6; }
12102  # Make sure either enable_shared or enable_static is yes.
12103  test "$enable_shared" = yes || enable_static=yes
12104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12105$as_echo "$enable_static" >&6; }
12106
12107
12108
12109
12110fi
12111ac_ext=cpp
12112ac_cpp='$CXXCPP $CPPFLAGS'
12113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12116
12117CC="$lt_save_CC"
12118
12119      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12120    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12121    (test "X$CXX" != "Xg++"))) ; then
12122  ac_ext=cpp
12123ac_cpp='$CXXCPP $CPPFLAGS'
12124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12128$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12129if test -z "$CXXCPP"; then
12130  if ${ac_cv_prog_CXXCPP+:} false; then :
12131  $as_echo_n "(cached) " >&6
12132else
12133      # Double quotes because CXXCPP needs to be expanded
12134    for CXXCPP in "$CXX -E" "/lib/cpp"
12135    do
12136      ac_preproc_ok=false
12137for ac_cxx_preproc_warn_flag in '' yes
12138do
12139  # Use a header file that comes with gcc, so configuring glibc
12140  # with a fresh cross-compiler works.
12141  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12142  # <limits.h> exists even on freestanding compilers.
12143  # On the NeXT, cc -E runs the code through the compiler's parser,
12144  # not just through cpp. "Syntax error" is here to catch this case.
12145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h.  */
12147#ifdef __STDC__
12148# include <limits.h>
12149#else
12150# include <assert.h>
12151#endif
12152		     Syntax error
12153_ACEOF
12154if ac_fn_cxx_try_cpp "$LINENO"; then :
12155
12156else
12157  # Broken: fails on valid input.
12158continue
12159fi
12160rm -f conftest.err conftest.i conftest.$ac_ext
12161
12162  # OK, works on sane cases.  Now check whether nonexistent headers
12163  # can be detected and how.
12164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h.  */
12166#include <ac_nonexistent.h>
12167_ACEOF
12168if ac_fn_cxx_try_cpp "$LINENO"; then :
12169  # Broken: success on invalid input.
12170continue
12171else
12172  # Passes both tests.
12173ac_preproc_ok=:
12174break
12175fi
12176rm -f conftest.err conftest.i conftest.$ac_ext
12177
12178done
12179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12180rm -f conftest.i conftest.err conftest.$ac_ext
12181if $ac_preproc_ok; then :
12182  break
12183fi
12184
12185    done
12186    ac_cv_prog_CXXCPP=$CXXCPP
12187
12188fi
12189  CXXCPP=$ac_cv_prog_CXXCPP
12190else
12191  ac_cv_prog_CXXCPP=$CXXCPP
12192fi
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12194$as_echo "$CXXCPP" >&6; }
12195ac_preproc_ok=false
12196for ac_cxx_preproc_warn_flag in '' yes
12197do
12198  # Use a header file that comes with gcc, so configuring glibc
12199  # with a fresh cross-compiler works.
12200  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12201  # <limits.h> exists even on freestanding compilers.
12202  # On the NeXT, cc -E runs the code through the compiler's parser,
12203  # not just through cpp. "Syntax error" is here to catch this case.
12204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205/* end confdefs.h.  */
12206#ifdef __STDC__
12207# include <limits.h>
12208#else
12209# include <assert.h>
12210#endif
12211		     Syntax error
12212_ACEOF
12213if ac_fn_cxx_try_cpp "$LINENO"; then :
12214
12215else
12216  # Broken: fails on valid input.
12217continue
12218fi
12219rm -f conftest.err conftest.i conftest.$ac_ext
12220
12221  # OK, works on sane cases.  Now check whether nonexistent headers
12222  # can be detected and how.
12223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224/* end confdefs.h.  */
12225#include <ac_nonexistent.h>
12226_ACEOF
12227if ac_fn_cxx_try_cpp "$LINENO"; then :
12228  # Broken: success on invalid input.
12229continue
12230else
12231  # Passes both tests.
12232ac_preproc_ok=:
12233break
12234fi
12235rm -f conftest.err conftest.i conftest.$ac_ext
12236
12237done
12238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12239rm -f conftest.i conftest.err conftest.$ac_ext
12240if $ac_preproc_ok; then :
12241
12242else
12243  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12245as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12246See \`config.log' for more details" "$LINENO" 5; }
12247fi
12248
12249ac_ext=cpp
12250ac_cpp='$CXXCPP $CPPFLAGS'
12251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12254
12255else
12256  _lt_caught_CXX_error=yes
12257fi
12258
12259ac_ext=cpp
12260ac_cpp='$CXXCPP $CPPFLAGS'
12261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12264
12265archive_cmds_need_lc_CXX=no
12266allow_undefined_flag_CXX=
12267always_export_symbols_CXX=no
12268archive_expsym_cmds_CXX=
12269compiler_needs_object_CXX=no
12270export_dynamic_flag_spec_CXX=
12271hardcode_direct_CXX=no
12272hardcode_direct_absolute_CXX=no
12273hardcode_libdir_flag_spec_CXX=
12274hardcode_libdir_separator_CXX=
12275hardcode_minus_L_CXX=no
12276hardcode_shlibpath_var_CXX=unsupported
12277hardcode_automatic_CXX=no
12278inherit_rpath_CXX=no
12279module_cmds_CXX=
12280module_expsym_cmds_CXX=
12281link_all_deplibs_CXX=unknown
12282old_archive_cmds_CXX=$old_archive_cmds
12283reload_flag_CXX=$reload_flag
12284reload_cmds_CXX=$reload_cmds
12285no_undefined_flag_CXX=
12286whole_archive_flag_spec_CXX=
12287enable_shared_with_static_runtimes_CXX=no
12288
12289# Source file extension for C++ test sources.
12290ac_ext=cpp
12291
12292# Object file extension for compiled C++ test sources.
12293objext=o
12294objext_CXX=$objext
12295
12296# No sense in running all these tests if we already determined that
12297# the CXX compiler isn't working.  Some variables (like enable_shared)
12298# are currently assumed to apply to all compilers on this platform,
12299# and will be corrupted by setting them based on a non-working compiler.
12300if test "$_lt_caught_CXX_error" != yes; then
12301  # Code to be used in simple compile tests
12302  lt_simple_compile_test_code="int some_variable = 0;"
12303
12304  # Code to be used in simple link tests
12305  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12306
12307  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12308
12309
12310
12311
12312
12313
12314# If no C compiler was specified, use CC.
12315LTCC=${LTCC-"$CC"}
12316
12317# If no C compiler flags were specified, use CFLAGS.
12318LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12319
12320# Allow CC to be a program name with arguments.
12321compiler=$CC
12322
12323
12324  # save warnings/boilerplate of simple test code
12325  ac_outfile=conftest.$ac_objext
12326echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12327eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12328_lt_compiler_boilerplate=`cat conftest.err`
12329$RM conftest*
12330
12331  ac_outfile=conftest.$ac_objext
12332echo "$lt_simple_link_test_code" >conftest.$ac_ext
12333eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12334_lt_linker_boilerplate=`cat conftest.err`
12335$RM -r conftest*
12336
12337
12338  # Allow CC to be a program name with arguments.
12339  lt_save_CC=$CC
12340  lt_save_CFLAGS=$CFLAGS
12341  lt_save_LD=$LD
12342  lt_save_GCC=$GCC
12343  GCC=$GXX
12344  lt_save_with_gnu_ld=$with_gnu_ld
12345  lt_save_path_LD=$lt_cv_path_LD
12346  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12347    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12348  else
12349    $as_unset lt_cv_prog_gnu_ld
12350  fi
12351  if test -n "${lt_cv_path_LDCXX+set}"; then
12352    lt_cv_path_LD=$lt_cv_path_LDCXX
12353  else
12354    $as_unset lt_cv_path_LD
12355  fi
12356  test -z "${LDCXX+set}" || LD=$LDCXX
12357  CC=${CXX-"c++"}
12358  CFLAGS=$CXXFLAGS
12359  compiler=$CC
12360  compiler_CXX=$CC
12361  for cc_temp in $compiler""; do
12362  case $cc_temp in
12363    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12364    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12365    \-*) ;;
12366    *) break;;
12367  esac
12368done
12369cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12370
12371
12372  if test -n "$compiler"; then
12373    # We don't want -fno-exception when compiling C++ code, so set the
12374    # no_builtin_flag separately
12375    if test "$GXX" = yes; then
12376      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12377    else
12378      lt_prog_compiler_no_builtin_flag_CXX=
12379    fi
12380
12381    if test "$GXX" = yes; then
12382      # Set up default GNU C++ configuration
12383
12384
12385
12386# Check whether --with-gnu-ld was given.
12387if test "${with_gnu_ld+set}" = set; then :
12388  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12389else
12390  with_gnu_ld=no
12391fi
12392
12393ac_prog=ld
12394if test "$GCC" = yes; then
12395  # Check if gcc -print-prog-name=ld gives a path.
12396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12397$as_echo_n "checking for ld used by $CC... " >&6; }
12398  case $host in
12399  *-*-mingw*)
12400    # gcc leaves a trailing carriage return which upsets mingw
12401    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12402  *)
12403    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12404  esac
12405  case $ac_prog in
12406    # Accept absolute paths.
12407    [\\/]* | ?:[\\/]*)
12408      re_direlt='/[^/][^/]*/\.\./'
12409      # Canonicalize the pathname of ld
12410      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12411      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12412	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12413      done
12414      test -z "$LD" && LD="$ac_prog"
12415      ;;
12416  "")
12417    # If it fails, then pretend we aren't using GCC.
12418    ac_prog=ld
12419    ;;
12420  *)
12421    # If it is relative, then search for the first ld in PATH.
12422    with_gnu_ld=unknown
12423    ;;
12424  esac
12425elif test "$with_gnu_ld" = yes; then
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12427$as_echo_n "checking for GNU ld... " >&6; }
12428else
12429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12430$as_echo_n "checking for non-GNU ld... " >&6; }
12431fi
12432if ${lt_cv_path_LD+:} false; then :
12433  $as_echo_n "(cached) " >&6
12434else
12435  if test -z "$LD"; then
12436  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12437  for ac_dir in $PATH; do
12438    IFS="$lt_save_ifs"
12439    test -z "$ac_dir" && ac_dir=.
12440    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12441      lt_cv_path_LD="$ac_dir/$ac_prog"
12442      # Check to see if the program is GNU ld.  I'd rather use --version,
12443      # but apparently some variants of GNU ld only accept -v.
12444      # Break only if it was the GNU/non-GNU ld that we prefer.
12445      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12446      *GNU* | *'with BFD'*)
12447	test "$with_gnu_ld" != no && break
12448	;;
12449      *)
12450	test "$with_gnu_ld" != yes && break
12451	;;
12452      esac
12453    fi
12454  done
12455  IFS="$lt_save_ifs"
12456else
12457  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12458fi
12459fi
12460
12461LD="$lt_cv_path_LD"
12462if test -n "$LD"; then
12463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12464$as_echo "$LD" >&6; }
12465else
12466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467$as_echo "no" >&6; }
12468fi
12469test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12471$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12472if ${lt_cv_prog_gnu_ld+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12476case `$LD -v 2>&1 </dev/null` in
12477*GNU* | *'with BFD'*)
12478  lt_cv_prog_gnu_ld=yes
12479  ;;
12480*)
12481  lt_cv_prog_gnu_ld=no
12482  ;;
12483esac
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12486$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12487with_gnu_ld=$lt_cv_prog_gnu_ld
12488
12489
12490
12491
12492
12493
12494
12495      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12496      # archiving commands below assume that GNU ld is being used.
12497      if test "$with_gnu_ld" = yes; then
12498        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12499        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'
12500
12501        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12502        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12503
12504        # If archive_cmds runs LD, not CC, wlarc should be empty
12505        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12506        #     investigate it a little bit more. (MM)
12507        wlarc='${wl}'
12508
12509        # ancient GNU ld didn't support --whole-archive et. al.
12510        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12511	  $GREP 'no-whole-archive' > /dev/null; then
12512          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12513        else
12514          whole_archive_flag_spec_CXX=
12515        fi
12516      else
12517        with_gnu_ld=no
12518        wlarc=
12519
12520        # A generic and very simple default shared library creation
12521        # command for GNU C++ for the case where it uses the native
12522        # linker, instead of GNU ld.  If possible, this setting should
12523        # overridden to take advantage of the native linker features on
12524        # the platform it is being used on.
12525        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12526      fi
12527
12528      # Commands to make compiler produce verbose output that lists
12529      # what "hidden" libraries, object files and flags are used when
12530      # linking a shared library.
12531      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12532
12533    else
12534      GXX=no
12535      with_gnu_ld=no
12536      wlarc=
12537    fi
12538
12539    # PORTME: fill in a description of your system's C++ link characteristics
12540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12541$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12542    ld_shlibs_CXX=yes
12543    case $host_os in
12544      aix3*)
12545        # FIXME: insert proper C++ library support
12546        ld_shlibs_CXX=no
12547        ;;
12548      aix[4-9]*)
12549        if test "$host_cpu" = ia64; then
12550          # On IA64, the linker does run time linking by default, so we don't
12551          # have to do anything special.
12552          aix_use_runtimelinking=no
12553          exp_sym_flag='-Bexport'
12554          no_entry_flag=""
12555        else
12556          aix_use_runtimelinking=no
12557
12558          # Test if we are trying to use run time linking or normal
12559          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12560          # need to do runtime linking.
12561          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12562	    for ld_flag in $LDFLAGS; do
12563	      case $ld_flag in
12564	      *-brtl*)
12565	        aix_use_runtimelinking=yes
12566	        break
12567	        ;;
12568	      esac
12569	    done
12570	    ;;
12571          esac
12572
12573          exp_sym_flag='-bexport'
12574          no_entry_flag='-bnoentry'
12575        fi
12576
12577        # When large executables or shared objects are built, AIX ld can
12578        # have problems creating the table of contents.  If linking a library
12579        # or program results in "error TOC overflow" add -mminimal-toc to
12580        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12581        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12582
12583        archive_cmds_CXX=''
12584        hardcode_direct_CXX=yes
12585        hardcode_direct_absolute_CXX=yes
12586        hardcode_libdir_separator_CXX=':'
12587        link_all_deplibs_CXX=yes
12588        file_list_spec_CXX='${wl}-f,'
12589
12590        if test "$GXX" = yes; then
12591          case $host_os in aix4.[012]|aix4.[012].*)
12592          # We only want to do this on AIX 4.2 and lower, the check
12593          # below for broken collect2 doesn't work under 4.3+
12594	  collect2name=`${CC} -print-prog-name=collect2`
12595	  if test -f "$collect2name" &&
12596	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12597	  then
12598	    # We have reworked collect2
12599	    :
12600	  else
12601	    # We have old collect2
12602	    hardcode_direct_CXX=unsupported
12603	    # It fails to find uninstalled libraries when the uninstalled
12604	    # path is not listed in the libpath.  Setting hardcode_minus_L
12605	    # to unsupported forces relinking
12606	    hardcode_minus_L_CXX=yes
12607	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12608	    hardcode_libdir_separator_CXX=
12609	  fi
12610          esac
12611          shared_flag='-shared'
12612	  if test "$aix_use_runtimelinking" = yes; then
12613	    shared_flag="$shared_flag "'${wl}-G'
12614	  fi
12615        else
12616          # not using gcc
12617          if test "$host_cpu" = ia64; then
12618	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12619	  # chokes on -Wl,-G. The following line is correct:
12620	  shared_flag='-G'
12621          else
12622	    if test "$aix_use_runtimelinking" = yes; then
12623	      shared_flag='${wl}-G'
12624	    else
12625	      shared_flag='${wl}-bM:SRE'
12626	    fi
12627          fi
12628        fi
12629
12630        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12631        # It seems that -bexpall does not export symbols beginning with
12632        # underscore (_), so it is better to generate a list of symbols to
12633	# export.
12634        always_export_symbols_CXX=yes
12635        if test "$aix_use_runtimelinking" = yes; then
12636          # Warning - without using the other runtime loading flags (-brtl),
12637          # -berok will link without error, but may produce a broken library.
12638          allow_undefined_flag_CXX='-berok'
12639          # Determine the default libpath from the value encoded in an empty
12640          # executable.
12641          if test "${lt_cv_aix_libpath+set}" = set; then
12642  aix_libpath=$lt_cv_aix_libpath
12643else
12644  if ${lt_cv_aix_libpath__CXX+:} false; then :
12645  $as_echo_n "(cached) " >&6
12646else
12647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648/* end confdefs.h.  */
12649
12650int
12651main ()
12652{
12653
12654  ;
12655  return 0;
12656}
12657_ACEOF
12658if ac_fn_cxx_try_link "$LINENO"; then :
12659
12660  lt_aix_libpath_sed='
12661      /Import File Strings/,/^$/ {
12662	  /^0/ {
12663	      s/^0  *\([^ ]*\) *$/\1/
12664	      p
12665	  }
12666      }'
12667  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12668  # Check for a 64-bit object if we didn't find anything.
12669  if test -z "$lt_cv_aix_libpath__CXX"; then
12670    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12671  fi
12672fi
12673rm -f core conftest.err conftest.$ac_objext \
12674    conftest$ac_exeext conftest.$ac_ext
12675  if test -z "$lt_cv_aix_libpath__CXX"; then
12676    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12677  fi
12678
12679fi
12680
12681  aix_libpath=$lt_cv_aix_libpath__CXX
12682fi
12683
12684          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12685
12686          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12687        else
12688          if test "$host_cpu" = ia64; then
12689	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12690	    allow_undefined_flag_CXX="-z nodefs"
12691	    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"
12692          else
12693	    # Determine the default libpath from the value encoded in an
12694	    # empty executable.
12695	    if test "${lt_cv_aix_libpath+set}" = set; then
12696  aix_libpath=$lt_cv_aix_libpath
12697else
12698  if ${lt_cv_aix_libpath__CXX+:} false; then :
12699  $as_echo_n "(cached) " >&6
12700else
12701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702/* end confdefs.h.  */
12703
12704int
12705main ()
12706{
12707
12708  ;
12709  return 0;
12710}
12711_ACEOF
12712if ac_fn_cxx_try_link "$LINENO"; then :
12713
12714  lt_aix_libpath_sed='
12715      /Import File Strings/,/^$/ {
12716	  /^0/ {
12717	      s/^0  *\([^ ]*\) *$/\1/
12718	      p
12719	  }
12720      }'
12721  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12722  # Check for a 64-bit object if we didn't find anything.
12723  if test -z "$lt_cv_aix_libpath__CXX"; then
12724    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12725  fi
12726fi
12727rm -f core conftest.err conftest.$ac_objext \
12728    conftest$ac_exeext conftest.$ac_ext
12729  if test -z "$lt_cv_aix_libpath__CXX"; then
12730    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12731  fi
12732
12733fi
12734
12735  aix_libpath=$lt_cv_aix_libpath__CXX
12736fi
12737
12738	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12739	    # Warning - without using the other run time loading flags,
12740	    # -berok will link without error, but may produce a broken library.
12741	    no_undefined_flag_CXX=' ${wl}-bernotok'
12742	    allow_undefined_flag_CXX=' ${wl}-berok'
12743	    if test "$with_gnu_ld" = yes; then
12744	      # We only use this code for GNU lds that support --whole-archive.
12745	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12746	    else
12747	      # Exported symbols can be pulled into shared objects from archives
12748	      whole_archive_flag_spec_CXX='$convenience'
12749	    fi
12750	    archive_cmds_need_lc_CXX=yes
12751	    # This is similar to how AIX traditionally builds its shared
12752	    # libraries.
12753	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12754          fi
12755        fi
12756        ;;
12757
12758      beos*)
12759	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12760	  allow_undefined_flag_CXX=unsupported
12761	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12762	  # support --undefined.  This deserves some investigation.  FIXME
12763	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12764	else
12765	  ld_shlibs_CXX=no
12766	fi
12767	;;
12768
12769      chorus*)
12770        case $cc_basename in
12771          *)
12772	  # FIXME: insert proper C++ library support
12773	  ld_shlibs_CXX=no
12774	  ;;
12775        esac
12776        ;;
12777
12778      cygwin* | mingw* | pw32* | cegcc*)
12779	case $GXX,$cc_basename in
12780	,cl* | no,cl*)
12781	  # Native MSVC
12782	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12783	  # no search path for DLLs.
12784	  hardcode_libdir_flag_spec_CXX=' '
12785	  allow_undefined_flag_CXX=unsupported
12786	  always_export_symbols_CXX=yes
12787	  file_list_spec_CXX='@'
12788	  # Tell ltmain to make .lib files, not .a files.
12789	  libext=lib
12790	  # Tell ltmain to make .dll files, not .so files.
12791	  shrext_cmds=".dll"
12792	  # FIXME: Setting linknames here is a bad hack.
12793	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12794	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12795	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12796	    else
12797	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12798	    fi~
12799	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12800	    linknames='
12801	  # The linker will not automatically build a static lib if we build a DLL.
12802	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12803	  enable_shared_with_static_runtimes_CXX=yes
12804	  # Don't use ranlib
12805	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12806	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12807	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12808	    case $lt_outputfile in
12809	      *.exe|*.EXE) ;;
12810	      *)
12811		lt_outputfile="$lt_outputfile.exe"
12812		lt_tool_outputfile="$lt_tool_outputfile.exe"
12813		;;
12814	    esac~
12815	    func_to_tool_file "$lt_outputfile"~
12816	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12817	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12818	      $RM "$lt_outputfile.manifest";
12819	    fi'
12820	  ;;
12821	*)
12822	  # g++
12823	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12824	  # as there is no search path for DLLs.
12825	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12826	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12827	  allow_undefined_flag_CXX=unsupported
12828	  always_export_symbols_CXX=no
12829	  enable_shared_with_static_runtimes_CXX=yes
12830
12831	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12832	    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'
12833	    # If the export-symbols file already is a .def file (1st line
12834	    # is EXPORTS), use it as is; otherwise, prepend...
12835	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12836	      cp $export_symbols $output_objdir/$soname.def;
12837	    else
12838	      echo EXPORTS > $output_objdir/$soname.def;
12839	      cat $export_symbols >> $output_objdir/$soname.def;
12840	    fi~
12841	    $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'
12842	  else
12843	    ld_shlibs_CXX=no
12844	  fi
12845	  ;;
12846	esac
12847	;;
12848      darwin* | rhapsody*)
12849
12850
12851  archive_cmds_need_lc_CXX=no
12852  hardcode_direct_CXX=no
12853  hardcode_automatic_CXX=yes
12854  hardcode_shlibpath_var_CXX=unsupported
12855  if test "$lt_cv_ld_force_load" = "yes"; then
12856    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\"`'
12857
12858  else
12859    whole_archive_flag_spec_CXX=''
12860  fi
12861  link_all_deplibs_CXX=yes
12862  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12863  case $cc_basename in
12864     ifort*) _lt_dar_can_shared=yes ;;
12865     *) _lt_dar_can_shared=$GCC ;;
12866  esac
12867  if test "$_lt_dar_can_shared" = "yes"; then
12868    output_verbose_link_cmd=func_echo_all
12869    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}"
12870    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12871    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}"
12872    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}"
12873       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12874      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}"
12875      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}"
12876    fi
12877
12878  else
12879  ld_shlibs_CXX=no
12880  fi
12881
12882	;;
12883
12884      dgux*)
12885        case $cc_basename in
12886          ec++*)
12887	    # FIXME: insert proper C++ library support
12888	    ld_shlibs_CXX=no
12889	    ;;
12890          ghcx*)
12891	    # Green Hills C++ Compiler
12892	    # FIXME: insert proper C++ library support
12893	    ld_shlibs_CXX=no
12894	    ;;
12895          *)
12896	    # FIXME: insert proper C++ library support
12897	    ld_shlibs_CXX=no
12898	    ;;
12899        esac
12900        ;;
12901
12902      freebsd2.*)
12903        # C++ shared libraries reported to be fairly broken before
12904	# switch to ELF
12905        ld_shlibs_CXX=no
12906        ;;
12907
12908      freebsd-elf*)
12909        archive_cmds_need_lc_CXX=no
12910        ;;
12911
12912      freebsd* | dragonfly*)
12913        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12914        # conventions
12915        ld_shlibs_CXX=yes
12916        ;;
12917
12918      gnu*)
12919        ;;
12920
12921      haiku*)
12922        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923        link_all_deplibs_CXX=yes
12924        ;;
12925
12926      hpux9*)
12927        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12928        hardcode_libdir_separator_CXX=:
12929        export_dynamic_flag_spec_CXX='${wl}-E'
12930        hardcode_direct_CXX=yes
12931        hardcode_minus_L_CXX=yes # Not in the search PATH,
12932				             # but as the default
12933				             # location of the library.
12934
12935        case $cc_basename in
12936          CC*)
12937            # FIXME: insert proper C++ library support
12938            ld_shlibs_CXX=no
12939            ;;
12940          aCC*)
12941            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12942            # Commands to make compiler produce verbose output that lists
12943            # what "hidden" libraries, object files and flags are used when
12944            # linking a shared library.
12945            #
12946            # There doesn't appear to be a way to prevent this compiler from
12947            # explicitly linking system object files so we need to strip them
12948            # from the output so that they don't get included in the library
12949            # dependencies.
12950            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"'
12951            ;;
12952          *)
12953            if test "$GXX" = yes; then
12954              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12955            else
12956              # FIXME: insert proper C++ library support
12957              ld_shlibs_CXX=no
12958            fi
12959            ;;
12960        esac
12961        ;;
12962
12963      hpux10*|hpux11*)
12964        if test $with_gnu_ld = no; then
12965	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12966	  hardcode_libdir_separator_CXX=:
12967
12968          case $host_cpu in
12969            hppa*64*|ia64*)
12970              ;;
12971            *)
12972	      export_dynamic_flag_spec_CXX='${wl}-E'
12973              ;;
12974          esac
12975        fi
12976        case $host_cpu in
12977          hppa*64*|ia64*)
12978            hardcode_direct_CXX=no
12979            hardcode_shlibpath_var_CXX=no
12980            ;;
12981          *)
12982            hardcode_direct_CXX=yes
12983            hardcode_direct_absolute_CXX=yes
12984            hardcode_minus_L_CXX=yes # Not in the search PATH,
12985					         # but as the default
12986					         # location of the library.
12987            ;;
12988        esac
12989
12990        case $cc_basename in
12991          CC*)
12992	    # FIXME: insert proper C++ library support
12993	    ld_shlibs_CXX=no
12994	    ;;
12995          aCC*)
12996	    case $host_cpu in
12997	      hppa*64*)
12998	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12999	        ;;
13000	      ia64*)
13001	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13002	        ;;
13003	      *)
13004	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13005	        ;;
13006	    esac
13007	    # Commands to make compiler produce verbose output that lists
13008	    # what "hidden" libraries, object files and flags are used when
13009	    # linking a shared library.
13010	    #
13011	    # There doesn't appear to be a way to prevent this compiler from
13012	    # explicitly linking system object files so we need to strip them
13013	    # from the output so that they don't get included in the library
13014	    # dependencies.
13015	    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"'
13016	    ;;
13017          *)
13018	    if test "$GXX" = yes; then
13019	      if test $with_gnu_ld = no; then
13020	        case $host_cpu in
13021	          hppa*64*)
13022	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13023	            ;;
13024	          ia64*)
13025	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026	            ;;
13027	          *)
13028	            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'
13029	            ;;
13030	        esac
13031	      fi
13032	    else
13033	      # FIXME: insert proper C++ library support
13034	      ld_shlibs_CXX=no
13035	    fi
13036	    ;;
13037        esac
13038        ;;
13039
13040      interix[3-9]*)
13041	hardcode_direct_CXX=no
13042	hardcode_shlibpath_var_CXX=no
13043	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13044	export_dynamic_flag_spec_CXX='${wl}-E'
13045	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13046	# Instead, shared libraries are loaded at an image base (0x10000000 by
13047	# default) and relocated if they conflict, which is a slow very memory
13048	# consuming and fragmenting process.  To avoid this, we pick a random,
13049	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13050	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13051	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'
13052	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'
13053	;;
13054      irix5* | irix6*)
13055        case $cc_basename in
13056          CC*)
13057	    # SGI C++
13058	    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'
13059
13060	    # Archives containing C++ object files must be created using
13061	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13062	    # necessary to make sure instantiated templates are included
13063	    # in the archive.
13064	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13065	    ;;
13066          *)
13067	    if test "$GXX" = yes; then
13068	      if test "$with_gnu_ld" = no; then
13069	        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'
13070	      else
13071	        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'
13072	      fi
13073	    fi
13074	    link_all_deplibs_CXX=yes
13075	    ;;
13076        esac
13077        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13078        hardcode_libdir_separator_CXX=:
13079        inherit_rpath_CXX=yes
13080        ;;
13081
13082      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13083        case $cc_basename in
13084          KCC*)
13085	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13086
13087	    # KCC will only create a shared library if the output file
13088	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13089	    # to its proper name (with version) after linking.
13090	    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'
13091	    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'
13092	    # Commands to make compiler produce verbose output that lists
13093	    # what "hidden" libraries, object files and flags are used when
13094	    # linking a shared library.
13095	    #
13096	    # There doesn't appear to be a way to prevent this compiler from
13097	    # explicitly linking system object files so we need to strip them
13098	    # from the output so that they don't get included in the library
13099	    # dependencies.
13100	    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"'
13101
13102	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13103	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13104
13105	    # Archives containing C++ object files must be created using
13106	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13107	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13108	    ;;
13109	  icpc* | ecpc* )
13110	    # Intel C++
13111	    with_gnu_ld=yes
13112	    # version 8.0 and above of icpc choke on multiply defined symbols
13113	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13114	    # earlier do not add the objects themselves.
13115	    case `$CC -V 2>&1` in
13116	      *"Version 7."*)
13117	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118		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'
13119		;;
13120	      *)  # Version 8.0 or newer
13121	        tmp_idyn=
13122	        case $host_cpu in
13123		  ia64*) tmp_idyn=' -i_dynamic';;
13124		esac
13125	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13126		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'
13127		;;
13128	    esac
13129	    archive_cmds_need_lc_CXX=no
13130	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13131	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13132	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13133	    ;;
13134          pgCC* | pgcpp*)
13135            # Portland Group C++ compiler
13136	    case `$CC -V` in
13137	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13138	      prelink_cmds_CXX='tpldir=Template.dir~
13139		rm -rf $tpldir~
13140		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13141		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13142	      old_archive_cmds_CXX='tpldir=Template.dir~
13143		rm -rf $tpldir~
13144		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13145		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13146		$RANLIB $oldlib'
13147	      archive_cmds_CXX='tpldir=Template.dir~
13148		rm -rf $tpldir~
13149		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13150		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13151	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13152		rm -rf $tpldir~
13153		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13154		$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'
13155	      ;;
13156	    *) # Version 6 and above use weak symbols
13157	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13158	      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'
13159	      ;;
13160	    esac
13161
13162	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13163	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13164	    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'
13165            ;;
13166	  cxx*)
13167	    # Compaq C++
13168	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169	    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'
13170
13171	    runpath_var=LD_RUN_PATH
13172	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13173	    hardcode_libdir_separator_CXX=:
13174
13175	    # Commands to make compiler produce verbose output that lists
13176	    # what "hidden" libraries, object files and flags are used when
13177	    # linking a shared library.
13178	    #
13179	    # There doesn't appear to be a way to prevent this compiler from
13180	    # explicitly linking system object files so we need to strip them
13181	    # from the output so that they don't get included in the library
13182	    # dependencies.
13183	    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'
13184	    ;;
13185	  xl* | mpixl* | bgxl*)
13186	    # IBM XL 8.0 on PPC, with GNU ld
13187	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13188	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13189	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190	    if test "x$supports_anon_versioning" = xyes; then
13191	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13192		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13193		echo "local: *; };" >> $output_objdir/$libname.ver~
13194		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13195	    fi
13196	    ;;
13197	  *)
13198	    case `$CC -V 2>&1 | sed 5q` in
13199	    *Sun\ C*)
13200	      # Sun C++ 5.9
13201	      no_undefined_flag_CXX=' -zdefs'
13202	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13203	      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'
13204	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13205	      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'
13206	      compiler_needs_object_CXX=yes
13207
13208	      # Not sure whether something based on
13209	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13210	      # would be better.
13211	      output_verbose_link_cmd='func_echo_all'
13212
13213	      # Archives containing C++ object files must be created using
13214	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13215	      # necessary to make sure instantiated templates are included
13216	      # in the archive.
13217	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13218	      ;;
13219	    esac
13220	    ;;
13221	esac
13222	;;
13223
13224      lynxos*)
13225        # FIXME: insert proper C++ library support
13226	ld_shlibs_CXX=no
13227	;;
13228
13229      m88k*)
13230        # FIXME: insert proper C++ library support
13231        ld_shlibs_CXX=no
13232	;;
13233
13234      mvs*)
13235        case $cc_basename in
13236          cxx*)
13237	    # FIXME: insert proper C++ library support
13238	    ld_shlibs_CXX=no
13239	    ;;
13240	  *)
13241	    # FIXME: insert proper C++ library support
13242	    ld_shlibs_CXX=no
13243	    ;;
13244	esac
13245	;;
13246
13247      netbsd*)
13248        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13249	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13250	  wlarc=
13251	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13252	  hardcode_direct_CXX=yes
13253	  hardcode_shlibpath_var_CXX=no
13254	fi
13255	# Workaround some broken pre-1.5 toolchains
13256	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13257	;;
13258
13259      *nto* | *qnx*)
13260        ld_shlibs_CXX=yes
13261	;;
13262
13263      openbsd2*)
13264        # C++ shared libraries are fairly broken
13265	ld_shlibs_CXX=no
13266	;;
13267
13268      openbsd*)
13269	if test -f /usr/libexec/ld.so; then
13270	  hardcode_direct_CXX=yes
13271	  hardcode_shlibpath_var_CXX=no
13272	  hardcode_direct_absolute_CXX=yes
13273	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13274	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13275	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13276	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13277	    export_dynamic_flag_spec_CXX='${wl}-E'
13278	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13279	  fi
13280	  output_verbose_link_cmd=func_echo_all
13281	else
13282	  ld_shlibs_CXX=no
13283	fi
13284	;;
13285
13286      osf3* | osf4* | osf5*)
13287        case $cc_basename in
13288          KCC*)
13289	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13290
13291	    # KCC will only create a shared library if the output file
13292	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13293	    # to its proper name (with version) after linking.
13294	    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'
13295
13296	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13297	    hardcode_libdir_separator_CXX=:
13298
13299	    # Archives containing C++ object files must be created using
13300	    # the KAI C++ compiler.
13301	    case $host in
13302	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13303	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13304	    esac
13305	    ;;
13306          RCC*)
13307	    # Rational C++ 2.4.1
13308	    # FIXME: insert proper C++ library support
13309	    ld_shlibs_CXX=no
13310	    ;;
13311          cxx*)
13312	    case $host in
13313	      osf3*)
13314	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13315	        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'
13316	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13317		;;
13318	      *)
13319	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13320	        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'
13321	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13322	          echo "-hidden">> $lib.exp~
13323	          $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~
13324	          $RM $lib.exp'
13325	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13326		;;
13327	    esac
13328
13329	    hardcode_libdir_separator_CXX=:
13330
13331	    # Commands to make compiler produce verbose output that lists
13332	    # what "hidden" libraries, object files and flags are used when
13333	    # linking a shared library.
13334	    #
13335	    # There doesn't appear to be a way to prevent this compiler from
13336	    # explicitly linking system object files so we need to strip them
13337	    # from the output so that they don't get included in the library
13338	    # dependencies.
13339	    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"'
13340	    ;;
13341	  *)
13342	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13343	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13344	      case $host in
13345	        osf3*)
13346	          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'
13347		  ;;
13348	        *)
13349	          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'
13350		  ;;
13351	      esac
13352
13353	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13354	      hardcode_libdir_separator_CXX=:
13355
13356	      # Commands to make compiler produce verbose output that lists
13357	      # what "hidden" libraries, object files and flags are used when
13358	      # linking a shared library.
13359	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13360
13361	    else
13362	      # FIXME: insert proper C++ library support
13363	      ld_shlibs_CXX=no
13364	    fi
13365	    ;;
13366        esac
13367        ;;
13368
13369      psos*)
13370        # FIXME: insert proper C++ library support
13371        ld_shlibs_CXX=no
13372        ;;
13373
13374      sunos4*)
13375        case $cc_basename in
13376          CC*)
13377	    # Sun C++ 4.x
13378	    # FIXME: insert proper C++ library support
13379	    ld_shlibs_CXX=no
13380	    ;;
13381          lcc*)
13382	    # Lucid
13383	    # FIXME: insert proper C++ library support
13384	    ld_shlibs_CXX=no
13385	    ;;
13386          *)
13387	    # FIXME: insert proper C++ library support
13388	    ld_shlibs_CXX=no
13389	    ;;
13390        esac
13391        ;;
13392
13393      solaris*)
13394        case $cc_basename in
13395          CC* | sunCC*)
13396	    # Sun C++ 4.2, 5.x and Centerline C++
13397            archive_cmds_need_lc_CXX=yes
13398	    no_undefined_flag_CXX=' -zdefs'
13399	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13400	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13401	      $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'
13402
13403	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13404	    hardcode_shlibpath_var_CXX=no
13405	    case $host_os in
13406	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13407	      *)
13408		# The compiler driver will combine and reorder linker options,
13409		# but understands `-z linker_flag'.
13410	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13411		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13412	        ;;
13413	    esac
13414	    link_all_deplibs_CXX=yes
13415
13416	    output_verbose_link_cmd='func_echo_all'
13417
13418	    # Archives containing C++ object files must be created using
13419	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13420	    # necessary to make sure instantiated templates are included
13421	    # in the archive.
13422	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13423	    ;;
13424          gcx*)
13425	    # Green Hills C++ Compiler
13426	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13427
13428	    # The C++ compiler must be used to create the archive.
13429	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13430	    ;;
13431          *)
13432	    # GNU C++ compiler with Solaris linker
13433	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13434	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13435	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13436	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13437	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13438		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13439
13440	        # Commands to make compiler produce verbose output that lists
13441	        # what "hidden" libraries, object files and flags are used when
13442	        # linking a shared library.
13443	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13444	      else
13445	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13446	        # platform.
13447	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13448	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13449		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13450
13451	        # Commands to make compiler produce verbose output that lists
13452	        # what "hidden" libraries, object files and flags are used when
13453	        # linking a shared library.
13454	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13455	      fi
13456
13457	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13458	      case $host_os in
13459		solaris2.[0-5] | solaris2.[0-5].*) ;;
13460		*)
13461		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13462		  ;;
13463	      esac
13464	    fi
13465	    ;;
13466        esac
13467        ;;
13468
13469    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13470      no_undefined_flag_CXX='${wl}-z,text'
13471      archive_cmds_need_lc_CXX=no
13472      hardcode_shlibpath_var_CXX=no
13473      runpath_var='LD_RUN_PATH'
13474
13475      case $cc_basename in
13476        CC*)
13477	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13478	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13479	  ;;
13480	*)
13481	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13482	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13483	  ;;
13484      esac
13485      ;;
13486
13487      sysv5* | sco3.2v5* | sco5v6*)
13488	# Note: We can NOT use -z defs as we might desire, because we do not
13489	# link with -lc, and that would cause any symbols used from libc to
13490	# always be unresolved, which means just about no library would
13491	# ever link correctly.  If we're not using GNU ld we use -z text
13492	# though, which does catch some bad symbols but isn't as heavy-handed
13493	# as -z defs.
13494	no_undefined_flag_CXX='${wl}-z,text'
13495	allow_undefined_flag_CXX='${wl}-z,nodefs'
13496	archive_cmds_need_lc_CXX=no
13497	hardcode_shlibpath_var_CXX=no
13498	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13499	hardcode_libdir_separator_CXX=':'
13500	link_all_deplibs_CXX=yes
13501	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13502	runpath_var='LD_RUN_PATH'
13503
13504	case $cc_basename in
13505          CC*)
13506	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13508	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13509	      '"$old_archive_cmds_CXX"
13510	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13511	      '"$reload_cmds_CXX"
13512	    ;;
13513	  *)
13514	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516	    ;;
13517	esac
13518      ;;
13519
13520      tandem*)
13521        case $cc_basename in
13522          NCC*)
13523	    # NonStop-UX NCC 3.20
13524	    # FIXME: insert proper C++ library support
13525	    ld_shlibs_CXX=no
13526	    ;;
13527          *)
13528	    # FIXME: insert proper C++ library support
13529	    ld_shlibs_CXX=no
13530	    ;;
13531        esac
13532        ;;
13533
13534      vxworks*)
13535        # FIXME: insert proper C++ library support
13536        ld_shlibs_CXX=no
13537        ;;
13538
13539      *)
13540        # FIXME: insert proper C++ library support
13541        ld_shlibs_CXX=no
13542        ;;
13543    esac
13544
13545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13546$as_echo "$ld_shlibs_CXX" >&6; }
13547    test "$ld_shlibs_CXX" = no && can_build_shared=no
13548
13549    GCC_CXX="$GXX"
13550    LD_CXX="$LD"
13551
13552    ## CAVEAT EMPTOR:
13553    ## There is no encapsulation within the following macros, do not change
13554    ## the running order or otherwise move them around unless you know exactly
13555    ## what you are doing...
13556    # Dependencies to place before and after the object being linked:
13557predep_objects_CXX=
13558postdep_objects_CXX=
13559predeps_CXX=
13560postdeps_CXX=
13561compiler_lib_search_path_CXX=
13562
13563cat > conftest.$ac_ext <<_LT_EOF
13564class Foo
13565{
13566public:
13567  Foo (void) { a = 0; }
13568private:
13569  int a;
13570};
13571_LT_EOF
13572
13573
13574_lt_libdeps_save_CFLAGS=$CFLAGS
13575case "$CC $CFLAGS " in #(
13576*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13577*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13578*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13579esac
13580
13581if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13582  (eval $ac_compile) 2>&5
13583  ac_status=$?
13584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13585  test $ac_status = 0; }; then
13586  # Parse the compiler output and extract the necessary
13587  # objects, libraries and library flags.
13588
13589  # Sentinel used to keep track of whether or not we are before
13590  # the conftest object file.
13591  pre_test_object_deps_done=no
13592
13593  for p in `eval "$output_verbose_link_cmd"`; do
13594    case ${prev}${p} in
13595
13596    -L* | -R* | -l*)
13597       # Some compilers place space between "-{L,R}" and the path.
13598       # Remove the space.
13599       if test $p = "-L" ||
13600          test $p = "-R"; then
13601	 prev=$p
13602	 continue
13603       fi
13604
13605       # Expand the sysroot to ease extracting the directories later.
13606       if test -z "$prev"; then
13607         case $p in
13608         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13609         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13610         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13611         esac
13612       fi
13613       case $p in
13614       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13615       esac
13616       if test "$pre_test_object_deps_done" = no; then
13617	 case ${prev} in
13618	 -L | -R)
13619	   # Internal compiler library paths should come after those
13620	   # provided the user.  The postdeps already come after the
13621	   # user supplied libs so there is no need to process them.
13622	   if test -z "$compiler_lib_search_path_CXX"; then
13623	     compiler_lib_search_path_CXX="${prev}${p}"
13624	   else
13625	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13626	   fi
13627	   ;;
13628	 # The "-l" case would never come before the object being
13629	 # linked, so don't bother handling this case.
13630	 esac
13631       else
13632	 if test -z "$postdeps_CXX"; then
13633	   postdeps_CXX="${prev}${p}"
13634	 else
13635	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13636	 fi
13637       fi
13638       prev=
13639       ;;
13640
13641    *.lto.$objext) ;; # Ignore GCC LTO objects
13642    *.$objext)
13643       # This assumes that the test object file only shows up
13644       # once in the compiler output.
13645       if test "$p" = "conftest.$objext"; then
13646	 pre_test_object_deps_done=yes
13647	 continue
13648       fi
13649
13650       if test "$pre_test_object_deps_done" = no; then
13651	 if test -z "$predep_objects_CXX"; then
13652	   predep_objects_CXX="$p"
13653	 else
13654	   predep_objects_CXX="$predep_objects_CXX $p"
13655	 fi
13656       else
13657	 if test -z "$postdep_objects_CXX"; then
13658	   postdep_objects_CXX="$p"
13659	 else
13660	   postdep_objects_CXX="$postdep_objects_CXX $p"
13661	 fi
13662       fi
13663       ;;
13664
13665    *) ;; # Ignore the rest.
13666
13667    esac
13668  done
13669
13670  # Clean up.
13671  rm -f a.out a.exe
13672else
13673  echo "libtool.m4: error: problem compiling CXX test program"
13674fi
13675
13676$RM -f confest.$objext
13677CFLAGS=$_lt_libdeps_save_CFLAGS
13678
13679# PORTME: override above test on systems where it is broken
13680case $host_os in
13681interix[3-9]*)
13682  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13683  # hack all around it, let's just trust "g++" to DTRT.
13684  predep_objects_CXX=
13685  postdep_objects_CXX=
13686  postdeps_CXX=
13687  ;;
13688
13689linux*)
13690  case `$CC -V 2>&1 | sed 5q` in
13691  *Sun\ C*)
13692    # Sun C++ 5.9
13693
13694    # The more standards-conforming stlport4 library is
13695    # incompatible with the Cstd library. Avoid specifying
13696    # it if it's in CXXFLAGS. Ignore libCrun as
13697    # -library=stlport4 depends on it.
13698    case " $CXX $CXXFLAGS " in
13699    *" -library=stlport4 "*)
13700      solaris_use_stlport4=yes
13701      ;;
13702    esac
13703
13704    if test "$solaris_use_stlport4" != yes; then
13705      postdeps_CXX='-library=Cstd -library=Crun'
13706    fi
13707    ;;
13708  esac
13709  ;;
13710
13711solaris*)
13712  case $cc_basename in
13713  CC* | sunCC*)
13714    # The more standards-conforming stlport4 library is
13715    # incompatible with the Cstd library. Avoid specifying
13716    # it if it's in CXXFLAGS. Ignore libCrun as
13717    # -library=stlport4 depends on it.
13718    case " $CXX $CXXFLAGS " in
13719    *" -library=stlport4 "*)
13720      solaris_use_stlport4=yes
13721      ;;
13722    esac
13723
13724    # Adding this requires a known-good setup of shared libraries for
13725    # Sun compiler versions before 5.6, else PIC objects from an old
13726    # archive will be linked into the output, leading to subtle bugs.
13727    if test "$solaris_use_stlport4" != yes; then
13728      postdeps_CXX='-library=Cstd -library=Crun'
13729    fi
13730    ;;
13731  esac
13732  ;;
13733esac
13734
13735
13736case " $postdeps_CXX " in
13737*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13738esac
13739 compiler_lib_search_dirs_CXX=
13740if test -n "${compiler_lib_search_path_CXX}"; then
13741 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13742fi
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774    lt_prog_compiler_wl_CXX=
13775lt_prog_compiler_pic_CXX=
13776lt_prog_compiler_static_CXX=
13777
13778
13779  # C++ specific cases for pic, static, wl, etc.
13780  if test "$GXX" = yes; then
13781    lt_prog_compiler_wl_CXX='-Wl,'
13782    lt_prog_compiler_static_CXX='-static'
13783
13784    case $host_os in
13785    aix*)
13786      # All AIX code is PIC.
13787      if test "$host_cpu" = ia64; then
13788	# AIX 5 now supports IA64 processor
13789	lt_prog_compiler_static_CXX='-Bstatic'
13790      fi
13791      ;;
13792
13793    amigaos*)
13794      case $host_cpu in
13795      powerpc)
13796            # see comment about AmigaOS4 .so support
13797            lt_prog_compiler_pic_CXX='-fPIC'
13798        ;;
13799      m68k)
13800            # FIXME: we need at least 68020 code to build shared libraries, but
13801            # adding the `-m68020' flag to GCC prevents building anything better,
13802            # like `-m68040'.
13803            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13804        ;;
13805      esac
13806      ;;
13807
13808    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13809      # PIC is the default for these OSes.
13810      ;;
13811    mingw* | cygwin* | os2* | pw32* | cegcc*)
13812      # This hack is so that the source file can tell whether it is being
13813      # built for inclusion in a dll (and should export symbols for example).
13814      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13815      # (--disable-auto-import) libraries
13816      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13817      ;;
13818    darwin* | rhapsody*)
13819      # PIC is the default on this platform
13820      # Common symbols not allowed in MH_DYLIB files
13821      lt_prog_compiler_pic_CXX='-fno-common'
13822      ;;
13823    *djgpp*)
13824      # DJGPP does not support shared libraries at all
13825      lt_prog_compiler_pic_CXX=
13826      ;;
13827    haiku*)
13828      # PIC is the default for Haiku.
13829      # The "-static" flag exists, but is broken.
13830      lt_prog_compiler_static_CXX=
13831      ;;
13832    interix[3-9]*)
13833      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13834      # Instead, we relocate shared libraries at runtime.
13835      ;;
13836    sysv4*MP*)
13837      if test -d /usr/nec; then
13838	lt_prog_compiler_pic_CXX=-Kconform_pic
13839      fi
13840      ;;
13841    hpux*)
13842      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13843      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13844      # sets the default TLS model and affects inlining.
13845      case $host_cpu in
13846      hppa*64*)
13847	;;
13848      *)
13849	lt_prog_compiler_pic_CXX='-fPIC'
13850	;;
13851      esac
13852      ;;
13853    *qnx* | *nto*)
13854      # QNX uses GNU C++, but need to define -shared option too, otherwise
13855      # it will coredump.
13856      lt_prog_compiler_pic_CXX='-fPIC -shared'
13857      ;;
13858    *)
13859      lt_prog_compiler_pic_CXX='-fPIC'
13860      ;;
13861    esac
13862  else
13863    case $host_os in
13864      aix[4-9]*)
13865	# All AIX code is PIC.
13866	if test "$host_cpu" = ia64; then
13867	  # AIX 5 now supports IA64 processor
13868	  lt_prog_compiler_static_CXX='-Bstatic'
13869	else
13870	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13871	fi
13872	;;
13873      chorus*)
13874	case $cc_basename in
13875	cxch68*)
13876	  # Green Hills C++ Compiler
13877	  # _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"
13878	  ;;
13879	esac
13880	;;
13881      mingw* | cygwin* | os2* | pw32* | cegcc*)
13882	# This hack is so that the source file can tell whether it is being
13883	# built for inclusion in a dll (and should export symbols for example).
13884	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13885	;;
13886      dgux*)
13887	case $cc_basename in
13888	  ec++*)
13889	    lt_prog_compiler_pic_CXX='-KPIC'
13890	    ;;
13891	  ghcx*)
13892	    # Green Hills C++ Compiler
13893	    lt_prog_compiler_pic_CXX='-pic'
13894	    ;;
13895	  *)
13896	    ;;
13897	esac
13898	;;
13899      freebsd* | dragonfly*)
13900	# FreeBSD uses GNU C++
13901	;;
13902      hpux9* | hpux10* | hpux11*)
13903	case $cc_basename in
13904	  CC*)
13905	    lt_prog_compiler_wl_CXX='-Wl,'
13906	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13907	    if test "$host_cpu" != ia64; then
13908	      lt_prog_compiler_pic_CXX='+Z'
13909	    fi
13910	    ;;
13911	  aCC*)
13912	    lt_prog_compiler_wl_CXX='-Wl,'
13913	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13914	    case $host_cpu in
13915	    hppa*64*|ia64*)
13916	      # +Z the default
13917	      ;;
13918	    *)
13919	      lt_prog_compiler_pic_CXX='+Z'
13920	      ;;
13921	    esac
13922	    ;;
13923	  *)
13924	    ;;
13925	esac
13926	;;
13927      interix*)
13928	# This is c89, which is MS Visual C++ (no shared libs)
13929	# Anyone wants to do a port?
13930	;;
13931      irix5* | irix6* | nonstopux*)
13932	case $cc_basename in
13933	  CC*)
13934	    lt_prog_compiler_wl_CXX='-Wl,'
13935	    lt_prog_compiler_static_CXX='-non_shared'
13936	    # CC pic flag -KPIC is the default.
13937	    ;;
13938	  *)
13939	    ;;
13940	esac
13941	;;
13942      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13943	case $cc_basename in
13944	  KCC*)
13945	    # KAI C++ Compiler
13946	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13947	    lt_prog_compiler_pic_CXX='-fPIC'
13948	    ;;
13949	  ecpc* )
13950	    # old Intel C++ for x86_64 which still supported -KPIC.
13951	    lt_prog_compiler_wl_CXX='-Wl,'
13952	    lt_prog_compiler_pic_CXX='-KPIC'
13953	    lt_prog_compiler_static_CXX='-static'
13954	    ;;
13955	  icpc* )
13956	    # Intel C++, used to be incompatible with GCC.
13957	    # ICC 10 doesn't accept -KPIC any more.
13958	    lt_prog_compiler_wl_CXX='-Wl,'
13959	    lt_prog_compiler_pic_CXX='-fPIC'
13960	    lt_prog_compiler_static_CXX='-static'
13961	    ;;
13962	  pgCC* | pgcpp*)
13963	    # Portland Group C++ compiler
13964	    lt_prog_compiler_wl_CXX='-Wl,'
13965	    lt_prog_compiler_pic_CXX='-fpic'
13966	    lt_prog_compiler_static_CXX='-Bstatic'
13967	    ;;
13968	  cxx*)
13969	    # Compaq C++
13970	    # Make sure the PIC flag is empty.  It appears that all Alpha
13971	    # Linux and Compaq Tru64 Unix objects are PIC.
13972	    lt_prog_compiler_pic_CXX=
13973	    lt_prog_compiler_static_CXX='-non_shared'
13974	    ;;
13975	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13976	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13977	    lt_prog_compiler_wl_CXX='-Wl,'
13978	    lt_prog_compiler_pic_CXX='-qpic'
13979	    lt_prog_compiler_static_CXX='-qstaticlink'
13980	    ;;
13981	  *)
13982	    case `$CC -V 2>&1 | sed 5q` in
13983	    *Sun\ C*)
13984	      # Sun C++ 5.9
13985	      lt_prog_compiler_pic_CXX='-KPIC'
13986	      lt_prog_compiler_static_CXX='-Bstatic'
13987	      lt_prog_compiler_wl_CXX='-Qoption ld '
13988	      ;;
13989	    esac
13990	    ;;
13991	esac
13992	;;
13993      lynxos*)
13994	;;
13995      m88k*)
13996	;;
13997      mvs*)
13998	case $cc_basename in
13999	  cxx*)
14000	    lt_prog_compiler_pic_CXX='-W c,exportall'
14001	    ;;
14002	  *)
14003	    ;;
14004	esac
14005	;;
14006      netbsd* | netbsdelf*-gnu)
14007	;;
14008      *qnx* | *nto*)
14009        # QNX uses GNU C++, but need to define -shared option too, otherwise
14010        # it will coredump.
14011        lt_prog_compiler_pic_CXX='-fPIC -shared'
14012        ;;
14013      osf3* | osf4* | osf5*)
14014	case $cc_basename in
14015	  KCC*)
14016	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14017	    ;;
14018	  RCC*)
14019	    # Rational C++ 2.4.1
14020	    lt_prog_compiler_pic_CXX='-pic'
14021	    ;;
14022	  cxx*)
14023	    # Digital/Compaq C++
14024	    lt_prog_compiler_wl_CXX='-Wl,'
14025	    # Make sure the PIC flag is empty.  It appears that all Alpha
14026	    # Linux and Compaq Tru64 Unix objects are PIC.
14027	    lt_prog_compiler_pic_CXX=
14028	    lt_prog_compiler_static_CXX='-non_shared'
14029	    ;;
14030	  *)
14031	    ;;
14032	esac
14033	;;
14034      psos*)
14035	;;
14036      solaris*)
14037	case $cc_basename in
14038	  CC* | sunCC*)
14039	    # Sun C++ 4.2, 5.x and Centerline C++
14040	    lt_prog_compiler_pic_CXX='-KPIC'
14041	    lt_prog_compiler_static_CXX='-Bstatic'
14042	    lt_prog_compiler_wl_CXX='-Qoption ld '
14043	    ;;
14044	  gcx*)
14045	    # Green Hills C++ Compiler
14046	    lt_prog_compiler_pic_CXX='-PIC'
14047	    ;;
14048	  *)
14049	    ;;
14050	esac
14051	;;
14052      sunos4*)
14053	case $cc_basename in
14054	  CC*)
14055	    # Sun C++ 4.x
14056	    lt_prog_compiler_pic_CXX='-pic'
14057	    lt_prog_compiler_static_CXX='-Bstatic'
14058	    ;;
14059	  lcc*)
14060	    # Lucid
14061	    lt_prog_compiler_pic_CXX='-pic'
14062	    ;;
14063	  *)
14064	    ;;
14065	esac
14066	;;
14067      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14068	case $cc_basename in
14069	  CC*)
14070	    lt_prog_compiler_wl_CXX='-Wl,'
14071	    lt_prog_compiler_pic_CXX='-KPIC'
14072	    lt_prog_compiler_static_CXX='-Bstatic'
14073	    ;;
14074	esac
14075	;;
14076      tandem*)
14077	case $cc_basename in
14078	  NCC*)
14079	    # NonStop-UX NCC 3.20
14080	    lt_prog_compiler_pic_CXX='-KPIC'
14081	    ;;
14082	  *)
14083	    ;;
14084	esac
14085	;;
14086      vxworks*)
14087	;;
14088      *)
14089	lt_prog_compiler_can_build_shared_CXX=no
14090	;;
14091    esac
14092  fi
14093
14094case $host_os in
14095  # For platforms which do not support PIC, -DPIC is meaningless:
14096  *djgpp*)
14097    lt_prog_compiler_pic_CXX=
14098    ;;
14099  *)
14100    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14101    ;;
14102esac
14103
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14105$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14106if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14112$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14113lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14114
14115#
14116# Check to make sure the PIC flag actually works.
14117#
14118if test -n "$lt_prog_compiler_pic_CXX"; then
14119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14120$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14121if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  lt_cv_prog_compiler_pic_works_CXX=no
14125   ac_outfile=conftest.$ac_objext
14126   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14127   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14128   # Insert the option either (1) after the last *FLAGS variable, or
14129   # (2) before a word containing "conftest.", or (3) at the end.
14130   # Note that $ac_compile itself does not contain backslashes and begins
14131   # with a dollar sign (not a hyphen), so the echo should work correctly.
14132   # The option is referenced via a variable to avoid confusing sed.
14133   lt_compile=`echo "$ac_compile" | $SED \
14134   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136   -e 's:$: $lt_compiler_flag:'`
14137   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14138   (eval "$lt_compile" 2>conftest.err)
14139   ac_status=$?
14140   cat conftest.err >&5
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   if (exit $ac_status) && test -s "$ac_outfile"; then
14143     # The compiler can only warn and ignore the option if not recognized
14144     # So say no if there are warnings other than the usual output.
14145     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14146     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14147     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14148       lt_cv_prog_compiler_pic_works_CXX=yes
14149     fi
14150   fi
14151   $RM conftest*
14152
14153fi
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14155$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14156
14157if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14158    case $lt_prog_compiler_pic_CXX in
14159     "" | " "*) ;;
14160     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14161     esac
14162else
14163    lt_prog_compiler_pic_CXX=
14164     lt_prog_compiler_can_build_shared_CXX=no
14165fi
14166
14167fi
14168
14169
14170
14171
14172
14173#
14174# Check to make sure the static flag actually works.
14175#
14176wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14178$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14179if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14180  $as_echo_n "(cached) " >&6
14181else
14182  lt_cv_prog_compiler_static_works_CXX=no
14183   save_LDFLAGS="$LDFLAGS"
14184   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14185   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14186   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14187     # The linker can only warn and ignore the option if not recognized
14188     # So say no if there are warnings
14189     if test -s conftest.err; then
14190       # Append any errors to the config.log.
14191       cat conftest.err 1>&5
14192       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14193       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14194       if diff conftest.exp conftest.er2 >/dev/null; then
14195         lt_cv_prog_compiler_static_works_CXX=yes
14196       fi
14197     else
14198       lt_cv_prog_compiler_static_works_CXX=yes
14199     fi
14200   fi
14201   $RM -r conftest*
14202   LDFLAGS="$save_LDFLAGS"
14203
14204fi
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14206$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14207
14208if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14209    :
14210else
14211    lt_prog_compiler_static_CXX=
14212fi
14213
14214
14215
14216
14217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14218$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14219if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14220  $as_echo_n "(cached) " >&6
14221else
14222  lt_cv_prog_compiler_c_o_CXX=no
14223   $RM -r conftest 2>/dev/null
14224   mkdir conftest
14225   cd conftest
14226   mkdir out
14227   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14228
14229   lt_compiler_flag="-o out/conftest2.$ac_objext"
14230   # Insert the option either (1) after the last *FLAGS variable, or
14231   # (2) before a word containing "conftest.", or (3) at the end.
14232   # Note that $ac_compile itself does not contain backslashes and begins
14233   # with a dollar sign (not a hyphen), so the echo should work correctly.
14234   lt_compile=`echo "$ac_compile" | $SED \
14235   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14236   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14237   -e 's:$: $lt_compiler_flag:'`
14238   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14239   (eval "$lt_compile" 2>out/conftest.err)
14240   ac_status=$?
14241   cat out/conftest.err >&5
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14244   then
14245     # The compiler can only warn and ignore the option if not recognized
14246     # So say no if there are warnings
14247     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14248     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14249     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14250       lt_cv_prog_compiler_c_o_CXX=yes
14251     fi
14252   fi
14253   chmod u+w . 2>&5
14254   $RM conftest*
14255   # SGI C++ compiler will create directory out/ii_files/ for
14256   # template instantiation
14257   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14258   $RM out/* && rmdir out
14259   cd ..
14260   $RM -r conftest
14261   $RM conftest*
14262
14263fi
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14265$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14266
14267
14268
14269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14270$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14271if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14272  $as_echo_n "(cached) " >&6
14273else
14274  lt_cv_prog_compiler_c_o_CXX=no
14275   $RM -r conftest 2>/dev/null
14276   mkdir conftest
14277   cd conftest
14278   mkdir out
14279   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14280
14281   lt_compiler_flag="-o out/conftest2.$ac_objext"
14282   # Insert the option either (1) after the last *FLAGS variable, or
14283   # (2) before a word containing "conftest.", or (3) at the end.
14284   # Note that $ac_compile itself does not contain backslashes and begins
14285   # with a dollar sign (not a hyphen), so the echo should work correctly.
14286   lt_compile=`echo "$ac_compile" | $SED \
14287   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14288   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14289   -e 's:$: $lt_compiler_flag:'`
14290   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14291   (eval "$lt_compile" 2>out/conftest.err)
14292   ac_status=$?
14293   cat out/conftest.err >&5
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14296   then
14297     # The compiler can only warn and ignore the option if not recognized
14298     # So say no if there are warnings
14299     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14300     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14301     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14302       lt_cv_prog_compiler_c_o_CXX=yes
14303     fi
14304   fi
14305   chmod u+w . 2>&5
14306   $RM conftest*
14307   # SGI C++ compiler will create directory out/ii_files/ for
14308   # template instantiation
14309   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14310   $RM out/* && rmdir out
14311   cd ..
14312   $RM -r conftest
14313   $RM conftest*
14314
14315fi
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14317$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14318
14319
14320
14321
14322hard_links="nottested"
14323if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14324  # do not overwrite the value of need_locks provided by the user
14325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14326$as_echo_n "checking if we can lock with hard links... " >&6; }
14327  hard_links=yes
14328  $RM conftest*
14329  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14330  touch conftest.a
14331  ln conftest.a conftest.b 2>&5 || hard_links=no
14332  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14334$as_echo "$hard_links" >&6; }
14335  if test "$hard_links" = no; then
14336    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14337$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14338    need_locks=warn
14339  fi
14340else
14341  need_locks=no
14342fi
14343
14344
14345
14346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14347$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14348
14349  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14350  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14351  case $host_os in
14352  aix[4-9]*)
14353    # If we're using GNU nm, then we don't want the "-C" option.
14354    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14355    # Also, AIX nm treats weak defined symbols like other global defined
14356    # symbols, whereas GNU nm marks them as "W".
14357    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14358      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14359    else
14360      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14361    fi
14362    ;;
14363  pw32*)
14364    export_symbols_cmds_CXX="$ltdll_cmds"
14365    ;;
14366  cygwin* | mingw* | cegcc*)
14367    case $cc_basename in
14368    cl*)
14369      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14370      ;;
14371    *)
14372      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'
14373      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14374      ;;
14375    esac
14376    ;;
14377  linux* | k*bsd*-gnu | gnu*)
14378    link_all_deplibs_CXX=no
14379    ;;
14380  *)
14381    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14382    ;;
14383  esac
14384
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14386$as_echo "$ld_shlibs_CXX" >&6; }
14387test "$ld_shlibs_CXX" = no && can_build_shared=no
14388
14389with_gnu_ld_CXX=$with_gnu_ld
14390
14391
14392
14393
14394
14395
14396#
14397# Do we need to explicitly link libc?
14398#
14399case "x$archive_cmds_need_lc_CXX" in
14400x|xyes)
14401  # Assume -lc should be added
14402  archive_cmds_need_lc_CXX=yes
14403
14404  if test "$enable_shared" = yes && test "$GCC" = yes; then
14405    case $archive_cmds_CXX in
14406    *'~'*)
14407      # FIXME: we may have to deal with multi-command sequences.
14408      ;;
14409    '$CC '*)
14410      # Test whether the compiler implicitly links with -lc since on some
14411      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14412      # to ld, don't add -lc before -lgcc.
14413      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14414$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14415if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14416  $as_echo_n "(cached) " >&6
14417else
14418  $RM conftest*
14419	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14420
14421	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14422  (eval $ac_compile) 2>&5
14423  ac_status=$?
14424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425  test $ac_status = 0; } 2>conftest.err; then
14426	  soname=conftest
14427	  lib=conftest
14428	  libobjs=conftest.$ac_objext
14429	  deplibs=
14430	  wl=$lt_prog_compiler_wl_CXX
14431	  pic_flag=$lt_prog_compiler_pic_CXX
14432	  compiler_flags=-v
14433	  linker_flags=-v
14434	  verstring=
14435	  output_objdir=.
14436	  libname=conftest
14437	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14438	  allow_undefined_flag_CXX=
14439	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14440  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14441  ac_status=$?
14442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14443  test $ac_status = 0; }
14444	  then
14445	    lt_cv_archive_cmds_need_lc_CXX=no
14446	  else
14447	    lt_cv_archive_cmds_need_lc_CXX=yes
14448	  fi
14449	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14450	else
14451	  cat conftest.err 1>&5
14452	fi
14453	$RM conftest*
14454
14455fi
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14457$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14458      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14459      ;;
14460    esac
14461  fi
14462  ;;
14463esac
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14527$as_echo_n "checking dynamic linker characteristics... " >&6; }
14528
14529library_names_spec=
14530libname_spec='lib$name'
14531soname_spec=
14532shrext_cmds=".so"
14533postinstall_cmds=
14534postuninstall_cmds=
14535finish_cmds=
14536finish_eval=
14537shlibpath_var=
14538shlibpath_overrides_runpath=unknown
14539version_type=none
14540dynamic_linker="$host_os ld.so"
14541sys_lib_dlsearch_path_spec="/lib /usr/lib"
14542need_lib_prefix=unknown
14543hardcode_into_libs=no
14544
14545# when you set need_version to no, make sure it does not cause -set_version
14546# flags to be left without arguments
14547need_version=unknown
14548
14549case $host_os in
14550aix3*)
14551  version_type=linux # correct to gnu/linux during the next big refactor
14552  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14553  shlibpath_var=LIBPATH
14554
14555  # AIX 3 has no versioning support, so we append a major version to the name.
14556  soname_spec='${libname}${release}${shared_ext}$major'
14557  ;;
14558
14559aix[4-9]*)
14560  version_type=linux # correct to gnu/linux during the next big refactor
14561  need_lib_prefix=no
14562  need_version=no
14563  hardcode_into_libs=yes
14564  if test "$host_cpu" = ia64; then
14565    # AIX 5 supports IA64
14566    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14567    shlibpath_var=LD_LIBRARY_PATH
14568  else
14569    # With GCC up to 2.95.x, collect2 would create an import file
14570    # for dependence libraries.  The import file would start with
14571    # the line `#! .'.  This would cause the generated library to
14572    # depend on `.', always an invalid library.  This was fixed in
14573    # development snapshots of GCC prior to 3.0.
14574    case $host_os in
14575      aix4 | aix4.[01] | aix4.[01].*)
14576      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14577	   echo ' yes '
14578	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14579	:
14580      else
14581	can_build_shared=no
14582      fi
14583      ;;
14584    esac
14585    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14586    # soname into executable. Probably we can add versioning support to
14587    # collect2, so additional links can be useful in future.
14588    if test "$aix_use_runtimelinking" = yes; then
14589      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14590      # instead of lib<name>.a to let people know that these are not
14591      # typical AIX shared libraries.
14592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593    else
14594      # We preserve .a as extension for shared libraries through AIX4.2
14595      # and later when we are not doing run time linking.
14596      library_names_spec='${libname}${release}.a $libname.a'
14597      soname_spec='${libname}${release}${shared_ext}$major'
14598    fi
14599    shlibpath_var=LIBPATH
14600  fi
14601  ;;
14602
14603amigaos*)
14604  case $host_cpu in
14605  powerpc)
14606    # Since July 2007 AmigaOS4 officially supports .so libraries.
14607    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609    ;;
14610  m68k)
14611    library_names_spec='$libname.ixlibrary $libname.a'
14612    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14613    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14614    ;;
14615  esac
14616  ;;
14617
14618beos*)
14619  library_names_spec='${libname}${shared_ext}'
14620  dynamic_linker="$host_os ld.so"
14621  shlibpath_var=LIBRARY_PATH
14622  ;;
14623
14624bsdi[45]*)
14625  version_type=linux # correct to gnu/linux during the next big refactor
14626  need_version=no
14627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14628  soname_spec='${libname}${release}${shared_ext}$major'
14629  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14630  shlibpath_var=LD_LIBRARY_PATH
14631  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14632  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14633  # the default ld.so.conf also contains /usr/contrib/lib and
14634  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14635  # libtool to hard-code these into programs
14636  ;;
14637
14638cygwin* | mingw* | pw32* | cegcc*)
14639  version_type=windows
14640  shrext_cmds=".dll"
14641  need_version=no
14642  need_lib_prefix=no
14643
14644  case $GCC,$cc_basename in
14645  yes,*)
14646    # gcc
14647    library_names_spec='$libname.dll.a'
14648    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14649    postinstall_cmds='base_file=`basename \${file}`~
14650      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14651      dldir=$destdir/`dirname \$dlpath`~
14652      test -d \$dldir || mkdir -p \$dldir~
14653      $install_prog $dir/$dlname \$dldir/$dlname~
14654      chmod a+x \$dldir/$dlname~
14655      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14656        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14657      fi'
14658    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14659      dlpath=$dir/\$dldll~
14660       $RM \$dlpath'
14661    shlibpath_overrides_runpath=yes
14662
14663    case $host_os in
14664    cygwin*)
14665      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14666      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14667
14668      ;;
14669    mingw* | cegcc*)
14670      # MinGW DLLs use traditional 'lib' prefix
14671      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14672      ;;
14673    pw32*)
14674      # pw32 DLLs use 'pw' prefix rather than 'lib'
14675      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14676      ;;
14677    esac
14678    dynamic_linker='Win32 ld.exe'
14679    ;;
14680
14681  *,cl*)
14682    # Native MSVC
14683    libname_spec='$name'
14684    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14685    library_names_spec='${libname}.dll.lib'
14686
14687    case $build_os in
14688    mingw*)
14689      sys_lib_search_path_spec=
14690      lt_save_ifs=$IFS
14691      IFS=';'
14692      for lt_path in $LIB
14693      do
14694        IFS=$lt_save_ifs
14695        # Let DOS variable expansion print the short 8.3 style file name.
14696        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14697        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14698      done
14699      IFS=$lt_save_ifs
14700      # Convert to MSYS style.
14701      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14702      ;;
14703    cygwin*)
14704      # Convert to unix form, then to dos form, then back to unix form
14705      # but this time dos style (no spaces!) so that the unix form looks
14706      # like /cygdrive/c/PROGRA~1:/cygdr...
14707      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14708      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14709      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14710      ;;
14711    *)
14712      sys_lib_search_path_spec="$LIB"
14713      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14714        # It is most probably a Windows format PATH.
14715        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14716      else
14717        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14718      fi
14719      # FIXME: find the short name or the path components, as spaces are
14720      # common. (e.g. "Program Files" -> "PROGRA~1")
14721      ;;
14722    esac
14723
14724    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14725    postinstall_cmds='base_file=`basename \${file}`~
14726      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14727      dldir=$destdir/`dirname \$dlpath`~
14728      test -d \$dldir || mkdir -p \$dldir~
14729      $install_prog $dir/$dlname \$dldir/$dlname'
14730    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14731      dlpath=$dir/\$dldll~
14732       $RM \$dlpath'
14733    shlibpath_overrides_runpath=yes
14734    dynamic_linker='Win32 link.exe'
14735    ;;
14736
14737  *)
14738    # Assume MSVC wrapper
14739    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14740    dynamic_linker='Win32 ld.exe'
14741    ;;
14742  esac
14743  # FIXME: first we should search . and the directory the executable is in
14744  shlibpath_var=PATH
14745  ;;
14746
14747darwin* | rhapsody*)
14748  dynamic_linker="$host_os dyld"
14749  version_type=darwin
14750  need_lib_prefix=no
14751  need_version=no
14752  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14753  soname_spec='${libname}${release}${major}$shared_ext'
14754  shlibpath_overrides_runpath=yes
14755  shlibpath_var=DYLD_LIBRARY_PATH
14756  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14757
14758  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14759  ;;
14760
14761dgux*)
14762  version_type=linux # correct to gnu/linux during the next big refactor
14763  need_lib_prefix=no
14764  need_version=no
14765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14766  soname_spec='${libname}${release}${shared_ext}$major'
14767  shlibpath_var=LD_LIBRARY_PATH
14768  ;;
14769
14770freebsd* | dragonfly*)
14771  # DragonFly does not have aout.  When/if they implement a new
14772  # versioning mechanism, adjust this.
14773  if test -x /usr/bin/objformat; then
14774    objformat=`/usr/bin/objformat`
14775  else
14776    case $host_os in
14777    freebsd[23].*) objformat=aout ;;
14778    *) objformat=elf ;;
14779    esac
14780  fi
14781  version_type=freebsd-$objformat
14782  case $version_type in
14783    freebsd-elf*)
14784      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14785      need_version=no
14786      need_lib_prefix=no
14787      ;;
14788    freebsd-*)
14789      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14790      need_version=yes
14791      ;;
14792  esac
14793  shlibpath_var=LD_LIBRARY_PATH
14794  case $host_os in
14795  freebsd2.*)
14796    shlibpath_overrides_runpath=yes
14797    ;;
14798  freebsd3.[01]* | freebsdelf3.[01]*)
14799    shlibpath_overrides_runpath=yes
14800    hardcode_into_libs=yes
14801    ;;
14802  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14803  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14804    shlibpath_overrides_runpath=no
14805    hardcode_into_libs=yes
14806    ;;
14807  *) # from 4.6 on, and DragonFly
14808    shlibpath_overrides_runpath=yes
14809    hardcode_into_libs=yes
14810    ;;
14811  esac
14812  ;;
14813
14814gnu*)
14815  version_type=linux # correct to gnu/linux during the next big refactor
14816  need_lib_prefix=no
14817  need_version=no
14818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14819  soname_spec='${libname}${release}${shared_ext}$major'
14820  shlibpath_var=LD_LIBRARY_PATH
14821  shlibpath_overrides_runpath=no
14822  hardcode_into_libs=yes
14823  ;;
14824
14825haiku*)
14826  version_type=linux # correct to gnu/linux during the next big refactor
14827  need_lib_prefix=no
14828  need_version=no
14829  dynamic_linker="$host_os runtime_loader"
14830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14831  soname_spec='${libname}${release}${shared_ext}$major'
14832  shlibpath_var=LIBRARY_PATH
14833  shlibpath_overrides_runpath=yes
14834  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14835  hardcode_into_libs=yes
14836  ;;
14837
14838hpux9* | hpux10* | hpux11*)
14839  # Give a soname corresponding to the major version so that dld.sl refuses to
14840  # link against other versions.
14841  version_type=sunos
14842  need_lib_prefix=no
14843  need_version=no
14844  case $host_cpu in
14845  ia64*)
14846    shrext_cmds='.so'
14847    hardcode_into_libs=yes
14848    dynamic_linker="$host_os dld.so"
14849    shlibpath_var=LD_LIBRARY_PATH
14850    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14851    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852    soname_spec='${libname}${release}${shared_ext}$major'
14853    if test "X$HPUX_IA64_MODE" = X32; then
14854      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14855    else
14856      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14857    fi
14858    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14859    ;;
14860  hppa*64*)
14861    shrext_cmds='.sl'
14862    hardcode_into_libs=yes
14863    dynamic_linker="$host_os dld.sl"
14864    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14865    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14866    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867    soname_spec='${libname}${release}${shared_ext}$major'
14868    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14869    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14870    ;;
14871  *)
14872    shrext_cmds='.sl'
14873    dynamic_linker="$host_os dld.sl"
14874    shlibpath_var=SHLIB_PATH
14875    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14876    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877    soname_spec='${libname}${release}${shared_ext}$major'
14878    ;;
14879  esac
14880  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14881  postinstall_cmds='chmod 555 $lib'
14882  # or fails outright, so override atomically:
14883  install_override_mode=555
14884  ;;
14885
14886interix[3-9]*)
14887  version_type=linux # correct to gnu/linux during the next big refactor
14888  need_lib_prefix=no
14889  need_version=no
14890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14891  soname_spec='${libname}${release}${shared_ext}$major'
14892  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14893  shlibpath_var=LD_LIBRARY_PATH
14894  shlibpath_overrides_runpath=no
14895  hardcode_into_libs=yes
14896  ;;
14897
14898irix5* | irix6* | nonstopux*)
14899  case $host_os in
14900    nonstopux*) version_type=nonstopux ;;
14901    *)
14902	if test "$lt_cv_prog_gnu_ld" = yes; then
14903		version_type=linux # correct to gnu/linux during the next big refactor
14904	else
14905		version_type=irix
14906	fi ;;
14907  esac
14908  need_lib_prefix=no
14909  need_version=no
14910  soname_spec='${libname}${release}${shared_ext}$major'
14911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14912  case $host_os in
14913  irix5* | nonstopux*)
14914    libsuff= shlibsuff=
14915    ;;
14916  *)
14917    case $LD in # libtool.m4 will add one of these switches to LD
14918    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14919      libsuff= shlibsuff= libmagic=32-bit;;
14920    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14921      libsuff=32 shlibsuff=N32 libmagic=N32;;
14922    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14923      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14924    *) libsuff= shlibsuff= libmagic=never-match;;
14925    esac
14926    ;;
14927  esac
14928  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14929  shlibpath_overrides_runpath=no
14930  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14931  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14932  hardcode_into_libs=yes
14933  ;;
14934
14935# No shared lib support for Linux oldld, aout, or coff.
14936linux*oldld* | linux*aout* | linux*coff*)
14937  dynamic_linker=no
14938  ;;
14939
14940# This must be glibc/ELF.
14941linux* | k*bsd*-gnu | kopensolaris*-gnu)
14942  version_type=linux # correct to gnu/linux during the next big refactor
14943  need_lib_prefix=no
14944  need_version=no
14945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946  soname_spec='${libname}${release}${shared_ext}$major'
14947  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14948  shlibpath_var=LD_LIBRARY_PATH
14949  shlibpath_overrides_runpath=no
14950
14951  # Some binutils ld are patched to set DT_RUNPATH
14952  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14953  $as_echo_n "(cached) " >&6
14954else
14955  lt_cv_shlibpath_overrides_runpath=no
14956    save_LDFLAGS=$LDFLAGS
14957    save_libdir=$libdir
14958    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14959	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962
14963int
14964main ()
14965{
14966
14967  ;
14968  return 0;
14969}
14970_ACEOF
14971if ac_fn_cxx_try_link "$LINENO"; then :
14972  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14973  lt_cv_shlibpath_overrides_runpath=yes
14974fi
14975fi
14976rm -f core conftest.err conftest.$ac_objext \
14977    conftest$ac_exeext conftest.$ac_ext
14978    LDFLAGS=$save_LDFLAGS
14979    libdir=$save_libdir
14980
14981fi
14982
14983  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14984
14985  # This implies no fast_install, which is unacceptable.
14986  # Some rework will be needed to allow for fast_install
14987  # before this can be enabled.
14988  hardcode_into_libs=yes
14989
14990  # Append ld.so.conf contents to the search path
14991  if test -f /etc/ld.so.conf; then
14992    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' ' '`
14993    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14994  fi
14995
14996  # We used to test for /lib/ld.so.1 and disable shared libraries on
14997  # powerpc, because MkLinux only supported shared libraries with the
14998  # GNU dynamic linker.  Since this was broken with cross compilers,
14999  # most powerpc-linux boxes support dynamic linking these days and
15000  # people can always --disable-shared, the test was removed, and we
15001  # assume the GNU/Linux dynamic linker is in use.
15002  dynamic_linker='GNU/Linux ld.so'
15003  ;;
15004
15005netbsdelf*-gnu)
15006  version_type=linux
15007  need_lib_prefix=no
15008  need_version=no
15009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010  soname_spec='${libname}${release}${shared_ext}$major'
15011  shlibpath_var=LD_LIBRARY_PATH
15012  shlibpath_overrides_runpath=no
15013  hardcode_into_libs=yes
15014  dynamic_linker='NetBSD ld.elf_so'
15015  ;;
15016
15017netbsd*)
15018  version_type=sunos
15019  need_lib_prefix=no
15020  need_version=no
15021  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15023    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15024    dynamic_linker='NetBSD (a.out) ld.so'
15025  else
15026    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15027    soname_spec='${libname}${release}${shared_ext}$major'
15028    dynamic_linker='NetBSD ld.elf_so'
15029  fi
15030  shlibpath_var=LD_LIBRARY_PATH
15031  shlibpath_overrides_runpath=yes
15032  hardcode_into_libs=yes
15033  ;;
15034
15035newsos6)
15036  version_type=linux # correct to gnu/linux during the next big refactor
15037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038  shlibpath_var=LD_LIBRARY_PATH
15039  shlibpath_overrides_runpath=yes
15040  ;;
15041
15042*nto* | *qnx*)
15043  version_type=qnx
15044  need_lib_prefix=no
15045  need_version=no
15046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047  soname_spec='${libname}${release}${shared_ext}$major'
15048  shlibpath_var=LD_LIBRARY_PATH
15049  shlibpath_overrides_runpath=no
15050  hardcode_into_libs=yes
15051  dynamic_linker='ldqnx.so'
15052  ;;
15053
15054openbsd*)
15055  version_type=sunos
15056  sys_lib_dlsearch_path_spec="/usr/lib"
15057  need_lib_prefix=no
15058  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15059  case $host_os in
15060    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15061    *)				need_version=no  ;;
15062  esac
15063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15064  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15065  shlibpath_var=LD_LIBRARY_PATH
15066  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15067    case $host_os in
15068      openbsd2.[89] | openbsd2.[89].*)
15069	shlibpath_overrides_runpath=no
15070	;;
15071      *)
15072	shlibpath_overrides_runpath=yes
15073	;;
15074      esac
15075  else
15076    shlibpath_overrides_runpath=yes
15077  fi
15078  ;;
15079
15080os2*)
15081  libname_spec='$name'
15082  shrext_cmds=".dll"
15083  need_lib_prefix=no
15084  library_names_spec='$libname${shared_ext} $libname.a'
15085  dynamic_linker='OS/2 ld.exe'
15086  shlibpath_var=LIBPATH
15087  ;;
15088
15089osf3* | osf4* | osf5*)
15090  version_type=osf
15091  need_lib_prefix=no
15092  need_version=no
15093  soname_spec='${libname}${release}${shared_ext}$major'
15094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095  shlibpath_var=LD_LIBRARY_PATH
15096  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15097  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15098  ;;
15099
15100rdos*)
15101  dynamic_linker=no
15102  ;;
15103
15104solaris*)
15105  version_type=linux # correct to gnu/linux during the next big refactor
15106  need_lib_prefix=no
15107  need_version=no
15108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109  soname_spec='${libname}${release}${shared_ext}$major'
15110  shlibpath_var=LD_LIBRARY_PATH
15111  shlibpath_overrides_runpath=yes
15112  hardcode_into_libs=yes
15113  # ldd complains unless libraries are executable
15114  postinstall_cmds='chmod +x $lib'
15115  ;;
15116
15117sunos4*)
15118  version_type=sunos
15119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15120  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15121  shlibpath_var=LD_LIBRARY_PATH
15122  shlibpath_overrides_runpath=yes
15123  if test "$with_gnu_ld" = yes; then
15124    need_lib_prefix=no
15125  fi
15126  need_version=yes
15127  ;;
15128
15129sysv4 | sysv4.3*)
15130  version_type=linux # correct to gnu/linux during the next big refactor
15131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132  soname_spec='${libname}${release}${shared_ext}$major'
15133  shlibpath_var=LD_LIBRARY_PATH
15134  case $host_vendor in
15135    sni)
15136      shlibpath_overrides_runpath=no
15137      need_lib_prefix=no
15138      runpath_var=LD_RUN_PATH
15139      ;;
15140    siemens)
15141      need_lib_prefix=no
15142      ;;
15143    motorola)
15144      need_lib_prefix=no
15145      need_version=no
15146      shlibpath_overrides_runpath=no
15147      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15148      ;;
15149  esac
15150  ;;
15151
15152sysv4*MP*)
15153  if test -d /usr/nec ;then
15154    version_type=linux # correct to gnu/linux during the next big refactor
15155    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15156    soname_spec='$libname${shared_ext}.$major'
15157    shlibpath_var=LD_LIBRARY_PATH
15158  fi
15159  ;;
15160
15161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15162  version_type=freebsd-elf
15163  need_lib_prefix=no
15164  need_version=no
15165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15166  soname_spec='${libname}${release}${shared_ext}$major'
15167  shlibpath_var=LD_LIBRARY_PATH
15168  shlibpath_overrides_runpath=yes
15169  hardcode_into_libs=yes
15170  if test "$with_gnu_ld" = yes; then
15171    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15172  else
15173    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15174    case $host_os in
15175      sco3.2v5*)
15176        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15177	;;
15178    esac
15179  fi
15180  sys_lib_dlsearch_path_spec='/usr/lib'
15181  ;;
15182
15183tpf*)
15184  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15185  version_type=linux # correct to gnu/linux during the next big refactor
15186  need_lib_prefix=no
15187  need_version=no
15188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189  shlibpath_var=LD_LIBRARY_PATH
15190  shlibpath_overrides_runpath=no
15191  hardcode_into_libs=yes
15192  ;;
15193
15194uts4*)
15195  version_type=linux # correct to gnu/linux during the next big refactor
15196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197  soname_spec='${libname}${release}${shared_ext}$major'
15198  shlibpath_var=LD_LIBRARY_PATH
15199  ;;
15200
15201*)
15202  dynamic_linker=no
15203  ;;
15204esac
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15206$as_echo "$dynamic_linker" >&6; }
15207test "$dynamic_linker" = no && can_build_shared=no
15208
15209variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15210if test "$GCC" = yes; then
15211  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15212fi
15213
15214if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15215  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15216fi
15217if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15218  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15219fi
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15259$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15260hardcode_action_CXX=
15261if test -n "$hardcode_libdir_flag_spec_CXX" ||
15262   test -n "$runpath_var_CXX" ||
15263   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15264
15265  # We can hardcode non-existent directories.
15266  if test "$hardcode_direct_CXX" != no &&
15267     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15268     # have to relink, otherwise we might link with an installed library
15269     # when we should be linking with a yet-to-be-installed one
15270     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15271     test "$hardcode_minus_L_CXX" != no; then
15272    # Linking always hardcodes the temporary library directory.
15273    hardcode_action_CXX=relink
15274  else
15275    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15276    hardcode_action_CXX=immediate
15277  fi
15278else
15279  # We cannot hardcode anything, or else we can only hardcode existing
15280  # directories.
15281  hardcode_action_CXX=unsupported
15282fi
15283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15284$as_echo "$hardcode_action_CXX" >&6; }
15285
15286if test "$hardcode_action_CXX" = relink ||
15287   test "$inherit_rpath_CXX" = yes; then
15288  # Fast installation is not supported
15289  enable_fast_install=no
15290elif test "$shlibpath_overrides_runpath" = yes ||
15291     test "$enable_shared" = no; then
15292  # Fast installation is not necessary
15293  enable_fast_install=needless
15294fi
15295
15296
15297
15298
15299
15300
15301
15302  fi # test -n "$compiler"
15303
15304  CC=$lt_save_CC
15305  CFLAGS=$lt_save_CFLAGS
15306  LDCXX=$LD
15307  LD=$lt_save_LD
15308  GCC=$lt_save_GCC
15309  with_gnu_ld=$lt_save_with_gnu_ld
15310  lt_cv_path_LDCXX=$lt_cv_path_LD
15311  lt_cv_path_LD=$lt_save_path_LD
15312  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15313  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15314fi # test "$_lt_caught_CXX_error" != yes
15315
15316ac_ext=cpp
15317ac_cpp='$CXXCPP $CPPFLAGS'
15318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336        ac_config_commands="$ac_config_commands libtool"
15337
15338
15339
15340
15341# Only expand once:
15342
15343
15344
15345
15346
15347
15348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15349$as_echo_n "checking for ANSI C header files... " >&6; }
15350if ${ac_cv_header_stdc+:} false; then :
15351  $as_echo_n "(cached) " >&6
15352else
15353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354/* end confdefs.h.  */
15355#include <stdlib.h>
15356#include <stdarg.h>
15357#include <string.h>
15358#include <float.h>
15359
15360int
15361main ()
15362{
15363
15364  ;
15365  return 0;
15366}
15367_ACEOF
15368if ac_fn_cxx_try_compile "$LINENO"; then :
15369  ac_cv_header_stdc=yes
15370else
15371  ac_cv_header_stdc=no
15372fi
15373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374
15375if test $ac_cv_header_stdc = yes; then
15376  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378/* end confdefs.h.  */
15379#include <string.h>
15380
15381_ACEOF
15382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15383  $EGREP "memchr" >/dev/null 2>&1; then :
15384
15385else
15386  ac_cv_header_stdc=no
15387fi
15388rm -f conftest*
15389
15390fi
15391
15392if test $ac_cv_header_stdc = yes; then
15393  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395/* end confdefs.h.  */
15396#include <stdlib.h>
15397
15398_ACEOF
15399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15400  $EGREP "free" >/dev/null 2>&1; then :
15401
15402else
15403  ac_cv_header_stdc=no
15404fi
15405rm -f conftest*
15406
15407fi
15408
15409if test $ac_cv_header_stdc = yes; then
15410  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15411  if test "$cross_compiling" = yes; then :
15412  :
15413else
15414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h.  */
15416#include <ctype.h>
15417#include <stdlib.h>
15418#if ((' ' & 0x0FF) == 0x020)
15419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15421#else
15422# define ISLOWER(c) \
15423		   (('a' <= (c) && (c) <= 'i') \
15424		     || ('j' <= (c) && (c) <= 'r') \
15425		     || ('s' <= (c) && (c) <= 'z'))
15426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15427#endif
15428
15429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15430int
15431main ()
15432{
15433  int i;
15434  for (i = 0; i < 256; i++)
15435    if (XOR (islower (i), ISLOWER (i))
15436	|| toupper (i) != TOUPPER (i))
15437      return 2;
15438  return 0;
15439}
15440_ACEOF
15441if ac_fn_cxx_try_run "$LINENO"; then :
15442
15443else
15444  ac_cv_header_stdc=no
15445fi
15446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15447  conftest.$ac_objext conftest.beam conftest.$ac_ext
15448fi
15449
15450fi
15451fi
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15453$as_echo "$ac_cv_header_stdc" >&6; }
15454if test $ac_cv_header_stdc = yes; then
15455
15456$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15457
15458fi
15459
15460for ac_header in string.h stdlib.h unistd.h fcntl.h \
15461                sys/stat.h sys/mman.h sys/times.h \
15462                ctype.h sys/types.h math.h pthread.h
15463do :
15464  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15466if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15467  cat >>confdefs.h <<_ACEOF
15468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15469_ACEOF
15470
15471fi
15472
15473done
15474
15475
15476ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15477if test "x$ac_cv_type_size_t" = xyes; then :
15478
15479else
15480
15481cat >>confdefs.h <<_ACEOF
15482#define size_t unsigned int
15483_ACEOF
15484
15485fi
15486
15487
15488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15489$as_echo_n "checking for pow in -lm... " >&6; }
15490if ${ac_cv_lib_m_pow+:} false; then :
15491  $as_echo_n "(cached) " >&6
15492else
15493  ac_check_lib_save_LIBS=$LIBS
15494LIBS="-lm  $LIBS"
15495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496/* end confdefs.h.  */
15497
15498/* Override any GCC internal prototype to avoid an error.
15499   Use char because int might match the return type of a GCC
15500   builtin and then its argument prototype would still apply.  */
15501#ifdef __cplusplus
15502extern "C"
15503#endif
15504char pow ();
15505int
15506main ()
15507{
15508return pow ();
15509  ;
15510  return 0;
15511}
15512_ACEOF
15513if ac_fn_cxx_try_link "$LINENO"; then :
15514  ac_cv_lib_m_pow=yes
15515else
15516  ac_cv_lib_m_pow=no
15517fi
15518rm -f core conftest.err conftest.$ac_objext \
15519    conftest$ac_exeext conftest.$ac_ext
15520LIBS=$ac_check_lib_save_LIBS
15521fi
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
15523$as_echo "$ac_cv_lib_m_pow" >&6; }
15524if test "x$ac_cv_lib_m_pow" = xyes; then :
15525  cat >>confdefs.h <<_ACEOF
15526#define HAVE_LIBM 1
15527_ACEOF
15528
15529  LIBS="-lm $LIBS"
15530
15531fi
15532
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
15534$as_echo_n "checking for exp in -lm... " >&6; }
15535if ${ac_cv_lib_m_exp+:} false; then :
15536  $as_echo_n "(cached) " >&6
15537else
15538  ac_check_lib_save_LIBS=$LIBS
15539LIBS="-lm  $LIBS"
15540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541/* end confdefs.h.  */
15542
15543/* Override any GCC internal prototype to avoid an error.
15544   Use char because int might match the return type of a GCC
15545   builtin and then its argument prototype would still apply.  */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549char exp ();
15550int
15551main ()
15552{
15553return exp ();
15554  ;
15555  return 0;
15556}
15557_ACEOF
15558if ac_fn_cxx_try_link "$LINENO"; then :
15559  ac_cv_lib_m_exp=yes
15560else
15561  ac_cv_lib_m_exp=no
15562fi
15563rm -f core conftest.err conftest.$ac_objext \
15564    conftest$ac_exeext conftest.$ac_ext
15565LIBS=$ac_check_lib_save_LIBS
15566fi
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
15568$as_echo "$ac_cv_lib_m_exp" >&6; }
15569if test "x$ac_cv_lib_m_exp" = xyes; then :
15570  cat >>confdefs.h <<_ACEOF
15571#define HAVE_LIBM 1
15572_ACEOF
15573
15574  LIBS="-lm $LIBS"
15575
15576fi
15577
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
15579$as_echo_n "checking for log in -lm... " >&6; }
15580if ${ac_cv_lib_m_log+:} false; then :
15581  $as_echo_n "(cached) " >&6
15582else
15583  ac_check_lib_save_LIBS=$LIBS
15584LIBS="-lm  $LIBS"
15585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586/* end confdefs.h.  */
15587
15588/* Override any GCC internal prototype to avoid an error.
15589   Use char because int might match the return type of a GCC
15590   builtin and then its argument prototype would still apply.  */
15591#ifdef __cplusplus
15592extern "C"
15593#endif
15594char log ();
15595int
15596main ()
15597{
15598return log ();
15599  ;
15600  return 0;
15601}
15602_ACEOF
15603if ac_fn_cxx_try_link "$LINENO"; then :
15604  ac_cv_lib_m_log=yes
15605else
15606  ac_cv_lib_m_log=no
15607fi
15608rm -f core conftest.err conftest.$ac_objext \
15609    conftest$ac_exeext conftest.$ac_ext
15610LIBS=$ac_check_lib_save_LIBS
15611fi
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
15613$as_echo "$ac_cv_lib_m_log" >&6; }
15614if test "x$ac_cv_lib_m_log" = xyes; then :
15615  cat >>confdefs.h <<_ACEOF
15616#define HAVE_LIBM 1
15617_ACEOF
15618
15619  LIBS="-lm $LIBS"
15620
15621fi
15622
15623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15624$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15625if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15626  $as_echo_n "(cached) " >&6
15627else
15628  ac_check_lib_save_LIBS=$LIBS
15629LIBS="-lpthread  $LIBS"
15630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631/* end confdefs.h.  */
15632
15633/* Override any GCC internal prototype to avoid an error.
15634   Use char because int might match the return type of a GCC
15635   builtin and then its argument prototype would still apply.  */
15636#ifdef __cplusplus
15637extern "C"
15638#endif
15639char pthread_create ();
15640int
15641main ()
15642{
15643return pthread_create ();
15644  ;
15645  return 0;
15646}
15647_ACEOF
15648if ac_fn_cxx_try_link "$LINENO"; then :
15649  ac_cv_lib_pthread_pthread_create=yes
15650else
15651  ac_cv_lib_pthread_pthread_create=no
15652fi
15653rm -f core conftest.err conftest.$ac_objext \
15654    conftest$ac_exeext conftest.$ac_ext
15655LIBS=$ac_check_lib_save_LIBS
15656fi
15657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15658$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15659if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15660  cat >>confdefs.h <<_ACEOF
15661#define HAVE_LIBPTHREAD 1
15662_ACEOF
15663
15664  LIBS="-lpthread $LIBS"
15665
15666fi
15667
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
15669$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
15670if ${ac_cv_lib_pthread_pthread_join+:} false; then :
15671  $as_echo_n "(cached) " >&6
15672else
15673  ac_check_lib_save_LIBS=$LIBS
15674LIBS="-lpthread  $LIBS"
15675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676/* end confdefs.h.  */
15677
15678/* Override any GCC internal prototype to avoid an error.
15679   Use char because int might match the return type of a GCC
15680   builtin and then its argument prototype would still apply.  */
15681#ifdef __cplusplus
15682extern "C"
15683#endif
15684char pthread_join ();
15685int
15686main ()
15687{
15688return pthread_join ();
15689  ;
15690  return 0;
15691}
15692_ACEOF
15693if ac_fn_cxx_try_link "$LINENO"; then :
15694  ac_cv_lib_pthread_pthread_join=yes
15695else
15696  ac_cv_lib_pthread_pthread_join=no
15697fi
15698rm -f core conftest.err conftest.$ac_objext \
15699    conftest$ac_exeext conftest.$ac_ext
15700LIBS=$ac_check_lib_save_LIBS
15701fi
15702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
15703$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
15704if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
15705  cat >>confdefs.h <<_ACEOF
15706#define HAVE_LIBPTHREAD 1
15707_ACEOF
15708
15709  LIBS="-lpthread $LIBS"
15710
15711fi
15712
15713
15714
15715
15716  for ac_header in $ac_header_list
15717do :
15718  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15719ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15720"
15721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15722  cat >>confdefs.h <<_ACEOF
15723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15724_ACEOF
15725
15726fi
15727
15728done
15729
15730
15731
15732
15733
15734
15735
15736
15737for ac_func in getpagesize
15738do :
15739  ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15740if test "x$ac_cv_func_getpagesize" = xyes; then :
15741  cat >>confdefs.h <<_ACEOF
15742#define HAVE_GETPAGESIZE 1
15743_ACEOF
15744
15745fi
15746done
15747
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15749$as_echo_n "checking for working mmap... " >&6; }
15750if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15751  $as_echo_n "(cached) " >&6
15752else
15753  if test "$cross_compiling" = yes; then :
15754  ac_cv_func_mmap_fixed_mapped=no
15755else
15756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757/* end confdefs.h.  */
15758$ac_includes_default
15759/* malloc might have been renamed as rpl_malloc. */
15760#undef malloc
15761
15762/* Thanks to Mike Haertel and Jim Avera for this test.
15763   Here is a matrix of mmap possibilities:
15764	mmap private not fixed
15765	mmap private fixed at somewhere currently unmapped
15766	mmap private fixed at somewhere already mapped
15767	mmap shared not fixed
15768	mmap shared fixed at somewhere currently unmapped
15769	mmap shared fixed at somewhere already mapped
15770   For private mappings, we should verify that changes cannot be read()
15771   back from the file, nor mmap's back from the file at a different
15772   address.  (There have been systems where private was not correctly
15773   implemented like the infamous i386 svr4.0, and systems where the
15774   VM page cache was not coherent with the file system buffer cache
15775   like early versions of FreeBSD and possibly contemporary NetBSD.)
15776   For shared mappings, we should conversely verify that changes get
15777   propagated back to all the places they're supposed to be.
15778
15779   Grep wants private fixed already mapped.
15780   The main things grep needs to know about mmap are:
15781   * does it exist and is it safe to write into the mmap'd area
15782   * how to use it (BSD variants)  */
15783
15784#include <fcntl.h>
15785#include <sys/mman.h>
15786
15787#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15788char *malloc ();
15789#endif
15790
15791/* This mess was copied from the GNU getpagesize.h.  */
15792#ifndef HAVE_GETPAGESIZE
15793# ifdef _SC_PAGESIZE
15794#  define getpagesize() sysconf(_SC_PAGESIZE)
15795# else /* no _SC_PAGESIZE */
15796#  ifdef HAVE_SYS_PARAM_H
15797#   include <sys/param.h>
15798#   ifdef EXEC_PAGESIZE
15799#    define getpagesize() EXEC_PAGESIZE
15800#   else /* no EXEC_PAGESIZE */
15801#    ifdef NBPG
15802#     define getpagesize() NBPG * CLSIZE
15803#     ifndef CLSIZE
15804#      define CLSIZE 1
15805#     endif /* no CLSIZE */
15806#    else /* no NBPG */
15807#     ifdef NBPC
15808#      define getpagesize() NBPC
15809#     else /* no NBPC */
15810#      ifdef PAGESIZE
15811#       define getpagesize() PAGESIZE
15812#      endif /* PAGESIZE */
15813#     endif /* no NBPC */
15814#    endif /* no NBPG */
15815#   endif /* no EXEC_PAGESIZE */
15816#  else /* no HAVE_SYS_PARAM_H */
15817#   define getpagesize() 8192	/* punt totally */
15818#  endif /* no HAVE_SYS_PARAM_H */
15819# endif /* no _SC_PAGESIZE */
15820
15821#endif /* no HAVE_GETPAGESIZE */
15822
15823int
15824main ()
15825{
15826  char *data, *data2, *data3;
15827  const char *cdata2;
15828  int i, pagesize;
15829  int fd, fd2;
15830
15831  pagesize = getpagesize ();
15832
15833  /* First, make a file with some known garbage in it. */
15834  data = (char *) malloc (pagesize);
15835  if (!data)
15836    return 1;
15837  for (i = 0; i < pagesize; ++i)
15838    *(data + i) = rand ();
15839  umask (0);
15840  fd = creat ("conftest.mmap", 0600);
15841  if (fd < 0)
15842    return 2;
15843  if (write (fd, data, pagesize) != pagesize)
15844    return 3;
15845  close (fd);
15846
15847  /* Next, check that the tail of a page is zero-filled.  File must have
15848     non-zero length, otherwise we risk SIGBUS for entire page.  */
15849  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15850  if (fd2 < 0)
15851    return 4;
15852  cdata2 = "";
15853  if (write (fd2, cdata2, 1) != 1)
15854    return 5;
15855  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15856  if (data2 == MAP_FAILED)
15857    return 6;
15858  for (i = 0; i < pagesize; ++i)
15859    if (*(data2 + i))
15860      return 7;
15861  close (fd2);
15862  if (munmap (data2, pagesize))
15863    return 8;
15864
15865  /* Next, try to mmap the file at a fixed address which already has
15866     something else allocated at it.  If we can, also make sure that
15867     we see the same garbage.  */
15868  fd = open ("conftest.mmap", O_RDWR);
15869  if (fd < 0)
15870    return 9;
15871  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15872		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
15873    return 10;
15874  for (i = 0; i < pagesize; ++i)
15875    if (*(data + i) != *(data2 + i))
15876      return 11;
15877
15878  /* Finally, make sure that changes to the mapped area do not
15879     percolate back to the file as seen by read().  (This is a bug on
15880     some variants of i386 svr4.0.)  */
15881  for (i = 0; i < pagesize; ++i)
15882    *(data2 + i) = *(data2 + i) + 1;
15883  data3 = (char *) malloc (pagesize);
15884  if (!data3)
15885    return 12;
15886  if (read (fd, data3, pagesize) != pagesize)
15887    return 13;
15888  for (i = 0; i < pagesize; ++i)
15889    if (*(data + i) != *(data3 + i))
15890      return 14;
15891  close (fd);
15892  return 0;
15893}
15894_ACEOF
15895if ac_fn_cxx_try_run "$LINENO"; then :
15896  ac_cv_func_mmap_fixed_mapped=yes
15897else
15898  ac_cv_func_mmap_fixed_mapped=no
15899fi
15900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15901  conftest.$ac_objext conftest.beam conftest.$ac_ext
15902fi
15903
15904fi
15905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15906$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15907if test $ac_cv_func_mmap_fixed_mapped = yes; then
15908
15909$as_echo "#define HAVE_MMAP 1" >>confdefs.h
15910
15911fi
15912rm -f conftest.mmap conftest.txt
15913
15914
15915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU Make" >&5
15916$as_echo_n "checking whether make is GNU Make... " >&6; }
15917if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
15918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15919$as_echo "yes" >&6; }
15920else
15921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922$as_echo "no" >&6; }
15923        if test "$host_vendor" = "sun" ; then
15924                as_fn_error $? "\"SUN make does not work for building maxent. Please install GNU make\"" "$LINENO" 5
15925        fi
15926fi
15927
15928if test -n "$GCC"; then
15929   CFLAGS="-O3 -Wall";
15930   CXXFLAGS="-std=c++98 -O3 -Wall";
15931fi
15932
15933
15934
15935
15936
15937# On Intel systems with gcc, we may need to compile with -mieee-fp to
15938#  get full support for IEEE floating point.
15939#
15940# On Alpha/OSF systems, we need -mieee.
15941#
15942# On AIX systems, we need to limit the amount of stuff that goes in
15943# the TOC.
15944case "$host" in
15945  i[3456789]86-*-*)
15946
15947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mieee-fp" >&5
15948$as_echo_n "checking whether ${CC-cc} accepts -mieee-fp... " >&6; }
15949
15950  ac_ext=c
15951ac_cpp='$CPP $CPPFLAGS'
15952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15954ac_compiler_gnu=$ac_cv_c_compiler_gnu
15955
15956  XCFLAGS="$CFLAGS"
15957  CFLAGS="$CFLAGS -mieee-fp"
15958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959/* end confdefs.h.  */
15960
15961int
15962main ()
15963{
15964
15965  ;
15966  return 0;
15967}
15968_ACEOF
15969if ac_fn_c_try_link "$LINENO"; then :
15970  { $as_echo "$as_me:${as_lineno-$LINENO}: result:  ok, adding -mieee-fp to CFLAGS" >&5
15971$as_echo " ok, adding -mieee-fp to CFLAGS" >&6; }
15972else
15973  CFLAGS="$XCFLAGS"
15974fi
15975rm -f core conftest.err conftest.$ac_objext \
15976    conftest$ac_exeext conftest.$ac_ext
15977  ac_ext=cpp
15978ac_cpp='$CXXCPP $CPPFLAGS'
15979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15982
15983
15984
15985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-c++} accepts -mieee-fp" >&5
15986$as_echo_n "checking whether ${CXX-c++} accepts -mieee-fp... " >&6; }
15987
15988  ac_ext=cpp
15989ac_cpp='$CXXCPP $CPPFLAGS'
15990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15993
15994  XCXXFLAGS="-std=c++98 $CXXFLAGS"
15995  CXXFLAGS="-std=c++98 $CXXFLAGS -mieee-fp"
15996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h.  */
15998
15999int
16000main ()
16001{
16002
16003  ;
16004  return 0;
16005}
16006_ACEOF
16007if ac_fn_cxx_try_link "$LINENO"; then :
16008  { $as_echo "$as_me:${as_lineno-$LINENO}: result:  ok, adding -mieee-fp to CXXFLAGS" >&5
16009$as_echo " ok, adding -mieee-fp to CXXFLAGS" >&6; }
16010else
16011  CXXFLAGS="-std=c++98 $XCXXFLAGS"
16012fi
16013rm -f core conftest.err conftest.$ac_objext \
16014    conftest$ac_exeext conftest.$ac_ext
16015  ac_ext=cpp
16016ac_cpp='$CXXCPP $CPPFLAGS'
16017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16020
16021
16022  ;;
16023  alpha*-*-*)
16024
16025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mieee" >&5
16026$as_echo_n "checking whether ${CC-cc} accepts -mieee... " >&6; }
16027
16028  ac_ext=c
16029ac_cpp='$CPP $CPPFLAGS'
16030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16032ac_compiler_gnu=$ac_cv_c_compiler_gnu
16033
16034  XCFLAGS="$CFLAGS"
16035  CFLAGS="$CFLAGS -mieee"
16036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037/* end confdefs.h.  */
16038
16039int
16040main ()
16041{
16042
16043  ;
16044  return 0;
16045}
16046_ACEOF
16047if ac_fn_c_try_link "$LINENO"; then :
16048  { $as_echo "$as_me:${as_lineno-$LINENO}: result:  ok, adding -mieee to CFLAGS" >&5
16049$as_echo " ok, adding -mieee to CFLAGS" >&6; }
16050else
16051  CFLAGS="$XCFLAGS"
16052fi
16053rm -f core conftest.err conftest.$ac_objext \
16054    conftest$ac_exeext conftest.$ac_ext
16055  ac_ext=cpp
16056ac_cpp='$CXXCPP $CPPFLAGS'
16057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16060
16061
16062
16063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-c++} accepts -mieee" >&5
16064$as_echo_n "checking whether ${CXX-c++} accepts -mieee... " >&6; }
16065
16066  ac_ext=cpp
16067ac_cpp='$CXXCPP $CPPFLAGS'
16068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16071
16072  XCXXFLAGS="-std=c++98 $CXXFLAGS"
16073  CXXFLAGS="-std=c++98 $CXXFLAGS -mieee"
16074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075/* end confdefs.h.  */
16076
16077int
16078main ()
16079{
16080
16081  ;
16082  return 0;
16083}
16084_ACEOF
16085if ac_fn_cxx_try_link "$LINENO"; then :
16086  { $as_echo "$as_me:${as_lineno-$LINENO}: result:  ok, adding -mieee to CXXFLAGS" >&5
16087$as_echo " ok, adding -mieee to CXXFLAGS" >&6; }
16088else
16089  CXXFLAGS="-std=c++98 $XCXXFLAGS"
16090fi
16091rm -f core conftest.err conftest.$ac_objext \
16092    conftest$ac_exeext conftest.$ac_ext
16093  ac_ext=cpp
16094ac_cpp='$CXXCPP $CPPFLAGS'
16095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16098
16099
16100  ;;
16101  *ibm-aix4*)
16102
16103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mminimal-toc" >&5
16104$as_echo_n "checking whether ${CC-cc} accepts -mminimal-toc... " >&6; }
16105
16106  ac_ext=c
16107ac_cpp='$CPP $CPPFLAGS'
16108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16110ac_compiler_gnu=$ac_cv_c_compiler_gnu
16111
16112  XCFLAGS="$CFLAGS"
16113  CFLAGS="$CFLAGS -mminimal-toc"
16114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115/* end confdefs.h.  */
16116
16117int
16118main ()
16119{
16120
16121  ;
16122  return 0;
16123}
16124_ACEOF
16125if ac_fn_c_try_link "$LINENO"; then :
16126  { $as_echo "$as_me:${as_lineno-$LINENO}: result:  ok, adding -mminimal-toc to CFLAGS" >&5
16127$as_echo " ok, adding -mminimal-toc to CFLAGS" >&6; }
16128else
16129  CFLAGS="$XCFLAGS"
16130fi
16131rm -f core conftest.err conftest.$ac_objext \
16132    conftest$ac_exeext conftest.$ac_ext
16133  ac_ext=cpp
16134ac_cpp='$CXXCPP $CPPFLAGS'
16135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16138
16139
16140
16141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-c++} accepts -mminimal-toc" >&5
16142$as_echo_n "checking whether ${CXX-c++} accepts -mminimal-toc... " >&6; }
16143
16144  ac_ext=cpp
16145ac_cpp='$CXXCPP $CPPFLAGS'
16146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16149
16150  XCXXFLAGS="-std=c++98 $CXXFLAGS"
16151  CXXFLAGS="-std=c++98 $CXXFLAGS -mminimal-toc"
16152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153/* end confdefs.h.  */
16154
16155int
16156main ()
16157{
16158
16159  ;
16160  return 0;
16161}
16162_ACEOF
16163if ac_fn_cxx_try_link "$LINENO"; then :
16164  { $as_echo "$as_me:${as_lineno-$LINENO}: result:  ok, adding -mminimal-toc to CXXFLAGS" >&5
16165$as_echo " ok, adding -mminimal-toc to CXXFLAGS" >&6; }
16166else
16167  CXXFLAGS="-std=c++98 $XCXXFLAGS"
16168fi
16169rm -f core conftest.err conftest.$ac_objext \
16170    conftest$ac_exeext conftest.$ac_ext
16171  ac_ext=cpp
16172ac_cpp='$CXXCPP $CPPFLAGS'
16173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16176
16177
16178  ;;
16179esac
16180
16181
16182
16183
16184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <string> (required)" >&5
16185$as_echo_n "checking if ${CXX-c++} supports stl <string> (required)... " >&6; }
16186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h.  */
16188
16189	  #include <string>
16190
16191int
16192main ()
16193{
16194
16195	;
16196
16197  ;
16198  return 0;
16199}
16200_ACEOF
16201if ac_fn_cxx_try_compile "$LINENO"; then :
16202
16203	  ac_stl_string=yes
16204
16205else
16206
16207	  config_error=yes
16208	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <string> does not work" >&5
16209$as_echo "$as_me: WARNING: ${CXX-c++} stl <string> does not work" >&2;}
16210
16211fi
16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_string" >&5
16214$as_echo "$ac_stl_string" >&6; }
16215
16216
16217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <vector> (required)" >&5
16218$as_echo_n "checking if ${CXX-c++} supports stl <vector> (required)... " >&6; }
16219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h.  */
16221
16222	  #include <vector>
16223
16224int
16225main ()
16226{
16227
16228	;
16229
16230  ;
16231  return 0;
16232}
16233_ACEOF
16234if ac_fn_cxx_try_compile "$LINENO"; then :
16235
16236	  ac_stl_vector=yes
16237
16238else
16239
16240	  config_error=yes
16241	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <vector> does not work" >&5
16242$as_echo "$as_me: WARNING: ${CXX-c++} stl <vector> does not work" >&2;}
16243
16244fi
16245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_vector" >&5
16247$as_echo "$ac_stl_vector" >&6; }
16248
16249
16250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <map> (required)" >&5
16251$as_echo_n "checking if ${CXX-c++} supports stl <map> (required)... " >&6; }
16252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253/* end confdefs.h.  */
16254
16255	  #include <map>
16256
16257int
16258main ()
16259{
16260
16261	;
16262
16263  ;
16264  return 0;
16265}
16266_ACEOF
16267if ac_fn_cxx_try_compile "$LINENO"; then :
16268
16269	  ac_stl_map=yes
16270
16271else
16272
16273	  config_error=yes
16274	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <map> does not work" >&5
16275$as_echo "$as_me: WARNING: ${CXX-c++} stl <map> does not work" >&2;}
16276
16277fi
16278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_map" >&5
16280$as_echo "$ac_stl_map" >&6; }
16281
16282
16283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <set> (required)" >&5
16284$as_echo_n "checking if ${CXX-c++} supports stl <set> (required)... " >&6; }
16285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286/* end confdefs.h.  */
16287
16288	  #include <set>
16289
16290int
16291main ()
16292{
16293
16294	;
16295
16296  ;
16297  return 0;
16298}
16299_ACEOF
16300if ac_fn_cxx_try_compile "$LINENO"; then :
16301
16302	  ac_stl_set=yes
16303
16304else
16305
16306	  config_error=yes
16307	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <set> does not work" >&5
16308$as_echo "$as_me: WARNING: ${CXX-c++} stl <set> does not work" >&2;}
16309
16310fi
16311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_set" >&5
16313$as_echo "$ac_stl_set" >&6; }
16314
16315
16316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <iostream> (required)" >&5
16317$as_echo_n "checking if ${CXX-c++} supports stl <iostream> (required)... " >&6; }
16318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319/* end confdefs.h.  */
16320
16321	  #include <iostream>
16322
16323int
16324main ()
16325{
16326
16327	;
16328
16329  ;
16330  return 0;
16331}
16332_ACEOF
16333if ac_fn_cxx_try_compile "$LINENO"; then :
16334
16335	  ac_stl_iostream=yes
16336
16337else
16338
16339	  config_error=yes
16340	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <iostream> does not work" >&5
16341$as_echo "$as_me: WARNING: ${CXX-c++} stl <iostream> does not work" >&2;}
16342
16343fi
16344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_iostream" >&5
16346$as_echo "$ac_stl_iostream" >&6; }
16347
16348
16349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <fstream> (required)" >&5
16350$as_echo_n "checking if ${CXX-c++} supports stl <fstream> (required)... " >&6; }
16351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352/* end confdefs.h.  */
16353
16354	  #include <fstream>
16355
16356int
16357main ()
16358{
16359
16360	;
16361
16362  ;
16363  return 0;
16364}
16365_ACEOF
16366if ac_fn_cxx_try_compile "$LINENO"; then :
16367
16368	  ac_stl_fstream=yes
16369
16370else
16371
16372	  config_error=yes
16373	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <fstream> does not work" >&5
16374$as_echo "$as_me: WARNING: ${CXX-c++} stl <fstream> does not work" >&2;}
16375
16376fi
16377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_fstream" >&5
16379$as_echo "$ac_stl_fstream" >&6; }
16380
16381
16382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <sstream> (required)" >&5
16383$as_echo_n "checking if ${CXX-c++} supports stl <sstream> (required)... " >&6; }
16384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385/* end confdefs.h.  */
16386
16387	  #include <sstream>
16388
16389int
16390main ()
16391{
16392
16393	;
16394
16395  ;
16396  return 0;
16397}
16398_ACEOF
16399if ac_fn_cxx_try_compile "$LINENO"; then :
16400
16401	  ac_stl_sstream=yes
16402
16403else
16404
16405	  config_error=yes
16406	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <sstream> does not work" >&5
16407$as_echo "$as_me: WARNING: ${CXX-c++} stl <sstream> does not work" >&2;}
16408
16409fi
16410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_sstream" >&5
16412$as_echo "$ac_stl_sstream" >&6; }
16413
16414
16415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <stdexcept> (required)" >&5
16416$as_echo_n "checking if ${CXX-c++} supports stl <stdexcept> (required)... " >&6; }
16417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h.  */
16419
16420	  #include <stdexcept>
16421
16422int
16423main ()
16424{
16425
16426	;
16427
16428  ;
16429  return 0;
16430}
16431_ACEOF
16432if ac_fn_cxx_try_compile "$LINENO"; then :
16433
16434	  ac_stl_stdexcept=yes
16435
16436else
16437
16438	  config_error=yes
16439	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <stdexcept> does not work" >&5
16440$as_echo "$as_me: WARNING: ${CXX-c++} stl <stdexcept> does not work" >&2;}
16441
16442fi
16443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_stdexcept" >&5
16445$as_echo "$ac_stl_stdexcept" >&6; }
16446
16447
16448# check for const_cast
16449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports template <class T> (required)" >&5
16450$as_echo_n "checking if ${CXX-c++} supports template <class T> (required)... " >&6; }
16451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452/* end confdefs.h.  */
16453
16454   template <class T> T foo (T &i) { return i++; };
16455
16456int
16457main ()
16458{
16459
16460   int i = 0;
16461   double d = 0.0;
16462   foo(i); foo(d);
16463
16464  ;
16465  return 0;
16466}
16467_ACEOF
16468if ac_fn_cxx_try_compile "$LINENO"; then :
16469
16470  ac_template=yes
16471
16472else
16473
16474  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} template <class T> does not work" >&5
16475$as_echo "$as_me: WARNING: ${CXX-c++} template <class T> does not work" >&2;}
16476  config_error=yes
16477
16478fi
16479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_template" >&5
16481$as_echo "$ac_template" >&6; }
16482
16483# check for const_cast
16484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports const_cast<> (required)" >&5
16485$as_echo_n "checking if ${CXX-c++} supports const_cast<> (required)... " >&6; }
16486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h.  */
16488
16489   class foo;
16490
16491int
16492main ()
16493{
16494
16495   const foo *c=0;
16496   foo *c1=const_cast<foo*>(c);
16497
16498  ;
16499  return 0;
16500}
16501_ACEOF
16502if ac_fn_cxx_try_compile "$LINENO"; then :
16503
16504  ac_const_cast=yes
16505
16506else
16507
16508  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} const_cast<> does not work" >&5
16509$as_echo "$as_me: WARNING: ${CXX-c++} const_cast<> does not work" >&2;}
16510  config_error=yes
16511
16512fi
16513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_const_cast" >&5
16515$as_echo "$ac_const_cast" >&6; }
16516
16517# check for static_cast<>
16518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports static_cast<> (required)" >&5
16519$as_echo_n "checking if ${CXX-c++} supports static_cast<> (required)... " >&6; }
16520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h.  */
16522
16523   class foo;
16524
16525int
16526main ()
16527{
16528
16529   foo *c = 0;
16530   void *c1 = static_cast<void *>(c);
16531
16532  ;
16533  return 0;
16534}
16535_ACEOF
16536if ac_fn_cxx_try_compile "$LINENO"; then :
16537
16538  ac_static_cast=yes
16539
16540else
16541
16542  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} static_cast<> does not work" >&5
16543$as_echo "$as_me: WARNING: ${CXX-c++} static_cast<> does not work" >&2;}
16544  config_error=yes
16545
16546fi
16547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_static_cast" >&5
16549$as_echo "$ac_static_cast" >&6; }
16550
16551# check for dynamic_cast<>
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports dynamic_cast<> (required)" >&5
16553$as_echo_n "checking if ${CXX-c++} supports dynamic_cast<> (required)... " >&6; }
16554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555/* end confdefs.h.  */
16556
16557   class foo {};
16558   class bar: public foo {};
16559
16560int
16561main ()
16562{
16563
16564   bar *c = 0;
16565   foo *c1 = dynamic_cast<foo *>(c);
16566
16567  ;
16568  return 0;
16569}
16570_ACEOF
16571if ac_fn_cxx_try_compile "$LINENO"; then :
16572
16573  ac_dynamic_cast=yes
16574
16575else
16576
16577  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} dynamic_cast<> does not work" >&5
16578$as_echo "$as_me: WARNING: ${CXX-c++} dynamic_cast<> does not work" >&2;}
16579  config_error=yes
16580
16581fi
16582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_dynamic_cast" >&5
16584$as_echo "$ac_dynamic_cast" >&6; }
16585
16586# check for try
16587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports exception handler (required)" >&5
16588$as_echo_n "checking if ${CXX-c++} supports exception handler (required)... " >&6; }
16589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590/* end confdefs.h.  */
16591
16592  ;
16593
16594int
16595main ()
16596{
16597
16598   try {
16599      int i = 0;
16600   }
16601   catch (char *e) {
16602   }
16603   catch (...) {
16604   }
16605
16606  ;
16607  return 0;
16608}
16609_ACEOF
16610if ac_fn_cxx_try_compile "$LINENO"; then :
16611
16612  ac_exception=yes
16613
16614else
16615
16616  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} exception does not work" >&5
16617$as_echo "$as_me: WARNING: ${CXX-c++} exception does not work" >&2;}
16618  config_error=yes
16619
16620fi
16621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception" >&5
16623$as_echo "$ac_exception" >&6; }
16624
16625# check for namespaces
16626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports namespaces (required) " >&5
16627$as_echo_n "checking if ${CXX-c++} supports namespaces (required) ... " >&6; }
16628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629/* end confdefs.h.  */
16630
16631namespace Foo { struct A {}; }
16632using namespace Foo;
16633
16634int
16635main ()
16636{
16637
16638A a;
16639
16640  ;
16641  return 0;
16642}
16643_ACEOF
16644if ac_fn_cxx_try_compile "$LINENO"; then :
16645
16646 ac_namespaces=yes
16647
16648else
16649
16650 config_error=yes
16651 ac_namespaces=no
16652
16653fi
16654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_namespaces" >&5
16656$as_echo "$ac_namespaces" >&6; }
16657
16658
16659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports __thread (optional)" >&5
16660$as_echo_n "checking if ${CXX-c++} supports __thread (optional)... " >&6; }
16661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662/* end confdefs.h.  */
16663
16664__thread int a = 0;
16665
16666int
16667main ()
16668{
16669
16670  a = 10;
16671
16672  ;
16673  return 0;
16674}
16675_ACEOF
16676if ac_fn_cxx_try_compile "$LINENO"; then :
16677
16678 enable_tls=yes
16679
16680else
16681
16682 enable_tls=no
16683
16684fi
16685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tls" >&5
16687$as_echo "$enable_tls" >&6; }
16688
16689if test "$enable_tls" = "no"; then
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: __thread keyword is not supported on this environment. \
16691Error handling of CRF++, e.g., CRFPP::getLastError(), is not thread safe." >&5
16692$as_echo "$as_me: WARNING: __thread keyword is not supported on this environment. \
16693Error handling of CRF++, e.g., CRFPP::getLastError(), is not thread safe." >&2;}
16694else
16695$as_echo "#define HAVE_TLS_KEYWORD 1" >>confdefs.h
16696
16697fi
16698
16699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports _SC_NPROCESSORS_CONF (optional)" >&5
16700$as_echo_n "checking if ${CXX-c++} supports _SC_NPROCESSORS_CONF (optional)... " >&6; }
16701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h.  */
16703
16704  #include <unistd.h>
16705  long n = sysconf(_SC_NPROCESSORS_CONF);
16706
16707int
16708main ()
16709{
16710
16711  n = 10;
16712
16713  ;
16714  return 0;
16715}
16716_ACEOF
16717if ac_fn_cxx_try_compile "$LINENO"; then :
16718
16719 enable_sysconf_sc_nprocessors_conf=yes
16720
16721else
16722
16723 enable_sysconf_sc_nprocessors_conf=no
16724
16725fi
16726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sysconf_sc_nprocessors_conf" >&5
16728$as_echo "$enable_sysconf_sc_nprocessors_conf" >&6; }
16729
16730if test "$enable_sysconf_sc_nprocessors_conf" = "no"; then
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: _SC_NPROCESSORS_CONF on this environment." >&5
16732$as_echo "$as_me: WARNING: _SC_NPROCESSORS_CONF on this environment." >&2;}
16733else
16734$as_echo "#define HAVE_SYS_CONF_SC_NPROCESSORS_CONF 1" >>confdefs.h
16735
16736fi
16737
16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} environment provides all required features" >&5
16739$as_echo_n "checking if ${CXX-c++} environment provides all required features... " >&6; }
16740if test "x$config_error" = xyes ; then
16741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742$as_echo "no" >&6; }
16743  as_fn_error $? "Your compiler is not powerful enough to compile CRF++. \
16744        If it should be, see config.log for more information of why it failed." "$LINENO" 5
16745fi
16746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16747$as_echo "yes" >&6; }
16748
16749
16750ac_config_headers="$ac_config_headers config.h"
16751
16752ac_config_files="$ac_config_files Makefile Makefile.msvc swig/version.h"
16753
16754cat >confcache <<\_ACEOF
16755# This file is a shell script that caches the results of configure
16756# tests run on this system so they can be shared between configure
16757# scripts and configure runs, see configure's option --config-cache.
16758# It is not useful on other systems.  If it contains results you don't
16759# want to keep, you may remove or edit it.
16760#
16761# config.status only pays attention to the cache file if you give it
16762# the --recheck option to rerun configure.
16763#
16764# `ac_cv_env_foo' variables (set or unset) will be overridden when
16765# loading this file, other *unset* `ac_cv_foo' will be assigned the
16766# following values.
16767
16768_ACEOF
16769
16770# The following way of writing the cache mishandles newlines in values,
16771# but we know of no workaround that is simple, portable, and efficient.
16772# So, we kill variables containing newlines.
16773# Ultrix sh set writes to stderr and can't be redirected directly,
16774# and sets the high bit in the cache file unless we assign to the vars.
16775(
16776  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16777    eval ac_val=\$$ac_var
16778    case $ac_val in #(
16779    *${as_nl}*)
16780      case $ac_var in #(
16781      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16782$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16783      esac
16784      case $ac_var in #(
16785      _ | IFS | as_nl) ;; #(
16786      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16787      *) { eval $ac_var=; unset $ac_var;} ;;
16788      esac ;;
16789    esac
16790  done
16791
16792  (set) 2>&1 |
16793    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16794    *${as_nl}ac_space=\ *)
16795      # `set' does not quote correctly, so add quotes: double-quote
16796      # substitution turns \\\\ into \\, and sed turns \\ into \.
16797      sed -n \
16798	"s/'/'\\\\''/g;
16799	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16800      ;; #(
16801    *)
16802      # `set' quotes correctly as required by POSIX, so do not add quotes.
16803      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16804      ;;
16805    esac |
16806    sort
16807) |
16808  sed '
16809     /^ac_cv_env_/b end
16810     t clear
16811     :clear
16812     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16813     t end
16814     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16815     :end' >>confcache
16816if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16817  if test -w "$cache_file"; then
16818    if test "x$cache_file" != "x/dev/null"; then
16819      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16820$as_echo "$as_me: updating cache $cache_file" >&6;}
16821      if test ! -f "$cache_file" || test -h "$cache_file"; then
16822	cat confcache >"$cache_file"
16823      else
16824        case $cache_file in #(
16825        */* | ?:*)
16826	  mv -f confcache "$cache_file"$$ &&
16827	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16828        *)
16829	  mv -f confcache "$cache_file" ;;
16830	esac
16831      fi
16832    fi
16833  else
16834    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16835$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16836  fi
16837fi
16838rm -f confcache
16839
16840test "x$prefix" = xNONE && prefix=$ac_default_prefix
16841# Let make expand exec_prefix.
16842test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16843
16844DEFS=-DHAVE_CONFIG_H
16845
16846ac_libobjs=
16847ac_ltlibobjs=
16848U=
16849for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16850  # 1. Remove the extension, and $U if already installed.
16851  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16852  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16853  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16854  #    will be set to the directory where LIBOBJS objects are built.
16855  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16856  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16857done
16858LIBOBJS=$ac_libobjs
16859
16860LTLIBOBJS=$ac_ltlibobjs
16861
16862
16863 if test -n "$EXEEXT"; then
16864  am__EXEEXT_TRUE=
16865  am__EXEEXT_FALSE='#'
16866else
16867  am__EXEEXT_TRUE='#'
16868  am__EXEEXT_FALSE=
16869fi
16870
16871if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16872  as_fn_error $? "conditional \"AMDEP\" was never defined.
16873Usually this means the macro was only invoked conditionally." "$LINENO" 5
16874fi
16875if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16876  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16877Usually this means the macro was only invoked conditionally." "$LINENO" 5
16878fi
16879if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16880  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16881Usually this means the macro was only invoked conditionally." "$LINENO" 5
16882fi
16883
16884: "${CONFIG_STATUS=./config.status}"
16885ac_write_fail=0
16886ac_clean_files_save=$ac_clean_files
16887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16888{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16889$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16890as_write_fail=0
16891cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16892#! $SHELL
16893# Generated by $as_me.
16894# Run this file to recreate the current configuration.
16895# Compiler output produced by configure, useful for debugging
16896# configure, is in config.log if it exists.
16897
16898debug=false
16899ac_cs_recheck=false
16900ac_cs_silent=false
16901
16902SHELL=\${CONFIG_SHELL-$SHELL}
16903export SHELL
16904_ASEOF
16905cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16906## -------------------- ##
16907## M4sh Initialization. ##
16908## -------------------- ##
16909
16910# Be more Bourne compatible
16911DUALCASE=1; export DUALCASE # for MKS sh
16912if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16913  emulate sh
16914  NULLCMD=:
16915  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16916  # is contrary to our usage.  Disable this feature.
16917  alias -g '${1+"$@"}'='"$@"'
16918  setopt NO_GLOB_SUBST
16919else
16920  case `(set -o) 2>/dev/null` in #(
16921  *posix*) :
16922    set -o posix ;; #(
16923  *) :
16924     ;;
16925esac
16926fi
16927
16928
16929as_nl='
16930'
16931export as_nl
16932# Printing a long string crashes Solaris 7 /usr/bin/printf.
16933as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16934as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16936# Prefer a ksh shell builtin over an external printf program on Solaris,
16937# but without wasting forks for bash or zsh.
16938if test -z "$BASH_VERSION$ZSH_VERSION" \
16939    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16940  as_echo='print -r --'
16941  as_echo_n='print -rn --'
16942elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16943  as_echo='printf %s\n'
16944  as_echo_n='printf %s'
16945else
16946  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16947    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16948    as_echo_n='/usr/ucb/echo -n'
16949  else
16950    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16951    as_echo_n_body='eval
16952      arg=$1;
16953      case $arg in #(
16954      *"$as_nl"*)
16955	expr "X$arg" : "X\\(.*\\)$as_nl";
16956	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16957      esac;
16958      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16959    '
16960    export as_echo_n_body
16961    as_echo_n='sh -c $as_echo_n_body as_echo'
16962  fi
16963  export as_echo_body
16964  as_echo='sh -c $as_echo_body as_echo'
16965fi
16966
16967# The user is always right.
16968if test "${PATH_SEPARATOR+set}" != set; then
16969  PATH_SEPARATOR=:
16970  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16971    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16972      PATH_SEPARATOR=';'
16973  }
16974fi
16975
16976
16977# IFS
16978# We need space, tab and new line, in precisely that order.  Quoting is
16979# there to prevent editors from complaining about space-tab.
16980# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16981# splitting by setting IFS to empty value.)
16982IFS=" ""	$as_nl"
16983
16984# Find who we are.  Look in the path if we contain no directory separator.
16985as_myself=
16986case $0 in #((
16987  *[\\/]* ) as_myself=$0 ;;
16988  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16989for as_dir in $PATH
16990do
16991  IFS=$as_save_IFS
16992  test -z "$as_dir" && as_dir=.
16993    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16994  done
16995IFS=$as_save_IFS
16996
16997     ;;
16998esac
16999# We did not find ourselves, most probably we were run as `sh COMMAND'
17000# in which case we are not to be found in the path.
17001if test "x$as_myself" = x; then
17002  as_myself=$0
17003fi
17004if test ! -f "$as_myself"; then
17005  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17006  exit 1
17007fi
17008
17009# Unset variables that we do not need and which cause bugs (e.g. in
17010# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17011# suppresses any "Segmentation fault" message there.  '((' could
17012# trigger a bug in pdksh 5.2.14.
17013for as_var in BASH_ENV ENV MAIL MAILPATH
17014do eval test x\${$as_var+set} = xset \
17015  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17016done
17017PS1='$ '
17018PS2='> '
17019PS4='+ '
17020
17021# NLS nuisances.
17022LC_ALL=C
17023export LC_ALL
17024LANGUAGE=C
17025export LANGUAGE
17026
17027# CDPATH.
17028(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17029
17030
17031# as_fn_error STATUS ERROR [LINENO LOG_FD]
17032# ----------------------------------------
17033# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17034# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17035# script with STATUS, using 1 if that was 0.
17036as_fn_error ()
17037{
17038  as_status=$1; test $as_status -eq 0 && as_status=1
17039  if test "$4"; then
17040    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17041    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17042  fi
17043  $as_echo "$as_me: error: $2" >&2
17044  as_fn_exit $as_status
17045} # as_fn_error
17046
17047
17048# as_fn_set_status STATUS
17049# -----------------------
17050# Set $? to STATUS, without forking.
17051as_fn_set_status ()
17052{
17053  return $1
17054} # as_fn_set_status
17055
17056# as_fn_exit STATUS
17057# -----------------
17058# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17059as_fn_exit ()
17060{
17061  set +e
17062  as_fn_set_status $1
17063  exit $1
17064} # as_fn_exit
17065
17066# as_fn_unset VAR
17067# ---------------
17068# Portably unset VAR.
17069as_fn_unset ()
17070{
17071  { eval $1=; unset $1;}
17072}
17073as_unset=as_fn_unset
17074# as_fn_append VAR VALUE
17075# ----------------------
17076# Append the text in VALUE to the end of the definition contained in VAR. Take
17077# advantage of any shell optimizations that allow amortized linear growth over
17078# repeated appends, instead of the typical quadratic growth present in naive
17079# implementations.
17080if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17081  eval 'as_fn_append ()
17082  {
17083    eval $1+=\$2
17084  }'
17085else
17086  as_fn_append ()
17087  {
17088    eval $1=\$$1\$2
17089  }
17090fi # as_fn_append
17091
17092# as_fn_arith ARG...
17093# ------------------
17094# Perform arithmetic evaluation on the ARGs, and store the result in the
17095# global $as_val. Take advantage of shells that can avoid forks. The arguments
17096# must be portable across $(()) and expr.
17097if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17098  eval 'as_fn_arith ()
17099  {
17100    as_val=$(( $* ))
17101  }'
17102else
17103  as_fn_arith ()
17104  {
17105    as_val=`expr "$@" || test $? -eq 1`
17106  }
17107fi # as_fn_arith
17108
17109
17110if expr a : '\(a\)' >/dev/null 2>&1 &&
17111   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17112  as_expr=expr
17113else
17114  as_expr=false
17115fi
17116
17117if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17118  as_basename=basename
17119else
17120  as_basename=false
17121fi
17122
17123if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17124  as_dirname=dirname
17125else
17126  as_dirname=false
17127fi
17128
17129as_me=`$as_basename -- "$0" ||
17130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17131	 X"$0" : 'X\(//\)$' \| \
17132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17133$as_echo X/"$0" |
17134    sed '/^.*\/\([^/][^/]*\)\/*$/{
17135	    s//\1/
17136	    q
17137	  }
17138	  /^X\/\(\/\/\)$/{
17139	    s//\1/
17140	    q
17141	  }
17142	  /^X\/\(\/\).*/{
17143	    s//\1/
17144	    q
17145	  }
17146	  s/.*/./; q'`
17147
17148# Avoid depending upon Character Ranges.
17149as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17150as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17151as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17152as_cr_digits='0123456789'
17153as_cr_alnum=$as_cr_Letters$as_cr_digits
17154
17155ECHO_C= ECHO_N= ECHO_T=
17156case `echo -n x` in #(((((
17157-n*)
17158  case `echo 'xy\c'` in
17159  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17160  xy)  ECHO_C='\c';;
17161  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17162       ECHO_T='	';;
17163  esac;;
17164*)
17165  ECHO_N='-n';;
17166esac
17167
17168rm -f conf$$ conf$$.exe conf$$.file
17169if test -d conf$$.dir; then
17170  rm -f conf$$.dir/conf$$.file
17171else
17172  rm -f conf$$.dir
17173  mkdir conf$$.dir 2>/dev/null
17174fi
17175if (echo >conf$$.file) 2>/dev/null; then
17176  if ln -s conf$$.file conf$$ 2>/dev/null; then
17177    as_ln_s='ln -s'
17178    # ... but there are two gotchas:
17179    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17180    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17181    # In both cases, we have to default to `cp -pR'.
17182    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17183      as_ln_s='cp -pR'
17184  elif ln conf$$.file conf$$ 2>/dev/null; then
17185    as_ln_s=ln
17186  else
17187    as_ln_s='cp -pR'
17188  fi
17189else
17190  as_ln_s='cp -pR'
17191fi
17192rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17193rmdir conf$$.dir 2>/dev/null
17194
17195
17196# as_fn_mkdir_p
17197# -------------
17198# Create "$as_dir" as a directory, including parents if necessary.
17199as_fn_mkdir_p ()
17200{
17201
17202  case $as_dir in #(
17203  -*) as_dir=./$as_dir;;
17204  esac
17205  test -d "$as_dir" || eval $as_mkdir_p || {
17206    as_dirs=
17207    while :; do
17208      case $as_dir in #(
17209      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17210      *) as_qdir=$as_dir;;
17211      esac
17212      as_dirs="'$as_qdir' $as_dirs"
17213      as_dir=`$as_dirname -- "$as_dir" ||
17214$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17215	 X"$as_dir" : 'X\(//\)[^/]' \| \
17216	 X"$as_dir" : 'X\(//\)$' \| \
17217	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17218$as_echo X"$as_dir" |
17219    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17220	    s//\1/
17221	    q
17222	  }
17223	  /^X\(\/\/\)[^/].*/{
17224	    s//\1/
17225	    q
17226	  }
17227	  /^X\(\/\/\)$/{
17228	    s//\1/
17229	    q
17230	  }
17231	  /^X\(\/\).*/{
17232	    s//\1/
17233	    q
17234	  }
17235	  s/.*/./; q'`
17236      test -d "$as_dir" && break
17237    done
17238    test -z "$as_dirs" || eval "mkdir $as_dirs"
17239  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17240
17241
17242} # as_fn_mkdir_p
17243if mkdir -p . 2>/dev/null; then
17244  as_mkdir_p='mkdir -p "$as_dir"'
17245else
17246  test -d ./-p && rmdir ./-p
17247  as_mkdir_p=false
17248fi
17249
17250
17251# as_fn_executable_p FILE
17252# -----------------------
17253# Test if FILE is an executable regular file.
17254as_fn_executable_p ()
17255{
17256  test -f "$1" && test -x "$1"
17257} # as_fn_executable_p
17258as_test_x='test -x'
17259as_executable_p=as_fn_executable_p
17260
17261# Sed expression to map a string onto a valid CPP name.
17262as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17263
17264# Sed expression to map a string onto a valid variable name.
17265as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17266
17267
17268exec 6>&1
17269## ----------------------------------- ##
17270## Main body of $CONFIG_STATUS script. ##
17271## ----------------------------------- ##
17272_ASEOF
17273test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17274
17275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17276# Save the log message, to keep $0 and so on meaningful, and to
17277# report actual input values of CONFIG_FILES etc. instead of their
17278# values after options handling.
17279ac_log="
17280This file was extended by $as_me, which was
17281generated by GNU Autoconf 2.69.  Invocation command line was
17282
17283  CONFIG_FILES    = $CONFIG_FILES
17284  CONFIG_HEADERS  = $CONFIG_HEADERS
17285  CONFIG_LINKS    = $CONFIG_LINKS
17286  CONFIG_COMMANDS = $CONFIG_COMMANDS
17287  $ $0 $@
17288
17289on `(hostname || uname -n) 2>/dev/null | sed 1q`
17290"
17291
17292_ACEOF
17293
17294case $ac_config_files in *"
17295"*) set x $ac_config_files; shift; ac_config_files=$*;;
17296esac
17297
17298case $ac_config_headers in *"
17299"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17300esac
17301
17302
17303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17304# Files that config.status was made for.
17305config_files="$ac_config_files"
17306config_headers="$ac_config_headers"
17307config_commands="$ac_config_commands"
17308
17309_ACEOF
17310
17311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17312ac_cs_usage="\
17313\`$as_me' instantiates files and other configuration actions
17314from templates according to the current configuration.  Unless the files
17315and actions are specified as TAGs, all are instantiated by default.
17316
17317Usage: $0 [OPTION]... [TAG]...
17318
17319  -h, --help       print this help, then exit
17320  -V, --version    print version number and configuration settings, then exit
17321      --config     print configuration, then exit
17322  -q, --quiet, --silent
17323                   do not print progress messages
17324  -d, --debug      don't remove temporary files
17325      --recheck    update $as_me by reconfiguring in the same conditions
17326      --file=FILE[:TEMPLATE]
17327                   instantiate the configuration file FILE
17328      --header=FILE[:TEMPLATE]
17329                   instantiate the configuration header FILE
17330
17331Configuration files:
17332$config_files
17333
17334Configuration headers:
17335$config_headers
17336
17337Configuration commands:
17338$config_commands
17339
17340Report bugs to the package provider."
17341
17342_ACEOF
17343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17344ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17345ac_cs_version="\\
17346config.status
17347configured by $0, generated by GNU Autoconf 2.69,
17348  with options \\"\$ac_cs_config\\"
17349
17350Copyright (C) 2012 Free Software Foundation, Inc.
17351This config.status script is free software; the Free Software Foundation
17352gives unlimited permission to copy, distribute and modify it."
17353
17354ac_pwd='$ac_pwd'
17355srcdir='$srcdir'
17356INSTALL='$INSTALL'
17357MKDIR_P='$MKDIR_P'
17358AWK='$AWK'
17359test -n "\$AWK" || AWK=awk
17360_ACEOF
17361
17362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17363# The default lists apply if the user does not specify any file.
17364ac_need_defaults=:
17365while test $# != 0
17366do
17367  case $1 in
17368  --*=?*)
17369    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17370    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17371    ac_shift=:
17372    ;;
17373  --*=)
17374    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17375    ac_optarg=
17376    ac_shift=:
17377    ;;
17378  *)
17379    ac_option=$1
17380    ac_optarg=$2
17381    ac_shift=shift
17382    ;;
17383  esac
17384
17385  case $ac_option in
17386  # Handling of the options.
17387  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17388    ac_cs_recheck=: ;;
17389  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17390    $as_echo "$ac_cs_version"; exit ;;
17391  --config | --confi | --conf | --con | --co | --c )
17392    $as_echo "$ac_cs_config"; exit ;;
17393  --debug | --debu | --deb | --de | --d | -d )
17394    debug=: ;;
17395  --file | --fil | --fi | --f )
17396    $ac_shift
17397    case $ac_optarg in
17398    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17399    '') as_fn_error $? "missing file argument" ;;
17400    esac
17401    as_fn_append CONFIG_FILES " '$ac_optarg'"
17402    ac_need_defaults=false;;
17403  --header | --heade | --head | --hea )
17404    $ac_shift
17405    case $ac_optarg in
17406    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17407    esac
17408    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17409    ac_need_defaults=false;;
17410  --he | --h)
17411    # Conflict between --help and --header
17412    as_fn_error $? "ambiguous option: \`$1'
17413Try \`$0 --help' for more information.";;
17414  --help | --hel | -h )
17415    $as_echo "$ac_cs_usage"; exit ;;
17416  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17417  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17418    ac_cs_silent=: ;;
17419
17420  # This is an error.
17421  -*) as_fn_error $? "unrecognized option: \`$1'
17422Try \`$0 --help' for more information." ;;
17423
17424  *) as_fn_append ac_config_targets " $1"
17425     ac_need_defaults=false ;;
17426
17427  esac
17428  shift
17429done
17430
17431ac_configure_extra_args=
17432
17433if $ac_cs_silent; then
17434  exec 6>/dev/null
17435  ac_configure_extra_args="$ac_configure_extra_args --silent"
17436fi
17437
17438_ACEOF
17439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17440if \$ac_cs_recheck; then
17441  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17442  shift
17443  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17444  CONFIG_SHELL='$SHELL'
17445  export CONFIG_SHELL
17446  exec "\$@"
17447fi
17448
17449_ACEOF
17450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17451exec 5>>config.log
17452{
17453  echo
17454  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17455## Running $as_me. ##
17456_ASBOX
17457  $as_echo "$ac_log"
17458} >&5
17459
17460_ACEOF
17461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17462#
17463# INIT-COMMANDS
17464#
17465AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17466
17467
17468# The HP-UX ksh and POSIX shell print the target directory to stdout
17469# if CDPATH is set.
17470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17471
17472sed_quote_subst='$sed_quote_subst'
17473double_quote_subst='$double_quote_subst'
17474delay_variable_subst='$delay_variable_subst'
17475macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17476macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17477enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17478enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17479pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17480enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17481SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17482ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17483PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17484host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17485host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17486host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17487build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17488build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17489build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17490SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17491Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17492GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17493EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17494FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17495LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17496NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17497LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17498max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17499ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17500exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17501lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17502lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17503lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17504lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17505lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17506reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17507reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17508OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17509deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17510file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17511file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17512want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17513DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17514sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17515AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17516AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17517archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17518STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17519RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17520old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17521old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17522old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17523lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17524CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17525CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17526compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17527GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17528lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17529lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17530lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17531lt_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"`'
17532nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17533lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17534objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17535MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17536lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17537lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17538lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17539lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17540lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17541need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17542MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17543DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17544NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17545LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17546OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17547OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17548libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17549shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17550extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17551archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17552enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17553export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17554whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17555compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17556old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17557old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17558archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17559archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17560module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17561module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17562with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17563allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17564no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17565hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17566hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17567hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17568hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17569hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17570hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17571hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17572inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17573link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17574always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17575export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17576exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17577include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17578prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17579postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17580file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17581variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17582need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17583need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17584version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17585runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17586shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17587shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17588libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17589library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17590soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17591install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17592postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17593postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17594finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17595finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17596hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17597sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17598sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17599hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17600enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17601enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17602enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17603old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17604striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17605compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17606predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17607postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17608predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17609postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17610compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17611LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17612reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17613reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17614old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17615compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17616GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17617lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17618lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17619lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17620lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17621lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17622archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17623enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17624export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17625whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17626compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17627old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17628old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17629archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17630archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17631module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17632module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17633with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17634allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17635no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17636hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17637hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17638hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17639hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17640hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17641hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17642hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17643inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17644link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17645always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17646export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17647exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17648include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17649prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17650postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17651file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17652hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17653compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17654predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17655postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17656predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17657postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17658compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17659
17660LTCC='$LTCC'
17661LTCFLAGS='$LTCFLAGS'
17662compiler='$compiler_DEFAULT'
17663
17664# A function that is used when there is no print builtin or printf.
17665func_fallback_echo ()
17666{
17667  eval 'cat <<_LTECHO_EOF
17668\$1
17669_LTECHO_EOF'
17670}
17671
17672# Quote evaled strings.
17673for var in SHELL \
17674ECHO \
17675PATH_SEPARATOR \
17676SED \
17677GREP \
17678EGREP \
17679FGREP \
17680LD \
17681NM \
17682LN_S \
17683lt_SP2NL \
17684lt_NL2SP \
17685reload_flag \
17686OBJDUMP \
17687deplibs_check_method \
17688file_magic_cmd \
17689file_magic_glob \
17690want_nocaseglob \
17691DLLTOOL \
17692sharedlib_from_linklib_cmd \
17693AR \
17694AR_FLAGS \
17695archiver_list_spec \
17696STRIP \
17697RANLIB \
17698CC \
17699CFLAGS \
17700compiler \
17701lt_cv_sys_global_symbol_pipe \
17702lt_cv_sys_global_symbol_to_cdecl \
17703lt_cv_sys_global_symbol_to_c_name_address \
17704lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17705nm_file_list_spec \
17706lt_prog_compiler_no_builtin_flag \
17707lt_prog_compiler_pic \
17708lt_prog_compiler_wl \
17709lt_prog_compiler_static \
17710lt_cv_prog_compiler_c_o \
17711need_locks \
17712MANIFEST_TOOL \
17713DSYMUTIL \
17714NMEDIT \
17715LIPO \
17716OTOOL \
17717OTOOL64 \
17718shrext_cmds \
17719export_dynamic_flag_spec \
17720whole_archive_flag_spec \
17721compiler_needs_object \
17722with_gnu_ld \
17723allow_undefined_flag \
17724no_undefined_flag \
17725hardcode_libdir_flag_spec \
17726hardcode_libdir_separator \
17727exclude_expsyms \
17728include_expsyms \
17729file_list_spec \
17730variables_saved_for_relink \
17731libname_spec \
17732library_names_spec \
17733soname_spec \
17734install_override_mode \
17735finish_eval \
17736old_striplib \
17737striplib \
17738compiler_lib_search_dirs \
17739predep_objects \
17740postdep_objects \
17741predeps \
17742postdeps \
17743compiler_lib_search_path \
17744LD_CXX \
17745reload_flag_CXX \
17746compiler_CXX \
17747lt_prog_compiler_no_builtin_flag_CXX \
17748lt_prog_compiler_pic_CXX \
17749lt_prog_compiler_wl_CXX \
17750lt_prog_compiler_static_CXX \
17751lt_cv_prog_compiler_c_o_CXX \
17752export_dynamic_flag_spec_CXX \
17753whole_archive_flag_spec_CXX \
17754compiler_needs_object_CXX \
17755with_gnu_ld_CXX \
17756allow_undefined_flag_CXX \
17757no_undefined_flag_CXX \
17758hardcode_libdir_flag_spec_CXX \
17759hardcode_libdir_separator_CXX \
17760exclude_expsyms_CXX \
17761include_expsyms_CXX \
17762file_list_spec_CXX \
17763compiler_lib_search_dirs_CXX \
17764predep_objects_CXX \
17765postdep_objects_CXX \
17766predeps_CXX \
17767postdeps_CXX \
17768compiler_lib_search_path_CXX; do
17769    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17770    *[\\\\\\\`\\"\\\$]*)
17771      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17772      ;;
17773    *)
17774      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17775      ;;
17776    esac
17777done
17778
17779# Double-quote double-evaled strings.
17780for var in reload_cmds \
17781old_postinstall_cmds \
17782old_postuninstall_cmds \
17783old_archive_cmds \
17784extract_expsyms_cmds \
17785old_archive_from_new_cmds \
17786old_archive_from_expsyms_cmds \
17787archive_cmds \
17788archive_expsym_cmds \
17789module_cmds \
17790module_expsym_cmds \
17791export_symbols_cmds \
17792prelink_cmds \
17793postlink_cmds \
17794postinstall_cmds \
17795postuninstall_cmds \
17796finish_cmds \
17797sys_lib_search_path_spec \
17798sys_lib_dlsearch_path_spec \
17799reload_cmds_CXX \
17800old_archive_cmds_CXX \
17801old_archive_from_new_cmds_CXX \
17802old_archive_from_expsyms_cmds_CXX \
17803archive_cmds_CXX \
17804archive_expsym_cmds_CXX \
17805module_cmds_CXX \
17806module_expsym_cmds_CXX \
17807export_symbols_cmds_CXX \
17808prelink_cmds_CXX \
17809postlink_cmds_CXX; do
17810    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17811    *[\\\\\\\`\\"\\\$]*)
17812      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17813      ;;
17814    *)
17815      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17816      ;;
17817    esac
17818done
17819
17820ac_aux_dir='$ac_aux_dir'
17821xsi_shell='$xsi_shell'
17822lt_shell_append='$lt_shell_append'
17823
17824# See if we are running on zsh, and set the options which allow our
17825# commands through without removal of \ escapes INIT.
17826if test -n "\${ZSH_VERSION+set}" ; then
17827   setopt NO_GLOB_SUBST
17828fi
17829
17830
17831    PACKAGE='$PACKAGE'
17832    VERSION='$VERSION'
17833    TIMESTAMP='$TIMESTAMP'
17834    RM='$RM'
17835    ofile='$ofile'
17836
17837
17838
17839
17840
17841
17842_ACEOF
17843
17844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17845
17846# Handling of arguments.
17847for ac_config_target in $ac_config_targets
17848do
17849  case $ac_config_target in
17850    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17851    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17852    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17853    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17854    "Makefile.msvc") CONFIG_FILES="$CONFIG_FILES Makefile.msvc" ;;
17855    "swig/version.h") CONFIG_FILES="$CONFIG_FILES swig/version.h" ;;
17856
17857  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17858  esac
17859done
17860
17861
17862# If the user did not use the arguments to specify the items to instantiate,
17863# then the envvar interface is used.  Set only those that are not.
17864# We use the long form for the default assignment because of an extremely
17865# bizarre bug on SunOS 4.1.3.
17866if $ac_need_defaults; then
17867  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17868  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17869  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17870fi
17871
17872# Have a temporary directory for convenience.  Make it in the build tree
17873# simply because there is no reason against having it here, and in addition,
17874# creating and moving files from /tmp can sometimes cause problems.
17875# Hook for its removal unless debugging.
17876# Note that there is a small window in which the directory will not be cleaned:
17877# after its creation but before its name has been assigned to `$tmp'.
17878$debug ||
17879{
17880  tmp= ac_tmp=
17881  trap 'exit_status=$?
17882  : "${ac_tmp:=$tmp}"
17883  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17884' 0
17885  trap 'as_fn_exit 1' 1 2 13 15
17886}
17887# Create a (secure) tmp directory for tmp files.
17888
17889{
17890  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17891  test -d "$tmp"
17892}  ||
17893{
17894  tmp=./conf$$-$RANDOM
17895  (umask 077 && mkdir "$tmp")
17896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17897ac_tmp=$tmp
17898
17899# Set up the scripts for CONFIG_FILES section.
17900# No need to generate them if there are no CONFIG_FILES.
17901# This happens for instance with `./config.status config.h'.
17902if test -n "$CONFIG_FILES"; then
17903
17904
17905ac_cr=`echo X | tr X '\015'`
17906# On cygwin, bash can eat \r inside `` if the user requested igncr.
17907# But we know of no other shell where ac_cr would be empty at this
17908# point, so we can use a bashism as a fallback.
17909if test "x$ac_cr" = x; then
17910  eval ac_cr=\$\'\\r\'
17911fi
17912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17914  ac_cs_awk_cr='\\r'
17915else
17916  ac_cs_awk_cr=$ac_cr
17917fi
17918
17919echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17920_ACEOF
17921
17922
17923{
17924  echo "cat >conf$$subs.awk <<_ACEOF" &&
17925  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17926  echo "_ACEOF"
17927} >conf$$subs.sh ||
17928  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17930ac_delim='%!_!# '
17931for ac_last_try in false false false false false :; do
17932  . ./conf$$subs.sh ||
17933    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17934
17935  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17936  if test $ac_delim_n = $ac_delim_num; then
17937    break
17938  elif $ac_last_try; then
17939    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17940  else
17941    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17942  fi
17943done
17944rm -f conf$$subs.sh
17945
17946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17948_ACEOF
17949sed -n '
17950h
17951s/^/S["/; s/!.*/"]=/
17952p
17953g
17954s/^[^!]*!//
17955:repl
17956t repl
17957s/'"$ac_delim"'$//
17958t delim
17959:nl
17960h
17961s/\(.\{148\}\)..*/\1/
17962t more1
17963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17964p
17965n
17966b repl
17967:more1
17968s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17969p
17970g
17971s/.\{148\}//
17972t nl
17973:delim
17974h
17975s/\(.\{148\}\)..*/\1/
17976t more2
17977s/["\\]/\\&/g; s/^/"/; s/$/"/
17978p
17979b
17980:more2
17981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17982p
17983g
17984s/.\{148\}//
17985t delim
17986' <conf$$subs.awk | sed '
17987/^[^""]/{
17988  N
17989  s/\n//
17990}
17991' >>$CONFIG_STATUS || ac_write_fail=1
17992rm -f conf$$subs.awk
17993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17994_ACAWK
17995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17996  for (key in S) S_is_set[key] = 1
17997  FS = ""
17998
17999}
18000{
18001  line = $ 0
18002  nfields = split(line, field, "@")
18003  substed = 0
18004  len = length(field[1])
18005  for (i = 2; i < nfields; i++) {
18006    key = field[i]
18007    keylen = length(key)
18008    if (S_is_set[key]) {
18009      value = S[key]
18010      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18011      len += length(value) + length(field[++i])
18012      substed = 1
18013    } else
18014      len += 1 + keylen
18015  }
18016
18017  print line
18018}
18019
18020_ACAWK
18021_ACEOF
18022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18024  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18025else
18026  cat
18027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18028  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18029_ACEOF
18030
18031# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18033# trailing colons and then remove the whole line if VPATH becomes empty
18034# (actually we leave an empty line to preserve line numbers).
18035if test "x$srcdir" = x.; then
18036  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18037h
18038s///
18039s/^/:/
18040s/[	 ]*$/:/
18041s/:\$(srcdir):/:/g
18042s/:\${srcdir}:/:/g
18043s/:@srcdir@:/:/g
18044s/^:*//
18045s/:*$//
18046x
18047s/\(=[	 ]*\).*/\1/
18048G
18049s/\n//
18050s/^[^=]*=[	 ]*$//
18051}'
18052fi
18053
18054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18055fi # test -n "$CONFIG_FILES"
18056
18057# Set up the scripts for CONFIG_HEADERS section.
18058# No need to generate them if there are no CONFIG_HEADERS.
18059# This happens for instance with `./config.status Makefile'.
18060if test -n "$CONFIG_HEADERS"; then
18061cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18062BEGIN {
18063_ACEOF
18064
18065# Transform confdefs.h into an awk script `defines.awk', embedded as
18066# here-document in config.status, that substitutes the proper values into
18067# config.h.in to produce config.h.
18068
18069# Create a delimiter string that does not exist in confdefs.h, to ease
18070# handling of long lines.
18071ac_delim='%!_!# '
18072for ac_last_try in false false :; do
18073  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18074  if test -z "$ac_tt"; then
18075    break
18076  elif $ac_last_try; then
18077    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18078  else
18079    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18080  fi
18081done
18082
18083# For the awk script, D is an array of macro values keyed by name,
18084# likewise P contains macro parameters if any.  Preserve backslash
18085# newline sequences.
18086
18087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18088sed -n '
18089s/.\{148\}/&'"$ac_delim"'/g
18090t rset
18091:rset
18092s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18093t def
18094d
18095:def
18096s/\\$//
18097t bsnl
18098s/["\\]/\\&/g
18099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18100D["\1"]=" \3"/p
18101s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18102d
18103:bsnl
18104s/["\\]/\\&/g
18105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18106D["\1"]=" \3\\\\\\n"\\/p
18107t cont
18108s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18109t cont
18110d
18111:cont
18112n
18113s/.\{148\}/&'"$ac_delim"'/g
18114t clear
18115:clear
18116s/\\$//
18117t bsnlc
18118s/["\\]/\\&/g; s/^/"/; s/$/"/p
18119d
18120:bsnlc
18121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18122b cont
18123' <confdefs.h | sed '
18124s/'"$ac_delim"'/"\\\
18125"/g' >>$CONFIG_STATUS || ac_write_fail=1
18126
18127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18128  for (key in D) D_is_set[key] = 1
18129  FS = ""
18130}
18131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18132  line = \$ 0
18133  split(line, arg, " ")
18134  if (arg[1] == "#") {
18135    defundef = arg[2]
18136    mac1 = arg[3]
18137  } else {
18138    defundef = substr(arg[1], 2)
18139    mac1 = arg[2]
18140  }
18141  split(mac1, mac2, "(") #)
18142  macro = mac2[1]
18143  prefix = substr(line, 1, index(line, defundef) - 1)
18144  if (D_is_set[macro]) {
18145    # Preserve the white space surrounding the "#".
18146    print prefix "define", macro P[macro] D[macro]
18147    next
18148  } else {
18149    # Replace #undef with comments.  This is necessary, for example,
18150    # in the case of _POSIX_SOURCE, which is predefined and required
18151    # on some systems where configure will not decide to define it.
18152    if (defundef == "undef") {
18153      print "/*", prefix defundef, macro, "*/"
18154      next
18155    }
18156  }
18157}
18158{ print }
18159_ACAWK
18160_ACEOF
18161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18162  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18163fi # test -n "$CONFIG_HEADERS"
18164
18165
18166eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18167shift
18168for ac_tag
18169do
18170  case $ac_tag in
18171  :[FHLC]) ac_mode=$ac_tag; continue;;
18172  esac
18173  case $ac_mode$ac_tag in
18174  :[FHL]*:*);;
18175  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18176  :[FH]-) ac_tag=-:-;;
18177  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18178  esac
18179  ac_save_IFS=$IFS
18180  IFS=:
18181  set x $ac_tag
18182  IFS=$ac_save_IFS
18183  shift
18184  ac_file=$1
18185  shift
18186
18187  case $ac_mode in
18188  :L) ac_source=$1;;
18189  :[FH])
18190    ac_file_inputs=
18191    for ac_f
18192    do
18193      case $ac_f in
18194      -) ac_f="$ac_tmp/stdin";;
18195      *) # Look for the file first in the build tree, then in the source tree
18196	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18197	 # because $ac_f cannot contain `:'.
18198	 test -f "$ac_f" ||
18199	   case $ac_f in
18200	   [\\/$]*) false;;
18201	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18202	   esac ||
18203	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18204      esac
18205      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18206      as_fn_append ac_file_inputs " '$ac_f'"
18207    done
18208
18209    # Let's still pretend it is `configure' which instantiates (i.e., don't
18210    # use $as_me), people would be surprised to read:
18211    #    /* config.h.  Generated by config.status.  */
18212    configure_input='Generated from '`
18213	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18214	`' by configure.'
18215    if test x"$ac_file" != x-; then
18216      configure_input="$ac_file.  $configure_input"
18217      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18218$as_echo "$as_me: creating $ac_file" >&6;}
18219    fi
18220    # Neutralize special characters interpreted by sed in replacement strings.
18221    case $configure_input in #(
18222    *\&* | *\|* | *\\* )
18223       ac_sed_conf_input=`$as_echo "$configure_input" |
18224       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18225    *) ac_sed_conf_input=$configure_input;;
18226    esac
18227
18228    case $ac_tag in
18229    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18230      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18231    esac
18232    ;;
18233  esac
18234
18235  ac_dir=`$as_dirname -- "$ac_file" ||
18236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18237	 X"$ac_file" : 'X\(//\)[^/]' \| \
18238	 X"$ac_file" : 'X\(//\)$' \| \
18239	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18240$as_echo X"$ac_file" |
18241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18242	    s//\1/
18243	    q
18244	  }
18245	  /^X\(\/\/\)[^/].*/{
18246	    s//\1/
18247	    q
18248	  }
18249	  /^X\(\/\/\)$/{
18250	    s//\1/
18251	    q
18252	  }
18253	  /^X\(\/\).*/{
18254	    s//\1/
18255	    q
18256	  }
18257	  s/.*/./; q'`
18258  as_dir="$ac_dir"; as_fn_mkdir_p
18259  ac_builddir=.
18260
18261case "$ac_dir" in
18262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18263*)
18264  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18265  # A ".." for each directory in $ac_dir_suffix.
18266  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18267  case $ac_top_builddir_sub in
18268  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18269  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18270  esac ;;
18271esac
18272ac_abs_top_builddir=$ac_pwd
18273ac_abs_builddir=$ac_pwd$ac_dir_suffix
18274# for backward compatibility:
18275ac_top_builddir=$ac_top_build_prefix
18276
18277case $srcdir in
18278  .)  # We are building in place.
18279    ac_srcdir=.
18280    ac_top_srcdir=$ac_top_builddir_sub
18281    ac_abs_top_srcdir=$ac_pwd ;;
18282  [\\/]* | ?:[\\/]* )  # Absolute name.
18283    ac_srcdir=$srcdir$ac_dir_suffix;
18284    ac_top_srcdir=$srcdir
18285    ac_abs_top_srcdir=$srcdir ;;
18286  *) # Relative name.
18287    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18288    ac_top_srcdir=$ac_top_build_prefix$srcdir
18289    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18290esac
18291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18292
18293
18294  case $ac_mode in
18295  :F)
18296  #
18297  # CONFIG_FILE
18298  #
18299
18300  case $INSTALL in
18301  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18302  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18303  esac
18304  ac_MKDIR_P=$MKDIR_P
18305  case $MKDIR_P in
18306  [\\/$]* | ?:[\\/]* ) ;;
18307  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18308  esac
18309_ACEOF
18310
18311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18312# If the template does not know about datarootdir, expand it.
18313# FIXME: This hack should be removed a few years after 2.60.
18314ac_datarootdir_hack=; ac_datarootdir_seen=
18315ac_sed_dataroot='
18316/datarootdir/ {
18317  p
18318  q
18319}
18320/@datadir@/p
18321/@docdir@/p
18322/@infodir@/p
18323/@localedir@/p
18324/@mandir@/p'
18325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18326*datarootdir*) ac_datarootdir_seen=yes;;
18327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18328  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18330_ACEOF
18331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18332  ac_datarootdir_hack='
18333  s&@datadir@&$datadir&g
18334  s&@docdir@&$docdir&g
18335  s&@infodir@&$infodir&g
18336  s&@localedir@&$localedir&g
18337  s&@mandir@&$mandir&g
18338  s&\\\${datarootdir}&$datarootdir&g' ;;
18339esac
18340_ACEOF
18341
18342# Neutralize VPATH when `$srcdir' = `.'.
18343# Shell code in configure.ac might set extrasub.
18344# FIXME: do we really want to maintain this feature?
18345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18346ac_sed_extra="$ac_vpsub
18347$extrasub
18348_ACEOF
18349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18350:t
18351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18352s|@configure_input@|$ac_sed_conf_input|;t t
18353s&@top_builddir@&$ac_top_builddir_sub&;t t
18354s&@top_build_prefix@&$ac_top_build_prefix&;t t
18355s&@srcdir@&$ac_srcdir&;t t
18356s&@abs_srcdir@&$ac_abs_srcdir&;t t
18357s&@top_srcdir@&$ac_top_srcdir&;t t
18358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18359s&@builddir@&$ac_builddir&;t t
18360s&@abs_builddir@&$ac_abs_builddir&;t t
18361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18362s&@INSTALL@&$ac_INSTALL&;t t
18363s&@MKDIR_P@&$ac_MKDIR_P&;t t
18364$ac_datarootdir_hack
18365"
18366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18367  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18368
18369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18370  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18371  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18372      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18373  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18374which seems to be undefined.  Please make sure it is defined" >&5
18375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18376which seems to be undefined.  Please make sure it is defined" >&2;}
18377
18378  rm -f "$ac_tmp/stdin"
18379  case $ac_file in
18380  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18381  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18382  esac \
18383  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18384 ;;
18385  :H)
18386  #
18387  # CONFIG_HEADER
18388  #
18389  if test x"$ac_file" != x-; then
18390    {
18391      $as_echo "/* $configure_input  */" \
18392      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18393    } >"$ac_tmp/config.h" \
18394      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18395    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18396      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18397$as_echo "$as_me: $ac_file is unchanged" >&6;}
18398    else
18399      rm -f "$ac_file"
18400      mv "$ac_tmp/config.h" "$ac_file" \
18401	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18402    fi
18403  else
18404    $as_echo "/* $configure_input  */" \
18405      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18406      || as_fn_error $? "could not create -" "$LINENO" 5
18407  fi
18408# Compute "$ac_file"'s index in $config_headers.
18409_am_arg="$ac_file"
18410_am_stamp_count=1
18411for _am_header in $config_headers :; do
18412  case $_am_header in
18413    $_am_arg | $_am_arg:* )
18414      break ;;
18415    * )
18416      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18417  esac
18418done
18419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18421	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18422	 X"$_am_arg" : 'X\(//\)$' \| \
18423	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18424$as_echo X"$_am_arg" |
18425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18426	    s//\1/
18427	    q
18428	  }
18429	  /^X\(\/\/\)[^/].*/{
18430	    s//\1/
18431	    q
18432	  }
18433	  /^X\(\/\/\)$/{
18434	    s//\1/
18435	    q
18436	  }
18437	  /^X\(\/\).*/{
18438	    s//\1/
18439	    q
18440	  }
18441	  s/.*/./; q'`/stamp-h$_am_stamp_count
18442 ;;
18443
18444  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18445$as_echo "$as_me: executing $ac_file commands" >&6;}
18446 ;;
18447  esac
18448
18449
18450  case $ac_file$ac_mode in
18451    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18452  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18453  # are listed without --file.  Let's play safe and only enable the eval
18454  # if we detect the quoting.
18455  case $CONFIG_FILES in
18456  *\'*) eval set x "$CONFIG_FILES" ;;
18457  *)   set x $CONFIG_FILES ;;
18458  esac
18459  shift
18460  for mf
18461  do
18462    # Strip MF so we end up with the name of the file.
18463    mf=`echo "$mf" | sed -e 's/:.*$//'`
18464    # Check whether this is an Automake generated Makefile or not.
18465    # We used to match only the files named `Makefile.in', but
18466    # some people rename them; so instead we look at the file content.
18467    # Grep'ing the first line is not enough: some people post-process
18468    # each Makefile.in and add a new line on top of each file to say so.
18469    # Grep'ing the whole file is not good either: AIX grep has a line
18470    # limit of 2048, but all sed's we know have understand at least 4000.
18471    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18472      dirpart=`$as_dirname -- "$mf" ||
18473$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18474	 X"$mf" : 'X\(//\)[^/]' \| \
18475	 X"$mf" : 'X\(//\)$' \| \
18476	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18477$as_echo X"$mf" |
18478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18479	    s//\1/
18480	    q
18481	  }
18482	  /^X\(\/\/\)[^/].*/{
18483	    s//\1/
18484	    q
18485	  }
18486	  /^X\(\/\/\)$/{
18487	    s//\1/
18488	    q
18489	  }
18490	  /^X\(\/\).*/{
18491	    s//\1/
18492	    q
18493	  }
18494	  s/.*/./; q'`
18495    else
18496      continue
18497    fi
18498    # Extract the definition of DEPDIR, am__include, and am__quote
18499    # from the Makefile without running `make'.
18500    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18501    test -z "$DEPDIR" && continue
18502    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18503    test -z "am__include" && continue
18504    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18505    # When using ansi2knr, U may be empty or an underscore; expand it
18506    U=`sed -n 's/^U = //p' < "$mf"`
18507    # Find all dependency output files, they are included files with
18508    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18509    # simplest approach to changing $(DEPDIR) to its actual value in the
18510    # expansion.
18511    for file in `sed -n "
18512      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18513	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18514      # Make sure the directory exists.
18515      test -f "$dirpart/$file" && continue
18516      fdir=`$as_dirname -- "$file" ||
18517$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18518	 X"$file" : 'X\(//\)[^/]' \| \
18519	 X"$file" : 'X\(//\)$' \| \
18520	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18521$as_echo X"$file" |
18522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18523	    s//\1/
18524	    q
18525	  }
18526	  /^X\(\/\/\)[^/].*/{
18527	    s//\1/
18528	    q
18529	  }
18530	  /^X\(\/\/\)$/{
18531	    s//\1/
18532	    q
18533	  }
18534	  /^X\(\/\).*/{
18535	    s//\1/
18536	    q
18537	  }
18538	  s/.*/./; q'`
18539      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18540      # echo "creating $dirpart/$file"
18541      echo '# dummy' > "$dirpart/$file"
18542    done
18543  done
18544}
18545 ;;
18546    "libtool":C)
18547
18548    # See if we are running on zsh, and set the options which allow our
18549    # commands through without removal of \ escapes.
18550    if test -n "${ZSH_VERSION+set}" ; then
18551      setopt NO_GLOB_SUBST
18552    fi
18553
18554    cfgfile="${ofile}T"
18555    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18556    $RM "$cfgfile"
18557
18558    cat <<_LT_EOF >> "$cfgfile"
18559#! $SHELL
18560
18561# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18562# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18564# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18565#
18566#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18567#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18568#                 Foundation, Inc.
18569#   Written by Gordon Matzigkeit, 1996
18570#
18571#   This file is part of GNU Libtool.
18572#
18573# GNU Libtool is free software; you can redistribute it and/or
18574# modify it under the terms of the GNU General Public License as
18575# published by the Free Software Foundation; either version 2 of
18576# the License, or (at your option) any later version.
18577#
18578# As a special exception to the GNU General Public License,
18579# if you distribute this file as part of a program or library that
18580# is built using GNU Libtool, you may include this file under the
18581# same distribution terms that you use for the rest of that program.
18582#
18583# GNU Libtool is distributed in the hope that it will be useful,
18584# but WITHOUT ANY WARRANTY; without even the implied warranty of
18585# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18586# GNU General Public License for more details.
18587#
18588# You should have received a copy of the GNU General Public License
18589# along with GNU Libtool; see the file COPYING.  If not, a copy
18590# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18591# obtained by writing to the Free Software Foundation, Inc.,
18592# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18593
18594
18595# The names of the tagged configurations supported by this script.
18596available_tags="CXX "
18597
18598# ### BEGIN LIBTOOL CONFIG
18599
18600# Which release of libtool.m4 was used?
18601macro_version=$macro_version
18602macro_revision=$macro_revision
18603
18604# Whether or not to build shared libraries.
18605build_libtool_libs=$enable_shared
18606
18607# Whether or not to build static libraries.
18608build_old_libs=$enable_static
18609
18610# What type of objects to build.
18611pic_mode=$pic_mode
18612
18613# Whether or not to optimize for fast installation.
18614fast_install=$enable_fast_install
18615
18616# Shell to use when invoking shell scripts.
18617SHELL=$lt_SHELL
18618
18619# An echo program that protects backslashes.
18620ECHO=$lt_ECHO
18621
18622# The PATH separator for the build system.
18623PATH_SEPARATOR=$lt_PATH_SEPARATOR
18624
18625# The host system.
18626host_alias=$host_alias
18627host=$host
18628host_os=$host_os
18629
18630# The build system.
18631build_alias=$build_alias
18632build=$build
18633build_os=$build_os
18634
18635# A sed program that does not truncate output.
18636SED=$lt_SED
18637
18638# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18639Xsed="\$SED -e 1s/^X//"
18640
18641# A grep program that handles long lines.
18642GREP=$lt_GREP
18643
18644# An ERE matcher.
18645EGREP=$lt_EGREP
18646
18647# A literal string matcher.
18648FGREP=$lt_FGREP
18649
18650# A BSD- or MS-compatible name lister.
18651NM=$lt_NM
18652
18653# Whether we need soft or hard links.
18654LN_S=$lt_LN_S
18655
18656# What is the maximum length of a command?
18657max_cmd_len=$max_cmd_len
18658
18659# Object file suffix (normally "o").
18660objext=$ac_objext
18661
18662# Executable file suffix (normally "").
18663exeext=$exeext
18664
18665# whether the shell understands "unset".
18666lt_unset=$lt_unset
18667
18668# turn spaces into newlines.
18669SP2NL=$lt_lt_SP2NL
18670
18671# turn newlines into spaces.
18672NL2SP=$lt_lt_NL2SP
18673
18674# convert \$build file names to \$host format.
18675to_host_file_cmd=$lt_cv_to_host_file_cmd
18676
18677# convert \$build files to toolchain format.
18678to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18679
18680# An object symbol dumper.
18681OBJDUMP=$lt_OBJDUMP
18682
18683# Method to check whether dependent libraries are shared objects.
18684deplibs_check_method=$lt_deplibs_check_method
18685
18686# Command to use when deplibs_check_method = "file_magic".
18687file_magic_cmd=$lt_file_magic_cmd
18688
18689# How to find potential files when deplibs_check_method = "file_magic".
18690file_magic_glob=$lt_file_magic_glob
18691
18692# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18693want_nocaseglob=$lt_want_nocaseglob
18694
18695# DLL creation program.
18696DLLTOOL=$lt_DLLTOOL
18697
18698# Command to associate shared and link libraries.
18699sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18700
18701# The archiver.
18702AR=$lt_AR
18703
18704# Flags to create an archive.
18705AR_FLAGS=$lt_AR_FLAGS
18706
18707# How to feed a file listing to the archiver.
18708archiver_list_spec=$lt_archiver_list_spec
18709
18710# A symbol stripping program.
18711STRIP=$lt_STRIP
18712
18713# Commands used to install an old-style archive.
18714RANLIB=$lt_RANLIB
18715old_postinstall_cmds=$lt_old_postinstall_cmds
18716old_postuninstall_cmds=$lt_old_postuninstall_cmds
18717
18718# Whether to use a lock for old archive extraction.
18719lock_old_archive_extraction=$lock_old_archive_extraction
18720
18721# A C compiler.
18722LTCC=$lt_CC
18723
18724# LTCC compiler flags.
18725LTCFLAGS=$lt_CFLAGS
18726
18727# Take the output of nm and produce a listing of raw symbols and C names.
18728global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18729
18730# Transform the output of nm in a proper C declaration.
18731global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18732
18733# Transform the output of nm in a C name address pair.
18734global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18735
18736# Transform the output of nm in a C name address pair when lib prefix is needed.
18737global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18738
18739# Specify filename containing input files for \$NM.
18740nm_file_list_spec=$lt_nm_file_list_spec
18741
18742# The root where to search for dependent libraries,and in which our libraries should be installed.
18743lt_sysroot=$lt_sysroot
18744
18745# The name of the directory that contains temporary libtool files.
18746objdir=$objdir
18747
18748# Used to examine libraries when file_magic_cmd begins with "file".
18749MAGIC_CMD=$MAGIC_CMD
18750
18751# Must we lock files when doing compilation?
18752need_locks=$lt_need_locks
18753
18754# Manifest tool.
18755MANIFEST_TOOL=$lt_MANIFEST_TOOL
18756
18757# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18758DSYMUTIL=$lt_DSYMUTIL
18759
18760# Tool to change global to local symbols on Mac OS X.
18761NMEDIT=$lt_NMEDIT
18762
18763# Tool to manipulate fat objects and archives on Mac OS X.
18764LIPO=$lt_LIPO
18765
18766# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18767OTOOL=$lt_OTOOL
18768
18769# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18770OTOOL64=$lt_OTOOL64
18771
18772# Old archive suffix (normally "a").
18773libext=$libext
18774
18775# Shared library suffix (normally ".so").
18776shrext_cmds=$lt_shrext_cmds
18777
18778# The commands to extract the exported symbol list from a shared archive.
18779extract_expsyms_cmds=$lt_extract_expsyms_cmds
18780
18781# Variables whose values should be saved in libtool wrapper scripts and
18782# restored at link time.
18783variables_saved_for_relink=$lt_variables_saved_for_relink
18784
18785# Do we need the "lib" prefix for modules?
18786need_lib_prefix=$need_lib_prefix
18787
18788# Do we need a version for libraries?
18789need_version=$need_version
18790
18791# Library versioning type.
18792version_type=$version_type
18793
18794# Shared library runtime path variable.
18795runpath_var=$runpath_var
18796
18797# Shared library path variable.
18798shlibpath_var=$shlibpath_var
18799
18800# Is shlibpath searched before the hard-coded library search path?
18801shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18802
18803# Format of library name prefix.
18804libname_spec=$lt_libname_spec
18805
18806# List of archive names.  First name is the real one, the rest are links.
18807# The last name is the one that the linker finds with -lNAME
18808library_names_spec=$lt_library_names_spec
18809
18810# The coded name of the library, if different from the real name.
18811soname_spec=$lt_soname_spec
18812
18813# Permission mode override for installation of shared libraries.
18814install_override_mode=$lt_install_override_mode
18815
18816# Command to use after installation of a shared archive.
18817postinstall_cmds=$lt_postinstall_cmds
18818
18819# Command to use after uninstallation of a shared archive.
18820postuninstall_cmds=$lt_postuninstall_cmds
18821
18822# Commands used to finish a libtool library installation in a directory.
18823finish_cmds=$lt_finish_cmds
18824
18825# As "finish_cmds", except a single script fragment to be evaled but
18826# not shown.
18827finish_eval=$lt_finish_eval
18828
18829# Whether we should hardcode library paths into libraries.
18830hardcode_into_libs=$hardcode_into_libs
18831
18832# Compile-time system search path for libraries.
18833sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18834
18835# Run-time system search path for libraries.
18836sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18837
18838# Whether dlopen is supported.
18839dlopen_support=$enable_dlopen
18840
18841# Whether dlopen of programs is supported.
18842dlopen_self=$enable_dlopen_self
18843
18844# Whether dlopen of statically linked programs is supported.
18845dlopen_self_static=$enable_dlopen_self_static
18846
18847# Commands to strip libraries.
18848old_striplib=$lt_old_striplib
18849striplib=$lt_striplib
18850
18851
18852# The linker used to build libraries.
18853LD=$lt_LD
18854
18855# How to create reloadable object files.
18856reload_flag=$lt_reload_flag
18857reload_cmds=$lt_reload_cmds
18858
18859# Commands used to build an old-style archive.
18860old_archive_cmds=$lt_old_archive_cmds
18861
18862# A language specific compiler.
18863CC=$lt_compiler
18864
18865# Is the compiler the GNU compiler?
18866with_gcc=$GCC
18867
18868# Compiler flag to turn off builtin functions.
18869no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18870
18871# Additional compiler flags for building library objects.
18872pic_flag=$lt_lt_prog_compiler_pic
18873
18874# How to pass a linker flag through the compiler.
18875wl=$lt_lt_prog_compiler_wl
18876
18877# Compiler flag to prevent dynamic linking.
18878link_static_flag=$lt_lt_prog_compiler_static
18879
18880# Does compiler simultaneously support -c and -o options?
18881compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18882
18883# Whether or not to add -lc for building shared libraries.
18884build_libtool_need_lc=$archive_cmds_need_lc
18885
18886# Whether or not to disallow shared libs when runtime libs are static.
18887allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18888
18889# Compiler flag to allow reflexive dlopens.
18890export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18891
18892# Compiler flag to generate shared objects directly from archives.
18893whole_archive_flag_spec=$lt_whole_archive_flag_spec
18894
18895# Whether the compiler copes with passing no objects directly.
18896compiler_needs_object=$lt_compiler_needs_object
18897
18898# Create an old-style archive from a shared archive.
18899old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18900
18901# Create a temporary old-style archive to link instead of a shared archive.
18902old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18903
18904# Commands used to build a shared archive.
18905archive_cmds=$lt_archive_cmds
18906archive_expsym_cmds=$lt_archive_expsym_cmds
18907
18908# Commands used to build a loadable module if different from building
18909# a shared archive.
18910module_cmds=$lt_module_cmds
18911module_expsym_cmds=$lt_module_expsym_cmds
18912
18913# Whether we are building with GNU ld or not.
18914with_gnu_ld=$lt_with_gnu_ld
18915
18916# Flag that allows shared libraries with undefined symbols to be built.
18917allow_undefined_flag=$lt_allow_undefined_flag
18918
18919# Flag that enforces no undefined symbols.
18920no_undefined_flag=$lt_no_undefined_flag
18921
18922# Flag to hardcode \$libdir into a binary during linking.
18923# This must work even if \$libdir does not exist
18924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18925
18926# Whether we need a single "-rpath" flag with a separated argument.
18927hardcode_libdir_separator=$lt_hardcode_libdir_separator
18928
18929# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18930# DIR into the resulting binary.
18931hardcode_direct=$hardcode_direct
18932
18933# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18934# DIR into the resulting binary and the resulting library dependency is
18935# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18936# library is relocated.
18937hardcode_direct_absolute=$hardcode_direct_absolute
18938
18939# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18940# into the resulting binary.
18941hardcode_minus_L=$hardcode_minus_L
18942
18943# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18944# into the resulting binary.
18945hardcode_shlibpath_var=$hardcode_shlibpath_var
18946
18947# Set to "yes" if building a shared library automatically hardcodes DIR
18948# into the library and all subsequent libraries and executables linked
18949# against it.
18950hardcode_automatic=$hardcode_automatic
18951
18952# Set to yes if linker adds runtime paths of dependent libraries
18953# to runtime path list.
18954inherit_rpath=$inherit_rpath
18955
18956# Whether libtool must link a program against all its dependency libraries.
18957link_all_deplibs=$link_all_deplibs
18958
18959# Set to "yes" if exported symbols are required.
18960always_export_symbols=$always_export_symbols
18961
18962# The commands to list exported symbols.
18963export_symbols_cmds=$lt_export_symbols_cmds
18964
18965# Symbols that should not be listed in the preloaded symbols.
18966exclude_expsyms=$lt_exclude_expsyms
18967
18968# Symbols that must always be exported.
18969include_expsyms=$lt_include_expsyms
18970
18971# Commands necessary for linking programs (against libraries) with templates.
18972prelink_cmds=$lt_prelink_cmds
18973
18974# Commands necessary for finishing linking programs.
18975postlink_cmds=$lt_postlink_cmds
18976
18977# Specify filename containing input files.
18978file_list_spec=$lt_file_list_spec
18979
18980# How to hardcode a shared library path into an executable.
18981hardcode_action=$hardcode_action
18982
18983# The directories searched by this compiler when creating a shared library.
18984compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18985
18986# Dependencies to place before and after the objects being linked to
18987# create a shared library.
18988predep_objects=$lt_predep_objects
18989postdep_objects=$lt_postdep_objects
18990predeps=$lt_predeps
18991postdeps=$lt_postdeps
18992
18993# The library search path used internally by the compiler when linking
18994# a shared library.
18995compiler_lib_search_path=$lt_compiler_lib_search_path
18996
18997# ### END LIBTOOL CONFIG
18998
18999_LT_EOF
19000
19001  case $host_os in
19002  aix3*)
19003    cat <<\_LT_EOF >> "$cfgfile"
19004# AIX sometimes has problems with the GCC collect2 program.  For some
19005# reason, if we set the COLLECT_NAMES environment variable, the problems
19006# vanish in a puff of smoke.
19007if test "X${COLLECT_NAMES+set}" != Xset; then
19008  COLLECT_NAMES=
19009  export COLLECT_NAMES
19010fi
19011_LT_EOF
19012    ;;
19013  esac
19014
19015
19016ltmain="$ac_aux_dir/ltmain.sh"
19017
19018
19019  # We use sed instead of cat because bash on DJGPP gets confused if
19020  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19021  # text mode, it properly converts lines to CR/LF.  This bash problem
19022  # is reportedly fixed, but why not run on old versions too?
19023  sed '$q' "$ltmain" >> "$cfgfile" \
19024     || (rm -f "$cfgfile"; exit 1)
19025
19026  if test x"$xsi_shell" = xyes; then
19027  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19028func_dirname ()\
19029{\
19030\    case ${1} in\
19031\      */*) func_dirname_result="${1%/*}${2}" ;;\
19032\      *  ) func_dirname_result="${3}" ;;\
19033\    esac\
19034} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19035  && mv -f "$cfgfile.tmp" "$cfgfile" \
19036    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19037test 0 -eq $? || _lt_function_replace_fail=:
19038
19039
19040  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19041func_basename ()\
19042{\
19043\    func_basename_result="${1##*/}"\
19044} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19045  && mv -f "$cfgfile.tmp" "$cfgfile" \
19046    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047test 0 -eq $? || _lt_function_replace_fail=:
19048
19049
19050  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19051func_dirname_and_basename ()\
19052{\
19053\    case ${1} in\
19054\      */*) func_dirname_result="${1%/*}${2}" ;;\
19055\      *  ) func_dirname_result="${3}" ;;\
19056\    esac\
19057\    func_basename_result="${1##*/}"\
19058} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19059  && mv -f "$cfgfile.tmp" "$cfgfile" \
19060    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19061test 0 -eq $? || _lt_function_replace_fail=:
19062
19063
19064  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19065func_stripname ()\
19066{\
19067\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19068\    # positional parameters, so assign one to ordinary parameter first.\
19069\    func_stripname_result=${3}\
19070\    func_stripname_result=${func_stripname_result#"${1}"}\
19071\    func_stripname_result=${func_stripname_result%"${2}"}\
19072} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19073  && mv -f "$cfgfile.tmp" "$cfgfile" \
19074    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19075test 0 -eq $? || _lt_function_replace_fail=:
19076
19077
19078  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19079func_split_long_opt ()\
19080{\
19081\    func_split_long_opt_name=${1%%=*}\
19082\    func_split_long_opt_arg=${1#*=}\
19083} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19084  && mv -f "$cfgfile.tmp" "$cfgfile" \
19085    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19086test 0 -eq $? || _lt_function_replace_fail=:
19087
19088
19089  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19090func_split_short_opt ()\
19091{\
19092\    func_split_short_opt_arg=${1#??}\
19093\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19094} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19095  && mv -f "$cfgfile.tmp" "$cfgfile" \
19096    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19097test 0 -eq $? || _lt_function_replace_fail=:
19098
19099
19100  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19101func_lo2o ()\
19102{\
19103\    case ${1} in\
19104\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19105\      *)    func_lo2o_result=${1} ;;\
19106\    esac\
19107} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19108  && mv -f "$cfgfile.tmp" "$cfgfile" \
19109    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19110test 0 -eq $? || _lt_function_replace_fail=:
19111
19112
19113  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19114func_xform ()\
19115{\
19116    func_xform_result=${1%.*}.lo\
19117} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19118  && mv -f "$cfgfile.tmp" "$cfgfile" \
19119    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19120test 0 -eq $? || _lt_function_replace_fail=:
19121
19122
19123  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19124func_arith ()\
19125{\
19126    func_arith_result=$(( $* ))\
19127} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19128  && mv -f "$cfgfile.tmp" "$cfgfile" \
19129    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19130test 0 -eq $? || _lt_function_replace_fail=:
19131
19132
19133  sed -e '/^func_len ()$/,/^} # func_len /c\
19134func_len ()\
19135{\
19136    func_len_result=${#1}\
19137} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19138  && mv -f "$cfgfile.tmp" "$cfgfile" \
19139    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19140test 0 -eq $? || _lt_function_replace_fail=:
19141
19142fi
19143
19144if test x"$lt_shell_append" = xyes; then
19145  sed -e '/^func_append ()$/,/^} # func_append /c\
19146func_append ()\
19147{\
19148    eval "${1}+=\\${2}"\
19149} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19150  && mv -f "$cfgfile.tmp" "$cfgfile" \
19151    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19152test 0 -eq $? || _lt_function_replace_fail=:
19153
19154
19155  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19156func_append_quoted ()\
19157{\
19158\    func_quote_for_eval "${2}"\
19159\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19160} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19161  && mv -f "$cfgfile.tmp" "$cfgfile" \
19162    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19163test 0 -eq $? || _lt_function_replace_fail=:
19164
19165
19166  # Save a `func_append' function call where possible by direct use of '+='
19167  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19168    && mv -f "$cfgfile.tmp" "$cfgfile" \
19169      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19170  test 0 -eq $? || _lt_function_replace_fail=:
19171else
19172  # Save a `func_append' function call even when '+=' is not available
19173  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19174    && mv -f "$cfgfile.tmp" "$cfgfile" \
19175      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19176  test 0 -eq $? || _lt_function_replace_fail=:
19177fi
19178
19179if test x"$_lt_function_replace_fail" = x":"; then
19180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19181$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19182fi
19183
19184
19185   mv -f "$cfgfile" "$ofile" ||
19186    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19187  chmod +x "$ofile"
19188
19189
19190    cat <<_LT_EOF >> "$ofile"
19191
19192# ### BEGIN LIBTOOL TAG CONFIG: CXX
19193
19194# The linker used to build libraries.
19195LD=$lt_LD_CXX
19196
19197# How to create reloadable object files.
19198reload_flag=$lt_reload_flag_CXX
19199reload_cmds=$lt_reload_cmds_CXX
19200
19201# Commands used to build an old-style archive.
19202old_archive_cmds=$lt_old_archive_cmds_CXX
19203
19204# A language specific compiler.
19205CC=$lt_compiler_CXX
19206
19207# Is the compiler the GNU compiler?
19208with_gcc=$GCC_CXX
19209
19210# Compiler flag to turn off builtin functions.
19211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19212
19213# Additional compiler flags for building library objects.
19214pic_flag=$lt_lt_prog_compiler_pic_CXX
19215
19216# How to pass a linker flag through the compiler.
19217wl=$lt_lt_prog_compiler_wl_CXX
19218
19219# Compiler flag to prevent dynamic linking.
19220link_static_flag=$lt_lt_prog_compiler_static_CXX
19221
19222# Does compiler simultaneously support -c and -o options?
19223compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19224
19225# Whether or not to add -lc for building shared libraries.
19226build_libtool_need_lc=$archive_cmds_need_lc_CXX
19227
19228# Whether or not to disallow shared libs when runtime libs are static.
19229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19230
19231# Compiler flag to allow reflexive dlopens.
19232export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19233
19234# Compiler flag to generate shared objects directly from archives.
19235whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19236
19237# Whether the compiler copes with passing no objects directly.
19238compiler_needs_object=$lt_compiler_needs_object_CXX
19239
19240# Create an old-style archive from a shared archive.
19241old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19242
19243# Create a temporary old-style archive to link instead of a shared archive.
19244old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19245
19246# Commands used to build a shared archive.
19247archive_cmds=$lt_archive_cmds_CXX
19248archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19249
19250# Commands used to build a loadable module if different from building
19251# a shared archive.
19252module_cmds=$lt_module_cmds_CXX
19253module_expsym_cmds=$lt_module_expsym_cmds_CXX
19254
19255# Whether we are building with GNU ld or not.
19256with_gnu_ld=$lt_with_gnu_ld_CXX
19257
19258# Flag that allows shared libraries with undefined symbols to be built.
19259allow_undefined_flag=$lt_allow_undefined_flag_CXX
19260
19261# Flag that enforces no undefined symbols.
19262no_undefined_flag=$lt_no_undefined_flag_CXX
19263
19264# Flag to hardcode \$libdir into a binary during linking.
19265# This must work even if \$libdir does not exist
19266hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19267
19268# Whether we need a single "-rpath" flag with a separated argument.
19269hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19270
19271# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19272# DIR into the resulting binary.
19273hardcode_direct=$hardcode_direct_CXX
19274
19275# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19276# DIR into the resulting binary and the resulting library dependency is
19277# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19278# library is relocated.
19279hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19280
19281# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19282# into the resulting binary.
19283hardcode_minus_L=$hardcode_minus_L_CXX
19284
19285# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19286# into the resulting binary.
19287hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19288
19289# Set to "yes" if building a shared library automatically hardcodes DIR
19290# into the library and all subsequent libraries and executables linked
19291# against it.
19292hardcode_automatic=$hardcode_automatic_CXX
19293
19294# Set to yes if linker adds runtime paths of dependent libraries
19295# to runtime path list.
19296inherit_rpath=$inherit_rpath_CXX
19297
19298# Whether libtool must link a program against all its dependency libraries.
19299link_all_deplibs=$link_all_deplibs_CXX
19300
19301# Set to "yes" if exported symbols are required.
19302always_export_symbols=$always_export_symbols_CXX
19303
19304# The commands to list exported symbols.
19305export_symbols_cmds=$lt_export_symbols_cmds_CXX
19306
19307# Symbols that should not be listed in the preloaded symbols.
19308exclude_expsyms=$lt_exclude_expsyms_CXX
19309
19310# Symbols that must always be exported.
19311include_expsyms=$lt_include_expsyms_CXX
19312
19313# Commands necessary for linking programs (against libraries) with templates.
19314prelink_cmds=$lt_prelink_cmds_CXX
19315
19316# Commands necessary for finishing linking programs.
19317postlink_cmds=$lt_postlink_cmds_CXX
19318
19319# Specify filename containing input files.
19320file_list_spec=$lt_file_list_spec_CXX
19321
19322# How to hardcode a shared library path into an executable.
19323hardcode_action=$hardcode_action_CXX
19324
19325# The directories searched by this compiler when creating a shared library.
19326compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19327
19328# Dependencies to place before and after the objects being linked to
19329# create a shared library.
19330predep_objects=$lt_predep_objects_CXX
19331postdep_objects=$lt_postdep_objects_CXX
19332predeps=$lt_predeps_CXX
19333postdeps=$lt_postdeps_CXX
19334
19335# The library search path used internally by the compiler when linking
19336# a shared library.
19337compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19338
19339# ### END LIBTOOL TAG CONFIG: CXX
19340_LT_EOF
19341
19342 ;;
19343
19344  esac
19345done # for ac_tag
19346
19347
19348as_fn_exit 0
19349_ACEOF
19350ac_clean_files=$ac_clean_files_save
19351
19352test $ac_write_fail = 0 ||
19353  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19354
19355
19356# configure is writing to config.log, and then calls config.status.
19357# config.status does its own redirection, appending to config.log.
19358# Unfortunately, on DOS this fails, as config.log is still kept open
19359# by configure, so config.status won't be able to write to it; its
19360# output is simply discarded.  So we exec the FD to /dev/null,
19361# effectively closing config.log, so it can be properly (re)opened and
19362# appended to by config.status.  When coming back to configure, we
19363# need to make the FD available again.
19364if test "$no_create" != yes; then
19365  ac_cs_success=:
19366  ac_config_status_args=
19367  test "$silent" = yes &&
19368    ac_config_status_args="$ac_config_status_args --quiet"
19369  exec 5>/dev/null
19370  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19371  exec 5>>config.log
19372  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19373  # would make configure fail if this is the last instruction.
19374  $ac_cs_success || as_fn_exit 1
19375fi
19376if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19377  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19378$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19379fi
19380
19381
19382