• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for expat 2.4.1.
4#
5# Report bugs to <expat-bugs@libexpat.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: expat-bugs@libexpat.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='expat'
592PACKAGE_TARNAME='expat'
593PACKAGE_VERSION='2.4.1'
594PACKAGE_STRING='expat 2.4.1'
595PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
596PACKAGE_URL=''
597
598ac_unique_file="Makefile.in"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640_EXPAT_OUTPUT_NAME
641AM_LDFLAGS
642AM_CXXFLAGS
643AM_CFLAGS
644AM_CPPFLAGS
645ac_cv_sizeof_void_p
646SO_PATCH
647SO_MINOR
648SO_MAJOR
649LIBDIR_BASENAME
650EXPAT_CHAR_TYPE
651EXPAT_CONTEXT_BYTES
652EXPAT_NS
653EXPAT_MIN_SIZE
654EXPAT_LARGE_SIZE
655EXPAT_DTD
656EXPAT_ATTR_INFO
657WITH_DOCBOOK_FALSE
658WITH_DOCBOOK_TRUE
659DOCBOOK_TO_MAN
660FILEMAP
661_INTERNAL_LARGE_SIZE_FALSE
662_INTERNAL_LARGE_SIZE_TRUE
663_INTERNAL_MIN_SIZE_FALSE
664_INTERNAL_MIN_SIZE_TRUE
665_INTERNAL_UNICODE_WCHAR_T_FALSE
666_INTERNAL_UNICODE_WCHAR_T_TRUE
667UNICODE_FALSE
668UNICODE_TRUE
669MINGW_FALSE
670MINGW_TRUE
671WITH_TESTS_FALSE
672WITH_TESTS_TRUE
673WITH_EXAMPLES_FALSE
674WITH_EXAMPLES_TRUE
675WITH_XMLWF_FALSE
676WITH_XMLWF_TRUE
677CXXCPP
678am__fastdepCXX_FALSE
679am__fastdepCXX_TRUE
680CXXDEPMODE
681ac_ct_CXX
682CXXFLAGS
683CXX
684LIBAGE
685LIBREVISION
686LIBCURRENT
687CPP
688LT_SYS_LIBRARY_PATH
689OTOOL64
690OTOOL
691LIPO
692NMEDIT
693DSYMUTIL
694MANIFEST_TOOL
695RANLIB
696NM
697ac_ct_DUMPBIN
698DUMPBIN
699LD
700FGREP
701EGREP
702GREP
703SED
704LIBTOOL
705OBJDUMP
706DLLTOOL
707AS
708LN_S
709am__fastdepCC_FALSE
710am__fastdepCC_TRUE
711CCDEPMODE
712am__nodep
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__include
717DEPDIR
718OBJEXT
719EXEEXT
720ac_ct_CC
721CPPFLAGS
722LDFLAGS
723CFLAGS
724CC
725ac_ct_AR
726AR
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781runstatedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL
801am__quote'
802ac_subst_files='PACKAGE_INIT'
803ac_user_opts='
804enable_option_checking
805enable_silent_rules
806enable_dependency_tracking
807enable_shared
808enable_static
809with_pic
810enable_fast_install
811with_aix_soname
812with_gnu_ld
813with_sysroot
814enable_libtool_lock
815with_xmlwf
816with_examples
817with_tests
818with_libbsd
819with_getrandom
820with_sys_getrandom
821enable_xml_attr_info
822enable_xml_context
823with_docbook
824'
825      ac_precious_vars='build_alias
826host_alias
827target_alias
828CC
829CFLAGS
830LDFLAGS
831LIBS
832CPPFLAGS
833LT_SYS_LIBRARY_PATH
834CPP
835CXX
836CXXFLAGS
837CCC
838CXXCPP
839DOCBOOK_TO_MAN'
840
841
842# Initialize some variables set by options.
843ac_init_help=
844ac_init_version=false
845ac_unrecognized_opts=
846ac_unrecognized_sep=
847# The variables have the same names as the options, with
848# dashes changed to underlines.
849cache_file=/dev/null
850exec_prefix=NONE
851no_create=
852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
860verbose=
861x_includes=NONE
862x_libraries=NONE
863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
869# (The list follows the same order as the GNU Coding Standards.)
870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
878runstatedir='${localstatedir}/run'
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
890
891ac_prev=
892ac_dashdash=
893for ac_option
894do
895  # If the previous option needs an argument, assign it.
896  if test -n "$ac_prev"; then
897    eval $ac_prev=\$ac_option
898    ac_prev=
899    continue
900  fi
901
902  case $ac_option in
903  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904  *=)   ac_optarg= ;;
905  *)    ac_optarg=yes ;;
906  esac
907
908  # Accept the important Cygnus configure options, so we can diagnose typos.
909
910  case $ac_dashdash$ac_option in
911  --)
912    ac_dashdash=yes ;;
913
914  -bindir | --bindir | --bindi | --bind | --bin | --bi)
915    ac_prev=bindir ;;
916  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917    bindir=$ac_optarg ;;
918
919  -build | --build | --buil | --bui | --bu)
920    ac_prev=build_alias ;;
921  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922    build_alias=$ac_optarg ;;
923
924  -cache-file | --cache-file | --cache-fil | --cache-fi \
925  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926    ac_prev=cache_file ;;
927  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929    cache_file=$ac_optarg ;;
930
931  --config-cache | -C)
932    cache_file=config.cache ;;
933
934  -datadir | --datadir | --datadi | --datad)
935    ac_prev=datadir ;;
936  -datadir=* | --datadir=* | --datadi=* | --datad=*)
937    datadir=$ac_optarg ;;
938
939  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940  | --dataroo | --dataro | --datar)
941    ac_prev=datarootdir ;;
942  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944    datarootdir=$ac_optarg ;;
945
946  -disable-* | --disable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: $ac_useropt"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=no ;;
961
962  -docdir | --docdir | --docdi | --doc | --do)
963    ac_prev=docdir ;;
964  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965    docdir=$ac_optarg ;;
966
967  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968    ac_prev=dvidir ;;
969  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970    dvidir=$ac_optarg ;;
971
972  -enable-* | --enable-*)
973    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974    # Reject names that are not valid shell variable names.
975    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976      as_fn_error $? "invalid feature name: $ac_useropt"
977    ac_useropt_orig=$ac_useropt
978    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979    case $ac_user_opts in
980      *"
981"enable_$ac_useropt"
982"*) ;;
983      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984	 ac_unrecognized_sep=', ';;
985    esac
986    eval enable_$ac_useropt=\$ac_optarg ;;
987
988  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990  | --exec | --exe | --ex)
991    ac_prev=exec_prefix ;;
992  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994  | --exec=* | --exe=* | --ex=*)
995    exec_prefix=$ac_optarg ;;
996
997  -gas | --gas | --ga | --g)
998    # Obsolete; use --with-gas.
999    with_gas=yes ;;
1000
1001  -help | --help | --hel | --he | -h)
1002    ac_init_help=long ;;
1003  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004    ac_init_help=recursive ;;
1005  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006    ac_init_help=short ;;
1007
1008  -host | --host | --hos | --ho)
1009    ac_prev=host_alias ;;
1010  -host=* | --host=* | --hos=* | --ho=*)
1011    host_alias=$ac_optarg ;;
1012
1013  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014    ac_prev=htmldir ;;
1015  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016  | --ht=*)
1017    htmldir=$ac_optarg ;;
1018
1019  -includedir | --includedir | --includedi | --included | --include \
1020  | --includ | --inclu | --incl | --inc)
1021    ac_prev=includedir ;;
1022  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023  | --includ=* | --inclu=* | --incl=* | --inc=*)
1024    includedir=$ac_optarg ;;
1025
1026  -infodir | --infodir | --infodi | --infod | --info | --inf)
1027    ac_prev=infodir ;;
1028  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029    infodir=$ac_optarg ;;
1030
1031  -libdir | --libdir | --libdi | --libd)
1032    ac_prev=libdir ;;
1033  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034    libdir=$ac_optarg ;;
1035
1036  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037  | --libexe | --libex | --libe)
1038    ac_prev=libexecdir ;;
1039  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040  | --libexe=* | --libex=* | --libe=*)
1041    libexecdir=$ac_optarg ;;
1042
1043  -localedir | --localedir | --localedi | --localed | --locale)
1044    ac_prev=localedir ;;
1045  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046    localedir=$ac_optarg ;;
1047
1048  -localstatedir | --localstatedir | --localstatedi | --localstated \
1049  | --localstate | --localstat | --localsta | --localst | --locals)
1050    ac_prev=localstatedir ;;
1051  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053    localstatedir=$ac_optarg ;;
1054
1055  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056    ac_prev=mandir ;;
1057  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058    mandir=$ac_optarg ;;
1059
1060  -nfp | --nfp | --nf)
1061    # Obsolete; use --without-fp.
1062    with_fp=no ;;
1063
1064  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065  | --no-cr | --no-c | -n)
1066    no_create=yes ;;
1067
1068  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070    no_recursion=yes ;;
1071
1072  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074  | --oldin | --oldi | --old | --ol | --o)
1075    ac_prev=oldincludedir ;;
1076  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079    oldincludedir=$ac_optarg ;;
1080
1081  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082    ac_prev=prefix ;;
1083  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084    prefix=$ac_optarg ;;
1085
1086  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087  | --program-pre | --program-pr | --program-p)
1088    ac_prev=program_prefix ;;
1089  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091    program_prefix=$ac_optarg ;;
1092
1093  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094  | --program-suf | --program-su | --program-s)
1095    ac_prev=program_suffix ;;
1096  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098    program_suffix=$ac_optarg ;;
1099
1100  -program-transform-name | --program-transform-name \
1101  | --program-transform-nam | --program-transform-na \
1102  | --program-transform-n | --program-transform- \
1103  | --program-transform | --program-transfor \
1104  | --program-transfo | --program-transf \
1105  | --program-trans | --program-tran \
1106  | --progr-tra | --program-tr | --program-t)
1107    ac_prev=program_transform_name ;;
1108  -program-transform-name=* | --program-transform-name=* \
1109  | --program-transform-nam=* | --program-transform-na=* \
1110  | --program-transform-n=* | --program-transform-=* \
1111  | --program-transform=* | --program-transfor=* \
1112  | --program-transfo=* | --program-transf=* \
1113  | --program-trans=* | --program-tran=* \
1114  | --progr-tra=* | --program-tr=* | --program-t=*)
1115    program_transform_name=$ac_optarg ;;
1116
1117  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118    ac_prev=pdfdir ;;
1119  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120    pdfdir=$ac_optarg ;;
1121
1122  -psdir | --psdir | --psdi | --psd | --ps)
1123    ac_prev=psdir ;;
1124  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125    psdir=$ac_optarg ;;
1126
1127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128  | -silent | --silent | --silen | --sile | --sil)
1129    silent=yes ;;
1130
1131  -runstatedir | --runstatedir | --runstatedi | --runstated \
1132  | --runstate | --runstat | --runsta | --runst | --runs \
1133  | --run | --ru | --r)
1134    ac_prev=runstatedir ;;
1135  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137  | --run=* | --ru=* | --r=*)
1138    runstatedir=$ac_optarg ;;
1139
1140  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141    ac_prev=sbindir ;;
1142  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143  | --sbi=* | --sb=*)
1144    sbindir=$ac_optarg ;;
1145
1146  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148  | --sharedst | --shareds | --shared | --share | --shar \
1149  | --sha | --sh)
1150    ac_prev=sharedstatedir ;;
1151  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154  | --sha=* | --sh=*)
1155    sharedstatedir=$ac_optarg ;;
1156
1157  -site | --site | --sit)
1158    ac_prev=site ;;
1159  -site=* | --site=* | --sit=*)
1160    site=$ac_optarg ;;
1161
1162  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163    ac_prev=srcdir ;;
1164  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165    srcdir=$ac_optarg ;;
1166
1167  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168  | --syscon | --sysco | --sysc | --sys | --sy)
1169    ac_prev=sysconfdir ;;
1170  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172    sysconfdir=$ac_optarg ;;
1173
1174  -target | --target | --targe | --targ | --tar | --ta | --t)
1175    ac_prev=target_alias ;;
1176  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177    target_alias=$ac_optarg ;;
1178
1179  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180    verbose=yes ;;
1181
1182  -version | --version | --versio | --versi | --vers | -V)
1183    ac_init_version=: ;;
1184
1185  -with-* | --with-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: $ac_useropt"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=\$ac_optarg ;;
1200
1201  -without-* | --without-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: $ac_useropt"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=no ;;
1216
1217  --x)
1218    # Obsolete; use --with-x.
1219    with_x=yes ;;
1220
1221  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222  | --x-incl | --x-inc | --x-in | --x-i)
1223    ac_prev=x_includes ;;
1224  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226    x_includes=$ac_optarg ;;
1227
1228  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230    ac_prev=x_libraries ;;
1231  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233    x_libraries=$ac_optarg ;;
1234
1235  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236Try \`$0 --help' for more information"
1237    ;;
1238
1239  *=*)
1240    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241    # Reject names that are not valid shell variable names.
1242    case $ac_envvar in #(
1243      '' | [0-9]* | *[!_$as_cr_alnum]* )
1244      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245    esac
1246    eval $ac_envvar=\$ac_optarg
1247    export $ac_envvar ;;
1248
1249  *)
1250    # FIXME: should be removed in autoconf 3.0.
1251    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255    ;;
1256
1257  esac
1258done
1259
1260if test -n "$ac_prev"; then
1261  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262  as_fn_error $? "missing argument to $ac_option"
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266  case $enable_option_checking in
1267    no) ;;
1268    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270  esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275		datadir sysconfdir sharedstatedir localstatedir includedir \
1276		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277		libdir localedir mandir runstatedir
1278do
1279  eval ac_val=\$$ac_var
1280  # Remove trailing slashes.
1281  case $ac_val in
1282    */ )
1283      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284      eval $ac_var=\$ac_val;;
1285  esac
1286  # Be sure to have absolute directory names.
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303  if test "x$build_alias" = x; then
1304    cross_compiling=maybe
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  as_fn_error $? "working directory cannot be determined"
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321  as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326  ac_srcdir_defaulted=yes
1327  # Try the directory containing this script, then the parent directory.
1328  ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330	 X"$as_myself" : 'X\(//\)[^/]' \| \
1331	 X"$as_myself" : 'X\(//\)$' \| \
1332	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333$as_echo X"$as_myself" |
1334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)[^/].*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\).*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  s/.*/./; q'`
1351  srcdir=$ac_confdir
1352  if test ! -r "$srcdir/$ac_unique_file"; then
1353    srcdir=..
1354  fi
1355else
1356  ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361fi
1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365	pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368  srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378  eval ac_env_${ac_var}_value=\$${ac_var}
1379  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387  # Omit some internal or obsolete options to make the list less imposing.
1388  # This message is too long to be a string in the A/UX 3.1 sh.
1389  cat <<_ACEOF
1390\`configure' configures expat 2.4.1 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400  -h, --help              display this help and exit
1401      --help=short        display options specific to this package
1402      --help=recursive    display the short help of all the included packages
1403  -V, --version           display version information and exit
1404  -q, --quiet, --silent   do not print \`checking ...' messages
1405      --cache-file=FILE   cache test results in FILE [disabled]
1406  -C, --config-cache      alias for \`--cache-file=config.cache'
1407  -n, --no-create         do not create output files
1408      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1409
1410Installation directories:
1411  --prefix=PREFIX         install architecture-independent files in PREFIX
1412                          [$ac_default_prefix]
1413  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                          [PREFIX]
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424  --bindir=DIR            user executables [EPREFIX/bin]
1425  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1426  --libexecdir=DIR        program executables [EPREFIX/libexec]
1427  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1428  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1429  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1430  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1431  --libdir=DIR            object code libraries [EPREFIX/lib]
1432  --includedir=DIR        C header files [PREFIX/include]
1433  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436  --infodir=DIR           info documentation [DATAROOTDIR/info]
1437  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438  --mandir=DIR            man documentation [DATAROOTDIR/man]
1439  --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1440  --htmldir=DIR           html documentation [DOCDIR]
1441  --dvidir=DIR            dvi documentation [DOCDIR]
1442  --pdfdir=DIR            pdf documentation [DOCDIR]
1443  --psdir=DIR             ps documentation [DOCDIR]
1444_ACEOF
1445
1446  cat <<\_ACEOF
1447
1448Program names:
1449  --program-prefix=PREFIX            prepend PREFIX to installed program names
1450  --program-suffix=SUFFIX            append SUFFIX to installed program names
1451  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1452
1453System types:
1454  --build=BUILD     configure for building on BUILD [guessed]
1455  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460  case $ac_init_help in
1461     short | recursive ) echo "Configuration of expat 2.4.1:";;
1462   esac
1463  cat <<\_ACEOF
1464
1465Optional Features:
1466  --disable-option-checking  ignore unrecognized --enable/--with options
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --enable-silent-rules   less verbose build output (undo: "make V=1")
1470  --disable-silent-rules  verbose build output (undo: "make V=0")
1471  --enable-dependency-tracking
1472                          do not reject slow dependency extractors
1473  --disable-dependency-tracking
1474                          speeds up one-time build
1475  --enable-shared[=PKGS]  build shared libraries [default=yes]
1476  --enable-static[=PKGS]  build static libraries [default=yes]
1477  --enable-fast-install[=PKGS]
1478                          optimize for fast installation [default=yes]
1479  --disable-libtool-lock  avoid locking (might break parallel builds)
1480  --enable-xml-attr-info  Enable retrieving the byte offsets for attribute
1481                          names and values [default=no]
1482  --enable-xml-context [COUNT]
1483                          Retain context around the current parse point;
1484                          default is enabled and a size of 1024 bytes
1485  --disable-xml-context   Do not retain context around the current parse point
1486
1487Optional Packages:
1488  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1491                          both]
1492  --with-aix-soname=aix|svr4|both
1493                          shared library versioning (aka "SONAME") variant to
1494                          provide on AIX, [default=aix].
1495  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1496  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1497                          compiler's sysroot if not specified).
1498  --without-xmlwf         do not build xmlwf
1499  --without-examples      do not build examples [default=included]
1500  --without-tests         do not build tests [default=included]
1501  --with-libbsd           utilize libbsd (for arc4random_buf)
1502  --with-getrandom        enforce the use of getrandom function in the system
1503                          [default=check]
1504  --without-getrandom     skip auto detect of getrandom [default=check]
1505  --with-sys-getrandom    enforce the use of syscall SYS_getrandom function in
1506                          the system [default=check]
1507  --without-sys-getrandom skip auto detect of syscall SYS_getrandom
1508                          [default=check]
1509  --with-docbook          enforce XML to man page compilation [default=check]
1510  --without-docbook       skip XML to man page compilation [default=check]
1511
1512Some influential environment variables:
1513  CC          C compiler command
1514  CFLAGS      C compiler flags
1515  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516              nonstandard directory <lib dir>
1517  LIBS        libraries to pass to the linker, e.g. -l<library>
1518  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519              you have headers in a nonstandard directory <include dir>
1520  LT_SYS_LIBRARY_PATH
1521              User-defined run-time library search path.
1522  CPP         C preprocessor
1523  CXX         C++ compiler command
1524  CXXFLAGS    C++ compiler flags
1525  CXXCPP      C++ preprocessor
1526  DOCBOOK_TO_MAN
1527              docbook2x-man command
1528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
1532Report bugs to <expat-bugs@libexpat.org>.
1533_ACEOF
1534ac_status=$?
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538  # If there are subdirs, report their specific --help.
1539  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540    test -d "$ac_dir" ||
1541      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542      continue
1543    ac_builddir=.
1544
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
1548  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549  # A ".." for each directory in $ac_dir_suffix.
1550  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551  case $ac_top_builddir_sub in
1552  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554  esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
1560
1561case $srcdir in
1562  .)  # We are building in place.
1563    ac_srcdir=.
1564    ac_top_srcdir=$ac_top_builddir_sub
1565    ac_abs_top_srcdir=$ac_pwd ;;
1566  [\\/]* | ?:[\\/]* )  # Absolute name.
1567    ac_srcdir=$srcdir$ac_dir_suffix;
1568    ac_top_srcdir=$srcdir
1569    ac_abs_top_srcdir=$srcdir ;;
1570  *) # Relative name.
1571    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572    ac_top_srcdir=$ac_top_build_prefix$srcdir
1573    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574esac
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577    cd "$ac_dir" || { ac_status=$?; continue; }
1578    # Check for guested configure.
1579    if test -f "$ac_srcdir/configure.gnu"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582    elif test -f "$ac_srcdir/configure"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure" --help=recursive
1585    else
1586      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587    fi || ac_status=$?
1588    cd "$ac_pwd" || { ac_status=$?; break; }
1589  done
1590fi
1591
1592test -n "$ac_init_help" && exit $ac_status
1593if $ac_init_version; then
1594  cat <<\_ACEOF
1595expat configure 2.4.1
1596generated by GNU Autoconf 2.69
1597
1598Copyright (C) 2012 Free Software Foundation, Inc.
1599This configure script is free software; the Free Software Foundation
1600gives unlimited permission to copy, distribute and modify it.
1601_ACEOF
1602  exit
1603fi
1604
1605## ------------------------ ##
1606## Autoconf initialization. ##
1607## ------------------------ ##
1608
1609# ac_fn_c_try_compile LINENO
1610# --------------------------
1611# Try to compile conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_compile ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  rm -f conftest.$ac_objext
1616  if { { ac_try="$ac_compile"
1617case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623  (eval "$ac_compile") 2>conftest.err
1624  ac_status=$?
1625  if test -s conftest.err; then
1626    grep -v '^ *+' conftest.err >conftest.er1
1627    cat conftest.er1 >&5
1628    mv -f conftest.er1 conftest.err
1629  fi
1630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; } && {
1632	 test -z "$ac_c_werror_flag" ||
1633	 test ! -s conftest.err
1634       } && test -s conftest.$ac_objext; then :
1635  ac_retval=0
1636else
1637  $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1
1641fi
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_compile
1646
1647# ac_fn_c_try_link LINENO
1648# -----------------------
1649# Try to link conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_link ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  rm -f conftest.$ac_objext conftest$ac_exeext
1654  if { { ac_try="$ac_link"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_link") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } && {
1670	 test -z "$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       } && test -s conftest$ac_exeext && {
1673	 test "$cross_compiling" = yes ||
1674	 test -x conftest$ac_exeext
1675       }; then :
1676  ac_retval=0
1677else
1678  $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681	ac_retval=1
1682fi
1683  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685  # interfere with the next link command; also delete a directory that is
1686  # left behind by Apple's compiler.  We do this before executing the actions.
1687  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_link
1692
1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists and can be compiled using the include files in
1696# INCLUDES, setting the cache variable VAR accordingly.
1697ac_fn_c_check_header_compile ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then :
1703  $as_echo_n "(cached) " >&6
1704else
1705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711  eval "$3=yes"
1712else
1713  eval "$3=no"
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716fi
1717eval ac_res=\$$3
1718	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722} # ac_fn_c_check_header_compile
1723
1724# ac_fn_c_try_cpp LINENO
1725# ----------------------
1726# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_cpp ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  if { { ac_try="$ac_cpp conftest.$ac_ext"
1731case "(($ac_try" in
1732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733  *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738  ac_status=$?
1739  if test -s conftest.err; then
1740    grep -v '^ *+' conftest.err >conftest.er1
1741    cat conftest.er1 >&5
1742    mv -f conftest.er1 conftest.err
1743  fi
1744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745  test $ac_status = 0; } > conftest.i && {
1746	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747	 test ! -s conftest.err
1748       }; then :
1749  ac_retval=0
1750else
1751  $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754    ac_retval=1
1755fi
1756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757  as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_cpp
1760
1761# ac_fn_c_try_run LINENO
1762# ----------------------
1763# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1764# that executables *can* be run.
1765ac_fn_c_try_run ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  if { { ac_try="$ac_link"
1769case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_link") 2>&5
1776  ac_status=$?
1777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779  { { case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_try") 2>&5
1786  ac_status=$?
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; }; }; then :
1789  ac_retval=0
1790else
1791  $as_echo "$as_me: program exited with status $ac_status" >&5
1792       $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795       ac_retval=$ac_status
1796fi
1797  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799  as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_run
1802
1803# ac_fn_c_check_func LINENO FUNC VAR
1804# ----------------------------------
1805# Tests whether FUNC exists, setting the cache variable VAR accordingly
1806ac_fn_c_check_func ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if eval \${$3+:} false; then :
1812  $as_echo_n "(cached) " >&6
1813else
1814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1818#define $2 innocuous_$2
1819
1820/* System header to define __stub macros and hopefully few prototypes,
1821    which can conflict with char $2 (); below.
1822    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823    <limits.h> exists even on freestanding compilers.  */
1824
1825#ifdef __STDC__
1826# include <limits.h>
1827#else
1828# include <assert.h>
1829#endif
1830
1831#undef $2
1832
1833/* Override any GCC internal prototype to avoid an error.
1834   Use char because int might match the return type of a GCC
1835   builtin and then its argument prototype would still apply.  */
1836#ifdef __cplusplus
1837extern "C"
1838#endif
1839char $2 ();
1840/* The GNU C library defines this for functions which it implements
1841    to always fail with ENOSYS.  Some functions are actually named
1842    something starting with __ and the normal name is an alias.  */
1843#if defined __stub_$2 || defined __stub___$2
1844choke me
1845#endif
1846
1847int
1848main ()
1849{
1850return $2 ();
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_link "$LINENO"; then :
1856  eval "$3=yes"
1857else
1858  eval "$3=no"
1859fi
1860rm -f core conftest.err conftest.$ac_objext \
1861    conftest$ac_exeext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_func
1869
1870# ac_fn_cxx_try_compile LINENO
1871# ----------------------------
1872# Try to compile conftest.$ac_ext, and return whether this succeeded.
1873ac_fn_cxx_try_compile ()
1874{
1875  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876  rm -f conftest.$ac_objext
1877  if { { ac_try="$ac_compile"
1878case "(($ac_try" in
1879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880  *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884  (eval "$ac_compile") 2>conftest.err
1885  ac_status=$?
1886  if test -s conftest.err; then
1887    grep -v '^ *+' conftest.err >conftest.er1
1888    cat conftest.er1 >&5
1889    mv -f conftest.er1 conftest.err
1890  fi
1891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892  test $ac_status = 0; } && {
1893	 test -z "$ac_cxx_werror_flag" ||
1894	 test ! -s conftest.err
1895       } && test -s conftest.$ac_objext; then :
1896  ac_retval=0
1897else
1898  $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901	ac_retval=1
1902fi
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904  as_fn_set_status $ac_retval
1905
1906} # ac_fn_cxx_try_compile
1907
1908# ac_fn_cxx_try_cpp LINENO
1909# ------------------------
1910# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911ac_fn_cxx_try_cpp ()
1912{
1913  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914  if { { ac_try="$ac_cpp conftest.$ac_ext"
1915case "(($ac_try" in
1916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917  *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920$as_echo "$ac_try_echo"; } >&5
1921  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922  ac_status=$?
1923  if test -s conftest.err; then
1924    grep -v '^ *+' conftest.err >conftest.er1
1925    cat conftest.er1 >&5
1926    mv -f conftest.er1 conftest.err
1927  fi
1928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; } > conftest.i && {
1930	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1931	 test ! -s conftest.err
1932       }; then :
1933  ac_retval=0
1934else
1935  $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938    ac_retval=1
1939fi
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941  as_fn_set_status $ac_retval
1942
1943} # ac_fn_cxx_try_cpp
1944
1945# ac_fn_cxx_try_link LINENO
1946# -------------------------
1947# Try to link conftest.$ac_ext, and return whether this succeeded.
1948ac_fn_cxx_try_link ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  rm -f conftest.$ac_objext conftest$ac_exeext
1952  if { { ac_try="$ac_link"
1953case "(($ac_try" in
1954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955  *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959  (eval "$ac_link") 2>conftest.err
1960  ac_status=$?
1961  if test -s conftest.err; then
1962    grep -v '^ *+' conftest.err >conftest.er1
1963    cat conftest.er1 >&5
1964    mv -f conftest.er1 conftest.err
1965  fi
1966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967  test $ac_status = 0; } && {
1968	 test -z "$ac_cxx_werror_flag" ||
1969	 test ! -s conftest.err
1970       } && test -s conftest$ac_exeext && {
1971	 test "$cross_compiling" = yes ||
1972	 test -x conftest$ac_exeext
1973       }; then :
1974  ac_retval=0
1975else
1976  $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979	ac_retval=1
1980fi
1981  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983  # interfere with the next link command; also delete a directory that is
1984  # left behind by Apple's compiler.  We do this before executing the actions.
1985  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987  as_fn_set_status $ac_retval
1988
1989} # ac_fn_cxx_try_link
1990
1991# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1992# -------------------------------------------
1993# Tests whether TYPE exists after having included INCLUDES, setting cache
1994# variable VAR accordingly.
1995ac_fn_c_check_type ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001  $as_echo_n "(cached) " >&6
2002else
2003  eval "$3=no"
2004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007int
2008main ()
2009{
2010if (sizeof ($2))
2011	 return 0;
2012  ;
2013  return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020int
2021main ()
2022{
2023if (sizeof (($2)))
2024	    return 0;
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030
2031else
2032  eval "$3=yes"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_type
2044
2045# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2046# -------------------------------------------------------
2047# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048# the include files in INCLUDES and setting the cache variable VAR
2049# accordingly.
2050ac_fn_c_check_header_mongrel ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  if eval \${$3+:} false; then :
2054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055$as_echo_n "checking for $2... " >&6; }
2056if eval \${$3+:} false; then :
2057  $as_echo_n "(cached) " >&6
2058fi
2059eval ac_res=\$$3
2060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062else
2063  # Is the header compilable?
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065$as_echo_n "checking $2 usability... " >&6; }
2066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$4
2069#include <$2>
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072  ac_header_compiler=yes
2073else
2074  ac_header_compiler=no
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078$as_echo "$ac_header_compiler" >&6; }
2079
2080# Is the header present?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082$as_echo_n "checking $2 presence... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085#include <$2>
2086_ACEOF
2087if ac_fn_c_try_cpp "$LINENO"; then :
2088  ac_header_preproc=yes
2089else
2090  ac_header_preproc=no
2091fi
2092rm -f conftest.err conftest.i conftest.$ac_ext
2093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094$as_echo "$ac_header_preproc" >&6; }
2095
2096# So?  What about this header?
2097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2098  yes:no: )
2099    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103    ;;
2104  no:yes:* )
2105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2108$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2112$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115( $as_echo "## -------------------------------------- ##
2116## Report this to expat-bugs@libexpat.org ##
2117## -------------------------------------- ##"
2118     ) | sed "s/^/$as_me: WARNING:     /" >&2
2119    ;;
2120esac
2121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122$as_echo_n "checking for $2... " >&6; }
2123if eval \${$3+:} false; then :
2124  $as_echo_n "(cached) " >&6
2125else
2126  eval "$3=\$ac_header_compiler"
2127fi
2128eval ac_res=\$$3
2129	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131fi
2132  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134} # ac_fn_c_check_header_mongrel
2135
2136# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2137# --------------------------------------------
2138# Tries to find the compile-time value of EXPR in a program that includes
2139# INCLUDES, setting VAR accordingly. Returns whether the value could be
2140# computed
2141ac_fn_c_compute_int ()
2142{
2143  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144  if test "$cross_compiling" = yes; then
2145    # Depending upon the size, compute the lo and hi bounds.
2146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h.  */
2148$4
2149int
2150main ()
2151{
2152static int test_array [1 - 2 * !(($2) >= 0)];
2153test_array [0] = 0;
2154return test_array [0];
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161  ac_lo=0 ac_mid=0
2162  while :; do
2163    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h.  */
2165$4
2166int
2167main ()
2168{
2169static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170test_array [0] = 0;
2171return test_array [0];
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178  ac_hi=$ac_mid; break
2179else
2180  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2181			if test $ac_lo -le $ac_mid; then
2182			  ac_lo= ac_hi=
2183			  break
2184			fi
2185			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188  done
2189else
2190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$4
2193int
2194main ()
2195{
2196static int test_array [1 - 2 * !(($2) < 0)];
2197test_array [0] = 0;
2198return test_array [0];
2199
2200  ;
2201  return 0;
2202}
2203_ACEOF
2204if ac_fn_c_try_compile "$LINENO"; then :
2205  ac_hi=-1 ac_mid=-1
2206  while :; do
2207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210int
2211main ()
2212{
2213static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2214test_array [0] = 0;
2215return test_array [0];
2216
2217  ;
2218  return 0;
2219}
2220_ACEOF
2221if ac_fn_c_try_compile "$LINENO"; then :
2222  ac_lo=$ac_mid; break
2223else
2224  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2225			if test $ac_mid -le $ac_hi; then
2226			  ac_lo= ac_hi=
2227			  break
2228			fi
2229			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232  done
2233else
2234  ac_lo= ac_hi=
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239# Binary search between lo and hi bounds.
2240while test "x$ac_lo" != "x$ac_hi"; do
2241  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h.  */
2244$4
2245int
2246main ()
2247{
2248static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2249test_array [0] = 0;
2250return test_array [0];
2251
2252  ;
2253  return 0;
2254}
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257  ac_hi=$ac_mid
2258else
2259  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2260fi
2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262done
2263case $ac_lo in #((
2264?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2265'') ac_retval=1 ;;
2266esac
2267  else
2268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h.  */
2270$4
2271static long int longval () { return $2; }
2272static unsigned long int ulongval () { return $2; }
2273#include <stdio.h>
2274#include <stdlib.h>
2275int
2276main ()
2277{
2278
2279  FILE *f = fopen ("conftest.val", "w");
2280  if (! f)
2281    return 1;
2282  if (($2) < 0)
2283    {
2284      long int i = longval ();
2285      if (i != ($2))
2286	return 1;
2287      fprintf (f, "%ld", i);
2288    }
2289  else
2290    {
2291      unsigned long int i = ulongval ();
2292      if (i != ($2))
2293	return 1;
2294      fprintf (f, "%lu", i);
2295    }
2296  /* Do not output a trailing newline, as this causes \r\n confusion
2297     on some platforms.  */
2298  return ferror (f) || fclose (f) != 0;
2299
2300  ;
2301  return 0;
2302}
2303_ACEOF
2304if ac_fn_c_try_run "$LINENO"; then :
2305  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2306else
2307  ac_retval=1
2308fi
2309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2310  conftest.$ac_objext conftest.beam conftest.$ac_ext
2311rm -f conftest.val
2312
2313  fi
2314  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315  as_fn_set_status $ac_retval
2316
2317} # ac_fn_c_compute_int
2318cat >config.log <<_ACEOF
2319This file contains any messages produced by compilers while
2320running configure, to aid debugging if configure makes a mistake.
2321
2322It was created by expat $as_me 2.4.1, which was
2323generated by GNU Autoconf 2.69.  Invocation command line was
2324
2325  $ $0 $@
2326
2327_ACEOF
2328exec 5>>config.log
2329{
2330cat <<_ASUNAME
2331## --------- ##
2332## Platform. ##
2333## --------- ##
2334
2335hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339uname -v = `(uname -v) 2>/dev/null || echo unknown`
2340
2341/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2343
2344/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2345/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2346/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2348/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2349/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2350/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2351
2352_ASUNAME
2353
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357  IFS=$as_save_IFS
2358  test -z "$as_dir" && as_dir=.
2359    $as_echo "PATH: $as_dir"
2360  done
2361IFS=$as_save_IFS
2362
2363} >&5
2364
2365cat >&5 <<_ACEOF
2366
2367
2368## ----------- ##
2369## Core tests. ##
2370## ----------- ##
2371
2372_ACEOF
2373
2374
2375# Keep a trace of the command line.
2376# Strip out --no-create and --no-recursion so they do not pile up.
2377# Strip out --silent because we don't want to record it for future runs.
2378# Also quote any args containing shell meta-characters.
2379# Make two passes to allow for proper duplicate-argument suppression.
2380ac_configure_args=
2381ac_configure_args0=
2382ac_configure_args1=
2383ac_must_keep_next=false
2384for ac_pass in 1 2
2385do
2386  for ac_arg
2387  do
2388    case $ac_arg in
2389    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391    | -silent | --silent | --silen | --sile | --sil)
2392      continue ;;
2393    *\'*)
2394      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395    esac
2396    case $ac_pass in
2397    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2398    2)
2399      as_fn_append ac_configure_args1 " '$ac_arg'"
2400      if test $ac_must_keep_next = true; then
2401	ac_must_keep_next=false # Got value, back to normal.
2402      else
2403	case $ac_arg in
2404	  *=* | --config-cache | -C | -disable-* | --disable-* \
2405	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407	  | -with-* | --with-* | -without-* | --without-* | --x)
2408	    case "$ac_configure_args0 " in
2409	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410	    esac
2411	    ;;
2412	  -* ) ac_must_keep_next=true ;;
2413	esac
2414      fi
2415      as_fn_append ac_configure_args " '$ac_arg'"
2416      ;;
2417    esac
2418  done
2419done
2420{ ac_configure_args0=; unset ac_configure_args0;}
2421{ ac_configure_args1=; unset ac_configure_args1;}
2422
2423# When interrupted or exit'd, cleanup temporary files, and complete
2424# config.log.  We remove comments because anyway the quotes in there
2425# would cause problems or look ugly.
2426# WARNING: Use '\'' to represent an apostrophe within the trap.
2427# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428trap 'exit_status=$?
2429  # Save into config.log some information that might help in debugging.
2430  {
2431    echo
2432
2433    $as_echo "## ---------------- ##
2434## Cache variables. ##
2435## ---------------- ##"
2436    echo
2437    # The following way of writing the cache mishandles newlines in values,
2438(
2439  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440    eval ac_val=\$$ac_var
2441    case $ac_val in #(
2442    *${as_nl}*)
2443      case $ac_var in #(
2444      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446      esac
2447      case $ac_var in #(
2448      _ | IFS | as_nl) ;; #(
2449      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450      *) { eval $ac_var=; unset $ac_var;} ;;
2451      esac ;;
2452    esac
2453  done
2454  (set) 2>&1 |
2455    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456    *${as_nl}ac_space=\ *)
2457      sed -n \
2458	"s/'\''/'\''\\\\'\'''\''/g;
2459	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460      ;; #(
2461    *)
2462      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2463      ;;
2464    esac |
2465    sort
2466)
2467    echo
2468
2469    $as_echo "## ----------------- ##
2470## Output variables. ##
2471## ----------------- ##"
2472    echo
2473    for ac_var in $ac_subst_vars
2474    do
2475      eval ac_val=\$$ac_var
2476      case $ac_val in
2477      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478      esac
2479      $as_echo "$ac_var='\''$ac_val'\''"
2480    done | sort
2481    echo
2482
2483    if test -n "$ac_subst_files"; then
2484      $as_echo "## ------------------- ##
2485## File substitutions. ##
2486## ------------------- ##"
2487      echo
2488      for ac_var in $ac_subst_files
2489      do
2490	eval ac_val=\$$ac_var
2491	case $ac_val in
2492	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493	esac
2494	$as_echo "$ac_var='\''$ac_val'\''"
2495      done | sort
2496      echo
2497    fi
2498
2499    if test -s confdefs.h; then
2500      $as_echo "## ----------- ##
2501## confdefs.h. ##
2502## ----------- ##"
2503      echo
2504      cat confdefs.h
2505      echo
2506    fi
2507    test "$ac_signal" != 0 &&
2508      $as_echo "$as_me: caught signal $ac_signal"
2509    $as_echo "$as_me: exit $exit_status"
2510  } >&5
2511  rm -f core *.core core.conftest.* &&
2512    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513    exit $exit_status
2514' 0
2515for ac_signal in 1 2 13 15; do
2516  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517done
2518ac_signal=0
2519
2520# confdefs.h avoids OS command line length limits that DEFS can exceed.
2521rm -f -r conftest* confdefs.h
2522
2523$as_echo "/* confdefs.h */" > confdefs.h
2524
2525# Predefined preprocessor variables.
2526
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_NAME "$PACKAGE_NAME"
2529_ACEOF
2530
2531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533_ACEOF
2534
2535cat >>confdefs.h <<_ACEOF
2536#define PACKAGE_VERSION "$PACKAGE_VERSION"
2537_ACEOF
2538
2539cat >>confdefs.h <<_ACEOF
2540#define PACKAGE_STRING "$PACKAGE_STRING"
2541_ACEOF
2542
2543cat >>confdefs.h <<_ACEOF
2544#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545_ACEOF
2546
2547cat >>confdefs.h <<_ACEOF
2548#define PACKAGE_URL "$PACKAGE_URL"
2549_ACEOF
2550
2551
2552# Let the site file select an alternate cache file if it wants to.
2553# Prefer an explicitly selected file to automatically selected ones.
2554ac_site_file1=NONE
2555ac_site_file2=NONE
2556if test -n "$CONFIG_SITE"; then
2557  # We do not want a PATH search for config.site.
2558  case $CONFIG_SITE in #((
2559    -*)  ac_site_file1=./$CONFIG_SITE;;
2560    */*) ac_site_file1=$CONFIG_SITE;;
2561    *)   ac_site_file1=./$CONFIG_SITE;;
2562  esac
2563elif test "x$prefix" != xNONE; then
2564  ac_site_file1=$prefix/share/config.site
2565  ac_site_file2=$prefix/etc/config.site
2566else
2567  ac_site_file1=$ac_default_prefix/share/config.site
2568  ac_site_file2=$ac_default_prefix/etc/config.site
2569fi
2570for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571do
2572  test "x$ac_site_file" = xNONE && continue
2573  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576    sed 's/^/| /' "$ac_site_file" >&5
2577    . "$ac_site_file" \
2578      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580as_fn_error $? "failed to load site script $ac_site_file
2581See \`config.log' for more details" "$LINENO" 5; }
2582  fi
2583done
2584
2585if test -r "$cache_file"; then
2586  # Some versions of bash will fail to source /dev/null (special files
2587  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2588  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590$as_echo "$as_me: loading cache $cache_file" >&6;}
2591    case $cache_file in
2592      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593      *)                      . "./$cache_file";;
2594    esac
2595  fi
2596else
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598$as_echo "$as_me: creating cache $cache_file" >&6;}
2599  >$cache_file
2600fi
2601
2602as_fn_append ac_header_list " stdlib.h"
2603as_fn_append ac_header_list " unistd.h"
2604as_fn_append ac_header_list " sys/param.h"
2605# Check that the precious variables saved in the cache have kept the same
2606# value.
2607ac_cache_corrupted=false
2608for ac_var in $ac_precious_vars; do
2609  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2610  eval ac_new_set=\$ac_env_${ac_var}_set
2611  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2612  eval ac_new_val=\$ac_env_${ac_var}_value
2613  case $ac_old_set,$ac_new_set in
2614    set,)
2615      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2616$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2617      ac_cache_corrupted=: ;;
2618    ,set)
2619      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2620$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2621      ac_cache_corrupted=: ;;
2622    ,);;
2623    *)
2624      if test "x$ac_old_val" != "x$ac_new_val"; then
2625	# differences in whitespace do not lead to failure.
2626	ac_old_val_w=`echo x $ac_old_val`
2627	ac_new_val_w=`echo x $ac_new_val`
2628	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2629	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2630$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2631	  ac_cache_corrupted=:
2632	else
2633	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2634$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2635	  eval $ac_var=\$ac_old_val
2636	fi
2637	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2638$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2639	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2640$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2641      fi;;
2642  esac
2643  # Pass precious variables to config.status.
2644  if test "$ac_new_set" = set; then
2645    case $ac_new_val in
2646    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2647    *) ac_arg=$ac_var=$ac_new_val ;;
2648    esac
2649    case " $ac_configure_args " in
2650      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2651      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2652    esac
2653  fi
2654done
2655if $ac_cache_corrupted; then
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2659$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2660  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2661fi
2662## -------------------- ##
2663## Main body of script. ##
2664## -------------------- ##
2665
2666ac_ext=c
2667ac_cpp='$CPP $CPPFLAGS'
2668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
2672
2673
2674
2675
2676ac_aux_dir=
2677for ac_dir in conftools "$srcdir"/conftools; do
2678  if test -f "$ac_dir/install-sh"; then
2679    ac_aux_dir=$ac_dir
2680    ac_install_sh="$ac_aux_dir/install-sh -c"
2681    break
2682  elif test -f "$ac_dir/install.sh"; then
2683    ac_aux_dir=$ac_dir
2684    ac_install_sh="$ac_aux_dir/install.sh -c"
2685    break
2686  elif test -f "$ac_dir/shtool"; then
2687    ac_aux_dir=$ac_dir
2688    ac_install_sh="$ac_aux_dir/shtool install -c"
2689    break
2690  fi
2691done
2692if test -z "$ac_aux_dir"; then
2693  as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2694fi
2695
2696# These three variables are undocumented and unsupported,
2697# and are intended to be withdrawn in a future Autoconf release.
2698# They can cause serious problems if a builder's source tree is in a directory
2699# whose full name contains unusual characters.
2700ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2701ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2702ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2703
2704
2705
2706# Make sure we can run config.sub.
2707$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2708  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2709
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2711$as_echo_n "checking build system type... " >&6; }
2712if ${ac_cv_build+:} false; then :
2713  $as_echo_n "(cached) " >&6
2714else
2715  ac_build_alias=$build_alias
2716test "x$ac_build_alias" = x &&
2717  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2718test "x$ac_build_alias" = x &&
2719  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2720ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2721  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2722
2723fi
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2725$as_echo "$ac_cv_build" >&6; }
2726case $ac_cv_build in
2727*-*-*) ;;
2728*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2729esac
2730build=$ac_cv_build
2731ac_save_IFS=$IFS; IFS='-'
2732set x $ac_cv_build
2733shift
2734build_cpu=$1
2735build_vendor=$2
2736shift; shift
2737# Remember, the first character of IFS is used to create $*,
2738# except with old shells:
2739build_os=$*
2740IFS=$ac_save_IFS
2741case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2742
2743
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2745$as_echo_n "checking host system type... " >&6; }
2746if ${ac_cv_host+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test "x$host_alias" = x; then
2750  ac_cv_host=$ac_cv_build
2751else
2752  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2753    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2754fi
2755
2756fi
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2758$as_echo "$ac_cv_host" >&6; }
2759case $ac_cv_host in
2760*-*-*) ;;
2761*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2762esac
2763host=$ac_cv_host
2764ac_save_IFS=$IFS; IFS='-'
2765set x $ac_cv_host
2766shift
2767host_cpu=$1
2768host_vendor=$2
2769shift; shift
2770# Remember, the first character of IFS is used to create $*,
2771# except with old shells:
2772host_os=$*
2773IFS=$ac_save_IFS
2774case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2775
2776
2777am__api_version='1.16'
2778
2779# Find a good install program.  We prefer a C program (faster),
2780# so one script is as good as another.  But avoid the broken or
2781# incompatible versions:
2782# SysV /etc/install, /usr/sbin/install
2783# SunOS /usr/etc/install
2784# IRIX /sbin/install
2785# AIX /bin/install
2786# AmigaOS /C/install, which installs bootblocks on floppy discs
2787# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2788# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2789# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2790# OS/2's system install, which has a completely different semantic
2791# ./install, which can be erroneously created by make from ./install.sh.
2792# Reject install programs that cannot install multiple files.
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2794$as_echo_n "checking for a BSD-compatible install... " >&6; }
2795if test -z "$INSTALL"; then
2796if ${ac_cv_path_install+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804    # Account for people who put trailing slashes in PATH elements.
2805case $as_dir/ in #((
2806  ./ | .// | /[cC]/* | \
2807  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2808  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2809  /usr/ucb/* ) ;;
2810  *)
2811    # OSF1 and SCO ODT 3.0 have their own names for install.
2812    # Don't use installbsd from OSF since it installs stuff as root
2813    # by default.
2814    for ac_prog in ginstall scoinst install; do
2815      for ac_exec_ext in '' $ac_executable_extensions; do
2816	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2817	  if test $ac_prog = install &&
2818	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2819	    # AIX install.  It has an incompatible calling convention.
2820	    :
2821	  elif test $ac_prog = install &&
2822	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2823	    # program-specific install script used by HP pwplus--don't use.
2824	    :
2825	  else
2826	    rm -rf conftest.one conftest.two conftest.dir
2827	    echo one > conftest.one
2828	    echo two > conftest.two
2829	    mkdir conftest.dir
2830	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2831	      test -s conftest.one && test -s conftest.two &&
2832	      test -s conftest.dir/conftest.one &&
2833	      test -s conftest.dir/conftest.two
2834	    then
2835	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2836	      break 3
2837	    fi
2838	  fi
2839	fi
2840      done
2841    done
2842    ;;
2843esac
2844
2845  done
2846IFS=$as_save_IFS
2847
2848rm -rf conftest.one conftest.two conftest.dir
2849
2850fi
2851  if test "${ac_cv_path_install+set}" = set; then
2852    INSTALL=$ac_cv_path_install
2853  else
2854    # As a last resort, use the slow shell script.  Don't cache a
2855    # value for INSTALL within a source directory, because that will
2856    # break other packages using the cache if that directory is
2857    # removed, or if the value is a relative name.
2858    INSTALL=$ac_install_sh
2859  fi
2860fi
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2862$as_echo "$INSTALL" >&6; }
2863
2864# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2865# It thinks the first close brace ends the variable substitution.
2866test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2867
2868test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2869
2870test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2871
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2873$as_echo_n "checking whether build environment is sane... " >&6; }
2874# Reject unsafe characters in $srcdir or the absolute working directory
2875# name.  Accept space and tab only in the latter.
2876am_lf='
2877'
2878case `pwd` in
2879  *[\\\"\#\$\&\'\`$am_lf]*)
2880    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2881esac
2882case $srcdir in
2883  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2884    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2885esac
2886
2887# Do 'set' in a subshell so we don't clobber the current shell's
2888# arguments.  Must try -L first in case configure is actually a
2889# symlink; some systems play weird games with the mod time of symlinks
2890# (eg FreeBSD returns the mod time of the symlink's containing
2891# directory).
2892if (
2893   am_has_slept=no
2894   for am_try in 1 2; do
2895     echo "timestamp, slept: $am_has_slept" > conftest.file
2896     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2897     if test "$*" = "X"; then
2898	# -L didn't work.
2899	set X `ls -t "$srcdir/configure" conftest.file`
2900     fi
2901     if test "$*" != "X $srcdir/configure conftest.file" \
2902	&& test "$*" != "X conftest.file $srcdir/configure"; then
2903
2904	# If neither matched, then we have a broken ls.  This can happen
2905	# if, for instance, CONFIG_SHELL is bash and it inherits a
2906	# broken ls alias from the environment.  This has actually
2907	# happened.  Such a system could not be considered "sane".
2908	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2909  alias in your environment" "$LINENO" 5
2910     fi
2911     if test "$2" = conftest.file || test $am_try -eq 2; then
2912       break
2913     fi
2914     # Just in case.
2915     sleep 1
2916     am_has_slept=yes
2917   done
2918   test "$2" = conftest.file
2919   )
2920then
2921   # Ok.
2922   :
2923else
2924   as_fn_error $? "newly created file is older than distributed files!
2925Check your system clock" "$LINENO" 5
2926fi
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2928$as_echo "yes" >&6; }
2929# If we didn't sleep, we still need to ensure time stamps of config.status and
2930# generated files are strictly newer.
2931am_sleep_pid=
2932if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2933  ( sleep 1 ) &
2934  am_sleep_pid=$!
2935fi
2936
2937rm -f conftest.file
2938
2939test "$program_prefix" != NONE &&
2940  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2941# Use a double $ so make ignores it.
2942test "$program_suffix" != NONE &&
2943  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2944# Double any \ or $.
2945# By default was `s,x,x', remove it if useless.
2946ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2947program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2948
2949# Expand $ac_aux_dir to an absolute path.
2950am_aux_dir=`cd "$ac_aux_dir" && pwd`
2951
2952if test x"${MISSING+set}" != xset; then
2953  MISSING="\${SHELL} '$am_aux_dir/missing'"
2954fi
2955# Use eval to expand $SHELL
2956if eval "$MISSING --is-lightweight"; then
2957  am_missing_run="$MISSING "
2958else
2959  am_missing_run=
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2961$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2962fi
2963
2964if test x"${install_sh+set}" != xset; then
2965  case $am_aux_dir in
2966  *\ * | *\	*)
2967    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2968  *)
2969    install_sh="\${SHELL} $am_aux_dir/install-sh"
2970  esac
2971fi
2972
2973# Installed binaries are usually stripped using 'strip' when the user
2974# run "make install-strip".  However 'strip' might not be the right
2975# tool to use in cross-compilation environments, therefore Automake
2976# will honor the 'STRIP' environment variable to overrule this program.
2977if test "$cross_compiling" != no; then
2978  if test -n "$ac_tool_prefix"; then
2979  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2980set dummy ${ac_tool_prefix}strip; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_STRIP+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test -n "$STRIP"; then
2987  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006STRIP=$ac_cv_prog_STRIP
3007if test -n "$STRIP"; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3009$as_echo "$STRIP" >&6; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015
3016fi
3017if test -z "$ac_cv_prog_STRIP"; then
3018  ac_ct_STRIP=$STRIP
3019  # Extract the first word of "strip", so it can be a program name with args.
3020set dummy strip; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$ac_ct_STRIP"; then
3027  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036    ac_cv_prog_ac_ct_STRIP="strip"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3047if test -n "$ac_ct_STRIP"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3049$as_echo "$ac_ct_STRIP" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055  if test "x$ac_ct_STRIP" = x; then
3056    STRIP=":"
3057  else
3058    case $cross_compiling:$ac_tool_warned in
3059yes:)
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062ac_tool_warned=yes ;;
3063esac
3064    STRIP=$ac_ct_STRIP
3065  fi
3066else
3067  STRIP="$ac_cv_prog_STRIP"
3068fi
3069
3070fi
3071INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3072
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3074$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3075if test -z "$MKDIR_P"; then
3076  if ${ac_cv_path_mkdir+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3081do
3082  IFS=$as_save_IFS
3083  test -z "$as_dir" && as_dir=.
3084    for ac_prog in mkdir gmkdir; do
3085	 for ac_exec_ext in '' $ac_executable_extensions; do
3086	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3087	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3088	     'mkdir (GNU coreutils) '* | \
3089	     'mkdir (coreutils) '* | \
3090	     'mkdir (fileutils) '4.1*)
3091	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3092	       break 3;;
3093	   esac
3094	 done
3095       done
3096  done
3097IFS=$as_save_IFS
3098
3099fi
3100
3101  test -d ./--version && rmdir ./--version
3102  if test "${ac_cv_path_mkdir+set}" = set; then
3103    MKDIR_P="$ac_cv_path_mkdir -p"
3104  else
3105    # As a last resort, use the slow shell script.  Don't cache a
3106    # value for MKDIR_P within a source directory, because that will
3107    # break other packages using the cache if that directory is
3108    # removed, or if the value is a relative name.
3109    MKDIR_P="$ac_install_sh -d"
3110  fi
3111fi
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3113$as_echo "$MKDIR_P" >&6; }
3114
3115for ac_prog in gawk mawk nawk awk
3116do
3117  # Extract the first word of "$ac_prog", so it can be a program name with args.
3118set dummy $ac_prog; ac_word=$2
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if ${ac_cv_prog_AWK+:} false; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  if test -n "$AWK"; then
3125  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132    for ac_exec_ext in '' $ac_executable_extensions; do
3133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134    ac_cv_prog_AWK="$ac_prog"
3135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139  done
3140IFS=$as_save_IFS
3141
3142fi
3143fi
3144AWK=$ac_cv_prog_AWK
3145if test -n "$AWK"; then
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3147$as_echo "$AWK" >&6; }
3148else
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151fi
3152
3153
3154  test -n "$AWK" && break
3155done
3156
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3158$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3159set x ${MAKE-make}
3160ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3161if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3162  $as_echo_n "(cached) " >&6
3163else
3164  cat >conftest.make <<\_ACEOF
3165SHELL = /bin/sh
3166all:
3167	@echo '@@@%%%=$(MAKE)=@@@%%%'
3168_ACEOF
3169# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3170case `${MAKE-make} -f conftest.make 2>/dev/null` in
3171  *@@@%%%=?*=@@@%%%*)
3172    eval ac_cv_prog_make_${ac_make}_set=yes;;
3173  *)
3174    eval ac_cv_prog_make_${ac_make}_set=no;;
3175esac
3176rm -f conftest.make
3177fi
3178if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3180$as_echo "yes" >&6; }
3181  SET_MAKE=
3182else
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
3185  SET_MAKE="MAKE=${MAKE-make}"
3186fi
3187
3188rm -rf .tst 2>/dev/null
3189mkdir .tst 2>/dev/null
3190if test -d .tst; then
3191  am__leading_dot=.
3192else
3193  am__leading_dot=_
3194fi
3195rmdir .tst 2>/dev/null
3196
3197# Check whether --enable-silent-rules was given.
3198if test "${enable_silent_rules+set}" = set; then :
3199  enableval=$enable_silent_rules;
3200fi
3201
3202case $enable_silent_rules in # (((
3203  yes) AM_DEFAULT_VERBOSITY=0;;
3204   no) AM_DEFAULT_VERBOSITY=1;;
3205    *) AM_DEFAULT_VERBOSITY=1;;
3206esac
3207am_make=${MAKE-make}
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3209$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3210if ${am_cv_make_support_nested_variables+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  if $as_echo 'TRUE=$(BAR$(V))
3214BAR0=false
3215BAR1=true
3216V=1
3217am__doit:
3218	@$(TRUE)
3219.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3220  am_cv_make_support_nested_variables=yes
3221else
3222  am_cv_make_support_nested_variables=no
3223fi
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3226$as_echo "$am_cv_make_support_nested_variables" >&6; }
3227if test $am_cv_make_support_nested_variables = yes; then
3228    AM_V='$(V)'
3229  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3230else
3231  AM_V=$AM_DEFAULT_VERBOSITY
3232  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3233fi
3234AM_BACKSLASH='\'
3235
3236if test "`cd $srcdir && pwd`" != "`pwd`"; then
3237  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3238  # is not polluted with repeated "-I."
3239  am__isrc=' -I$(srcdir)'
3240  # test to see if srcdir already configured
3241  if test -f $srcdir/config.status; then
3242    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3243  fi
3244fi
3245
3246# test whether we have cygpath
3247if test -z "$CYGPATH_W"; then
3248  if (cygpath --version) >/dev/null 2>/dev/null; then
3249    CYGPATH_W='cygpath -w'
3250  else
3251    CYGPATH_W=echo
3252  fi
3253fi
3254
3255
3256# Define the identity of the package.
3257 PACKAGE='expat'
3258 VERSION='2.4.1'
3259
3260
3261cat >>confdefs.h <<_ACEOF
3262#define PACKAGE "$PACKAGE"
3263_ACEOF
3264
3265
3266cat >>confdefs.h <<_ACEOF
3267#define VERSION "$VERSION"
3268_ACEOF
3269
3270# Some tools Automake needs.
3271
3272ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3273
3274
3275AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3276
3277
3278AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3279
3280
3281AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3282
3283
3284MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3285
3286# For better backward compatibility.  To be removed once Automake 1.9.x
3287# dies out for good.  For more background, see:
3288# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3289# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3290mkdir_p='$(MKDIR_P)'
3291
3292# We need awk for the "check" target (and possibly the TAP driver).  The
3293# system "awk" is bad on some platforms.
3294# Always define AMTAR for backward compatibility.  Yes, it's still used
3295# in the wild :-(  We should find a proper way to deprecate it ...
3296AMTAR='$${TAR-tar}'
3297
3298
3299# We'll loop over all known methods to create a tar archive until one works.
3300_am_tools='gnutar  pax cpio none'
3301
3302am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3303
3304
3305
3306
3307
3308
3309# POSIX will say in a future version that running "rm -f" with no argument
3310# is OK; and we want to be able to make that assumption in our Makefile
3311# recipes.  So use an aggressive probe to check that the usage we want is
3312# actually supported "in the wild" to an acceptable degree.
3313# See automake bug#10828.
3314# To make any issue more visible, cause the running configure to be aborted
3315# by default if the 'rm' program in use doesn't match our expectations; the
3316# user can still override this though.
3317if rm -f && rm -fr && rm -rf; then : OK; else
3318  cat >&2 <<'END'
3319Oops!
3320
3321Your 'rm' program seems unable to run without file operands specified
3322on the command line, even when the '-f' option is present.  This is contrary
3323to the behaviour of most rm programs out there, and not conforming with
3324the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3325
3326Please tell bug-automake@gnu.org about your system, including the value
3327of your $PATH and any error possibly output before this message.  This
3328can help us improve future automake versions.
3329
3330END
3331  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3332    echo 'Configuration will proceed anyway, since you have set the' >&2
3333    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3334    echo >&2
3335  else
3336    cat >&2 <<'END'
3337Aborting the configuration process, to ensure you take notice of the issue.
3338
3339You can download and install GNU coreutils to get an 'rm' implementation
3340that behaves properly: <https://www.gnu.org/software/coreutils/>.
3341
3342If you want to complete the configuration process using your problematic
3343'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3344to "yes", and re-run configure.
3345
3346END
3347    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3348  fi
3349fi
3350
3351
3352
3353
3354LIBCURRENT=9   # sync
3355LIBREVISION=1  # with
3356LIBAGE=8       # CMakeLists.txt!
3357
3358ac_config_headers="$ac_config_headers expat_config.h"
3359
3360
3361DEPDIR="${am__leading_dot}deps"
3362
3363ac_config_commands="$ac_config_commands depfiles"
3364
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3366$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3367cat > confinc.mk << 'END'
3368am__doit:
3369	@echo this is the am__doit target >confinc.out
3370.PHONY: am__doit
3371END
3372am__include="#"
3373am__quote=
3374# BSD make does it like this.
3375echo '.include "confinc.mk" # ignored' > confmf.BSD
3376# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3377echo 'include confinc.mk # ignored' > confmf.GNU
3378_am_result=no
3379for s in GNU BSD; do
3380  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3381   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }
3385  case $?:`cat confinc.out 2>/dev/null` in #(
3386  '0:this is the am__doit target') :
3387    case $s in #(
3388  BSD) :
3389    am__include='.include' am__quote='"' ;; #(
3390  *) :
3391    am__include='include' am__quote='' ;;
3392esac ;; #(
3393  *) :
3394     ;;
3395esac
3396  if test "$am__include" != "#"; then
3397    _am_result="yes ($s style)"
3398    break
3399  fi
3400done
3401rm -f confinc.* confmf.*
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3403$as_echo "${_am_result}" >&6; }
3404
3405# Check whether --enable-dependency-tracking was given.
3406if test "${enable_dependency_tracking+set}" = set; then :
3407  enableval=$enable_dependency_tracking;
3408fi
3409
3410if test "x$enable_dependency_tracking" != xno; then
3411  am_depcomp="$ac_aux_dir/depcomp"
3412  AMDEPBACKSLASH='\'
3413  am__nodep='_no'
3414fi
3415 if test "x$enable_dependency_tracking" != xno; then
3416  AMDEP_TRUE=
3417  AMDEP_FALSE='#'
3418else
3419  AMDEP_TRUE='#'
3420  AMDEP_FALSE=
3421fi
3422
3423
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429if test -n "$ac_tool_prefix"; then
3430  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3431set dummy ${ac_tool_prefix}gcc; ac_word=$2
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433$as_echo_n "checking for $ac_word... " >&6; }
3434if ${ac_cv_prog_CC+:} false; then :
3435  $as_echo_n "(cached) " >&6
3436else
3437  if test -n "$CC"; then
3438  ac_cv_prog_CC="$CC" # Let the user override the test.
3439else
3440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441for as_dir in $PATH
3442do
3443  IFS=$as_save_IFS
3444  test -z "$as_dir" && as_dir=.
3445    for ac_exec_ext in '' $ac_executable_extensions; do
3446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449    break 2
3450  fi
3451done
3452  done
3453IFS=$as_save_IFS
3454
3455fi
3456fi
3457CC=$ac_cv_prog_CC
3458if test -n "$CC"; then
3459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460$as_echo "$CC" >&6; }
3461else
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463$as_echo "no" >&6; }
3464fi
3465
3466
3467fi
3468if test -z "$ac_cv_prog_CC"; then
3469  ac_ct_CC=$CC
3470  # Extract the first word of "gcc", so it can be a program name with args.
3471set dummy gcc; ac_word=$2
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473$as_echo_n "checking for $ac_word... " >&6; }
3474if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475  $as_echo_n "(cached) " >&6
3476else
3477  if test -n "$ac_ct_CC"; then
3478  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479else
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH
3482do
3483  IFS=$as_save_IFS
3484  test -z "$as_dir" && as_dir=.
3485    for ac_exec_ext in '' $ac_executable_extensions; do
3486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487    ac_cv_prog_ac_ct_CC="gcc"
3488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489    break 2
3490  fi
3491done
3492  done
3493IFS=$as_save_IFS
3494
3495fi
3496fi
3497ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498if test -n "$ac_ct_CC"; then
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500$as_echo "$ac_ct_CC" >&6; }
3501else
3502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503$as_echo "no" >&6; }
3504fi
3505
3506  if test "x$ac_ct_CC" = x; then
3507    CC=""
3508  else
3509    case $cross_compiling:$ac_tool_warned in
3510yes:)
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3513ac_tool_warned=yes ;;
3514esac
3515    CC=$ac_ct_CC
3516  fi
3517else
3518  CC="$ac_cv_prog_CC"
3519fi
3520
3521if test -z "$CC"; then
3522          if test -n "$ac_tool_prefix"; then
3523    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3524set dummy ${ac_tool_prefix}cc; ac_word=$2
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
3527if ${ac_cv_prog_CC+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  if test -n "$CC"; then
3531  ac_cv_prog_CC="$CC" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536  IFS=$as_save_IFS
3537  test -z "$as_dir" && as_dir=.
3538    for ac_exec_ext in '' $ac_executable_extensions; do
3539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540    ac_cv_prog_CC="${ac_tool_prefix}cc"
3541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542    break 2
3543  fi
3544done
3545  done
3546IFS=$as_save_IFS
3547
3548fi
3549fi
3550CC=$ac_cv_prog_CC
3551if test -n "$CC"; then
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553$as_echo "$CC" >&6; }
3554else
3555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
3557fi
3558
3559
3560  fi
3561fi
3562if test -z "$CC"; then
3563  # Extract the first word of "cc", so it can be a program name with args.
3564set dummy cc; ac_word=$2
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566$as_echo_n "checking for $ac_word... " >&6; }
3567if ${ac_cv_prog_CC+:} false; then :
3568  $as_echo_n "(cached) " >&6
3569else
3570  if test -n "$CC"; then
3571  ac_cv_prog_CC="$CC" # Let the user override the test.
3572else
3573  ac_prog_rejected=no
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577  IFS=$as_save_IFS
3578  test -z "$as_dir" && as_dir=.
3579    for ac_exec_ext in '' $ac_executable_extensions; do
3580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3582       ac_prog_rejected=yes
3583       continue
3584     fi
3585    ac_cv_prog_CC="cc"
3586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587    break 2
3588  fi
3589done
3590  done
3591IFS=$as_save_IFS
3592
3593if test $ac_prog_rejected = yes; then
3594  # We found a bogon in the path, so make sure we never use it.
3595  set dummy $ac_cv_prog_CC
3596  shift
3597  if test $# != 0; then
3598    # We chose a different compiler from the bogus one.
3599    # However, it has the same basename, so the bogon will be chosen
3600    # first if we set CC to just the basename; use the full file name.
3601    shift
3602    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3603  fi
3604fi
3605fi
3606fi
3607CC=$ac_cv_prog_CC
3608if test -n "$CC"; then
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610$as_echo "$CC" >&6; }
3611else
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
3614fi
3615
3616
3617fi
3618if test -z "$CC"; then
3619  if test -n "$ac_tool_prefix"; then
3620  for ac_prog in cl.exe
3621  do
3622    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625$as_echo_n "checking for $ac_word... " >&6; }
3626if ${ac_cv_prog_CC+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  if test -n "$CC"; then
3630  ac_cv_prog_CC="$CC" # Let the user override the test.
3631else
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635  IFS=$as_save_IFS
3636  test -z "$as_dir" && as_dir=.
3637    for ac_exec_ext in '' $ac_executable_extensions; do
3638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641    break 2
3642  fi
3643done
3644  done
3645IFS=$as_save_IFS
3646
3647fi
3648fi
3649CC=$ac_cv_prog_CC
3650if test -n "$CC"; then
3651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652$as_echo "$CC" >&6; }
3653else
3654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655$as_echo "no" >&6; }
3656fi
3657
3658
3659    test -n "$CC" && break
3660  done
3661fi
3662if test -z "$CC"; then
3663  ac_ct_CC=$CC
3664  for ac_prog in cl.exe
3665do
3666  # Extract the first word of "$ac_prog", so it can be a program name with args.
3667set dummy $ac_prog; ac_word=$2
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669$as_echo_n "checking for $ac_word... " >&6; }
3670if ${ac_cv_prog_ac_ct_CC+:} false; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  if test -n "$ac_ct_CC"; then
3674  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3675else
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH
3678do
3679  IFS=$as_save_IFS
3680  test -z "$as_dir" && as_dir=.
3681    for ac_exec_ext in '' $ac_executable_extensions; do
3682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683    ac_cv_prog_ac_ct_CC="$ac_prog"
3684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685    break 2
3686  fi
3687done
3688  done
3689IFS=$as_save_IFS
3690
3691fi
3692fi
3693ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694if test -n "$ac_ct_CC"; then
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3696$as_echo "$ac_ct_CC" >&6; }
3697else
3698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699$as_echo "no" >&6; }
3700fi
3701
3702
3703  test -n "$ac_ct_CC" && break
3704done
3705
3706  if test "x$ac_ct_CC" = x; then
3707    CC=""
3708  else
3709    case $cross_compiling:$ac_tool_warned in
3710yes:)
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713ac_tool_warned=yes ;;
3714esac
3715    CC=$ac_ct_CC
3716  fi
3717fi
3718
3719fi
3720
3721
3722test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724as_fn_error $? "no acceptable C compiler found in \$PATH
3725See \`config.log' for more details" "$LINENO" 5; }
3726
3727# Provide some information about the compiler.
3728$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3729set X $ac_compile
3730ac_compiler=$2
3731for ac_option in --version -v -V -qversion; do
3732  { { ac_try="$ac_compiler $ac_option >&5"
3733case "(($ac_try" in
3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735  *) ac_try_echo=$ac_try;;
3736esac
3737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738$as_echo "$ac_try_echo"; } >&5
3739  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3740  ac_status=$?
3741  if test -s conftest.err; then
3742    sed '10a\
3743... rest of stderr output deleted ...
3744         10q' conftest.err >conftest.er1
3745    cat conftest.er1 >&5
3746  fi
3747  rm -f conftest.er1 conftest.err
3748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749  test $ac_status = 0; }
3750done
3751
3752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763ac_clean_files_save=$ac_clean_files
3764ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3765# Try to create an executable without -o first, disregard a.out.
3766# It will help us diagnose broken compilers, and finding out an intuition
3767# of exeext.
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3769$as_echo_n "checking whether the C compiler works... " >&6; }
3770ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3771
3772# The possible output files:
3773ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3774
3775ac_rmfiles=
3776for ac_file in $ac_files
3777do
3778  case $ac_file in
3779    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3780    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3781  esac
3782done
3783rm -f $ac_rmfiles
3784
3785if { { ac_try="$ac_link_default"
3786case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792  (eval "$ac_link_default") 2>&5
3793  ac_status=$?
3794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }; then :
3796  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3797# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3798# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3799# so that the user can short-circuit this test for compilers unknown to
3800# Autoconf.
3801for ac_file in $ac_files ''
3802do
3803  test -f "$ac_file" || continue
3804  case $ac_file in
3805    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3806	;;
3807    [ab].out )
3808	# We found the default executable, but exeext='' is most
3809	# certainly right.
3810	break;;
3811    *.* )
3812	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3813	then :; else
3814	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3815	fi
3816	# We set ac_cv_exeext here because the later test for it is not
3817	# safe: cross compilers may not add the suffix if given an `-o'
3818	# argument, so we may need to know it at that point already.
3819	# Even if this section looks crufty: it has the advantage of
3820	# actually working.
3821	break;;
3822    * )
3823	break;;
3824  esac
3825done
3826test "$ac_cv_exeext" = no && ac_cv_exeext=
3827
3828else
3829  ac_file=''
3830fi
3831if test -z "$ac_file"; then :
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834$as_echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839as_fn_error 77 "C compiler cannot create executables
3840See \`config.log' for more details" "$LINENO" 5; }
3841else
3842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3843$as_echo "yes" >&6; }
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3846$as_echo_n "checking for C compiler default output file name... " >&6; }
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3848$as_echo "$ac_file" >&6; }
3849ac_exeext=$ac_cv_exeext
3850
3851rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3852ac_clean_files=$ac_clean_files_save
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3854$as_echo_n "checking for suffix of executables... " >&6; }
3855if { { ac_try="$ac_link"
3856case "(($ac_try" in
3857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858  *) ac_try_echo=$ac_try;;
3859esac
3860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861$as_echo "$ac_try_echo"; } >&5
3862  (eval "$ac_link") 2>&5
3863  ac_status=$?
3864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865  test $ac_status = 0; }; then :
3866  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3867# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3868# work properly (i.e., refer to `conftest.exe'), while it won't with
3869# `rm'.
3870for ac_file in conftest.exe conftest conftest.*; do
3871  test -f "$ac_file" || continue
3872  case $ac_file in
3873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3874    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3875	  break;;
3876    * ) break;;
3877  esac
3878done
3879else
3880  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3883See \`config.log' for more details" "$LINENO" 5; }
3884fi
3885rm -f conftest conftest$ac_cv_exeext
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3887$as_echo "$ac_cv_exeext" >&6; }
3888
3889rm -f conftest.$ac_ext
3890EXEEXT=$ac_cv_exeext
3891ac_exeext=$EXEEXT
3892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h.  */
3894#include <stdio.h>
3895int
3896main ()
3897{
3898FILE *f = fopen ("conftest.out", "w");
3899 return ferror (f) || fclose (f) != 0;
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905ac_clean_files="$ac_clean_files conftest.out"
3906# Check that the compiler produces executables we can run.  If not, either
3907# the compiler is broken, or we cross compile.
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3909$as_echo_n "checking whether we are cross compiling... " >&6; }
3910if test "$cross_compiling" != yes; then
3911  { { ac_try="$ac_link"
3912case "(($ac_try" in
3913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914  *) ac_try_echo=$ac_try;;
3915esac
3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917$as_echo "$ac_try_echo"; } >&5
3918  (eval "$ac_link") 2>&5
3919  ac_status=$?
3920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921  test $ac_status = 0; }
3922  if { ac_try='./conftest$ac_cv_exeext'
3923  { { case "(($ac_try" in
3924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925  *) ac_try_echo=$ac_try;;
3926esac
3927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928$as_echo "$ac_try_echo"; } >&5
3929  (eval "$ac_try") 2>&5
3930  ac_status=$?
3931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932  test $ac_status = 0; }; }; then
3933    cross_compiling=no
3934  else
3935    if test "$cross_compiling" = maybe; then
3936	cross_compiling=yes
3937    else
3938	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940as_fn_error $? "cannot run C compiled programs.
3941If you meant to cross compile, use \`--host'.
3942See \`config.log' for more details" "$LINENO" 5; }
3943    fi
3944  fi
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3947$as_echo "$cross_compiling" >&6; }
3948
3949rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3950ac_clean_files=$ac_clean_files_save
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3952$as_echo_n "checking for suffix of object files... " >&6; }
3953if ${ac_cv_objext+:} false; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h.  */
3958
3959int
3960main ()
3961{
3962
3963  ;
3964  return 0;
3965}
3966_ACEOF
3967rm -f conftest.o conftest.obj
3968if { { ac_try="$ac_compile"
3969case "(($ac_try" in
3970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971  *) ac_try_echo=$ac_try;;
3972esac
3973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974$as_echo "$ac_try_echo"; } >&5
3975  (eval "$ac_compile") 2>&5
3976  ac_status=$?
3977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978  test $ac_status = 0; }; then :
3979  for ac_file in conftest.o conftest.obj conftest.*; do
3980  test -f "$ac_file" || continue;
3981  case $ac_file in
3982    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3983    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3984       break;;
3985  esac
3986done
3987else
3988  $as_echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
3991{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993as_fn_error $? "cannot compute suffix of object files: cannot compile
3994See \`config.log' for more details" "$LINENO" 5; }
3995fi
3996rm -f conftest.$ac_cv_objext conftest.$ac_ext
3997fi
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3999$as_echo "$ac_cv_objext" >&6; }
4000OBJEXT=$ac_cv_objext
4001ac_objext=$OBJEXT
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4003$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4004if ${ac_cv_c_compiler_gnu+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009
4010int
4011main ()
4012{
4013#ifndef __GNUC__
4014       choke me
4015#endif
4016
4017  ;
4018  return 0;
4019}
4020_ACEOF
4021if ac_fn_c_try_compile "$LINENO"; then :
4022  ac_compiler_gnu=yes
4023else
4024  ac_compiler_gnu=no
4025fi
4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027ac_cv_c_compiler_gnu=$ac_compiler_gnu
4028
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4031$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4032if test $ac_compiler_gnu = yes; then
4033  GCC=yes
4034else
4035  GCC=
4036fi
4037ac_test_CFLAGS=${CFLAGS+set}
4038ac_save_CFLAGS=$CFLAGS
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4040$as_echo_n "checking whether $CC accepts -g... " >&6; }
4041if ${ac_cv_prog_cc_g+:} false; then :
4042  $as_echo_n "(cached) " >&6
4043else
4044  ac_save_c_werror_flag=$ac_c_werror_flag
4045   ac_c_werror_flag=yes
4046   ac_cv_prog_cc_g=no
4047   CFLAGS="-g"
4048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049/* end confdefs.h.  */
4050
4051int
4052main ()
4053{
4054
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059if ac_fn_c_try_compile "$LINENO"; then :
4060  ac_cv_prog_cc_g=yes
4061else
4062  CFLAGS=""
4063      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065
4066int
4067main ()
4068{
4069
4070  ;
4071  return 0;
4072}
4073_ACEOF
4074if ac_fn_c_try_compile "$LINENO"; then :
4075
4076else
4077  ac_c_werror_flag=$ac_save_c_werror_flag
4078	 CFLAGS="-g"
4079	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h.  */
4081
4082int
4083main ()
4084{
4085
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090if ac_fn_c_try_compile "$LINENO"; then :
4091  ac_cv_prog_cc_g=yes
4092fi
4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094fi
4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096fi
4097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098   ac_c_werror_flag=$ac_save_c_werror_flag
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4101$as_echo "$ac_cv_prog_cc_g" >&6; }
4102if test "$ac_test_CFLAGS" = set; then
4103  CFLAGS=$ac_save_CFLAGS
4104elif test $ac_cv_prog_cc_g = yes; then
4105  if test "$GCC" = yes; then
4106    CFLAGS="-g -O2"
4107  else
4108    CFLAGS="-g"
4109  fi
4110else
4111  if test "$GCC" = yes; then
4112    CFLAGS="-O2"
4113  else
4114    CFLAGS=
4115  fi
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4118$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4119if ${ac_cv_prog_cc_c89+:} false; then :
4120  $as_echo_n "(cached) " >&6
4121else
4122  ac_cv_prog_cc_c89=no
4123ac_save_CC=$CC
4124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126#include <stdarg.h>
4127#include <stdio.h>
4128struct stat;
4129/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4130struct buf { int x; };
4131FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132static char *e (p, i)
4133     char **p;
4134     int i;
4135{
4136  return p[i];
4137}
4138static char *f (char * (*g) (char **, int), char **p, ...)
4139{
4140  char *s;
4141  va_list v;
4142  va_start (v,p);
4143  s = g (p, va_arg (v,int));
4144  va_end (v);
4145  return s;
4146}
4147
4148/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4149   function prototypes and stuff, but not '\xHH' hex character constants.
4150   These don't provoke an error unfortunately, instead are silently treated
4151   as 'x'.  The following induces an error, until -std is added to get
4152   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4153   array size at least.  It's necessary to write '\x00'==0 to get something
4154   that's true only with -std.  */
4155int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4156
4157/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158   inside strings and character constants.  */
4159#define FOO(x) 'x'
4160int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4161
4162int test (int i, double x);
4163struct s1 {int (*f) (int a);};
4164struct s2 {int (*f) (double a);};
4165int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4166int argc;
4167char **argv;
4168int
4169main ()
4170{
4171return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4172  ;
4173  return 0;
4174}
4175_ACEOF
4176for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178do
4179  CC="$ac_save_CC $ac_arg"
4180  if ac_fn_c_try_compile "$LINENO"; then :
4181  ac_cv_prog_cc_c89=$ac_arg
4182fi
4183rm -f core conftest.err conftest.$ac_objext
4184  test "x$ac_cv_prog_cc_c89" != "xno" && break
4185done
4186rm -f conftest.$ac_ext
4187CC=$ac_save_CC
4188
4189fi
4190# AC_CACHE_VAL
4191case "x$ac_cv_prog_cc_c89" in
4192  x)
4193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194$as_echo "none needed" >&6; } ;;
4195  xno)
4196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197$as_echo "unsupported" >&6; } ;;
4198  *)
4199    CC="$CC $ac_cv_prog_cc_c89"
4200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202esac
4203if test "x$ac_cv_prog_cc_c89" != xno; then :
4204
4205fi
4206
4207ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213ac_ext=c
4214ac_cpp='$CPP $CPPFLAGS'
4215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4219$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4220if ${am_cv_prog_cc_c_o+:} false; then :
4221  $as_echo_n "(cached) " >&6
4222else
4223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225
4226int
4227main ()
4228{
4229
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234  # Make sure it works both with $CC and with simple cc.
4235  # Following AC_PROG_CC_C_O, we do the test twice because some
4236  # compilers refuse to overwrite an existing .o file with -o,
4237  # though they will create one.
4238  am_cv_prog_cc_c_o=yes
4239  for am_i in 1 2; do
4240    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4241   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } \
4245         && test -f conftest2.$ac_objext; then
4246      : OK
4247    else
4248      am_cv_prog_cc_c_o=no
4249      break
4250    fi
4251  done
4252  rm -f core conftest*
4253  unset am_i
4254fi
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4256$as_echo "$am_cv_prog_cc_c_o" >&6; }
4257if test "$am_cv_prog_cc_c_o" != yes; then
4258   # Losing compiler, so override with the script.
4259   # FIXME: It is wrong to rewrite CC.
4260   # But if we don't then we get into trouble of one sort or another.
4261   # A longer-term fix would be to have automake use am__CC in this case,
4262   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4263   CC="$am_aux_dir/compile $CC"
4264fi
4265ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271
4272depcc="$CC"   am_compiler_list=
4273
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4275$as_echo_n "checking dependency style of $depcc... " >&6; }
4276if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4280  # We make a subdir and do the tests there.  Otherwise we can end up
4281  # making bogus files that we don't know about and never remove.  For
4282  # instance it was reported that on HP-UX the gcc test will end up
4283  # making a dummy file named 'D' -- because '-MD' means "put the output
4284  # in D".
4285  rm -rf conftest.dir
4286  mkdir conftest.dir
4287  # Copy depcomp to subdir because otherwise we won't find it if we're
4288  # using a relative directory.
4289  cp "$am_depcomp" conftest.dir
4290  cd conftest.dir
4291  # We will build objects and dependencies in a subdirectory because
4292  # it helps to detect inapplicable dependency modes.  For instance
4293  # both Tru64's cc and ICC support -MD to output dependencies as a
4294  # side effect of compilation, but ICC will put the dependencies in
4295  # the current directory while Tru64 will put them in the object
4296  # directory.
4297  mkdir sub
4298
4299  am_cv_CC_dependencies_compiler_type=none
4300  if test "$am_compiler_list" = ""; then
4301     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4302  fi
4303  am__universal=false
4304  case " $depcc " in #(
4305     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4306     esac
4307
4308  for depmode in $am_compiler_list; do
4309    # Setup a source with many dependencies, because some compilers
4310    # like to wrap large dependency lists on column 80 (with \), and
4311    # we should not choose a depcomp mode which is confused by this.
4312    #
4313    # We need to recreate these files for each test, as the compiler may
4314    # overwrite some of them when testing with obscure command lines.
4315    # This happens at least with the AIX C compiler.
4316    : > sub/conftest.c
4317    for i in 1 2 3 4 5 6; do
4318      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4319      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4320      # Solaris 10 /bin/sh.
4321      echo '/* dummy */' > sub/conftst$i.h
4322    done
4323    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4324
4325    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4326    # mode.  It turns out that the SunPro C++ compiler does not properly
4327    # handle '-M -o', and we need to detect this.  Also, some Intel
4328    # versions had trouble with output in subdirs.
4329    am__obj=sub/conftest.${OBJEXT-o}
4330    am__minus_obj="-o $am__obj"
4331    case $depmode in
4332    gcc)
4333      # This depmode causes a compiler race in universal mode.
4334      test "$am__universal" = false || continue
4335      ;;
4336    nosideeffect)
4337      # After this tag, mechanisms are not by side-effect, so they'll
4338      # only be used when explicitly requested.
4339      if test "x$enable_dependency_tracking" = xyes; then
4340	continue
4341      else
4342	break
4343      fi
4344      ;;
4345    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4346      # This compiler won't grok '-c -o', but also, the minuso test has
4347      # not run yet.  These depmodes are late enough in the game, and
4348      # so weak that their functioning should not be impacted.
4349      am__obj=conftest.${OBJEXT-o}
4350      am__minus_obj=
4351      ;;
4352    none) break ;;
4353    esac
4354    if depmode=$depmode \
4355       source=sub/conftest.c object=$am__obj \
4356       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4358         >/dev/null 2>conftest.err &&
4359       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4360       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4361       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4362       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4363      # icc doesn't choke on unknown options, it will just issue warnings
4364      # or remarks (even with -Werror).  So we grep stderr for any message
4365      # that says an option was ignored or not supported.
4366      # When given -MP, icc 7.0 and 7.1 complain thusly:
4367      #   icc: Command line warning: ignoring option '-M'; no argument required
4368      # The diagnosis changed in icc 8.0:
4369      #   icc: Command line remark: option '-MP' not supported
4370      if (grep 'ignoring option' conftest.err ||
4371          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4372        am_cv_CC_dependencies_compiler_type=$depmode
4373        break
4374      fi
4375    fi
4376  done
4377
4378  cd ..
4379  rm -rf conftest.dir
4380else
4381  am_cv_CC_dependencies_compiler_type=none
4382fi
4383
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4386$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4387CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4388
4389 if
4390  test "x$enable_dependency_tracking" != xno \
4391  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4392  am__fastdepCC_TRUE=
4393  am__fastdepCC_FALSE='#'
4394else
4395  am__fastdepCC_TRUE='#'
4396  am__fastdepCC_FALSE=
4397fi
4398
4399
4400
4401if test -n "$ac_tool_prefix"; then
4402  for ac_prog in ar lib "link -lib"
4403  do
4404    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407$as_echo_n "checking for $ac_word... " >&6; }
4408if ${ac_cv_prog_AR+:} false; then :
4409  $as_echo_n "(cached) " >&6
4410else
4411  if test -n "$AR"; then
4412  ac_cv_prog_AR="$AR" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419    for ac_exec_ext in '' $ac_executable_extensions; do
4420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423    break 2
4424  fi
4425done
4426  done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431AR=$ac_cv_prog_AR
4432if test -n "$AR"; then
4433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4434$as_echo "$AR" >&6; }
4435else
4436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439
4440
4441    test -n "$AR" && break
4442  done
4443fi
4444if test -z "$AR"; then
4445  ac_ct_AR=$AR
4446  for ac_prog in ar lib "link -lib"
4447do
4448  # Extract the first word of "$ac_prog", so it can be a program name with args.
4449set dummy $ac_prog; ac_word=$2
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451$as_echo_n "checking for $ac_word... " >&6; }
4452if ${ac_cv_prog_ac_ct_AR+:} false; then :
4453  $as_echo_n "(cached) " >&6
4454else
4455  if test -n "$ac_ct_AR"; then
4456  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461  IFS=$as_save_IFS
4462  test -z "$as_dir" && as_dir=.
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465    ac_cv_prog_ac_ct_AR="$ac_prog"
4466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467    break 2
4468  fi
4469done
4470  done
4471IFS=$as_save_IFS
4472
4473fi
4474fi
4475ac_ct_AR=$ac_cv_prog_ac_ct_AR
4476if test -n "$ac_ct_AR"; then
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4478$as_echo "$ac_ct_AR" >&6; }
4479else
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
4482fi
4483
4484
4485  test -n "$ac_ct_AR" && break
4486done
4487
4488  if test "x$ac_ct_AR" = x; then
4489    AR="false"
4490  else
4491    case $cross_compiling:$ac_tool_warned in
4492yes:)
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495ac_tool_warned=yes ;;
4496esac
4497    AR=$ac_ct_AR
4498  fi
4499fi
4500
4501: ${AR=ar}
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4504$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4505if ${am_cv_ar_interface+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  ac_ext=c
4509ac_cpp='$CPP $CPPFLAGS'
4510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514   am_cv_ar_interface=ar
4515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h.  */
4517int some_variable = 0;
4518_ACEOF
4519if ac_fn_c_try_compile "$LINENO"; then :
4520  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4521      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4522  (eval $am_ar_try) 2>&5
4523  ac_status=$?
4524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525  test $ac_status = 0; }
4526      if test "$ac_status" -eq 0; then
4527        am_cv_ar_interface=ar
4528      else
4529        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4530        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4531  (eval $am_ar_try) 2>&5
4532  ac_status=$?
4533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534  test $ac_status = 0; }
4535        if test "$ac_status" -eq 0; then
4536          am_cv_ar_interface=lib
4537        else
4538          am_cv_ar_interface=unknown
4539        fi
4540      fi
4541      rm -f conftest.lib libconftest.a
4542
4543fi
4544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545   ac_ext=c
4546ac_cpp='$CPP $CPPFLAGS'
4547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551fi
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4553$as_echo "$am_cv_ar_interface" >&6; }
4554
4555case $am_cv_ar_interface in
4556ar)
4557  ;;
4558lib)
4559  # Microsoft lib, so override with the ar-lib wrapper script.
4560  # FIXME: It is wrong to rewrite AR.
4561  # But if we don't then we get into trouble of one sort or another.
4562  # A longer-term fix would be to have automake use am__AR in this case,
4563  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4564  # similar.
4565  AR="$am_aux_dir/ar-lib $AR"
4566  ;;
4567unknown)
4568  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4569  ;;
4570esac
4571
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4574$as_echo_n "checking whether ln -s works... " >&6; }
4575LN_S=$as_ln_s
4576if test "$LN_S" = "ln -s"; then
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4578$as_echo "yes" >&6; }
4579else
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4581$as_echo "no, using $LN_S" >&6; }
4582fi
4583
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4585$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4586set x ${MAKE-make}
4587ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4588if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  cat >conftest.make <<\_ACEOF
4592SHELL = /bin/sh
4593all:
4594	@echo '@@@%%%=$(MAKE)=@@@%%%'
4595_ACEOF
4596# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4597case `${MAKE-make} -f conftest.make 2>/dev/null` in
4598  *@@@%%%=?*=@@@%%%*)
4599    eval ac_cv_prog_make_${ac_make}_set=yes;;
4600  *)
4601    eval ac_cv_prog_make_${ac_make}_set=no;;
4602esac
4603rm -f conftest.make
4604fi
4605if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607$as_echo "yes" >&6; }
4608  SET_MAKE=
4609else
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612  SET_MAKE="MAKE=${MAKE-make}"
4613fi
4614
4615
4616
4617case `pwd` in
4618  *\ * | *\	*)
4619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4620$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4621esac
4622
4623
4624
4625macro_version='2.4.6'
4626macro_revision='2.4.6'
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640ltmain=$ac_aux_dir/ltmain.sh
4641
4642# Backslashify metacharacters that are still active within
4643# double-quoted strings.
4644sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4645
4646# Same as above, but do not quote variable references.
4647double_quote_subst='s/\(["`\\]\)/\\\1/g'
4648
4649# Sed substitution to delay expansion of an escaped shell variable in a
4650# double_quote_subst'ed string.
4651delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4652
4653# Sed substitution to delay expansion of an escaped single quote.
4654delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4655
4656# Sed substitution to avoid accidental globbing in evaled expressions
4657no_glob_subst='s/\*/\\\*/g'
4658
4659ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4660ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4661ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4664$as_echo_n "checking how to print strings... " >&6; }
4665# Test print first, because it will be a builtin if present.
4666if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4667   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4668  ECHO='print -r --'
4669elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4670  ECHO='printf %s\n'
4671else
4672  # Use this function as a fallback that always works.
4673  func_fallback_echo ()
4674  {
4675    eval 'cat <<_LTECHO_EOF
4676$1
4677_LTECHO_EOF'
4678  }
4679  ECHO='func_fallback_echo'
4680fi
4681
4682# func_echo_all arg...
4683# Invoke $ECHO with all args, space-separated.
4684func_echo_all ()
4685{
4686    $ECHO ""
4687}
4688
4689case $ECHO in
4690  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4691$as_echo "printf" >&6; } ;;
4692  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4693$as_echo "print -r" >&6; } ;;
4694  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4695$as_echo "cat" >&6; } ;;
4696esac
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4712$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4713if ${ac_cv_path_SED+:} false; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4717     for ac_i in 1 2 3 4 5 6 7; do
4718       ac_script="$ac_script$as_nl$ac_script"
4719     done
4720     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4721     { ac_script=; unset ac_script;}
4722     if test -z "$SED"; then
4723  ac_path_SED_found=false
4724  # Loop through the user's path and test for each of PROGNAME-LIST
4725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730    for ac_prog in sed gsed; do
4731    for ac_exec_ext in '' $ac_executable_extensions; do
4732      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4733      as_fn_executable_p "$ac_path_SED" || continue
4734# Check for GNU ac_path_SED and select it if it is found.
4735  # Check for GNU $ac_path_SED
4736case `"$ac_path_SED" --version 2>&1` in
4737*GNU*)
4738  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4739*)
4740  ac_count=0
4741  $as_echo_n 0123456789 >"conftest.in"
4742  while :
4743  do
4744    cat "conftest.in" "conftest.in" >"conftest.tmp"
4745    mv "conftest.tmp" "conftest.in"
4746    cp "conftest.in" "conftest.nl"
4747    $as_echo '' >> "conftest.nl"
4748    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750    as_fn_arith $ac_count + 1 && ac_count=$as_val
4751    if test $ac_count -gt ${ac_path_SED_max-0}; then
4752      # Best one so far, save it but keep looking for a better one
4753      ac_cv_path_SED="$ac_path_SED"
4754      ac_path_SED_max=$ac_count
4755    fi
4756    # 10*(2^10) chars as input seems more than enough
4757    test $ac_count -gt 10 && break
4758  done
4759  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760esac
4761
4762      $ac_path_SED_found && break 3
4763    done
4764  done
4765  done
4766IFS=$as_save_IFS
4767  if test -z "$ac_cv_path_SED"; then
4768    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4769  fi
4770else
4771  ac_cv_path_SED=$SED
4772fi
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4776$as_echo "$ac_cv_path_SED" >&6; }
4777 SED="$ac_cv_path_SED"
4778  rm -f conftest.sed
4779
4780test -z "$SED" && SED=sed
4781Xsed="$SED -e 1s/^X//"
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4794$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4795if ${ac_cv_path_GREP+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  if test -z "$GREP"; then
4799  ac_path_GREP_found=false
4800  # Loop through the user's path and test for each of PROGNAME-LIST
4801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4803do
4804  IFS=$as_save_IFS
4805  test -z "$as_dir" && as_dir=.
4806    for ac_prog in grep ggrep; do
4807    for ac_exec_ext in '' $ac_executable_extensions; do
4808      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4809      as_fn_executable_p "$ac_path_GREP" || continue
4810# Check for GNU ac_path_GREP and select it if it is found.
4811  # Check for GNU $ac_path_GREP
4812case `"$ac_path_GREP" --version 2>&1` in
4813*GNU*)
4814  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4815*)
4816  ac_count=0
4817  $as_echo_n 0123456789 >"conftest.in"
4818  while :
4819  do
4820    cat "conftest.in" "conftest.in" >"conftest.tmp"
4821    mv "conftest.tmp" "conftest.in"
4822    cp "conftest.in" "conftest.nl"
4823    $as_echo 'GREP' >> "conftest.nl"
4824    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4825    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4826    as_fn_arith $ac_count + 1 && ac_count=$as_val
4827    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4828      # Best one so far, save it but keep looking for a better one
4829      ac_cv_path_GREP="$ac_path_GREP"
4830      ac_path_GREP_max=$ac_count
4831    fi
4832    # 10*(2^10) chars as input seems more than enough
4833    test $ac_count -gt 10 && break
4834  done
4835  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4836esac
4837
4838      $ac_path_GREP_found && break 3
4839    done
4840  done
4841  done
4842IFS=$as_save_IFS
4843  if test -z "$ac_cv_path_GREP"; then
4844    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4845  fi
4846else
4847  ac_cv_path_GREP=$GREP
4848fi
4849
4850fi
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4852$as_echo "$ac_cv_path_GREP" >&6; }
4853 GREP="$ac_cv_path_GREP"
4854
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4857$as_echo_n "checking for egrep... " >&6; }
4858if ${ac_cv_path_EGREP+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4862   then ac_cv_path_EGREP="$GREP -E"
4863   else
4864     if test -z "$EGREP"; then
4865  ac_path_EGREP_found=false
4866  # Loop through the user's path and test for each of PROGNAME-LIST
4867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869do
4870  IFS=$as_save_IFS
4871  test -z "$as_dir" && as_dir=.
4872    for ac_prog in egrep; do
4873    for ac_exec_ext in '' $ac_executable_extensions; do
4874      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4875      as_fn_executable_p "$ac_path_EGREP" || continue
4876# Check for GNU ac_path_EGREP and select it if it is found.
4877  # Check for GNU $ac_path_EGREP
4878case `"$ac_path_EGREP" --version 2>&1` in
4879*GNU*)
4880  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4881*)
4882  ac_count=0
4883  $as_echo_n 0123456789 >"conftest.in"
4884  while :
4885  do
4886    cat "conftest.in" "conftest.in" >"conftest.tmp"
4887    mv "conftest.tmp" "conftest.in"
4888    cp "conftest.in" "conftest.nl"
4889    $as_echo 'EGREP' >> "conftest.nl"
4890    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892    as_fn_arith $ac_count + 1 && ac_count=$as_val
4893    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4894      # Best one so far, save it but keep looking for a better one
4895      ac_cv_path_EGREP="$ac_path_EGREP"
4896      ac_path_EGREP_max=$ac_count
4897    fi
4898    # 10*(2^10) chars as input seems more than enough
4899    test $ac_count -gt 10 && break
4900  done
4901  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902esac
4903
4904      $ac_path_EGREP_found && break 3
4905    done
4906  done
4907  done
4908IFS=$as_save_IFS
4909  if test -z "$ac_cv_path_EGREP"; then
4910    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911  fi
4912else
4913  ac_cv_path_EGREP=$EGREP
4914fi
4915
4916   fi
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4919$as_echo "$ac_cv_path_EGREP" >&6; }
4920 EGREP="$ac_cv_path_EGREP"
4921
4922
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4924$as_echo_n "checking for fgrep... " >&6; }
4925if ${ac_cv_path_FGREP+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4929   then ac_cv_path_FGREP="$GREP -F"
4930   else
4931     if test -z "$FGREP"; then
4932  ac_path_FGREP_found=false
4933  # Loop through the user's path and test for each of PROGNAME-LIST
4934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936do
4937  IFS=$as_save_IFS
4938  test -z "$as_dir" && as_dir=.
4939    for ac_prog in fgrep; do
4940    for ac_exec_ext in '' $ac_executable_extensions; do
4941      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4942      as_fn_executable_p "$ac_path_FGREP" || continue
4943# Check for GNU ac_path_FGREP and select it if it is found.
4944  # Check for GNU $ac_path_FGREP
4945case `"$ac_path_FGREP" --version 2>&1` in
4946*GNU*)
4947  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4948*)
4949  ac_count=0
4950  $as_echo_n 0123456789 >"conftest.in"
4951  while :
4952  do
4953    cat "conftest.in" "conftest.in" >"conftest.tmp"
4954    mv "conftest.tmp" "conftest.in"
4955    cp "conftest.in" "conftest.nl"
4956    $as_echo 'FGREP' >> "conftest.nl"
4957    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959    as_fn_arith $ac_count + 1 && ac_count=$as_val
4960    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4961      # Best one so far, save it but keep looking for a better one
4962      ac_cv_path_FGREP="$ac_path_FGREP"
4963      ac_path_FGREP_max=$ac_count
4964    fi
4965    # 10*(2^10) chars as input seems more than enough
4966    test $ac_count -gt 10 && break
4967  done
4968  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969esac
4970
4971      $ac_path_FGREP_found && break 3
4972    done
4973  done
4974  done
4975IFS=$as_save_IFS
4976  if test -z "$ac_cv_path_FGREP"; then
4977    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978  fi
4979else
4980  ac_cv_path_FGREP=$FGREP
4981fi
4982
4983   fi
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4986$as_echo "$ac_cv_path_FGREP" >&6; }
4987 FGREP="$ac_cv_path_FGREP"
4988
4989
4990test -z "$GREP" && GREP=grep
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010# Check whether --with-gnu-ld was given.
5011if test "${with_gnu_ld+set}" = set; then :
5012  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5013else
5014  with_gnu_ld=no
5015fi
5016
5017ac_prog=ld
5018if test yes = "$GCC"; then
5019  # Check if gcc -print-prog-name=ld gives a path.
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5021$as_echo_n "checking for ld used by $CC... " >&6; }
5022  case $host in
5023  *-*-mingw*)
5024    # gcc leaves a trailing carriage return, which upsets mingw
5025    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5026  *)
5027    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5028  esac
5029  case $ac_prog in
5030    # Accept absolute paths.
5031    [\\/]* | ?:[\\/]*)
5032      re_direlt='/[^/][^/]*/\.\./'
5033      # Canonicalize the pathname of ld
5034      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5035      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5036	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5037      done
5038      test -z "$LD" && LD=$ac_prog
5039      ;;
5040  "")
5041    # If it fails, then pretend we aren't using GCC.
5042    ac_prog=ld
5043    ;;
5044  *)
5045    # If it is relative, then search for the first ld in PATH.
5046    with_gnu_ld=unknown
5047    ;;
5048  esac
5049elif test yes = "$with_gnu_ld"; then
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5051$as_echo_n "checking for GNU ld... " >&6; }
5052else
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5054$as_echo_n "checking for non-GNU ld... " >&6; }
5055fi
5056if ${lt_cv_path_LD+:} false; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059  if test -z "$LD"; then
5060  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5061  for ac_dir in $PATH; do
5062    IFS=$lt_save_ifs
5063    test -z "$ac_dir" && ac_dir=.
5064    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5065      lt_cv_path_LD=$ac_dir/$ac_prog
5066      # Check to see if the program is GNU ld.  I'd rather use --version,
5067      # but apparently some variants of GNU ld only accept -v.
5068      # Break only if it was the GNU/non-GNU ld that we prefer.
5069      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5070      *GNU* | *'with BFD'*)
5071	test no != "$with_gnu_ld" && break
5072	;;
5073      *)
5074	test yes != "$with_gnu_ld" && break
5075	;;
5076      esac
5077    fi
5078  done
5079  IFS=$lt_save_ifs
5080else
5081  lt_cv_path_LD=$LD # Let the user override the test with a path.
5082fi
5083fi
5084
5085LD=$lt_cv_path_LD
5086if test -n "$LD"; then
5087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5088$as_echo "$LD" >&6; }
5089else
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5095$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5096if ${lt_cv_prog_gnu_ld+:} false; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5100case `$LD -v 2>&1 </dev/null` in
5101*GNU* | *'with BFD'*)
5102  lt_cv_prog_gnu_ld=yes
5103  ;;
5104*)
5105  lt_cv_prog_gnu_ld=no
5106  ;;
5107esac
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5110$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5111with_gnu_ld=$lt_cv_prog_gnu_ld
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5122$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5123if ${lt_cv_path_NM+:} false; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126  if test -n "$NM"; then
5127  # Let the user override the test.
5128  lt_cv_path_NM=$NM
5129else
5130  lt_nm_to_check=${ac_tool_prefix}nm
5131  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5132    lt_nm_to_check="$lt_nm_to_check nm"
5133  fi
5134  for lt_tmp_nm in $lt_nm_to_check; do
5135    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5136    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5137      IFS=$lt_save_ifs
5138      test -z "$ac_dir" && ac_dir=.
5139      tmp_nm=$ac_dir/$lt_tmp_nm
5140      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5141	# Check to see if the nm accepts a BSD-compat flag.
5142	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5143	#   nm: unknown option "B" ignored
5144	# Tru64's nm complains that /dev/null is an invalid object file
5145	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5146	case $build_os in
5147	mingw*) lt_bad_file=conftest.nm/nofile ;;
5148	*) lt_bad_file=/dev/null ;;
5149	esac
5150	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5151	*$lt_bad_file* | *'Invalid file or object type'*)
5152	  lt_cv_path_NM="$tmp_nm -B"
5153	  break 2
5154	  ;;
5155	*)
5156	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5157	  */dev/null*)
5158	    lt_cv_path_NM="$tmp_nm -p"
5159	    break 2
5160	    ;;
5161	  *)
5162	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5163	    continue # so that we can try to find one that supports BSD flags
5164	    ;;
5165	  esac
5166	  ;;
5167	esac
5168      fi
5169    done
5170    IFS=$lt_save_ifs
5171  done
5172  : ${lt_cv_path_NM=no}
5173fi
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5176$as_echo "$lt_cv_path_NM" >&6; }
5177if test no != "$lt_cv_path_NM"; then
5178  NM=$lt_cv_path_NM
5179else
5180  # Didn't find any BSD compatible name lister, look for dumpbin.
5181  if test -n "$DUMPBIN"; then :
5182    # Let the user override the test.
5183  else
5184    if test -n "$ac_tool_prefix"; then
5185  for ac_prog in dumpbin "link -dump"
5186  do
5187    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if ${ac_cv_prog_DUMPBIN+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test -n "$DUMPBIN"; then
5195  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200  IFS=$as_save_IFS
5201  test -z "$as_dir" && as_dir=.
5202    for ac_exec_ext in '' $ac_executable_extensions; do
5203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206    break 2
5207  fi
5208done
5209  done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214DUMPBIN=$ac_cv_prog_DUMPBIN
5215if test -n "$DUMPBIN"; then
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5217$as_echo "$DUMPBIN" >&6; }
5218else
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223
5224    test -n "$DUMPBIN" && break
5225  done
5226fi
5227if test -z "$DUMPBIN"; then
5228  ac_ct_DUMPBIN=$DUMPBIN
5229  for ac_prog in dumpbin "link -dump"
5230do
5231  # Extract the first word of "$ac_prog", so it can be a program name with args.
5232set dummy $ac_prog; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$ac_ct_DUMPBIN"; then
5239  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5259if test -n "$ac_ct_DUMPBIN"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5261$as_echo "$ac_ct_DUMPBIN" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268  test -n "$ac_ct_DUMPBIN" && break
5269done
5270
5271  if test "x$ac_ct_DUMPBIN" = x; then
5272    DUMPBIN=":"
5273  else
5274    case $cross_compiling:$ac_tool_warned in
5275yes:)
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278ac_tool_warned=yes ;;
5279esac
5280    DUMPBIN=$ac_ct_DUMPBIN
5281  fi
5282fi
5283
5284    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5285    *COFF*)
5286      DUMPBIN="$DUMPBIN -symbols -headers"
5287      ;;
5288    *)
5289      DUMPBIN=:
5290      ;;
5291    esac
5292  fi
5293
5294  if test : != "$DUMPBIN"; then
5295    NM=$DUMPBIN
5296  fi
5297fi
5298test -z "$NM" && NM=nm
5299
5300
5301
5302
5303
5304
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5306$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5307if ${lt_cv_nm_interface+:} false; then :
5308  $as_echo_n "(cached) " >&6
5309else
5310  lt_cv_nm_interface="BSD nm"
5311  echo "int some_variable = 0;" > conftest.$ac_ext
5312  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5313  (eval "$ac_compile" 2>conftest.err)
5314  cat conftest.err >&5
5315  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5316  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5317  cat conftest.err >&5
5318  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5319  cat conftest.out >&5
5320  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5321    lt_cv_nm_interface="MS dumpbin"
5322  fi
5323  rm -f conftest*
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5326$as_echo "$lt_cv_nm_interface" >&6; }
5327
5328# find the maximum length of command line arguments
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5330$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5331if ${lt_cv_sys_max_cmd_len+:} false; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334    i=0
5335  teststring=ABCD
5336
5337  case $build_os in
5338  msdosdjgpp*)
5339    # On DJGPP, this test can blow up pretty badly due to problems in libc
5340    # (any single argument exceeding 2000 bytes causes a buffer overrun
5341    # during glob expansion).  Even if it were fixed, the result of this
5342    # check would be larger than it should be.
5343    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5344    ;;
5345
5346  gnu*)
5347    # Under GNU Hurd, this test is not required because there is
5348    # no limit to the length of command line arguments.
5349    # Libtool will interpret -1 as no limit whatsoever
5350    lt_cv_sys_max_cmd_len=-1;
5351    ;;
5352
5353  cygwin* | mingw* | cegcc*)
5354    # On Win9x/ME, this test blows up -- it succeeds, but takes
5355    # about 5 minutes as the teststring grows exponentially.
5356    # Worse, since 9x/ME are not pre-emptively multitasking,
5357    # you end up with a "frozen" computer, even though with patience
5358    # the test eventually succeeds (with a max line length of 256k).
5359    # Instead, let's just punt: use the minimum linelength reported by
5360    # all of the supported platforms: 8192 (on NT/2K/XP).
5361    lt_cv_sys_max_cmd_len=8192;
5362    ;;
5363
5364  mint*)
5365    # On MiNT this can take a long time and run out of memory.
5366    lt_cv_sys_max_cmd_len=8192;
5367    ;;
5368
5369  mint*)
5370    # On MiNT this can take a long time and run out of memory.
5371    lt_cv_sys_max_cmd_len=8192;
5372    ;;
5373
5374  amigaos*)
5375    # On AmigaOS with pdksh, this test takes hours, literally.
5376    # So we just punt and use a minimum line length of 8192.
5377    lt_cv_sys_max_cmd_len=8192;
5378    ;;
5379
5380  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5381    # This has been around since 386BSD, at least.  Likely further.
5382    if test -x /sbin/sysctl; then
5383      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5384    elif test -x /usr/sbin/sysctl; then
5385      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5386    else
5387      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5388    fi
5389    # And add a safety zone
5390    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5391    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5392    ;;
5393
5394  interix*)
5395    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5396    lt_cv_sys_max_cmd_len=196608
5397    ;;
5398
5399  os2*)
5400    # The test takes a long time on OS/2.
5401    lt_cv_sys_max_cmd_len=8192
5402    ;;
5403
5404  osf*)
5405    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5406    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5407    # nice to cause kernel panics so lets avoid the loop below.
5408    # First set a reasonable default.
5409    lt_cv_sys_max_cmd_len=16384
5410    #
5411    if test -x /sbin/sysconfig; then
5412      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5413        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5414      esac
5415    fi
5416    ;;
5417  sco3.2v5*)
5418    lt_cv_sys_max_cmd_len=102400
5419    ;;
5420  sysv5* | sco5v6* | sysv4.2uw2*)
5421    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5422    if test -n "$kargmax"; then
5423      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5424    else
5425      lt_cv_sys_max_cmd_len=32768
5426    fi
5427    ;;
5428  *)
5429    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5430    if test -n "$lt_cv_sys_max_cmd_len" && \
5431       test undefined != "$lt_cv_sys_max_cmd_len"; then
5432      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5433      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5434    else
5435      # Make teststring a little bigger before we do anything with it.
5436      # a 1K string should be a reasonable start.
5437      for i in 1 2 3 4 5 6 7 8; do
5438        teststring=$teststring$teststring
5439      done
5440      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5441      # If test is not a shell built-in, we'll probably end up computing a
5442      # maximum length that is only half of the actual maximum length, but
5443      # we can't tell.
5444      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5445	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5446	      test 17 != "$i" # 1/2 MB should be enough
5447      do
5448        i=`expr $i + 1`
5449        teststring=$teststring$teststring
5450      done
5451      # Only check the string length outside the loop.
5452      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5453      teststring=
5454      # Add a significant safety factor because C++ compilers can tack on
5455      # massive amounts of additional arguments before passing them to the
5456      # linker.  It appears as though 1/2 is a usable value.
5457      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5458    fi
5459    ;;
5460  esac
5461
5462fi
5463
5464if test -n "$lt_cv_sys_max_cmd_len"; then
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5466$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5467else
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5469$as_echo "none" >&6; }
5470fi
5471max_cmd_len=$lt_cv_sys_max_cmd_len
5472
5473
5474
5475
5476
5477
5478: ${CP="cp -f"}
5479: ${MV="mv -f"}
5480: ${RM="rm -f"}
5481
5482if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5483  lt_unset=unset
5484else
5485  lt_unset=false
5486fi
5487
5488
5489
5490
5491
5492# test EBCDIC or ASCII
5493case `echo X|tr X '\101'` in
5494 A) # ASCII based system
5495    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5496  lt_SP2NL='tr \040 \012'
5497  lt_NL2SP='tr \015\012 \040\040'
5498  ;;
5499 *) # EBCDIC based system
5500  lt_SP2NL='tr \100 \n'
5501  lt_NL2SP='tr \r\n \100\100'
5502  ;;
5503esac
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5514$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5515if ${lt_cv_to_host_file_cmd+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  case $host in
5519  *-*-mingw* )
5520    case $build in
5521      *-*-mingw* ) # actually msys
5522        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5523        ;;
5524      *-*-cygwin* )
5525        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5526        ;;
5527      * ) # otherwise, assume *nix
5528        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5529        ;;
5530    esac
5531    ;;
5532  *-*-cygwin* )
5533    case $build in
5534      *-*-mingw* ) # actually msys
5535        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5536        ;;
5537      *-*-cygwin* )
5538        lt_cv_to_host_file_cmd=func_convert_file_noop
5539        ;;
5540      * ) # otherwise, assume *nix
5541        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5542        ;;
5543    esac
5544    ;;
5545  * ) # unhandled hosts (and "normal" native builds)
5546    lt_cv_to_host_file_cmd=func_convert_file_noop
5547    ;;
5548esac
5549
5550fi
5551
5552to_host_file_cmd=$lt_cv_to_host_file_cmd
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5554$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5555
5556
5557
5558
5559
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5561$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5562if ${lt_cv_to_tool_file_cmd+:} false; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565  #assume ordinary cross tools, or native build.
5566lt_cv_to_tool_file_cmd=func_convert_file_noop
5567case $host in
5568  *-*-mingw* )
5569    case $build in
5570      *-*-mingw* ) # actually msys
5571        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5572        ;;
5573    esac
5574    ;;
5575esac
5576
5577fi
5578
5579to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5581$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5582
5583
5584
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5588$as_echo_n "checking for $LD option to reload object files... " >&6; }
5589if ${lt_cv_ld_reload_flag+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  lt_cv_ld_reload_flag='-r'
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5595$as_echo "$lt_cv_ld_reload_flag" >&6; }
5596reload_flag=$lt_cv_ld_reload_flag
5597case $reload_flag in
5598"" | " "*) ;;
5599*) reload_flag=" $reload_flag" ;;
5600esac
5601reload_cmds='$LD$reload_flag -o $output$reload_objs'
5602case $host_os in
5603  cygwin* | mingw* | pw32* | cegcc*)
5604    if test yes != "$GCC"; then
5605      reload_cmds=false
5606    fi
5607    ;;
5608  darwin*)
5609    if test yes = "$GCC"; then
5610      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5611    else
5612      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5613    fi
5614    ;;
5615esac
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625if test -n "$ac_tool_prefix"; then
5626  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5627set dummy ${ac_tool_prefix}objdump; ac_word=$2
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629$as_echo_n "checking for $ac_word... " >&6; }
5630if ${ac_cv_prog_OBJDUMP+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  if test -n "$OBJDUMP"; then
5634  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5635else
5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637for as_dir in $PATH
5638do
5639  IFS=$as_save_IFS
5640  test -z "$as_dir" && as_dir=.
5641    for ac_exec_ext in '' $ac_executable_extensions; do
5642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645    break 2
5646  fi
5647done
5648  done
5649IFS=$as_save_IFS
5650
5651fi
5652fi
5653OBJDUMP=$ac_cv_prog_OBJDUMP
5654if test -n "$OBJDUMP"; then
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5656$as_echo "$OBJDUMP" >&6; }
5657else
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659$as_echo "no" >&6; }
5660fi
5661
5662
5663fi
5664if test -z "$ac_cv_prog_OBJDUMP"; then
5665  ac_ct_OBJDUMP=$OBJDUMP
5666  # Extract the first word of "objdump", so it can be a program name with args.
5667set dummy objdump; ac_word=$2
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669$as_echo_n "checking for $ac_word... " >&6; }
5670if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  if test -n "$ac_ct_OBJDUMP"; then
5674  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679  IFS=$as_save_IFS
5680  test -z "$as_dir" && as_dir=.
5681    for ac_exec_ext in '' $ac_executable_extensions; do
5682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688  done
5689IFS=$as_save_IFS
5690
5691fi
5692fi
5693ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5694if test -n "$ac_ct_OBJDUMP"; then
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5696$as_echo "$ac_ct_OBJDUMP" >&6; }
5697else
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700fi
5701
5702  if test "x$ac_ct_OBJDUMP" = x; then
5703    OBJDUMP="false"
5704  else
5705    case $cross_compiling:$ac_tool_warned in
5706yes:)
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709ac_tool_warned=yes ;;
5710esac
5711    OBJDUMP=$ac_ct_OBJDUMP
5712  fi
5713else
5714  OBJDUMP="$ac_cv_prog_OBJDUMP"
5715fi
5716
5717test -z "$OBJDUMP" && OBJDUMP=objdump
5718
5719
5720
5721
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5725$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5726if ${lt_cv_deplibs_check_method+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  lt_cv_file_magic_cmd='$MAGIC_CMD'
5730lt_cv_file_magic_test_file=
5731lt_cv_deplibs_check_method='unknown'
5732# Need to set the preceding variable on all platforms that support
5733# interlibrary dependencies.
5734# 'none' -- dependencies not supported.
5735# 'unknown' -- same as none, but documents that we really don't know.
5736# 'pass_all' -- all dependencies passed with no checks.
5737# 'test_compile' -- check by making test program.
5738# 'file_magic [[regex]]' -- check by looking for files in library path
5739# that responds to the $file_magic_cmd with a given extended regex.
5740# If you have 'file' or equivalent on your system and you're not sure
5741# whether 'pass_all' will *always* work, you probably want this one.
5742
5743case $host_os in
5744aix[4-9]*)
5745  lt_cv_deplibs_check_method=pass_all
5746  ;;
5747
5748beos*)
5749  lt_cv_deplibs_check_method=pass_all
5750  ;;
5751
5752bsdi[45]*)
5753  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5754  lt_cv_file_magic_cmd='/usr/bin/file -L'
5755  lt_cv_file_magic_test_file=/shlib/libc.so
5756  ;;
5757
5758cygwin*)
5759  # func_win32_libid is a shell function defined in ltmain.sh
5760  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5761  lt_cv_file_magic_cmd='func_win32_libid'
5762  ;;
5763
5764mingw* | pw32*)
5765  # Base MSYS/MinGW do not provide the 'file' command needed by
5766  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5767  # unless we find 'file', for example because we are cross-compiling.
5768  if ( file / ) >/dev/null 2>&1; then
5769    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5770    lt_cv_file_magic_cmd='func_win32_libid'
5771  else
5772    # Keep this pattern in sync with the one in func_win32_libid.
5773    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5774    lt_cv_file_magic_cmd='$OBJDUMP -f'
5775  fi
5776  ;;
5777
5778cegcc*)
5779  # use the weaker test based on 'objdump'. See mingw*.
5780  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5781  lt_cv_file_magic_cmd='$OBJDUMP -f'
5782  ;;
5783
5784darwin* | rhapsody*)
5785  lt_cv_deplibs_check_method=pass_all
5786  ;;
5787
5788freebsd* | dragonfly*)
5789  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5790    case $host_cpu in
5791    i*86 )
5792      # Not sure whether the presence of OpenBSD here was a mistake.
5793      # Let's accept both of them until this is cleared up.
5794      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5795      lt_cv_file_magic_cmd=/usr/bin/file
5796      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5797      ;;
5798    esac
5799  else
5800    lt_cv_deplibs_check_method=pass_all
5801  fi
5802  ;;
5803
5804haiku*)
5805  lt_cv_deplibs_check_method=pass_all
5806  ;;
5807
5808hpux10.20* | hpux11*)
5809  lt_cv_file_magic_cmd=/usr/bin/file
5810  case $host_cpu in
5811  ia64*)
5812    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5813    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5814    ;;
5815  hppa*64*)
5816    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]'
5817    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5818    ;;
5819  *)
5820    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5821    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5822    ;;
5823  esac
5824  ;;
5825
5826interix[3-9]*)
5827  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5828  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5829  ;;
5830
5831irix5* | irix6* | nonstopux*)
5832  case $LD in
5833  *-32|*"-32 ") libmagic=32-bit;;
5834  *-n32|*"-n32 ") libmagic=N32;;
5835  *-64|*"-64 ") libmagic=64-bit;;
5836  *) libmagic=never-match;;
5837  esac
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841# This must be glibc/ELF.
5842linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846netbsd*)
5847  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5848    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5849  else
5850    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5851  fi
5852  ;;
5853
5854newos6*)
5855  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5856  lt_cv_file_magic_cmd=/usr/bin/file
5857  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5858  ;;
5859
5860*nto* | *qnx*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863
5864openbsd* | bitrig*)
5865  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5866    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5867  else
5868    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5869  fi
5870  ;;
5871
5872osf3* | osf4* | osf5*)
5873  lt_cv_deplibs_check_method=pass_all
5874  ;;
5875
5876rdos*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880solaris*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888sysv4 | sysv4.3*)
5889  case $host_vendor in
5890  motorola)
5891    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]'
5892    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5893    ;;
5894  ncr)
5895    lt_cv_deplibs_check_method=pass_all
5896    ;;
5897  sequent)
5898    lt_cv_file_magic_cmd='/bin/file'
5899    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5900    ;;
5901  sni)
5902    lt_cv_file_magic_cmd='/bin/file'
5903    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5904    lt_cv_file_magic_test_file=/lib/libc.so
5905    ;;
5906  siemens)
5907    lt_cv_deplibs_check_method=pass_all
5908    ;;
5909  pc)
5910    lt_cv_deplibs_check_method=pass_all
5911    ;;
5912  esac
5913  ;;
5914
5915tpf*)
5916  lt_cv_deplibs_check_method=pass_all
5917  ;;
5918os2*)
5919  lt_cv_deplibs_check_method=pass_all
5920  ;;
5921esac
5922
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5925$as_echo "$lt_cv_deplibs_check_method" >&6; }
5926
5927file_magic_glob=
5928want_nocaseglob=no
5929if test "$build" = "$host"; then
5930  case $host_os in
5931  mingw* | pw32*)
5932    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5933      want_nocaseglob=yes
5934    else
5935      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5936    fi
5937    ;;
5938  esac
5939fi
5940
5941file_magic_cmd=$lt_cv_file_magic_cmd
5942deplibs_check_method=$lt_cv_deplibs_check_method
5943test -z "$deplibs_check_method" && deplibs_check_method=unknown
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966if test -n "$ac_tool_prefix"; then
5967  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5968set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if ${ac_cv_prog_DLLTOOL+:} false; then :
5972  $as_echo_n "(cached) " >&6
5973else
5974  if test -n "$DLLTOOL"; then
5975  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980  IFS=$as_save_IFS
5981  test -z "$as_dir" && as_dir=.
5982    for ac_exec_ext in '' $ac_executable_extensions; do
5983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986    break 2
5987  fi
5988done
5989  done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994DLLTOOL=$ac_cv_prog_DLLTOOL
5995if test -n "$DLLTOOL"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5997$as_echo "$DLLTOOL" >&6; }
5998else
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004fi
6005if test -z "$ac_cv_prog_DLLTOOL"; then
6006  ac_ct_DLLTOOL=$DLLTOOL
6007  # Extract the first word of "dlltool", so it can be a program name with args.
6008set dummy dlltool; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
6011if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  if test -n "$ac_ct_DLLTOOL"; then
6015  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020  IFS=$as_save_IFS
6021  test -z "$as_dir" && as_dir=.
6022    for ac_exec_ext in '' $ac_executable_extensions; do
6023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026    break 2
6027  fi
6028done
6029  done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6035if test -n "$ac_ct_DLLTOOL"; then
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6037$as_echo "$ac_ct_DLLTOOL" >&6; }
6038else
6039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043  if test "x$ac_ct_DLLTOOL" = x; then
6044    DLLTOOL="false"
6045  else
6046    case $cross_compiling:$ac_tool_warned in
6047yes:)
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050ac_tool_warned=yes ;;
6051esac
6052    DLLTOOL=$ac_ct_DLLTOOL
6053  fi
6054else
6055  DLLTOOL="$ac_cv_prog_DLLTOOL"
6056fi
6057
6058test -z "$DLLTOOL" && DLLTOOL=dlltool
6059
6060
6061
6062
6063
6064
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6067$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6068if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  lt_cv_sharedlib_from_linklib_cmd='unknown'
6072
6073case $host_os in
6074cygwin* | mingw* | pw32* | cegcc*)
6075  # two different shell functions defined in ltmain.sh;
6076  # decide which one to use based on capabilities of $DLLTOOL
6077  case `$DLLTOOL --help 2>&1` in
6078  *--identify-strict*)
6079    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6080    ;;
6081  *)
6082    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6083    ;;
6084  esac
6085  ;;
6086*)
6087  # fallback: assume linklib IS sharedlib
6088  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6089  ;;
6090esac
6091
6092fi
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6094$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6095sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6096test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6097
6098
6099
6100
6101
6102
6103
6104if test -n "$ac_tool_prefix"; then
6105  for ac_prog in ar
6106  do
6107    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6108set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
6111if ${ac_cv_prog_AR+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  if test -n "$AR"; then
6115  ac_cv_prog_AR="$AR" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120  IFS=$as_save_IFS
6121  test -z "$as_dir" && as_dir=.
6122    for ac_exec_ext in '' $ac_executable_extensions; do
6123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126    break 2
6127  fi
6128done
6129  done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134AR=$ac_cv_prog_AR
6135if test -n "$AR"; then
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6137$as_echo "$AR" >&6; }
6138else
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143
6144    test -n "$AR" && break
6145  done
6146fi
6147if test -z "$AR"; then
6148  ac_ct_AR=$AR
6149  for ac_prog in ar
6150do
6151  # Extract the first word of "$ac_prog", so it can be a program name with args.
6152set dummy $ac_prog; ac_word=$2
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if ${ac_cv_prog_ac_ct_AR+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158  if test -n "$ac_ct_AR"; then
6159  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164  IFS=$as_save_IFS
6165  test -z "$as_dir" && as_dir=.
6166    for ac_exec_ext in '' $ac_executable_extensions; do
6167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168    ac_cv_prog_ac_ct_AR="$ac_prog"
6169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170    break 2
6171  fi
6172done
6173  done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178ac_ct_AR=$ac_cv_prog_ac_ct_AR
6179if test -n "$ac_ct_AR"; then
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6181$as_echo "$ac_ct_AR" >&6; }
6182else
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185fi
6186
6187
6188  test -n "$ac_ct_AR" && break
6189done
6190
6191  if test "x$ac_ct_AR" = x; then
6192    AR="false"
6193  else
6194    case $cross_compiling:$ac_tool_warned in
6195yes:)
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198ac_tool_warned=yes ;;
6199esac
6200    AR=$ac_ct_AR
6201  fi
6202fi
6203
6204: ${AR=ar}
6205: ${AR_FLAGS=cru}
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6218$as_echo_n "checking for archiver @FILE support... " >&6; }
6219if ${lt_cv_ar_at_file+:} false; then :
6220  $as_echo_n "(cached) " >&6
6221else
6222  lt_cv_ar_at_file=no
6223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h.  */
6225
6226int
6227main ()
6228{
6229
6230  ;
6231  return 0;
6232}
6233_ACEOF
6234if ac_fn_c_try_compile "$LINENO"; then :
6235  echo conftest.$ac_objext > conftest.lst
6236      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6237      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6238  (eval $lt_ar_try) 2>&5
6239  ac_status=$?
6240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6241  test $ac_status = 0; }
6242      if test 0 -eq "$ac_status"; then
6243	# Ensure the archiver fails upon bogus file names.
6244	rm -f conftest.$ac_objext libconftest.a
6245	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6246  (eval $lt_ar_try) 2>&5
6247  ac_status=$?
6248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249  test $ac_status = 0; }
6250	if test 0 -ne "$ac_status"; then
6251          lt_cv_ar_at_file=@
6252        fi
6253      fi
6254      rm -f conftest.* libconftest.a
6255
6256fi
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258
6259fi
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6261$as_echo "$lt_cv_ar_at_file" >&6; }
6262
6263if test no = "$lt_cv_ar_at_file"; then
6264  archiver_list_spec=
6265else
6266  archiver_list_spec=$lt_cv_ar_at_file
6267fi
6268
6269
6270
6271
6272
6273
6274
6275if test -n "$ac_tool_prefix"; then
6276  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6277set dummy ${ac_tool_prefix}strip; ac_word=$2
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279$as_echo_n "checking for $ac_word... " >&6; }
6280if ${ac_cv_prog_STRIP+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  if test -n "$STRIP"; then
6284  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6285else
6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289  IFS=$as_save_IFS
6290  test -z "$as_dir" && as_dir=.
6291    for ac_exec_ext in '' $ac_executable_extensions; do
6292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295    break 2
6296  fi
6297done
6298  done
6299IFS=$as_save_IFS
6300
6301fi
6302fi
6303STRIP=$ac_cv_prog_STRIP
6304if test -n "$STRIP"; then
6305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6306$as_echo "$STRIP" >&6; }
6307else
6308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309$as_echo "no" >&6; }
6310fi
6311
6312
6313fi
6314if test -z "$ac_cv_prog_STRIP"; then
6315  ac_ct_STRIP=$STRIP
6316  # Extract the first word of "strip", so it can be a program name with args.
6317set dummy strip; ac_word=$2
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319$as_echo_n "checking for $ac_word... " >&6; }
6320if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6321  $as_echo_n "(cached) " >&6
6322else
6323  if test -n "$ac_ct_STRIP"; then
6324  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6325else
6326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329  IFS=$as_save_IFS
6330  test -z "$as_dir" && as_dir=.
6331    for ac_exec_ext in '' $ac_executable_extensions; do
6332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333    ac_cv_prog_ac_ct_STRIP="strip"
6334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335    break 2
6336  fi
6337done
6338  done
6339IFS=$as_save_IFS
6340
6341fi
6342fi
6343ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6344if test -n "$ac_ct_STRIP"; then
6345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6346$as_echo "$ac_ct_STRIP" >&6; }
6347else
6348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349$as_echo "no" >&6; }
6350fi
6351
6352  if test "x$ac_ct_STRIP" = x; then
6353    STRIP=":"
6354  else
6355    case $cross_compiling:$ac_tool_warned in
6356yes:)
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6359ac_tool_warned=yes ;;
6360esac
6361    STRIP=$ac_ct_STRIP
6362  fi
6363else
6364  STRIP="$ac_cv_prog_STRIP"
6365fi
6366
6367test -z "$STRIP" && STRIP=:
6368
6369
6370
6371
6372
6373
6374if test -n "$ac_tool_prefix"; then
6375  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6376set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378$as_echo_n "checking for $ac_word... " >&6; }
6379if ${ac_cv_prog_RANLIB+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  if test -n "$RANLIB"; then
6383  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6384else
6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386for as_dir in $PATH
6387do
6388  IFS=$as_save_IFS
6389  test -z "$as_dir" && as_dir=.
6390    for ac_exec_ext in '' $ac_executable_extensions; do
6391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394    break 2
6395  fi
6396done
6397  done
6398IFS=$as_save_IFS
6399
6400fi
6401fi
6402RANLIB=$ac_cv_prog_RANLIB
6403if test -n "$RANLIB"; then
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6405$as_echo "$RANLIB" >&6; }
6406else
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
6410
6411
6412fi
6413if test -z "$ac_cv_prog_RANLIB"; then
6414  ac_ct_RANLIB=$RANLIB
6415  # Extract the first word of "ranlib", so it can be a program name with args.
6416set dummy ranlib; ac_word=$2
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418$as_echo_n "checking for $ac_word... " >&6; }
6419if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6420  $as_echo_n "(cached) " >&6
6421else
6422  if test -n "$ac_ct_RANLIB"; then
6423  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6424else
6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428  IFS=$as_save_IFS
6429  test -z "$as_dir" && as_dir=.
6430    for ac_exec_ext in '' $ac_executable_extensions; do
6431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432    ac_cv_prog_ac_ct_RANLIB="ranlib"
6433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434    break 2
6435  fi
6436done
6437  done
6438IFS=$as_save_IFS
6439
6440fi
6441fi
6442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6443if test -n "$ac_ct_RANLIB"; then
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6445$as_echo "$ac_ct_RANLIB" >&6; }
6446else
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448$as_echo "no" >&6; }
6449fi
6450
6451  if test "x$ac_ct_RANLIB" = x; then
6452    RANLIB=":"
6453  else
6454    case $cross_compiling:$ac_tool_warned in
6455yes:)
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458ac_tool_warned=yes ;;
6459esac
6460    RANLIB=$ac_ct_RANLIB
6461  fi
6462else
6463  RANLIB="$ac_cv_prog_RANLIB"
6464fi
6465
6466test -z "$RANLIB" && RANLIB=:
6467
6468
6469
6470
6471
6472
6473# Determine commands to create old-style static archives.
6474old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6475old_postinstall_cmds='chmod 644 $oldlib'
6476old_postuninstall_cmds=
6477
6478if test -n "$RANLIB"; then
6479  case $host_os in
6480  bitrig* | openbsd*)
6481    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6482    ;;
6483  *)
6484    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6485    ;;
6486  esac
6487  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6488fi
6489
6490case $host_os in
6491  darwin*)
6492    lock_old_archive_extraction=yes ;;
6493  *)
6494    lock_old_archive_extraction=no ;;
6495esac
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535# If no C compiler was specified, use CC.
6536LTCC=${LTCC-"$CC"}
6537
6538# If no C compiler flags were specified, use CFLAGS.
6539LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6540
6541# Allow CC to be a program name with arguments.
6542compiler=$CC
6543
6544
6545# Check for command to grab the raw symbol name followed by C symbol from nm.
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6547$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6548if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551
6552# These are sane defaults that work on at least a few old systems.
6553# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6554
6555# Character class describing NM global symbol codes.
6556symcode='[BCDEGRST]'
6557
6558# Regexp to match symbols that can be accessed directly from C.
6559sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6560
6561# Define system-specific variables.
6562case $host_os in
6563aix*)
6564  symcode='[BCDT]'
6565  ;;
6566cygwin* | mingw* | pw32* | cegcc*)
6567  symcode='[ABCDGISTW]'
6568  ;;
6569hpux*)
6570  if test ia64 = "$host_cpu"; then
6571    symcode='[ABCDEGRST]'
6572  fi
6573  ;;
6574irix* | nonstopux*)
6575  symcode='[BCDEGRST]'
6576  ;;
6577osf*)
6578  symcode='[BCDEGQRST]'
6579  ;;
6580solaris*)
6581  symcode='[BDRT]'
6582  ;;
6583sco3.2v5*)
6584  symcode='[DT]'
6585  ;;
6586sysv4.2uw2*)
6587  symcode='[DT]'
6588  ;;
6589sysv5* | sco5v6* | unixware* | OpenUNIX*)
6590  symcode='[ABDT]'
6591  ;;
6592sysv4)
6593  symcode='[DFNSTU]'
6594  ;;
6595esac
6596
6597# If we're using GNU nm, then use its standard symbol codes.
6598case `$NM -V 2>&1` in
6599*GNU* | *'with BFD'*)
6600  symcode='[ABCDGIRSTW]' ;;
6601esac
6602
6603if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6604  # Gets list of data symbols to import.
6605  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6606  # Adjust the below global symbol transforms to fixup imported variables.
6607  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6608  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6609  lt_c_name_lib_hook="\
6610  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6611  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6612else
6613  # Disable hooks by default.
6614  lt_cv_sys_global_symbol_to_import=
6615  lt_cdecl_hook=
6616  lt_c_name_hook=
6617  lt_c_name_lib_hook=
6618fi
6619
6620# Transform an extracted symbol line into a proper C declaration.
6621# Some systems (esp. on ia64) link data and code symbols differently,
6622# so use this general approach.
6623lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6624$lt_cdecl_hook\
6625" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6626" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6627
6628# Transform an extracted symbol line into symbol name and symbol address
6629lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6630$lt_c_name_hook\
6631" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6632" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6633
6634# Transform an extracted symbol line into symbol name with lib prefix and
6635# symbol address.
6636lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6637$lt_c_name_lib_hook\
6638" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6639" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6640" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6641
6642# Handle CRLF in mingw tool chain
6643opt_cr=
6644case $build_os in
6645mingw*)
6646  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6647  ;;
6648esac
6649
6650# Try without a prefix underscore, then with it.
6651for ac_symprfx in "" "_"; do
6652
6653  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6654  symxfrm="\\1 $ac_symprfx\\2 \\2"
6655
6656  # Write the raw and C identifiers.
6657  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6658    # Fake it for dumpbin and say T for any non-static function,
6659    # D for any global variable and I for any imported variable.
6660    # Also find C++ and __fastcall symbols from MSVC++,
6661    # which start with @ or ?.
6662    lt_cv_sys_global_symbol_pipe="$AWK '"\
6663"     {last_section=section; section=\$ 3};"\
6664"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6665"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6666"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6667"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6668"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6669"     \$ 0!~/External *\|/{next};"\
6670"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6671"     {if(hide[section]) next};"\
6672"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6673"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6674"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6675"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6676"     ' prfx=^$ac_symprfx"
6677  else
6678    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6679  fi
6680  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6681
6682  # Check to see that the pipe works correctly.
6683  pipe_works=no
6684
6685  rm -f conftest*
6686  cat > conftest.$ac_ext <<_LT_EOF
6687#ifdef __cplusplus
6688extern "C" {
6689#endif
6690char nm_test_var;
6691void nm_test_func(void);
6692void nm_test_func(void){}
6693#ifdef __cplusplus
6694}
6695#endif
6696int main(){nm_test_var='a';nm_test_func();return(0);}
6697_LT_EOF
6698
6699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700  (eval $ac_compile) 2>&5
6701  ac_status=$?
6702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703  test $ac_status = 0; }; then
6704    # Now try to grab the symbols.
6705    nlist=conftest.nm
6706    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6707  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6708  ac_status=$?
6709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710  test $ac_status = 0; } && test -s "$nlist"; then
6711      # Try sorting and uniquifying the output.
6712      if sort "$nlist" | uniq > "$nlist"T; then
6713	mv -f "$nlist"T "$nlist"
6714      else
6715	rm -f "$nlist"T
6716      fi
6717
6718      # Make sure that we snagged all the symbols we need.
6719      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6720	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6721	  cat <<_LT_EOF > conftest.$ac_ext
6722/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6723#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6724/* DATA imports from DLLs on WIN32 can't be const, because runtime
6725   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6726# define LT_DLSYM_CONST
6727#elif defined __osf__
6728/* This system does not cope well with relocations in const data.  */
6729# define LT_DLSYM_CONST
6730#else
6731# define LT_DLSYM_CONST const
6732#endif
6733
6734#ifdef __cplusplus
6735extern "C" {
6736#endif
6737
6738_LT_EOF
6739	  # Now generate the symbol file.
6740	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6741
6742	  cat <<_LT_EOF >> conftest.$ac_ext
6743
6744/* The mapping between symbol names and symbols.  */
6745LT_DLSYM_CONST struct {
6746  const char *name;
6747  void       *address;
6748}
6749lt__PROGRAM__LTX_preloaded_symbols[] =
6750{
6751  { "@PROGRAM@", (void *) 0 },
6752_LT_EOF
6753	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6754	  cat <<\_LT_EOF >> conftest.$ac_ext
6755  {0, (void *) 0}
6756};
6757
6758/* This works around a problem in FreeBSD linker */
6759#ifdef FREEBSD_WORKAROUND
6760static const void *lt_preloaded_setup() {
6761  return lt__PROGRAM__LTX_preloaded_symbols;
6762}
6763#endif
6764
6765#ifdef __cplusplus
6766}
6767#endif
6768_LT_EOF
6769	  # Now try linking the two files.
6770	  mv conftest.$ac_objext conftstm.$ac_objext
6771	  lt_globsym_save_LIBS=$LIBS
6772	  lt_globsym_save_CFLAGS=$CFLAGS
6773	  LIBS=conftstm.$ac_objext
6774	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6775	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6776  (eval $ac_link) 2>&5
6777  ac_status=$?
6778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6780	    pipe_works=yes
6781	  fi
6782	  LIBS=$lt_globsym_save_LIBS
6783	  CFLAGS=$lt_globsym_save_CFLAGS
6784	else
6785	  echo "cannot find nm_test_func in $nlist" >&5
6786	fi
6787      else
6788	echo "cannot find nm_test_var in $nlist" >&5
6789      fi
6790    else
6791      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6792    fi
6793  else
6794    echo "$progname: failed program was:" >&5
6795    cat conftest.$ac_ext >&5
6796  fi
6797  rm -rf conftest* conftst*
6798
6799  # Do not use the global_symbol_pipe unless it works.
6800  if test yes = "$pipe_works"; then
6801    break
6802  else
6803    lt_cv_sys_global_symbol_pipe=
6804  fi
6805done
6806
6807fi
6808
6809if test -z "$lt_cv_sys_global_symbol_pipe"; then
6810  lt_cv_sys_global_symbol_to_cdecl=
6811fi
6812if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6814$as_echo "failed" >&6; }
6815else
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6817$as_echo "ok" >&6; }
6818fi
6819
6820# Response file support.
6821if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6822  nm_file_list_spec='@'
6823elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6824  nm_file_list_spec='@'
6825fi
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6864$as_echo_n "checking for sysroot... " >&6; }
6865
6866# Check whether --with-sysroot was given.
6867if test "${with_sysroot+set}" = set; then :
6868  withval=$with_sysroot;
6869else
6870  with_sysroot=no
6871fi
6872
6873
6874lt_sysroot=
6875case $with_sysroot in #(
6876 yes)
6877   if test yes = "$GCC"; then
6878     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6879   fi
6880   ;; #(
6881 /*)
6882   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6883   ;; #(
6884 no|'')
6885   ;; #(
6886 *)
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6888$as_echo "$with_sysroot" >&6; }
6889   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6890   ;;
6891esac
6892
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6894$as_echo "${lt_sysroot:-no}" >&6; }
6895
6896
6897
6898
6899
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6901$as_echo_n "checking for a working dd... " >&6; }
6902if ${ac_cv_path_lt_DD+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  printf 0123456789abcdef0123456789abcdef >conftest.i
6906cat conftest.i conftest.i >conftest2.i
6907: ${lt_DD:=$DD}
6908if test -z "$lt_DD"; then
6909  ac_path_lt_DD_found=false
6910  # Loop through the user's path and test for each of PROGNAME-LIST
6911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914  IFS=$as_save_IFS
6915  test -z "$as_dir" && as_dir=.
6916    for ac_prog in dd; do
6917    for ac_exec_ext in '' $ac_executable_extensions; do
6918      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6919      as_fn_executable_p "$ac_path_lt_DD" || continue
6920if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6921  cmp -s conftest.i conftest.out \
6922  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6923fi
6924      $ac_path_lt_DD_found && break 3
6925    done
6926  done
6927  done
6928IFS=$as_save_IFS
6929  if test -z "$ac_cv_path_lt_DD"; then
6930    :
6931  fi
6932else
6933  ac_cv_path_lt_DD=$lt_DD
6934fi
6935
6936rm -f conftest.i conftest2.i conftest.out
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6939$as_echo "$ac_cv_path_lt_DD" >&6; }
6940
6941
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6943$as_echo_n "checking how to truncate binary pipes... " >&6; }
6944if ${lt_cv_truncate_bin+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  printf 0123456789abcdef0123456789abcdef >conftest.i
6948cat conftest.i conftest.i >conftest2.i
6949lt_cv_truncate_bin=
6950if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6951  cmp -s conftest.i conftest.out \
6952  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6953fi
6954rm -f conftest.i conftest2.i conftest.out
6955test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6958$as_echo "$lt_cv_truncate_bin" >&6; }
6959
6960
6961
6962
6963
6964
6965
6966# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6967func_cc_basename ()
6968{
6969    for cc_temp in $*""; do
6970      case $cc_temp in
6971        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6972        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6973        \-*) ;;
6974        *) break;;
6975      esac
6976    done
6977    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6978}
6979
6980# Check whether --enable-libtool-lock was given.
6981if test "${enable_libtool_lock+set}" = set; then :
6982  enableval=$enable_libtool_lock;
6983fi
6984
6985test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6986
6987# Some flags need to be propagated to the compiler or linker for good
6988# libtool support.
6989case $host in
6990ia64-*-hpux*)
6991  # Find out what ABI is being produced by ac_compile, and set mode
6992  # options accordingly.
6993  echo 'int i;' > conftest.$ac_ext
6994  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6995  (eval $ac_compile) 2>&5
6996  ac_status=$?
6997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998  test $ac_status = 0; }; then
6999    case `/usr/bin/file conftest.$ac_objext` in
7000      *ELF-32*)
7001	HPUX_IA64_MODE=32
7002	;;
7003      *ELF-64*)
7004	HPUX_IA64_MODE=64
7005	;;
7006    esac
7007  fi
7008  rm -rf conftest*
7009  ;;
7010*-*-irix6*)
7011  # Find out what ABI is being produced by ac_compile, and set linker
7012  # options accordingly.
7013  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7014  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7015  (eval $ac_compile) 2>&5
7016  ac_status=$?
7017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018  test $ac_status = 0; }; then
7019    if test yes = "$lt_cv_prog_gnu_ld"; then
7020      case `/usr/bin/file conftest.$ac_objext` in
7021	*32-bit*)
7022	  LD="${LD-ld} -melf32bsmip"
7023	  ;;
7024	*N32*)
7025	  LD="${LD-ld} -melf32bmipn32"
7026	  ;;
7027	*64-bit*)
7028	  LD="${LD-ld} -melf64bmip"
7029	;;
7030      esac
7031    else
7032      case `/usr/bin/file conftest.$ac_objext` in
7033	*32-bit*)
7034	  LD="${LD-ld} -32"
7035	  ;;
7036	*N32*)
7037	  LD="${LD-ld} -n32"
7038	  ;;
7039	*64-bit*)
7040	  LD="${LD-ld} -64"
7041	  ;;
7042      esac
7043    fi
7044  fi
7045  rm -rf conftest*
7046  ;;
7047
7048mips64*-*linux*)
7049  # Find out what ABI is being produced by ac_compile, and set linker
7050  # options accordingly.
7051  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7052  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7053  (eval $ac_compile) 2>&5
7054  ac_status=$?
7055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056  test $ac_status = 0; }; then
7057    emul=elf
7058    case `/usr/bin/file conftest.$ac_objext` in
7059      *32-bit*)
7060	emul="${emul}32"
7061	;;
7062      *64-bit*)
7063	emul="${emul}64"
7064	;;
7065    esac
7066    case `/usr/bin/file conftest.$ac_objext` in
7067      *MSB*)
7068	emul="${emul}btsmip"
7069	;;
7070      *LSB*)
7071	emul="${emul}ltsmip"
7072	;;
7073    esac
7074    case `/usr/bin/file conftest.$ac_objext` in
7075      *N32*)
7076	emul="${emul}n32"
7077	;;
7078    esac
7079    LD="${LD-ld} -m $emul"
7080  fi
7081  rm -rf conftest*
7082  ;;
7083
7084x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7085s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7086  # Find out what ABI is being produced by ac_compile, and set linker
7087  # options accordingly.  Note that the listed cases only cover the
7088  # situations where additional linker options are needed (such as when
7089  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7090  # vice versa); the common cases where no linker options are needed do
7091  # not appear in the list.
7092  echo 'int i;' > conftest.$ac_ext
7093  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7094  (eval $ac_compile) 2>&5
7095  ac_status=$?
7096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097  test $ac_status = 0; }; then
7098    case `/usr/bin/file conftest.o` in
7099      *32-bit*)
7100	case $host in
7101	  x86_64-*kfreebsd*-gnu)
7102	    LD="${LD-ld} -m elf_i386_fbsd"
7103	    ;;
7104	  x86_64-*linux*)
7105	    case `/usr/bin/file conftest.o` in
7106	      *x86-64*)
7107		LD="${LD-ld} -m elf32_x86_64"
7108		;;
7109	      *)
7110		LD="${LD-ld} -m elf_i386"
7111		;;
7112	    esac
7113	    ;;
7114	  powerpc64le-*linux*)
7115	    LD="${LD-ld} -m elf32lppclinux"
7116	    ;;
7117	  powerpc64-*linux*)
7118	    LD="${LD-ld} -m elf32ppclinux"
7119	    ;;
7120	  s390x-*linux*)
7121	    LD="${LD-ld} -m elf_s390"
7122	    ;;
7123	  sparc64-*linux*)
7124	    LD="${LD-ld} -m elf32_sparc"
7125	    ;;
7126	esac
7127	;;
7128      *64-bit*)
7129	case $host in
7130	  x86_64-*kfreebsd*-gnu)
7131	    LD="${LD-ld} -m elf_x86_64_fbsd"
7132	    ;;
7133	  x86_64-*linux*)
7134	    LD="${LD-ld} -m elf_x86_64"
7135	    ;;
7136	  powerpcle-*linux*|powerpc64le-*linux*)
7137	    LD="${LD-ld} -m elf64lppc"
7138	    ;;
7139	  powerpc-*linux*|powerpc64-*linux*)
7140	    LD="${LD-ld} -m elf64ppc"
7141	    ;;
7142	  s390*-*linux*|s390*-*tpf*)
7143	    LD="${LD-ld} -m elf64_s390"
7144	    ;;
7145	  sparc*-*linux*)
7146	    LD="${LD-ld} -m elf64_sparc"
7147	    ;;
7148	esac
7149	;;
7150    esac
7151  fi
7152  rm -rf conftest*
7153  ;;
7154
7155*-*-sco3.2v5*)
7156  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7157  SAVE_CFLAGS=$CFLAGS
7158  CFLAGS="$CFLAGS -belf"
7159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7160$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7161if ${lt_cv_cc_needs_belf+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164  ac_ext=c
7165ac_cpp='$CPP $CPPFLAGS'
7166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169
7170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172
7173int
7174main ()
7175{
7176
7177  ;
7178  return 0;
7179}
7180_ACEOF
7181if ac_fn_c_try_link "$LINENO"; then :
7182  lt_cv_cc_needs_belf=yes
7183else
7184  lt_cv_cc_needs_belf=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext \
7187    conftest$ac_exeext conftest.$ac_ext
7188     ac_ext=c
7189ac_cpp='$CPP $CPPFLAGS'
7190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192ac_compiler_gnu=$ac_cv_c_compiler_gnu
7193
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7196$as_echo "$lt_cv_cc_needs_belf" >&6; }
7197  if test yes != "$lt_cv_cc_needs_belf"; then
7198    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7199    CFLAGS=$SAVE_CFLAGS
7200  fi
7201  ;;
7202*-*solaris*)
7203  # Find out what ABI is being produced by ac_compile, and set linker
7204  # options accordingly.
7205  echo 'int i;' > conftest.$ac_ext
7206  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207  (eval $ac_compile) 2>&5
7208  ac_status=$?
7209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210  test $ac_status = 0; }; then
7211    case `/usr/bin/file conftest.o` in
7212    *64-bit*)
7213      case $lt_cv_prog_gnu_ld in
7214      yes*)
7215        case $host in
7216        i?86-*-solaris*|x86_64-*-solaris*)
7217          LD="${LD-ld} -m elf_x86_64"
7218          ;;
7219        sparc*-*-solaris*)
7220          LD="${LD-ld} -m elf64_sparc"
7221          ;;
7222        esac
7223        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7224        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7225          LD=${LD-ld}_sol2
7226        fi
7227        ;;
7228      *)
7229	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7230	  LD="${LD-ld} -64"
7231	fi
7232	;;
7233      esac
7234      ;;
7235    esac
7236  fi
7237  rm -rf conftest*
7238  ;;
7239esac
7240
7241need_locks=$enable_libtool_lock
7242
7243if test -n "$ac_tool_prefix"; then
7244  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7245set dummy ${ac_tool_prefix}mt; ac_word=$2
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
7248if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  if test -n "$MANIFEST_TOOL"; then
7252  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259    for ac_exec_ext in '' $ac_executable_extensions; do
7260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266  done
7267IFS=$as_save_IFS
7268
7269fi
7270fi
7271MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7272if test -n "$MANIFEST_TOOL"; then
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7274$as_echo "$MANIFEST_TOOL" >&6; }
7275else
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7278fi
7279
7280
7281fi
7282if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7283  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7284  # Extract the first word of "mt", so it can be a program name with args.
7285set dummy mt; ac_word=$2
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
7288if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  if test -n "$ac_ct_MANIFEST_TOOL"; then
7292  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7293else
7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297  IFS=$as_save_IFS
7298  test -z "$as_dir" && as_dir=.
7299    for ac_exec_ext in '' $ac_executable_extensions; do
7300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303    break 2
7304  fi
7305done
7306  done
7307IFS=$as_save_IFS
7308
7309fi
7310fi
7311ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7312if test -n "$ac_ct_MANIFEST_TOOL"; then
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7314$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7315else
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317$as_echo "no" >&6; }
7318fi
7319
7320  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7321    MANIFEST_TOOL=":"
7322  else
7323    case $cross_compiling:$ac_tool_warned in
7324yes:)
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327ac_tool_warned=yes ;;
7328esac
7329    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7330  fi
7331else
7332  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7333fi
7334
7335test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7337$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7338if ${lt_cv_path_mainfest_tool+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  lt_cv_path_mainfest_tool=no
7342  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7343  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7344  cat conftest.err >&5
7345  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7346    lt_cv_path_mainfest_tool=yes
7347  fi
7348  rm -f conftest*
7349fi
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7351$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7352if test yes != "$lt_cv_path_mainfest_tool"; then
7353  MANIFEST_TOOL=:
7354fi
7355
7356
7357
7358
7359
7360
7361  case $host_os in
7362    rhapsody* | darwin*)
7363    if test -n "$ac_tool_prefix"; then
7364  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7365set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367$as_echo_n "checking for $ac_word... " >&6; }
7368if ${ac_cv_prog_DSYMUTIL+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  if test -n "$DSYMUTIL"; then
7372  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377  IFS=$as_save_IFS
7378  test -z "$as_dir" && as_dir=.
7379    for ac_exec_ext in '' $ac_executable_extensions; do
7380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383    break 2
7384  fi
7385done
7386  done
7387IFS=$as_save_IFS
7388
7389fi
7390fi
7391DSYMUTIL=$ac_cv_prog_DSYMUTIL
7392if test -n "$DSYMUTIL"; then
7393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7394$as_echo "$DSYMUTIL" >&6; }
7395else
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
7398fi
7399
7400
7401fi
7402if test -z "$ac_cv_prog_DSYMUTIL"; then
7403  ac_ct_DSYMUTIL=$DSYMUTIL
7404  # Extract the first word of "dsymutil", so it can be a program name with args.
7405set dummy dsymutil; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  if test -n "$ac_ct_DSYMUTIL"; then
7412  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419    for ac_exec_ext in '' $ac_executable_extensions; do
7420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426  done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7432if test -n "$ac_ct_DSYMUTIL"; then
7433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7434$as_echo "$ac_ct_DSYMUTIL" >&6; }
7435else
7436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440  if test "x$ac_ct_DSYMUTIL" = x; then
7441    DSYMUTIL=":"
7442  else
7443    case $cross_compiling:$ac_tool_warned in
7444yes:)
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447ac_tool_warned=yes ;;
7448esac
7449    DSYMUTIL=$ac_ct_DSYMUTIL
7450  fi
7451else
7452  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7453fi
7454
7455    if test -n "$ac_tool_prefix"; then
7456  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459$as_echo_n "checking for $ac_word... " >&6; }
7460if ${ac_cv_prog_NMEDIT+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  if test -n "$NMEDIT"; then
7464  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  test -z "$as_dir" && as_dir=.
7471    for ac_exec_ext in '' $ac_executable_extensions; do
7472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478  done
7479IFS=$as_save_IFS
7480
7481fi
7482fi
7483NMEDIT=$ac_cv_prog_NMEDIT
7484if test -n "$NMEDIT"; then
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7486$as_echo "$NMEDIT" >&6; }
7487else
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491
7492
7493fi
7494if test -z "$ac_cv_prog_NMEDIT"; then
7495  ac_ct_NMEDIT=$NMEDIT
7496  # Extract the first word of "nmedit", so it can be a program name with args.
7497set dummy nmedit; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$ac_ct_NMEDIT"; then
7504  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7524if test -n "$ac_ct_NMEDIT"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7526$as_echo "$ac_ct_NMEDIT" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532  if test "x$ac_ct_NMEDIT" = x; then
7533    NMEDIT=":"
7534  else
7535    case $cross_compiling:$ac_tool_warned in
7536yes:)
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539ac_tool_warned=yes ;;
7540esac
7541    NMEDIT=$ac_ct_NMEDIT
7542  fi
7543else
7544  NMEDIT="$ac_cv_prog_NMEDIT"
7545fi
7546
7547    if test -n "$ac_tool_prefix"; then
7548  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7549set dummy ${ac_tool_prefix}lipo; ac_word=$2
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551$as_echo_n "checking for $ac_word... " >&6; }
7552if ${ac_cv_prog_LIPO+:} false; then :
7553  $as_echo_n "(cached) " >&6
7554else
7555  if test -n "$LIPO"; then
7556  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7557else
7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561  IFS=$as_save_IFS
7562  test -z "$as_dir" && as_dir=.
7563    for ac_exec_ext in '' $ac_executable_extensions; do
7564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567    break 2
7568  fi
7569done
7570  done
7571IFS=$as_save_IFS
7572
7573fi
7574fi
7575LIPO=$ac_cv_prog_LIPO
7576if test -n "$LIPO"; then
7577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7578$as_echo "$LIPO" >&6; }
7579else
7580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581$as_echo "no" >&6; }
7582fi
7583
7584
7585fi
7586if test -z "$ac_cv_prog_LIPO"; then
7587  ac_ct_LIPO=$LIPO
7588  # Extract the first word of "lipo", so it can be a program name with args.
7589set dummy lipo; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  if test -n "$ac_ct_LIPO"; then
7596  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603    for ac_exec_ext in '' $ac_executable_extensions; do
7604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605    ac_cv_prog_ac_ct_LIPO="lipo"
7606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610  done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7616if test -n "$ac_ct_LIPO"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7618$as_echo "$ac_ct_LIPO" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624  if test "x$ac_ct_LIPO" = x; then
7625    LIPO=":"
7626  else
7627    case $cross_compiling:$ac_tool_warned in
7628yes:)
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631ac_tool_warned=yes ;;
7632esac
7633    LIPO=$ac_ct_LIPO
7634  fi
7635else
7636  LIPO="$ac_cv_prog_LIPO"
7637fi
7638
7639    if test -n "$ac_tool_prefix"; then
7640  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641set dummy ${ac_tool_prefix}otool; ac_word=$2
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if ${ac_cv_prog_OTOOL+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  if test -n "$OTOOL"; then
7648  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655    for ac_exec_ext in '' $ac_executable_extensions; do
7656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662  done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667OTOOL=$ac_cv_prog_OTOOL
7668if test -n "$OTOOL"; then
7669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7670$as_echo "$OTOOL" >&6; }
7671else
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676
7677fi
7678if test -z "$ac_cv_prog_OTOOL"; then
7679  ac_ct_OTOOL=$OTOOL
7680  # Extract the first word of "otool", so it can be a program name with args.
7681set dummy otool; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  if test -n "$ac_ct_OTOOL"; then
7688  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  test -z "$as_dir" && as_dir=.
7695    for ac_exec_ext in '' $ac_executable_extensions; do
7696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697    ac_cv_prog_ac_ct_OTOOL="otool"
7698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699    break 2
7700  fi
7701done
7702  done
7703IFS=$as_save_IFS
7704
7705fi
7706fi
7707ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708if test -n "$ac_ct_OTOOL"; then
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7710$as_echo "$ac_ct_OTOOL" >&6; }
7711else
7712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716  if test "x$ac_ct_OTOOL" = x; then
7717    OTOOL=":"
7718  else
7719    case $cross_compiling:$ac_tool_warned in
7720yes:)
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723ac_tool_warned=yes ;;
7724esac
7725    OTOOL=$ac_ct_OTOOL
7726  fi
7727else
7728  OTOOL="$ac_cv_prog_OTOOL"
7729fi
7730
7731    if test -n "$ac_tool_prefix"; then
7732  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7733set dummy ${ac_tool_prefix}otool64; ac_word=$2
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735$as_echo_n "checking for $ac_word... " >&6; }
7736if ${ac_cv_prog_OTOOL64+:} false; then :
7737  $as_echo_n "(cached) " >&6
7738else
7739  if test -n "$OTOOL64"; then
7740  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7741else
7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745  IFS=$as_save_IFS
7746  test -z "$as_dir" && as_dir=.
7747    for ac_exec_ext in '' $ac_executable_extensions; do
7748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751    break 2
7752  fi
7753done
7754  done
7755IFS=$as_save_IFS
7756
7757fi
7758fi
7759OTOOL64=$ac_cv_prog_OTOOL64
7760if test -n "$OTOOL64"; then
7761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7762$as_echo "$OTOOL64" >&6; }
7763else
7764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765$as_echo "no" >&6; }
7766fi
7767
7768
7769fi
7770if test -z "$ac_cv_prog_OTOOL64"; then
7771  ac_ct_OTOOL64=$OTOOL64
7772  # Extract the first word of "otool64", so it can be a program name with args.
7773set dummy otool64; ac_word=$2
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  if test -n "$ac_ct_OTOOL64"; then
7780  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787    for ac_exec_ext in '' $ac_executable_extensions; do
7788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789    ac_cv_prog_ac_ct_OTOOL64="otool64"
7790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794  done
7795IFS=$as_save_IFS
7796
7797fi
7798fi
7799ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7800if test -n "$ac_ct_OTOOL64"; then
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7802$as_echo "$ac_ct_OTOOL64" >&6; }
7803else
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
7806fi
7807
7808  if test "x$ac_ct_OTOOL64" = x; then
7809    OTOOL64=":"
7810  else
7811    case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817    OTOOL64=$ac_ct_OTOOL64
7818  fi
7819else
7820  OTOOL64="$ac_cv_prog_OTOOL64"
7821fi
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7850$as_echo_n "checking for -single_module linker flag... " >&6; }
7851if ${lt_cv_apple_cc_single_mod+:} false; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  lt_cv_apple_cc_single_mod=no
7855      if test -z "$LT_MULTI_MODULE"; then
7856	# By default we will add the -single_module flag. You can override
7857	# by either setting the environment variable LT_MULTI_MODULE
7858	# non-empty at configure time, or by adding -multi_module to the
7859	# link flags.
7860	rm -rf libconftest.dylib*
7861	echo "int foo(void){return 1;}" > conftest.c
7862	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863-dynamiclib -Wl,-single_module conftest.c" >&5
7864	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7865	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7866        _lt_result=$?
7867	# If there is a non-empty error log, and "single_module"
7868	# appears in it, assume the flag caused a linker warning
7869        if test -s conftest.err && $GREP single_module conftest.err; then
7870	  cat conftest.err >&5
7871	# Otherwise, if the output was created with a 0 exit code from
7872	# the compiler, it worked.
7873	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7874	  lt_cv_apple_cc_single_mod=yes
7875	else
7876	  cat conftest.err >&5
7877	fi
7878	rm -rf libconftest.dylib*
7879	rm -f conftest.*
7880      fi
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7883$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7884
7885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7886$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7887if ${lt_cv_ld_exported_symbols_list+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  lt_cv_ld_exported_symbols_list=no
7891      save_LDFLAGS=$LDFLAGS
7892      echo "_main" > conftest.sym
7893      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7894      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h.  */
7896
7897int
7898main ()
7899{
7900
7901  ;
7902  return 0;
7903}
7904_ACEOF
7905if ac_fn_c_try_link "$LINENO"; then :
7906  lt_cv_ld_exported_symbols_list=yes
7907else
7908  lt_cv_ld_exported_symbols_list=no
7909fi
7910rm -f core conftest.err conftest.$ac_objext \
7911    conftest$ac_exeext conftest.$ac_ext
7912	LDFLAGS=$save_LDFLAGS
7913
7914fi
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7916$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7917
7918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7919$as_echo_n "checking for -force_load linker flag... " >&6; }
7920if ${lt_cv_ld_force_load+:} false; then :
7921  $as_echo_n "(cached) " >&6
7922else
7923  lt_cv_ld_force_load=no
7924      cat > conftest.c << _LT_EOF
7925int forced_loaded() { return 2;}
7926_LT_EOF
7927      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7928      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7929      echo "$AR cru libconftest.a conftest.o" >&5
7930      $AR cru libconftest.a conftest.o 2>&5
7931      echo "$RANLIB libconftest.a" >&5
7932      $RANLIB libconftest.a 2>&5
7933      cat > conftest.c << _LT_EOF
7934int main() { return 0;}
7935_LT_EOF
7936      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7937      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7938      _lt_result=$?
7939      if test -s conftest.err && $GREP force_load conftest.err; then
7940	cat conftest.err >&5
7941      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7942	lt_cv_ld_force_load=yes
7943      else
7944	cat conftest.err >&5
7945      fi
7946        rm -f conftest.err libconftest.a conftest conftest.c
7947        rm -rf conftest.dSYM
7948
7949fi
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7951$as_echo "$lt_cv_ld_force_load" >&6; }
7952    case $host_os in
7953    rhapsody* | darwin1.[012])
7954      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7955    darwin1.*)
7956      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7957    darwin*) # darwin 5.x on
7958      # if running on 10.5 or later, the deployment target defaults
7959      # to the OS version, if on x86, and 10.4, the deployment
7960      # target defaults to 10.4. Don't you love it?
7961      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7962	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7963	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7964	10.[012][,.]*)
7965	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7966	10.*)
7967	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7968      esac
7969    ;;
7970  esac
7971    if test yes = "$lt_cv_apple_cc_single_mod"; then
7972      _lt_dar_single_mod='$single_module'
7973    fi
7974    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7975      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7976    else
7977      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7978    fi
7979    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7980      _lt_dsymutil='~$DSYMUTIL $lib || :'
7981    else
7982      _lt_dsymutil=
7983    fi
7984    ;;
7985  esac
7986
7987# func_munge_path_list VARIABLE PATH
7988# -----------------------------------
7989# VARIABLE is name of variable containing _space_ separated list of
7990# directories to be munged by the contents of PATH, which is string
7991# having a format:
7992# "DIR[:DIR]:"
7993#       string "DIR[ DIR]" will be prepended to VARIABLE
7994# ":DIR[:DIR]"
7995#       string "DIR[ DIR]" will be appended to VARIABLE
7996# "DIRP[:DIRP]::[DIRA:]DIRA"
7997#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7998#       "DIRA[ DIRA]" will be appended to VARIABLE
7999# "DIR[:DIR]"
8000#       VARIABLE will be replaced by "DIR[ DIR]"
8001func_munge_path_list ()
8002{
8003    case x$2 in
8004    x)
8005        ;;
8006    *:)
8007        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8008        ;;
8009    x:*)
8010        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8011        ;;
8012    *::*)
8013        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8014        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8015        ;;
8016    *)
8017        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8018        ;;
8019    esac
8020}
8021
8022ac_ext=c
8023ac_cpp='$CPP $CPPFLAGS'
8024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8028$as_echo_n "checking how to run the C preprocessor... " >&6; }
8029# On Suns, sometimes $CPP names a directory.
8030if test -n "$CPP" && test -d "$CPP"; then
8031  CPP=
8032fi
8033if test -z "$CPP"; then
8034  if ${ac_cv_prog_CPP+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037      # Double quotes because CPP needs to be expanded
8038    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8039    do
8040      ac_preproc_ok=false
8041for ac_c_preproc_warn_flag in '' yes
8042do
8043  # Use a header file that comes with gcc, so configuring glibc
8044  # with a fresh cross-compiler works.
8045  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8046  # <limits.h> exists even on freestanding compilers.
8047  # On the NeXT, cc -E runs the code through the compiler's parser,
8048  # not just through cpp. "Syntax error" is here to catch this case.
8049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h.  */
8051#ifdef __STDC__
8052# include <limits.h>
8053#else
8054# include <assert.h>
8055#endif
8056		     Syntax error
8057_ACEOF
8058if ac_fn_c_try_cpp "$LINENO"; then :
8059
8060else
8061  # Broken: fails on valid input.
8062continue
8063fi
8064rm -f conftest.err conftest.i conftest.$ac_ext
8065
8066  # OK, works on sane cases.  Now check whether nonexistent headers
8067  # can be detected and how.
8068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069/* end confdefs.h.  */
8070#include <ac_nonexistent.h>
8071_ACEOF
8072if ac_fn_c_try_cpp "$LINENO"; then :
8073  # Broken: success on invalid input.
8074continue
8075else
8076  # Passes both tests.
8077ac_preproc_ok=:
8078break
8079fi
8080rm -f conftest.err conftest.i conftest.$ac_ext
8081
8082done
8083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8084rm -f conftest.i conftest.err conftest.$ac_ext
8085if $ac_preproc_ok; then :
8086  break
8087fi
8088
8089    done
8090    ac_cv_prog_CPP=$CPP
8091
8092fi
8093  CPP=$ac_cv_prog_CPP
8094else
8095  ac_cv_prog_CPP=$CPP
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8098$as_echo "$CPP" >&6; }
8099ac_preproc_ok=false
8100for ac_c_preproc_warn_flag in '' yes
8101do
8102  # Use a header file that comes with gcc, so configuring glibc
8103  # with a fresh cross-compiler works.
8104  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8105  # <limits.h> exists even on freestanding compilers.
8106  # On the NeXT, cc -E runs the code through the compiler's parser,
8107  # not just through cpp. "Syntax error" is here to catch this case.
8108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110#ifdef __STDC__
8111# include <limits.h>
8112#else
8113# include <assert.h>
8114#endif
8115		     Syntax error
8116_ACEOF
8117if ac_fn_c_try_cpp "$LINENO"; then :
8118
8119else
8120  # Broken: fails on valid input.
8121continue
8122fi
8123rm -f conftest.err conftest.i conftest.$ac_ext
8124
8125  # OK, works on sane cases.  Now check whether nonexistent headers
8126  # can be detected and how.
8127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129#include <ac_nonexistent.h>
8130_ACEOF
8131if ac_fn_c_try_cpp "$LINENO"; then :
8132  # Broken: success on invalid input.
8133continue
8134else
8135  # Passes both tests.
8136ac_preproc_ok=:
8137break
8138fi
8139rm -f conftest.err conftest.i conftest.$ac_ext
8140
8141done
8142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8143rm -f conftest.i conftest.err conftest.$ac_ext
8144if $ac_preproc_ok; then :
8145
8146else
8147  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8149as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8150See \`config.log' for more details" "$LINENO" 5; }
8151fi
8152
8153ac_ext=c
8154ac_cpp='$CPP $CPPFLAGS'
8155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
8159
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8161$as_echo_n "checking for ANSI C header files... " >&6; }
8162if ${ac_cv_header_stdc+:} false; then :
8163  $as_echo_n "(cached) " >&6
8164else
8165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167#include <stdlib.h>
8168#include <stdarg.h>
8169#include <string.h>
8170#include <float.h>
8171
8172int
8173main ()
8174{
8175
8176  ;
8177  return 0;
8178}
8179_ACEOF
8180if ac_fn_c_try_compile "$LINENO"; then :
8181  ac_cv_header_stdc=yes
8182else
8183  ac_cv_header_stdc=no
8184fi
8185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186
8187if test $ac_cv_header_stdc = yes; then
8188  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191#include <string.h>
8192
8193_ACEOF
8194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195  $EGREP "memchr" >/dev/null 2>&1; then :
8196
8197else
8198  ac_cv_header_stdc=no
8199fi
8200rm -f conftest*
8201
8202fi
8203
8204if test $ac_cv_header_stdc = yes; then
8205  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208#include <stdlib.h>
8209
8210_ACEOF
8211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212  $EGREP "free" >/dev/null 2>&1; then :
8213
8214else
8215  ac_cv_header_stdc=no
8216fi
8217rm -f conftest*
8218
8219fi
8220
8221if test $ac_cv_header_stdc = yes; then
8222  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8223  if test "$cross_compiling" = yes; then :
8224  :
8225else
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228#include <ctype.h>
8229#include <stdlib.h>
8230#if ((' ' & 0x0FF) == 0x020)
8231# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8232# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8233#else
8234# define ISLOWER(c) \
8235		   (('a' <= (c) && (c) <= 'i') \
8236		     || ('j' <= (c) && (c) <= 'r') \
8237		     || ('s' <= (c) && (c) <= 'z'))
8238# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8239#endif
8240
8241#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8242int
8243main ()
8244{
8245  int i;
8246  for (i = 0; i < 256; i++)
8247    if (XOR (islower (i), ISLOWER (i))
8248	|| toupper (i) != TOUPPER (i))
8249      return 2;
8250  return 0;
8251}
8252_ACEOF
8253if ac_fn_c_try_run "$LINENO"; then :
8254
8255else
8256  ac_cv_header_stdc=no
8257fi
8258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8259  conftest.$ac_objext conftest.beam conftest.$ac_ext
8260fi
8261
8262fi
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8265$as_echo "$ac_cv_header_stdc" >&6; }
8266if test $ac_cv_header_stdc = yes; then
8267
8268$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8269
8270fi
8271
8272# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8273for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8274		  inttypes.h stdint.h unistd.h
8275do :
8276  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8277ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8278"
8279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8280  cat >>confdefs.h <<_ACEOF
8281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282_ACEOF
8283
8284fi
8285
8286done
8287
8288
8289for ac_header in dlfcn.h
8290do :
8291  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8292"
8293if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8294  cat >>confdefs.h <<_ACEOF
8295#define HAVE_DLFCN_H 1
8296_ACEOF
8297
8298fi
8299
8300done
8301
8302
8303
8304
8305
8306# Set options
8307enable_win32_dll=yes
8308
8309case $host in
8310*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8311  if test -n "$ac_tool_prefix"; then
8312  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8313set dummy ${ac_tool_prefix}as; ac_word=$2
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if ${ac_cv_prog_AS+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  if test -n "$AS"; then
8320  ac_cv_prog_AS="$AS" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325  IFS=$as_save_IFS
8326  test -z "$as_dir" && as_dir=.
8327    for ac_exec_ext in '' $ac_executable_extensions; do
8328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329    ac_cv_prog_AS="${ac_tool_prefix}as"
8330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331    break 2
8332  fi
8333done
8334  done
8335IFS=$as_save_IFS
8336
8337fi
8338fi
8339AS=$ac_cv_prog_AS
8340if test -n "$AS"; then
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8342$as_echo "$AS" >&6; }
8343else
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
8346fi
8347
8348
8349fi
8350if test -z "$ac_cv_prog_AS"; then
8351  ac_ct_AS=$AS
8352  # Extract the first word of "as", so it can be a program name with args.
8353set dummy as; ac_word=$2
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if ${ac_cv_prog_ac_ct_AS+:} false; then :
8357  $as_echo_n "(cached) " >&6
8358else
8359  if test -n "$ac_ct_AS"; then
8360  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365  IFS=$as_save_IFS
8366  test -z "$as_dir" && as_dir=.
8367    for ac_exec_ext in '' $ac_executable_extensions; do
8368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369    ac_cv_prog_ac_ct_AS="as"
8370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371    break 2
8372  fi
8373done
8374  done
8375IFS=$as_save_IFS
8376
8377fi
8378fi
8379ac_ct_AS=$ac_cv_prog_ac_ct_AS
8380if test -n "$ac_ct_AS"; then
8381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8382$as_echo "$ac_ct_AS" >&6; }
8383else
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
8386fi
8387
8388  if test "x$ac_ct_AS" = x; then
8389    AS="false"
8390  else
8391    case $cross_compiling:$ac_tool_warned in
8392yes:)
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8395ac_tool_warned=yes ;;
8396esac
8397    AS=$ac_ct_AS
8398  fi
8399else
8400  AS="$ac_cv_prog_AS"
8401fi
8402
8403  if test -n "$ac_tool_prefix"; then
8404  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8405set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407$as_echo_n "checking for $ac_word... " >&6; }
8408if ${ac_cv_prog_DLLTOOL+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  if test -n "$DLLTOOL"; then
8412  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8413else
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417  IFS=$as_save_IFS
8418  test -z "$as_dir" && as_dir=.
8419    for ac_exec_ext in '' $ac_executable_extensions; do
8420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423    break 2
8424  fi
8425done
8426  done
8427IFS=$as_save_IFS
8428
8429fi
8430fi
8431DLLTOOL=$ac_cv_prog_DLLTOOL
8432if test -n "$DLLTOOL"; then
8433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8434$as_echo "$DLLTOOL" >&6; }
8435else
8436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
8438fi
8439
8440
8441fi
8442if test -z "$ac_cv_prog_DLLTOOL"; then
8443  ac_ct_DLLTOOL=$DLLTOOL
8444  # Extract the first word of "dlltool", so it can be a program name with args.
8445set dummy dlltool; ac_word=$2
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447$as_echo_n "checking for $ac_word... " >&6; }
8448if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8449  $as_echo_n "(cached) " >&6
8450else
8451  if test -n "$ac_ct_DLLTOOL"; then
8452  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8453else
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457  IFS=$as_save_IFS
8458  test -z "$as_dir" && as_dir=.
8459    for ac_exec_ext in '' $ac_executable_extensions; do
8460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463    break 2
8464  fi
8465done
8466  done
8467IFS=$as_save_IFS
8468
8469fi
8470fi
8471ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8472if test -n "$ac_ct_DLLTOOL"; then
8473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8474$as_echo "$ac_ct_DLLTOOL" >&6; }
8475else
8476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
8478fi
8479
8480  if test "x$ac_ct_DLLTOOL" = x; then
8481    DLLTOOL="false"
8482  else
8483    case $cross_compiling:$ac_tool_warned in
8484yes:)
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8487ac_tool_warned=yes ;;
8488esac
8489    DLLTOOL=$ac_ct_DLLTOOL
8490  fi
8491else
8492  DLLTOOL="$ac_cv_prog_DLLTOOL"
8493fi
8494
8495  if test -n "$ac_tool_prefix"; then
8496  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8497set dummy ${ac_tool_prefix}objdump; ac_word=$2
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499$as_echo_n "checking for $ac_word... " >&6; }
8500if ${ac_cv_prog_OBJDUMP+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  if test -n "$OBJDUMP"; then
8504  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509  IFS=$as_save_IFS
8510  test -z "$as_dir" && as_dir=.
8511    for ac_exec_ext in '' $ac_executable_extensions; do
8512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515    break 2
8516  fi
8517done
8518  done
8519IFS=$as_save_IFS
8520
8521fi
8522fi
8523OBJDUMP=$ac_cv_prog_OBJDUMP
8524if test -n "$OBJDUMP"; then
8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8526$as_echo "$OBJDUMP" >&6; }
8527else
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
8530fi
8531
8532
8533fi
8534if test -z "$ac_cv_prog_OBJDUMP"; then
8535  ac_ct_OBJDUMP=$OBJDUMP
8536  # Extract the first word of "objdump", so it can be a program name with args.
8537set dummy objdump; ac_word=$2
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539$as_echo_n "checking for $ac_word... " >&6; }
8540if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8541  $as_echo_n "(cached) " >&6
8542else
8543  if test -n "$ac_ct_OBJDUMP"; then
8544  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8545else
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549  IFS=$as_save_IFS
8550  test -z "$as_dir" && as_dir=.
8551    for ac_exec_ext in '' $ac_executable_extensions; do
8552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555    break 2
8556  fi
8557done
8558  done
8559IFS=$as_save_IFS
8560
8561fi
8562fi
8563ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8564if test -n "$ac_ct_OBJDUMP"; then
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8566$as_echo "$ac_ct_OBJDUMP" >&6; }
8567else
8568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
8570fi
8571
8572  if test "x$ac_ct_OBJDUMP" = x; then
8573    OBJDUMP="false"
8574  else
8575    case $cross_compiling:$ac_tool_warned in
8576yes:)
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8579ac_tool_warned=yes ;;
8580esac
8581    OBJDUMP=$ac_ct_OBJDUMP
8582  fi
8583else
8584  OBJDUMP="$ac_cv_prog_OBJDUMP"
8585fi
8586
8587  ;;
8588esac
8589
8590test -z "$AS" && AS=as
8591
8592
8593
8594
8595
8596test -z "$DLLTOOL" && DLLTOOL=dlltool
8597
8598
8599
8600
8601
8602test -z "$OBJDUMP" && OBJDUMP=objdump
8603
8604
8605
8606
8607
8608
8609
8610        enable_dlopen=no
8611
8612
8613
8614            # Check whether --enable-shared was given.
8615if test "${enable_shared+set}" = set; then :
8616  enableval=$enable_shared; p=${PACKAGE-default}
8617    case $enableval in
8618    yes) enable_shared=yes ;;
8619    no) enable_shared=no ;;
8620    *)
8621      enable_shared=no
8622      # Look at the argument we got.  We use all the common list separators.
8623      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8624      for pkg in $enableval; do
8625	IFS=$lt_save_ifs
8626	if test "X$pkg" = "X$p"; then
8627	  enable_shared=yes
8628	fi
8629      done
8630      IFS=$lt_save_ifs
8631      ;;
8632    esac
8633else
8634  enable_shared=yes
8635fi
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645  # Check whether --enable-static was given.
8646if test "${enable_static+set}" = set; then :
8647  enableval=$enable_static; p=${PACKAGE-default}
8648    case $enableval in
8649    yes) enable_static=yes ;;
8650    no) enable_static=no ;;
8651    *)
8652     enable_static=no
8653      # Look at the argument we got.  We use all the common list separators.
8654      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8655      for pkg in $enableval; do
8656	IFS=$lt_save_ifs
8657	if test "X$pkg" = "X$p"; then
8658	  enable_static=yes
8659	fi
8660      done
8661      IFS=$lt_save_ifs
8662      ;;
8663    esac
8664else
8665  enable_static=yes
8666fi
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677# Check whether --with-pic was given.
8678if test "${with_pic+set}" = set; then :
8679  withval=$with_pic; lt_p=${PACKAGE-default}
8680    case $withval in
8681    yes|no) pic_mode=$withval ;;
8682    *)
8683      pic_mode=default
8684      # Look at the argument we got.  We use all the common list separators.
8685      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8686      for lt_pkg in $withval; do
8687	IFS=$lt_save_ifs
8688	if test "X$lt_pkg" = "X$lt_p"; then
8689	  pic_mode=yes
8690	fi
8691      done
8692      IFS=$lt_save_ifs
8693      ;;
8694    esac
8695else
8696  pic_mode=default
8697fi
8698
8699
8700
8701
8702
8703
8704
8705
8706  # Check whether --enable-fast-install was given.
8707if test "${enable_fast_install+set}" = set; then :
8708  enableval=$enable_fast_install; p=${PACKAGE-default}
8709    case $enableval in
8710    yes) enable_fast_install=yes ;;
8711    no) enable_fast_install=no ;;
8712    *)
8713      enable_fast_install=no
8714      # Look at the argument we got.  We use all the common list separators.
8715      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8716      for pkg in $enableval; do
8717	IFS=$lt_save_ifs
8718	if test "X$pkg" = "X$p"; then
8719	  enable_fast_install=yes
8720	fi
8721      done
8722      IFS=$lt_save_ifs
8723      ;;
8724    esac
8725else
8726  enable_fast_install=yes
8727fi
8728
8729
8730
8731
8732
8733
8734
8735
8736  shared_archive_member_spec=
8737case $host,$enable_shared in
8738power*-*-aix[5-9]*,yes)
8739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8740$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8741
8742# Check whether --with-aix-soname was given.
8743if test "${with_aix_soname+set}" = set; then :
8744  withval=$with_aix_soname; case $withval in
8745    aix|svr4|both)
8746      ;;
8747    *)
8748      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8749      ;;
8750    esac
8751    lt_cv_with_aix_soname=$with_aix_soname
8752else
8753  if ${lt_cv_with_aix_soname+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  lt_cv_with_aix_soname=aix
8757fi
8758
8759    with_aix_soname=$lt_cv_with_aix_soname
8760fi
8761
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8763$as_echo "$with_aix_soname" >&6; }
8764  if test aix != "$with_aix_soname"; then
8765    # For the AIX way of multilib, we name the shared archive member
8766    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8767    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8768    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8769    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8770    if test 64 = "${OBJECT_MODE-32}"; then
8771      shared_archive_member_spec=shr_64
8772    else
8773      shared_archive_member_spec=shr
8774    fi
8775  fi
8776  ;;
8777*)
8778  with_aix_soname=aix
8779  ;;
8780esac
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791# This can be used to rebuild libtool when needed
8792LIBTOOL_DEPS=$ltmain
8793
8794# Always use our own libtool.
8795LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826test -z "$LN_S" && LN_S="ln -s"
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841if test -n "${ZSH_VERSION+set}"; then
8842   setopt NO_GLOB_SUBST
8843fi
8844
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8846$as_echo_n "checking for objdir... " >&6; }
8847if ${lt_cv_objdir+:} false; then :
8848  $as_echo_n "(cached) " >&6
8849else
8850  rm -f .libs 2>/dev/null
8851mkdir .libs 2>/dev/null
8852if test -d .libs; then
8853  lt_cv_objdir=.libs
8854else
8855  # MS-DOS does not allow filenames that begin with a dot.
8856  lt_cv_objdir=_libs
8857fi
8858rmdir .libs 2>/dev/null
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8861$as_echo "$lt_cv_objdir" >&6; }
8862objdir=$lt_cv_objdir
8863
8864
8865
8866
8867
8868cat >>confdefs.h <<_ACEOF
8869#define LT_OBJDIR "$lt_cv_objdir/"
8870_ACEOF
8871
8872
8873
8874
8875case $host_os in
8876aix3*)
8877  # AIX sometimes has problems with the GCC collect2 program.  For some
8878  # reason, if we set the COLLECT_NAMES environment variable, the problems
8879  # vanish in a puff of smoke.
8880  if test set != "${COLLECT_NAMES+set}"; then
8881    COLLECT_NAMES=
8882    export COLLECT_NAMES
8883  fi
8884  ;;
8885esac
8886
8887# Global variables:
8888ofile=libtool
8889can_build_shared=yes
8890
8891# All known linkers require a '.a' archive for static linking (except MSVC,
8892# which needs '.lib').
8893libext=a
8894
8895with_gnu_ld=$lt_cv_prog_gnu_ld
8896
8897old_CC=$CC
8898old_CFLAGS=$CFLAGS
8899
8900# Set sane defaults for various variables
8901test -z "$CC" && CC=cc
8902test -z "$LTCC" && LTCC=$CC
8903test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8904test -z "$LD" && LD=ld
8905test -z "$ac_objext" && ac_objext=o
8906
8907func_cc_basename $compiler
8908cc_basename=$func_cc_basename_result
8909
8910
8911# Only perform the check for file, if the check method requires it
8912test -z "$MAGIC_CMD" && MAGIC_CMD=file
8913case $deplibs_check_method in
8914file_magic*)
8915  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8917$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8918if ${lt_cv_path_MAGIC_CMD+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  case $MAGIC_CMD in
8922[\\/*] |  ?:[\\/]*)
8923  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8924  ;;
8925*)
8926  lt_save_MAGIC_CMD=$MAGIC_CMD
8927  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8928  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8929  for ac_dir in $ac_dummy; do
8930    IFS=$lt_save_ifs
8931    test -z "$ac_dir" && ac_dir=.
8932    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8933      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8934      if test -n "$file_magic_test_file"; then
8935	case $deplibs_check_method in
8936	"file_magic "*)
8937	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8938	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8939	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8940	    $EGREP "$file_magic_regex" > /dev/null; then
8941	    :
8942	  else
8943	    cat <<_LT_EOF 1>&2
8944
8945*** Warning: the command libtool uses to detect shared libraries,
8946*** $file_magic_cmd, produces output that libtool cannot recognize.
8947*** The result is that libtool may fail to recognize shared libraries
8948*** as such.  This will affect the creation of libtool libraries that
8949*** depend on shared libraries, but programs linked with such libtool
8950*** libraries will work regardless of this problem.  Nevertheless, you
8951*** may want to report the problem to your system manager and/or to
8952*** bug-libtool@gnu.org
8953
8954_LT_EOF
8955	  fi ;;
8956	esac
8957      fi
8958      break
8959    fi
8960  done
8961  IFS=$lt_save_ifs
8962  MAGIC_CMD=$lt_save_MAGIC_CMD
8963  ;;
8964esac
8965fi
8966
8967MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8968if test -n "$MAGIC_CMD"; then
8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8970$as_echo "$MAGIC_CMD" >&6; }
8971else
8972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
8974fi
8975
8976
8977
8978
8979
8980if test -z "$lt_cv_path_MAGIC_CMD"; then
8981  if test -n "$ac_tool_prefix"; then
8982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8983$as_echo_n "checking for file... " >&6; }
8984if ${lt_cv_path_MAGIC_CMD+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  case $MAGIC_CMD in
8988[\\/*] |  ?:[\\/]*)
8989  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8990  ;;
8991*)
8992  lt_save_MAGIC_CMD=$MAGIC_CMD
8993  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8994  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8995  for ac_dir in $ac_dummy; do
8996    IFS=$lt_save_ifs
8997    test -z "$ac_dir" && ac_dir=.
8998    if test -f "$ac_dir/file"; then
8999      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9000      if test -n "$file_magic_test_file"; then
9001	case $deplibs_check_method in
9002	"file_magic "*)
9003	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9004	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9005	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9006	    $EGREP "$file_magic_regex" > /dev/null; then
9007	    :
9008	  else
9009	    cat <<_LT_EOF 1>&2
9010
9011*** Warning: the command libtool uses to detect shared libraries,
9012*** $file_magic_cmd, produces output that libtool cannot recognize.
9013*** The result is that libtool may fail to recognize shared libraries
9014*** as such.  This will affect the creation of libtool libraries that
9015*** depend on shared libraries, but programs linked with such libtool
9016*** libraries will work regardless of this problem.  Nevertheless, you
9017*** may want to report the problem to your system manager and/or to
9018*** bug-libtool@gnu.org
9019
9020_LT_EOF
9021	  fi ;;
9022	esac
9023      fi
9024      break
9025    fi
9026  done
9027  IFS=$lt_save_ifs
9028  MAGIC_CMD=$lt_save_MAGIC_CMD
9029  ;;
9030esac
9031fi
9032
9033MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9034if test -n "$MAGIC_CMD"; then
9035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9036$as_echo "$MAGIC_CMD" >&6; }
9037else
9038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039$as_echo "no" >&6; }
9040fi
9041
9042
9043  else
9044    MAGIC_CMD=:
9045  fi
9046fi
9047
9048  fi
9049  ;;
9050esac
9051
9052# Use C for the default configuration in the libtool script
9053
9054lt_save_CC=$CC
9055ac_ext=c
9056ac_cpp='$CPP $CPPFLAGS'
9057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9059ac_compiler_gnu=$ac_cv_c_compiler_gnu
9060
9061
9062# Source file extension for C test sources.
9063ac_ext=c
9064
9065# Object file extension for compiled C test sources.
9066objext=o
9067objext=$objext
9068
9069# Code to be used in simple compile tests
9070lt_simple_compile_test_code="int some_variable = 0;"
9071
9072# Code to be used in simple link tests
9073lt_simple_link_test_code='int main(){return(0);}'
9074
9075
9076
9077
9078
9079
9080
9081# If no C compiler was specified, use CC.
9082LTCC=${LTCC-"$CC"}
9083
9084# If no C compiler flags were specified, use CFLAGS.
9085LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9086
9087# Allow CC to be a program name with arguments.
9088compiler=$CC
9089
9090# Save the default compiler, since it gets overwritten when the other
9091# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9092compiler_DEFAULT=$CC
9093
9094# save warnings/boilerplate of simple test code
9095ac_outfile=conftest.$ac_objext
9096echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9097eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9098_lt_compiler_boilerplate=`cat conftest.err`
9099$RM conftest*
9100
9101ac_outfile=conftest.$ac_objext
9102echo "$lt_simple_link_test_code" >conftest.$ac_ext
9103eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9104_lt_linker_boilerplate=`cat conftest.err`
9105$RM -r conftest*
9106
9107
9108## CAVEAT EMPTOR:
9109## There is no encapsulation within the following macros, do not change
9110## the running order or otherwise move them around unless you know exactly
9111## what you are doing...
9112if test -n "$compiler"; then
9113
9114lt_prog_compiler_no_builtin_flag=
9115
9116if test yes = "$GCC"; then
9117  case $cc_basename in
9118  nvcc*)
9119    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9120  *)
9121    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9122  esac
9123
9124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9125$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9126if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  lt_cv_prog_compiler_rtti_exceptions=no
9130   ac_outfile=conftest.$ac_objext
9131   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9132   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9133   # Insert the option either (1) after the last *FLAGS variable, or
9134   # (2) before a word containing "conftest.", or (3) at the end.
9135   # Note that $ac_compile itself does not contain backslashes and begins
9136   # with a dollar sign (not a hyphen), so the echo should work correctly.
9137   # The option is referenced via a variable to avoid confusing sed.
9138   lt_compile=`echo "$ac_compile" | $SED \
9139   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9140   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9141   -e 's:$: $lt_compiler_flag:'`
9142   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9143   (eval "$lt_compile" 2>conftest.err)
9144   ac_status=$?
9145   cat conftest.err >&5
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   if (exit $ac_status) && test -s "$ac_outfile"; then
9148     # The compiler can only warn and ignore the option if not recognized
9149     # So say no if there are warnings other than the usual output.
9150     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9151     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9152     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9153       lt_cv_prog_compiler_rtti_exceptions=yes
9154     fi
9155   fi
9156   $RM conftest*
9157
9158fi
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9160$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9161
9162if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9163    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9164else
9165    :
9166fi
9167
9168fi
9169
9170
9171
9172
9173
9174
9175  lt_prog_compiler_wl=
9176lt_prog_compiler_pic=
9177lt_prog_compiler_static=
9178
9179
9180  if test yes = "$GCC"; then
9181    lt_prog_compiler_wl='-Wl,'
9182    lt_prog_compiler_static='-static'
9183
9184    case $host_os in
9185      aix*)
9186      # All AIX code is PIC.
9187      if test ia64 = "$host_cpu"; then
9188	# AIX 5 now supports IA64 processor
9189	lt_prog_compiler_static='-Bstatic'
9190      fi
9191      lt_prog_compiler_pic='-fPIC'
9192      ;;
9193
9194    amigaos*)
9195      case $host_cpu in
9196      powerpc)
9197            # see comment about AmigaOS4 .so support
9198            lt_prog_compiler_pic='-fPIC'
9199        ;;
9200      m68k)
9201            # FIXME: we need at least 68020 code to build shared libraries, but
9202            # adding the '-m68020' flag to GCC prevents building anything better,
9203            # like '-m68040'.
9204            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9205        ;;
9206      esac
9207      ;;
9208
9209    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9210      # PIC is the default for these OSes.
9211      ;;
9212
9213    mingw* | cygwin* | pw32* | os2* | cegcc*)
9214      # This hack is so that the source file can tell whether it is being
9215      # built for inclusion in a dll (and should export symbols for example).
9216      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9217      # (--disable-auto-import) libraries
9218      lt_prog_compiler_pic='-DDLL_EXPORT'
9219      case $host_os in
9220      os2*)
9221	lt_prog_compiler_static='$wl-static'
9222	;;
9223      esac
9224      ;;
9225
9226    darwin* | rhapsody*)
9227      # PIC is the default on this platform
9228      # Common symbols not allowed in MH_DYLIB files
9229      lt_prog_compiler_pic='-fno-common'
9230      ;;
9231
9232    haiku*)
9233      # PIC is the default for Haiku.
9234      # The "-static" flag exists, but is broken.
9235      lt_prog_compiler_static=
9236      ;;
9237
9238    hpux*)
9239      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9240      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9241      # sets the default TLS model and affects inlining.
9242      case $host_cpu in
9243      hppa*64*)
9244	# +Z the default
9245	;;
9246      *)
9247	lt_prog_compiler_pic='-fPIC'
9248	;;
9249      esac
9250      ;;
9251
9252    interix[3-9]*)
9253      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9254      # Instead, we relocate shared libraries at runtime.
9255      ;;
9256
9257    msdosdjgpp*)
9258      # Just because we use GCC doesn't mean we suddenly get shared libraries
9259      # on systems that don't support them.
9260      lt_prog_compiler_can_build_shared=no
9261      enable_shared=no
9262      ;;
9263
9264    *nto* | *qnx*)
9265      # QNX uses GNU C++, but need to define -shared option too, otherwise
9266      # it will coredump.
9267      lt_prog_compiler_pic='-fPIC -shared'
9268      ;;
9269
9270    sysv4*MP*)
9271      if test -d /usr/nec; then
9272	lt_prog_compiler_pic=-Kconform_pic
9273      fi
9274      ;;
9275
9276    *)
9277      lt_prog_compiler_pic='-fPIC'
9278      ;;
9279    esac
9280
9281    case $cc_basename in
9282    nvcc*) # Cuda Compiler Driver 2.2
9283      lt_prog_compiler_wl='-Xlinker '
9284      if test -n "$lt_prog_compiler_pic"; then
9285        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9286      fi
9287      ;;
9288    esac
9289  else
9290    # PORTME Check for flag to pass linker flags through the system compiler.
9291    case $host_os in
9292    aix*)
9293      lt_prog_compiler_wl='-Wl,'
9294      if test ia64 = "$host_cpu"; then
9295	# AIX 5 now supports IA64 processor
9296	lt_prog_compiler_static='-Bstatic'
9297      else
9298	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9299      fi
9300      ;;
9301
9302    darwin* | rhapsody*)
9303      # PIC is the default on this platform
9304      # Common symbols not allowed in MH_DYLIB files
9305      lt_prog_compiler_pic='-fno-common'
9306      case $cc_basename in
9307      nagfor*)
9308        # NAG Fortran compiler
9309        lt_prog_compiler_wl='-Wl,-Wl,,'
9310        lt_prog_compiler_pic='-PIC'
9311        lt_prog_compiler_static='-Bstatic'
9312        ;;
9313      esac
9314      ;;
9315
9316    mingw* | cygwin* | pw32* | os2* | cegcc*)
9317      # This hack is so that the source file can tell whether it is being
9318      # built for inclusion in a dll (and should export symbols for example).
9319      lt_prog_compiler_pic='-DDLL_EXPORT'
9320      case $host_os in
9321      os2*)
9322	lt_prog_compiler_static='$wl-static'
9323	;;
9324      esac
9325      ;;
9326
9327    hpux9* | hpux10* | hpux11*)
9328      lt_prog_compiler_wl='-Wl,'
9329      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9330      # not for PA HP-UX.
9331      case $host_cpu in
9332      hppa*64*|ia64*)
9333	# +Z the default
9334	;;
9335      *)
9336	lt_prog_compiler_pic='+Z'
9337	;;
9338      esac
9339      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9340      lt_prog_compiler_static='$wl-a ${wl}archive'
9341      ;;
9342
9343    irix5* | irix6* | nonstopux*)
9344      lt_prog_compiler_wl='-Wl,'
9345      # PIC (with -KPIC) is the default.
9346      lt_prog_compiler_static='-non_shared'
9347      ;;
9348
9349    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9350      case $cc_basename in
9351      # old Intel for x86_64, which still supported -KPIC.
9352      ecc*)
9353	lt_prog_compiler_wl='-Wl,'
9354	lt_prog_compiler_pic='-KPIC'
9355	lt_prog_compiler_static='-static'
9356        ;;
9357      # icc used to be incompatible with GCC.
9358      # ICC 10 doesn't accept -KPIC any more.
9359      icc* | ifort*)
9360	lt_prog_compiler_wl='-Wl,'
9361	lt_prog_compiler_pic='-fPIC'
9362	lt_prog_compiler_static='-static'
9363        ;;
9364      # Lahey Fortran 8.1.
9365      lf95*)
9366	lt_prog_compiler_wl='-Wl,'
9367	lt_prog_compiler_pic='--shared'
9368	lt_prog_compiler_static='--static'
9369	;;
9370      nagfor*)
9371	# NAG Fortran compiler
9372	lt_prog_compiler_wl='-Wl,-Wl,,'
9373	lt_prog_compiler_pic='-PIC'
9374	lt_prog_compiler_static='-Bstatic'
9375	;;
9376      tcc*)
9377	# Fabrice Bellard et al's Tiny C Compiler
9378	lt_prog_compiler_wl='-Wl,'
9379	lt_prog_compiler_pic='-fPIC'
9380	lt_prog_compiler_static='-static'
9381	;;
9382      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9383        # Portland Group compilers (*not* the Pentium gcc compiler,
9384	# which looks to be a dead project)
9385	lt_prog_compiler_wl='-Wl,'
9386	lt_prog_compiler_pic='-fpic'
9387	lt_prog_compiler_static='-Bstatic'
9388        ;;
9389      ccc*)
9390        lt_prog_compiler_wl='-Wl,'
9391        # All Alpha code is PIC.
9392        lt_prog_compiler_static='-non_shared'
9393        ;;
9394      xl* | bgxl* | bgf* | mpixl*)
9395	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9396	lt_prog_compiler_wl='-Wl,'
9397	lt_prog_compiler_pic='-qpic'
9398	lt_prog_compiler_static='-qstaticlink'
9399	;;
9400      *)
9401	case `$CC -V 2>&1 | sed 5q` in
9402	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9403	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9404	  lt_prog_compiler_pic='-KPIC'
9405	  lt_prog_compiler_static='-Bstatic'
9406	  lt_prog_compiler_wl=''
9407	  ;;
9408	*Sun\ F* | *Sun*Fortran*)
9409	  lt_prog_compiler_pic='-KPIC'
9410	  lt_prog_compiler_static='-Bstatic'
9411	  lt_prog_compiler_wl='-Qoption ld '
9412	  ;;
9413	*Sun\ C*)
9414	  # Sun C 5.9
9415	  lt_prog_compiler_pic='-KPIC'
9416	  lt_prog_compiler_static='-Bstatic'
9417	  lt_prog_compiler_wl='-Wl,'
9418	  ;;
9419        *Intel*\ [CF]*Compiler*)
9420	  lt_prog_compiler_wl='-Wl,'
9421	  lt_prog_compiler_pic='-fPIC'
9422	  lt_prog_compiler_static='-static'
9423	  ;;
9424	*Portland\ Group*)
9425	  lt_prog_compiler_wl='-Wl,'
9426	  lt_prog_compiler_pic='-fpic'
9427	  lt_prog_compiler_static='-Bstatic'
9428	  ;;
9429	esac
9430	;;
9431      esac
9432      ;;
9433
9434    newsos6)
9435      lt_prog_compiler_pic='-KPIC'
9436      lt_prog_compiler_static='-Bstatic'
9437      ;;
9438
9439    *nto* | *qnx*)
9440      # QNX uses GNU C++, but need to define -shared option too, otherwise
9441      # it will coredump.
9442      lt_prog_compiler_pic='-fPIC -shared'
9443      ;;
9444
9445    osf3* | osf4* | osf5*)
9446      lt_prog_compiler_wl='-Wl,'
9447      # All OSF/1 code is PIC.
9448      lt_prog_compiler_static='-non_shared'
9449      ;;
9450
9451    rdos*)
9452      lt_prog_compiler_static='-non_shared'
9453      ;;
9454
9455    solaris*)
9456      lt_prog_compiler_pic='-KPIC'
9457      lt_prog_compiler_static='-Bstatic'
9458      case $cc_basename in
9459      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9460	lt_prog_compiler_wl='-Qoption ld ';;
9461      *)
9462	lt_prog_compiler_wl='-Wl,';;
9463      esac
9464      ;;
9465
9466    sunos4*)
9467      lt_prog_compiler_wl='-Qoption ld '
9468      lt_prog_compiler_pic='-PIC'
9469      lt_prog_compiler_static='-Bstatic'
9470      ;;
9471
9472    sysv4 | sysv4.2uw2* | sysv4.3*)
9473      lt_prog_compiler_wl='-Wl,'
9474      lt_prog_compiler_pic='-KPIC'
9475      lt_prog_compiler_static='-Bstatic'
9476      ;;
9477
9478    sysv4*MP*)
9479      if test -d /usr/nec; then
9480	lt_prog_compiler_pic='-Kconform_pic'
9481	lt_prog_compiler_static='-Bstatic'
9482      fi
9483      ;;
9484
9485    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9486      lt_prog_compiler_wl='-Wl,'
9487      lt_prog_compiler_pic='-KPIC'
9488      lt_prog_compiler_static='-Bstatic'
9489      ;;
9490
9491    unicos*)
9492      lt_prog_compiler_wl='-Wl,'
9493      lt_prog_compiler_can_build_shared=no
9494      ;;
9495
9496    uts4*)
9497      lt_prog_compiler_pic='-pic'
9498      lt_prog_compiler_static='-Bstatic'
9499      ;;
9500
9501    *)
9502      lt_prog_compiler_can_build_shared=no
9503      ;;
9504    esac
9505  fi
9506
9507case $host_os in
9508  # For platforms that do not support PIC, -DPIC is meaningless:
9509  *djgpp*)
9510    lt_prog_compiler_pic=
9511    ;;
9512  *)
9513    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9514    ;;
9515esac
9516
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9518$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9519if ${lt_cv_prog_compiler_pic+:} false; then :
9520  $as_echo_n "(cached) " >&6
9521else
9522  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9523fi
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9525$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9526lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9527
9528#
9529# Check to make sure the PIC flag actually works.
9530#
9531if test -n "$lt_prog_compiler_pic"; then
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9533$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9534if ${lt_cv_prog_compiler_pic_works+:} false; then :
9535  $as_echo_n "(cached) " >&6
9536else
9537  lt_cv_prog_compiler_pic_works=no
9538   ac_outfile=conftest.$ac_objext
9539   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9540   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9541   # Insert the option either (1) after the last *FLAGS variable, or
9542   # (2) before a word containing "conftest.", or (3) at the end.
9543   # Note that $ac_compile itself does not contain backslashes and begins
9544   # with a dollar sign (not a hyphen), so the echo should work correctly.
9545   # The option is referenced via a variable to avoid confusing sed.
9546   lt_compile=`echo "$ac_compile" | $SED \
9547   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549   -e 's:$: $lt_compiler_flag:'`
9550   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9551   (eval "$lt_compile" 2>conftest.err)
9552   ac_status=$?
9553   cat conftest.err >&5
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   if (exit $ac_status) && test -s "$ac_outfile"; then
9556     # The compiler can only warn and ignore the option if not recognized
9557     # So say no if there are warnings other than the usual output.
9558     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9559     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9561       lt_cv_prog_compiler_pic_works=yes
9562     fi
9563   fi
9564   $RM conftest*
9565
9566fi
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9568$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9569
9570if test yes = "$lt_cv_prog_compiler_pic_works"; then
9571    case $lt_prog_compiler_pic in
9572     "" | " "*) ;;
9573     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9574     esac
9575else
9576    lt_prog_compiler_pic=
9577     lt_prog_compiler_can_build_shared=no
9578fi
9579
9580fi
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592#
9593# Check to make sure the static flag actually works.
9594#
9595wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9597$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9598if ${lt_cv_prog_compiler_static_works+:} false; then :
9599  $as_echo_n "(cached) " >&6
9600else
9601  lt_cv_prog_compiler_static_works=no
9602   save_LDFLAGS=$LDFLAGS
9603   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9604   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9605   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9606     # The linker can only warn and ignore the option if not recognized
9607     # So say no if there are warnings
9608     if test -s conftest.err; then
9609       # Append any errors to the config.log.
9610       cat conftest.err 1>&5
9611       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9612       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9613       if diff conftest.exp conftest.er2 >/dev/null; then
9614         lt_cv_prog_compiler_static_works=yes
9615       fi
9616     else
9617       lt_cv_prog_compiler_static_works=yes
9618     fi
9619   fi
9620   $RM -r conftest*
9621   LDFLAGS=$save_LDFLAGS
9622
9623fi
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9625$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9626
9627if test yes = "$lt_cv_prog_compiler_static_works"; then
9628    :
9629else
9630    lt_prog_compiler_static=
9631fi
9632
9633
9634
9635
9636
9637
9638
9639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9640$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9641if ${lt_cv_prog_compiler_c_o+:} false; then :
9642  $as_echo_n "(cached) " >&6
9643else
9644  lt_cv_prog_compiler_c_o=no
9645   $RM -r conftest 2>/dev/null
9646   mkdir conftest
9647   cd conftest
9648   mkdir out
9649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9650
9651   lt_compiler_flag="-o out/conftest2.$ac_objext"
9652   # Insert the option either (1) after the last *FLAGS variable, or
9653   # (2) before a word containing "conftest.", or (3) at the end.
9654   # Note that $ac_compile itself does not contain backslashes and begins
9655   # with a dollar sign (not a hyphen), so the echo should work correctly.
9656   lt_compile=`echo "$ac_compile" | $SED \
9657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9659   -e 's:$: $lt_compiler_flag:'`
9660   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9661   (eval "$lt_compile" 2>out/conftest.err)
9662   ac_status=$?
9663   cat out/conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9666   then
9667     # The compiler can only warn and ignore the option if not recognized
9668     # So say no if there are warnings
9669     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9670     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9671     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9672       lt_cv_prog_compiler_c_o=yes
9673     fi
9674   fi
9675   chmod u+w . 2>&5
9676   $RM conftest*
9677   # SGI C++ compiler will create directory out/ii_files/ for
9678   # template instantiation
9679   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9680   $RM out/* && rmdir out
9681   cd ..
9682   $RM -r conftest
9683   $RM conftest*
9684
9685fi
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9687$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9688
9689
9690
9691
9692
9693
9694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9695$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9696if ${lt_cv_prog_compiler_c_o+:} false; then :
9697  $as_echo_n "(cached) " >&6
9698else
9699  lt_cv_prog_compiler_c_o=no
9700   $RM -r conftest 2>/dev/null
9701   mkdir conftest
9702   cd conftest
9703   mkdir out
9704   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705
9706   lt_compiler_flag="-o out/conftest2.$ac_objext"
9707   # Insert the option either (1) after the last *FLAGS variable, or
9708   # (2) before a word containing "conftest.", or (3) at the end.
9709   # Note that $ac_compile itself does not contain backslashes and begins
9710   # with a dollar sign (not a hyphen), so the echo should work correctly.
9711   lt_compile=`echo "$ac_compile" | $SED \
9712   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714   -e 's:$: $lt_compiler_flag:'`
9715   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9716   (eval "$lt_compile" 2>out/conftest.err)
9717   ac_status=$?
9718   cat out/conftest.err >&5
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9721   then
9722     # The compiler can only warn and ignore the option if not recognized
9723     # So say no if there are warnings
9724     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9725     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9726     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9727       lt_cv_prog_compiler_c_o=yes
9728     fi
9729   fi
9730   chmod u+w . 2>&5
9731   $RM conftest*
9732   # SGI C++ compiler will create directory out/ii_files/ for
9733   # template instantiation
9734   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9735   $RM out/* && rmdir out
9736   cd ..
9737   $RM -r conftest
9738   $RM conftest*
9739
9740fi
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9742$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9743
9744
9745
9746
9747hard_links=nottested
9748if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9749  # do not overwrite the value of need_locks provided by the user
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9751$as_echo_n "checking if we can lock with hard links... " >&6; }
9752  hard_links=yes
9753  $RM conftest*
9754  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9755  touch conftest.a
9756  ln conftest.a conftest.b 2>&5 || hard_links=no
9757  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9759$as_echo "$hard_links" >&6; }
9760  if test no = "$hard_links"; then
9761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9762$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9763    need_locks=warn
9764  fi
9765else
9766  need_locks=no
9767fi
9768
9769
9770
9771
9772
9773
9774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9776
9777  runpath_var=
9778  allow_undefined_flag=
9779  always_export_symbols=no
9780  archive_cmds=
9781  archive_expsym_cmds=
9782  compiler_needs_object=no
9783  enable_shared_with_static_runtimes=no
9784  export_dynamic_flag_spec=
9785  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9786  hardcode_automatic=no
9787  hardcode_direct=no
9788  hardcode_direct_absolute=no
9789  hardcode_libdir_flag_spec=
9790  hardcode_libdir_separator=
9791  hardcode_minus_L=no
9792  hardcode_shlibpath_var=unsupported
9793  inherit_rpath=no
9794  link_all_deplibs=unknown
9795  module_cmds=
9796  module_expsym_cmds=
9797  old_archive_from_new_cmds=
9798  old_archive_from_expsyms_cmds=
9799  thread_safe_flag_spec=
9800  whole_archive_flag_spec=
9801  # include_expsyms should be a list of space-separated symbols to be *always*
9802  # included in the symbol list
9803  include_expsyms=
9804  # exclude_expsyms can be an extended regexp of symbols to exclude
9805  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9806  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9807  # as well as any symbol that contains 'd'.
9808  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9809  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9810  # platforms (ab)use it in PIC code, but their linkers get confused if
9811  # the symbol is explicitly referenced.  Since portable code cannot
9812  # rely on this symbol name, it's probably fine to never include it in
9813  # preloaded symbol tables.
9814  # Exclude shared library initialization/finalization symbols.
9815  extract_expsyms_cmds=
9816
9817  case $host_os in
9818  cygwin* | mingw* | pw32* | cegcc*)
9819    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9820    # When not using gcc, we currently assume that we are using
9821    # Microsoft Visual C++.
9822    if test yes != "$GCC"; then
9823      with_gnu_ld=no
9824    fi
9825    ;;
9826  interix*)
9827    # we just hope/assume this is gcc and not c89 (= MSVC++)
9828    with_gnu_ld=yes
9829    ;;
9830  openbsd* | bitrig*)
9831    with_gnu_ld=no
9832    ;;
9833  esac
9834
9835  ld_shlibs=yes
9836
9837  # On some targets, GNU ld is compatible enough with the native linker
9838  # that we're better off using the native interface for both.
9839  lt_use_gnu_ld_interface=no
9840  if test yes = "$with_gnu_ld"; then
9841    case $host_os in
9842      aix*)
9843	# The AIX port of GNU ld has always aspired to compatibility
9844	# with the native linker.  However, as the warning in the GNU ld
9845	# block says, versions before 2.19.5* couldn't really create working
9846	# shared libraries, regardless of the interface used.
9847	case `$LD -v 2>&1` in
9848	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9849	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9850	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9851	  *)
9852	    lt_use_gnu_ld_interface=yes
9853	    ;;
9854	esac
9855	;;
9856      *)
9857	lt_use_gnu_ld_interface=yes
9858	;;
9859    esac
9860  fi
9861
9862  if test yes = "$lt_use_gnu_ld_interface"; then
9863    # If archive_cmds runs LD, not CC, wlarc should be empty
9864    wlarc='$wl'
9865
9866    # Set some defaults for GNU ld with shared library support. These
9867    # are reset later if shared libraries are not supported. Putting them
9868    # here allows them to be overridden if necessary.
9869    runpath_var=LD_RUN_PATH
9870    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9871    export_dynamic_flag_spec='$wl--export-dynamic'
9872    # ancient GNU ld didn't support --whole-archive et. al.
9873    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9874      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9875    else
9876      whole_archive_flag_spec=
9877    fi
9878    supports_anon_versioning=no
9879    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9880      *GNU\ gold*) supports_anon_versioning=yes ;;
9881      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9882      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9883      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9884      *\ 2.11.*) ;; # other 2.11 versions
9885      *) supports_anon_versioning=yes ;;
9886    esac
9887
9888    # See if GNU ld supports shared libraries.
9889    case $host_os in
9890    aix[3-9]*)
9891      # On AIX/PPC, the GNU linker is very broken
9892      if test ia64 != "$host_cpu"; then
9893	ld_shlibs=no
9894	cat <<_LT_EOF 1>&2
9895
9896*** Warning: the GNU linker, at least up to release 2.19, is reported
9897*** to be unable to reliably create shared libraries on AIX.
9898*** Therefore, libtool is disabling shared libraries support.  If you
9899*** really care for shared libraries, you may want to install binutils
9900*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9901*** You will then need to restart the configuration process.
9902
9903_LT_EOF
9904      fi
9905      ;;
9906
9907    amigaos*)
9908      case $host_cpu in
9909      powerpc)
9910            # see comment about AmigaOS4 .so support
9911            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9912            archive_expsym_cmds=''
9913        ;;
9914      m68k)
9915            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)'
9916            hardcode_libdir_flag_spec='-L$libdir'
9917            hardcode_minus_L=yes
9918        ;;
9919      esac
9920      ;;
9921
9922    beos*)
9923      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9924	allow_undefined_flag=unsupported
9925	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9926	# support --undefined.  This deserves some investigation.  FIXME
9927	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9928      else
9929	ld_shlibs=no
9930      fi
9931      ;;
9932
9933    cygwin* | mingw* | pw32* | cegcc*)
9934      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9935      # as there is no search path for DLLs.
9936      hardcode_libdir_flag_spec='-L$libdir'
9937      export_dynamic_flag_spec='$wl--export-all-symbols'
9938      allow_undefined_flag=unsupported
9939      always_export_symbols=no
9940      enable_shared_with_static_runtimes=yes
9941      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'
9942      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9943
9944      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9945        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9946	# If the export-symbols file already is a .def file, use it as
9947	# is; otherwise, prepend EXPORTS...
9948	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9949          cp $export_symbols $output_objdir/$soname.def;
9950        else
9951          echo EXPORTS > $output_objdir/$soname.def;
9952          cat $export_symbols >> $output_objdir/$soname.def;
9953        fi~
9954        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9955      else
9956	ld_shlibs=no
9957      fi
9958      ;;
9959
9960    haiku*)
9961      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9962      link_all_deplibs=yes
9963      ;;
9964
9965    os2*)
9966      hardcode_libdir_flag_spec='-L$libdir'
9967      hardcode_minus_L=yes
9968      allow_undefined_flag=unsupported
9969      shrext_cmds=.dll
9970      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9971	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9972	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9973	$ECHO EXPORTS >> $output_objdir/$libname.def~
9974	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9975	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9976	emximp -o $lib $output_objdir/$libname.def'
9977      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9978	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9979	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9980	$ECHO EXPORTS >> $output_objdir/$libname.def~
9981	prefix_cmds="$SED"~
9982	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9983	  prefix_cmds="$prefix_cmds -e 1d";
9984	fi~
9985	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9986	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9987	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9988	emximp -o $lib $output_objdir/$libname.def'
9989      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9990      enable_shared_with_static_runtimes=yes
9991      ;;
9992
9993    interix[3-9]*)
9994      hardcode_direct=no
9995      hardcode_shlibpath_var=no
9996      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9997      export_dynamic_flag_spec='$wl-E'
9998      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9999      # Instead, shared libraries are loaded at an image base (0x10000000 by
10000      # default) and relocated if they conflict, which is a slow very memory
10001      # consuming and fragmenting process.  To avoid this, we pick a random,
10002      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10003      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10004      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10005      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'
10006      ;;
10007
10008    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10009      tmp_diet=no
10010      if test linux-dietlibc = "$host_os"; then
10011	case $cc_basename in
10012	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10013	esac
10014      fi
10015      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10016	 && test no = "$tmp_diet"
10017      then
10018	tmp_addflag=' $pic_flag'
10019	tmp_sharedflag='-shared'
10020	case $cc_basename,$host_cpu in
10021        pgcc*)				# Portland Group C compiler
10022	  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'
10023	  tmp_addflag=' $pic_flag'
10024	  ;;
10025	pgf77* | pgf90* | pgf95* | pgfortran*)
10026					# Portland Group f77 and f90 compilers
10027	  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'
10028	  tmp_addflag=' $pic_flag -Mnomain' ;;
10029	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10030	  tmp_addflag=' -i_dynamic' ;;
10031	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10032	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10033	ifc* | ifort*)			# Intel Fortran compiler
10034	  tmp_addflag=' -nofor_main' ;;
10035	lf95*)				# Lahey Fortran 8.1
10036	  whole_archive_flag_spec=
10037	  tmp_sharedflag='--shared' ;;
10038        nagfor*)                        # NAGFOR 5.3
10039          tmp_sharedflag='-Wl,-shared' ;;
10040	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10041	  tmp_sharedflag='-qmkshrobj'
10042	  tmp_addflag= ;;
10043	nvcc*)	# Cuda Compiler Driver 2.2
10044	  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'
10045	  compiler_needs_object=yes
10046	  ;;
10047	esac
10048	case `$CC -V 2>&1 | sed 5q` in
10049	*Sun\ C*)			# Sun C 5.9
10050	  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'
10051	  compiler_needs_object=yes
10052	  tmp_sharedflag='-G' ;;
10053	*Sun\ F*)			# Sun Fortran 8.3
10054	  tmp_sharedflag='-G' ;;
10055	esac
10056	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10057
10058        if test yes = "$supports_anon_versioning"; then
10059          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10060            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10061            echo "local: *; };" >> $output_objdir/$libname.ver~
10062            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10063        fi
10064
10065	case $cc_basename in
10066	tcc*)
10067	  export_dynamic_flag_spec='-rdynamic'
10068	  ;;
10069	xlf* | bgf* | bgxlf* | mpixlf*)
10070	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10071	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10072	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10073	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10074	  if test yes = "$supports_anon_versioning"; then
10075	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10076              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10077              echo "local: *; };" >> $output_objdir/$libname.ver~
10078              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10079	  fi
10080	  ;;
10081	esac
10082      else
10083        ld_shlibs=no
10084      fi
10085      ;;
10086
10087    netbsd*)
10088      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10089	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10090	wlarc=
10091      else
10092	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10093	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10094      fi
10095      ;;
10096
10097    solaris*)
10098      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10099	ld_shlibs=no
10100	cat <<_LT_EOF 1>&2
10101
10102*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10103*** create shared libraries on Solaris systems.  Therefore, libtool
10104*** is disabling shared libraries support.  We urge you to upgrade GNU
10105*** binutils to release 2.9.1 or newer.  Another option is to modify
10106*** your PATH or compiler configuration so that the native linker is
10107*** used, and then restart.
10108
10109_LT_EOF
10110      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10111	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10112	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10113      else
10114	ld_shlibs=no
10115      fi
10116      ;;
10117
10118    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10119      case `$LD -v 2>&1` in
10120        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10121	ld_shlibs=no
10122	cat <<_LT_EOF 1>&2
10123
10124*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10125*** reliably create shared libraries on SCO systems.  Therefore, libtool
10126*** is disabling shared libraries support.  We urge you to upgrade GNU
10127*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10128*** your PATH or compiler configuration so that the native linker is
10129*** used, and then restart.
10130
10131_LT_EOF
10132	;;
10133	*)
10134	  # For security reasons, it is highly recommended that you always
10135	  # use absolute paths for naming shared libraries, and exclude the
10136	  # DT_RUNPATH tag from executables and libraries.  But doing so
10137	  # requires that you compile everything twice, which is a pain.
10138	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10139	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10140	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10141	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10142	  else
10143	    ld_shlibs=no
10144	  fi
10145	;;
10146      esac
10147      ;;
10148
10149    sunos4*)
10150      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10151      wlarc=
10152      hardcode_direct=yes
10153      hardcode_shlibpath_var=no
10154      ;;
10155
10156    *)
10157      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10158	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10159	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10160      else
10161	ld_shlibs=no
10162      fi
10163      ;;
10164    esac
10165
10166    if test no = "$ld_shlibs"; then
10167      runpath_var=
10168      hardcode_libdir_flag_spec=
10169      export_dynamic_flag_spec=
10170      whole_archive_flag_spec=
10171    fi
10172  else
10173    # PORTME fill in a description of your system's linker (not GNU ld)
10174    case $host_os in
10175    aix3*)
10176      allow_undefined_flag=unsupported
10177      always_export_symbols=yes
10178      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'
10179      # Note: this linker hardcodes the directories in LIBPATH if there
10180      # are no directories specified by -L.
10181      hardcode_minus_L=yes
10182      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10183	# Neither direct hardcoding nor static linking is supported with a
10184	# broken collect2.
10185	hardcode_direct=unsupported
10186      fi
10187      ;;
10188
10189    aix[4-9]*)
10190      if test ia64 = "$host_cpu"; then
10191	# On IA64, the linker does run time linking by default, so we don't
10192	# have to do anything special.
10193	aix_use_runtimelinking=no
10194	exp_sym_flag='-Bexport'
10195	no_entry_flag=
10196      else
10197	# If we're using GNU nm, then we don't want the "-C" option.
10198	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10199	# Without the "-l" option, or with the "-B" option, AIX nm treats
10200	# weak defined symbols like other global defined symbols, whereas
10201	# GNU nm marks them as "W".
10202	# While the 'weak' keyword is ignored in the Export File, we need
10203	# it in the Import File for the 'aix-soname' feature, so we have
10204	# to replace the "-B" option with "-P" for AIX nm.
10205	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10206	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10207	else
10208	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10209	fi
10210	aix_use_runtimelinking=no
10211
10212	# Test if we are trying to use run time linking or normal
10213	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10214	# have runtime linking enabled, and use it for executables.
10215	# For shared libraries, we enable/disable runtime linking
10216	# depending on the kind of the shared library created -
10217	# when "with_aix_soname,aix_use_runtimelinking" is:
10218	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10219	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10220	#            lib.a           static archive
10221	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10222	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10223	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10224	#            lib.a(lib.so.V) shared, rtl:no
10225	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10226	#            lib.a           static archive
10227	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10228	  for ld_flag in $LDFLAGS; do
10229	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10230	    aix_use_runtimelinking=yes
10231	    break
10232	  fi
10233	  done
10234	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10235	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10236	    # so we don't have lib.a shared libs to link our executables.
10237	    # We have to force runtime linking in this case.
10238	    aix_use_runtimelinking=yes
10239	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10240	  fi
10241	  ;;
10242	esac
10243
10244	exp_sym_flag='-bexport'
10245	no_entry_flag='-bnoentry'
10246      fi
10247
10248      # When large executables or shared objects are built, AIX ld can
10249      # have problems creating the table of contents.  If linking a library
10250      # or program results in "error TOC overflow" add -mminimal-toc to
10251      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10252      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10253
10254      archive_cmds=''
10255      hardcode_direct=yes
10256      hardcode_direct_absolute=yes
10257      hardcode_libdir_separator=':'
10258      link_all_deplibs=yes
10259      file_list_spec='$wl-f,'
10260      case $with_aix_soname,$aix_use_runtimelinking in
10261      aix,*) ;; # traditional, no import file
10262      svr4,* | *,yes) # use import file
10263	# The Import File defines what to hardcode.
10264	hardcode_direct=no
10265	hardcode_direct_absolute=no
10266	;;
10267      esac
10268
10269      if test yes = "$GCC"; then
10270	case $host_os in aix4.[012]|aix4.[012].*)
10271	# We only want to do this on AIX 4.2 and lower, the check
10272	# below for broken collect2 doesn't work under 4.3+
10273	  collect2name=`$CC -print-prog-name=collect2`
10274	  if test -f "$collect2name" &&
10275	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10276	  then
10277	  # We have reworked collect2
10278	  :
10279	  else
10280	  # We have old collect2
10281	  hardcode_direct=unsupported
10282	  # It fails to find uninstalled libraries when the uninstalled
10283	  # path is not listed in the libpath.  Setting hardcode_minus_L
10284	  # to unsupported forces relinking
10285	  hardcode_minus_L=yes
10286	  hardcode_libdir_flag_spec='-L$libdir'
10287	  hardcode_libdir_separator=
10288	  fi
10289	  ;;
10290	esac
10291	shared_flag='-shared'
10292	if test yes = "$aix_use_runtimelinking"; then
10293	  shared_flag="$shared_flag "'$wl-G'
10294	fi
10295	# Need to ensure runtime linking is disabled for the traditional
10296	# shared library, or the linker may eventually find shared libraries
10297	# /with/ Import File - we do not want to mix them.
10298	shared_flag_aix='-shared'
10299	shared_flag_svr4='-shared $wl-G'
10300      else
10301	# not using gcc
10302	if test ia64 = "$host_cpu"; then
10303	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10304	# chokes on -Wl,-G. The following line is correct:
10305	  shared_flag='-G'
10306	else
10307	  if test yes = "$aix_use_runtimelinking"; then
10308	    shared_flag='$wl-G'
10309	  else
10310	    shared_flag='$wl-bM:SRE'
10311	  fi
10312	  shared_flag_aix='$wl-bM:SRE'
10313	  shared_flag_svr4='$wl-G'
10314	fi
10315      fi
10316
10317      export_dynamic_flag_spec='$wl-bexpall'
10318      # It seems that -bexpall does not export symbols beginning with
10319      # underscore (_), so it is better to generate a list of symbols to export.
10320      always_export_symbols=yes
10321      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10322	# Warning - without using the other runtime loading flags (-brtl),
10323	# -berok will link without error, but may produce a broken library.
10324	allow_undefined_flag='-berok'
10325        # Determine the default libpath from the value encoded in an
10326        # empty executable.
10327        if test set = "${lt_cv_aix_libpath+set}"; then
10328  aix_libpath=$lt_cv_aix_libpath
10329else
10330  if ${lt_cv_aix_libpath_+:} false; then :
10331  $as_echo_n "(cached) " >&6
10332else
10333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334/* end confdefs.h.  */
10335
10336int
10337main ()
10338{
10339
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344if ac_fn_c_try_link "$LINENO"; then :
10345
10346  lt_aix_libpath_sed='
10347      /Import File Strings/,/^$/ {
10348	  /^0/ {
10349	      s/^0  *\([^ ]*\) *$/\1/
10350	      p
10351	  }
10352      }'
10353  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354  # Check for a 64-bit object if we didn't find anything.
10355  if test -z "$lt_cv_aix_libpath_"; then
10356    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10357  fi
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361  if test -z "$lt_cv_aix_libpath_"; then
10362    lt_cv_aix_libpath_=/usr/lib:/lib
10363  fi
10364
10365fi
10366
10367  aix_libpath=$lt_cv_aix_libpath_
10368fi
10369
10370        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10371        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10372      else
10373	if test ia64 = "$host_cpu"; then
10374	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10375	  allow_undefined_flag="-z nodefs"
10376	  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"
10377	else
10378	 # Determine the default libpath from the value encoded in an
10379	 # empty executable.
10380	 if test set = "${lt_cv_aix_libpath+set}"; then
10381  aix_libpath=$lt_cv_aix_libpath
10382else
10383  if ${lt_cv_aix_libpath_+:} false; then :
10384  $as_echo_n "(cached) " >&6
10385else
10386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388
10389int
10390main ()
10391{
10392
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_c_try_link "$LINENO"; then :
10398
10399  lt_aix_libpath_sed='
10400      /Import File Strings/,/^$/ {
10401	  /^0/ {
10402	      s/^0  *\([^ ]*\) *$/\1/
10403	      p
10404	  }
10405      }'
10406  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10407  # Check for a 64-bit object if we didn't find anything.
10408  if test -z "$lt_cv_aix_libpath_"; then
10409    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410  fi
10411fi
10412rm -f core conftest.err conftest.$ac_objext \
10413    conftest$ac_exeext conftest.$ac_ext
10414  if test -z "$lt_cv_aix_libpath_"; then
10415    lt_cv_aix_libpath_=/usr/lib:/lib
10416  fi
10417
10418fi
10419
10420  aix_libpath=$lt_cv_aix_libpath_
10421fi
10422
10423	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10424	  # Warning - without using the other run time loading flags,
10425	  # -berok will link without error, but may produce a broken library.
10426	  no_undefined_flag=' $wl-bernotok'
10427	  allow_undefined_flag=' $wl-berok'
10428	  if test yes = "$with_gnu_ld"; then
10429	    # We only use this code for GNU lds that support --whole-archive.
10430	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10431	  else
10432	    # Exported symbols can be pulled into shared objects from archives
10433	    whole_archive_flag_spec='$convenience'
10434	  fi
10435	  archive_cmds_need_lc=yes
10436	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10437	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10438	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10439	  if test svr4 != "$with_aix_soname"; then
10440	    # This is similar to how AIX traditionally builds its shared libraries.
10441	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10442	  fi
10443	  if test aix != "$with_aix_soname"; then
10444	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10445	  else
10446	    # used by -dlpreopen to get the symbols
10447	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10448	  fi
10449	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10450	fi
10451      fi
10452      ;;
10453
10454    amigaos*)
10455      case $host_cpu in
10456      powerpc)
10457            # see comment about AmigaOS4 .so support
10458            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10459            archive_expsym_cmds=''
10460        ;;
10461      m68k)
10462            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)'
10463            hardcode_libdir_flag_spec='-L$libdir'
10464            hardcode_minus_L=yes
10465        ;;
10466      esac
10467      ;;
10468
10469    bsdi[45]*)
10470      export_dynamic_flag_spec=-rdynamic
10471      ;;
10472
10473    cygwin* | mingw* | pw32* | cegcc*)
10474      # When not using gcc, we currently assume that we are using
10475      # Microsoft Visual C++.
10476      # hardcode_libdir_flag_spec is actually meaningless, as there is
10477      # no search path for DLLs.
10478      case $cc_basename in
10479      cl*)
10480	# Native MSVC
10481	hardcode_libdir_flag_spec=' '
10482	allow_undefined_flag=unsupported
10483	always_export_symbols=yes
10484	file_list_spec='@'
10485	# Tell ltmain to make .lib files, not .a files.
10486	libext=lib
10487	# Tell ltmain to make .dll files, not .so files.
10488	shrext_cmds=.dll
10489	# FIXME: Setting linknames here is a bad hack.
10490	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10491	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10492            cp "$export_symbols" "$output_objdir/$soname.def";
10493            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10494          else
10495            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10496          fi~
10497          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10498          linknames='
10499	# The linker will not automatically build a static lib if we build a DLL.
10500	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10501	enable_shared_with_static_runtimes=yes
10502	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10503	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10504	# Don't use ranlib
10505	old_postinstall_cmds='chmod 644 $oldlib'
10506	postlink_cmds='lt_outputfile="@OUTPUT@"~
10507          lt_tool_outputfile="@TOOL_OUTPUT@"~
10508          case $lt_outputfile in
10509            *.exe|*.EXE) ;;
10510            *)
10511              lt_outputfile=$lt_outputfile.exe
10512              lt_tool_outputfile=$lt_tool_outputfile.exe
10513              ;;
10514          esac~
10515          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10516            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10517            $RM "$lt_outputfile.manifest";
10518          fi'
10519	;;
10520      *)
10521	# Assume MSVC wrapper
10522	hardcode_libdir_flag_spec=' '
10523	allow_undefined_flag=unsupported
10524	# Tell ltmain to make .lib files, not .a files.
10525	libext=lib
10526	# Tell ltmain to make .dll files, not .so files.
10527	shrext_cmds=.dll
10528	# FIXME: Setting linknames here is a bad hack.
10529	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10530	# The linker will automatically build a .lib file if we build a DLL.
10531	old_archive_from_new_cmds='true'
10532	# FIXME: Should let the user specify the lib program.
10533	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10534	enable_shared_with_static_runtimes=yes
10535	;;
10536      esac
10537      ;;
10538
10539    darwin* | rhapsody*)
10540
10541
10542  archive_cmds_need_lc=no
10543  hardcode_direct=no
10544  hardcode_automatic=yes
10545  hardcode_shlibpath_var=unsupported
10546  if test yes = "$lt_cv_ld_force_load"; then
10547    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\"`'
10548
10549  else
10550    whole_archive_flag_spec=''
10551  fi
10552  link_all_deplibs=yes
10553  allow_undefined_flag=$_lt_dar_allow_undefined
10554  case $cc_basename in
10555     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10556     *) _lt_dar_can_shared=$GCC ;;
10557  esac
10558  if test yes = "$_lt_dar_can_shared"; then
10559    output_verbose_link_cmd=func_echo_all
10560    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10561    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10562    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"
10563    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"
10564
10565  else
10566  ld_shlibs=no
10567  fi
10568
10569      ;;
10570
10571    dgux*)
10572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573      hardcode_libdir_flag_spec='-L$libdir'
10574      hardcode_shlibpath_var=no
10575      ;;
10576
10577    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10578    # support.  Future versions do this automatically, but an explicit c++rt0.o
10579    # does not break anything, and helps significantly (at the cost of a little
10580    # extra space).
10581    freebsd2.2*)
10582      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10583      hardcode_libdir_flag_spec='-R$libdir'
10584      hardcode_direct=yes
10585      hardcode_shlibpath_var=no
10586      ;;
10587
10588    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10589    freebsd2.*)
10590      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10591      hardcode_direct=yes
10592      hardcode_minus_L=yes
10593      hardcode_shlibpath_var=no
10594      ;;
10595
10596    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10597    freebsd* | dragonfly*)
10598      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10599      hardcode_libdir_flag_spec='-R$libdir'
10600      hardcode_direct=yes
10601      hardcode_shlibpath_var=no
10602      ;;
10603
10604    hpux9*)
10605      if test yes = "$GCC"; then
10606	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10607      else
10608	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10609      fi
10610      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10611      hardcode_libdir_separator=:
10612      hardcode_direct=yes
10613
10614      # hardcode_minus_L: Not really in the search PATH,
10615      # but as the default location of the library.
10616      hardcode_minus_L=yes
10617      export_dynamic_flag_spec='$wl-E'
10618      ;;
10619
10620    hpux10*)
10621      if test yes,no = "$GCC,$with_gnu_ld"; then
10622	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10623      else
10624	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10625      fi
10626      if test no = "$with_gnu_ld"; then
10627	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10628	hardcode_libdir_separator=:
10629	hardcode_direct=yes
10630	hardcode_direct_absolute=yes
10631	export_dynamic_flag_spec='$wl-E'
10632	# hardcode_minus_L: Not really in the search PATH,
10633	# but as the default location of the library.
10634	hardcode_minus_L=yes
10635      fi
10636      ;;
10637
10638    hpux11*)
10639      if test yes,no = "$GCC,$with_gnu_ld"; then
10640	case $host_cpu in
10641	hppa*64*)
10642	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10643	  ;;
10644	ia64*)
10645	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10646	  ;;
10647	*)
10648	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10649	  ;;
10650	esac
10651      else
10652	case $host_cpu in
10653	hppa*64*)
10654	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10655	  ;;
10656	ia64*)
10657	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10658	  ;;
10659	*)
10660
10661	  # Older versions of the 11.00 compiler do not understand -b yet
10662	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10663	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10664$as_echo_n "checking if $CC understands -b... " >&6; }
10665if ${lt_cv_prog_compiler__b+:} false; then :
10666  $as_echo_n "(cached) " >&6
10667else
10668  lt_cv_prog_compiler__b=no
10669   save_LDFLAGS=$LDFLAGS
10670   LDFLAGS="$LDFLAGS -b"
10671   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10672   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10673     # The linker can only warn and ignore the option if not recognized
10674     # So say no if there are warnings
10675     if test -s conftest.err; then
10676       # Append any errors to the config.log.
10677       cat conftest.err 1>&5
10678       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10679       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10680       if diff conftest.exp conftest.er2 >/dev/null; then
10681         lt_cv_prog_compiler__b=yes
10682       fi
10683     else
10684       lt_cv_prog_compiler__b=yes
10685     fi
10686   fi
10687   $RM -r conftest*
10688   LDFLAGS=$save_LDFLAGS
10689
10690fi
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10692$as_echo "$lt_cv_prog_compiler__b" >&6; }
10693
10694if test yes = "$lt_cv_prog_compiler__b"; then
10695    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10696else
10697    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10698fi
10699
10700	  ;;
10701	esac
10702      fi
10703      if test no = "$with_gnu_ld"; then
10704	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10705	hardcode_libdir_separator=:
10706
10707	case $host_cpu in
10708	hppa*64*|ia64*)
10709	  hardcode_direct=no
10710	  hardcode_shlibpath_var=no
10711	  ;;
10712	*)
10713	  hardcode_direct=yes
10714	  hardcode_direct_absolute=yes
10715	  export_dynamic_flag_spec='$wl-E'
10716
10717	  # hardcode_minus_L: Not really in the search PATH,
10718	  # but as the default location of the library.
10719	  hardcode_minus_L=yes
10720	  ;;
10721	esac
10722      fi
10723      ;;
10724
10725    irix5* | irix6* | nonstopux*)
10726      if test yes = "$GCC"; then
10727	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'
10728	# Try to use the -exported_symbol ld option, if it does not
10729	# work, assume that -exports_file does not work either and
10730	# implicitly export all symbols.
10731	# This should be the same for all languages, so no per-tag cache variable.
10732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10733$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10734if ${lt_cv_irix_exported_symbol+:} false; then :
10735  $as_echo_n "(cached) " >&6
10736else
10737  save_LDFLAGS=$LDFLAGS
10738	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10739	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h.  */
10741int foo (void) { return 0; }
10742_ACEOF
10743if ac_fn_c_try_link "$LINENO"; then :
10744  lt_cv_irix_exported_symbol=yes
10745else
10746  lt_cv_irix_exported_symbol=no
10747fi
10748rm -f core conftest.err conftest.$ac_objext \
10749    conftest$ac_exeext conftest.$ac_ext
10750           LDFLAGS=$save_LDFLAGS
10751fi
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10753$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10754	if test yes = "$lt_cv_irix_exported_symbol"; then
10755          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'
10756	fi
10757      else
10758	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'
10759	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'
10760      fi
10761      archive_cmds_need_lc='no'
10762      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10763      hardcode_libdir_separator=:
10764      inherit_rpath=yes
10765      link_all_deplibs=yes
10766      ;;
10767
10768    linux*)
10769      case $cc_basename in
10770      tcc*)
10771	# Fabrice Bellard et al's Tiny C Compiler
10772	ld_shlibs=yes
10773	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10774	;;
10775      esac
10776      ;;
10777
10778    netbsd*)
10779      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10780	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10781      else
10782	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10783      fi
10784      hardcode_libdir_flag_spec='-R$libdir'
10785      hardcode_direct=yes
10786      hardcode_shlibpath_var=no
10787      ;;
10788
10789    newsos6)
10790      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791      hardcode_direct=yes
10792      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10793      hardcode_libdir_separator=:
10794      hardcode_shlibpath_var=no
10795      ;;
10796
10797    *nto* | *qnx*)
10798      ;;
10799
10800    openbsd* | bitrig*)
10801      if test -f /usr/libexec/ld.so; then
10802	hardcode_direct=yes
10803	hardcode_shlibpath_var=no
10804	hardcode_direct_absolute=yes
10805	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10806	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10807	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10808	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10809	  export_dynamic_flag_spec='$wl-E'
10810	else
10811	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10812	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10813	fi
10814      else
10815	ld_shlibs=no
10816      fi
10817      ;;
10818
10819    os2*)
10820      hardcode_libdir_flag_spec='-L$libdir'
10821      hardcode_minus_L=yes
10822      allow_undefined_flag=unsupported
10823      shrext_cmds=.dll
10824      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10825	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10826	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10827	$ECHO EXPORTS >> $output_objdir/$libname.def~
10828	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10829	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10830	emximp -o $lib $output_objdir/$libname.def'
10831      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10832	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10833	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10834	$ECHO EXPORTS >> $output_objdir/$libname.def~
10835	prefix_cmds="$SED"~
10836	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10837	  prefix_cmds="$prefix_cmds -e 1d";
10838	fi~
10839	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10840	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10841	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10842	emximp -o $lib $output_objdir/$libname.def'
10843      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10844      enable_shared_with_static_runtimes=yes
10845      ;;
10846
10847    osf3*)
10848      if test yes = "$GCC"; then
10849	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10850	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'
10851      else
10852	allow_undefined_flag=' -expect_unresolved \*'
10853	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'
10854      fi
10855      archive_cmds_need_lc='no'
10856      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10857      hardcode_libdir_separator=:
10858      ;;
10859
10860    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10861      if test yes = "$GCC"; then
10862	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10863	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'
10864	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10865      else
10866	allow_undefined_flag=' -expect_unresolved \*'
10867	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'
10868	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~
10869          $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'
10870
10871	# Both c and cxx compiler support -rpath directly
10872	hardcode_libdir_flag_spec='-rpath $libdir'
10873      fi
10874      archive_cmds_need_lc='no'
10875      hardcode_libdir_separator=:
10876      ;;
10877
10878    solaris*)
10879      no_undefined_flag=' -z defs'
10880      if test yes = "$GCC"; then
10881	wlarc='$wl'
10882	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10883	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10884          $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'
10885      else
10886	case `$CC -V 2>&1` in
10887	*"Compilers 5.0"*)
10888	  wlarc=''
10889	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10891            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10892	  ;;
10893	*)
10894	  wlarc='$wl'
10895	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10896	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10897            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10898	  ;;
10899	esac
10900      fi
10901      hardcode_libdir_flag_spec='-R$libdir'
10902      hardcode_shlibpath_var=no
10903      case $host_os in
10904      solaris2.[0-5] | solaris2.[0-5].*) ;;
10905      *)
10906	# The compiler driver will combine and reorder linker options,
10907	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10908	# but is careful enough not to reorder.
10909	# Supported since Solaris 2.6 (maybe 2.5.1?)
10910	if test yes = "$GCC"; then
10911	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10912	else
10913	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10914	fi
10915	;;
10916      esac
10917      link_all_deplibs=yes
10918      ;;
10919
10920    sunos4*)
10921      if test sequent = "$host_vendor"; then
10922	# Use $CC to link under sequent, because it throws in some extra .o
10923	# files that make .init and .fini sections work.
10924	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10925      else
10926	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10927      fi
10928      hardcode_libdir_flag_spec='-L$libdir'
10929      hardcode_direct=yes
10930      hardcode_minus_L=yes
10931      hardcode_shlibpath_var=no
10932      ;;
10933
10934    sysv4)
10935      case $host_vendor in
10936	sni)
10937	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938	  hardcode_direct=yes # is this really true???
10939	;;
10940	siemens)
10941	  ## LD is ld it makes a PLAMLIB
10942	  ## CC just makes a GrossModule.
10943	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10944	  reload_cmds='$CC -r -o $output$reload_objs'
10945	  hardcode_direct=no
10946        ;;
10947	motorola)
10948	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10949	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10950	;;
10951      esac
10952      runpath_var='LD_RUN_PATH'
10953      hardcode_shlibpath_var=no
10954      ;;
10955
10956    sysv4.3*)
10957      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958      hardcode_shlibpath_var=no
10959      export_dynamic_flag_spec='-Bexport'
10960      ;;
10961
10962    sysv4*MP*)
10963      if test -d /usr/nec; then
10964	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965	hardcode_shlibpath_var=no
10966	runpath_var=LD_RUN_PATH
10967	hardcode_runpath_var=yes
10968	ld_shlibs=yes
10969      fi
10970      ;;
10971
10972    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10973      no_undefined_flag='$wl-z,text'
10974      archive_cmds_need_lc=no
10975      hardcode_shlibpath_var=no
10976      runpath_var='LD_RUN_PATH'
10977
10978      if test yes = "$GCC"; then
10979	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981      else
10982	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984      fi
10985      ;;
10986
10987    sysv5* | sco3.2v5* | sco5v6*)
10988      # Note: We CANNOT use -z defs as we might desire, because we do not
10989      # link with -lc, and that would cause any symbols used from libc to
10990      # always be unresolved, which means just about no library would
10991      # ever link correctly.  If we're not using GNU ld we use -z text
10992      # though, which does catch some bad symbols but isn't as heavy-handed
10993      # as -z defs.
10994      no_undefined_flag='$wl-z,text'
10995      allow_undefined_flag='$wl-z,nodefs'
10996      archive_cmds_need_lc=no
10997      hardcode_shlibpath_var=no
10998      hardcode_libdir_flag_spec='$wl-R,$libdir'
10999      hardcode_libdir_separator=':'
11000      link_all_deplibs=yes
11001      export_dynamic_flag_spec='$wl-Bexport'
11002      runpath_var='LD_RUN_PATH'
11003
11004      if test yes = "$GCC"; then
11005	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007      else
11008	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010      fi
11011      ;;
11012
11013    uts4*)
11014      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11015      hardcode_libdir_flag_spec='-L$libdir'
11016      hardcode_shlibpath_var=no
11017      ;;
11018
11019    *)
11020      ld_shlibs=no
11021      ;;
11022    esac
11023
11024    if test sni = "$host_vendor"; then
11025      case $host in
11026      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11027	export_dynamic_flag_spec='$wl-Blargedynsym'
11028	;;
11029      esac
11030    fi
11031  fi
11032
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11034$as_echo "$ld_shlibs" >&6; }
11035test no = "$ld_shlibs" && can_build_shared=no
11036
11037with_gnu_ld=$with_gnu_ld
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053#
11054# Do we need to explicitly link libc?
11055#
11056case "x$archive_cmds_need_lc" in
11057x|xyes)
11058  # Assume -lc should be added
11059  archive_cmds_need_lc=yes
11060
11061  if test yes,yes = "$GCC,$enable_shared"; then
11062    case $archive_cmds in
11063    *'~'*)
11064      # FIXME: we may have to deal with multi-command sequences.
11065      ;;
11066    '$CC '*)
11067      # Test whether the compiler implicitly links with -lc since on some
11068      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11069      # to ld, don't add -lc before -lgcc.
11070      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11071$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11072if ${lt_cv_archive_cmds_need_lc+:} false; then :
11073  $as_echo_n "(cached) " >&6
11074else
11075  $RM conftest*
11076	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11077
11078	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11079  (eval $ac_compile) 2>&5
11080  ac_status=$?
11081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082  test $ac_status = 0; } 2>conftest.err; then
11083	  soname=conftest
11084	  lib=conftest
11085	  libobjs=conftest.$ac_objext
11086	  deplibs=
11087	  wl=$lt_prog_compiler_wl
11088	  pic_flag=$lt_prog_compiler_pic
11089	  compiler_flags=-v
11090	  linker_flags=-v
11091	  verstring=
11092	  output_objdir=.
11093	  libname=conftest
11094	  lt_save_allow_undefined_flag=$allow_undefined_flag
11095	  allow_undefined_flag=
11096	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11097  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11098  ac_status=$?
11099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11100  test $ac_status = 0; }
11101	  then
11102	    lt_cv_archive_cmds_need_lc=no
11103	  else
11104	    lt_cv_archive_cmds_need_lc=yes
11105	  fi
11106	  allow_undefined_flag=$lt_save_allow_undefined_flag
11107	else
11108	  cat conftest.err 1>&5
11109	fi
11110	$RM conftest*
11111
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11114$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11115      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11116      ;;
11117    esac
11118  fi
11119  ;;
11120esac
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11274$as_echo_n "checking dynamic linker characteristics... " >&6; }
11275
11276if test yes = "$GCC"; then
11277  case $host_os in
11278    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11279    *) lt_awk_arg='/^libraries:/' ;;
11280  esac
11281  case $host_os in
11282    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11283    *) lt_sed_strip_eq='s|=/|/|g' ;;
11284  esac
11285  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11286  case $lt_search_path_spec in
11287  *\;*)
11288    # if the path contains ";" then we assume it to be the separator
11289    # otherwise default to the standard path separator (i.e. ":") - it is
11290    # assumed that no part of a normal pathname contains ";" but that should
11291    # okay in the real world where ";" in dirpaths is itself problematic.
11292    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11293    ;;
11294  *)
11295    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11296    ;;
11297  esac
11298  # Ok, now we have the path, separated by spaces, we can step through it
11299  # and add multilib dir if necessary...
11300  lt_tmp_lt_search_path_spec=
11301  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11302  # ...but if some path component already ends with the multilib dir we assume
11303  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11304  case "$lt_multi_os_dir; $lt_search_path_spec " in
11305  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11306    lt_multi_os_dir=
11307    ;;
11308  esac
11309  for lt_sys_path in $lt_search_path_spec; do
11310    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11311      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11312    elif test -n "$lt_multi_os_dir"; then
11313      test -d "$lt_sys_path" && \
11314	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11315    fi
11316  done
11317  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11318BEGIN {RS = " "; FS = "/|\n";} {
11319  lt_foo = "";
11320  lt_count = 0;
11321  for (lt_i = NF; lt_i > 0; lt_i--) {
11322    if ($lt_i != "" && $lt_i != ".") {
11323      if ($lt_i == "..") {
11324        lt_count++;
11325      } else {
11326        if (lt_count == 0) {
11327          lt_foo = "/" $lt_i lt_foo;
11328        } else {
11329          lt_count--;
11330        }
11331      }
11332    }
11333  }
11334  if (lt_foo != "") { lt_freq[lt_foo]++; }
11335  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11336}'`
11337  # AWK program above erroneously prepends '/' to C:/dos/paths
11338  # for these hosts.
11339  case $host_os in
11340    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11341      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11342  esac
11343  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11344else
11345  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11346fi
11347library_names_spec=
11348libname_spec='lib$name'
11349soname_spec=
11350shrext_cmds=.so
11351postinstall_cmds=
11352postuninstall_cmds=
11353finish_cmds=
11354finish_eval=
11355shlibpath_var=
11356shlibpath_overrides_runpath=unknown
11357version_type=none
11358dynamic_linker="$host_os ld.so"
11359sys_lib_dlsearch_path_spec="/lib /usr/lib"
11360need_lib_prefix=unknown
11361hardcode_into_libs=no
11362
11363# when you set need_version to no, make sure it does not cause -set_version
11364# flags to be left without arguments
11365need_version=unknown
11366
11367
11368
11369case $host_os in
11370aix3*)
11371  version_type=linux # correct to gnu/linux during the next big refactor
11372  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11373  shlibpath_var=LIBPATH
11374
11375  # AIX 3 has no versioning support, so we append a major version to the name.
11376  soname_spec='$libname$release$shared_ext$major'
11377  ;;
11378
11379aix[4-9]*)
11380  version_type=linux # correct to gnu/linux during the next big refactor
11381  need_lib_prefix=no
11382  need_version=no
11383  hardcode_into_libs=yes
11384  if test ia64 = "$host_cpu"; then
11385    # AIX 5 supports IA64
11386    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11387    shlibpath_var=LD_LIBRARY_PATH
11388  else
11389    # With GCC up to 2.95.x, collect2 would create an import file
11390    # for dependence libraries.  The import file would start with
11391    # the line '#! .'.  This would cause the generated library to
11392    # depend on '.', always an invalid library.  This was fixed in
11393    # development snapshots of GCC prior to 3.0.
11394    case $host_os in
11395      aix4 | aix4.[01] | aix4.[01].*)
11396      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11397	   echo ' yes '
11398	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11399	:
11400      else
11401	can_build_shared=no
11402      fi
11403      ;;
11404    esac
11405    # Using Import Files as archive members, it is possible to support
11406    # filename-based versioning of shared library archives on AIX. While
11407    # this would work for both with and without runtime linking, it will
11408    # prevent static linking of such archives. So we do filename-based
11409    # shared library versioning with .so extension only, which is used
11410    # when both runtime linking and shared linking is enabled.
11411    # Unfortunately, runtime linking may impact performance, so we do
11412    # not want this to be the default eventually. Also, we use the
11413    # versioned .so libs for executables only if there is the -brtl
11414    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11415    # To allow for filename-based versioning support, we need to create
11416    # libNAME.so.V as an archive file, containing:
11417    # *) an Import File, referring to the versioned filename of the
11418    #    archive as well as the shared archive member, telling the
11419    #    bitwidth (32 or 64) of that shared object, and providing the
11420    #    list of exported symbols of that shared object, eventually
11421    #    decorated with the 'weak' keyword
11422    # *) the shared object with the F_LOADONLY flag set, to really avoid
11423    #    it being seen by the linker.
11424    # At run time we better use the real file rather than another symlink,
11425    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11426
11427    case $with_aix_soname,$aix_use_runtimelinking in
11428    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11429    # soname into executable. Probably we can add versioning support to
11430    # collect2, so additional links can be useful in future.
11431    aix,yes) # traditional libtool
11432      dynamic_linker='AIX unversionable lib.so'
11433      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11434      # instead of lib<name>.a to let people know that these are not
11435      # typical AIX shared libraries.
11436      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437      ;;
11438    aix,no) # traditional AIX only
11439      dynamic_linker='AIX lib.a(lib.so.V)'
11440      # We preserve .a as extension for shared libraries through AIX4.2
11441      # and later when we are not doing run time linking.
11442      library_names_spec='$libname$release.a $libname.a'
11443      soname_spec='$libname$release$shared_ext$major'
11444      ;;
11445    svr4,*) # full svr4 only
11446      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11447      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11448      # We do not specify a path in Import Files, so LIBPATH fires.
11449      shlibpath_overrides_runpath=yes
11450      ;;
11451    *,yes) # both, prefer svr4
11452      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11453      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11454      # unpreferred sharedlib libNAME.a needs extra handling
11455      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11456      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11457      # We do not specify a path in Import Files, so LIBPATH fires.
11458      shlibpath_overrides_runpath=yes
11459      ;;
11460    *,no) # both, prefer aix
11461      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11462      library_names_spec='$libname$release.a $libname.a'
11463      soname_spec='$libname$release$shared_ext$major'
11464      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11465      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11466      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11467      ;;
11468    esac
11469    shlibpath_var=LIBPATH
11470  fi
11471  ;;
11472
11473amigaos*)
11474  case $host_cpu in
11475  powerpc)
11476    # Since July 2007 AmigaOS4 officially supports .so libraries.
11477    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11478    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479    ;;
11480  m68k)
11481    library_names_spec='$libname.ixlibrary $libname.a'
11482    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11483    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11484    ;;
11485  esac
11486  ;;
11487
11488beos*)
11489  library_names_spec='$libname$shared_ext'
11490  dynamic_linker="$host_os ld.so"
11491  shlibpath_var=LIBRARY_PATH
11492  ;;
11493
11494bsdi[45]*)
11495  version_type=linux # correct to gnu/linux during the next big refactor
11496  need_version=no
11497  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11498  soname_spec='$libname$release$shared_ext$major'
11499  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11500  shlibpath_var=LD_LIBRARY_PATH
11501  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11502  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11503  # the default ld.so.conf also contains /usr/contrib/lib and
11504  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11505  # libtool to hard-code these into programs
11506  ;;
11507
11508cygwin* | mingw* | pw32* | cegcc*)
11509  version_type=windows
11510  shrext_cmds=.dll
11511  need_version=no
11512  need_lib_prefix=no
11513
11514  case $GCC,$cc_basename in
11515  yes,*)
11516    # gcc
11517    library_names_spec='$libname.dll.a'
11518    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11519    postinstall_cmds='base_file=`basename \$file`~
11520      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11521      dldir=$destdir/`dirname \$dlpath`~
11522      test -d \$dldir || mkdir -p \$dldir~
11523      $install_prog $dir/$dlname \$dldir/$dlname~
11524      chmod a+x \$dldir/$dlname~
11525      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11526        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11527      fi'
11528    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11529      dlpath=$dir/\$dldll~
11530       $RM \$dlpath'
11531    shlibpath_overrides_runpath=yes
11532
11533    case $host_os in
11534    cygwin*)
11535      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11536      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11537
11538      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11539      ;;
11540    mingw* | cegcc*)
11541      # MinGW DLLs use traditional 'lib' prefix
11542      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11543      ;;
11544    pw32*)
11545      # pw32 DLLs use 'pw' prefix rather than 'lib'
11546      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11547      ;;
11548    esac
11549    dynamic_linker='Win32 ld.exe'
11550    ;;
11551
11552  *,cl*)
11553    # Native MSVC
11554    libname_spec='$name'
11555    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11556    library_names_spec='$libname.dll.lib'
11557
11558    case $build_os in
11559    mingw*)
11560      sys_lib_search_path_spec=
11561      lt_save_ifs=$IFS
11562      IFS=';'
11563      for lt_path in $LIB
11564      do
11565        IFS=$lt_save_ifs
11566        # Let DOS variable expansion print the short 8.3 style file name.
11567        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11568        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11569      done
11570      IFS=$lt_save_ifs
11571      # Convert to MSYS style.
11572      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11573      ;;
11574    cygwin*)
11575      # Convert to unix form, then to dos form, then back to unix form
11576      # but this time dos style (no spaces!) so that the unix form looks
11577      # like /cygdrive/c/PROGRA~1:/cygdr...
11578      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11579      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11580      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11581      ;;
11582    *)
11583      sys_lib_search_path_spec=$LIB
11584      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11585        # It is most probably a Windows format PATH.
11586        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11587      else
11588        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11589      fi
11590      # FIXME: find the short name or the path components, as spaces are
11591      # common. (e.g. "Program Files" -> "PROGRA~1")
11592      ;;
11593    esac
11594
11595    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11596    postinstall_cmds='base_file=`basename \$file`~
11597      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11598      dldir=$destdir/`dirname \$dlpath`~
11599      test -d \$dldir || mkdir -p \$dldir~
11600      $install_prog $dir/$dlname \$dldir/$dlname'
11601    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11602      dlpath=$dir/\$dldll~
11603       $RM \$dlpath'
11604    shlibpath_overrides_runpath=yes
11605    dynamic_linker='Win32 link.exe'
11606    ;;
11607
11608  *)
11609    # Assume MSVC wrapper
11610    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11611    dynamic_linker='Win32 ld.exe'
11612    ;;
11613  esac
11614  # FIXME: first we should search . and the directory the executable is in
11615  shlibpath_var=PATH
11616  ;;
11617
11618darwin* | rhapsody*)
11619  dynamic_linker="$host_os dyld"
11620  version_type=darwin
11621  need_lib_prefix=no
11622  need_version=no
11623  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11624  soname_spec='$libname$release$major$shared_ext'
11625  shlibpath_overrides_runpath=yes
11626  shlibpath_var=DYLD_LIBRARY_PATH
11627  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11628
11629  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11630  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11631  ;;
11632
11633dgux*)
11634  version_type=linux # correct to gnu/linux during the next big refactor
11635  need_lib_prefix=no
11636  need_version=no
11637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638  soname_spec='$libname$release$shared_ext$major'
11639  shlibpath_var=LD_LIBRARY_PATH
11640  ;;
11641
11642freebsd* | dragonfly*)
11643  # DragonFly does not have aout.  When/if they implement a new
11644  # versioning mechanism, adjust this.
11645  if test -x /usr/bin/objformat; then
11646    objformat=`/usr/bin/objformat`
11647  else
11648    case $host_os in
11649    freebsd[23].*) objformat=aout ;;
11650    *) objformat=elf ;;
11651    esac
11652  fi
11653  # Handle Gentoo/FreeBSD as it was Linux
11654  case $host_vendor in
11655    gentoo)
11656      version_type=linux ;;
11657    *)
11658      version_type=freebsd-$objformat ;;
11659  esac
11660
11661  case $version_type in
11662    freebsd-elf*)
11663      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664      soname_spec='$libname$release$shared_ext$major'
11665      need_version=no
11666      need_lib_prefix=no
11667      ;;
11668    freebsd-*)
11669      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11670      need_version=yes
11671      ;;
11672    linux)
11673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11674      soname_spec='${libname}${release}${shared_ext}$major'
11675      need_lib_prefix=no
11676      need_version=no
11677      ;;
11678  esac
11679  shlibpath_var=LD_LIBRARY_PATH
11680  case $host_os in
11681  freebsd2.*)
11682    shlibpath_overrides_runpath=yes
11683    ;;
11684  freebsd3.[01]* | freebsdelf3.[01]*)
11685    shlibpath_overrides_runpath=yes
11686    hardcode_into_libs=yes
11687    ;;
11688  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11689  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11690    shlibpath_overrides_runpath=no
11691    hardcode_into_libs=yes
11692    ;;
11693  *) # from 4.6 on, and DragonFly
11694    shlibpath_overrides_runpath=yes
11695    hardcode_into_libs=yes
11696    ;;
11697  esac
11698  ;;
11699
11700haiku*)
11701  version_type=linux # correct to gnu/linux during the next big refactor
11702  need_lib_prefix=no
11703  need_version=no
11704  dynamic_linker="$host_os runtime_loader"
11705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706  soname_spec='$libname$release$shared_ext$major'
11707  shlibpath_var=LIBRARY_PATH
11708  shlibpath_overrides_runpath=no
11709  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11710  hardcode_into_libs=yes
11711  ;;
11712
11713hpux9* | hpux10* | hpux11*)
11714  # Give a soname corresponding to the major version so that dld.sl refuses to
11715  # link against other versions.
11716  version_type=sunos
11717  need_lib_prefix=no
11718  need_version=no
11719  case $host_cpu in
11720  ia64*)
11721    shrext_cmds='.so'
11722    hardcode_into_libs=yes
11723    dynamic_linker="$host_os dld.so"
11724    shlibpath_var=LD_LIBRARY_PATH
11725    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11726    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11727    soname_spec='$libname$release$shared_ext$major'
11728    if test 32 = "$HPUX_IA64_MODE"; then
11729      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11730      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11731    else
11732      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11733      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11734    fi
11735    ;;
11736  hppa*64*)
11737    shrext_cmds='.sl'
11738    hardcode_into_libs=yes
11739    dynamic_linker="$host_os dld.sl"
11740    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11741    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11742    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11743    soname_spec='$libname$release$shared_ext$major'
11744    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11745    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11746    ;;
11747  *)
11748    shrext_cmds='.sl'
11749    dynamic_linker="$host_os dld.sl"
11750    shlibpath_var=SHLIB_PATH
11751    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11752    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753    soname_spec='$libname$release$shared_ext$major'
11754    ;;
11755  esac
11756  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11757  postinstall_cmds='chmod 555 $lib'
11758  # or fails outright, so override atomically:
11759  install_override_mode=555
11760  ;;
11761
11762interix[3-9]*)
11763  version_type=linux # correct to gnu/linux during the next big refactor
11764  need_lib_prefix=no
11765  need_version=no
11766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767  soname_spec='$libname$release$shared_ext$major'
11768  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11769  shlibpath_var=LD_LIBRARY_PATH
11770  shlibpath_overrides_runpath=no
11771  hardcode_into_libs=yes
11772  ;;
11773
11774irix5* | irix6* | nonstopux*)
11775  case $host_os in
11776    nonstopux*) version_type=nonstopux ;;
11777    *)
11778	if test yes = "$lt_cv_prog_gnu_ld"; then
11779		version_type=linux # correct to gnu/linux during the next big refactor
11780	else
11781		version_type=irix
11782	fi ;;
11783  esac
11784  need_lib_prefix=no
11785  need_version=no
11786  soname_spec='$libname$release$shared_ext$major'
11787  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11788  case $host_os in
11789  irix5* | nonstopux*)
11790    libsuff= shlibsuff=
11791    ;;
11792  *)
11793    case $LD in # libtool.m4 will add one of these switches to LD
11794    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11795      libsuff= shlibsuff= libmagic=32-bit;;
11796    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11797      libsuff=32 shlibsuff=N32 libmagic=N32;;
11798    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11799      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11800    *) libsuff= shlibsuff= libmagic=never-match;;
11801    esac
11802    ;;
11803  esac
11804  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11805  shlibpath_overrides_runpath=no
11806  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11807  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11808  hardcode_into_libs=yes
11809  ;;
11810
11811# No shared lib support for Linux oldld, aout, or coff.
11812linux*oldld* | linux*aout* | linux*coff*)
11813  dynamic_linker=no
11814  ;;
11815
11816linux*android*)
11817  version_type=none # Android doesn't support versioned libraries.
11818  need_lib_prefix=no
11819  need_version=no
11820  library_names_spec='$libname$release$shared_ext'
11821  soname_spec='$libname$release$shared_ext'
11822  finish_cmds=
11823  shlibpath_var=LD_LIBRARY_PATH
11824  shlibpath_overrides_runpath=yes
11825
11826  # This implies no fast_install, which is unacceptable.
11827  # Some rework will be needed to allow for fast_install
11828  # before this can be enabled.
11829  hardcode_into_libs=yes
11830
11831  dynamic_linker='Android linker'
11832  # Don't embed -rpath directories since the linker doesn't support them.
11833  hardcode_libdir_flag_spec='-L$libdir'
11834  ;;
11835
11836# This must be glibc/ELF.
11837linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11838  version_type=linux # correct to gnu/linux during the next big refactor
11839  need_lib_prefix=no
11840  need_version=no
11841  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11842  soname_spec='$libname$release$shared_ext$major'
11843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11844  shlibpath_var=LD_LIBRARY_PATH
11845  shlibpath_overrides_runpath=no
11846
11847  # Some binutils ld are patched to set DT_RUNPATH
11848  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11849  $as_echo_n "(cached) " >&6
11850else
11851  lt_cv_shlibpath_overrides_runpath=no
11852    save_LDFLAGS=$LDFLAGS
11853    save_libdir=$libdir
11854    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11855	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11856    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h.  */
11858
11859int
11860main ()
11861{
11862
11863  ;
11864  return 0;
11865}
11866_ACEOF
11867if ac_fn_c_try_link "$LINENO"; then :
11868  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11869  lt_cv_shlibpath_overrides_runpath=yes
11870fi
11871fi
11872rm -f core conftest.err conftest.$ac_objext \
11873    conftest$ac_exeext conftest.$ac_ext
11874    LDFLAGS=$save_LDFLAGS
11875    libdir=$save_libdir
11876
11877fi
11878
11879  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11880
11881  # This implies no fast_install, which is unacceptable.
11882  # Some rework will be needed to allow for fast_install
11883  # before this can be enabled.
11884  hardcode_into_libs=yes
11885
11886  # Ideally, we could use ldconfig to report *all* directores which are
11887  # searched for libraries, however this is still not possible.  Aside from not
11888  # being certain /sbin/ldconfig is available, command
11889  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11890  # even though it is searched at run-time.  Try to do the best guess by
11891  # appending ld.so.conf contents (and includes) to the search path.
11892  if test -f /etc/ld.so.conf; then
11893    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' ' '`
11894    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11895  fi
11896
11897  # We used to test for /lib/ld.so.1 and disable shared libraries on
11898  # powerpc, because MkLinux only supported shared libraries with the
11899  # GNU dynamic linker.  Since this was broken with cross compilers,
11900  # most powerpc-linux boxes support dynamic linking these days and
11901  # people can always --disable-shared, the test was removed, and we
11902  # assume the GNU/Linux dynamic linker is in use.
11903  dynamic_linker='GNU/Linux ld.so'
11904  ;;
11905
11906netbsd*)
11907  version_type=sunos
11908  need_lib_prefix=no
11909  need_version=no
11910  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11911    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11912    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11913    dynamic_linker='NetBSD (a.out) ld.so'
11914  else
11915    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11916    soname_spec='$libname$release$shared_ext$major'
11917    dynamic_linker='NetBSD ld.elf_so'
11918  fi
11919  shlibpath_var=LD_LIBRARY_PATH
11920  shlibpath_overrides_runpath=yes
11921  hardcode_into_libs=yes
11922  ;;
11923
11924newsos6)
11925  version_type=linux # correct to gnu/linux during the next big refactor
11926  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927  shlibpath_var=LD_LIBRARY_PATH
11928  shlibpath_overrides_runpath=yes
11929  ;;
11930
11931*nto* | *qnx*)
11932  version_type=qnx
11933  need_lib_prefix=no
11934  need_version=no
11935  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936  soname_spec='$libname$release$shared_ext$major'
11937  shlibpath_var=LD_LIBRARY_PATH
11938  shlibpath_overrides_runpath=no
11939  hardcode_into_libs=yes
11940  dynamic_linker='ldqnx.so'
11941  ;;
11942
11943openbsd* | bitrig*)
11944  version_type=sunos
11945  sys_lib_dlsearch_path_spec=/usr/lib
11946  need_lib_prefix=no
11947  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11948    need_version=no
11949  else
11950    need_version=yes
11951  fi
11952  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11954  shlibpath_var=LD_LIBRARY_PATH
11955  shlibpath_overrides_runpath=yes
11956  ;;
11957
11958os2*)
11959  libname_spec='$name'
11960  version_type=windows
11961  shrext_cmds=.dll
11962  need_version=no
11963  need_lib_prefix=no
11964  # OS/2 can only load a DLL with a base name of 8 characters or less.
11965  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11966    v=$($ECHO $release$versuffix | tr -d .-);
11967    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11968    $ECHO $n$v`$shared_ext'
11969  library_names_spec='${libname}_dll.$libext'
11970  dynamic_linker='OS/2 ld.exe'
11971  shlibpath_var=BEGINLIBPATH
11972  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11973  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11974  postinstall_cmds='base_file=`basename \$file`~
11975    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11976    dldir=$destdir/`dirname \$dlpath`~
11977    test -d \$dldir || mkdir -p \$dldir~
11978    $install_prog $dir/$dlname \$dldir/$dlname~
11979    chmod a+x \$dldir/$dlname~
11980    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11981      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11982    fi'
11983  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11984    dlpath=$dir/\$dldll~
11985    $RM \$dlpath'
11986  ;;
11987
11988osf3* | osf4* | osf5*)
11989  version_type=osf
11990  need_lib_prefix=no
11991  need_version=no
11992  soname_spec='$libname$release$shared_ext$major'
11993  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994  shlibpath_var=LD_LIBRARY_PATH
11995  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11996  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11997  ;;
11998
11999rdos*)
12000  dynamic_linker=no
12001  ;;
12002
12003solaris*)
12004  version_type=linux # correct to gnu/linux during the next big refactor
12005  need_lib_prefix=no
12006  need_version=no
12007  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12008  soname_spec='$libname$release$shared_ext$major'
12009  shlibpath_var=LD_LIBRARY_PATH
12010  shlibpath_overrides_runpath=yes
12011  hardcode_into_libs=yes
12012  # ldd complains unless libraries are executable
12013  postinstall_cmds='chmod +x $lib'
12014  ;;
12015
12016sunos4*)
12017  version_type=sunos
12018  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12019  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12020  shlibpath_var=LD_LIBRARY_PATH
12021  shlibpath_overrides_runpath=yes
12022  if test yes = "$with_gnu_ld"; then
12023    need_lib_prefix=no
12024  fi
12025  need_version=yes
12026  ;;
12027
12028sysv4 | sysv4.3*)
12029  version_type=linux # correct to gnu/linux during the next big refactor
12030  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031  soname_spec='$libname$release$shared_ext$major'
12032  shlibpath_var=LD_LIBRARY_PATH
12033  case $host_vendor in
12034    sni)
12035      shlibpath_overrides_runpath=no
12036      need_lib_prefix=no
12037      runpath_var=LD_RUN_PATH
12038      ;;
12039    siemens)
12040      need_lib_prefix=no
12041      ;;
12042    motorola)
12043      need_lib_prefix=no
12044      need_version=no
12045      shlibpath_overrides_runpath=no
12046      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12047      ;;
12048  esac
12049  ;;
12050
12051sysv4*MP*)
12052  if test -d /usr/nec; then
12053    version_type=linux # correct to gnu/linux during the next big refactor
12054    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12055    soname_spec='$libname$shared_ext.$major'
12056    shlibpath_var=LD_LIBRARY_PATH
12057  fi
12058  ;;
12059
12060sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12061  version_type=sco
12062  need_lib_prefix=no
12063  need_version=no
12064  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12065  soname_spec='$libname$release$shared_ext$major'
12066  shlibpath_var=LD_LIBRARY_PATH
12067  shlibpath_overrides_runpath=yes
12068  hardcode_into_libs=yes
12069  if test yes = "$with_gnu_ld"; then
12070    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12071  else
12072    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12073    case $host_os in
12074      sco3.2v5*)
12075        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12076	;;
12077    esac
12078  fi
12079  sys_lib_dlsearch_path_spec='/usr/lib'
12080  ;;
12081
12082tpf*)
12083  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12084  version_type=linux # correct to gnu/linux during the next big refactor
12085  need_lib_prefix=no
12086  need_version=no
12087  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088  shlibpath_var=LD_LIBRARY_PATH
12089  shlibpath_overrides_runpath=no
12090  hardcode_into_libs=yes
12091  ;;
12092
12093uts4*)
12094  version_type=linux # correct to gnu/linux during the next big refactor
12095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096  soname_spec='$libname$release$shared_ext$major'
12097  shlibpath_var=LD_LIBRARY_PATH
12098  ;;
12099
12100*)
12101  dynamic_linker=no
12102  ;;
12103esac
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12105$as_echo "$dynamic_linker" >&6; }
12106test no = "$dynamic_linker" && can_build_shared=no
12107
12108variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12109if test yes = "$GCC"; then
12110  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12111fi
12112
12113if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12114  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12115fi
12116
12117if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12118  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12119fi
12120
12121# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12122configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12123
12124# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12125func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12126
12127# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12128configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12227$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12228hardcode_action=
12229if test -n "$hardcode_libdir_flag_spec" ||
12230   test -n "$runpath_var" ||
12231   test yes = "$hardcode_automatic"; then
12232
12233  # We can hardcode non-existent directories.
12234  if test no != "$hardcode_direct" &&
12235     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12236     # have to relink, otherwise we might link with an installed library
12237     # when we should be linking with a yet-to-be-installed one
12238     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12239     test no != "$hardcode_minus_L"; then
12240    # Linking always hardcodes the temporary library directory.
12241    hardcode_action=relink
12242  else
12243    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12244    hardcode_action=immediate
12245  fi
12246else
12247  # We cannot hardcode anything, or else we can only hardcode existing
12248  # directories.
12249  hardcode_action=unsupported
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12252$as_echo "$hardcode_action" >&6; }
12253
12254if test relink = "$hardcode_action" ||
12255   test yes = "$inherit_rpath"; then
12256  # Fast installation is not supported
12257  enable_fast_install=no
12258elif test yes = "$shlibpath_overrides_runpath" ||
12259     test no = "$enable_shared"; then
12260  # Fast installation is not necessary
12261  enable_fast_install=needless
12262fi
12263
12264
12265
12266
12267
12268
12269  if test yes != "$enable_dlopen"; then
12270  enable_dlopen=unknown
12271  enable_dlopen_self=unknown
12272  enable_dlopen_self_static=unknown
12273else
12274  lt_cv_dlopen=no
12275  lt_cv_dlopen_libs=
12276
12277  case $host_os in
12278  beos*)
12279    lt_cv_dlopen=load_add_on
12280    lt_cv_dlopen_libs=
12281    lt_cv_dlopen_self=yes
12282    ;;
12283
12284  mingw* | pw32* | cegcc*)
12285    lt_cv_dlopen=LoadLibrary
12286    lt_cv_dlopen_libs=
12287    ;;
12288
12289  cygwin*)
12290    lt_cv_dlopen=dlopen
12291    lt_cv_dlopen_libs=
12292    ;;
12293
12294  darwin*)
12295    # if libdl is installed we need to link against it
12296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12297$as_echo_n "checking for dlopen in -ldl... " >&6; }
12298if ${ac_cv_lib_dl_dlopen+:} false; then :
12299  $as_echo_n "(cached) " >&6
12300else
12301  ac_check_lib_save_LIBS=$LIBS
12302LIBS="-ldl  $LIBS"
12303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304/* end confdefs.h.  */
12305
12306/* Override any GCC internal prototype to avoid an error.
12307   Use char because int might match the return type of a GCC
12308   builtin and then its argument prototype would still apply.  */
12309#ifdef __cplusplus
12310extern "C"
12311#endif
12312char dlopen ();
12313int
12314main ()
12315{
12316return dlopen ();
12317  ;
12318  return 0;
12319}
12320_ACEOF
12321if ac_fn_c_try_link "$LINENO"; then :
12322  ac_cv_lib_dl_dlopen=yes
12323else
12324  ac_cv_lib_dl_dlopen=no
12325fi
12326rm -f core conftest.err conftest.$ac_objext \
12327    conftest$ac_exeext conftest.$ac_ext
12328LIBS=$ac_check_lib_save_LIBS
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12331$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12332if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12333  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12334else
12335
12336    lt_cv_dlopen=dyld
12337    lt_cv_dlopen_libs=
12338    lt_cv_dlopen_self=yes
12339
12340fi
12341
12342    ;;
12343
12344  tpf*)
12345    # Don't try to run any link tests for TPF.  We know it's impossible
12346    # because TPF is a cross-compiler, and we know how we open DSOs.
12347    lt_cv_dlopen=dlopen
12348    lt_cv_dlopen_libs=
12349    lt_cv_dlopen_self=no
12350    ;;
12351
12352  *)
12353    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12354if test "x$ac_cv_func_shl_load" = xyes; then :
12355  lt_cv_dlopen=shl_load
12356else
12357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12358$as_echo_n "checking for shl_load in -ldld... " >&6; }
12359if ${ac_cv_lib_dld_shl_load+:} false; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  ac_check_lib_save_LIBS=$LIBS
12363LIBS="-ldld  $LIBS"
12364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365/* end confdefs.h.  */
12366
12367/* Override any GCC internal prototype to avoid an error.
12368   Use char because int might match the return type of a GCC
12369   builtin and then its argument prototype would still apply.  */
12370#ifdef __cplusplus
12371extern "C"
12372#endif
12373char shl_load ();
12374int
12375main ()
12376{
12377return shl_load ();
12378  ;
12379  return 0;
12380}
12381_ACEOF
12382if ac_fn_c_try_link "$LINENO"; then :
12383  ac_cv_lib_dld_shl_load=yes
12384else
12385  ac_cv_lib_dld_shl_load=no
12386fi
12387rm -f core conftest.err conftest.$ac_objext \
12388    conftest$ac_exeext conftest.$ac_ext
12389LIBS=$ac_check_lib_save_LIBS
12390fi
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12392$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12393if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12394  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12395else
12396  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12397if test "x$ac_cv_func_dlopen" = xyes; then :
12398  lt_cv_dlopen=dlopen
12399else
12400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12401$as_echo_n "checking for dlopen in -ldl... " >&6; }
12402if ${ac_cv_lib_dl_dlopen+:} false; then :
12403  $as_echo_n "(cached) " >&6
12404else
12405  ac_check_lib_save_LIBS=$LIBS
12406LIBS="-ldl  $LIBS"
12407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408/* end confdefs.h.  */
12409
12410/* Override any GCC internal prototype to avoid an error.
12411   Use char because int might match the return type of a GCC
12412   builtin and then its argument prototype would still apply.  */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416char dlopen ();
12417int
12418main ()
12419{
12420return dlopen ();
12421  ;
12422  return 0;
12423}
12424_ACEOF
12425if ac_fn_c_try_link "$LINENO"; then :
12426  ac_cv_lib_dl_dlopen=yes
12427else
12428  ac_cv_lib_dl_dlopen=no
12429fi
12430rm -f core conftest.err conftest.$ac_objext \
12431    conftest$ac_exeext conftest.$ac_ext
12432LIBS=$ac_check_lib_save_LIBS
12433fi
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12435$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12436if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12437  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12438else
12439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12440$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12441if ${ac_cv_lib_svld_dlopen+:} false; then :
12442  $as_echo_n "(cached) " >&6
12443else
12444  ac_check_lib_save_LIBS=$LIBS
12445LIBS="-lsvld  $LIBS"
12446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447/* end confdefs.h.  */
12448
12449/* Override any GCC internal prototype to avoid an error.
12450   Use char because int might match the return type of a GCC
12451   builtin and then its argument prototype would still apply.  */
12452#ifdef __cplusplus
12453extern "C"
12454#endif
12455char dlopen ();
12456int
12457main ()
12458{
12459return dlopen ();
12460  ;
12461  return 0;
12462}
12463_ACEOF
12464if ac_fn_c_try_link "$LINENO"; then :
12465  ac_cv_lib_svld_dlopen=yes
12466else
12467  ac_cv_lib_svld_dlopen=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470    conftest$ac_exeext conftest.$ac_ext
12471LIBS=$ac_check_lib_save_LIBS
12472fi
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12474$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12475if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12476  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12477else
12478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12479$as_echo_n "checking for dld_link in -ldld... " >&6; }
12480if ${ac_cv_lib_dld_dld_link+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  ac_check_lib_save_LIBS=$LIBS
12484LIBS="-ldld  $LIBS"
12485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h.  */
12487
12488/* Override any GCC internal prototype to avoid an error.
12489   Use char because int might match the return type of a GCC
12490   builtin and then its argument prototype would still apply.  */
12491#ifdef __cplusplus
12492extern "C"
12493#endif
12494char dld_link ();
12495int
12496main ()
12497{
12498return dld_link ();
12499  ;
12500  return 0;
12501}
12502_ACEOF
12503if ac_fn_c_try_link "$LINENO"; then :
12504  ac_cv_lib_dld_dld_link=yes
12505else
12506  ac_cv_lib_dld_dld_link=no
12507fi
12508rm -f core conftest.err conftest.$ac_objext \
12509    conftest$ac_exeext conftest.$ac_ext
12510LIBS=$ac_check_lib_save_LIBS
12511fi
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12513$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12514if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12515  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12516fi
12517
12518
12519fi
12520
12521
12522fi
12523
12524
12525fi
12526
12527
12528fi
12529
12530
12531fi
12532
12533    ;;
12534  esac
12535
12536  if test no = "$lt_cv_dlopen"; then
12537    enable_dlopen=no
12538  else
12539    enable_dlopen=yes
12540  fi
12541
12542  case $lt_cv_dlopen in
12543  dlopen)
12544    save_CPPFLAGS=$CPPFLAGS
12545    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12546
12547    save_LDFLAGS=$LDFLAGS
12548    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12549
12550    save_LIBS=$LIBS
12551    LIBS="$lt_cv_dlopen_libs $LIBS"
12552
12553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12554$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12555if ${lt_cv_dlopen_self+:} false; then :
12556  $as_echo_n "(cached) " >&6
12557else
12558  	  if test yes = "$cross_compiling"; then :
12559  lt_cv_dlopen_self=cross
12560else
12561  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12562  lt_status=$lt_dlunknown
12563  cat > conftest.$ac_ext <<_LT_EOF
12564#line $LINENO "configure"
12565#include "confdefs.h"
12566
12567#if HAVE_DLFCN_H
12568#include <dlfcn.h>
12569#endif
12570
12571#include <stdio.h>
12572
12573#ifdef RTLD_GLOBAL
12574#  define LT_DLGLOBAL		RTLD_GLOBAL
12575#else
12576#  ifdef DL_GLOBAL
12577#    define LT_DLGLOBAL		DL_GLOBAL
12578#  else
12579#    define LT_DLGLOBAL		0
12580#  endif
12581#endif
12582
12583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12584   find out it does not work in some platform. */
12585#ifndef LT_DLLAZY_OR_NOW
12586#  ifdef RTLD_LAZY
12587#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12588#  else
12589#    ifdef DL_LAZY
12590#      define LT_DLLAZY_OR_NOW		DL_LAZY
12591#    else
12592#      ifdef RTLD_NOW
12593#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12594#      else
12595#        ifdef DL_NOW
12596#          define LT_DLLAZY_OR_NOW	DL_NOW
12597#        else
12598#          define LT_DLLAZY_OR_NOW	0
12599#        endif
12600#      endif
12601#    endif
12602#  endif
12603#endif
12604
12605/* When -fvisibility=hidden is used, assume the code has been annotated
12606   correspondingly for the symbols needed.  */
12607#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12608int fnord () __attribute__((visibility("default")));
12609#endif
12610
12611int fnord () { return 42; }
12612int main ()
12613{
12614  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12615  int status = $lt_dlunknown;
12616
12617  if (self)
12618    {
12619      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12620      else
12621        {
12622	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12623          else puts (dlerror ());
12624	}
12625      /* dlclose (self); */
12626    }
12627  else
12628    puts (dlerror ());
12629
12630  return status;
12631}
12632_LT_EOF
12633  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12634  (eval $ac_link) 2>&5
12635  ac_status=$?
12636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12638    (./conftest; exit; ) >&5 2>/dev/null
12639    lt_status=$?
12640    case x$lt_status in
12641      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12642      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12643      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12644    esac
12645  else :
12646    # compilation failed
12647    lt_cv_dlopen_self=no
12648  fi
12649fi
12650rm -fr conftest*
12651
12652
12653fi
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12655$as_echo "$lt_cv_dlopen_self" >&6; }
12656
12657    if test yes = "$lt_cv_dlopen_self"; then
12658      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12659      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12660$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12661if ${lt_cv_dlopen_self_static+:} false; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  	  if test yes = "$cross_compiling"; then :
12665  lt_cv_dlopen_self_static=cross
12666else
12667  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12668  lt_status=$lt_dlunknown
12669  cat > conftest.$ac_ext <<_LT_EOF
12670#line $LINENO "configure"
12671#include "confdefs.h"
12672
12673#if HAVE_DLFCN_H
12674#include <dlfcn.h>
12675#endif
12676
12677#include <stdio.h>
12678
12679#ifdef RTLD_GLOBAL
12680#  define LT_DLGLOBAL		RTLD_GLOBAL
12681#else
12682#  ifdef DL_GLOBAL
12683#    define LT_DLGLOBAL		DL_GLOBAL
12684#  else
12685#    define LT_DLGLOBAL		0
12686#  endif
12687#endif
12688
12689/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12690   find out it does not work in some platform. */
12691#ifndef LT_DLLAZY_OR_NOW
12692#  ifdef RTLD_LAZY
12693#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12694#  else
12695#    ifdef DL_LAZY
12696#      define LT_DLLAZY_OR_NOW		DL_LAZY
12697#    else
12698#      ifdef RTLD_NOW
12699#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12700#      else
12701#        ifdef DL_NOW
12702#          define LT_DLLAZY_OR_NOW	DL_NOW
12703#        else
12704#          define LT_DLLAZY_OR_NOW	0
12705#        endif
12706#      endif
12707#    endif
12708#  endif
12709#endif
12710
12711/* When -fvisibility=hidden is used, assume the code has been annotated
12712   correspondingly for the symbols needed.  */
12713#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12714int fnord () __attribute__((visibility("default")));
12715#endif
12716
12717int fnord () { return 42; }
12718int main ()
12719{
12720  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12721  int status = $lt_dlunknown;
12722
12723  if (self)
12724    {
12725      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12726      else
12727        {
12728	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12729          else puts (dlerror ());
12730	}
12731      /* dlclose (self); */
12732    }
12733  else
12734    puts (dlerror ());
12735
12736  return status;
12737}
12738_LT_EOF
12739  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12740  (eval $ac_link) 2>&5
12741  ac_status=$?
12742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12744    (./conftest; exit; ) >&5 2>/dev/null
12745    lt_status=$?
12746    case x$lt_status in
12747      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12748      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12749      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12750    esac
12751  else :
12752    # compilation failed
12753    lt_cv_dlopen_self_static=no
12754  fi
12755fi
12756rm -fr conftest*
12757
12758
12759fi
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12761$as_echo "$lt_cv_dlopen_self_static" >&6; }
12762    fi
12763
12764    CPPFLAGS=$save_CPPFLAGS
12765    LDFLAGS=$save_LDFLAGS
12766    LIBS=$save_LIBS
12767    ;;
12768  esac
12769
12770  case $lt_cv_dlopen_self in
12771  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12772  *) enable_dlopen_self=unknown ;;
12773  esac
12774
12775  case $lt_cv_dlopen_self_static in
12776  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12777  *) enable_dlopen_self_static=unknown ;;
12778  esac
12779fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797striplib=
12798old_striplib=
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12800$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12801if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12802  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12803  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12805$as_echo "yes" >&6; }
12806else
12807# FIXME - insert some real tests, host_os isn't really good enough
12808  case $host_os in
12809  darwin*)
12810    if test -n "$STRIP"; then
12811      striplib="$STRIP -x"
12812      old_striplib="$STRIP -S"
12813      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814$as_echo "yes" >&6; }
12815    else
12816      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817$as_echo "no" >&6; }
12818    fi
12819    ;;
12820  *)
12821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
12823    ;;
12824  esac
12825fi
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838  # Report what library types will actually be built
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12840$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12842$as_echo "$can_build_shared" >&6; }
12843
12844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12845$as_echo_n "checking whether to build shared libraries... " >&6; }
12846  test no = "$can_build_shared" && enable_shared=no
12847
12848  # On AIX, shared libraries and static libraries use the same namespace, and
12849  # are all built from PIC.
12850  case $host_os in
12851  aix3*)
12852    test yes = "$enable_shared" && enable_static=no
12853    if test -n "$RANLIB"; then
12854      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12855      postinstall_cmds='$RANLIB $lib'
12856    fi
12857    ;;
12858
12859  aix[4-9]*)
12860    if test ia64 != "$host_cpu"; then
12861      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12862      yes,aix,yes) ;;			# shared object as lib.so file only
12863      yes,svr4,*) ;;			# shared object as lib.so archive member only
12864      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12865      esac
12866    fi
12867    ;;
12868  esac
12869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12870$as_echo "$enable_shared" >&6; }
12871
12872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12873$as_echo_n "checking whether to build static libraries... " >&6; }
12874  # Make sure either enable_shared or enable_static is yes.
12875  test yes = "$enable_shared" || enable_static=yes
12876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12877$as_echo "$enable_static" >&6; }
12878
12879
12880
12881
12882fi
12883ac_ext=c
12884ac_cpp='$CPP $CPPFLAGS'
12885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887ac_compiler_gnu=$ac_cv_c_compiler_gnu
12888
12889CC=$lt_save_CC
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905        ac_config_commands="$ac_config_commands libtool"
12906
12907
12908
12909
12910# Only expand once:
12911
12912
12913
12914
12915
12916
12917
12918ac_ext=c
12919ac_cpp='$CPP $CPPFLAGS'
12920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922ac_compiler_gnu=$ac_cv_c_compiler_gnu
12923
12924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12925$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12926if ${ac_cv_prog_cc_c99+:} false; then :
12927  $as_echo_n "(cached) " >&6
12928else
12929  ac_cv_prog_cc_c99=no
12930ac_save_CC=$CC
12931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h.  */
12933#include <stdarg.h>
12934#include <stdbool.h>
12935#include <stdlib.h>
12936#include <wchar.h>
12937#include <stdio.h>
12938
12939// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12940#define debug(...) fprintf (stderr, __VA_ARGS__)
12941#define showlist(...) puts (#__VA_ARGS__)
12942#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12943static void
12944test_varargs_macros (void)
12945{
12946  int x = 1234;
12947  int y = 5678;
12948  debug ("Flag");
12949  debug ("X = %d\n", x);
12950  showlist (The first, second, and third items.);
12951  report (x>y, "x is %d but y is %d", x, y);
12952}
12953
12954// Check long long types.
12955#define BIG64 18446744073709551615ull
12956#define BIG32 4294967295ul
12957#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12958#if !BIG_OK
12959  your preprocessor is broken;
12960#endif
12961#if BIG_OK
12962#else
12963  your preprocessor is broken;
12964#endif
12965static long long int bignum = -9223372036854775807LL;
12966static unsigned long long int ubignum = BIG64;
12967
12968struct incomplete_array
12969{
12970  int datasize;
12971  double data[];
12972};
12973
12974struct named_init {
12975  int number;
12976  const wchar_t *name;
12977  double average;
12978};
12979
12980typedef const char *ccp;
12981
12982static inline int
12983test_restrict (ccp restrict text)
12984{
12985  // See if C++-style comments work.
12986  // Iterate through items via the restricted pointer.
12987  // Also check for declarations in for loops.
12988  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12989    continue;
12990  return 0;
12991}
12992
12993// Check varargs and va_copy.
12994static void
12995test_varargs (const char *format, ...)
12996{
12997  va_list args;
12998  va_start (args, format);
12999  va_list args_copy;
13000  va_copy (args_copy, args);
13001
13002  const char *str;
13003  int number;
13004  float fnumber;
13005
13006  while (*format)
13007    {
13008      switch (*format++)
13009	{
13010	case 's': // string
13011	  str = va_arg (args_copy, const char *);
13012	  break;
13013	case 'd': // int
13014	  number = va_arg (args_copy, int);
13015	  break;
13016	case 'f': // float
13017	  fnumber = va_arg (args_copy, double);
13018	  break;
13019	default:
13020	  break;
13021	}
13022    }
13023  va_end (args_copy);
13024  va_end (args);
13025}
13026
13027int
13028main ()
13029{
13030
13031  // Check bool.
13032  _Bool success = false;
13033
13034  // Check restrict.
13035  if (test_restrict ("String literal") == 0)
13036    success = true;
13037  char *restrict newvar = "Another string";
13038
13039  // Check varargs.
13040  test_varargs ("s, d' f .", "string", 65, 34.234);
13041  test_varargs_macros ();
13042
13043  // Check flexible array members.
13044  struct incomplete_array *ia =
13045    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13046  ia->datasize = 10;
13047  for (int i = 0; i < ia->datasize; ++i)
13048    ia->data[i] = i * 1.234;
13049
13050  // Check named initializers.
13051  struct named_init ni = {
13052    .number = 34,
13053    .name = L"Test wide string",
13054    .average = 543.34343,
13055  };
13056
13057  ni.number = 58;
13058
13059  int dynamic_array[ni.number];
13060  dynamic_array[ni.number - 1] = 543;
13061
13062  // work around unused variable warnings
13063  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13064	  || dynamic_array[ni.number - 1] != 543);
13065
13066  ;
13067  return 0;
13068}
13069_ACEOF
13070for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13071do
13072  CC="$ac_save_CC $ac_arg"
13073  if ac_fn_c_try_compile "$LINENO"; then :
13074  ac_cv_prog_cc_c99=$ac_arg
13075fi
13076rm -f core conftest.err conftest.$ac_objext
13077  test "x$ac_cv_prog_cc_c99" != "xno" && break
13078done
13079rm -f conftest.$ac_ext
13080CC=$ac_save_CC
13081
13082fi
13083# AC_CACHE_VAL
13084case "x$ac_cv_prog_cc_c99" in
13085  x)
13086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13087$as_echo "none needed" >&6; } ;;
13088  xno)
13089    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13090$as_echo "unsupported" >&6; } ;;
13091  *)
13092    CC="$CC $ac_cv_prog_cc_c99"
13093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13094$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13095esac
13096if test "x$ac_cv_prog_cc_c99" != xno; then :
13097
13098fi
13099
13100
13101
13102if test "$GCC" = yes; then :
13103
13104
13105
13106
13107for flag in -Wall -Wextra; do
13108  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13110$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13111if eval \${$as_CACHEVAR+:} false; then :
13112  $as_echo_n "(cached) " >&6
13113else
13114
13115  ax_check_save_flags=$CFLAGS
13116  CFLAGS="$CFLAGS  -Werror $flag"
13117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118/* end confdefs.h.  */
13119int main(void) { return 0; }
13120_ACEOF
13121if ac_fn_c_try_compile "$LINENO"; then :
13122  eval "$as_CACHEVAR=yes"
13123else
13124  eval "$as_CACHEVAR=no"
13125fi
13126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127  CFLAGS=$ax_check_save_flags
13128fi
13129eval ac_res=\$$as_CACHEVAR
13130	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13131$as_echo "$ac_res" >&6; }
13132if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13133
13134if ${AM_CFLAGS+:} false; then :
13135
13136  case " $AM_CFLAGS " in #(
13137  *" $flag "*) :
13138    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13139  (: AM_CFLAGS already contains $flag) 2>&5
13140  ac_status=$?
13141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13142  test $ac_status = 0; } ;; #(
13143  *) :
13144
13145     as_fn_append AM_CFLAGS " $flag"
13146     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13147  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13148  ac_status=$?
13149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13150  test $ac_status = 0; }
13151     ;;
13152esac
13153
13154else
13155
13156  AM_CFLAGS=$flag
13157  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13158  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13159  ac_status=$?
13160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161  test $ac_status = 0; }
13162
13163fi
13164
13165else
13166  :
13167fi
13168
13169done
13170
13171
13172
13173
13174
13175for flag in -fexceptions; do
13176  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13178$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13179if eval \${$as_CACHEVAR+:} false; then :
13180  $as_echo_n "(cached) " >&6
13181else
13182
13183  ax_check_save_flags=$CFLAGS
13184  CFLAGS="$CFLAGS  -Werror $flag"
13185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186/* end confdefs.h.  */
13187int main(void) { return 0; }
13188_ACEOF
13189if ac_fn_c_try_compile "$LINENO"; then :
13190  eval "$as_CACHEVAR=yes"
13191else
13192  eval "$as_CACHEVAR=no"
13193fi
13194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195  CFLAGS=$ax_check_save_flags
13196fi
13197eval ac_res=\$$as_CACHEVAR
13198	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13199$as_echo "$ac_res" >&6; }
13200if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13201
13202if ${AM_CFLAGS+:} false; then :
13203
13204  case " $AM_CFLAGS " in #(
13205  *" $flag "*) :
13206    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13207  (: AM_CFLAGS already contains $flag) 2>&5
13208  ac_status=$?
13209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210  test $ac_status = 0; } ;; #(
13211  *) :
13212
13213     as_fn_append AM_CFLAGS " $flag"
13214     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13215  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13216  ac_status=$?
13217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218  test $ac_status = 0; }
13219     ;;
13220esac
13221
13222else
13223
13224  AM_CFLAGS=$flag
13225  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13226  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13227  ac_status=$?
13228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229  test $ac_status = 0; }
13230
13231fi
13232
13233else
13234  :
13235fi
13236
13237done
13238
13239
13240
13241
13242
13243for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
13244  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13246$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13247if eval \${$as_CACHEVAR+:} false; then :
13248  $as_echo_n "(cached) " >&6
13249else
13250
13251  ax_check_save_flags=$CFLAGS
13252  CFLAGS="$CFLAGS  -Werror $flag"
13253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254/* end confdefs.h.  */
13255int main(void) { return 0; }
13256_ACEOF
13257if ac_fn_c_try_compile "$LINENO"; then :
13258  eval "$as_CACHEVAR=yes"
13259else
13260  eval "$as_CACHEVAR=no"
13261fi
13262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263  CFLAGS=$ax_check_save_flags
13264fi
13265eval ac_res=\$$as_CACHEVAR
13266	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13267$as_echo "$ac_res" >&6; }
13268if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13269
13270if ${AM_CFLAGS+:} false; then :
13271
13272  case " $AM_CFLAGS " in #(
13273  *" $flag "*) :
13274    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13275  (: AM_CFLAGS already contains $flag) 2>&5
13276  ac_status=$?
13277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13278  test $ac_status = 0; } ;; #(
13279  *) :
13280
13281     as_fn_append AM_CFLAGS " $flag"
13282     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13283  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13284  ac_status=$?
13285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286  test $ac_status = 0; }
13287     ;;
13288esac
13289
13290else
13291
13292  AM_CFLAGS=$flag
13293  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13294  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13295  ac_status=$?
13296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13297  test $ac_status = 0; }
13298
13299fi
13300
13301else
13302  :
13303fi
13304
13305done
13306
13307
13308
13309
13310
13311for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
13312  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13314$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13315if eval \${$as_CACHEVAR+:} false; then :
13316  $as_echo_n "(cached) " >&6
13317else
13318
13319  ax_check_save_flags=$CFLAGS
13320  CFLAGS="$CFLAGS  -Werror $flag"
13321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322/* end confdefs.h.  */
13323int main(void) { return 0; }
13324_ACEOF
13325if ac_fn_c_try_compile "$LINENO"; then :
13326  eval "$as_CACHEVAR=yes"
13327else
13328  eval "$as_CACHEVAR=no"
13329fi
13330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331  CFLAGS=$ax_check_save_flags
13332fi
13333eval ac_res=\$$as_CACHEVAR
13334	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13335$as_echo "$ac_res" >&6; }
13336if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13337
13338if ${AM_CFLAGS+:} false; then :
13339
13340  case " $AM_CFLAGS " in #(
13341  *" $flag "*) :
13342    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13343  (: AM_CFLAGS already contains $flag) 2>&5
13344  ac_status=$?
13345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13346  test $ac_status = 0; } ;; #(
13347  *) :
13348
13349     as_fn_append AM_CFLAGS " $flag"
13350     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13351  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13352  ac_status=$?
13353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13354  test $ac_status = 0; }
13355     ;;
13356esac
13357
13358else
13359
13360  AM_CFLAGS=$flag
13361  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13362  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13363  ac_status=$?
13364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13365  test $ac_status = 0; }
13366
13367fi
13368
13369else
13370  :
13371fi
13372
13373done
13374
13375
13376
13377
13378
13379for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
13380  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13382$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13383if eval \${$as_CACHEVAR+:} false; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386
13387  ax_check_save_flags=$CFLAGS
13388  CFLAGS="$CFLAGS  -Werror $flag"
13389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390/* end confdefs.h.  */
13391int main(void) { return 0; }
13392_ACEOF
13393if ac_fn_c_try_compile "$LINENO"; then :
13394  eval "$as_CACHEVAR=yes"
13395else
13396  eval "$as_CACHEVAR=no"
13397fi
13398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399  CFLAGS=$ax_check_save_flags
13400fi
13401eval ac_res=\$$as_CACHEVAR
13402	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13403$as_echo "$ac_res" >&6; }
13404if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13405
13406if ${AM_CFLAGS+:} false; then :
13407
13408  case " $AM_CFLAGS " in #(
13409  *" $flag "*) :
13410    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13411  (: AM_CFLAGS already contains $flag) 2>&5
13412  ac_status=$?
13413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13414  test $ac_status = 0; } ;; #(
13415  *) :
13416
13417     as_fn_append AM_CFLAGS " $flag"
13418     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13419  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13420  ac_status=$?
13421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422  test $ac_status = 0; }
13423     ;;
13424esac
13425
13426else
13427
13428  AM_CFLAGS=$flag
13429  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13430  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13431  ac_status=$?
13432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433  test $ac_status = 0; }
13434
13435fi
13436
13437else
13438  :
13439fi
13440
13441done
13442
13443
13444
13445
13446
13447for flag in -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation; do
13448  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13450$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13451if eval \${$as_CACHEVAR+:} false; then :
13452  $as_echo_n "(cached) " >&6
13453else
13454
13455  ax_check_save_flags=$CFLAGS
13456  CFLAGS="$CFLAGS  -Werror $flag"
13457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458/* end confdefs.h.  */
13459int main(void) { return 0; }
13460_ACEOF
13461if ac_fn_c_try_compile "$LINENO"; then :
13462  eval "$as_CACHEVAR=yes"
13463else
13464  eval "$as_CACHEVAR=no"
13465fi
13466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467  CFLAGS=$ax_check_save_flags
13468fi
13469eval ac_res=\$$as_CACHEVAR
13470	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13471$as_echo "$ac_res" >&6; }
13472if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13473
13474if ${AM_CFLAGS+:} false; then :
13475
13476  case " $AM_CFLAGS " in #(
13477  *" $flag "*) :
13478    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13479  (: AM_CFLAGS already contains $flag) 2>&5
13480  ac_status=$?
13481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13482  test $ac_status = 0; } ;; #(
13483  *) :
13484
13485     as_fn_append AM_CFLAGS " $flag"
13486     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13487  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13488  ac_status=$?
13489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13490  test $ac_status = 0; }
13491     ;;
13492esac
13493
13494else
13495
13496  AM_CFLAGS=$flag
13497  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13498  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13499  ac_status=$?
13500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501  test $ac_status = 0; }
13502
13503fi
13504
13505else
13506  :
13507fi
13508
13509done
13510
13511fi
13512
13513ac_ext=cpp
13514ac_cpp='$CXXCPP $CPPFLAGS'
13515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13518
13519ac_ext=cpp
13520ac_cpp='$CXXCPP $CPPFLAGS'
13521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13524if test -z "$CXX"; then
13525  if test -n "$CCC"; then
13526    CXX=$CCC
13527  else
13528    if test -n "$ac_tool_prefix"; then
13529  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13530  do
13531    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534$as_echo_n "checking for $ac_word... " >&6; }
13535if ${ac_cv_prog_CXX+:} false; then :
13536  $as_echo_n "(cached) " >&6
13537else
13538  if test -n "$CXX"; then
13539  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13540else
13541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542for as_dir in $PATH
13543do
13544  IFS=$as_save_IFS
13545  test -z "$as_dir" && as_dir=.
13546    for ac_exec_ext in '' $ac_executable_extensions; do
13547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13548    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13550    break 2
13551  fi
13552done
13553  done
13554IFS=$as_save_IFS
13555
13556fi
13557fi
13558CXX=$ac_cv_prog_CXX
13559if test -n "$CXX"; then
13560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13561$as_echo "$CXX" >&6; }
13562else
13563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564$as_echo "no" >&6; }
13565fi
13566
13567
13568    test -n "$CXX" && break
13569  done
13570fi
13571if test -z "$CXX"; then
13572  ac_ct_CXX=$CXX
13573  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13574do
13575  # Extract the first word of "$ac_prog", so it can be a program name with args.
13576set dummy $ac_prog; ac_word=$2
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578$as_echo_n "checking for $ac_word... " >&6; }
13579if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13580  $as_echo_n "(cached) " >&6
13581else
13582  if test -n "$ac_ct_CXX"; then
13583  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13584else
13585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586for as_dir in $PATH
13587do
13588  IFS=$as_save_IFS
13589  test -z "$as_dir" && as_dir=.
13590    for ac_exec_ext in '' $ac_executable_extensions; do
13591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592    ac_cv_prog_ac_ct_CXX="$ac_prog"
13593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594    break 2
13595  fi
13596done
13597  done
13598IFS=$as_save_IFS
13599
13600fi
13601fi
13602ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13603if test -n "$ac_ct_CXX"; then
13604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13605$as_echo "$ac_ct_CXX" >&6; }
13606else
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608$as_echo "no" >&6; }
13609fi
13610
13611
13612  test -n "$ac_ct_CXX" && break
13613done
13614
13615  if test "x$ac_ct_CXX" = x; then
13616    CXX="g++"
13617  else
13618    case $cross_compiling:$ac_tool_warned in
13619yes:)
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13622ac_tool_warned=yes ;;
13623esac
13624    CXX=$ac_ct_CXX
13625  fi
13626fi
13627
13628  fi
13629fi
13630# Provide some information about the compiler.
13631$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13632set X $ac_compile
13633ac_compiler=$2
13634for ac_option in --version -v -V -qversion; do
13635  { { ac_try="$ac_compiler $ac_option >&5"
13636case "(($ac_try" in
13637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638  *) ac_try_echo=$ac_try;;
13639esac
13640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13641$as_echo "$ac_try_echo"; } >&5
13642  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13643  ac_status=$?
13644  if test -s conftest.err; then
13645    sed '10a\
13646... rest of stderr output deleted ...
13647         10q' conftest.err >conftest.er1
13648    cat conftest.er1 >&5
13649  fi
13650  rm -f conftest.er1 conftest.err
13651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13652  test $ac_status = 0; }
13653done
13654
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13656$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13657if ${ac_cv_cxx_compiler_gnu+:} false; then :
13658  $as_echo_n "(cached) " >&6
13659else
13660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661/* end confdefs.h.  */
13662
13663int
13664main ()
13665{
13666#ifndef __GNUC__
13667       choke me
13668#endif
13669
13670  ;
13671  return 0;
13672}
13673_ACEOF
13674if ac_fn_cxx_try_compile "$LINENO"; then :
13675  ac_compiler_gnu=yes
13676else
13677  ac_compiler_gnu=no
13678fi
13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13681
13682fi
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13684$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13685if test $ac_compiler_gnu = yes; then
13686  GXX=yes
13687else
13688  GXX=
13689fi
13690ac_test_CXXFLAGS=${CXXFLAGS+set}
13691ac_save_CXXFLAGS=$CXXFLAGS
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13693$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13694if ${ac_cv_prog_cxx_g+:} false; then :
13695  $as_echo_n "(cached) " >&6
13696else
13697  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13698   ac_cxx_werror_flag=yes
13699   ac_cv_prog_cxx_g=no
13700   CXXFLAGS="-g"
13701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702/* end confdefs.h.  */
13703
13704int
13705main ()
13706{
13707
13708  ;
13709  return 0;
13710}
13711_ACEOF
13712if ac_fn_cxx_try_compile "$LINENO"; then :
13713  ac_cv_prog_cxx_g=yes
13714else
13715  CXXFLAGS=""
13716      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717/* end confdefs.h.  */
13718
13719int
13720main ()
13721{
13722
13723  ;
13724  return 0;
13725}
13726_ACEOF
13727if ac_fn_cxx_try_compile "$LINENO"; then :
13728
13729else
13730  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13731	 CXXFLAGS="-g"
13732	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733/* end confdefs.h.  */
13734
13735int
13736main ()
13737{
13738
13739  ;
13740  return 0;
13741}
13742_ACEOF
13743if ac_fn_cxx_try_compile "$LINENO"; then :
13744  ac_cv_prog_cxx_g=yes
13745fi
13746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747fi
13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749fi
13750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13752fi
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13754$as_echo "$ac_cv_prog_cxx_g" >&6; }
13755if test "$ac_test_CXXFLAGS" = set; then
13756  CXXFLAGS=$ac_save_CXXFLAGS
13757elif test $ac_cv_prog_cxx_g = yes; then
13758  if test "$GXX" = yes; then
13759    CXXFLAGS="-g -O2"
13760  else
13761    CXXFLAGS="-g"
13762  fi
13763else
13764  if test "$GXX" = yes; then
13765    CXXFLAGS="-O2"
13766  else
13767    CXXFLAGS=
13768  fi
13769fi
13770ac_ext=cpp
13771ac_cpp='$CXXCPP $CPPFLAGS'
13772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13775
13776depcc="$CXX"  am_compiler_list=
13777
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13779$as_echo_n "checking dependency style of $depcc... " >&6; }
13780if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13781  $as_echo_n "(cached) " >&6
13782else
13783  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13784  # We make a subdir and do the tests there.  Otherwise we can end up
13785  # making bogus files that we don't know about and never remove.  For
13786  # instance it was reported that on HP-UX the gcc test will end up
13787  # making a dummy file named 'D' -- because '-MD' means "put the output
13788  # in D".
13789  rm -rf conftest.dir
13790  mkdir conftest.dir
13791  # Copy depcomp to subdir because otherwise we won't find it if we're
13792  # using a relative directory.
13793  cp "$am_depcomp" conftest.dir
13794  cd conftest.dir
13795  # We will build objects and dependencies in a subdirectory because
13796  # it helps to detect inapplicable dependency modes.  For instance
13797  # both Tru64's cc and ICC support -MD to output dependencies as a
13798  # side effect of compilation, but ICC will put the dependencies in
13799  # the current directory while Tru64 will put them in the object
13800  # directory.
13801  mkdir sub
13802
13803  am_cv_CXX_dependencies_compiler_type=none
13804  if test "$am_compiler_list" = ""; then
13805     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13806  fi
13807  am__universal=false
13808  case " $depcc " in #(
13809     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13810     esac
13811
13812  for depmode in $am_compiler_list; do
13813    # Setup a source with many dependencies, because some compilers
13814    # like to wrap large dependency lists on column 80 (with \), and
13815    # we should not choose a depcomp mode which is confused by this.
13816    #
13817    # We need to recreate these files for each test, as the compiler may
13818    # overwrite some of them when testing with obscure command lines.
13819    # This happens at least with the AIX C compiler.
13820    : > sub/conftest.c
13821    for i in 1 2 3 4 5 6; do
13822      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13823      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13824      # Solaris 10 /bin/sh.
13825      echo '/* dummy */' > sub/conftst$i.h
13826    done
13827    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13828
13829    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13830    # mode.  It turns out that the SunPro C++ compiler does not properly
13831    # handle '-M -o', and we need to detect this.  Also, some Intel
13832    # versions had trouble with output in subdirs.
13833    am__obj=sub/conftest.${OBJEXT-o}
13834    am__minus_obj="-o $am__obj"
13835    case $depmode in
13836    gcc)
13837      # This depmode causes a compiler race in universal mode.
13838      test "$am__universal" = false || continue
13839      ;;
13840    nosideeffect)
13841      # After this tag, mechanisms are not by side-effect, so they'll
13842      # only be used when explicitly requested.
13843      if test "x$enable_dependency_tracking" = xyes; then
13844	continue
13845      else
13846	break
13847      fi
13848      ;;
13849    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13850      # This compiler won't grok '-c -o', but also, the minuso test has
13851      # not run yet.  These depmodes are late enough in the game, and
13852      # so weak that their functioning should not be impacted.
13853      am__obj=conftest.${OBJEXT-o}
13854      am__minus_obj=
13855      ;;
13856    none) break ;;
13857    esac
13858    if depmode=$depmode \
13859       source=sub/conftest.c object=$am__obj \
13860       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13861       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13862         >/dev/null 2>conftest.err &&
13863       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13864       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13865       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13866       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13867      # icc doesn't choke on unknown options, it will just issue warnings
13868      # or remarks (even with -Werror).  So we grep stderr for any message
13869      # that says an option was ignored or not supported.
13870      # When given -MP, icc 7.0 and 7.1 complain thusly:
13871      #   icc: Command line warning: ignoring option '-M'; no argument required
13872      # The diagnosis changed in icc 8.0:
13873      #   icc: Command line remark: option '-MP' not supported
13874      if (grep 'ignoring option' conftest.err ||
13875          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13876        am_cv_CXX_dependencies_compiler_type=$depmode
13877        break
13878      fi
13879    fi
13880  done
13881
13882  cd ..
13883  rm -rf conftest.dir
13884else
13885  am_cv_CXX_dependencies_compiler_type=none
13886fi
13887
13888fi
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13890$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13891CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13892
13893 if
13894  test "x$enable_dependency_tracking" != xno \
13895  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13896  am__fastdepCXX_TRUE=
13897  am__fastdepCXX_FALSE='#'
13898else
13899  am__fastdepCXX_TRUE='#'
13900  am__fastdepCXX_FALSE=
13901fi
13902
13903
13904
13905
13906func_stripname_cnf ()
13907{
13908  case $2 in
13909  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13910  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13911  esac
13912} # func_stripname_cnf
13913
13914      if test -n "$CXX" && ( test no != "$CXX" &&
13915    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13916    (test g++ != "$CXX"))); then
13917  ac_ext=cpp
13918ac_cpp='$CXXCPP $CPPFLAGS'
13919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13923$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13924if test -z "$CXXCPP"; then
13925  if ${ac_cv_prog_CXXCPP+:} false; then :
13926  $as_echo_n "(cached) " >&6
13927else
13928      # Double quotes because CXXCPP needs to be expanded
13929    for CXXCPP in "$CXX -E" "/lib/cpp"
13930    do
13931      ac_preproc_ok=false
13932for ac_cxx_preproc_warn_flag in '' yes
13933do
13934  # Use a header file that comes with gcc, so configuring glibc
13935  # with a fresh cross-compiler works.
13936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13937  # <limits.h> exists even on freestanding compilers.
13938  # On the NeXT, cc -E runs the code through the compiler's parser,
13939  # not just through cpp. "Syntax error" is here to catch this case.
13940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941/* end confdefs.h.  */
13942#ifdef __STDC__
13943# include <limits.h>
13944#else
13945# include <assert.h>
13946#endif
13947		     Syntax error
13948_ACEOF
13949if ac_fn_cxx_try_cpp "$LINENO"; then :
13950
13951else
13952  # Broken: fails on valid input.
13953continue
13954fi
13955rm -f conftest.err conftest.i conftest.$ac_ext
13956
13957  # OK, works on sane cases.  Now check whether nonexistent headers
13958  # can be detected and how.
13959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h.  */
13961#include <ac_nonexistent.h>
13962_ACEOF
13963if ac_fn_cxx_try_cpp "$LINENO"; then :
13964  # Broken: success on invalid input.
13965continue
13966else
13967  # Passes both tests.
13968ac_preproc_ok=:
13969break
13970fi
13971rm -f conftest.err conftest.i conftest.$ac_ext
13972
13973done
13974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13975rm -f conftest.i conftest.err conftest.$ac_ext
13976if $ac_preproc_ok; then :
13977  break
13978fi
13979
13980    done
13981    ac_cv_prog_CXXCPP=$CXXCPP
13982
13983fi
13984  CXXCPP=$ac_cv_prog_CXXCPP
13985else
13986  ac_cv_prog_CXXCPP=$CXXCPP
13987fi
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13989$as_echo "$CXXCPP" >&6; }
13990ac_preproc_ok=false
13991for ac_cxx_preproc_warn_flag in '' yes
13992do
13993  # Use a header file that comes with gcc, so configuring glibc
13994  # with a fresh cross-compiler works.
13995  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13996  # <limits.h> exists even on freestanding compilers.
13997  # On the NeXT, cc -E runs the code through the compiler's parser,
13998  # not just through cpp. "Syntax error" is here to catch this case.
13999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000/* end confdefs.h.  */
14001#ifdef __STDC__
14002# include <limits.h>
14003#else
14004# include <assert.h>
14005#endif
14006		     Syntax error
14007_ACEOF
14008if ac_fn_cxx_try_cpp "$LINENO"; then :
14009
14010else
14011  # Broken: fails on valid input.
14012continue
14013fi
14014rm -f conftest.err conftest.i conftest.$ac_ext
14015
14016  # OK, works on sane cases.  Now check whether nonexistent headers
14017  # can be detected and how.
14018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019/* end confdefs.h.  */
14020#include <ac_nonexistent.h>
14021_ACEOF
14022if ac_fn_cxx_try_cpp "$LINENO"; then :
14023  # Broken: success on invalid input.
14024continue
14025else
14026  # Passes both tests.
14027ac_preproc_ok=:
14028break
14029fi
14030rm -f conftest.err conftest.i conftest.$ac_ext
14031
14032done
14033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14034rm -f conftest.i conftest.err conftest.$ac_ext
14035if $ac_preproc_ok; then :
14036
14037else
14038  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14040as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14041See \`config.log' for more details" "$LINENO" 5; }
14042fi
14043
14044ac_ext=cpp
14045ac_cpp='$CXXCPP $CPPFLAGS'
14046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14049
14050else
14051  _lt_caught_CXX_error=yes
14052fi
14053
14054ac_ext=cpp
14055ac_cpp='$CXXCPP $CPPFLAGS'
14056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14059
14060archive_cmds_need_lc_CXX=no
14061allow_undefined_flag_CXX=
14062always_export_symbols_CXX=no
14063archive_expsym_cmds_CXX=
14064compiler_needs_object_CXX=no
14065export_dynamic_flag_spec_CXX=
14066hardcode_direct_CXX=no
14067hardcode_direct_absolute_CXX=no
14068hardcode_libdir_flag_spec_CXX=
14069hardcode_libdir_separator_CXX=
14070hardcode_minus_L_CXX=no
14071hardcode_shlibpath_var_CXX=unsupported
14072hardcode_automatic_CXX=no
14073inherit_rpath_CXX=no
14074module_cmds_CXX=
14075module_expsym_cmds_CXX=
14076link_all_deplibs_CXX=unknown
14077old_archive_cmds_CXX=$old_archive_cmds
14078reload_flag_CXX=$reload_flag
14079reload_cmds_CXX=$reload_cmds
14080no_undefined_flag_CXX=
14081whole_archive_flag_spec_CXX=
14082enable_shared_with_static_runtimes_CXX=no
14083
14084# Source file extension for C++ test sources.
14085ac_ext=cpp
14086
14087# Object file extension for compiled C++ test sources.
14088objext=o
14089objext_CXX=$objext
14090
14091# No sense in running all these tests if we already determined that
14092# the CXX compiler isn't working.  Some variables (like enable_shared)
14093# are currently assumed to apply to all compilers on this platform,
14094# and will be corrupted by setting them based on a non-working compiler.
14095if test yes != "$_lt_caught_CXX_error"; then
14096  # Code to be used in simple compile tests
14097  lt_simple_compile_test_code="int some_variable = 0;"
14098
14099  # Code to be used in simple link tests
14100  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14101
14102  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14103
14104
14105
14106
14107
14108
14109# If no C compiler was specified, use CC.
14110LTCC=${LTCC-"$CC"}
14111
14112# If no C compiler flags were specified, use CFLAGS.
14113LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14114
14115# Allow CC to be a program name with arguments.
14116compiler=$CC
14117
14118
14119  # save warnings/boilerplate of simple test code
14120  ac_outfile=conftest.$ac_objext
14121echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14123_lt_compiler_boilerplate=`cat conftest.err`
14124$RM conftest*
14125
14126  ac_outfile=conftest.$ac_objext
14127echo "$lt_simple_link_test_code" >conftest.$ac_ext
14128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14129_lt_linker_boilerplate=`cat conftest.err`
14130$RM -r conftest*
14131
14132
14133  # Allow CC to be a program name with arguments.
14134  lt_save_CC=$CC
14135  lt_save_CFLAGS=$CFLAGS
14136  lt_save_LD=$LD
14137  lt_save_GCC=$GCC
14138  GCC=$GXX
14139  lt_save_with_gnu_ld=$with_gnu_ld
14140  lt_save_path_LD=$lt_cv_path_LD
14141  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14142    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14143  else
14144    $as_unset lt_cv_prog_gnu_ld
14145  fi
14146  if test -n "${lt_cv_path_LDCXX+set}"; then
14147    lt_cv_path_LD=$lt_cv_path_LDCXX
14148  else
14149    $as_unset lt_cv_path_LD
14150  fi
14151  test -z "${LDCXX+set}" || LD=$LDCXX
14152  CC=${CXX-"c++"}
14153  CFLAGS=$CXXFLAGS
14154  compiler=$CC
14155  compiler_CXX=$CC
14156  func_cc_basename $compiler
14157cc_basename=$func_cc_basename_result
14158
14159
14160  if test -n "$compiler"; then
14161    # We don't want -fno-exception when compiling C++ code, so set the
14162    # no_builtin_flag separately
14163    if test yes = "$GXX"; then
14164      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14165    else
14166      lt_prog_compiler_no_builtin_flag_CXX=
14167    fi
14168
14169    if test yes = "$GXX"; then
14170      # Set up default GNU C++ configuration
14171
14172
14173
14174# Check whether --with-gnu-ld was given.
14175if test "${with_gnu_ld+set}" = set; then :
14176  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14177else
14178  with_gnu_ld=no
14179fi
14180
14181ac_prog=ld
14182if test yes = "$GCC"; then
14183  # Check if gcc -print-prog-name=ld gives a path.
14184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14185$as_echo_n "checking for ld used by $CC... " >&6; }
14186  case $host in
14187  *-*-mingw*)
14188    # gcc leaves a trailing carriage return, which upsets mingw
14189    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14190  *)
14191    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14192  esac
14193  case $ac_prog in
14194    # Accept absolute paths.
14195    [\\/]* | ?:[\\/]*)
14196      re_direlt='/[^/][^/]*/\.\./'
14197      # Canonicalize the pathname of ld
14198      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14199      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14200	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14201      done
14202      test -z "$LD" && LD=$ac_prog
14203      ;;
14204  "")
14205    # If it fails, then pretend we aren't using GCC.
14206    ac_prog=ld
14207    ;;
14208  *)
14209    # If it is relative, then search for the first ld in PATH.
14210    with_gnu_ld=unknown
14211    ;;
14212  esac
14213elif test yes = "$with_gnu_ld"; then
14214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14215$as_echo_n "checking for GNU ld... " >&6; }
14216else
14217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14218$as_echo_n "checking for non-GNU ld... " >&6; }
14219fi
14220if ${lt_cv_path_LD+:} false; then :
14221  $as_echo_n "(cached) " >&6
14222else
14223  if test -z "$LD"; then
14224  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14225  for ac_dir in $PATH; do
14226    IFS=$lt_save_ifs
14227    test -z "$ac_dir" && ac_dir=.
14228    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14229      lt_cv_path_LD=$ac_dir/$ac_prog
14230      # Check to see if the program is GNU ld.  I'd rather use --version,
14231      # but apparently some variants of GNU ld only accept -v.
14232      # Break only if it was the GNU/non-GNU ld that we prefer.
14233      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14234      *GNU* | *'with BFD'*)
14235	test no != "$with_gnu_ld" && break
14236	;;
14237      *)
14238	test yes != "$with_gnu_ld" && break
14239	;;
14240      esac
14241    fi
14242  done
14243  IFS=$lt_save_ifs
14244else
14245  lt_cv_path_LD=$LD # Let the user override the test with a path.
14246fi
14247fi
14248
14249LD=$lt_cv_path_LD
14250if test -n "$LD"; then
14251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14252$as_echo "$LD" >&6; }
14253else
14254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255$as_echo "no" >&6; }
14256fi
14257test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14259$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14260if ${lt_cv_prog_gnu_ld+:} false; then :
14261  $as_echo_n "(cached) " >&6
14262else
14263  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14264case `$LD -v 2>&1 </dev/null` in
14265*GNU* | *'with BFD'*)
14266  lt_cv_prog_gnu_ld=yes
14267  ;;
14268*)
14269  lt_cv_prog_gnu_ld=no
14270  ;;
14271esac
14272fi
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14274$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14275with_gnu_ld=$lt_cv_prog_gnu_ld
14276
14277
14278
14279
14280
14281
14282
14283      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14284      # archiving commands below assume that GNU ld is being used.
14285      if test yes = "$with_gnu_ld"; then
14286        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14287        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'
14288
14289        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14290        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14291
14292        # If archive_cmds runs LD, not CC, wlarc should be empty
14293        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14294        #     investigate it a little bit more. (MM)
14295        wlarc='$wl'
14296
14297        # ancient GNU ld didn't support --whole-archive et. al.
14298        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14299	  $GREP 'no-whole-archive' > /dev/null; then
14300          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14301        else
14302          whole_archive_flag_spec_CXX=
14303        fi
14304      else
14305        with_gnu_ld=no
14306        wlarc=
14307
14308        # A generic and very simple default shared library creation
14309        # command for GNU C++ for the case where it uses the native
14310        # linker, instead of GNU ld.  If possible, this setting should
14311        # overridden to take advantage of the native linker features on
14312        # the platform it is being used on.
14313        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14314      fi
14315
14316      # Commands to make compiler produce verbose output that lists
14317      # what "hidden" libraries, object files and flags are used when
14318      # linking a shared library.
14319      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14320
14321    else
14322      GXX=no
14323      with_gnu_ld=no
14324      wlarc=
14325    fi
14326
14327    # PORTME: fill in a description of your system's C++ link characteristics
14328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14329$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14330    ld_shlibs_CXX=yes
14331    case $host_os in
14332      aix3*)
14333        # FIXME: insert proper C++ library support
14334        ld_shlibs_CXX=no
14335        ;;
14336      aix[4-9]*)
14337        if test ia64 = "$host_cpu"; then
14338          # On IA64, the linker does run time linking by default, so we don't
14339          # have to do anything special.
14340          aix_use_runtimelinking=no
14341          exp_sym_flag='-Bexport'
14342          no_entry_flag=
14343        else
14344          aix_use_runtimelinking=no
14345
14346          # Test if we are trying to use run time linking or normal
14347          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14348          # have runtime linking enabled, and use it for executables.
14349          # For shared libraries, we enable/disable runtime linking
14350          # depending on the kind of the shared library created -
14351          # when "with_aix_soname,aix_use_runtimelinking" is:
14352          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14353          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14354          #            lib.a           static archive
14355          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14356          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14357          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14358          #            lib.a(lib.so.V) shared, rtl:no
14359          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14360          #            lib.a           static archive
14361          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14362	    for ld_flag in $LDFLAGS; do
14363	      case $ld_flag in
14364	      *-brtl*)
14365	        aix_use_runtimelinking=yes
14366	        break
14367	        ;;
14368	      esac
14369	    done
14370	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14371	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14372	      # so we don't have lib.a shared libs to link our executables.
14373	      # We have to force runtime linking in this case.
14374	      aix_use_runtimelinking=yes
14375	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14376	    fi
14377	    ;;
14378          esac
14379
14380          exp_sym_flag='-bexport'
14381          no_entry_flag='-bnoentry'
14382        fi
14383
14384        # When large executables or shared objects are built, AIX ld can
14385        # have problems creating the table of contents.  If linking a library
14386        # or program results in "error TOC overflow" add -mminimal-toc to
14387        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14388        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14389
14390        archive_cmds_CXX=''
14391        hardcode_direct_CXX=yes
14392        hardcode_direct_absolute_CXX=yes
14393        hardcode_libdir_separator_CXX=':'
14394        link_all_deplibs_CXX=yes
14395        file_list_spec_CXX='$wl-f,'
14396        case $with_aix_soname,$aix_use_runtimelinking in
14397        aix,*) ;;	# no import file
14398        svr4,* | *,yes) # use import file
14399          # The Import File defines what to hardcode.
14400          hardcode_direct_CXX=no
14401          hardcode_direct_absolute_CXX=no
14402          ;;
14403        esac
14404
14405        if test yes = "$GXX"; then
14406          case $host_os in aix4.[012]|aix4.[012].*)
14407          # We only want to do this on AIX 4.2 and lower, the check
14408          # below for broken collect2 doesn't work under 4.3+
14409	  collect2name=`$CC -print-prog-name=collect2`
14410	  if test -f "$collect2name" &&
14411	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14412	  then
14413	    # We have reworked collect2
14414	    :
14415	  else
14416	    # We have old collect2
14417	    hardcode_direct_CXX=unsupported
14418	    # It fails to find uninstalled libraries when the uninstalled
14419	    # path is not listed in the libpath.  Setting hardcode_minus_L
14420	    # to unsupported forces relinking
14421	    hardcode_minus_L_CXX=yes
14422	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14423	    hardcode_libdir_separator_CXX=
14424	  fi
14425          esac
14426          shared_flag='-shared'
14427	  if test yes = "$aix_use_runtimelinking"; then
14428	    shared_flag=$shared_flag' $wl-G'
14429	  fi
14430	  # Need to ensure runtime linking is disabled for the traditional
14431	  # shared library, or the linker may eventually find shared libraries
14432	  # /with/ Import File - we do not want to mix them.
14433	  shared_flag_aix='-shared'
14434	  shared_flag_svr4='-shared $wl-G'
14435        else
14436          # not using gcc
14437          if test ia64 = "$host_cpu"; then
14438	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14439	  # chokes on -Wl,-G. The following line is correct:
14440	  shared_flag='-G'
14441          else
14442	    if test yes = "$aix_use_runtimelinking"; then
14443	      shared_flag='$wl-G'
14444	    else
14445	      shared_flag='$wl-bM:SRE'
14446	    fi
14447	    shared_flag_aix='$wl-bM:SRE'
14448	    shared_flag_svr4='$wl-G'
14449          fi
14450        fi
14451
14452        export_dynamic_flag_spec_CXX='$wl-bexpall'
14453        # It seems that -bexpall does not export symbols beginning with
14454        # underscore (_), so it is better to generate a list of symbols to
14455	# export.
14456        always_export_symbols_CXX=yes
14457	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14458          # Warning - without using the other runtime loading flags (-brtl),
14459          # -berok will link without error, but may produce a broken library.
14460          # The "-G" linker flag allows undefined symbols.
14461          no_undefined_flag_CXX='-bernotok'
14462          # Determine the default libpath from the value encoded in an empty
14463          # executable.
14464          if test set = "${lt_cv_aix_libpath+set}"; then
14465  aix_libpath=$lt_cv_aix_libpath
14466else
14467  if ${lt_cv_aix_libpath__CXX+:} false; then :
14468  $as_echo_n "(cached) " >&6
14469else
14470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h.  */
14472
14473int
14474main ()
14475{
14476
14477  ;
14478  return 0;
14479}
14480_ACEOF
14481if ac_fn_cxx_try_link "$LINENO"; then :
14482
14483  lt_aix_libpath_sed='
14484      /Import File Strings/,/^$/ {
14485	  /^0/ {
14486	      s/^0  *\([^ ]*\) *$/\1/
14487	      p
14488	  }
14489      }'
14490  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14491  # Check for a 64-bit object if we didn't find anything.
14492  if test -z "$lt_cv_aix_libpath__CXX"; then
14493    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14494  fi
14495fi
14496rm -f core conftest.err conftest.$ac_objext \
14497    conftest$ac_exeext conftest.$ac_ext
14498  if test -z "$lt_cv_aix_libpath__CXX"; then
14499    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14500  fi
14501
14502fi
14503
14504  aix_libpath=$lt_cv_aix_libpath__CXX
14505fi
14506
14507          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14508
14509          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14510        else
14511          if test ia64 = "$host_cpu"; then
14512	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14513	    allow_undefined_flag_CXX="-z nodefs"
14514	    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"
14515          else
14516	    # Determine the default libpath from the value encoded in an
14517	    # empty executable.
14518	    if test set = "${lt_cv_aix_libpath+set}"; then
14519  aix_libpath=$lt_cv_aix_libpath
14520else
14521  if ${lt_cv_aix_libpath__CXX+:} false; then :
14522  $as_echo_n "(cached) " >&6
14523else
14524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525/* end confdefs.h.  */
14526
14527int
14528main ()
14529{
14530
14531  ;
14532  return 0;
14533}
14534_ACEOF
14535if ac_fn_cxx_try_link "$LINENO"; then :
14536
14537  lt_aix_libpath_sed='
14538      /Import File Strings/,/^$/ {
14539	  /^0/ {
14540	      s/^0  *\([^ ]*\) *$/\1/
14541	      p
14542	  }
14543      }'
14544  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14545  # Check for a 64-bit object if we didn't find anything.
14546  if test -z "$lt_cv_aix_libpath__CXX"; then
14547    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14548  fi
14549fi
14550rm -f core conftest.err conftest.$ac_objext \
14551    conftest$ac_exeext conftest.$ac_ext
14552  if test -z "$lt_cv_aix_libpath__CXX"; then
14553    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14554  fi
14555
14556fi
14557
14558  aix_libpath=$lt_cv_aix_libpath__CXX
14559fi
14560
14561	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14562	    # Warning - without using the other run time loading flags,
14563	    # -berok will link without error, but may produce a broken library.
14564	    no_undefined_flag_CXX=' $wl-bernotok'
14565	    allow_undefined_flag_CXX=' $wl-berok'
14566	    if test yes = "$with_gnu_ld"; then
14567	      # We only use this code for GNU lds that support --whole-archive.
14568	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14569	    else
14570	      # Exported symbols can be pulled into shared objects from archives
14571	      whole_archive_flag_spec_CXX='$convenience'
14572	    fi
14573	    archive_cmds_need_lc_CXX=yes
14574	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14575	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14576	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14577	    if test svr4 != "$with_aix_soname"; then
14578	      # This is similar to how AIX traditionally builds its shared
14579	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14580	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14581	    fi
14582	    if test aix != "$with_aix_soname"; then
14583	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14584	    else
14585	      # used by -dlpreopen to get the symbols
14586	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14587	    fi
14588	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14589          fi
14590        fi
14591        ;;
14592
14593      beos*)
14594	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14595	  allow_undefined_flag_CXX=unsupported
14596	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14597	  # support --undefined.  This deserves some investigation.  FIXME
14598	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14599	else
14600	  ld_shlibs_CXX=no
14601	fi
14602	;;
14603
14604      chorus*)
14605        case $cc_basename in
14606          *)
14607	  # FIXME: insert proper C++ library support
14608	  ld_shlibs_CXX=no
14609	  ;;
14610        esac
14611        ;;
14612
14613      cygwin* | mingw* | pw32* | cegcc*)
14614	case $GXX,$cc_basename in
14615	,cl* | no,cl*)
14616	  # Native MSVC
14617	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14618	  # no search path for DLLs.
14619	  hardcode_libdir_flag_spec_CXX=' '
14620	  allow_undefined_flag_CXX=unsupported
14621	  always_export_symbols_CXX=yes
14622	  file_list_spec_CXX='@'
14623	  # Tell ltmain to make .lib files, not .a files.
14624	  libext=lib
14625	  # Tell ltmain to make .dll files, not .so files.
14626	  shrext_cmds=.dll
14627	  # FIXME: Setting linknames here is a bad hack.
14628	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14629	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14630              cp "$export_symbols" "$output_objdir/$soname.def";
14631              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14632            else
14633              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14634            fi~
14635            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14636            linknames='
14637	  # The linker will not automatically build a static lib if we build a DLL.
14638	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14639	  enable_shared_with_static_runtimes_CXX=yes
14640	  # Don't use ranlib
14641	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14642	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14643            lt_tool_outputfile="@TOOL_OUTPUT@"~
14644            case $lt_outputfile in
14645              *.exe|*.EXE) ;;
14646              *)
14647                lt_outputfile=$lt_outputfile.exe
14648                lt_tool_outputfile=$lt_tool_outputfile.exe
14649                ;;
14650            esac~
14651            func_to_tool_file "$lt_outputfile"~
14652            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14653              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14654              $RM "$lt_outputfile.manifest";
14655            fi'
14656	  ;;
14657	*)
14658	  # g++
14659	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14660	  # as there is no search path for DLLs.
14661	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14662	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14663	  allow_undefined_flag_CXX=unsupported
14664	  always_export_symbols_CXX=no
14665	  enable_shared_with_static_runtimes_CXX=yes
14666
14667	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14668	    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'
14669	    # If the export-symbols file already is a .def file, use it as
14670	    # is; otherwise, prepend EXPORTS...
14671	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14672              cp $export_symbols $output_objdir/$soname.def;
14673            else
14674              echo EXPORTS > $output_objdir/$soname.def;
14675              cat $export_symbols >> $output_objdir/$soname.def;
14676            fi~
14677            $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'
14678	  else
14679	    ld_shlibs_CXX=no
14680	  fi
14681	  ;;
14682	esac
14683	;;
14684      darwin* | rhapsody*)
14685
14686
14687  archive_cmds_need_lc_CXX=no
14688  hardcode_direct_CXX=no
14689  hardcode_automatic_CXX=yes
14690  hardcode_shlibpath_var_CXX=unsupported
14691  if test yes = "$lt_cv_ld_force_load"; then
14692    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\"`'
14693
14694  else
14695    whole_archive_flag_spec_CXX=''
14696  fi
14697  link_all_deplibs_CXX=yes
14698  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14699  case $cc_basename in
14700     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14701     *) _lt_dar_can_shared=$GCC ;;
14702  esac
14703  if test yes = "$_lt_dar_can_shared"; then
14704    output_verbose_link_cmd=func_echo_all
14705    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"
14706    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14707    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"
14708    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"
14709       if test yes != "$lt_cv_apple_cc_single_mod"; then
14710      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"
14711      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"
14712    fi
14713
14714  else
14715  ld_shlibs_CXX=no
14716  fi
14717
14718	;;
14719
14720      os2*)
14721	hardcode_libdir_flag_spec_CXX='-L$libdir'
14722	hardcode_minus_L_CXX=yes
14723	allow_undefined_flag_CXX=unsupported
14724	shrext_cmds=.dll
14725	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14726	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14727	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14728	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14729	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14730	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14731	  emximp -o $lib $output_objdir/$libname.def'
14732	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14733	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14734	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14735	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14736	  prefix_cmds="$SED"~
14737	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14738	    prefix_cmds="$prefix_cmds -e 1d";
14739	  fi~
14740	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14741	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14742	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14743	  emximp -o $lib $output_objdir/$libname.def'
14744	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14745	enable_shared_with_static_runtimes_CXX=yes
14746	;;
14747
14748      dgux*)
14749        case $cc_basename in
14750          ec++*)
14751	    # FIXME: insert proper C++ library support
14752	    ld_shlibs_CXX=no
14753	    ;;
14754          ghcx*)
14755	    # Green Hills C++ Compiler
14756	    # FIXME: insert proper C++ library support
14757	    ld_shlibs_CXX=no
14758	    ;;
14759          *)
14760	    # FIXME: insert proper C++ library support
14761	    ld_shlibs_CXX=no
14762	    ;;
14763        esac
14764        ;;
14765
14766      freebsd2.*)
14767        # C++ shared libraries reported to be fairly broken before
14768	# switch to ELF
14769        ld_shlibs_CXX=no
14770        ;;
14771
14772      freebsd-elf*)
14773        archive_cmds_need_lc_CXX=no
14774        ;;
14775
14776      freebsd* | dragonfly*)
14777        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14778        # conventions
14779        ld_shlibs_CXX=yes
14780        ;;
14781
14782      haiku*)
14783        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14784        link_all_deplibs_CXX=yes
14785        ;;
14786
14787      hpux9*)
14788        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14789        hardcode_libdir_separator_CXX=:
14790        export_dynamic_flag_spec_CXX='$wl-E'
14791        hardcode_direct_CXX=yes
14792        hardcode_minus_L_CXX=yes # Not in the search PATH,
14793				             # but as the default
14794				             # location of the library.
14795
14796        case $cc_basename in
14797          CC*)
14798            # FIXME: insert proper C++ library support
14799            ld_shlibs_CXX=no
14800            ;;
14801          aCC*)
14802            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14803            # Commands to make compiler produce verbose output that lists
14804            # what "hidden" libraries, object files and flags are used when
14805            # linking a shared library.
14806            #
14807            # There doesn't appear to be a way to prevent this compiler from
14808            # explicitly linking system object files so we need to strip them
14809            # from the output so that they don't get included in the library
14810            # dependencies.
14811            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"'
14812            ;;
14813          *)
14814            if test yes = "$GXX"; then
14815              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14816            else
14817              # FIXME: insert proper C++ library support
14818              ld_shlibs_CXX=no
14819            fi
14820            ;;
14821        esac
14822        ;;
14823
14824      hpux10*|hpux11*)
14825        if test no = "$with_gnu_ld"; then
14826	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14827	  hardcode_libdir_separator_CXX=:
14828
14829          case $host_cpu in
14830            hppa*64*|ia64*)
14831              ;;
14832            *)
14833	      export_dynamic_flag_spec_CXX='$wl-E'
14834              ;;
14835          esac
14836        fi
14837        case $host_cpu in
14838          hppa*64*|ia64*)
14839            hardcode_direct_CXX=no
14840            hardcode_shlibpath_var_CXX=no
14841            ;;
14842          *)
14843            hardcode_direct_CXX=yes
14844            hardcode_direct_absolute_CXX=yes
14845            hardcode_minus_L_CXX=yes # Not in the search PATH,
14846					         # but as the default
14847					         # location of the library.
14848            ;;
14849        esac
14850
14851        case $cc_basename in
14852          CC*)
14853	    # FIXME: insert proper C++ library support
14854	    ld_shlibs_CXX=no
14855	    ;;
14856          aCC*)
14857	    case $host_cpu in
14858	      hppa*64*)
14859	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14860	        ;;
14861	      ia64*)
14862	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14863	        ;;
14864	      *)
14865	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14866	        ;;
14867	    esac
14868	    # Commands to make compiler produce verbose output that lists
14869	    # what "hidden" libraries, object files and flags are used when
14870	    # linking a shared library.
14871	    #
14872	    # There doesn't appear to be a way to prevent this compiler from
14873	    # explicitly linking system object files so we need to strip them
14874	    # from the output so that they don't get included in the library
14875	    # dependencies.
14876	    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"'
14877	    ;;
14878          *)
14879	    if test yes = "$GXX"; then
14880	      if test no = "$with_gnu_ld"; then
14881	        case $host_cpu in
14882	          hppa*64*)
14883	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14884	            ;;
14885	          ia64*)
14886	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14887	            ;;
14888	          *)
14889	            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'
14890	            ;;
14891	        esac
14892	      fi
14893	    else
14894	      # FIXME: insert proper C++ library support
14895	      ld_shlibs_CXX=no
14896	    fi
14897	    ;;
14898        esac
14899        ;;
14900
14901      interix[3-9]*)
14902	hardcode_direct_CXX=no
14903	hardcode_shlibpath_var_CXX=no
14904	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14905	export_dynamic_flag_spec_CXX='$wl-E'
14906	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14907	# Instead, shared libraries are loaded at an image base (0x10000000 by
14908	# default) and relocated if they conflict, which is a slow very memory
14909	# consuming and fragmenting process.  To avoid this, we pick a random,
14910	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14911	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14912	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'
14913	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'
14914	;;
14915      irix5* | irix6*)
14916        case $cc_basename in
14917          CC*)
14918	    # SGI C++
14919	    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'
14920
14921	    # Archives containing C++ object files must be created using
14922	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14923	    # necessary to make sure instantiated templates are included
14924	    # in the archive.
14925	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14926	    ;;
14927          *)
14928	    if test yes = "$GXX"; then
14929	      if test no = "$with_gnu_ld"; then
14930	        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'
14931	      else
14932	        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'
14933	      fi
14934	    fi
14935	    link_all_deplibs_CXX=yes
14936	    ;;
14937        esac
14938        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14939        hardcode_libdir_separator_CXX=:
14940        inherit_rpath_CXX=yes
14941        ;;
14942
14943      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14944        case $cc_basename in
14945          KCC*)
14946	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14947
14948	    # KCC will only create a shared library if the output file
14949	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14950	    # to its proper name (with version) after linking.
14951	    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'
14952	    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'
14953	    # Commands to make compiler produce verbose output that lists
14954	    # what "hidden" libraries, object files and flags are used when
14955	    # linking a shared library.
14956	    #
14957	    # There doesn't appear to be a way to prevent this compiler from
14958	    # explicitly linking system object files so we need to strip them
14959	    # from the output so that they don't get included in the library
14960	    # dependencies.
14961	    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"'
14962
14963	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14964	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14965
14966	    # Archives containing C++ object files must be created using
14967	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14968	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14969	    ;;
14970	  icpc* | ecpc* )
14971	    # Intel C++
14972	    with_gnu_ld=yes
14973	    # version 8.0 and above of icpc choke on multiply defined symbols
14974	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14975	    # earlier do not add the objects themselves.
14976	    case `$CC -V 2>&1` in
14977	      *"Version 7."*)
14978	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14979		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'
14980		;;
14981	      *)  # Version 8.0 or newer
14982	        tmp_idyn=
14983	        case $host_cpu in
14984		  ia64*) tmp_idyn=' -i_dynamic';;
14985		esac
14986	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14987		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'
14988		;;
14989	    esac
14990	    archive_cmds_need_lc_CXX=no
14991	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14992	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14993	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14994	    ;;
14995          pgCC* | pgcpp*)
14996            # Portland Group C++ compiler
14997	    case `$CC -V` in
14998	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14999	      prelink_cmds_CXX='tpldir=Template.dir~
15000               rm -rf $tpldir~
15001               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15002               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15003	      old_archive_cmds_CXX='tpldir=Template.dir~
15004                rm -rf $tpldir~
15005                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15006                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15007                $RANLIB $oldlib'
15008	      archive_cmds_CXX='tpldir=Template.dir~
15009                rm -rf $tpldir~
15010                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15011                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15012	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15013                rm -rf $tpldir~
15014                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15015                $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'
15016	      ;;
15017	    *) # Version 6 and above use weak symbols
15018	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15019	      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'
15020	      ;;
15021	    esac
15022
15023	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15024	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15025	    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'
15026            ;;
15027	  cxx*)
15028	    # Compaq C++
15029	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15030	    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'
15031
15032	    runpath_var=LD_RUN_PATH
15033	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15034	    hardcode_libdir_separator_CXX=:
15035
15036	    # Commands to make compiler produce verbose output that lists
15037	    # what "hidden" libraries, object files and flags are used when
15038	    # linking a shared library.
15039	    #
15040	    # There doesn't appear to be a way to prevent this compiler from
15041	    # explicitly linking system object files so we need to strip them
15042	    # from the output so that they don't get included in the library
15043	    # dependencies.
15044	    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'
15045	    ;;
15046	  xl* | mpixl* | bgxl*)
15047	    # IBM XL 8.0 on PPC, with GNU ld
15048	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15049	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15050	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15051	    if test yes = "$supports_anon_versioning"; then
15052	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15053                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15054                echo "local: *; };" >> $output_objdir/$libname.ver~
15055                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15056	    fi
15057	    ;;
15058	  *)
15059	    case `$CC -V 2>&1 | sed 5q` in
15060	    *Sun\ C*)
15061	      # Sun C++ 5.9
15062	      no_undefined_flag_CXX=' -zdefs'
15063	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15064	      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'
15065	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15066	      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'
15067	      compiler_needs_object_CXX=yes
15068
15069	      # Not sure whether something based on
15070	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15071	      # would be better.
15072	      output_verbose_link_cmd='func_echo_all'
15073
15074	      # Archives containing C++ object files must be created using
15075	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15076	      # necessary to make sure instantiated templates are included
15077	      # in the archive.
15078	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15079	      ;;
15080	    esac
15081	    ;;
15082	esac
15083	;;
15084
15085      lynxos*)
15086        # FIXME: insert proper C++ library support
15087	ld_shlibs_CXX=no
15088	;;
15089
15090      m88k*)
15091        # FIXME: insert proper C++ library support
15092        ld_shlibs_CXX=no
15093	;;
15094
15095      mvs*)
15096        case $cc_basename in
15097          cxx*)
15098	    # FIXME: insert proper C++ library support
15099	    ld_shlibs_CXX=no
15100	    ;;
15101	  *)
15102	    # FIXME: insert proper C++ library support
15103	    ld_shlibs_CXX=no
15104	    ;;
15105	esac
15106	;;
15107
15108      netbsd*)
15109        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15110	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15111	  wlarc=
15112	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15113	  hardcode_direct_CXX=yes
15114	  hardcode_shlibpath_var_CXX=no
15115	fi
15116	# Workaround some broken pre-1.5 toolchains
15117	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15118	;;
15119
15120      *nto* | *qnx*)
15121        ld_shlibs_CXX=yes
15122	;;
15123
15124      openbsd* | bitrig*)
15125	if test -f /usr/libexec/ld.so; then
15126	  hardcode_direct_CXX=yes
15127	  hardcode_shlibpath_var_CXX=no
15128	  hardcode_direct_absolute_CXX=yes
15129	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15130	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15131	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15132	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15133	    export_dynamic_flag_spec_CXX='$wl-E'
15134	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15135	  fi
15136	  output_verbose_link_cmd=func_echo_all
15137	else
15138	  ld_shlibs_CXX=no
15139	fi
15140	;;
15141
15142      osf3* | osf4* | osf5*)
15143        case $cc_basename in
15144          KCC*)
15145	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15146
15147	    # KCC will only create a shared library if the output file
15148	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15149	    # to its proper name (with version) after linking.
15150	    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'
15151
15152	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15153	    hardcode_libdir_separator_CXX=:
15154
15155	    # Archives containing C++ object files must be created using
15156	    # the KAI C++ compiler.
15157	    case $host in
15158	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15159	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15160	    esac
15161	    ;;
15162          RCC*)
15163	    # Rational C++ 2.4.1
15164	    # FIXME: insert proper C++ library support
15165	    ld_shlibs_CXX=no
15166	    ;;
15167          cxx*)
15168	    case $host in
15169	      osf3*)
15170	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15171	        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'
15172	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15173		;;
15174	      *)
15175	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15176	        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'
15177	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15178                  echo "-hidden">> $lib.exp~
15179                  $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~
15180                  $RM $lib.exp'
15181	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15182		;;
15183	    esac
15184
15185	    hardcode_libdir_separator_CXX=:
15186
15187	    # Commands to make compiler produce verbose output that lists
15188	    # what "hidden" libraries, object files and flags are used when
15189	    # linking a shared library.
15190	    #
15191	    # There doesn't appear to be a way to prevent this compiler from
15192	    # explicitly linking system object files so we need to strip them
15193	    # from the output so that they don't get included in the library
15194	    # dependencies.
15195	    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"'
15196	    ;;
15197	  *)
15198	    if test yes,no = "$GXX,$with_gnu_ld"; then
15199	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15200	      case $host in
15201	        osf3*)
15202	          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'
15203		  ;;
15204	        *)
15205	          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'
15206		  ;;
15207	      esac
15208
15209	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15210	      hardcode_libdir_separator_CXX=:
15211
15212	      # Commands to make compiler produce verbose output that lists
15213	      # what "hidden" libraries, object files and flags are used when
15214	      # linking a shared library.
15215	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15216
15217	    else
15218	      # FIXME: insert proper C++ library support
15219	      ld_shlibs_CXX=no
15220	    fi
15221	    ;;
15222        esac
15223        ;;
15224
15225      psos*)
15226        # FIXME: insert proper C++ library support
15227        ld_shlibs_CXX=no
15228        ;;
15229
15230      sunos4*)
15231        case $cc_basename in
15232          CC*)
15233	    # Sun C++ 4.x
15234	    # FIXME: insert proper C++ library support
15235	    ld_shlibs_CXX=no
15236	    ;;
15237          lcc*)
15238	    # Lucid
15239	    # FIXME: insert proper C++ library support
15240	    ld_shlibs_CXX=no
15241	    ;;
15242          *)
15243	    # FIXME: insert proper C++ library support
15244	    ld_shlibs_CXX=no
15245	    ;;
15246        esac
15247        ;;
15248
15249      solaris*)
15250        case $cc_basename in
15251          CC* | sunCC*)
15252	    # Sun C++ 4.2, 5.x and Centerline C++
15253            archive_cmds_need_lc_CXX=yes
15254	    no_undefined_flag_CXX=' -zdefs'
15255	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15256	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15257              $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'
15258
15259	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15260	    hardcode_shlibpath_var_CXX=no
15261	    case $host_os in
15262	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15263	      *)
15264		# The compiler driver will combine and reorder linker options,
15265		# but understands '-z linker_flag'.
15266	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15267		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15268	        ;;
15269	    esac
15270	    link_all_deplibs_CXX=yes
15271
15272	    output_verbose_link_cmd='func_echo_all'
15273
15274	    # Archives containing C++ object files must be created using
15275	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15276	    # necessary to make sure instantiated templates are included
15277	    # in the archive.
15278	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15279	    ;;
15280          gcx*)
15281	    # Green Hills C++ Compiler
15282	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15283
15284	    # The C++ compiler must be used to create the archive.
15285	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15286	    ;;
15287          *)
15288	    # GNU C++ compiler with Solaris linker
15289	    if test yes,no = "$GXX,$with_gnu_ld"; then
15290	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15291	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15292	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15293	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15294                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15295
15296	        # Commands to make compiler produce verbose output that lists
15297	        # what "hidden" libraries, object files and flags are used when
15298	        # linking a shared library.
15299	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15300	      else
15301	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15302	        # platform.
15303	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15304	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15305                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15306
15307	        # Commands to make compiler produce verbose output that lists
15308	        # what "hidden" libraries, object files and flags are used when
15309	        # linking a shared library.
15310	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15311	      fi
15312
15313	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15314	      case $host_os in
15315		solaris2.[0-5] | solaris2.[0-5].*) ;;
15316		*)
15317		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15318		  ;;
15319	      esac
15320	    fi
15321	    ;;
15322        esac
15323        ;;
15324
15325    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15326      no_undefined_flag_CXX='$wl-z,text'
15327      archive_cmds_need_lc_CXX=no
15328      hardcode_shlibpath_var_CXX=no
15329      runpath_var='LD_RUN_PATH'
15330
15331      case $cc_basename in
15332        CC*)
15333	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15334	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15335	  ;;
15336	*)
15337	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15338	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15339	  ;;
15340      esac
15341      ;;
15342
15343      sysv5* | sco3.2v5* | sco5v6*)
15344	# Note: We CANNOT use -z defs as we might desire, because we do not
15345	# link with -lc, and that would cause any symbols used from libc to
15346	# always be unresolved, which means just about no library would
15347	# ever link correctly.  If we're not using GNU ld we use -z text
15348	# though, which does catch some bad symbols but isn't as heavy-handed
15349	# as -z defs.
15350	no_undefined_flag_CXX='$wl-z,text'
15351	allow_undefined_flag_CXX='$wl-z,nodefs'
15352	archive_cmds_need_lc_CXX=no
15353	hardcode_shlibpath_var_CXX=no
15354	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15355	hardcode_libdir_separator_CXX=':'
15356	link_all_deplibs_CXX=yes
15357	export_dynamic_flag_spec_CXX='$wl-Bexport'
15358	runpath_var='LD_RUN_PATH'
15359
15360	case $cc_basename in
15361          CC*)
15362	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15363	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15364	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15365              '"$old_archive_cmds_CXX"
15366	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15367              '"$reload_cmds_CXX"
15368	    ;;
15369	  *)
15370	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15371	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15372	    ;;
15373	esac
15374      ;;
15375
15376      tandem*)
15377        case $cc_basename in
15378          NCC*)
15379	    # NonStop-UX NCC 3.20
15380	    # FIXME: insert proper C++ library support
15381	    ld_shlibs_CXX=no
15382	    ;;
15383          *)
15384	    # FIXME: insert proper C++ library support
15385	    ld_shlibs_CXX=no
15386	    ;;
15387        esac
15388        ;;
15389
15390      vxworks*)
15391        # FIXME: insert proper C++ library support
15392        ld_shlibs_CXX=no
15393        ;;
15394
15395      *)
15396        # FIXME: insert proper C++ library support
15397        ld_shlibs_CXX=no
15398        ;;
15399    esac
15400
15401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15402$as_echo "$ld_shlibs_CXX" >&6; }
15403    test no = "$ld_shlibs_CXX" && can_build_shared=no
15404
15405    GCC_CXX=$GXX
15406    LD_CXX=$LD
15407
15408    ## CAVEAT EMPTOR:
15409    ## There is no encapsulation within the following macros, do not change
15410    ## the running order or otherwise move them around unless you know exactly
15411    ## what you are doing...
15412    # Dependencies to place before and after the object being linked:
15413predep_objects_CXX=
15414postdep_objects_CXX=
15415predeps_CXX=
15416postdeps_CXX=
15417compiler_lib_search_path_CXX=
15418
15419cat > conftest.$ac_ext <<_LT_EOF
15420class Foo
15421{
15422public:
15423  Foo (void) { a = 0; }
15424private:
15425  int a;
15426};
15427_LT_EOF
15428
15429
15430_lt_libdeps_save_CFLAGS=$CFLAGS
15431case "$CC $CFLAGS " in #(
15432*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15433*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15434*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15435esac
15436
15437if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15438  (eval $ac_compile) 2>&5
15439  ac_status=$?
15440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15441  test $ac_status = 0; }; then
15442  # Parse the compiler output and extract the necessary
15443  # objects, libraries and library flags.
15444
15445  # Sentinel used to keep track of whether or not we are before
15446  # the conftest object file.
15447  pre_test_object_deps_done=no
15448
15449  for p in `eval "$output_verbose_link_cmd"`; do
15450    case $prev$p in
15451
15452    -L* | -R* | -l*)
15453       # Some compilers place space between "-{L,R}" and the path.
15454       # Remove the space.
15455       if test x-L = "$p" ||
15456          test x-R = "$p"; then
15457	 prev=$p
15458	 continue
15459       fi
15460
15461       # Expand the sysroot to ease extracting the directories later.
15462       if test -z "$prev"; then
15463         case $p in
15464         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15465         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15466         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15467         esac
15468       fi
15469       case $p in
15470       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15471       esac
15472       if test no = "$pre_test_object_deps_done"; then
15473	 case $prev in
15474	 -L | -R)
15475	   # Internal compiler library paths should come after those
15476	   # provided the user.  The postdeps already come after the
15477	   # user supplied libs so there is no need to process them.
15478	   if test -z "$compiler_lib_search_path_CXX"; then
15479	     compiler_lib_search_path_CXX=$prev$p
15480	   else
15481	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15482	   fi
15483	   ;;
15484	 # The "-l" case would never come before the object being
15485	 # linked, so don't bother handling this case.
15486	 esac
15487       else
15488	 if test -z "$postdeps_CXX"; then
15489	   postdeps_CXX=$prev$p
15490	 else
15491	   postdeps_CXX="${postdeps_CXX} $prev$p"
15492	 fi
15493       fi
15494       prev=
15495       ;;
15496
15497    *.lto.$objext) ;; # Ignore GCC LTO objects
15498    *.$objext)
15499       # This assumes that the test object file only shows up
15500       # once in the compiler output.
15501       if test "$p" = "conftest.$objext"; then
15502	 pre_test_object_deps_done=yes
15503	 continue
15504       fi
15505
15506       if test no = "$pre_test_object_deps_done"; then
15507	 if test -z "$predep_objects_CXX"; then
15508	   predep_objects_CXX=$p
15509	 else
15510	   predep_objects_CXX="$predep_objects_CXX $p"
15511	 fi
15512       else
15513	 if test -z "$postdep_objects_CXX"; then
15514	   postdep_objects_CXX=$p
15515	 else
15516	   postdep_objects_CXX="$postdep_objects_CXX $p"
15517	 fi
15518       fi
15519       ;;
15520
15521    *) ;; # Ignore the rest.
15522
15523    esac
15524  done
15525
15526  # Clean up.
15527  rm -f a.out a.exe
15528else
15529  echo "libtool.m4: error: problem compiling CXX test program"
15530fi
15531
15532$RM -f confest.$objext
15533CFLAGS=$_lt_libdeps_save_CFLAGS
15534
15535# PORTME: override above test on systems where it is broken
15536case $host_os in
15537interix[3-9]*)
15538  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15539  # hack all around it, let's just trust "g++" to DTRT.
15540  predep_objects_CXX=
15541  postdep_objects_CXX=
15542  postdeps_CXX=
15543  ;;
15544esac
15545
15546
15547case " $postdeps_CXX " in
15548*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15549esac
15550 compiler_lib_search_dirs_CXX=
15551if test -n "${compiler_lib_search_path_CXX}"; then
15552 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15553fi
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585    lt_prog_compiler_wl_CXX=
15586lt_prog_compiler_pic_CXX=
15587lt_prog_compiler_static_CXX=
15588
15589
15590  # C++ specific cases for pic, static, wl, etc.
15591  if test yes = "$GXX"; then
15592    lt_prog_compiler_wl_CXX='-Wl,'
15593    lt_prog_compiler_static_CXX='-static'
15594
15595    case $host_os in
15596    aix*)
15597      # All AIX code is PIC.
15598      if test ia64 = "$host_cpu"; then
15599	# AIX 5 now supports IA64 processor
15600	lt_prog_compiler_static_CXX='-Bstatic'
15601      fi
15602      lt_prog_compiler_pic_CXX='-fPIC'
15603      ;;
15604
15605    amigaos*)
15606      case $host_cpu in
15607      powerpc)
15608            # see comment about AmigaOS4 .so support
15609            lt_prog_compiler_pic_CXX='-fPIC'
15610        ;;
15611      m68k)
15612            # FIXME: we need at least 68020 code to build shared libraries, but
15613            # adding the '-m68020' flag to GCC prevents building anything better,
15614            # like '-m68040'.
15615            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15616        ;;
15617      esac
15618      ;;
15619
15620    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15621      # PIC is the default for these OSes.
15622      ;;
15623    mingw* | cygwin* | os2* | pw32* | cegcc*)
15624      # This hack is so that the source file can tell whether it is being
15625      # built for inclusion in a dll (and should export symbols for example).
15626      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15627      # (--disable-auto-import) libraries
15628      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15629      case $host_os in
15630      os2*)
15631	lt_prog_compiler_static_CXX='$wl-static'
15632	;;
15633      esac
15634      ;;
15635    darwin* | rhapsody*)
15636      # PIC is the default on this platform
15637      # Common symbols not allowed in MH_DYLIB files
15638      lt_prog_compiler_pic_CXX='-fno-common'
15639      ;;
15640    *djgpp*)
15641      # DJGPP does not support shared libraries at all
15642      lt_prog_compiler_pic_CXX=
15643      ;;
15644    haiku*)
15645      # PIC is the default for Haiku.
15646      # The "-static" flag exists, but is broken.
15647      lt_prog_compiler_static_CXX=
15648      ;;
15649    interix[3-9]*)
15650      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15651      # Instead, we relocate shared libraries at runtime.
15652      ;;
15653    sysv4*MP*)
15654      if test -d /usr/nec; then
15655	lt_prog_compiler_pic_CXX=-Kconform_pic
15656      fi
15657      ;;
15658    hpux*)
15659      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15660      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15661      # sets the default TLS model and affects inlining.
15662      case $host_cpu in
15663      hppa*64*)
15664	;;
15665      *)
15666	lt_prog_compiler_pic_CXX='-fPIC'
15667	;;
15668      esac
15669      ;;
15670    *qnx* | *nto*)
15671      # QNX uses GNU C++, but need to define -shared option too, otherwise
15672      # it will coredump.
15673      lt_prog_compiler_pic_CXX='-fPIC -shared'
15674      ;;
15675    *)
15676      lt_prog_compiler_pic_CXX='-fPIC'
15677      ;;
15678    esac
15679  else
15680    case $host_os in
15681      aix[4-9]*)
15682	# All AIX code is PIC.
15683	if test ia64 = "$host_cpu"; then
15684	  # AIX 5 now supports IA64 processor
15685	  lt_prog_compiler_static_CXX='-Bstatic'
15686	else
15687	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15688	fi
15689	;;
15690      chorus*)
15691	case $cc_basename in
15692	cxch68*)
15693	  # Green Hills C++ Compiler
15694	  # _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"
15695	  ;;
15696	esac
15697	;;
15698      mingw* | cygwin* | os2* | pw32* | cegcc*)
15699	# This hack is so that the source file can tell whether it is being
15700	# built for inclusion in a dll (and should export symbols for example).
15701	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15702	;;
15703      dgux*)
15704	case $cc_basename in
15705	  ec++*)
15706	    lt_prog_compiler_pic_CXX='-KPIC'
15707	    ;;
15708	  ghcx*)
15709	    # Green Hills C++ Compiler
15710	    lt_prog_compiler_pic_CXX='-pic'
15711	    ;;
15712	  *)
15713	    ;;
15714	esac
15715	;;
15716      freebsd* | dragonfly*)
15717	# FreeBSD uses GNU C++
15718	;;
15719      hpux9* | hpux10* | hpux11*)
15720	case $cc_basename in
15721	  CC*)
15722	    lt_prog_compiler_wl_CXX='-Wl,'
15723	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15724	    if test ia64 != "$host_cpu"; then
15725	      lt_prog_compiler_pic_CXX='+Z'
15726	    fi
15727	    ;;
15728	  aCC*)
15729	    lt_prog_compiler_wl_CXX='-Wl,'
15730	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15731	    case $host_cpu in
15732	    hppa*64*|ia64*)
15733	      # +Z the default
15734	      ;;
15735	    *)
15736	      lt_prog_compiler_pic_CXX='+Z'
15737	      ;;
15738	    esac
15739	    ;;
15740	  *)
15741	    ;;
15742	esac
15743	;;
15744      interix*)
15745	# This is c89, which is MS Visual C++ (no shared libs)
15746	# Anyone wants to do a port?
15747	;;
15748      irix5* | irix6* | nonstopux*)
15749	case $cc_basename in
15750	  CC*)
15751	    lt_prog_compiler_wl_CXX='-Wl,'
15752	    lt_prog_compiler_static_CXX='-non_shared'
15753	    # CC pic flag -KPIC is the default.
15754	    ;;
15755	  *)
15756	    ;;
15757	esac
15758	;;
15759      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15760	case $cc_basename in
15761	  KCC*)
15762	    # KAI C++ Compiler
15763	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15764	    lt_prog_compiler_pic_CXX='-fPIC'
15765	    ;;
15766	  ecpc* )
15767	    # old Intel C++ for x86_64, which still supported -KPIC.
15768	    lt_prog_compiler_wl_CXX='-Wl,'
15769	    lt_prog_compiler_pic_CXX='-KPIC'
15770	    lt_prog_compiler_static_CXX='-static'
15771	    ;;
15772	  icpc* )
15773	    # Intel C++, used to be incompatible with GCC.
15774	    # ICC 10 doesn't accept -KPIC any more.
15775	    lt_prog_compiler_wl_CXX='-Wl,'
15776	    lt_prog_compiler_pic_CXX='-fPIC'
15777	    lt_prog_compiler_static_CXX='-static'
15778	    ;;
15779	  pgCC* | pgcpp*)
15780	    # Portland Group C++ compiler
15781	    lt_prog_compiler_wl_CXX='-Wl,'
15782	    lt_prog_compiler_pic_CXX='-fpic'
15783	    lt_prog_compiler_static_CXX='-Bstatic'
15784	    ;;
15785	  cxx*)
15786	    # Compaq C++
15787	    # Make sure the PIC flag is empty.  It appears that all Alpha
15788	    # Linux and Compaq Tru64 Unix objects are PIC.
15789	    lt_prog_compiler_pic_CXX=
15790	    lt_prog_compiler_static_CXX='-non_shared'
15791	    ;;
15792	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15793	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15794	    lt_prog_compiler_wl_CXX='-Wl,'
15795	    lt_prog_compiler_pic_CXX='-qpic'
15796	    lt_prog_compiler_static_CXX='-qstaticlink'
15797	    ;;
15798	  *)
15799	    case `$CC -V 2>&1 | sed 5q` in
15800	    *Sun\ C*)
15801	      # Sun C++ 5.9
15802	      lt_prog_compiler_pic_CXX='-KPIC'
15803	      lt_prog_compiler_static_CXX='-Bstatic'
15804	      lt_prog_compiler_wl_CXX='-Qoption ld '
15805	      ;;
15806	    esac
15807	    ;;
15808	esac
15809	;;
15810      lynxos*)
15811	;;
15812      m88k*)
15813	;;
15814      mvs*)
15815	case $cc_basename in
15816	  cxx*)
15817	    lt_prog_compiler_pic_CXX='-W c,exportall'
15818	    ;;
15819	  *)
15820	    ;;
15821	esac
15822	;;
15823      netbsd*)
15824	;;
15825      *qnx* | *nto*)
15826        # QNX uses GNU C++, but need to define -shared option too, otherwise
15827        # it will coredump.
15828        lt_prog_compiler_pic_CXX='-fPIC -shared'
15829        ;;
15830      osf3* | osf4* | osf5*)
15831	case $cc_basename in
15832	  KCC*)
15833	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15834	    ;;
15835	  RCC*)
15836	    # Rational C++ 2.4.1
15837	    lt_prog_compiler_pic_CXX='-pic'
15838	    ;;
15839	  cxx*)
15840	    # Digital/Compaq C++
15841	    lt_prog_compiler_wl_CXX='-Wl,'
15842	    # Make sure the PIC flag is empty.  It appears that all Alpha
15843	    # Linux and Compaq Tru64 Unix objects are PIC.
15844	    lt_prog_compiler_pic_CXX=
15845	    lt_prog_compiler_static_CXX='-non_shared'
15846	    ;;
15847	  *)
15848	    ;;
15849	esac
15850	;;
15851      psos*)
15852	;;
15853      solaris*)
15854	case $cc_basename in
15855	  CC* | sunCC*)
15856	    # Sun C++ 4.2, 5.x and Centerline C++
15857	    lt_prog_compiler_pic_CXX='-KPIC'
15858	    lt_prog_compiler_static_CXX='-Bstatic'
15859	    lt_prog_compiler_wl_CXX='-Qoption ld '
15860	    ;;
15861	  gcx*)
15862	    # Green Hills C++ Compiler
15863	    lt_prog_compiler_pic_CXX='-PIC'
15864	    ;;
15865	  *)
15866	    ;;
15867	esac
15868	;;
15869      sunos4*)
15870	case $cc_basename in
15871	  CC*)
15872	    # Sun C++ 4.x
15873	    lt_prog_compiler_pic_CXX='-pic'
15874	    lt_prog_compiler_static_CXX='-Bstatic'
15875	    ;;
15876	  lcc*)
15877	    # Lucid
15878	    lt_prog_compiler_pic_CXX='-pic'
15879	    ;;
15880	  *)
15881	    ;;
15882	esac
15883	;;
15884      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15885	case $cc_basename in
15886	  CC*)
15887	    lt_prog_compiler_wl_CXX='-Wl,'
15888	    lt_prog_compiler_pic_CXX='-KPIC'
15889	    lt_prog_compiler_static_CXX='-Bstatic'
15890	    ;;
15891	esac
15892	;;
15893      tandem*)
15894	case $cc_basename in
15895	  NCC*)
15896	    # NonStop-UX NCC 3.20
15897	    lt_prog_compiler_pic_CXX='-KPIC'
15898	    ;;
15899	  *)
15900	    ;;
15901	esac
15902	;;
15903      vxworks*)
15904	;;
15905      *)
15906	lt_prog_compiler_can_build_shared_CXX=no
15907	;;
15908    esac
15909  fi
15910
15911case $host_os in
15912  # For platforms that do not support PIC, -DPIC is meaningless:
15913  *djgpp*)
15914    lt_prog_compiler_pic_CXX=
15915    ;;
15916  *)
15917    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15918    ;;
15919esac
15920
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15922$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15923if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15924  $as_echo_n "(cached) " >&6
15925else
15926  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15927fi
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15929$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15930lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15931
15932#
15933# Check to make sure the PIC flag actually works.
15934#
15935if test -n "$lt_prog_compiler_pic_CXX"; then
15936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15937$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15938if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15939  $as_echo_n "(cached) " >&6
15940else
15941  lt_cv_prog_compiler_pic_works_CXX=no
15942   ac_outfile=conftest.$ac_objext
15943   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15944   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15945   # Insert the option either (1) after the last *FLAGS variable, or
15946   # (2) before a word containing "conftest.", or (3) at the end.
15947   # Note that $ac_compile itself does not contain backslashes and begins
15948   # with a dollar sign (not a hyphen), so the echo should work correctly.
15949   # The option is referenced via a variable to avoid confusing sed.
15950   lt_compile=`echo "$ac_compile" | $SED \
15951   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15952   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15953   -e 's:$: $lt_compiler_flag:'`
15954   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15955   (eval "$lt_compile" 2>conftest.err)
15956   ac_status=$?
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   if (exit $ac_status) && test -s "$ac_outfile"; then
15960     # The compiler can only warn and ignore the option if not recognized
15961     # So say no if there are warnings other than the usual output.
15962     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15963     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15964     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15965       lt_cv_prog_compiler_pic_works_CXX=yes
15966     fi
15967   fi
15968   $RM conftest*
15969
15970fi
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15972$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15973
15974if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15975    case $lt_prog_compiler_pic_CXX in
15976     "" | " "*) ;;
15977     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15978     esac
15979else
15980    lt_prog_compiler_pic_CXX=
15981     lt_prog_compiler_can_build_shared_CXX=no
15982fi
15983
15984fi
15985
15986
15987
15988
15989
15990#
15991# Check to make sure the static flag actually works.
15992#
15993wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15995$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15996if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15997  $as_echo_n "(cached) " >&6
15998else
15999  lt_cv_prog_compiler_static_works_CXX=no
16000   save_LDFLAGS=$LDFLAGS
16001   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16002   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16003   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16004     # The linker can only warn and ignore the option if not recognized
16005     # So say no if there are warnings
16006     if test -s conftest.err; then
16007       # Append any errors to the config.log.
16008       cat conftest.err 1>&5
16009       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16010       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16011       if diff conftest.exp conftest.er2 >/dev/null; then
16012         lt_cv_prog_compiler_static_works_CXX=yes
16013       fi
16014     else
16015       lt_cv_prog_compiler_static_works_CXX=yes
16016     fi
16017   fi
16018   $RM -r conftest*
16019   LDFLAGS=$save_LDFLAGS
16020
16021fi
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16023$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16024
16025if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16026    :
16027else
16028    lt_prog_compiler_static_CXX=
16029fi
16030
16031
16032
16033
16034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16035$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16036if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16037  $as_echo_n "(cached) " >&6
16038else
16039  lt_cv_prog_compiler_c_o_CXX=no
16040   $RM -r conftest 2>/dev/null
16041   mkdir conftest
16042   cd conftest
16043   mkdir out
16044   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16045
16046   lt_compiler_flag="-o out/conftest2.$ac_objext"
16047   # Insert the option either (1) after the last *FLAGS variable, or
16048   # (2) before a word containing "conftest.", or (3) at the end.
16049   # Note that $ac_compile itself does not contain backslashes and begins
16050   # with a dollar sign (not a hyphen), so the echo should work correctly.
16051   lt_compile=`echo "$ac_compile" | $SED \
16052   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16053   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16054   -e 's:$: $lt_compiler_flag:'`
16055   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16056   (eval "$lt_compile" 2>out/conftest.err)
16057   ac_status=$?
16058   cat out/conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16061   then
16062     # The compiler can only warn and ignore the option if not recognized
16063     # So say no if there are warnings
16064     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16065     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16066     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16067       lt_cv_prog_compiler_c_o_CXX=yes
16068     fi
16069   fi
16070   chmod u+w . 2>&5
16071   $RM conftest*
16072   # SGI C++ compiler will create directory out/ii_files/ for
16073   # template instantiation
16074   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16075   $RM out/* && rmdir out
16076   cd ..
16077   $RM -r conftest
16078   $RM conftest*
16079
16080fi
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16082$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16083
16084
16085
16086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16088if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16089  $as_echo_n "(cached) " >&6
16090else
16091  lt_cv_prog_compiler_c_o_CXX=no
16092   $RM -r conftest 2>/dev/null
16093   mkdir conftest
16094   cd conftest
16095   mkdir out
16096   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16097
16098   lt_compiler_flag="-o out/conftest2.$ac_objext"
16099   # Insert the option either (1) after the last *FLAGS variable, or
16100   # (2) before a word containing "conftest.", or (3) at the end.
16101   # Note that $ac_compile itself does not contain backslashes and begins
16102   # with a dollar sign (not a hyphen), so the echo should work correctly.
16103   lt_compile=`echo "$ac_compile" | $SED \
16104   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16105   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16106   -e 's:$: $lt_compiler_flag:'`
16107   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16108   (eval "$lt_compile" 2>out/conftest.err)
16109   ac_status=$?
16110   cat out/conftest.err >&5
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16113   then
16114     # The compiler can only warn and ignore the option if not recognized
16115     # So say no if there are warnings
16116     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16117     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16118     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16119       lt_cv_prog_compiler_c_o_CXX=yes
16120     fi
16121   fi
16122   chmod u+w . 2>&5
16123   $RM conftest*
16124   # SGI C++ compiler will create directory out/ii_files/ for
16125   # template instantiation
16126   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16127   $RM out/* && rmdir out
16128   cd ..
16129   $RM -r conftest
16130   $RM conftest*
16131
16132fi
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16134$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16135
16136
16137
16138
16139hard_links=nottested
16140if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16141  # do not overwrite the value of need_locks provided by the user
16142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16143$as_echo_n "checking if we can lock with hard links... " >&6; }
16144  hard_links=yes
16145  $RM conftest*
16146  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16147  touch conftest.a
16148  ln conftest.a conftest.b 2>&5 || hard_links=no
16149  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16151$as_echo "$hard_links" >&6; }
16152  if test no = "$hard_links"; then
16153    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16154$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16155    need_locks=warn
16156  fi
16157else
16158  need_locks=no
16159fi
16160
16161
16162
16163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16164$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16165
16166  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16167  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16168  case $host_os in
16169  aix[4-9]*)
16170    # If we're using GNU nm, then we don't want the "-C" option.
16171    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16172    # Without the "-l" option, or with the "-B" option, AIX nm treats
16173    # weak defined symbols like other global defined symbols, whereas
16174    # GNU nm marks them as "W".
16175    # While the 'weak' keyword is ignored in the Export File, we need
16176    # it in the Import File for the 'aix-soname' feature, so we have
16177    # to replace the "-B" option with "-P" for AIX nm.
16178    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16179      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16180    else
16181      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16182    fi
16183    ;;
16184  pw32*)
16185    export_symbols_cmds_CXX=$ltdll_cmds
16186    ;;
16187  cygwin* | mingw* | cegcc*)
16188    case $cc_basename in
16189    cl*)
16190      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16191      ;;
16192    *)
16193      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'
16194      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16195      ;;
16196    esac
16197    ;;
16198  *)
16199    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16200    ;;
16201  esac
16202
16203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16204$as_echo "$ld_shlibs_CXX" >&6; }
16205test no = "$ld_shlibs_CXX" && can_build_shared=no
16206
16207with_gnu_ld_CXX=$with_gnu_ld
16208
16209
16210
16211
16212
16213
16214#
16215# Do we need to explicitly link libc?
16216#
16217case "x$archive_cmds_need_lc_CXX" in
16218x|xyes)
16219  # Assume -lc should be added
16220  archive_cmds_need_lc_CXX=yes
16221
16222  if test yes,yes = "$GCC,$enable_shared"; then
16223    case $archive_cmds_CXX in
16224    *'~'*)
16225      # FIXME: we may have to deal with multi-command sequences.
16226      ;;
16227    '$CC '*)
16228      # Test whether the compiler implicitly links with -lc since on some
16229      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16230      # to ld, don't add -lc before -lgcc.
16231      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16232$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16233if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16234  $as_echo_n "(cached) " >&6
16235else
16236  $RM conftest*
16237	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16238
16239	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16240  (eval $ac_compile) 2>&5
16241  ac_status=$?
16242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16243  test $ac_status = 0; } 2>conftest.err; then
16244	  soname=conftest
16245	  lib=conftest
16246	  libobjs=conftest.$ac_objext
16247	  deplibs=
16248	  wl=$lt_prog_compiler_wl_CXX
16249	  pic_flag=$lt_prog_compiler_pic_CXX
16250	  compiler_flags=-v
16251	  linker_flags=-v
16252	  verstring=
16253	  output_objdir=.
16254	  libname=conftest
16255	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16256	  allow_undefined_flag_CXX=
16257	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16258  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16259  ac_status=$?
16260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16261  test $ac_status = 0; }
16262	  then
16263	    lt_cv_archive_cmds_need_lc_CXX=no
16264	  else
16265	    lt_cv_archive_cmds_need_lc_CXX=yes
16266	  fi
16267	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16268	else
16269	  cat conftest.err 1>&5
16270	fi
16271	$RM conftest*
16272
16273fi
16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16275$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16276      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16277      ;;
16278    esac
16279  fi
16280  ;;
16281esac
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16345$as_echo_n "checking dynamic linker characteristics... " >&6; }
16346
16347library_names_spec=
16348libname_spec='lib$name'
16349soname_spec=
16350shrext_cmds=.so
16351postinstall_cmds=
16352postuninstall_cmds=
16353finish_cmds=
16354finish_eval=
16355shlibpath_var=
16356shlibpath_overrides_runpath=unknown
16357version_type=none
16358dynamic_linker="$host_os ld.so"
16359sys_lib_dlsearch_path_spec="/lib /usr/lib"
16360need_lib_prefix=unknown
16361hardcode_into_libs=no
16362
16363# when you set need_version to no, make sure it does not cause -set_version
16364# flags to be left without arguments
16365need_version=unknown
16366
16367
16368
16369case $host_os in
16370aix3*)
16371  version_type=linux # correct to gnu/linux during the next big refactor
16372  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16373  shlibpath_var=LIBPATH
16374
16375  # AIX 3 has no versioning support, so we append a major version to the name.
16376  soname_spec='$libname$release$shared_ext$major'
16377  ;;
16378
16379aix[4-9]*)
16380  version_type=linux # correct to gnu/linux during the next big refactor
16381  need_lib_prefix=no
16382  need_version=no
16383  hardcode_into_libs=yes
16384  if test ia64 = "$host_cpu"; then
16385    # AIX 5 supports IA64
16386    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16387    shlibpath_var=LD_LIBRARY_PATH
16388  else
16389    # With GCC up to 2.95.x, collect2 would create an import file
16390    # for dependence libraries.  The import file would start with
16391    # the line '#! .'.  This would cause the generated library to
16392    # depend on '.', always an invalid library.  This was fixed in
16393    # development snapshots of GCC prior to 3.0.
16394    case $host_os in
16395      aix4 | aix4.[01] | aix4.[01].*)
16396      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16397	   echo ' yes '
16398	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16399	:
16400      else
16401	can_build_shared=no
16402      fi
16403      ;;
16404    esac
16405    # Using Import Files as archive members, it is possible to support
16406    # filename-based versioning of shared library archives on AIX. While
16407    # this would work for both with and without runtime linking, it will
16408    # prevent static linking of such archives. So we do filename-based
16409    # shared library versioning with .so extension only, which is used
16410    # when both runtime linking and shared linking is enabled.
16411    # Unfortunately, runtime linking may impact performance, so we do
16412    # not want this to be the default eventually. Also, we use the
16413    # versioned .so libs for executables only if there is the -brtl
16414    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16415    # To allow for filename-based versioning support, we need to create
16416    # libNAME.so.V as an archive file, containing:
16417    # *) an Import File, referring to the versioned filename of the
16418    #    archive as well as the shared archive member, telling the
16419    #    bitwidth (32 or 64) of that shared object, and providing the
16420    #    list of exported symbols of that shared object, eventually
16421    #    decorated with the 'weak' keyword
16422    # *) the shared object with the F_LOADONLY flag set, to really avoid
16423    #    it being seen by the linker.
16424    # At run time we better use the real file rather than another symlink,
16425    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16426
16427    case $with_aix_soname,$aix_use_runtimelinking in
16428    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16429    # soname into executable. Probably we can add versioning support to
16430    # collect2, so additional links can be useful in future.
16431    aix,yes) # traditional libtool
16432      dynamic_linker='AIX unversionable lib.so'
16433      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16434      # instead of lib<name>.a to let people know that these are not
16435      # typical AIX shared libraries.
16436      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16437      ;;
16438    aix,no) # traditional AIX only
16439      dynamic_linker='AIX lib.a(lib.so.V)'
16440      # We preserve .a as extension for shared libraries through AIX4.2
16441      # and later when we are not doing run time linking.
16442      library_names_spec='$libname$release.a $libname.a'
16443      soname_spec='$libname$release$shared_ext$major'
16444      ;;
16445    svr4,*) # full svr4 only
16446      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16447      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16448      # We do not specify a path in Import Files, so LIBPATH fires.
16449      shlibpath_overrides_runpath=yes
16450      ;;
16451    *,yes) # both, prefer svr4
16452      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16453      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16454      # unpreferred sharedlib libNAME.a needs extra handling
16455      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16456      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16457      # We do not specify a path in Import Files, so LIBPATH fires.
16458      shlibpath_overrides_runpath=yes
16459      ;;
16460    *,no) # both, prefer aix
16461      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16462      library_names_spec='$libname$release.a $libname.a'
16463      soname_spec='$libname$release$shared_ext$major'
16464      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16465      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16466      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16467      ;;
16468    esac
16469    shlibpath_var=LIBPATH
16470  fi
16471  ;;
16472
16473amigaos*)
16474  case $host_cpu in
16475  powerpc)
16476    # Since July 2007 AmigaOS4 officially supports .so libraries.
16477    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16478    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16479    ;;
16480  m68k)
16481    library_names_spec='$libname.ixlibrary $libname.a'
16482    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16483    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16484    ;;
16485  esac
16486  ;;
16487
16488beos*)
16489  library_names_spec='$libname$shared_ext'
16490  dynamic_linker="$host_os ld.so"
16491  shlibpath_var=LIBRARY_PATH
16492  ;;
16493
16494bsdi[45]*)
16495  version_type=linux # correct to gnu/linux during the next big refactor
16496  need_version=no
16497  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16498  soname_spec='$libname$release$shared_ext$major'
16499  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16500  shlibpath_var=LD_LIBRARY_PATH
16501  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16502  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16503  # the default ld.so.conf also contains /usr/contrib/lib and
16504  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16505  # libtool to hard-code these into programs
16506  ;;
16507
16508cygwin* | mingw* | pw32* | cegcc*)
16509  version_type=windows
16510  shrext_cmds=.dll
16511  need_version=no
16512  need_lib_prefix=no
16513
16514  case $GCC,$cc_basename in
16515  yes,*)
16516    # gcc
16517    library_names_spec='$libname.dll.a'
16518    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16519    postinstall_cmds='base_file=`basename \$file`~
16520      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16521      dldir=$destdir/`dirname \$dlpath`~
16522      test -d \$dldir || mkdir -p \$dldir~
16523      $install_prog $dir/$dlname \$dldir/$dlname~
16524      chmod a+x \$dldir/$dlname~
16525      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16526        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16527      fi'
16528    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16529      dlpath=$dir/\$dldll~
16530       $RM \$dlpath'
16531    shlibpath_overrides_runpath=yes
16532
16533    case $host_os in
16534    cygwin*)
16535      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16536      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16537
16538      ;;
16539    mingw* | cegcc*)
16540      # MinGW DLLs use traditional 'lib' prefix
16541      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16542      ;;
16543    pw32*)
16544      # pw32 DLLs use 'pw' prefix rather than 'lib'
16545      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16546      ;;
16547    esac
16548    dynamic_linker='Win32 ld.exe'
16549    ;;
16550
16551  *,cl*)
16552    # Native MSVC
16553    libname_spec='$name'
16554    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16555    library_names_spec='$libname.dll.lib'
16556
16557    case $build_os in
16558    mingw*)
16559      sys_lib_search_path_spec=
16560      lt_save_ifs=$IFS
16561      IFS=';'
16562      for lt_path in $LIB
16563      do
16564        IFS=$lt_save_ifs
16565        # Let DOS variable expansion print the short 8.3 style file name.
16566        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16567        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16568      done
16569      IFS=$lt_save_ifs
16570      # Convert to MSYS style.
16571      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16572      ;;
16573    cygwin*)
16574      # Convert to unix form, then to dos form, then back to unix form
16575      # but this time dos style (no spaces!) so that the unix form looks
16576      # like /cygdrive/c/PROGRA~1:/cygdr...
16577      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16578      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16579      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16580      ;;
16581    *)
16582      sys_lib_search_path_spec=$LIB
16583      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16584        # It is most probably a Windows format PATH.
16585        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16586      else
16587        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16588      fi
16589      # FIXME: find the short name or the path components, as spaces are
16590      # common. (e.g. "Program Files" -> "PROGRA~1")
16591      ;;
16592    esac
16593
16594    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16595    postinstall_cmds='base_file=`basename \$file`~
16596      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16597      dldir=$destdir/`dirname \$dlpath`~
16598      test -d \$dldir || mkdir -p \$dldir~
16599      $install_prog $dir/$dlname \$dldir/$dlname'
16600    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16601      dlpath=$dir/\$dldll~
16602       $RM \$dlpath'
16603    shlibpath_overrides_runpath=yes
16604    dynamic_linker='Win32 link.exe'
16605    ;;
16606
16607  *)
16608    # Assume MSVC wrapper
16609    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16610    dynamic_linker='Win32 ld.exe'
16611    ;;
16612  esac
16613  # FIXME: first we should search . and the directory the executable is in
16614  shlibpath_var=PATH
16615  ;;
16616
16617darwin* | rhapsody*)
16618  dynamic_linker="$host_os dyld"
16619  version_type=darwin
16620  need_lib_prefix=no
16621  need_version=no
16622  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
16623  soname_spec='$libname$release$major$shared_ext'
16624  shlibpath_overrides_runpath=yes
16625  shlibpath_var=DYLD_LIBRARY_PATH
16626  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
16627
16628  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16629  ;;
16630
16631dgux*)
16632  version_type=linux # correct to gnu/linux during the next big refactor
16633  need_lib_prefix=no
16634  need_version=no
16635  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16636  soname_spec='$libname$release$shared_ext$major'
16637  shlibpath_var=LD_LIBRARY_PATH
16638  ;;
16639
16640freebsd* | dragonfly*)
16641  # DragonFly does not have aout.  When/if they implement a new
16642  # versioning mechanism, adjust this.
16643  if test -x /usr/bin/objformat; then
16644    objformat=`/usr/bin/objformat`
16645  else
16646    case $host_os in
16647    freebsd[23].*) objformat=aout ;;
16648    *) objformat=elf ;;
16649    esac
16650  fi
16651  # Handle Gentoo/FreeBSD as it was Linux
16652  case $host_vendor in
16653    gentoo)
16654      version_type=linux ;;
16655    *)
16656      version_type=freebsd-$objformat ;;
16657  esac
16658
16659  case $version_type in
16660    freebsd-elf*)
16661      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16662      soname_spec='$libname$release$shared_ext$major'
16663      need_version=no
16664      need_lib_prefix=no
16665      ;;
16666    freebsd-*)
16667      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16668      need_version=yes
16669      ;;
16670    linux)
16671      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16672      soname_spec='${libname}${release}${shared_ext}$major'
16673      need_lib_prefix=no
16674      need_version=no
16675      ;;
16676  esac
16677  shlibpath_var=LD_LIBRARY_PATH
16678  case $host_os in
16679  freebsd2.*)
16680    shlibpath_overrides_runpath=yes
16681    ;;
16682  freebsd3.[01]* | freebsdelf3.[01]*)
16683    shlibpath_overrides_runpath=yes
16684    hardcode_into_libs=yes
16685    ;;
16686  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16687  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16688    shlibpath_overrides_runpath=no
16689    hardcode_into_libs=yes
16690    ;;
16691  *) # from 4.6 on, and DragonFly
16692    shlibpath_overrides_runpath=yes
16693    hardcode_into_libs=yes
16694    ;;
16695  esac
16696  ;;
16697
16698haiku*)
16699  version_type=linux # correct to gnu/linux during the next big refactor
16700  need_lib_prefix=no
16701  need_version=no
16702  dynamic_linker="$host_os runtime_loader"
16703  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16704  soname_spec='$libname$release$shared_ext$major'
16705  shlibpath_var=LIBRARY_PATH
16706  shlibpath_overrides_runpath=no
16707  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16708  hardcode_into_libs=yes
16709  ;;
16710
16711hpux9* | hpux10* | hpux11*)
16712  # Give a soname corresponding to the major version so that dld.sl refuses to
16713  # link against other versions.
16714  version_type=sunos
16715  need_lib_prefix=no
16716  need_version=no
16717  case $host_cpu in
16718  ia64*)
16719    shrext_cmds='.so'
16720    hardcode_into_libs=yes
16721    dynamic_linker="$host_os dld.so"
16722    shlibpath_var=LD_LIBRARY_PATH
16723    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16724    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16725    soname_spec='$libname$release$shared_ext$major'
16726    if test 32 = "$HPUX_IA64_MODE"; then
16727      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16728      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16729    else
16730      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16731      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16732    fi
16733    ;;
16734  hppa*64*)
16735    shrext_cmds='.sl'
16736    hardcode_into_libs=yes
16737    dynamic_linker="$host_os dld.sl"
16738    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16739    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16740    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16741    soname_spec='$libname$release$shared_ext$major'
16742    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16743    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16744    ;;
16745  *)
16746    shrext_cmds='.sl'
16747    dynamic_linker="$host_os dld.sl"
16748    shlibpath_var=SHLIB_PATH
16749    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16750    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16751    soname_spec='$libname$release$shared_ext$major'
16752    ;;
16753  esac
16754  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16755  postinstall_cmds='chmod 555 $lib'
16756  # or fails outright, so override atomically:
16757  install_override_mode=555
16758  ;;
16759
16760interix[3-9]*)
16761  version_type=linux # correct to gnu/linux during the next big refactor
16762  need_lib_prefix=no
16763  need_version=no
16764  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16765  soname_spec='$libname$release$shared_ext$major'
16766  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16767  shlibpath_var=LD_LIBRARY_PATH
16768  shlibpath_overrides_runpath=no
16769  hardcode_into_libs=yes
16770  ;;
16771
16772irix5* | irix6* | nonstopux*)
16773  case $host_os in
16774    nonstopux*) version_type=nonstopux ;;
16775    *)
16776	if test yes = "$lt_cv_prog_gnu_ld"; then
16777		version_type=linux # correct to gnu/linux during the next big refactor
16778	else
16779		version_type=irix
16780	fi ;;
16781  esac
16782  need_lib_prefix=no
16783  need_version=no
16784  soname_spec='$libname$release$shared_ext$major'
16785  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16786  case $host_os in
16787  irix5* | nonstopux*)
16788    libsuff= shlibsuff=
16789    ;;
16790  *)
16791    case $LD in # libtool.m4 will add one of these switches to LD
16792    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16793      libsuff= shlibsuff= libmagic=32-bit;;
16794    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16795      libsuff=32 shlibsuff=N32 libmagic=N32;;
16796    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16797      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16798    *) libsuff= shlibsuff= libmagic=never-match;;
16799    esac
16800    ;;
16801  esac
16802  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16803  shlibpath_overrides_runpath=no
16804  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16805  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16806  hardcode_into_libs=yes
16807  ;;
16808
16809# No shared lib support for Linux oldld, aout, or coff.
16810linux*oldld* | linux*aout* | linux*coff*)
16811  dynamic_linker=no
16812  ;;
16813
16814linux*android*)
16815  version_type=none # Android doesn't support versioned libraries.
16816  need_lib_prefix=no
16817  need_version=no
16818  library_names_spec='$libname$release$shared_ext'
16819  soname_spec='$libname$release$shared_ext'
16820  finish_cmds=
16821  shlibpath_var=LD_LIBRARY_PATH
16822  shlibpath_overrides_runpath=yes
16823
16824  # This implies no fast_install, which is unacceptable.
16825  # Some rework will be needed to allow for fast_install
16826  # before this can be enabled.
16827  hardcode_into_libs=yes
16828
16829  dynamic_linker='Android linker'
16830  # Don't embed -rpath directories since the linker doesn't support them.
16831  hardcode_libdir_flag_spec_CXX='-L$libdir'
16832  ;;
16833
16834# This must be glibc/ELF.
16835linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16836  version_type=linux # correct to gnu/linux during the next big refactor
16837  need_lib_prefix=no
16838  need_version=no
16839  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16840  soname_spec='$libname$release$shared_ext$major'
16841  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16842  shlibpath_var=LD_LIBRARY_PATH
16843  shlibpath_overrides_runpath=no
16844
16845  # Some binutils ld are patched to set DT_RUNPATH
16846  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  lt_cv_shlibpath_overrides_runpath=no
16850    save_LDFLAGS=$LDFLAGS
16851    save_libdir=$libdir
16852    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16853	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16854    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h.  */
16856
16857int
16858main ()
16859{
16860
16861  ;
16862  return 0;
16863}
16864_ACEOF
16865if ac_fn_cxx_try_link "$LINENO"; then :
16866  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16867  lt_cv_shlibpath_overrides_runpath=yes
16868fi
16869fi
16870rm -f core conftest.err conftest.$ac_objext \
16871    conftest$ac_exeext conftest.$ac_ext
16872    LDFLAGS=$save_LDFLAGS
16873    libdir=$save_libdir
16874
16875fi
16876
16877  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16878
16879  # This implies no fast_install, which is unacceptable.
16880  # Some rework will be needed to allow for fast_install
16881  # before this can be enabled.
16882  hardcode_into_libs=yes
16883
16884  # Ideally, we could use ldconfig to report *all* directores which are
16885  # searched for libraries, however this is still not possible.  Aside from not
16886  # being certain /sbin/ldconfig is available, command
16887  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16888  # even though it is searched at run-time.  Try to do the best guess by
16889  # appending ld.so.conf contents (and includes) to the search path.
16890  if test -f /etc/ld.so.conf; then
16891    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' ' '`
16892    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16893  fi
16894
16895  # We used to test for /lib/ld.so.1 and disable shared libraries on
16896  # powerpc, because MkLinux only supported shared libraries with the
16897  # GNU dynamic linker.  Since this was broken with cross compilers,
16898  # most powerpc-linux boxes support dynamic linking these days and
16899  # people can always --disable-shared, the test was removed, and we
16900  # assume the GNU/Linux dynamic linker is in use.
16901  dynamic_linker='GNU/Linux ld.so'
16902  ;;
16903
16904netbsd*)
16905  version_type=sunos
16906  need_lib_prefix=no
16907  need_version=no
16908  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16909    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16910    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16911    dynamic_linker='NetBSD (a.out) ld.so'
16912  else
16913    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16914    soname_spec='$libname$release$shared_ext$major'
16915    dynamic_linker='NetBSD ld.elf_so'
16916  fi
16917  shlibpath_var=LD_LIBRARY_PATH
16918  shlibpath_overrides_runpath=yes
16919  hardcode_into_libs=yes
16920  ;;
16921
16922newsos6)
16923  version_type=linux # correct to gnu/linux during the next big refactor
16924  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16925  shlibpath_var=LD_LIBRARY_PATH
16926  shlibpath_overrides_runpath=yes
16927  ;;
16928
16929*nto* | *qnx*)
16930  version_type=qnx
16931  need_lib_prefix=no
16932  need_version=no
16933  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16934  soname_spec='$libname$release$shared_ext$major'
16935  shlibpath_var=LD_LIBRARY_PATH
16936  shlibpath_overrides_runpath=no
16937  hardcode_into_libs=yes
16938  dynamic_linker='ldqnx.so'
16939  ;;
16940
16941openbsd* | bitrig*)
16942  version_type=sunos
16943  sys_lib_dlsearch_path_spec=/usr/lib
16944  need_lib_prefix=no
16945  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16946    need_version=no
16947  else
16948    need_version=yes
16949  fi
16950  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16951  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16952  shlibpath_var=LD_LIBRARY_PATH
16953  shlibpath_overrides_runpath=yes
16954  ;;
16955
16956os2*)
16957  libname_spec='$name'
16958  version_type=windows
16959  shrext_cmds=.dll
16960  need_version=no
16961  need_lib_prefix=no
16962  # OS/2 can only load a DLL with a base name of 8 characters or less.
16963  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16964    v=$($ECHO $release$versuffix | tr -d .-);
16965    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16966    $ECHO $n$v`$shared_ext'
16967  library_names_spec='${libname}_dll.$libext'
16968  dynamic_linker='OS/2 ld.exe'
16969  shlibpath_var=BEGINLIBPATH
16970  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16971  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16972  postinstall_cmds='base_file=`basename \$file`~
16973    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16974    dldir=$destdir/`dirname \$dlpath`~
16975    test -d \$dldir || mkdir -p \$dldir~
16976    $install_prog $dir/$dlname \$dldir/$dlname~
16977    chmod a+x \$dldir/$dlname~
16978    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16979      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16980    fi'
16981  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16982    dlpath=$dir/\$dldll~
16983    $RM \$dlpath'
16984  ;;
16985
16986osf3* | osf4* | osf5*)
16987  version_type=osf
16988  need_lib_prefix=no
16989  need_version=no
16990  soname_spec='$libname$release$shared_ext$major'
16991  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16992  shlibpath_var=LD_LIBRARY_PATH
16993  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16994  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16995  ;;
16996
16997rdos*)
16998  dynamic_linker=no
16999  ;;
17000
17001solaris*)
17002  version_type=linux # correct to gnu/linux during the next big refactor
17003  need_lib_prefix=no
17004  need_version=no
17005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17006  soname_spec='$libname$release$shared_ext$major'
17007  shlibpath_var=LD_LIBRARY_PATH
17008  shlibpath_overrides_runpath=yes
17009  hardcode_into_libs=yes
17010  # ldd complains unless libraries are executable
17011  postinstall_cmds='chmod +x $lib'
17012  ;;
17013
17014sunos4*)
17015  version_type=sunos
17016  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17017  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17018  shlibpath_var=LD_LIBRARY_PATH
17019  shlibpath_overrides_runpath=yes
17020  if test yes = "$with_gnu_ld"; then
17021    need_lib_prefix=no
17022  fi
17023  need_version=yes
17024  ;;
17025
17026sysv4 | sysv4.3*)
17027  version_type=linux # correct to gnu/linux during the next big refactor
17028  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17029  soname_spec='$libname$release$shared_ext$major'
17030  shlibpath_var=LD_LIBRARY_PATH
17031  case $host_vendor in
17032    sni)
17033      shlibpath_overrides_runpath=no
17034      need_lib_prefix=no
17035      runpath_var=LD_RUN_PATH
17036      ;;
17037    siemens)
17038      need_lib_prefix=no
17039      ;;
17040    motorola)
17041      need_lib_prefix=no
17042      need_version=no
17043      shlibpath_overrides_runpath=no
17044      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17045      ;;
17046  esac
17047  ;;
17048
17049sysv4*MP*)
17050  if test -d /usr/nec; then
17051    version_type=linux # correct to gnu/linux during the next big refactor
17052    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17053    soname_spec='$libname$shared_ext.$major'
17054    shlibpath_var=LD_LIBRARY_PATH
17055  fi
17056  ;;
17057
17058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17059  version_type=sco
17060  need_lib_prefix=no
17061  need_version=no
17062  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17063  soname_spec='$libname$release$shared_ext$major'
17064  shlibpath_var=LD_LIBRARY_PATH
17065  shlibpath_overrides_runpath=yes
17066  hardcode_into_libs=yes
17067  if test yes = "$with_gnu_ld"; then
17068    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17069  else
17070    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17071    case $host_os in
17072      sco3.2v5*)
17073        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17074	;;
17075    esac
17076  fi
17077  sys_lib_dlsearch_path_spec='/usr/lib'
17078  ;;
17079
17080tpf*)
17081  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17082  version_type=linux # correct to gnu/linux during the next big refactor
17083  need_lib_prefix=no
17084  need_version=no
17085  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17086  shlibpath_var=LD_LIBRARY_PATH
17087  shlibpath_overrides_runpath=no
17088  hardcode_into_libs=yes
17089  ;;
17090
17091uts4*)
17092  version_type=linux # correct to gnu/linux during the next big refactor
17093  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17094  soname_spec='$libname$release$shared_ext$major'
17095  shlibpath_var=LD_LIBRARY_PATH
17096  ;;
17097
17098*)
17099  dynamic_linker=no
17100  ;;
17101esac
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17103$as_echo "$dynamic_linker" >&6; }
17104test no = "$dynamic_linker" && can_build_shared=no
17105
17106variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17107if test yes = "$GCC"; then
17108  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17109fi
17110
17111if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17112  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17113fi
17114
17115if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17116  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17117fi
17118
17119# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17120configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17121
17122# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17123func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17124
17125# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17126configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17168$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17169hardcode_action_CXX=
17170if test -n "$hardcode_libdir_flag_spec_CXX" ||
17171   test -n "$runpath_var_CXX" ||
17172   test yes = "$hardcode_automatic_CXX"; then
17173
17174  # We can hardcode non-existent directories.
17175  if test no != "$hardcode_direct_CXX" &&
17176     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17177     # have to relink, otherwise we might link with an installed library
17178     # when we should be linking with a yet-to-be-installed one
17179     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17180     test no != "$hardcode_minus_L_CXX"; then
17181    # Linking always hardcodes the temporary library directory.
17182    hardcode_action_CXX=relink
17183  else
17184    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17185    hardcode_action_CXX=immediate
17186  fi
17187else
17188  # We cannot hardcode anything, or else we can only hardcode existing
17189  # directories.
17190  hardcode_action_CXX=unsupported
17191fi
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17193$as_echo "$hardcode_action_CXX" >&6; }
17194
17195if test relink = "$hardcode_action_CXX" ||
17196   test yes = "$inherit_rpath_CXX"; then
17197  # Fast installation is not supported
17198  enable_fast_install=no
17199elif test yes = "$shlibpath_overrides_runpath" ||
17200     test no = "$enable_shared"; then
17201  # Fast installation is not necessary
17202  enable_fast_install=needless
17203fi
17204
17205
17206
17207
17208
17209
17210
17211  fi # test -n "$compiler"
17212
17213  CC=$lt_save_CC
17214  CFLAGS=$lt_save_CFLAGS
17215  LDCXX=$LD
17216  LD=$lt_save_LD
17217  GCC=$lt_save_GCC
17218  with_gnu_ld=$lt_save_with_gnu_ld
17219  lt_cv_path_LDCXX=$lt_cv_path_LD
17220  lt_cv_path_LD=$lt_save_path_LD
17221  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17222  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17223fi # test yes != "$_lt_caught_CXX_error"
17224
17225ac_ext=cpp
17226ac_cpp='$CXXCPP $CPPFLAGS'
17227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17230
17231
17232
17233if test "$GCC" = yes; then :
17234
17235
17236
17237
17238for flag in -Wall -Wextra; do
17239  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17241$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17242if eval \${$as_CACHEVAR+:} false; then :
17243  $as_echo_n "(cached) " >&6
17244else
17245
17246  ax_check_save_flags=$CXXFLAGS
17247  CXXFLAGS="$CXXFLAGS  -Werror $flag"
17248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h.  */
17250int main(void) { return 0; }
17251_ACEOF
17252if ac_fn_cxx_try_compile "$LINENO"; then :
17253  eval "$as_CACHEVAR=yes"
17254else
17255  eval "$as_CACHEVAR=no"
17256fi
17257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258  CXXFLAGS=$ax_check_save_flags
17259fi
17260eval ac_res=\$$as_CACHEVAR
17261	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17262$as_echo "$ac_res" >&6; }
17263if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17264
17265if ${AM_CXXFLAGS+:} false; then :
17266
17267  case " $AM_CXXFLAGS " in #(
17268  *" $flag "*) :
17269    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
17270  (: AM_CXXFLAGS already contains $flag) 2>&5
17271  ac_status=$?
17272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17273  test $ac_status = 0; } ;; #(
17274  *) :
17275
17276     as_fn_append AM_CXXFLAGS " $flag"
17277     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17278  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17279  ac_status=$?
17280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17281  test $ac_status = 0; }
17282     ;;
17283esac
17284
17285else
17286
17287  AM_CXXFLAGS=$flag
17288  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17289  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17290  ac_status=$?
17291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292  test $ac_status = 0; }
17293
17294fi
17295
17296else
17297  :
17298fi
17299
17300done
17301
17302
17303
17304
17305
17306for flag in -fexceptions; do
17307  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17309$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17310if eval \${$as_CACHEVAR+:} false; then :
17311  $as_echo_n "(cached) " >&6
17312else
17313
17314  ax_check_save_flags=$CXXFLAGS
17315  CXXFLAGS="$CXXFLAGS  -Werror $flag"
17316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317/* end confdefs.h.  */
17318int main(void) { return 0; }
17319_ACEOF
17320if ac_fn_cxx_try_compile "$LINENO"; then :
17321  eval "$as_CACHEVAR=yes"
17322else
17323  eval "$as_CACHEVAR=no"
17324fi
17325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326  CXXFLAGS=$ax_check_save_flags
17327fi
17328eval ac_res=\$$as_CACHEVAR
17329	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17330$as_echo "$ac_res" >&6; }
17331if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17332
17333if ${AM_CXXFLAGS+:} false; then :
17334
17335  case " $AM_CXXFLAGS " in #(
17336  *" $flag "*) :
17337    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
17338  (: AM_CXXFLAGS already contains $flag) 2>&5
17339  ac_status=$?
17340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17341  test $ac_status = 0; } ;; #(
17342  *) :
17343
17344     as_fn_append AM_CXXFLAGS " $flag"
17345     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17346  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17347  ac_status=$?
17348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17349  test $ac_status = 0; }
17350     ;;
17351esac
17352
17353else
17354
17355  AM_CXXFLAGS=$flag
17356  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17357  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17358  ac_status=$?
17359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17360  test $ac_status = 0; }
17361
17362fi
17363
17364else
17365  :
17366fi
17367
17368done
17369
17370
17371
17372
17373
17374for flag in -fno-strict-aliasing; do
17375  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17377$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17378if eval \${$as_CACHEVAR+:} false; then :
17379  $as_echo_n "(cached) " >&6
17380else
17381
17382  ax_check_save_flags=$CXXFLAGS
17383  CXXFLAGS="$CXXFLAGS  -Werror $flag"
17384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h.  */
17386int main(void) { return 0; }
17387_ACEOF
17388if ac_fn_cxx_try_compile "$LINENO"; then :
17389  eval "$as_CACHEVAR=yes"
17390else
17391  eval "$as_CACHEVAR=no"
17392fi
17393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17394  CXXFLAGS=$ax_check_save_flags
17395fi
17396eval ac_res=\$$as_CACHEVAR
17397	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17398$as_echo "$ac_res" >&6; }
17399if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17400
17401if ${AM_CXXFLAGS+:} false; then :
17402
17403  case " $AM_CXXFLAGS " in #(
17404  *" $flag "*) :
17405    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
17406  (: AM_CXXFLAGS already contains $flag) 2>&5
17407  ac_status=$?
17408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17409  test $ac_status = 0; } ;; #(
17410  *) :
17411
17412     as_fn_append AM_CXXFLAGS " $flag"
17413     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17414  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17415  ac_status=$?
17416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17417  test $ac_status = 0; }
17418     ;;
17419esac
17420
17421else
17422
17423  AM_CXXFLAGS=$flag
17424  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17425  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17426  ac_status=$?
17427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17428  test $ac_status = 0; }
17429
17430fi
17431
17432else
17433  :
17434fi
17435
17436done
17437
17438fi
17439ac_ext=c
17440ac_cpp='$CPP $CPPFLAGS'
17441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17443ac_compiler_gnu=$ac_cv_c_compiler_gnu
17444
17445
17446if test "$GCC" = yes; then :
17447
17448
17449
17450
17451for flag in -fno-strict-aliasing; do
17452  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
17453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
17454$as_echo_n "checking whether the linker accepts $flag... " >&6; }
17455if eval \${$as_CACHEVAR+:} false; then :
17456  $as_echo_n "(cached) " >&6
17457else
17458
17459  ax_check_save_flags=$LDFLAGS
17460  LDFLAGS="$LDFLAGS  $flag"
17461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462/* end confdefs.h.  */
17463
17464int
17465main ()
17466{
17467
17468  ;
17469  return 0;
17470}
17471_ACEOF
17472if ac_fn_c_try_link "$LINENO"; then :
17473  eval "$as_CACHEVAR=yes"
17474else
17475  eval "$as_CACHEVAR=no"
17476fi
17477rm -f core conftest.err conftest.$ac_objext \
17478    conftest$ac_exeext conftest.$ac_ext
17479  LDFLAGS=$ax_check_save_flags
17480fi
17481eval ac_res=\$$as_CACHEVAR
17482	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17483$as_echo "$ac_res" >&6; }
17484if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17485
17486if ${AM_LDFLAGS+:} false; then :
17487
17488  case " $AM_LDFLAGS " in #(
17489  *" $flag "*) :
17490    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
17491  (: AM_LDFLAGS already contains $flag) 2>&5
17492  ac_status=$?
17493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17494  test $ac_status = 0; } ;; #(
17495  *) :
17496
17497     as_fn_append AM_LDFLAGS " $flag"
17498     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
17499  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
17500  ac_status=$?
17501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17502  test $ac_status = 0; }
17503     ;;
17504esac
17505
17506else
17507
17508  AM_LDFLAGS=$flag
17509  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
17510  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
17511  ac_status=$?
17512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17513  test $ac_status = 0; }
17514
17515fi
17516
17517else
17518  :
17519fi
17520
17521done
17522
17523fi
17524
17525case "$LD" in #(
17526  *clang*) :
17527    case "${host_os}" in #(
17528  *linux*) :
17529    archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
17530  *) :
17531     ;;
17532esac ;; #(
17533  *) :
17534     ;;
17535esac
17536
17537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
17538$as_echo_n "checking whether compiler supports visibility... " >&6; }
17539if ${expatcfg_cv_compiler_supports_visibility+:} false; then :
17540  $as_echo_n "(cached) " >&6
17541else
17542  expatcfg_cv_compiler_supports_visibility=no
17543      OLDFLAGS=$CFLAGS
17544      as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
17545      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546/* end confdefs.h.  */
17547
17548          void __attribute__((visibility("default"))) foo(void);
17549          void foo(void) {}
17550
17551_ACEOF
17552if ac_fn_c_try_compile "$LINENO"; then :
17553  expatcfg_cv_compiler_supports_visibility=yes
17554fi
17555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17556      CFLAGS=$OLDFLAGS
17557fi
17558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
17559$as_echo "$expatcfg_cv_compiler_supports_visibility" >&6; }
17560   if test "$expatcfg_cv_compiler_supports_visibility" = yes; then :
17561
17562
17563if ${AM_CFLAGS+:} false; then :
17564
17565  case " $AM_CFLAGS " in #(
17566  *" -fvisibility=hidden "*) :
17567    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
17568  (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
17569  ac_status=$?
17570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17571  test $ac_status = 0; } ;; #(
17572  *) :
17573
17574     as_fn_append AM_CFLAGS " -fvisibility=hidden"
17575     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
17576  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
17577  ac_status=$?
17578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17579  test $ac_status = 0; }
17580     ;;
17581esac
17582
17583else
17584
17585  AM_CFLAGS=-fvisibility=hidden
17586  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
17587  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
17588  ac_status=$?
17589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17590  test $ac_status = 0; }
17591
17592fi
17593
17594
17595if ${AM_CPPFLAGS+:} false; then :
17596
17597  case " $AM_CPPFLAGS " in #(
17598  *" -DXML_ENABLE_VISIBILITY=1 "*) :
17599    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
17600  (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
17601  ac_status=$?
17602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17603  test $ac_status = 0; } ;; #(
17604  *) :
17605
17606     as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
17607     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
17608  (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
17609  ac_status=$?
17610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17611  test $ac_status = 0; }
17612     ;;
17613esac
17614
17615else
17616
17617  AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
17618  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
17619  (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
17620  ac_status=$?
17621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17622  test $ac_status = 0; }
17623
17624fi
17625
17626fi
17627
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17630$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17631if ${ac_cv_c_bigendian+:} false; then :
17632  $as_echo_n "(cached) " >&6
17633else
17634  ac_cv_c_bigendian=unknown
17635    # See if we're dealing with a universal compiler.
17636    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637/* end confdefs.h.  */
17638#ifndef __APPLE_CC__
17639	       not a universal capable compiler
17640	     #endif
17641	     typedef int dummy;
17642
17643_ACEOF
17644if ac_fn_c_try_compile "$LINENO"; then :
17645
17646	# Check for potential -arch flags.  It is not universal unless
17647	# there are at least two -arch flags with different values.
17648	ac_arch=
17649	ac_prev=
17650	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17651	 if test -n "$ac_prev"; then
17652	   case $ac_word in
17653	     i?86 | x86_64 | ppc | ppc64)
17654	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17655		 ac_arch=$ac_word
17656	       else
17657		 ac_cv_c_bigendian=universal
17658		 break
17659	       fi
17660	       ;;
17661	   esac
17662	   ac_prev=
17663	 elif test "x$ac_word" = "x-arch"; then
17664	   ac_prev=arch
17665	 fi
17666       done
17667fi
17668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669    if test $ac_cv_c_bigendian = unknown; then
17670      # See if sys/param.h defines the BYTE_ORDER macro.
17671      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672/* end confdefs.h.  */
17673#include <sys/types.h>
17674	     #include <sys/param.h>
17675
17676int
17677main ()
17678{
17679#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17680		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17681		     && LITTLE_ENDIAN)
17682	      bogus endian macros
17683	     #endif
17684
17685  ;
17686  return 0;
17687}
17688_ACEOF
17689if ac_fn_c_try_compile "$LINENO"; then :
17690  # It does; now see whether it defined to BIG_ENDIAN or not.
17691	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h.  */
17693#include <sys/types.h>
17694		#include <sys/param.h>
17695
17696int
17697main ()
17698{
17699#if BYTE_ORDER != BIG_ENDIAN
17700		 not big endian
17701		#endif
17702
17703  ;
17704  return 0;
17705}
17706_ACEOF
17707if ac_fn_c_try_compile "$LINENO"; then :
17708  ac_cv_c_bigendian=yes
17709else
17710  ac_cv_c_bigendian=no
17711fi
17712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17713fi
17714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715    fi
17716    if test $ac_cv_c_bigendian = unknown; then
17717      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17718      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719/* end confdefs.h.  */
17720#include <limits.h>
17721
17722int
17723main ()
17724{
17725#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17726	      bogus endian macros
17727	     #endif
17728
17729  ;
17730  return 0;
17731}
17732_ACEOF
17733if ac_fn_c_try_compile "$LINENO"; then :
17734  # It does; now see whether it defined to _BIG_ENDIAN or not.
17735	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737#include <limits.h>
17738
17739int
17740main ()
17741{
17742#ifndef _BIG_ENDIAN
17743		 not big endian
17744		#endif
17745
17746  ;
17747  return 0;
17748}
17749_ACEOF
17750if ac_fn_c_try_compile "$LINENO"; then :
17751  ac_cv_c_bigendian=yes
17752else
17753  ac_cv_c_bigendian=no
17754fi
17755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756fi
17757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758    fi
17759    if test $ac_cv_c_bigendian = unknown; then
17760      # Compile a test program.
17761      if test "$cross_compiling" = yes; then :
17762  # Try to guess by grepping values from an object file.
17763	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764/* end confdefs.h.  */
17765short int ascii_mm[] =
17766		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17767		short int ascii_ii[] =
17768		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17769		int use_ascii (int i) {
17770		  return ascii_mm[i] + ascii_ii[i];
17771		}
17772		short int ebcdic_ii[] =
17773		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17774		short int ebcdic_mm[] =
17775		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17776		int use_ebcdic (int i) {
17777		  return ebcdic_mm[i] + ebcdic_ii[i];
17778		}
17779		extern int foo;
17780
17781int
17782main ()
17783{
17784return use_ascii (foo) == use_ebcdic (foo);
17785  ;
17786  return 0;
17787}
17788_ACEOF
17789if ac_fn_c_try_compile "$LINENO"; then :
17790  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17791	      ac_cv_c_bigendian=yes
17792	    fi
17793	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17794	      if test "$ac_cv_c_bigendian" = unknown; then
17795		ac_cv_c_bigendian=no
17796	      else
17797		# finding both strings is unlikely to happen, but who knows?
17798		ac_cv_c_bigendian=unknown
17799	      fi
17800	    fi
17801fi
17802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803else
17804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805/* end confdefs.h.  */
17806$ac_includes_default
17807int
17808main ()
17809{
17810
17811	     /* Are we little or big endian?  From Harbison&Steele.  */
17812	     union
17813	     {
17814	       long int l;
17815	       char c[sizeof (long int)];
17816	     } u;
17817	     u.l = 1;
17818	     return u.c[sizeof (long int) - 1] == 1;
17819
17820  ;
17821  return 0;
17822}
17823_ACEOF
17824if ac_fn_c_try_run "$LINENO"; then :
17825  ac_cv_c_bigendian=no
17826else
17827  ac_cv_c_bigendian=yes
17828fi
17829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17830  conftest.$ac_objext conftest.beam conftest.$ac_ext
17831fi
17832
17833    fi
17834fi
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17836$as_echo "$ac_cv_c_bigendian" >&6; }
17837 case $ac_cv_c_bigendian in #(
17838   yes)
17839     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17840
17841                BYTEORDER=4321;; #(
17842   no)
17843     BYTEORDER=1234 ;; #(
17844   universal)
17845
17846$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17847
17848     ;; #(
17849   *)
17850     as_fn_error $? "unknown endianness
17851 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17852 esac
17853
17854
17855cat >>confdefs.h <<_ACEOF
17856#define BYTEORDER $BYTEORDER
17857_ACEOF
17858
17859
17860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17861$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17862if ${ac_cv_c_const+:} false; then :
17863  $as_echo_n "(cached) " >&6
17864else
17865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866/* end confdefs.h.  */
17867
17868int
17869main ()
17870{
17871
17872#ifndef __cplusplus
17873  /* Ultrix mips cc rejects this sort of thing.  */
17874  typedef int charset[2];
17875  const charset cs = { 0, 0 };
17876  /* SunOS 4.1.1 cc rejects this.  */
17877  char const *const *pcpcc;
17878  char **ppc;
17879  /* NEC SVR4.0.2 mips cc rejects this.  */
17880  struct point {int x, y;};
17881  static struct point const zero = {0,0};
17882  /* AIX XL C 1.02.0.0 rejects this.
17883     It does not let you subtract one const X* pointer from another in
17884     an arm of an if-expression whose if-part is not a constant
17885     expression */
17886  const char *g = "string";
17887  pcpcc = &g + (g ? g-g : 0);
17888  /* HPUX 7.0 cc rejects these. */
17889  ++pcpcc;
17890  ppc = (char**) pcpcc;
17891  pcpcc = (char const *const *) ppc;
17892  { /* SCO 3.2v4 cc rejects this sort of thing.  */
17893    char tx;
17894    char *t = &tx;
17895    char const *s = 0 ? (char *) 0 : (char const *) 0;
17896
17897    *t++ = 0;
17898    if (s) return 0;
17899  }
17900  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17901    int x[] = {25, 17};
17902    const int *foo = &x[0];
17903    ++foo;
17904  }
17905  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17906    typedef const int *iptr;
17907    iptr p = 0;
17908    ++p;
17909  }
17910  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17911       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17912    struct s { int j; const int *ap[3]; } bx;
17913    struct s *b = &bx; b->j = 5;
17914  }
17915  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17916    const int foo = 10;
17917    if (!foo) return 0;
17918  }
17919  return !cs[0] && !zero.x;
17920#endif
17921
17922  ;
17923  return 0;
17924}
17925_ACEOF
17926if ac_fn_c_try_compile "$LINENO"; then :
17927  ac_cv_c_const=yes
17928else
17929  ac_cv_c_const=no
17930fi
17931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17932fi
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17934$as_echo "$ac_cv_c_const" >&6; }
17935if test $ac_cv_c_const = no; then
17936
17937$as_echo "#define const /**/" >>confdefs.h
17938
17939fi
17940
17941ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17942if test "x$ac_cv_type_size_t" = xyes; then :
17943
17944else
17945
17946cat >>confdefs.h <<_ACEOF
17947#define size_t unsigned int
17948_ACEOF
17949
17950fi
17951
17952
17953
17954# Check whether --with-xmlwf was given.
17955if test "${with_xmlwf+set}" = set; then :
17956  withval=$with_xmlwf;
17957else
17958  with_xmlwf=yes
17959fi
17960
17961 if test x${with_xmlwf} = xyes; then
17962  WITH_XMLWF_TRUE=
17963  WITH_XMLWF_FALSE='#'
17964else
17965  WITH_XMLWF_TRUE='#'
17966  WITH_XMLWF_FALSE=
17967fi
17968
17969
17970
17971# Check whether --with-examples was given.
17972if test "${with_examples+set}" = set; then :
17973  withval=$with_examples;
17974else
17975  with_examples=yes
17976fi
17977
17978 if test x${with_examples} = xyes; then
17979  WITH_EXAMPLES_TRUE=
17980  WITH_EXAMPLES_FALSE='#'
17981else
17982  WITH_EXAMPLES_TRUE='#'
17983  WITH_EXAMPLES_FALSE=
17984fi
17985
17986
17987
17988# Check whether --with-tests was given.
17989if test "${with_tests+set}" = set; then :
17990  withval=$with_tests;
17991else
17992  with_tests=yes
17993fi
17994
17995 if test x${with_tests} = xyes; then
17996  WITH_TESTS_TRUE=
17997  WITH_TESTS_FALSE='#'
17998else
17999  WITH_TESTS_TRUE='#'
18000  WITH_TESTS_FALSE=
18001fi
18002
18003
18004
18005EXPATCFG_ON_MINGW=no
18006case "${host_os}" in #(
18007  mingw*) :
18008    EXPATCFG_ON_MINGW=yes
18009   { $as_echo "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
18010$as_echo "$as_me: detected OS: MinGW" >&6;} ;; #(
18011  *) :
18012     ;;
18013esac
18014 if test x${EXPATCFG_ON_MINGW} = xyes; then
18015  MINGW_TRUE=
18016  MINGW_FALSE='#'
18017else
18018  MINGW_TRUE='#'
18019  MINGW_FALSE=
18020fi
18021
18022
18023 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
18024  UNICODE_TRUE=
18025  UNICODE_FALSE='#'
18026else
18027  UNICODE_TRUE='#'
18028  UNICODE_FALSE=
18029fi
18030
18031 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null; then
18032  _INTERNAL_UNICODE_WCHAR_T_TRUE=
18033  _INTERNAL_UNICODE_WCHAR_T_FALSE='#'
18034else
18035  _INTERNAL_UNICODE_WCHAR_T_TRUE='#'
18036  _INTERNAL_UNICODE_WCHAR_T_FALSE=
18037fi
18038
18039 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null; then
18040  _INTERNAL_MIN_SIZE_TRUE=
18041  _INTERNAL_MIN_SIZE_FALSE='#'
18042else
18043  _INTERNAL_MIN_SIZE_TRUE='#'
18044  _INTERNAL_MIN_SIZE_FALSE=
18045fi
18046
18047 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null; then
18048  _INTERNAL_LARGE_SIZE_TRUE=
18049  _INTERNAL_LARGE_SIZE_FALSE='#'
18050else
18051  _INTERNAL_LARGE_SIZE_TRUE='#'
18052  _INTERNAL_LARGE_SIZE_FALSE=
18053fi
18054
18055
18056
18057
18058# Check whether --with-libbsd was given.
18059if test "${with_libbsd+set}" = set; then :
18060  withval=$with_libbsd;
18061else
18062  with_libbsd=no
18063fi
18064
18065if test "x${with_libbsd}" != xno; then :
18066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
18067$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
18068if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
18069  $as_echo_n "(cached) " >&6
18070else
18071  ac_check_lib_save_LIBS=$LIBS
18072LIBS="-lbsd  $LIBS"
18073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074/* end confdefs.h.  */
18075
18076/* Override any GCC internal prototype to avoid an error.
18077   Use char because int might match the return type of a GCC
18078   builtin and then its argument prototype would still apply.  */
18079#ifdef __cplusplus
18080extern "C"
18081#endif
18082char arc4random_buf ();
18083int
18084main ()
18085{
18086return arc4random_buf ();
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091if ac_fn_c_try_link "$LINENO"; then :
18092  ac_cv_lib_bsd_arc4random_buf=yes
18093else
18094  ac_cv_lib_bsd_arc4random_buf=no
18095fi
18096rm -f core conftest.err conftest.$ac_objext \
18097    conftest$ac_exeext conftest.$ac_ext
18098LIBS=$ac_check_lib_save_LIBS
18099fi
18100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
18101$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
18102if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
18103  cat >>confdefs.h <<_ACEOF
18104#define HAVE_LIBBSD 1
18105_ACEOF
18106
18107  LIBS="-lbsd $LIBS"
18108
18109else
18110  if test "x${with_libbsd}" = xyes; then :
18111  as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
18112fi
18113fi
18114
18115fi
18116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
18117$as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
18118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119/* end confdefs.h.  */
18120
18121    #include <stdlib.h>  /* for arc4random_buf on BSD, for NULL */
18122    #if defined(HAVE_LIBBSD)
18123    # include <bsd/stdlib.h>
18124    #endif
18125    int main() {
18126      arc4random_buf(NULL, 0U);
18127      return 0;
18128    }
18129
18130_ACEOF
18131if ac_fn_c_try_link "$LINENO"; then :
18132
18133$as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
18134
18135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18136$as_echo "yes" >&6; }
18137else
18138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139$as_echo "no" >&6; }
18140
18141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
18142$as_echo_n "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
18143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144/* end confdefs.h.  */
18145
18146       #if defined(HAVE_LIBBSD)
18147       # include <bsd/stdlib.h>
18148       #else
18149       # include <stdlib.h>
18150       #endif
18151       int main() {
18152          arc4random();
18153          return 0;
18154       }
18155
18156_ACEOF
18157if ac_fn_c_try_link "$LINENO"; then :
18158
18159$as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18160
18161      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18162$as_echo "yes" >&6; }
18163else
18164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18165$as_echo "no" >&6; }
18166fi
18167rm -f core conftest.err conftest.$ac_objext \
18168    conftest$ac_exeext conftest.$ac_ext
18169fi
18170rm -f core conftest.err conftest.$ac_objext \
18171    conftest$ac_exeext conftest.$ac_ext
18172
18173
18174# Check whether --with-getrandom was given.
18175if test "${with_getrandom+set}" = set; then :
18176  withval=$with_getrandom;
18177else
18178  with_getrandom=check
18179fi
18180
18181
18182if test "x$with_getrandom" != xno; then :
18183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
18184$as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
18185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18186/* end confdefs.h.  */
18187
18188       #include <stdlib.h>  /* for NULL */
18189       #include <sys/random.h>
18190       int main() {
18191         return getrandom(NULL, 0U, 0U);
18192       }
18193
18194_ACEOF
18195if ac_fn_c_try_link "$LINENO"; then :
18196
18197$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
18198
18199      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18200$as_echo "yes" >&6; }
18201else
18202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203$as_echo "no" >&6; }
18204      if test "x$with_getrandom" = xyes; then :
18205  as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
18206fi
18207fi
18208rm -f core conftest.err conftest.$ac_objext \
18209    conftest$ac_exeext conftest.$ac_ext
18210fi
18211
18212
18213# Check whether --with-sys_getrandom was given.
18214if test "${with_sys_getrandom+set}" = set; then :
18215  withval=$with_sys_getrandom;
18216else
18217  with_sys_getrandom=check
18218fi
18219
18220
18221if test "x$with_sys_getrandom" != xno; then :
18222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
18223$as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
18224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225/* end confdefs.h.  */
18226
18227       #include <stdlib.h>  /* for NULL */
18228       #include <unistd.h>  /* for syscall */
18229       #include <sys/syscall.h>  /* for SYS_getrandom */
18230       int main() {
18231         syscall(SYS_getrandom, NULL, 0, 0);
18232         return 0;
18233     }
18234
18235_ACEOF
18236if ac_fn_c_try_link "$LINENO"; then :
18237
18238$as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
18239
18240      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18241$as_echo "yes" >&6; }
18242else
18243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18244$as_echo "no" >&6; }
18245      if test "x$with_sys_getrandom" = xyes; then :
18246  as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
18247fi
18248fi
18249rm -f core conftest.err conftest.$ac_objext \
18250    conftest$ac_exeext conftest.$ac_ext
18251fi
18252
18253for ac_header in fcntl.h unistd.h
18254do :
18255  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18256ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18257if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18258  cat >>confdefs.h <<_ACEOF
18259#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18260_ACEOF
18261
18262fi
18263
18264done
18265
18266ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18267if test "x$ac_cv_type_off_t" = xyes; then :
18268
18269else
18270
18271cat >>confdefs.h <<_ACEOF
18272#define off_t long int
18273_ACEOF
18274
18275fi
18276
18277
18278
18279
18280  for ac_header in $ac_header_list
18281do :
18282  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18283ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18284"
18285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18286  cat >>confdefs.h <<_ACEOF
18287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18288_ACEOF
18289
18290fi
18291
18292done
18293
18294
18295
18296
18297
18298
18299
18300
18301for ac_func in getpagesize
18302do :
18303  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18304if test "x$ac_cv_func_getpagesize" = xyes; then :
18305  cat >>confdefs.h <<_ACEOF
18306#define HAVE_GETPAGESIZE 1
18307_ACEOF
18308
18309fi
18310done
18311
18312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18313$as_echo_n "checking for working mmap... " >&6; }
18314if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18315  $as_echo_n "(cached) " >&6
18316else
18317  if test "$cross_compiling" = yes; then :
18318  ac_cv_func_mmap_fixed_mapped=no
18319else
18320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321/* end confdefs.h.  */
18322$ac_includes_default
18323/* malloc might have been renamed as rpl_malloc. */
18324#undef malloc
18325
18326/* Thanks to Mike Haertel and Jim Avera for this test.
18327   Here is a matrix of mmap possibilities:
18328	mmap private not fixed
18329	mmap private fixed at somewhere currently unmapped
18330	mmap private fixed at somewhere already mapped
18331	mmap shared not fixed
18332	mmap shared fixed at somewhere currently unmapped
18333	mmap shared fixed at somewhere already mapped
18334   For private mappings, we should verify that changes cannot be read()
18335   back from the file, nor mmap's back from the file at a different
18336   address.  (There have been systems where private was not correctly
18337   implemented like the infamous i386 svr4.0, and systems where the
18338   VM page cache was not coherent with the file system buffer cache
18339   like early versions of FreeBSD and possibly contemporary NetBSD.)
18340   For shared mappings, we should conversely verify that changes get
18341   propagated back to all the places they're supposed to be.
18342
18343   Grep wants private fixed already mapped.
18344   The main things grep needs to know about mmap are:
18345   * does it exist and is it safe to write into the mmap'd area
18346   * how to use it (BSD variants)  */
18347
18348#include <fcntl.h>
18349#include <sys/mman.h>
18350
18351#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18352char *malloc ();
18353#endif
18354
18355/* This mess was copied from the GNU getpagesize.h.  */
18356#ifndef HAVE_GETPAGESIZE
18357# ifdef _SC_PAGESIZE
18358#  define getpagesize() sysconf(_SC_PAGESIZE)
18359# else /* no _SC_PAGESIZE */
18360#  ifdef HAVE_SYS_PARAM_H
18361#   include <sys/param.h>
18362#   ifdef EXEC_PAGESIZE
18363#    define getpagesize() EXEC_PAGESIZE
18364#   else /* no EXEC_PAGESIZE */
18365#    ifdef NBPG
18366#     define getpagesize() NBPG * CLSIZE
18367#     ifndef CLSIZE
18368#      define CLSIZE 1
18369#     endif /* no CLSIZE */
18370#    else /* no NBPG */
18371#     ifdef NBPC
18372#      define getpagesize() NBPC
18373#     else /* no NBPC */
18374#      ifdef PAGESIZE
18375#       define getpagesize() PAGESIZE
18376#      endif /* PAGESIZE */
18377#     endif /* no NBPC */
18378#    endif /* no NBPG */
18379#   endif /* no EXEC_PAGESIZE */
18380#  else /* no HAVE_SYS_PARAM_H */
18381#   define getpagesize() 8192	/* punt totally */
18382#  endif /* no HAVE_SYS_PARAM_H */
18383# endif /* no _SC_PAGESIZE */
18384
18385#endif /* no HAVE_GETPAGESIZE */
18386
18387int
18388main ()
18389{
18390  char *data, *data2, *data3;
18391  const char *cdata2;
18392  int i, pagesize;
18393  int fd, fd2;
18394
18395  pagesize = getpagesize ();
18396
18397  /* First, make a file with some known garbage in it. */
18398  data = (char *) malloc (pagesize);
18399  if (!data)
18400    return 1;
18401  for (i = 0; i < pagesize; ++i)
18402    *(data + i) = rand ();
18403  umask (0);
18404  fd = creat ("conftest.mmap", 0600);
18405  if (fd < 0)
18406    return 2;
18407  if (write (fd, data, pagesize) != pagesize)
18408    return 3;
18409  close (fd);
18410
18411  /* Next, check that the tail of a page is zero-filled.  File must have
18412     non-zero length, otherwise we risk SIGBUS for entire page.  */
18413  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18414  if (fd2 < 0)
18415    return 4;
18416  cdata2 = "";
18417  if (write (fd2, cdata2, 1) != 1)
18418    return 5;
18419  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18420  if (data2 == MAP_FAILED)
18421    return 6;
18422  for (i = 0; i < pagesize; ++i)
18423    if (*(data2 + i))
18424      return 7;
18425  close (fd2);
18426  if (munmap (data2, pagesize))
18427    return 8;
18428
18429  /* Next, try to mmap the file at a fixed address which already has
18430     something else allocated at it.  If we can, also make sure that
18431     we see the same garbage.  */
18432  fd = open ("conftest.mmap", O_RDWR);
18433  if (fd < 0)
18434    return 9;
18435  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18436		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
18437    return 10;
18438  for (i = 0; i < pagesize; ++i)
18439    if (*(data + i) != *(data2 + i))
18440      return 11;
18441
18442  /* Finally, make sure that changes to the mapped area do not
18443     percolate back to the file as seen by read().  (This is a bug on
18444     some variants of i386 svr4.0.)  */
18445  for (i = 0; i < pagesize; ++i)
18446    *(data2 + i) = *(data2 + i) + 1;
18447  data3 = (char *) malloc (pagesize);
18448  if (!data3)
18449    return 12;
18450  if (read (fd, data3, pagesize) != pagesize)
18451    return 13;
18452  for (i = 0; i < pagesize; ++i)
18453    if (*(data + i) != *(data3 + i))
18454      return 14;
18455  close (fd);
18456  return 0;
18457}
18458_ACEOF
18459if ac_fn_c_try_run "$LINENO"; then :
18460  ac_cv_func_mmap_fixed_mapped=yes
18461else
18462  ac_cv_func_mmap_fixed_mapped=no
18463fi
18464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18465  conftest.$ac_objext conftest.beam conftest.$ac_ext
18466fi
18467
18468fi
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18470$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18471if test $ac_cv_func_mmap_fixed_mapped = yes; then
18472
18473$as_echo "#define HAVE_MMAP 1" >>confdefs.h
18474
18475fi
18476rm -f conftest.mmap conftest.txt
18477
18478
18479if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then :
18480  FILEMAP=unixfilemap
18481else
18482  FILEMAP=readfilemap
18483fi
18484
18485
18486
18487
18488$as_echo "#define XML_NS 1" >>confdefs.h
18489
18490
18491$as_echo "#define XML_DTD 1" >>confdefs.h
18492
18493
18494$as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h
18495
18496
18497# Check whether --enable-xml-attr-info was given.
18498if test "${enable_xml_attr_info+set}" = set; then :
18499  enableval=$enable_xml_attr_info;
18500else
18501  enable_xml_attr_info=no
18502fi
18503
18504if test "x${enable_xml_attr_info}" = "xyes"; then :
18505
18506$as_echo "#define XML_ATTR_INFO 1" >>confdefs.h
18507
18508fi
18509
18510# Check whether --enable-xml-context was given.
18511if test "${enable_xml_context+set}" = set; then :
18512  enableval=$enable_xml_context; enable_xml_context=${enableval}
18513fi
18514
18515if test "x${enable_xml_context}" != "xno"; then :
18516  if test "x${enable_xml_context}" = "xyes" \
18517            -o "x${enable_xml_context}" = "x"; then :
18518  enable_xml_context=1024
18519fi
18520
18521cat >>confdefs.h <<_ACEOF
18522#define XML_CONTEXT_BYTES ${enable_xml_context}
18523_ACEOF
18524
18525fi
18526
18527
18528# Check whether --with-docbook was given.
18529if test "${with_docbook+set}" = set; then :
18530  withval=$with_docbook;
18531else
18532  with_docbook=check
18533fi
18534
18535
18536
18537if test "x$with_docbook" != xno; then :
18538  for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
18539do
18540  # Extract the first word of "$ac_prog", so it can be a program name with args.
18541set dummy $ac_prog; ac_word=$2
18542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18543$as_echo_n "checking for $ac_word... " >&6; }
18544if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then :
18545  $as_echo_n "(cached) " >&6
18546else
18547  if test -n "$DOCBOOK_TO_MAN"; then
18548  ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
18549else
18550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18551for as_dir in $PATH
18552do
18553  IFS=$as_save_IFS
18554  test -z "$as_dir" && as_dir=.
18555    for ac_exec_ext in '' $ac_executable_extensions; do
18556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18557    ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
18558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18559    break 2
18560  fi
18561done
18562  done
18563IFS=$as_save_IFS
18564
18565fi
18566fi
18567DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
18568if test -n "$DOCBOOK_TO_MAN"; then
18569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
18570$as_echo "$DOCBOOK_TO_MAN" >&6; }
18571else
18572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573$as_echo "no" >&6; }
18574fi
18575
18576
18577  test -n "$DOCBOOK_TO_MAN" && break
18578done
18579
18580fi
18581if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes; then :
18582  as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
18583fi
18584if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno; then :
18585  if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase; then :
18586  as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
18587  than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
18588  configure to command docbook2x-man of docbook2X.
18589  Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
18590  You can also configure using --without-docbook if you can do without a man
18591  page for xmlwf." "$LINENO" 5
18592fi
18593fi
18594
18595 if test "x${DOCBOOK_TO_MAN}" != x; then
18596  WITH_DOCBOOK_TRUE=
18597  WITH_DOCBOOK_FALSE='#'
18598else
18599  WITH_DOCBOOK_TRUE='#'
18600  WITH_DOCBOOK_FALSE=
18601fi
18602
18603
18604
18605if test "x${enable_xml_attr_info}" = xyes; then :
18606  EXPAT_ATTR_INFO=ON
18607else
18608  EXPAT_ATTR_INFO=OFF
18609fi
18610EXPAT_DTD=ON
18611if test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x; then :
18612  EXPAT_LARGE_SIZE=ON
18613else
18614  EXPAT_LARGE_SIZE=OFF
18615fi
18616if test "x${_INTERNAL_MIN_SIZE_TRUE}" = x; then :
18617  EXPAT_MIN_SIZE=ON
18618else
18619  EXPAT_MIN_SIZE=OFF
18620fi
18621EXPAT_NS=ON
18622if test "x${enable_xml_context}" != xno; then :
18623  EXPAT_CONTEXT_BYTES=${enable_xml_context}
18624else
18625  EXPAT_CONTEXT_BYTES=OFF
18626fi
18627if test "x${UNICODE_TRUE}" = x; then :
18628  if test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x; then :
18629  EXPAT_CHAR_TYPE=wchar_t
18630else
18631  EXPAT_CHAR_TYPE=ushort
18632fi
18633else
18634  EXPAT_CHAR_TYPE=char
18635fi
18636PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
18637LIBDIR_BASENAME="$(basename "${libdir}")"
18638SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
18639SO_MINOR="${LIBAGE}"
18640SO_PATCH="${LIBREVISION}"
18641# The cast to long int works around a bug in the HP C Compiler
18642# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18643# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18644# This bug is HP SR number 8606223364.
18645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18646$as_echo_n "checking size of void *... " >&6; }
18647if ${ac_cv_sizeof_void_p+:} false; then :
18648  $as_echo_n "(cached) " >&6
18649else
18650  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
18651
18652else
18653  if test "$ac_cv_type_void_p" = yes; then
18654     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18656as_fn_error 77 "cannot compute sizeof (void *)
18657See \`config.log' for more details" "$LINENO" 5; }
18658   else
18659     ac_cv_sizeof_void_p=0
18660   fi
18661fi
18662
18663fi
18664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18665$as_echo "$ac_cv_sizeof_void_p" >&6; }
18666
18667
18668
18669cat >>confdefs.h <<_ACEOF
18670#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18671_ACEOF
18672
18673  # sets ac_cv_sizeof_void_p
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694_EXPAT_OUTPUT_NAME="$PACKAGE_NAME"
18695
18696
18697case "${host_os}" in #(
18698  darwin*) :
18699    CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in ;; #(
18700  mingw*) :
18701    CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in ;; #(
18702  *) :
18703    CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in ;;
18704esac
18705ac_config_files="$ac_config_files Makefile expat.pc cmake/expat-config.cmake cmake/autotools/expat-config-version.cmake cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE} doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
18706
18707ac_config_files="$ac_config_files run.sh"
18708
18709cat >confcache <<\_ACEOF
18710# This file is a shell script that caches the results of configure
18711# tests run on this system so they can be shared between configure
18712# scripts and configure runs, see configure's option --config-cache.
18713# It is not useful on other systems.  If it contains results you don't
18714# want to keep, you may remove or edit it.
18715#
18716# config.status only pays attention to the cache file if you give it
18717# the --recheck option to rerun configure.
18718#
18719# `ac_cv_env_foo' variables (set or unset) will be overridden when
18720# loading this file, other *unset* `ac_cv_foo' will be assigned the
18721# following values.
18722
18723_ACEOF
18724
18725# The following way of writing the cache mishandles newlines in values,
18726# but we know of no workaround that is simple, portable, and efficient.
18727# So, we kill variables containing newlines.
18728# Ultrix sh set writes to stderr and can't be redirected directly,
18729# and sets the high bit in the cache file unless we assign to the vars.
18730(
18731  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18732    eval ac_val=\$$ac_var
18733    case $ac_val in #(
18734    *${as_nl}*)
18735      case $ac_var in #(
18736      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18737$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18738      esac
18739      case $ac_var in #(
18740      _ | IFS | as_nl) ;; #(
18741      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18742      *) { eval $ac_var=; unset $ac_var;} ;;
18743      esac ;;
18744    esac
18745  done
18746
18747  (set) 2>&1 |
18748    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18749    *${as_nl}ac_space=\ *)
18750      # `set' does not quote correctly, so add quotes: double-quote
18751      # substitution turns \\\\ into \\, and sed turns \\ into \.
18752      sed -n \
18753	"s/'/'\\\\''/g;
18754	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18755      ;; #(
18756    *)
18757      # `set' quotes correctly as required by POSIX, so do not add quotes.
18758      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18759      ;;
18760    esac |
18761    sort
18762) |
18763  sed '
18764     /^ac_cv_env_/b end
18765     t clear
18766     :clear
18767     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18768     t end
18769     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18770     :end' >>confcache
18771if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18772  if test -w "$cache_file"; then
18773    if test "x$cache_file" != "x/dev/null"; then
18774      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18775$as_echo "$as_me: updating cache $cache_file" >&6;}
18776      if test ! -f "$cache_file" || test -h "$cache_file"; then
18777	cat confcache >"$cache_file"
18778      else
18779        case $cache_file in #(
18780        */* | ?:*)
18781	  mv -f confcache "$cache_file"$$ &&
18782	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18783        *)
18784	  mv -f confcache "$cache_file" ;;
18785	esac
18786      fi
18787    fi
18788  else
18789    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18790$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18791  fi
18792fi
18793rm -f confcache
18794
18795test "x$prefix" = xNONE && prefix=$ac_default_prefix
18796# Let make expand exec_prefix.
18797test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18798
18799DEFS=-DHAVE_CONFIG_H
18800
18801ac_libobjs=
18802ac_ltlibobjs=
18803U=
18804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18805  # 1. Remove the extension, and $U if already installed.
18806  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18807  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18808  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18809  #    will be set to the directory where LIBOBJS objects are built.
18810  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18811  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18812done
18813LIBOBJS=$ac_libobjs
18814
18815LTLIBOBJS=$ac_ltlibobjs
18816
18817
18818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18819$as_echo_n "checking that generated files are newer than configure... " >&6; }
18820   if test -n "$am_sleep_pid"; then
18821     # Hide warnings about reused PIDs.
18822     wait $am_sleep_pid 2>/dev/null
18823   fi
18824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18825$as_echo "done" >&6; }
18826 if test -n "$EXEEXT"; then
18827  am__EXEEXT_TRUE=
18828  am__EXEEXT_FALSE='#'
18829else
18830  am__EXEEXT_TRUE='#'
18831  am__EXEEXT_FALSE=
18832fi
18833
18834if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18835  as_fn_error $? "conditional \"AMDEP\" was never defined.
18836Usually this means the macro was only invoked conditionally." "$LINENO" 5
18837fi
18838if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18839  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18840Usually this means the macro was only invoked conditionally." "$LINENO" 5
18841fi
18842if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18843  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18844Usually this means the macro was only invoked conditionally." "$LINENO" 5
18845fi
18846
18847if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
18848  as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
18849Usually this means the macro was only invoked conditionally." "$LINENO" 5
18850fi
18851if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
18852  as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
18853Usually this means the macro was only invoked conditionally." "$LINENO" 5
18854fi
18855if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
18856  as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
18857Usually this means the macro was only invoked conditionally." "$LINENO" 5
18858fi
18859if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18860  as_fn_error $? "conditional \"MINGW\" was never defined.
18861Usually this means the macro was only invoked conditionally." "$LINENO" 5
18862fi
18863if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
18864  as_fn_error $? "conditional \"UNICODE\" was never defined.
18865Usually this means the macro was only invoked conditionally." "$LINENO" 5
18866fi
18867if test -z "${_INTERNAL_UNICODE_WCHAR_T_TRUE}" && test -z "${_INTERNAL_UNICODE_WCHAR_T_FALSE}"; then
18868  as_fn_error $? "conditional \"_INTERNAL_UNICODE_WCHAR_T\" was never defined.
18869Usually this means the macro was only invoked conditionally." "$LINENO" 5
18870fi
18871if test -z "${_INTERNAL_MIN_SIZE_TRUE}" && test -z "${_INTERNAL_MIN_SIZE_FALSE}"; then
18872  as_fn_error $? "conditional \"_INTERNAL_MIN_SIZE\" was never defined.
18873Usually this means the macro was only invoked conditionally." "$LINENO" 5
18874fi
18875if test -z "${_INTERNAL_LARGE_SIZE_TRUE}" && test -z "${_INTERNAL_LARGE_SIZE_FALSE}"; then
18876  as_fn_error $? "conditional \"_INTERNAL_LARGE_SIZE\" was never defined.
18877Usually this means the macro was only invoked conditionally." "$LINENO" 5
18878fi
18879if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then
18880  as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined.
18881Usually this means the macro was only invoked conditionally." "$LINENO" 5
18882fi
18883
18884: "${CONFIG_STATUS=./config.status}"
18885ac_write_fail=0
18886ac_clean_files_save=$ac_clean_files
18887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18888{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18889$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18890as_write_fail=0
18891cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18892#! $SHELL
18893# Generated by $as_me.
18894# Run this file to recreate the current configuration.
18895# Compiler output produced by configure, useful for debugging
18896# configure, is in config.log if it exists.
18897
18898debug=false
18899ac_cs_recheck=false
18900ac_cs_silent=false
18901
18902SHELL=\${CONFIG_SHELL-$SHELL}
18903export SHELL
18904_ASEOF
18905cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18906## -------------------- ##
18907## M4sh Initialization. ##
18908## -------------------- ##
18909
18910# Be more Bourne compatible
18911DUALCASE=1; export DUALCASE # for MKS sh
18912if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18913  emulate sh
18914  NULLCMD=:
18915  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18916  # is contrary to our usage.  Disable this feature.
18917  alias -g '${1+"$@"}'='"$@"'
18918  setopt NO_GLOB_SUBST
18919else
18920  case `(set -o) 2>/dev/null` in #(
18921  *posix*) :
18922    set -o posix ;; #(
18923  *) :
18924     ;;
18925esac
18926fi
18927
18928
18929as_nl='
18930'
18931export as_nl
18932# Printing a long string crashes Solaris 7 /usr/bin/printf.
18933as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18934as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18936# Prefer a ksh shell builtin over an external printf program on Solaris,
18937# but without wasting forks for bash or zsh.
18938if test -z "$BASH_VERSION$ZSH_VERSION" \
18939    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18940  as_echo='print -r --'
18941  as_echo_n='print -rn --'
18942elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18943  as_echo='printf %s\n'
18944  as_echo_n='printf %s'
18945else
18946  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18947    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18948    as_echo_n='/usr/ucb/echo -n'
18949  else
18950    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18951    as_echo_n_body='eval
18952      arg=$1;
18953      case $arg in #(
18954      *"$as_nl"*)
18955	expr "X$arg" : "X\\(.*\\)$as_nl";
18956	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18957      esac;
18958      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18959    '
18960    export as_echo_n_body
18961    as_echo_n='sh -c $as_echo_n_body as_echo'
18962  fi
18963  export as_echo_body
18964  as_echo='sh -c $as_echo_body as_echo'
18965fi
18966
18967# The user is always right.
18968if test "${PATH_SEPARATOR+set}" != set; then
18969  PATH_SEPARATOR=:
18970  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18971    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18972      PATH_SEPARATOR=';'
18973  }
18974fi
18975
18976
18977# IFS
18978# We need space, tab and new line, in precisely that order.  Quoting is
18979# there to prevent editors from complaining about space-tab.
18980# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18981# splitting by setting IFS to empty value.)
18982IFS=" ""	$as_nl"
18983
18984# Find who we are.  Look in the path if we contain no directory separator.
18985as_myself=
18986case $0 in #((
18987  *[\\/]* ) as_myself=$0 ;;
18988  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18989for as_dir in $PATH
18990do
18991  IFS=$as_save_IFS
18992  test -z "$as_dir" && as_dir=.
18993    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18994  done
18995IFS=$as_save_IFS
18996
18997     ;;
18998esac
18999# We did not find ourselves, most probably we were run as `sh COMMAND'
19000# in which case we are not to be found in the path.
19001if test "x$as_myself" = x; then
19002  as_myself=$0
19003fi
19004if test ! -f "$as_myself"; then
19005  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19006  exit 1
19007fi
19008
19009# Unset variables that we do not need and which cause bugs (e.g. in
19010# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19011# suppresses any "Segmentation fault" message there.  '((' could
19012# trigger a bug in pdksh 5.2.14.
19013for as_var in BASH_ENV ENV MAIL MAILPATH
19014do eval test x\${$as_var+set} = xset \
19015  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19016done
19017PS1='$ '
19018PS2='> '
19019PS4='+ '
19020
19021# NLS nuisances.
19022LC_ALL=C
19023export LC_ALL
19024LANGUAGE=C
19025export LANGUAGE
19026
19027# CDPATH.
19028(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19029
19030
19031# as_fn_error STATUS ERROR [LINENO LOG_FD]
19032# ----------------------------------------
19033# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19034# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19035# script with STATUS, using 1 if that was 0.
19036as_fn_error ()
19037{
19038  as_status=$1; test $as_status -eq 0 && as_status=1
19039  if test "$4"; then
19040    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19041    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19042  fi
19043  $as_echo "$as_me: error: $2" >&2
19044  as_fn_exit $as_status
19045} # as_fn_error
19046
19047
19048# as_fn_set_status STATUS
19049# -----------------------
19050# Set $? to STATUS, without forking.
19051as_fn_set_status ()
19052{
19053  return $1
19054} # as_fn_set_status
19055
19056# as_fn_exit STATUS
19057# -----------------
19058# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19059as_fn_exit ()
19060{
19061  set +e
19062  as_fn_set_status $1
19063  exit $1
19064} # as_fn_exit
19065
19066# as_fn_unset VAR
19067# ---------------
19068# Portably unset VAR.
19069as_fn_unset ()
19070{
19071  { eval $1=; unset $1;}
19072}
19073as_unset=as_fn_unset
19074# as_fn_append VAR VALUE
19075# ----------------------
19076# Append the text in VALUE to the end of the definition contained in VAR. Take
19077# advantage of any shell optimizations that allow amortized linear growth over
19078# repeated appends, instead of the typical quadratic growth present in naive
19079# implementations.
19080if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19081  eval 'as_fn_append ()
19082  {
19083    eval $1+=\$2
19084  }'
19085else
19086  as_fn_append ()
19087  {
19088    eval $1=\$$1\$2
19089  }
19090fi # as_fn_append
19091
19092# as_fn_arith ARG...
19093# ------------------
19094# Perform arithmetic evaluation on the ARGs, and store the result in the
19095# global $as_val. Take advantage of shells that can avoid forks. The arguments
19096# must be portable across $(()) and expr.
19097if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19098  eval 'as_fn_arith ()
19099  {
19100    as_val=$(( $* ))
19101  }'
19102else
19103  as_fn_arith ()
19104  {
19105    as_val=`expr "$@" || test $? -eq 1`
19106  }
19107fi # as_fn_arith
19108
19109
19110if expr a : '\(a\)' >/dev/null 2>&1 &&
19111   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19112  as_expr=expr
19113else
19114  as_expr=false
19115fi
19116
19117if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19118  as_basename=basename
19119else
19120  as_basename=false
19121fi
19122
19123if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19124  as_dirname=dirname
19125else
19126  as_dirname=false
19127fi
19128
19129as_me=`$as_basename -- "$0" ||
19130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19131	 X"$0" : 'X\(//\)$' \| \
19132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19133$as_echo X/"$0" |
19134    sed '/^.*\/\([^/][^/]*\)\/*$/{
19135	    s//\1/
19136	    q
19137	  }
19138	  /^X\/\(\/\/\)$/{
19139	    s//\1/
19140	    q
19141	  }
19142	  /^X\/\(\/\).*/{
19143	    s//\1/
19144	    q
19145	  }
19146	  s/.*/./; q'`
19147
19148# Avoid depending upon Character Ranges.
19149as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19150as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19151as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19152as_cr_digits='0123456789'
19153as_cr_alnum=$as_cr_Letters$as_cr_digits
19154
19155ECHO_C= ECHO_N= ECHO_T=
19156case `echo -n x` in #(((((
19157-n*)
19158  case `echo 'xy\c'` in
19159  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19160  xy)  ECHO_C='\c';;
19161  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19162       ECHO_T='	';;
19163  esac;;
19164*)
19165  ECHO_N='-n';;
19166esac
19167
19168rm -f conf$$ conf$$.exe conf$$.file
19169if test -d conf$$.dir; then
19170  rm -f conf$$.dir/conf$$.file
19171else
19172  rm -f conf$$.dir
19173  mkdir conf$$.dir 2>/dev/null
19174fi
19175if (echo >conf$$.file) 2>/dev/null; then
19176  if ln -s conf$$.file conf$$ 2>/dev/null; then
19177    as_ln_s='ln -s'
19178    # ... but there are two gotchas:
19179    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19180    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19181    # In both cases, we have to default to `cp -pR'.
19182    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19183      as_ln_s='cp -pR'
19184  elif ln conf$$.file conf$$ 2>/dev/null; then
19185    as_ln_s=ln
19186  else
19187    as_ln_s='cp -pR'
19188  fi
19189else
19190  as_ln_s='cp -pR'
19191fi
19192rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19193rmdir conf$$.dir 2>/dev/null
19194
19195
19196# as_fn_mkdir_p
19197# -------------
19198# Create "$as_dir" as a directory, including parents if necessary.
19199as_fn_mkdir_p ()
19200{
19201
19202  case $as_dir in #(
19203  -*) as_dir=./$as_dir;;
19204  esac
19205  test -d "$as_dir" || eval $as_mkdir_p || {
19206    as_dirs=
19207    while :; do
19208      case $as_dir in #(
19209      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19210      *) as_qdir=$as_dir;;
19211      esac
19212      as_dirs="'$as_qdir' $as_dirs"
19213      as_dir=`$as_dirname -- "$as_dir" ||
19214$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19215	 X"$as_dir" : 'X\(//\)[^/]' \| \
19216	 X"$as_dir" : 'X\(//\)$' \| \
19217	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19218$as_echo X"$as_dir" |
19219    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19220	    s//\1/
19221	    q
19222	  }
19223	  /^X\(\/\/\)[^/].*/{
19224	    s//\1/
19225	    q
19226	  }
19227	  /^X\(\/\/\)$/{
19228	    s//\1/
19229	    q
19230	  }
19231	  /^X\(\/\).*/{
19232	    s//\1/
19233	    q
19234	  }
19235	  s/.*/./; q'`
19236      test -d "$as_dir" && break
19237    done
19238    test -z "$as_dirs" || eval "mkdir $as_dirs"
19239  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19240
19241
19242} # as_fn_mkdir_p
19243if mkdir -p . 2>/dev/null; then
19244  as_mkdir_p='mkdir -p "$as_dir"'
19245else
19246  test -d ./-p && rmdir ./-p
19247  as_mkdir_p=false
19248fi
19249
19250
19251# as_fn_executable_p FILE
19252# -----------------------
19253# Test if FILE is an executable regular file.
19254as_fn_executable_p ()
19255{
19256  test -f "$1" && test -x "$1"
19257} # as_fn_executable_p
19258as_test_x='test -x'
19259as_executable_p=as_fn_executable_p
19260
19261# Sed expression to map a string onto a valid CPP name.
19262as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19263
19264# Sed expression to map a string onto a valid variable name.
19265as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19266
19267
19268exec 6>&1
19269## ----------------------------------- ##
19270## Main body of $CONFIG_STATUS script. ##
19271## ----------------------------------- ##
19272_ASEOF
19273test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19274
19275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19276# Save the log message, to keep $0 and so on meaningful, and to
19277# report actual input values of CONFIG_FILES etc. instead of their
19278# values after options handling.
19279ac_log="
19280This file was extended by expat $as_me 2.4.1, which was
19281generated by GNU Autoconf 2.69.  Invocation command line was
19282
19283  CONFIG_FILES    = $CONFIG_FILES
19284  CONFIG_HEADERS  = $CONFIG_HEADERS
19285  CONFIG_LINKS    = $CONFIG_LINKS
19286  CONFIG_COMMANDS = $CONFIG_COMMANDS
19287  $ $0 $@
19288
19289on `(hostname || uname -n) 2>/dev/null | sed 1q`
19290"
19291
19292_ACEOF
19293
19294case $ac_config_files in *"
19295"*) set x $ac_config_files; shift; ac_config_files=$*;;
19296esac
19297
19298case $ac_config_headers in *"
19299"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19300esac
19301
19302
19303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19304# Files that config.status was made for.
19305config_files="$ac_config_files"
19306config_headers="$ac_config_headers"
19307config_commands="$ac_config_commands"
19308
19309_ACEOF
19310
19311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19312ac_cs_usage="\
19313\`$as_me' instantiates files and other configuration actions
19314from templates according to the current configuration.  Unless the files
19315and actions are specified as TAGs, all are instantiated by default.
19316
19317Usage: $0 [OPTION]... [TAG]...
19318
19319  -h, --help       print this help, then exit
19320  -V, --version    print version number and configuration settings, then exit
19321      --config     print configuration, then exit
19322  -q, --quiet, --silent
19323                   do not print progress messages
19324  -d, --debug      don't remove temporary files
19325      --recheck    update $as_me by reconfiguring in the same conditions
19326      --file=FILE[:TEMPLATE]
19327                   instantiate the configuration file FILE
19328      --header=FILE[:TEMPLATE]
19329                   instantiate the configuration header FILE
19330
19331Configuration files:
19332$config_files
19333
19334Configuration headers:
19335$config_headers
19336
19337Configuration commands:
19338$config_commands
19339
19340Report bugs to <expat-bugs@libexpat.org>."
19341
19342_ACEOF
19343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19344ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19345ac_cs_version="\\
19346expat config.status 2.4.1
19347configured by $0, generated by GNU Autoconf 2.69,
19348  with options \\"\$ac_cs_config\\"
19349
19350Copyright (C) 2012 Free Software Foundation, Inc.
19351This config.status script is free software; the Free Software Foundation
19352gives unlimited permission to copy, distribute and modify it."
19353
19354ac_pwd='$ac_pwd'
19355srcdir='$srcdir'
19356INSTALL='$INSTALL'
19357MKDIR_P='$MKDIR_P'
19358AWK='$AWK'
19359test -n "\$AWK" || AWK=awk
19360_ACEOF
19361
19362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19363# The default lists apply if the user does not specify any file.
19364ac_need_defaults=:
19365while test $# != 0
19366do
19367  case $1 in
19368  --*=?*)
19369    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19370    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19371    ac_shift=:
19372    ;;
19373  --*=)
19374    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19375    ac_optarg=
19376    ac_shift=:
19377    ;;
19378  *)
19379    ac_option=$1
19380    ac_optarg=$2
19381    ac_shift=shift
19382    ;;
19383  esac
19384
19385  case $ac_option in
19386  # Handling of the options.
19387  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19388    ac_cs_recheck=: ;;
19389  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19390    $as_echo "$ac_cs_version"; exit ;;
19391  --config | --confi | --conf | --con | --co | --c )
19392    $as_echo "$ac_cs_config"; exit ;;
19393  --debug | --debu | --deb | --de | --d | -d )
19394    debug=: ;;
19395  --file | --fil | --fi | --f )
19396    $ac_shift
19397    case $ac_optarg in
19398    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19399    '') as_fn_error $? "missing file argument" ;;
19400    esac
19401    as_fn_append CONFIG_FILES " '$ac_optarg'"
19402    ac_need_defaults=false;;
19403  --header | --heade | --head | --hea )
19404    $ac_shift
19405    case $ac_optarg in
19406    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19407    esac
19408    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19409    ac_need_defaults=false;;
19410  --he | --h)
19411    # Conflict between --help and --header
19412    as_fn_error $? "ambiguous option: \`$1'
19413Try \`$0 --help' for more information.";;
19414  --help | --hel | -h )
19415    $as_echo "$ac_cs_usage"; exit ;;
19416  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19417  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19418    ac_cs_silent=: ;;
19419
19420  # This is an error.
19421  -*) as_fn_error $? "unrecognized option: \`$1'
19422Try \`$0 --help' for more information." ;;
19423
19424  *) as_fn_append ac_config_targets " $1"
19425     ac_need_defaults=false ;;
19426
19427  esac
19428  shift
19429done
19430
19431ac_configure_extra_args=
19432
19433if $ac_cs_silent; then
19434  exec 6>/dev/null
19435  ac_configure_extra_args="$ac_configure_extra_args --silent"
19436fi
19437
19438_ACEOF
19439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19440if \$ac_cs_recheck; then
19441  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19442  shift
19443  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19444  CONFIG_SHELL='$SHELL'
19445  export CONFIG_SHELL
19446  exec "\$@"
19447fi
19448
19449_ACEOF
19450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19451exec 5>>config.log
19452{
19453  echo
19454  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19455## Running $as_me. ##
19456_ASBOX
19457  $as_echo "$ac_log"
19458} >&5
19459
19460_ACEOF
19461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19462#
19463# INIT-COMMANDS
19464#
19465AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19466
19467
19468# The HP-UX ksh and POSIX shell print the target directory to stdout
19469# if CDPATH is set.
19470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19471
19472sed_quote_subst='$sed_quote_subst'
19473double_quote_subst='$double_quote_subst'
19474delay_variable_subst='$delay_variable_subst'
19475macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19476macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19477AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19478DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19479OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19480enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19481enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19482pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19483enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19484shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19485SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19486ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19487PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19488host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19489host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19490host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19491build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19492build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19493build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19494SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19495Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19496GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19497EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19498FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19499LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19500NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19501LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19502max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19503ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19504exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19505lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19506lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19507lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19508lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19509lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19510reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19511reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19512deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19513file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19514file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19515want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19516sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19517AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19518AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19519archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19520STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19521RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19522old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19523old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19524old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19525lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19526CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19527CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19528compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19529GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19530lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19531lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19532lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19533lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19534lt_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"`'
19535lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19536nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19537lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19538lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19539objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19540MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19541lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19542lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19543lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19544lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19545lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19546need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19547MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19548DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19549NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19550LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19551OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19552OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19553libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19554shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19555extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19556archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19557enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19558export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19559whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19560compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19561old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19562old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19563archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19564archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19565module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19566module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19567with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19568allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19569no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19570hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19571hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19572hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19573hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19574hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19575hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19576hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19577inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19578link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19579always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19580export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19581exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19582include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19583prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19584postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19585file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19586variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19587need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19588need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19589version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19590runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19591shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19592shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19593libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19594library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19595soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19596install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19597postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19598postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19599finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19600finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19601hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19602sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19603configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19604configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19605hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19606enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19607enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19608enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19609old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19610striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19611compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19612predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19613postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19614predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19615postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19616compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19617LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19618reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19619reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19620old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19621compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19622GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19623lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19624lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19625lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19626lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19627lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19628archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19629enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19630export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19631whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19632compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19633old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19634old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19635archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19636archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19637module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19638module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19639with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19640allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19641no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19642hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19643hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19644hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19645hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19646hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19647hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19648hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19649inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19650link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19651always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19652export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19653exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19654include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19655prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19656postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19657file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19658hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19659compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19660predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19661postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19662predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19663postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19664compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19665
19666LTCC='$LTCC'
19667LTCFLAGS='$LTCFLAGS'
19668compiler='$compiler_DEFAULT'
19669
19670# A function that is used when there is no print builtin or printf.
19671func_fallback_echo ()
19672{
19673  eval 'cat <<_LTECHO_EOF
19674\$1
19675_LTECHO_EOF'
19676}
19677
19678# Quote evaled strings.
19679for var in AS \
19680DLLTOOL \
19681OBJDUMP \
19682SHELL \
19683ECHO \
19684PATH_SEPARATOR \
19685SED \
19686GREP \
19687EGREP \
19688FGREP \
19689LD \
19690NM \
19691LN_S \
19692lt_SP2NL \
19693lt_NL2SP \
19694reload_flag \
19695deplibs_check_method \
19696file_magic_cmd \
19697file_magic_glob \
19698want_nocaseglob \
19699sharedlib_from_linklib_cmd \
19700AR \
19701AR_FLAGS \
19702archiver_list_spec \
19703STRIP \
19704RANLIB \
19705CC \
19706CFLAGS \
19707compiler \
19708lt_cv_sys_global_symbol_pipe \
19709lt_cv_sys_global_symbol_to_cdecl \
19710lt_cv_sys_global_symbol_to_import \
19711lt_cv_sys_global_symbol_to_c_name_address \
19712lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19713lt_cv_nm_interface \
19714nm_file_list_spec \
19715lt_cv_truncate_bin \
19716lt_prog_compiler_no_builtin_flag \
19717lt_prog_compiler_pic \
19718lt_prog_compiler_wl \
19719lt_prog_compiler_static \
19720lt_cv_prog_compiler_c_o \
19721need_locks \
19722MANIFEST_TOOL \
19723DSYMUTIL \
19724NMEDIT \
19725LIPO \
19726OTOOL \
19727OTOOL64 \
19728shrext_cmds \
19729export_dynamic_flag_spec \
19730whole_archive_flag_spec \
19731compiler_needs_object \
19732with_gnu_ld \
19733allow_undefined_flag \
19734no_undefined_flag \
19735hardcode_libdir_flag_spec \
19736hardcode_libdir_separator \
19737exclude_expsyms \
19738include_expsyms \
19739file_list_spec \
19740variables_saved_for_relink \
19741libname_spec \
19742library_names_spec \
19743soname_spec \
19744install_override_mode \
19745finish_eval \
19746old_striplib \
19747striplib \
19748compiler_lib_search_dirs \
19749predep_objects \
19750postdep_objects \
19751predeps \
19752postdeps \
19753compiler_lib_search_path \
19754LD_CXX \
19755reload_flag_CXX \
19756compiler_CXX \
19757lt_prog_compiler_no_builtin_flag_CXX \
19758lt_prog_compiler_pic_CXX \
19759lt_prog_compiler_wl_CXX \
19760lt_prog_compiler_static_CXX \
19761lt_cv_prog_compiler_c_o_CXX \
19762export_dynamic_flag_spec_CXX \
19763whole_archive_flag_spec_CXX \
19764compiler_needs_object_CXX \
19765with_gnu_ld_CXX \
19766allow_undefined_flag_CXX \
19767no_undefined_flag_CXX \
19768hardcode_libdir_flag_spec_CXX \
19769hardcode_libdir_separator_CXX \
19770exclude_expsyms_CXX \
19771include_expsyms_CXX \
19772file_list_spec_CXX \
19773compiler_lib_search_dirs_CXX \
19774predep_objects_CXX \
19775postdep_objects_CXX \
19776predeps_CXX \
19777postdeps_CXX \
19778compiler_lib_search_path_CXX; do
19779    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19780    *[\\\\\\\`\\"\\\$]*)
19781      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19782      ;;
19783    *)
19784      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19785      ;;
19786    esac
19787done
19788
19789# Double-quote double-evaled strings.
19790for var in reload_cmds \
19791old_postinstall_cmds \
19792old_postuninstall_cmds \
19793old_archive_cmds \
19794extract_expsyms_cmds \
19795old_archive_from_new_cmds \
19796old_archive_from_expsyms_cmds \
19797archive_cmds \
19798archive_expsym_cmds \
19799module_cmds \
19800module_expsym_cmds \
19801export_symbols_cmds \
19802prelink_cmds \
19803postlink_cmds \
19804postinstall_cmds \
19805postuninstall_cmds \
19806finish_cmds \
19807sys_lib_search_path_spec \
19808configure_time_dlsearch_path \
19809configure_time_lt_sys_library_path \
19810reload_cmds_CXX \
19811old_archive_cmds_CXX \
19812old_archive_from_new_cmds_CXX \
19813old_archive_from_expsyms_cmds_CXX \
19814archive_cmds_CXX \
19815archive_expsym_cmds_CXX \
19816module_cmds_CXX \
19817module_expsym_cmds_CXX \
19818export_symbols_cmds_CXX \
19819prelink_cmds_CXX \
19820postlink_cmds_CXX; do
19821    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19822    *[\\\\\\\`\\"\\\$]*)
19823      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19824      ;;
19825    *)
19826      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19827      ;;
19828    esac
19829done
19830
19831ac_aux_dir='$ac_aux_dir'
19832
19833# See if we are running on zsh, and set the options that allow our
19834# commands through without removal of \ escapes INIT.
19835if test -n "\${ZSH_VERSION+set}"; then
19836   setopt NO_GLOB_SUBST
19837fi
19838
19839
19840    PACKAGE='$PACKAGE'
19841    VERSION='$VERSION'
19842    RM='$RM'
19843    ofile='$ofile'
19844
19845
19846
19847
19848
19849
19850_ACEOF
19851
19852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19853
19854# Handling of arguments.
19855for ac_config_target in $ac_config_targets
19856do
19857  case $ac_config_target in
19858    "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
19859    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19860    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19861    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19862    "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
19863    "cmake/expat-config.cmake") CONFIG_FILES="$CONFIG_FILES cmake/expat-config.cmake" ;;
19864    "cmake/autotools/expat-config-version.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-config-version.cmake" ;;
19865    "cmake/autotools/expat-noconfig.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}" ;;
19866    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19867    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19868    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19869    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19870    "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
19871    "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
19872    "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
19873
19874  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19875  esac
19876done
19877
19878
19879# If the user did not use the arguments to specify the items to instantiate,
19880# then the envvar interface is used.  Set only those that are not.
19881# We use the long form for the default assignment because of an extremely
19882# bizarre bug on SunOS 4.1.3.
19883if $ac_need_defaults; then
19884  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19885  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19886  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19887fi
19888
19889# Have a temporary directory for convenience.  Make it in the build tree
19890# simply because there is no reason against having it here, and in addition,
19891# creating and moving files from /tmp can sometimes cause problems.
19892# Hook for its removal unless debugging.
19893# Note that there is a small window in which the directory will not be cleaned:
19894# after its creation but before its name has been assigned to `$tmp'.
19895$debug ||
19896{
19897  tmp= ac_tmp=
19898  trap 'exit_status=$?
19899  : "${ac_tmp:=$tmp}"
19900  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19901' 0
19902  trap 'as_fn_exit 1' 1 2 13 15
19903}
19904# Create a (secure) tmp directory for tmp files.
19905
19906{
19907  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19908  test -d "$tmp"
19909}  ||
19910{
19911  tmp=./conf$$-$RANDOM
19912  (umask 077 && mkdir "$tmp")
19913} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19914ac_tmp=$tmp
19915
19916# Set up the scripts for CONFIG_FILES section.
19917# No need to generate them if there are no CONFIG_FILES.
19918# This happens for instance with `./config.status config.h'.
19919if test -n "$CONFIG_FILES"; then
19920
19921if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19922  ac_cs_awk_getline=:
19923  ac_cs_awk_pipe_init=
19924  ac_cs_awk_read_file='
19925      while ((getline aline < (F[key])) > 0)
19926	print(aline)
19927      close(F[key])'
19928  ac_cs_awk_pipe_fini=
19929else
19930  ac_cs_awk_getline=false
19931  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19932  ac_cs_awk_read_file='
19933      print "|#_!!_#|"
19934      print "cat " F[key] " &&"
19935      '$ac_cs_awk_pipe_init
19936  # The final `:' finishes the AND list.
19937  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19938fi
19939ac_cr=`echo X | tr X '\015'`
19940# On cygwin, bash can eat \r inside `` if the user requested igncr.
19941# But we know of no other shell where ac_cr would be empty at this
19942# point, so we can use a bashism as a fallback.
19943if test "x$ac_cr" = x; then
19944  eval ac_cr=\$\'\\r\'
19945fi
19946ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19947if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19948  ac_cs_awk_cr='\\r'
19949else
19950  ac_cs_awk_cr=$ac_cr
19951fi
19952
19953echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19954_ACEOF
19955
19956# Create commands to substitute file output variables.
19957{
19958  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19959  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19960  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19961  echo "_ACAWK" &&
19962  echo "_ACEOF"
19963} >conf$$files.sh &&
19964. ./conf$$files.sh ||
19965  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19966rm -f conf$$files.sh
19967
19968{
19969  echo "cat >conf$$subs.awk <<_ACEOF" &&
19970  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19971  echo "_ACEOF"
19972} >conf$$subs.sh ||
19973  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19974ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19975ac_delim='%!_!# '
19976for ac_last_try in false false false false false :; do
19977  . ./conf$$subs.sh ||
19978    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19979
19980  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19981  if test $ac_delim_n = $ac_delim_num; then
19982    break
19983  elif $ac_last_try; then
19984    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19985  else
19986    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19987  fi
19988done
19989rm -f conf$$subs.sh
19990
19991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19992cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19993_ACEOF
19994sed -n '
19995h
19996s/^/S["/; s/!.*/"]=/
19997p
19998g
19999s/^[^!]*!//
20000:repl
20001t repl
20002s/'"$ac_delim"'$//
20003t delim
20004:nl
20005h
20006s/\(.\{148\}\)..*/\1/
20007t more1
20008s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20009p
20010n
20011b repl
20012:more1
20013s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20014p
20015g
20016s/.\{148\}//
20017t nl
20018:delim
20019h
20020s/\(.\{148\}\)..*/\1/
20021t more2
20022s/["\\]/\\&/g; s/^/"/; s/$/"/
20023p
20024b
20025:more2
20026s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20027p
20028g
20029s/.\{148\}//
20030t delim
20031' <conf$$subs.awk | sed '
20032/^[^""]/{
20033  N
20034  s/\n//
20035}
20036' >>$CONFIG_STATUS || ac_write_fail=1
20037rm -f conf$$subs.awk
20038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20039_ACAWK
20040cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20041  for (key in S) S_is_set[key] = 1
20042  FS = ""
20043  \$ac_cs_awk_pipe_init
20044}
20045{
20046  line = $ 0
20047  nfields = split(line, field, "@")
20048  substed = 0
20049  len = length(field[1])
20050  for (i = 2; i < nfields; i++) {
20051    key = field[i]
20052    keylen = length(key)
20053    if (S_is_set[key]) {
20054      value = S[key]
20055      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20056      len += length(value) + length(field[++i])
20057      substed = 1
20058    } else
20059      len += 1 + keylen
20060  }
20061  if (nfields == 3 && !substed) {
20062    key = field[2]
20063    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
20064      \$ac_cs_awk_read_file
20065      next
20066    }
20067  }
20068  print line
20069}
20070\$ac_cs_awk_pipe_fini
20071_ACAWK
20072_ACEOF
20073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20074if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20075  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20076else
20077  cat
20078fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20079  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20080_ACEOF
20081
20082# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20083# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20084# trailing colons and then remove the whole line if VPATH becomes empty
20085# (actually we leave an empty line to preserve line numbers).
20086if test "x$srcdir" = x.; then
20087  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20088h
20089s///
20090s/^/:/
20091s/[	 ]*$/:/
20092s/:\$(srcdir):/:/g
20093s/:\${srcdir}:/:/g
20094s/:@srcdir@:/:/g
20095s/^:*//
20096s/:*$//
20097x
20098s/\(=[	 ]*\).*/\1/
20099G
20100s/\n//
20101s/^[^=]*=[	 ]*$//
20102}'
20103fi
20104
20105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20106fi # test -n "$CONFIG_FILES"
20107
20108# Set up the scripts for CONFIG_HEADERS section.
20109# No need to generate them if there are no CONFIG_HEADERS.
20110# This happens for instance with `./config.status Makefile'.
20111if test -n "$CONFIG_HEADERS"; then
20112cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20113BEGIN {
20114_ACEOF
20115
20116# Transform confdefs.h into an awk script `defines.awk', embedded as
20117# here-document in config.status, that substitutes the proper values into
20118# config.h.in to produce config.h.
20119
20120# Create a delimiter string that does not exist in confdefs.h, to ease
20121# handling of long lines.
20122ac_delim='%!_!# '
20123for ac_last_try in false false :; do
20124  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20125  if test -z "$ac_tt"; then
20126    break
20127  elif $ac_last_try; then
20128    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20129  else
20130    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20131  fi
20132done
20133
20134# For the awk script, D is an array of macro values keyed by name,
20135# likewise P contains macro parameters if any.  Preserve backslash
20136# newline sequences.
20137
20138ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20139sed -n '
20140s/.\{148\}/&'"$ac_delim"'/g
20141t rset
20142:rset
20143s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20144t def
20145d
20146:def
20147s/\\$//
20148t bsnl
20149s/["\\]/\\&/g
20150s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20151D["\1"]=" \3"/p
20152s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20153d
20154:bsnl
20155s/["\\]/\\&/g
20156s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20157D["\1"]=" \3\\\\\\n"\\/p
20158t cont
20159s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20160t cont
20161d
20162:cont
20163n
20164s/.\{148\}/&'"$ac_delim"'/g
20165t clear
20166:clear
20167s/\\$//
20168t bsnlc
20169s/["\\]/\\&/g; s/^/"/; s/$/"/p
20170d
20171:bsnlc
20172s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20173b cont
20174' <confdefs.h | sed '
20175s/'"$ac_delim"'/"\\\
20176"/g' >>$CONFIG_STATUS || ac_write_fail=1
20177
20178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20179  for (key in D) D_is_set[key] = 1
20180  FS = ""
20181}
20182/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20183  line = \$ 0
20184  split(line, arg, " ")
20185  if (arg[1] == "#") {
20186    defundef = arg[2]
20187    mac1 = arg[3]
20188  } else {
20189    defundef = substr(arg[1], 2)
20190    mac1 = arg[2]
20191  }
20192  split(mac1, mac2, "(") #)
20193  macro = mac2[1]
20194  prefix = substr(line, 1, index(line, defundef) - 1)
20195  if (D_is_set[macro]) {
20196    # Preserve the white space surrounding the "#".
20197    print prefix "define", macro P[macro] D[macro]
20198    next
20199  } else {
20200    # Replace #undef with comments.  This is necessary, for example,
20201    # in the case of _POSIX_SOURCE, which is predefined and required
20202    # on some systems where configure will not decide to define it.
20203    if (defundef == "undef") {
20204      print "/*", prefix defundef, macro, "*/"
20205      next
20206    }
20207  }
20208}
20209{ print }
20210_ACAWK
20211_ACEOF
20212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20213  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20214fi # test -n "$CONFIG_HEADERS"
20215
20216
20217eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20218shift
20219for ac_tag
20220do
20221  case $ac_tag in
20222  :[FHLC]) ac_mode=$ac_tag; continue;;
20223  esac
20224  case $ac_mode$ac_tag in
20225  :[FHL]*:*);;
20226  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20227  :[FH]-) ac_tag=-:-;;
20228  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20229  esac
20230  ac_save_IFS=$IFS
20231  IFS=:
20232  set x $ac_tag
20233  IFS=$ac_save_IFS
20234  shift
20235  ac_file=$1
20236  shift
20237
20238  case $ac_mode in
20239  :L) ac_source=$1;;
20240  :[FH])
20241    ac_file_inputs=
20242    for ac_f
20243    do
20244      case $ac_f in
20245      -) ac_f="$ac_tmp/stdin";;
20246      *) # Look for the file first in the build tree, then in the source tree
20247	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20248	 # because $ac_f cannot contain `:'.
20249	 test -f "$ac_f" ||
20250	   case $ac_f in
20251	   [\\/$]*) false;;
20252	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20253	   esac ||
20254	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20255      esac
20256      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20257      as_fn_append ac_file_inputs " '$ac_f'"
20258    done
20259
20260    # Let's still pretend it is `configure' which instantiates (i.e., don't
20261    # use $as_me), people would be surprised to read:
20262    #    /* config.h.  Generated by config.status.  */
20263    configure_input='Generated from '`
20264	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20265	`' by configure.'
20266    if test x"$ac_file" != x-; then
20267      configure_input="$ac_file.  $configure_input"
20268      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20269$as_echo "$as_me: creating $ac_file" >&6;}
20270    fi
20271    # Neutralize special characters interpreted by sed in replacement strings.
20272    case $configure_input in #(
20273    *\&* | *\|* | *\\* )
20274       ac_sed_conf_input=`$as_echo "$configure_input" |
20275       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20276    *) ac_sed_conf_input=$configure_input;;
20277    esac
20278
20279    case $ac_tag in
20280    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20281      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20282    esac
20283    ;;
20284  esac
20285
20286  ac_dir=`$as_dirname -- "$ac_file" ||
20287$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20288	 X"$ac_file" : 'X\(//\)[^/]' \| \
20289	 X"$ac_file" : 'X\(//\)$' \| \
20290	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20291$as_echo X"$ac_file" |
20292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20293	    s//\1/
20294	    q
20295	  }
20296	  /^X\(\/\/\)[^/].*/{
20297	    s//\1/
20298	    q
20299	  }
20300	  /^X\(\/\/\)$/{
20301	    s//\1/
20302	    q
20303	  }
20304	  /^X\(\/\).*/{
20305	    s//\1/
20306	    q
20307	  }
20308	  s/.*/./; q'`
20309  as_dir="$ac_dir"; as_fn_mkdir_p
20310  ac_builddir=.
20311
20312case "$ac_dir" in
20313.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20314*)
20315  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20316  # A ".." for each directory in $ac_dir_suffix.
20317  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20318  case $ac_top_builddir_sub in
20319  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20320  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20321  esac ;;
20322esac
20323ac_abs_top_builddir=$ac_pwd
20324ac_abs_builddir=$ac_pwd$ac_dir_suffix
20325# for backward compatibility:
20326ac_top_builddir=$ac_top_build_prefix
20327
20328case $srcdir in
20329  .)  # We are building in place.
20330    ac_srcdir=.
20331    ac_top_srcdir=$ac_top_builddir_sub
20332    ac_abs_top_srcdir=$ac_pwd ;;
20333  [\\/]* | ?:[\\/]* )  # Absolute name.
20334    ac_srcdir=$srcdir$ac_dir_suffix;
20335    ac_top_srcdir=$srcdir
20336    ac_abs_top_srcdir=$srcdir ;;
20337  *) # Relative name.
20338    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20339    ac_top_srcdir=$ac_top_build_prefix$srcdir
20340    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20341esac
20342ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20343
20344
20345  case $ac_mode in
20346  :F)
20347  #
20348  # CONFIG_FILE
20349  #
20350
20351  case $INSTALL in
20352  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20353  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20354  esac
20355  ac_MKDIR_P=$MKDIR_P
20356  case $MKDIR_P in
20357  [\\/$]* | ?:[\\/]* ) ;;
20358  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20359  esac
20360_ACEOF
20361
20362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20363# If the template does not know about datarootdir, expand it.
20364# FIXME: This hack should be removed a few years after 2.60.
20365ac_datarootdir_hack=; ac_datarootdir_seen=
20366ac_sed_dataroot='
20367/datarootdir/ {
20368  p
20369  q
20370}
20371/@datadir@/p
20372/@docdir@/p
20373/@infodir@/p
20374/@localedir@/p
20375/@mandir@/p'
20376case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20377*datarootdir*) ac_datarootdir_seen=yes;;
20378*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20379  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20380$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20381_ACEOF
20382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20383  ac_datarootdir_hack='
20384  s&@datadir@&$datadir&g
20385  s&@docdir@&$docdir&g
20386  s&@infodir@&$infodir&g
20387  s&@localedir@&$localedir&g
20388  s&@mandir@&$mandir&g
20389  s&\\\${datarootdir}&$datarootdir&g' ;;
20390esac
20391_ACEOF
20392
20393# Neutralize VPATH when `$srcdir' = `.'.
20394# Shell code in configure.ac might set extrasub.
20395# FIXME: do we really want to maintain this feature?
20396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20397ac_sed_extra="$ac_vpsub
20398$extrasub
20399_ACEOF
20400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20401:t
20402/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20403s|@configure_input@|$ac_sed_conf_input|;t t
20404s&@top_builddir@&$ac_top_builddir_sub&;t t
20405s&@top_build_prefix@&$ac_top_build_prefix&;t t
20406s&@srcdir@&$ac_srcdir&;t t
20407s&@abs_srcdir@&$ac_abs_srcdir&;t t
20408s&@top_srcdir@&$ac_top_srcdir&;t t
20409s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20410s&@builddir@&$ac_builddir&;t t
20411s&@abs_builddir@&$ac_abs_builddir&;t t
20412s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20413s&@INSTALL@&$ac_INSTALL&;t t
20414s&@MKDIR_P@&$ac_MKDIR_P&;t t
20415$ac_datarootdir_hack
20416"
20417eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20418if $ac_cs_awk_getline; then
20419  $AWK -f "$ac_tmp/subs.awk"
20420else
20421  $AWK -f "$ac_tmp/subs.awk" | $SHELL
20422fi \
20423  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20424
20425test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20426  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20427  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20428      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20429  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20430which seems to be undefined.  Please make sure it is defined" >&5
20431$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20432which seems to be undefined.  Please make sure it is defined" >&2;}
20433
20434  rm -f "$ac_tmp/stdin"
20435  case $ac_file in
20436  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20437  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20438  esac \
20439  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20440 ;;
20441  :H)
20442  #
20443  # CONFIG_HEADER
20444  #
20445  if test x"$ac_file" != x-; then
20446    {
20447      $as_echo "/* $configure_input  */" \
20448      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20449    } >"$ac_tmp/config.h" \
20450      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20451    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20452      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20453$as_echo "$as_me: $ac_file is unchanged" >&6;}
20454    else
20455      rm -f "$ac_file"
20456      mv "$ac_tmp/config.h" "$ac_file" \
20457	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20458    fi
20459  else
20460    $as_echo "/* $configure_input  */" \
20461      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20462      || as_fn_error $? "could not create -" "$LINENO" 5
20463  fi
20464# Compute "$ac_file"'s index in $config_headers.
20465_am_arg="$ac_file"
20466_am_stamp_count=1
20467for _am_header in $config_headers :; do
20468  case $_am_header in
20469    $_am_arg | $_am_arg:* )
20470      break ;;
20471    * )
20472      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20473  esac
20474done
20475echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20476$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20477	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20478	 X"$_am_arg" : 'X\(//\)$' \| \
20479	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20480$as_echo X"$_am_arg" |
20481    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20482	    s//\1/
20483	    q
20484	  }
20485	  /^X\(\/\/\)[^/].*/{
20486	    s//\1/
20487	    q
20488	  }
20489	  /^X\(\/\/\)$/{
20490	    s//\1/
20491	    q
20492	  }
20493	  /^X\(\/\).*/{
20494	    s//\1/
20495	    q
20496	  }
20497	  s/.*/./; q'`/stamp-h$_am_stamp_count
20498 ;;
20499
20500  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20501$as_echo "$as_me: executing $ac_file commands" >&6;}
20502 ;;
20503  esac
20504
20505
20506  case $ac_file$ac_mode in
20507    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20508  # Older Autoconf quotes --file arguments for eval, but not when files
20509  # are listed without --file.  Let's play safe and only enable the eval
20510  # if we detect the quoting.
20511  # TODO: see whether this extra hack can be removed once we start
20512  # requiring Autoconf 2.70 or later.
20513  case $CONFIG_FILES in #(
20514  *\'*) :
20515    eval set x "$CONFIG_FILES" ;; #(
20516  *) :
20517    set x $CONFIG_FILES ;; #(
20518  *) :
20519     ;;
20520esac
20521  shift
20522  # Used to flag and report bootstrapping failures.
20523  am_rc=0
20524  for am_mf
20525  do
20526    # Strip MF so we end up with the name of the file.
20527    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20528    # Check whether this is an Automake generated Makefile which includes
20529    # dependency-tracking related rules and includes.
20530    # Grep'ing the whole file directly is not great: AIX grep has a line
20531    # limit of 2048, but all sed's we know have understand at least 4000.
20532    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20533      || continue
20534    am_dirpart=`$as_dirname -- "$am_mf" ||
20535$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20536	 X"$am_mf" : 'X\(//\)[^/]' \| \
20537	 X"$am_mf" : 'X\(//\)$' \| \
20538	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20539$as_echo X"$am_mf" |
20540    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20541	    s//\1/
20542	    q
20543	  }
20544	  /^X\(\/\/\)[^/].*/{
20545	    s//\1/
20546	    q
20547	  }
20548	  /^X\(\/\/\)$/{
20549	    s//\1/
20550	    q
20551	  }
20552	  /^X\(\/\).*/{
20553	    s//\1/
20554	    q
20555	  }
20556	  s/.*/./; q'`
20557    am_filepart=`$as_basename -- "$am_mf" ||
20558$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20559	 X"$am_mf" : 'X\(//\)$' \| \
20560	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20561$as_echo X/"$am_mf" |
20562    sed '/^.*\/\([^/][^/]*\)\/*$/{
20563	    s//\1/
20564	    q
20565	  }
20566	  /^X\/\(\/\/\)$/{
20567	    s//\1/
20568	    q
20569	  }
20570	  /^X\/\(\/\).*/{
20571	    s//\1/
20572	    q
20573	  }
20574	  s/.*/./; q'`
20575    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20576      && sed -e '/# am--include-marker/d' "$am_filepart" \
20577        | $MAKE -f - am--depfiles" >&5
20578   (cd "$am_dirpart" \
20579      && sed -e '/# am--include-marker/d' "$am_filepart" \
20580        | $MAKE -f - am--depfiles) >&5 2>&5
20581   ac_status=$?
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); } || am_rc=$?
20584  done
20585  if test $am_rc -ne 0; then
20586    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20588as_fn_error $? "Something went wrong bootstrapping makefile fragments
20589    for automatic dependency tracking.  If GNU make was not used, consider
20590    re-running the configure script with MAKE=\"gmake\" (or whatever is
20591    necessary).  You can also try re-running configure with the
20592    '--disable-dependency-tracking' option to at least be able to build
20593    the package (albeit without support for automatic dependency tracking).
20594See \`config.log' for more details" "$LINENO" 5; }
20595  fi
20596  { am_dirpart=; unset am_dirpart;}
20597  { am_filepart=; unset am_filepart;}
20598  { am_mf=; unset am_mf;}
20599  { am_rc=; unset am_rc;}
20600  rm -f conftest-deps.mk
20601}
20602 ;;
20603    "libtool":C)
20604
20605    # See if we are running on zsh, and set the options that allow our
20606    # commands through without removal of \ escapes.
20607    if test -n "${ZSH_VERSION+set}"; then
20608      setopt NO_GLOB_SUBST
20609    fi
20610
20611    cfgfile=${ofile}T
20612    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20613    $RM "$cfgfile"
20614
20615    cat <<_LT_EOF >> "$cfgfile"
20616#! $SHELL
20617# Generated automatically by $as_me ($PACKAGE) $VERSION
20618# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20619# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20620
20621# Provide generalized library-building support services.
20622# Written by Gordon Matzigkeit, 1996
20623
20624# Copyright (C) 2014 Free Software Foundation, Inc.
20625# This is free software; see the source for copying conditions.  There is NO
20626# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20627
20628# GNU Libtool is free software; you can redistribute it and/or modify
20629# it under the terms of the GNU General Public License as published by
20630# the Free Software Foundation; either version 2 of of the License, or
20631# (at your option) any later version.
20632#
20633# As a special exception to the GNU General Public License, if you
20634# distribute this file as part of a program or library that is built
20635# using GNU Libtool, you may include this file under the  same
20636# distribution terms that you use for the rest of that program.
20637#
20638# GNU Libtool is distributed in the hope that it will be useful, but
20639# WITHOUT ANY WARRANTY; without even the implied warranty of
20640# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20641# GNU General Public License for more details.
20642#
20643# You should have received a copy of the GNU General Public License
20644# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20645
20646
20647# The names of the tagged configurations supported by this script.
20648available_tags='CXX '
20649
20650# Configured defaults for sys_lib_dlsearch_path munging.
20651: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20652
20653# ### BEGIN LIBTOOL CONFIG
20654
20655# Which release of libtool.m4 was used?
20656macro_version=$macro_version
20657macro_revision=$macro_revision
20658
20659# Assembler program.
20660AS=$lt_AS
20661
20662# DLL creation program.
20663DLLTOOL=$lt_DLLTOOL
20664
20665# Object dumper program.
20666OBJDUMP=$lt_OBJDUMP
20667
20668# Whether or not to build shared libraries.
20669build_libtool_libs=$enable_shared
20670
20671# Whether or not to build static libraries.
20672build_old_libs=$enable_static
20673
20674# What type of objects to build.
20675pic_mode=$pic_mode
20676
20677# Whether or not to optimize for fast installation.
20678fast_install=$enable_fast_install
20679
20680# Shared archive member basename,for filename based shared library versioning on AIX.
20681shared_archive_member_spec=$shared_archive_member_spec
20682
20683# Shell to use when invoking shell scripts.
20684SHELL=$lt_SHELL
20685
20686# An echo program that protects backslashes.
20687ECHO=$lt_ECHO
20688
20689# The PATH separator for the build system.
20690PATH_SEPARATOR=$lt_PATH_SEPARATOR
20691
20692# The host system.
20693host_alias=$host_alias
20694host=$host
20695host_os=$host_os
20696
20697# The build system.
20698build_alias=$build_alias
20699build=$build
20700build_os=$build_os
20701
20702# A sed program that does not truncate output.
20703SED=$lt_SED
20704
20705# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20706Xsed="\$SED -e 1s/^X//"
20707
20708# A grep program that handles long lines.
20709GREP=$lt_GREP
20710
20711# An ERE matcher.
20712EGREP=$lt_EGREP
20713
20714# A literal string matcher.
20715FGREP=$lt_FGREP
20716
20717# A BSD- or MS-compatible name lister.
20718NM=$lt_NM
20719
20720# Whether we need soft or hard links.
20721LN_S=$lt_LN_S
20722
20723# What is the maximum length of a command?
20724max_cmd_len=$max_cmd_len
20725
20726# Object file suffix (normally "o").
20727objext=$ac_objext
20728
20729# Executable file suffix (normally "").
20730exeext=$exeext
20731
20732# whether the shell understands "unset".
20733lt_unset=$lt_unset
20734
20735# turn spaces into newlines.
20736SP2NL=$lt_lt_SP2NL
20737
20738# turn newlines into spaces.
20739NL2SP=$lt_lt_NL2SP
20740
20741# convert \$build file names to \$host format.
20742to_host_file_cmd=$lt_cv_to_host_file_cmd
20743
20744# convert \$build files to toolchain format.
20745to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20746
20747# Method to check whether dependent libraries are shared objects.
20748deplibs_check_method=$lt_deplibs_check_method
20749
20750# Command to use when deplibs_check_method = "file_magic".
20751file_magic_cmd=$lt_file_magic_cmd
20752
20753# How to find potential files when deplibs_check_method = "file_magic".
20754file_magic_glob=$lt_file_magic_glob
20755
20756# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20757want_nocaseglob=$lt_want_nocaseglob
20758
20759# Command to associate shared and link libraries.
20760sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20761
20762# The archiver.
20763AR=$lt_AR
20764
20765# Flags to create an archive.
20766AR_FLAGS=$lt_AR_FLAGS
20767
20768# How to feed a file listing to the archiver.
20769archiver_list_spec=$lt_archiver_list_spec
20770
20771# A symbol stripping program.
20772STRIP=$lt_STRIP
20773
20774# Commands used to install an old-style archive.
20775RANLIB=$lt_RANLIB
20776old_postinstall_cmds=$lt_old_postinstall_cmds
20777old_postuninstall_cmds=$lt_old_postuninstall_cmds
20778
20779# Whether to use a lock for old archive extraction.
20780lock_old_archive_extraction=$lock_old_archive_extraction
20781
20782# A C compiler.
20783LTCC=$lt_CC
20784
20785# LTCC compiler flags.
20786LTCFLAGS=$lt_CFLAGS
20787
20788# Take the output of nm and produce a listing of raw symbols and C names.
20789global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20790
20791# Transform the output of nm in a proper C declaration.
20792global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20793
20794# Transform the output of nm into a list of symbols to manually relocate.
20795global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20796
20797# Transform the output of nm in a C name address pair.
20798global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20799
20800# Transform the output of nm in a C name address pair when lib prefix is needed.
20801global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20802
20803# The name lister interface.
20804nm_interface=$lt_lt_cv_nm_interface
20805
20806# Specify filename containing input files for \$NM.
20807nm_file_list_spec=$lt_nm_file_list_spec
20808
20809# The root where to search for dependent libraries,and where our libraries should be installed.
20810lt_sysroot=$lt_sysroot
20811
20812# Command to truncate a binary pipe.
20813lt_truncate_bin=$lt_lt_cv_truncate_bin
20814
20815# The name of the directory that contains temporary libtool files.
20816objdir=$objdir
20817
20818# Used to examine libraries when file_magic_cmd begins with "file".
20819MAGIC_CMD=$MAGIC_CMD
20820
20821# Must we lock files when doing compilation?
20822need_locks=$lt_need_locks
20823
20824# Manifest tool.
20825MANIFEST_TOOL=$lt_MANIFEST_TOOL
20826
20827# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20828DSYMUTIL=$lt_DSYMUTIL
20829
20830# Tool to change global to local symbols on Mac OS X.
20831NMEDIT=$lt_NMEDIT
20832
20833# Tool to manipulate fat objects and archives on Mac OS X.
20834LIPO=$lt_LIPO
20835
20836# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20837OTOOL=$lt_OTOOL
20838
20839# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20840OTOOL64=$lt_OTOOL64
20841
20842# Old archive suffix (normally "a").
20843libext=$libext
20844
20845# Shared library suffix (normally ".so").
20846shrext_cmds=$lt_shrext_cmds
20847
20848# The commands to extract the exported symbol list from a shared archive.
20849extract_expsyms_cmds=$lt_extract_expsyms_cmds
20850
20851# Variables whose values should be saved in libtool wrapper scripts and
20852# restored at link time.
20853variables_saved_for_relink=$lt_variables_saved_for_relink
20854
20855# Do we need the "lib" prefix for modules?
20856need_lib_prefix=$need_lib_prefix
20857
20858# Do we need a version for libraries?
20859need_version=$need_version
20860
20861# Library versioning type.
20862version_type=$version_type
20863
20864# Shared library runtime path variable.
20865runpath_var=$runpath_var
20866
20867# Shared library path variable.
20868shlibpath_var=$shlibpath_var
20869
20870# Is shlibpath searched before the hard-coded library search path?
20871shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20872
20873# Format of library name prefix.
20874libname_spec=$lt_libname_spec
20875
20876# List of archive names.  First name is the real one, the rest are links.
20877# The last name is the one that the linker finds with -lNAME
20878library_names_spec=$lt_library_names_spec
20879
20880# The coded name of the library, if different from the real name.
20881soname_spec=$lt_soname_spec
20882
20883# Permission mode override for installation of shared libraries.
20884install_override_mode=$lt_install_override_mode
20885
20886# Command to use after installation of a shared archive.
20887postinstall_cmds=$lt_postinstall_cmds
20888
20889# Command to use after uninstallation of a shared archive.
20890postuninstall_cmds=$lt_postuninstall_cmds
20891
20892# Commands used to finish a libtool library installation in a directory.
20893finish_cmds=$lt_finish_cmds
20894
20895# As "finish_cmds", except a single script fragment to be evaled but
20896# not shown.
20897finish_eval=$lt_finish_eval
20898
20899# Whether we should hardcode library paths into libraries.
20900hardcode_into_libs=$hardcode_into_libs
20901
20902# Compile-time system search path for libraries.
20903sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20904
20905# Detected run-time system search path for libraries.
20906sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20907
20908# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20909configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20910
20911# Whether dlopen is supported.
20912dlopen_support=$enable_dlopen
20913
20914# Whether dlopen of programs is supported.
20915dlopen_self=$enable_dlopen_self
20916
20917# Whether dlopen of statically linked programs is supported.
20918dlopen_self_static=$enable_dlopen_self_static
20919
20920# Commands to strip libraries.
20921old_striplib=$lt_old_striplib
20922striplib=$lt_striplib
20923
20924
20925# The linker used to build libraries.
20926LD=$lt_LD
20927
20928# How to create reloadable object files.
20929reload_flag=$lt_reload_flag
20930reload_cmds=$lt_reload_cmds
20931
20932# Commands used to build an old-style archive.
20933old_archive_cmds=$lt_old_archive_cmds
20934
20935# A language specific compiler.
20936CC=$lt_compiler
20937
20938# Is the compiler the GNU compiler?
20939with_gcc=$GCC
20940
20941# Compiler flag to turn off builtin functions.
20942no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20943
20944# Additional compiler flags for building library objects.
20945pic_flag=$lt_lt_prog_compiler_pic
20946
20947# How to pass a linker flag through the compiler.
20948wl=$lt_lt_prog_compiler_wl
20949
20950# Compiler flag to prevent dynamic linking.
20951link_static_flag=$lt_lt_prog_compiler_static
20952
20953# Does compiler simultaneously support -c and -o options?
20954compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20955
20956# Whether or not to add -lc for building shared libraries.
20957build_libtool_need_lc=$archive_cmds_need_lc
20958
20959# Whether or not to disallow shared libs when runtime libs are static.
20960allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20961
20962# Compiler flag to allow reflexive dlopens.
20963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20964
20965# Compiler flag to generate shared objects directly from archives.
20966whole_archive_flag_spec=$lt_whole_archive_flag_spec
20967
20968# Whether the compiler copes with passing no objects directly.
20969compiler_needs_object=$lt_compiler_needs_object
20970
20971# Create an old-style archive from a shared archive.
20972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20973
20974# Create a temporary old-style archive to link instead of a shared archive.
20975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20976
20977# Commands used to build a shared archive.
20978archive_cmds=$lt_archive_cmds
20979archive_expsym_cmds=$lt_archive_expsym_cmds
20980
20981# Commands used to build a loadable module if different from building
20982# a shared archive.
20983module_cmds=$lt_module_cmds
20984module_expsym_cmds=$lt_module_expsym_cmds
20985
20986# Whether we are building with GNU ld or not.
20987with_gnu_ld=$lt_with_gnu_ld
20988
20989# Flag that allows shared libraries with undefined symbols to be built.
20990allow_undefined_flag=$lt_allow_undefined_flag
20991
20992# Flag that enforces no undefined symbols.
20993no_undefined_flag=$lt_no_undefined_flag
20994
20995# Flag to hardcode \$libdir into a binary during linking.
20996# This must work even if \$libdir does not exist
20997hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20998
20999# Whether we need a single "-rpath" flag with a separated argument.
21000hardcode_libdir_separator=$lt_hardcode_libdir_separator
21001
21002# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21003# DIR into the resulting binary.
21004hardcode_direct=$hardcode_direct
21005
21006# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21007# DIR into the resulting binary and the resulting library dependency is
21008# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21009# library is relocated.
21010hardcode_direct_absolute=$hardcode_direct_absolute
21011
21012# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21013# into the resulting binary.
21014hardcode_minus_L=$hardcode_minus_L
21015
21016# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21017# into the resulting binary.
21018hardcode_shlibpath_var=$hardcode_shlibpath_var
21019
21020# Set to "yes" if building a shared library automatically hardcodes DIR
21021# into the library and all subsequent libraries and executables linked
21022# against it.
21023hardcode_automatic=$hardcode_automatic
21024
21025# Set to yes if linker adds runtime paths of dependent libraries
21026# to runtime path list.
21027inherit_rpath=$inherit_rpath
21028
21029# Whether libtool must link a program against all its dependency libraries.
21030link_all_deplibs=$link_all_deplibs
21031
21032# Set to "yes" if exported symbols are required.
21033always_export_symbols=$always_export_symbols
21034
21035# The commands to list exported symbols.
21036export_symbols_cmds=$lt_export_symbols_cmds
21037
21038# Symbols that should not be listed in the preloaded symbols.
21039exclude_expsyms=$lt_exclude_expsyms
21040
21041# Symbols that must always be exported.
21042include_expsyms=$lt_include_expsyms
21043
21044# Commands necessary for linking programs (against libraries) with templates.
21045prelink_cmds=$lt_prelink_cmds
21046
21047# Commands necessary for finishing linking programs.
21048postlink_cmds=$lt_postlink_cmds
21049
21050# Specify filename containing input files.
21051file_list_spec=$lt_file_list_spec
21052
21053# How to hardcode a shared library path into an executable.
21054hardcode_action=$hardcode_action
21055
21056# The directories searched by this compiler when creating a shared library.
21057compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21058
21059# Dependencies to place before and after the objects being linked to
21060# create a shared library.
21061predep_objects=$lt_predep_objects
21062postdep_objects=$lt_postdep_objects
21063predeps=$lt_predeps
21064postdeps=$lt_postdeps
21065
21066# The library search path used internally by the compiler when linking
21067# a shared library.
21068compiler_lib_search_path=$lt_compiler_lib_search_path
21069
21070# ### END LIBTOOL CONFIG
21071
21072_LT_EOF
21073
21074    cat <<'_LT_EOF' >> "$cfgfile"
21075
21076# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21077
21078# func_munge_path_list VARIABLE PATH
21079# -----------------------------------
21080# VARIABLE is name of variable containing _space_ separated list of
21081# directories to be munged by the contents of PATH, which is string
21082# having a format:
21083# "DIR[:DIR]:"
21084#       string "DIR[ DIR]" will be prepended to VARIABLE
21085# ":DIR[:DIR]"
21086#       string "DIR[ DIR]" will be appended to VARIABLE
21087# "DIRP[:DIRP]::[DIRA:]DIRA"
21088#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21089#       "DIRA[ DIRA]" will be appended to VARIABLE
21090# "DIR[:DIR]"
21091#       VARIABLE will be replaced by "DIR[ DIR]"
21092func_munge_path_list ()
21093{
21094    case x$2 in
21095    x)
21096        ;;
21097    *:)
21098        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21099        ;;
21100    x:*)
21101        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21102        ;;
21103    *::*)
21104        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21105        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21106        ;;
21107    *)
21108        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21109        ;;
21110    esac
21111}
21112
21113
21114# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21115func_cc_basename ()
21116{
21117    for cc_temp in $*""; do
21118      case $cc_temp in
21119        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21120        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21121        \-*) ;;
21122        *) break;;
21123      esac
21124    done
21125    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21126}
21127
21128
21129# ### END FUNCTIONS SHARED WITH CONFIGURE
21130
21131_LT_EOF
21132
21133  case $host_os in
21134  aix3*)
21135    cat <<\_LT_EOF >> "$cfgfile"
21136# AIX sometimes has problems with the GCC collect2 program.  For some
21137# reason, if we set the COLLECT_NAMES environment variable, the problems
21138# vanish in a puff of smoke.
21139if test set != "${COLLECT_NAMES+set}"; then
21140  COLLECT_NAMES=
21141  export COLLECT_NAMES
21142fi
21143_LT_EOF
21144    ;;
21145  esac
21146
21147
21148ltmain=$ac_aux_dir/ltmain.sh
21149
21150
21151  # We use sed instead of cat because bash on DJGPP gets confused if
21152  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21153  # text mode, it properly converts lines to CR/LF.  This bash problem
21154  # is reportedly fixed, but why not run on old versions too?
21155  sed '$q' "$ltmain" >> "$cfgfile" \
21156     || (rm -f "$cfgfile"; exit 1)
21157
21158   mv -f "$cfgfile" "$ofile" ||
21159    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21160  chmod +x "$ofile"
21161
21162
21163    cat <<_LT_EOF >> "$ofile"
21164
21165# ### BEGIN LIBTOOL TAG CONFIG: CXX
21166
21167# The linker used to build libraries.
21168LD=$lt_LD_CXX
21169
21170# How to create reloadable object files.
21171reload_flag=$lt_reload_flag_CXX
21172reload_cmds=$lt_reload_cmds_CXX
21173
21174# Commands used to build an old-style archive.
21175old_archive_cmds=$lt_old_archive_cmds_CXX
21176
21177# A language specific compiler.
21178CC=$lt_compiler_CXX
21179
21180# Is the compiler the GNU compiler?
21181with_gcc=$GCC_CXX
21182
21183# Compiler flag to turn off builtin functions.
21184no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21185
21186# Additional compiler flags for building library objects.
21187pic_flag=$lt_lt_prog_compiler_pic_CXX
21188
21189# How to pass a linker flag through the compiler.
21190wl=$lt_lt_prog_compiler_wl_CXX
21191
21192# Compiler flag to prevent dynamic linking.
21193link_static_flag=$lt_lt_prog_compiler_static_CXX
21194
21195# Does compiler simultaneously support -c and -o options?
21196compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21197
21198# Whether or not to add -lc for building shared libraries.
21199build_libtool_need_lc=$archive_cmds_need_lc_CXX
21200
21201# Whether or not to disallow shared libs when runtime libs are static.
21202allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21203
21204# Compiler flag to allow reflexive dlopens.
21205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21206
21207# Compiler flag to generate shared objects directly from archives.
21208whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21209
21210# Whether the compiler copes with passing no objects directly.
21211compiler_needs_object=$lt_compiler_needs_object_CXX
21212
21213# Create an old-style archive from a shared archive.
21214old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21215
21216# Create a temporary old-style archive to link instead of a shared archive.
21217old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21218
21219# Commands used to build a shared archive.
21220archive_cmds=$lt_archive_cmds_CXX
21221archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21222
21223# Commands used to build a loadable module if different from building
21224# a shared archive.
21225module_cmds=$lt_module_cmds_CXX
21226module_expsym_cmds=$lt_module_expsym_cmds_CXX
21227
21228# Whether we are building with GNU ld or not.
21229with_gnu_ld=$lt_with_gnu_ld_CXX
21230
21231# Flag that allows shared libraries with undefined symbols to be built.
21232allow_undefined_flag=$lt_allow_undefined_flag_CXX
21233
21234# Flag that enforces no undefined symbols.
21235no_undefined_flag=$lt_no_undefined_flag_CXX
21236
21237# Flag to hardcode \$libdir into a binary during linking.
21238# This must work even if \$libdir does not exist
21239hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21240
21241# Whether we need a single "-rpath" flag with a separated argument.
21242hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21243
21244# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21245# DIR into the resulting binary.
21246hardcode_direct=$hardcode_direct_CXX
21247
21248# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21249# DIR into the resulting binary and the resulting library dependency is
21250# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21251# library is relocated.
21252hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21253
21254# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21255# into the resulting binary.
21256hardcode_minus_L=$hardcode_minus_L_CXX
21257
21258# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21259# into the resulting binary.
21260hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21261
21262# Set to "yes" if building a shared library automatically hardcodes DIR
21263# into the library and all subsequent libraries and executables linked
21264# against it.
21265hardcode_automatic=$hardcode_automatic_CXX
21266
21267# Set to yes if linker adds runtime paths of dependent libraries
21268# to runtime path list.
21269inherit_rpath=$inherit_rpath_CXX
21270
21271# Whether libtool must link a program against all its dependency libraries.
21272link_all_deplibs=$link_all_deplibs_CXX
21273
21274# Set to "yes" if exported symbols are required.
21275always_export_symbols=$always_export_symbols_CXX
21276
21277# The commands to list exported symbols.
21278export_symbols_cmds=$lt_export_symbols_cmds_CXX
21279
21280# Symbols that should not be listed in the preloaded symbols.
21281exclude_expsyms=$lt_exclude_expsyms_CXX
21282
21283# Symbols that must always be exported.
21284include_expsyms=$lt_include_expsyms_CXX
21285
21286# Commands necessary for linking programs (against libraries) with templates.
21287prelink_cmds=$lt_prelink_cmds_CXX
21288
21289# Commands necessary for finishing linking programs.
21290postlink_cmds=$lt_postlink_cmds_CXX
21291
21292# Specify filename containing input files.
21293file_list_spec=$lt_file_list_spec_CXX
21294
21295# How to hardcode a shared library path into an executable.
21296hardcode_action=$hardcode_action_CXX
21297
21298# The directories searched by this compiler when creating a shared library.
21299compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21300
21301# Dependencies to place before and after the objects being linked to
21302# create a shared library.
21303predep_objects=$lt_predep_objects_CXX
21304postdep_objects=$lt_postdep_objects_CXX
21305predeps=$lt_predeps_CXX
21306postdeps=$lt_postdeps_CXX
21307
21308# The library search path used internally by the compiler when linking
21309# a shared library.
21310compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21311
21312# ### END LIBTOOL TAG CONFIG: CXX
21313_LT_EOF
21314
21315 ;;
21316    "run.sh":F) chmod +x run.sh ;;
21317
21318  esac
21319done # for ac_tag
21320
21321
21322as_fn_exit 0
21323_ACEOF
21324ac_clean_files=$ac_clean_files_save
21325
21326test $ac_write_fail = 0 ||
21327  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21328
21329
21330# configure is writing to config.log, and then calls config.status.
21331# config.status does its own redirection, appending to config.log.
21332# Unfortunately, on DOS this fails, as config.log is still kept open
21333# by configure, so config.status won't be able to write to it; its
21334# output is simply discarded.  So we exec the FD to /dev/null,
21335# effectively closing config.log, so it can be properly (re)opened and
21336# appended to by config.status.  When coming back to configure, we
21337# need to make the FD available again.
21338if test "$no_create" != yes; then
21339  ac_cs_success=:
21340  ac_config_status_args=
21341  test "$silent" = yes &&
21342    ac_config_status_args="$ac_config_status_args --quiet"
21343  exec 5>/dev/null
21344  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21345  exec 5>>config.log
21346  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21347  # would make configure fail if this is the last instruction.
21348  $ac_cs_success || as_fn_exit 1
21349fi
21350if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21351  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21352$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21353fi
21354
21355
21356
21357{ $as_echo "$as_me:${as_lineno-$LINENO}:
21358
21359Automake flags (can be overridden by user flags):
21360  AM_CPPFLAGS: ${AM_CPPFLAGS}
21361    AM_CFLAGS: ${AM_CFLAGS}
21362  AM_CXXFLAGS: ${AM_CXXFLAGS}
21363   AM_LDFLAGS: ${AM_LDFLAGS}
21364
21365User flags (override Automake flags on conflict):
21366     CPPFLAGS: ${CPPFLAGS}
21367       CFLAGS: ${CFLAGS}
21368     CXXFLAGS: ${CXXFLAGS}
21369      LDFLAGS: ${LDFLAGS}" >&5
21370$as_echo "$as_me:
21371
21372Automake flags (can be overridden by user flags):
21373  AM_CPPFLAGS: ${AM_CPPFLAGS}
21374    AM_CFLAGS: ${AM_CFLAGS}
21375  AM_CXXFLAGS: ${AM_CXXFLAGS}
21376   AM_LDFLAGS: ${AM_LDFLAGS}
21377
21378User flags (override Automake flags on conflict):
21379     CPPFLAGS: ${CPPFLAGS}
21380       CFLAGS: ${CFLAGS}
21381     CXXFLAGS: ${CXXFLAGS}
21382      LDFLAGS: ${LDFLAGS}" >&6;}
21383