1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for expat 2.3.0.
4#
5# Report bugs to <expat-bugs@libexpat.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: expat-bugs@libexpat.org about your system, including
280$0: any error possibly output before this message. Then
281$0: install a modern shell, or manually run the script
282$0: under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='expat'
623PACKAGE_TARNAME='expat'
624PACKAGE_VERSION='2.3.0'
625PACKAGE_STRING='expat 2.3.0'
626PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
627PACKAGE_URL=''
628
629ac_unique_file="Makefile.in"
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_func_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667_EXPAT_OUTPUT_NAME
668AM_LDFLAGS
669AM_CXXFLAGS
670AM_CFLAGS
671AM_CPPFLAGS
672SO_PATCH
673SO_MINOR
674SO_MAJOR
675LIBDIR_BASENAME
676EXPAT_CHAR_TYPE
677EXPAT_CONTEXT_BYTES
678EXPAT_NS
679EXPAT_MIN_SIZE
680EXPAT_LARGE_SIZE
681EXPAT_DTD
682EXPAT_ATTR_INFO
683WITH_DOCBOOK_FALSE
684WITH_DOCBOOK_TRUE
685DOCBOOK_TO_MAN
686FILEMAP
687_INTERNAL_LARGE_SIZE_FALSE
688_INTERNAL_LARGE_SIZE_TRUE
689_INTERNAL_MIN_SIZE_FALSE
690_INTERNAL_MIN_SIZE_TRUE
691_INTERNAL_UNICODE_WCHAR_T_FALSE
692_INTERNAL_UNICODE_WCHAR_T_TRUE
693UNICODE_FALSE
694UNICODE_TRUE
695MINGW_FALSE
696MINGW_TRUE
697WITH_TESTS_FALSE
698WITH_TESTS_TRUE
699WITH_EXAMPLES_FALSE
700WITH_EXAMPLES_TRUE
701WITH_XMLWF_FALSE
702WITH_XMLWF_TRUE
703CXXCPP
704am__fastdepCXX_FALSE
705am__fastdepCXX_TRUE
706CXXDEPMODE
707ac_ct_CXX
708CXXFLAGS
709CXX
710LIBAGE
711LIBREVISION
712LIBCURRENT
713LT_SYS_LIBRARY_PATH
714OTOOL64
715OTOOL
716LIPO
717NMEDIT
718DSYMUTIL
719MANIFEST_TOOL
720RANLIB
721NM
722ac_ct_DUMPBIN
723DUMPBIN
724LD
725FGREP
726EGREP
727GREP
728SED
729LIBTOOL
730OBJDUMP
731DLLTOOL
732AS
733LN_S
734am__fastdepCC_FALSE
735am__fastdepCC_TRUE
736CCDEPMODE
737am__nodep
738AMDEPBACKSLASH
739AMDEP_FALSE
740AMDEP_TRUE
741am__include
742DEPDIR
743OBJEXT
744EXEEXT
745ac_ct_CC
746CPPFLAGS
747LDFLAGS
748CFLAGS
749CC
750ac_ct_AR
751AR
752AM_BACKSLASH
753AM_DEFAULT_VERBOSITY
754AM_DEFAULT_V
755AM_V
756am__untar
757am__tar
758AMTAR
759am__leading_dot
760SET_MAKE
761AWK
762mkdir_p
763MKDIR_P
764INSTALL_STRIP_PROGRAM
765STRIP
766install_sh
767MAKEINFO
768AUTOHEADER
769AUTOMAKE
770AUTOCONF
771ACLOCAL
772VERSION
773PACKAGE
774CYGPATH_W
775am__isrc
776INSTALL_DATA
777INSTALL_SCRIPT
778INSTALL_PROGRAM
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787target_alias
788host_alias
789build_alias
790LIBS
791ECHO_T
792ECHO_N
793ECHO_C
794DEFS
795mandir
796localedir
797libdir
798psdir
799pdfdir
800dvidir
801htmldir
802infodir
803docdir
804oldincludedir
805includedir
806runstatedir
807localstatedir
808sharedstatedir
809sysconfdir
810datadir
811datarootdir
812libexecdir
813sbindir
814bindir
815program_transform_name
816prefix
817exec_prefix
818PACKAGE_URL
819PACKAGE_BUGREPORT
820PACKAGE_STRING
821PACKAGE_VERSION
822PACKAGE_TARNAME
823PACKAGE_NAME
824PATH_SEPARATOR
825SHELL
826am__quote'
827ac_subst_files='PACKAGE_INIT'
828ac_user_opts='
829enable_option_checking
830enable_silent_rules
831enable_dependency_tracking
832enable_shared
833enable_static
834with_pic
835enable_fast_install
836with_aix_soname
837with_gnu_ld
838with_sysroot
839enable_libtool_lock
840with_xmlwf
841with_examples
842with_tests
843with_libbsd
844with_getrandom
845with_sys_getrandom
846enable_xml_attr_info
847enable_xml_context
848with_docbook
849'
850      ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858LT_SYS_LIBRARY_PATH
859CXX
860CXXFLAGS
861CCC
862CXXCPP
863DOCBOOK_TO_MAN'
864
865
866# Initialize some variables set by options.
867ac_init_help=
868ac_init_version=false
869ac_unrecognized_opts=
870ac_unrecognized_sep=
871# The variables have the same names as the options, with
872# dashes changed to underlines.
873cache_file=/dev/null
874exec_prefix=NONE
875no_create=
876no_recursion=
877prefix=NONE
878program_prefix=NONE
879program_suffix=NONE
880program_transform_name=s,x,x,
881silent=
882site=
883srcdir=
884verbose=
885x_includes=NONE
886x_libraries=NONE
887
888# Installation directory options.
889# These are left unexpanded so users can "make install exec_prefix=/foo"
890# and all the variables that are supposed to be based on exec_prefix
891# by default will actually change.
892# Use braces instead of parens because sh, perl, etc. also accept them.
893# (The list follows the same order as the GNU Coding Standards.)
894bindir='${exec_prefix}/bin'
895sbindir='${exec_prefix}/sbin'
896libexecdir='${exec_prefix}/libexec'
897datarootdir='${prefix}/share'
898datadir='${datarootdir}'
899sysconfdir='${prefix}/etc'
900sharedstatedir='${prefix}/com'
901localstatedir='${prefix}/var'
902runstatedir='${localstatedir}/run'
903includedir='${prefix}/include'
904oldincludedir='/usr/include'
905docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906infodir='${datarootdir}/info'
907htmldir='${docdir}'
908dvidir='${docdir}'
909pdfdir='${docdir}'
910psdir='${docdir}'
911libdir='${exec_prefix}/lib'
912localedir='${datarootdir}/locale'
913mandir='${datarootdir}/man'
914
915ac_prev=
916ac_dashdash=
917for ac_option
918do
919  # If the previous option needs an argument, assign it.
920  if test -n "$ac_prev"; then
921    eval $ac_prev=\$ac_option
922    ac_prev=
923    continue
924  fi
925
926  case $ac_option in
927  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928  *=)   ac_optarg= ;;
929  *)    ac_optarg=yes ;;
930  esac
931
932  case $ac_dashdash$ac_option in
933  --)
934    ac_dashdash=yes ;;
935
936  -bindir | --bindir | --bindi | --bind | --bin | --bi)
937    ac_prev=bindir ;;
938  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939    bindir=$ac_optarg ;;
940
941  -build | --build | --buil | --bui | --bu)
942    ac_prev=build_alias ;;
943  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944    build_alias=$ac_optarg ;;
945
946  -cache-file | --cache-file | --cache-fil | --cache-fi \
947  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948    ac_prev=cache_file ;;
949  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951    cache_file=$ac_optarg ;;
952
953  --config-cache | -C)
954    cache_file=config.cache ;;
955
956  -datadir | --datadir | --datadi | --datad)
957    ac_prev=datadir ;;
958  -datadir=* | --datadir=* | --datadi=* | --datad=*)
959    datadir=$ac_optarg ;;
960
961  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962  | --dataroo | --dataro | --datar)
963    ac_prev=datarootdir ;;
964  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966    datarootdir=$ac_optarg ;;
967
968  -disable-* | --disable-*)
969    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970    # Reject names that are not valid shell variable names.
971    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972      as_fn_error $? "invalid feature name: \`$ac_useropt'"
973    ac_useropt_orig=$ac_useropt
974    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975    case $ac_user_opts in
976      *"
977"enable_$ac_useropt"
978"*) ;;
979      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980	 ac_unrecognized_sep=', ';;
981    esac
982    eval enable_$ac_useropt=no ;;
983
984  -docdir | --docdir | --docdi | --doc | --do)
985    ac_prev=docdir ;;
986  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987    docdir=$ac_optarg ;;
988
989  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990    ac_prev=dvidir ;;
991  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992    dvidir=$ac_optarg ;;
993
994  -enable-* | --enable-*)
995    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996    # Reject names that are not valid shell variable names.
997    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998      as_fn_error $? "invalid feature name: \`$ac_useropt'"
999    ac_useropt_orig=$ac_useropt
1000    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1001    case $ac_user_opts in
1002      *"
1003"enable_$ac_useropt"
1004"*) ;;
1005      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006	 ac_unrecognized_sep=', ';;
1007    esac
1008    eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012  | --exec | --exe | --ex)
1013    ac_prev=exec_prefix ;;
1014  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016  | --exec=* | --exe=* | --ex=*)
1017    exec_prefix=$ac_optarg ;;
1018
1019  -gas | --gas | --ga | --g)
1020    # Obsolete; use --with-gas.
1021    with_gas=yes ;;
1022
1023  -help | --help | --hel | --he | -h)
1024    ac_init_help=long ;;
1025  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026    ac_init_help=recursive ;;
1027  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028    ac_init_help=short ;;
1029
1030  -host | --host | --hos | --ho)
1031    ac_prev=host_alias ;;
1032  -host=* | --host=* | --hos=* | --ho=*)
1033    host_alias=$ac_optarg ;;
1034
1035  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036    ac_prev=htmldir ;;
1037  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038  | --ht=*)
1039    htmldir=$ac_optarg ;;
1040
1041  -includedir | --includedir | --includedi | --included | --include \
1042  | --includ | --inclu | --incl | --inc)
1043    ac_prev=includedir ;;
1044  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045  | --includ=* | --inclu=* | --incl=* | --inc=*)
1046    includedir=$ac_optarg ;;
1047
1048  -infodir | --infodir | --infodi | --infod | --info | --inf)
1049    ac_prev=infodir ;;
1050  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051    infodir=$ac_optarg ;;
1052
1053  -libdir | --libdir | --libdi | --libd)
1054    ac_prev=libdir ;;
1055  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056    libdir=$ac_optarg ;;
1057
1058  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059  | --libexe | --libex | --libe)
1060    ac_prev=libexecdir ;;
1061  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062  | --libexe=* | --libex=* | --libe=*)
1063    libexecdir=$ac_optarg ;;
1064
1065  -localedir | --localedir | --localedi | --localed | --locale)
1066    ac_prev=localedir ;;
1067  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068    localedir=$ac_optarg ;;
1069
1070  -localstatedir | --localstatedir | --localstatedi | --localstated \
1071  | --localstate | --localstat | --localsta | --localst | --locals)
1072    ac_prev=localstatedir ;;
1073  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075    localstatedir=$ac_optarg ;;
1076
1077  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078    ac_prev=mandir ;;
1079  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080    mandir=$ac_optarg ;;
1081
1082  -nfp | --nfp | --nf)
1083    # Obsolete; use --without-fp.
1084    with_fp=no ;;
1085
1086  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087  | --no-cr | --no-c | -n)
1088    no_create=yes ;;
1089
1090  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092    no_recursion=yes ;;
1093
1094  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096  | --oldin | --oldi | --old | --ol | --o)
1097    ac_prev=oldincludedir ;;
1098  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101    oldincludedir=$ac_optarg ;;
1102
1103  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104    ac_prev=prefix ;;
1105  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106    prefix=$ac_optarg ;;
1107
1108  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109  | --program-pre | --program-pr | --program-p)
1110    ac_prev=program_prefix ;;
1111  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113    program_prefix=$ac_optarg ;;
1114
1115  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116  | --program-suf | --program-su | --program-s)
1117    ac_prev=program_suffix ;;
1118  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120    program_suffix=$ac_optarg ;;
1121
1122  -program-transform-name | --program-transform-name \
1123  | --program-transform-nam | --program-transform-na \
1124  | --program-transform-n | --program-transform- \
1125  | --program-transform | --program-transfor \
1126  | --program-transfo | --program-transf \
1127  | --program-trans | --program-tran \
1128  | --progr-tra | --program-tr | --program-t)
1129    ac_prev=program_transform_name ;;
1130  -program-transform-name=* | --program-transform-name=* \
1131  | --program-transform-nam=* | --program-transform-na=* \
1132  | --program-transform-n=* | --program-transform-=* \
1133  | --program-transform=* | --program-transfor=* \
1134  | --program-transfo=* | --program-transf=* \
1135  | --program-trans=* | --program-tran=* \
1136  | --progr-tra=* | --program-tr=* | --program-t=*)
1137    program_transform_name=$ac_optarg ;;
1138
1139  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140    ac_prev=pdfdir ;;
1141  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142    pdfdir=$ac_optarg ;;
1143
1144  -psdir | --psdir | --psdi | --psd | --ps)
1145    ac_prev=psdir ;;
1146  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147    psdir=$ac_optarg ;;
1148
1149  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150  | -silent | --silent | --silen | --sile | --sil)
1151    silent=yes ;;
1152
1153  -runstatedir | --runstatedir | --runstatedi | --runstated \
1154  | --runstate | --runstat | --runsta | --runst | --runs \
1155  | --run | --ru | --r)
1156    ac_prev=runstatedir ;;
1157  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1158  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1159  | --run=* | --ru=* | --r=*)
1160    runstatedir=$ac_optarg ;;
1161
1162  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163    ac_prev=sbindir ;;
1164  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165  | --sbi=* | --sb=*)
1166    sbindir=$ac_optarg ;;
1167
1168  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170  | --sharedst | --shareds | --shared | --share | --shar \
1171  | --sha | --sh)
1172    ac_prev=sharedstatedir ;;
1173  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176  | --sha=* | --sh=*)
1177    sharedstatedir=$ac_optarg ;;
1178
1179  -site | --site | --sit)
1180    ac_prev=site ;;
1181  -site=* | --site=* | --sit=*)
1182    site=$ac_optarg ;;
1183
1184  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185    ac_prev=srcdir ;;
1186  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187    srcdir=$ac_optarg ;;
1188
1189  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190  | --syscon | --sysco | --sysc | --sys | --sy)
1191    ac_prev=sysconfdir ;;
1192  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194    sysconfdir=$ac_optarg ;;
1195
1196  -target | --target | --targe | --targ | --tar | --ta | --t)
1197    ac_prev=target_alias ;;
1198  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199    target_alias=$ac_optarg ;;
1200
1201  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202    verbose=yes ;;
1203
1204  -version | --version | --versio | --versi | --vers | -V)
1205    ac_init_version=: ;;
1206
1207  -with-* | --with-*)
1208    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209    # Reject names that are not valid shell variable names.
1210    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211      as_fn_error $? "invalid package name: \`$ac_useropt'"
1212    ac_useropt_orig=$ac_useropt
1213    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1214    case $ac_user_opts in
1215      *"
1216"with_$ac_useropt"
1217"*) ;;
1218      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219	 ac_unrecognized_sep=', ';;
1220    esac
1221    eval with_$ac_useropt=\$ac_optarg ;;
1222
1223  -without-* | --without-*)
1224    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225    # Reject names that are not valid shell variable names.
1226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227      as_fn_error $? "invalid package name: \`$ac_useropt'"
1228    ac_useropt_orig=$ac_useropt
1229    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1230    case $ac_user_opts in
1231      *"
1232"with_$ac_useropt"
1233"*) ;;
1234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235	 ac_unrecognized_sep=', ';;
1236    esac
1237    eval with_$ac_useropt=no ;;
1238
1239  --x)
1240    # Obsolete; use --with-x.
1241    with_x=yes ;;
1242
1243  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244  | --x-incl | --x-inc | --x-in | --x-i)
1245    ac_prev=x_includes ;;
1246  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248    x_includes=$ac_optarg ;;
1249
1250  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252    ac_prev=x_libraries ;;
1253  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255    x_libraries=$ac_optarg ;;
1256
1257  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258Try \`$0 --help' for more information"
1259    ;;
1260
1261  *=*)
1262    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263    # Reject names that are not valid shell variable names.
1264    case $ac_envvar in #(
1265      '' | [0-9]* | *[!_$as_cr_alnum]* )
1266      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267    esac
1268    eval $ac_envvar=\$ac_optarg
1269    export $ac_envvar ;;
1270
1271  *)
1272    # FIXME: should be removed in autoconf 3.0.
1273    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1274    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1276    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277    ;;
1278
1279  esac
1280done
1281
1282if test -n "$ac_prev"; then
1283  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284  as_fn_error $? "missing argument to $ac_option"
1285fi
1286
1287if test -n "$ac_unrecognized_opts"; then
1288  case $enable_option_checking in
1289    no) ;;
1290    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292  esac
1293fi
1294
1295# Check all directory arguments for consistency.
1296for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297		datadir sysconfdir sharedstatedir localstatedir includedir \
1298		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299		libdir localedir mandir runstatedir
1300do
1301  eval ac_val=\$$ac_var
1302  # Remove trailing slashes.
1303  case $ac_val in
1304    */ )
1305      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306      eval $ac_var=\$ac_val;;
1307  esac
1308  # Be sure to have absolute directory names.
1309  case $ac_val in
1310    [\\/$]* | ?:[\\/]* )  continue;;
1311    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312  esac
1313  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314done
1315
1316# There might be people who depend on the old broken behavior: `$host'
1317# used to hold the argument of --host etc.
1318# FIXME: To remove some day.
1319build=$build_alias
1320host=$host_alias
1321target=$target_alias
1322
1323# FIXME: To remove some day.
1324if test "x$host_alias" != x; then
1325  if test "x$build_alias" = x; then
1326    cross_compiling=maybe
1327  elif test "x$build_alias" != "x$host_alias"; then
1328    cross_compiling=yes
1329  fi
1330fi
1331
1332ac_tool_prefix=
1333test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335test "$silent" = yes && exec 6>/dev/null
1336
1337
1338ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339ac_ls_di=`ls -di .` &&
1340ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341  as_fn_error $? "working directory cannot be determined"
1342test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343  as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346# Find the source files, if location was not specified.
1347if test -z "$srcdir"; then
1348  ac_srcdir_defaulted=yes
1349  # Try the directory containing this script, then the parent directory.
1350  ac_confdir=`$as_dirname -- "$as_myself" ||
1351$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352	 X"$as_myself" : 'X\(//\)[^/]' \| \
1353	 X"$as_myself" : 'X\(//\)$' \| \
1354	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355printf "%s\n" X"$as_myself" |
1356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)[^/].*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\/\)$/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\).*/{
1369	    s//\1/
1370	    q
1371	  }
1372	  s/.*/./; q'`
1373  srcdir=$ac_confdir
1374  if test ! -r "$srcdir/$ac_unique_file"; then
1375    srcdir=..
1376  fi
1377else
1378  ac_srcdir_defaulted=no
1379fi
1380if test ! -r "$srcdir/$ac_unique_file"; then
1381  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383fi
1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385ac_abs_confdir=`(
1386	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387	pwd)`
1388# When building in place, set srcdir=.
1389if test "$ac_abs_confdir" = "$ac_pwd"; then
1390  srcdir=.
1391fi
1392# Remove unnecessary trailing slashes from srcdir.
1393# Double slashes in file names in object file debugging info
1394# mess up M-x gdb in Emacs.
1395case $srcdir in
1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397esac
1398for ac_var in $ac_precious_vars; do
1399  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400  eval ac_env_${ac_var}_value=\$${ac_var}
1401  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403done
1404
1405#
1406# Report the --help message.
1407#
1408if test "$ac_init_help" = "long"; then
1409  # Omit some internal or obsolete options to make the list less imposing.
1410  # This message is too long to be a string in the A/UX 3.1 sh.
1411  cat <<_ACEOF
1412\`configure' configures expat 2.3.0 to adapt to many kinds of systems.
1413
1414Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419Defaults for the options are specified in brackets.
1420
1421Configuration:
1422  -h, --help              display this help and exit
1423      --help=short        display options specific to this package
1424      --help=recursive    display the short help of all the included packages
1425  -V, --version           display version information and exit
1426  -q, --quiet, --silent   do not print \`checking ...' messages
1427      --cache-file=FILE   cache test results in FILE [disabled]
1428  -C, --config-cache      alias for \`--cache-file=config.cache'
1429  -n, --no-create         do not create output files
1430      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432Installation directories:
1433  --prefix=PREFIX         install architecture-independent files in PREFIX
1434                          [$ac_default_prefix]
1435  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                          [PREFIX]
1437
1438By default, \`make install' will install all the files in
1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441for instance \`--prefix=\$HOME'.
1442
1443For better control, use the options below.
1444
1445Fine tuning of the installation directories:
1446  --bindir=DIR            user executables [EPREFIX/bin]
1447  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448  --libexecdir=DIR        program executables [EPREFIX/libexec]
1449  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1453  --libdir=DIR            object code libraries [EPREFIX/lib]
1454  --includedir=DIR        C header files [PREFIX/include]
1455  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458  --infodir=DIR           info documentation [DATAROOTDIR/info]
1459  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460  --mandir=DIR            man documentation [DATAROOTDIR/man]
1461  --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1462  --htmldir=DIR           html documentation [DOCDIR]
1463  --dvidir=DIR            dvi documentation [DOCDIR]
1464  --pdfdir=DIR            pdf documentation [DOCDIR]
1465  --psdir=DIR             ps documentation [DOCDIR]
1466_ACEOF
1467
1468  cat <<\_ACEOF
1469
1470Program names:
1471  --program-prefix=PREFIX            prepend PREFIX to installed program names
1472  --program-suffix=SUFFIX            append SUFFIX to installed program names
1473  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
1475System types:
1476  --build=BUILD     configure for building on BUILD [guessed]
1477  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478_ACEOF
1479fi
1480
1481if test -n "$ac_init_help"; then
1482  case $ac_init_help in
1483     short | recursive ) echo "Configuration of expat 2.3.0:";;
1484   esac
1485  cat <<\_ACEOF
1486
1487Optional Features:
1488  --disable-option-checking  ignore unrecognized --enable/--with options
1489  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491  --enable-silent-rules   less verbose build output (undo: "make V=1")
1492  --disable-silent-rules  verbose build output (undo: "make V=0")
1493  --enable-dependency-tracking
1494                          do not reject slow dependency extractors
1495  --disable-dependency-tracking
1496                          speeds up one-time build
1497  --enable-shared[=PKGS]  build shared libraries [default=yes]
1498  --enable-static[=PKGS]  build static libraries [default=yes]
1499  --enable-fast-install[=PKGS]
1500                          optimize for fast installation [default=yes]
1501  --disable-libtool-lock  avoid locking (might break parallel builds)
1502  --enable-xml-attr-info  Enable retrieving the byte offsets for attribute
1503                          names and values [default=no]
1504  --enable-xml-context [COUNT]
1505                          Retain context around the current parse point;
1506                          default is enabled and a size of 1024 bytes
1507  --disable-xml-context   Do not retain context around the current parse point
1508
1509Optional Packages:
1510  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1513                          both]
1514  --with-aix-soname=aix|svr4|both
1515                          shared library versioning (aka "SONAME") variant to
1516                          provide on AIX, [default=aix].
1517  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1519                          compiler's sysroot if not specified).
1520  --without-xmlwf         do not build xmlwf
1521  --without-examples      do not build examples [default=included]
1522  --without-tests         do not build tests [default=included]
1523  --with-libbsd           utilize libbsd (for arc4random_buf)
1524  --with-getrandom        enforce the use of getrandom function in the system
1525                          [default=check]
1526  --without-getrandom     skip auto detect of getrandom [default=check]
1527  --with-sys-getrandom    enforce the use of syscall SYS_getrandom function in
1528                          the system [default=check]
1529  --without-sys-getrandom skip auto detect of syscall SYS_getrandom
1530                          [default=check]
1531  --with-docbook          enforce XML to man page compilation [default=check]
1532  --without-docbook       skip XML to man page compilation [default=check]
1533
1534Some influential environment variables:
1535  CC          C compiler command
1536  CFLAGS      C compiler flags
1537  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1538              nonstandard directory <lib dir>
1539  LIBS        libraries to pass to the linker, e.g. -l<library>
1540  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541              you have headers in a nonstandard directory <include dir>
1542  LT_SYS_LIBRARY_PATH
1543              User-defined run-time library search path.
1544  CXX         C++ compiler command
1545  CXXFLAGS    C++ compiler flags
1546  CXXCPP      C++ preprocessor
1547  DOCBOOK_TO_MAN
1548              docbook2x-man command
1549
1550Use these variables to override the choices made by `configure' or to help
1551it to find libraries and programs with nonstandard names/locations.
1552
1553Report bugs to <expat-bugs@libexpat.org>.
1554_ACEOF
1555ac_status=$?
1556fi
1557
1558if test "$ac_init_help" = "recursive"; then
1559  # If there are subdirs, report their specific --help.
1560  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561    test -d "$ac_dir" ||
1562      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563      continue
1564    ac_builddir=.
1565
1566case "$ac_dir" in
1567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568*)
1569  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1570  # A ".." for each directory in $ac_dir_suffix.
1571  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572  case $ac_top_builddir_sub in
1573  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575  esac ;;
1576esac
1577ac_abs_top_builddir=$ac_pwd
1578ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579# for backward compatibility:
1580ac_top_builddir=$ac_top_build_prefix
1581
1582case $srcdir in
1583  .)  # We are building in place.
1584    ac_srcdir=.
1585    ac_top_srcdir=$ac_top_builddir_sub
1586    ac_abs_top_srcdir=$ac_pwd ;;
1587  [\\/]* | ?:[\\/]* )  # Absolute name.
1588    ac_srcdir=$srcdir$ac_dir_suffix;
1589    ac_top_srcdir=$srcdir
1590    ac_abs_top_srcdir=$srcdir ;;
1591  *) # Relative name.
1592    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593    ac_top_srcdir=$ac_top_build_prefix$srcdir
1594    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595esac
1596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598    cd "$ac_dir" || { ac_status=$?; continue; }
1599    # Check for configure.gnu first; this name is used for a wrapper for
1600    # Metaconfig's "Configure" on case-insensitive file systems.
1601    if test -f "$ac_srcdir/configure.gnu"; then
1602      echo &&
1603      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604    elif test -f "$ac_srcdir/configure"; then
1605      echo &&
1606      $SHELL "$ac_srcdir/configure" --help=recursive
1607    else
1608      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609    fi || ac_status=$?
1610    cd "$ac_pwd" || { ac_status=$?; break; }
1611  done
1612fi
1613
1614test -n "$ac_init_help" && exit $ac_status
1615if $ac_init_version; then
1616  cat <<\_ACEOF
1617expat configure 2.3.0
1618generated by GNU Autoconf 2.71
1619
1620Copyright (C) 2021 Free Software Foundation, Inc.
1621This configure script is free software; the Free Software Foundation
1622gives unlimited permission to copy, distribute and modify it.
1623_ACEOF
1624  exit
1625fi
1626
1627## ------------------------ ##
1628## Autoconf initialization. ##
1629## ------------------------ ##
1630
1631# ac_fn_c_try_compile LINENO
1632# --------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_compile ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  rm -f conftest.$ac_objext conftest.beam
1638  if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644printf "%s\n" "$ac_try_echo"; } >&5
1645  (eval "$ac_compile") 2>conftest.err
1646  ac_status=$?
1647  if test -s conftest.err; then
1648    grep -v '^ *+' conftest.err >conftest.er1
1649    cat conftest.er1 >&5
1650    mv -f conftest.er1 conftest.err
1651  fi
1652  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653  test $ac_status = 0; } && {
1654	 test -z "$ac_c_werror_flag" ||
1655	 test ! -s conftest.err
1656       } && test -s conftest.$ac_objext
1657then :
1658  ac_retval=0
1659else $as_nop
1660  printf "%s\n" "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663	ac_retval=1
1664fi
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_compile
1669
1670# ac_fn_c_try_link LINENO
1671# -----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_link ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1677  if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683printf "%s\n" "$ac_try_echo"; } >&5
1684  (eval "$ac_link") 2>conftest.err
1685  ac_status=$?
1686  if test -s conftest.err; then
1687    grep -v '^ *+' conftest.err >conftest.er1
1688    cat conftest.er1 >&5
1689    mv -f conftest.er1 conftest.err
1690  fi
1691  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && {
1693	 test -z "$ac_c_werror_flag" ||
1694	 test ! -s conftest.err
1695       } && test -s conftest$ac_exeext && {
1696	 test "$cross_compiling" = yes ||
1697	 test -x conftest$ac_exeext
1698       }
1699then :
1700  ac_retval=0
1701else $as_nop
1702  printf "%s\n" "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705	ac_retval=1
1706fi
1707  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709  # interfere with the next link command; also delete a directory that is
1710  # left behind by Apple's compiler.  We do this before executing the actions.
1711  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_link
1716
1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists and can be compiled using the include files in
1720# INCLUDES, setting the cache variable VAR accordingly.
1721ac_fn_c_check_header_compile ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725printf %s "checking for $2... " >&6; }
1726if eval test \${$3+y}
1727then :
1728  printf %s "(cached) " >&6
1729else $as_nop
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732$4
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_compile "$LINENO"
1736then :
1737  eval "$3=yes"
1738else $as_nop
1739  eval "$3=no"
1740fi
1741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1742fi
1743eval ac_res=\$$3
1744	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745printf "%s\n" "$ac_res" >&6; }
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748} # ac_fn_c_check_header_compile
1749
1750# ac_fn_c_check_func LINENO FUNC VAR
1751# ----------------------------------
1752# Tests whether FUNC exists, setting the cache variable VAR accordingly
1753ac_fn_c_check_func ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757printf %s "checking for $2... " >&6; }
1758if eval test \${$3+y}
1759then :
1760  printf %s "(cached) " >&6
1761else $as_nop
1762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h.  */
1764/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1766#define $2 innocuous_$2
1767
1768/* System header to define __stub macros and hopefully few prototypes,
1769   which can conflict with char $2 (); below.  */
1770
1771#include <limits.h>
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775   Use char because int might match the return type of a GCC
1776   builtin and then its argument prototype would still apply.  */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782    to always fail with ENOSYS.  Some functions are actually named
1783    something starting with __ and the normal name is an alias.  */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main (void)
1790{
1791return $2 ();
1792  ;
1793  return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"
1797then :
1798  eval "$3=yes"
1799else $as_nop
1800  eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.beam \
1803    conftest$ac_exeext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807printf "%s\n" "$ac_res" >&6; }
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_func
1811
1812# ac_fn_cxx_try_compile LINENO
1813# ----------------------------
1814# Try to compile conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_cxx_try_compile ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  rm -f conftest.$ac_objext conftest.beam
1819  if { { ac_try="$ac_compile"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825printf "%s\n" "$ac_try_echo"; } >&5
1826  (eval "$ac_compile") 2>conftest.err
1827  ac_status=$?
1828  if test -s conftest.err; then
1829    grep -v '^ *+' conftest.err >conftest.er1
1830    cat conftest.er1 >&5
1831    mv -f conftest.er1 conftest.err
1832  fi
1833  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834  test $ac_status = 0; } && {
1835	 test -z "$ac_cxx_werror_flag" ||
1836	 test ! -s conftest.err
1837       } && test -s conftest.$ac_objext
1838then :
1839  ac_retval=0
1840else $as_nop
1841  printf "%s\n" "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844	ac_retval=1
1845fi
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_cxx_try_compile
1850
1851# ac_fn_cxx_try_cpp LINENO
1852# ------------------------
1853# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854ac_fn_cxx_try_cpp ()
1855{
1856  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857  if { { ac_try="$ac_cpp conftest.$ac_ext"
1858case "(($ac_try" in
1859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860  *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863printf "%s\n" "$ac_try_echo"; } >&5
1864  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865  ac_status=$?
1866  if test -s conftest.err; then
1867    grep -v '^ *+' conftest.err >conftest.er1
1868    cat conftest.er1 >&5
1869    mv -f conftest.er1 conftest.err
1870  fi
1871  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; } > conftest.i && {
1873	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1874	 test ! -s conftest.err
1875       }
1876then :
1877  ac_retval=0
1878else $as_nop
1879  printf "%s\n" "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882    ac_retval=1
1883fi
1884  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885  as_fn_set_status $ac_retval
1886
1887} # ac_fn_cxx_try_cpp
1888
1889# ac_fn_cxx_try_link LINENO
1890# -------------------------
1891# Try to link conftest.$ac_ext, and return whether this succeeded.
1892ac_fn_cxx_try_link ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1896  if { { ac_try="$ac_link"
1897case "(($ac_try" in
1898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899  *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902printf "%s\n" "$ac_try_echo"; } >&5
1903  (eval "$ac_link") 2>conftest.err
1904  ac_status=$?
1905  if test -s conftest.err; then
1906    grep -v '^ *+' conftest.err >conftest.er1
1907    cat conftest.er1 >&5
1908    mv -f conftest.er1 conftest.err
1909  fi
1910  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911  test $ac_status = 0; } && {
1912	 test -z "$ac_cxx_werror_flag" ||
1913	 test ! -s conftest.err
1914       } && test -s conftest$ac_exeext && {
1915	 test "$cross_compiling" = yes ||
1916	 test -x conftest$ac_exeext
1917       }
1918then :
1919  ac_retval=0
1920else $as_nop
1921  printf "%s\n" "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924	ac_retval=1
1925fi
1926  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928  # interfere with the next link command; also delete a directory that is
1929  # left behind by Apple's compiler.  We do this before executing the actions.
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_link
1935
1936# ac_fn_c_try_run LINENO
1937# ----------------------
1938# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1939# executables *can* be run.
1940ac_fn_c_try_run ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  if { { ac_try="$ac_link"
1944case "(($ac_try" in
1945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946  *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949printf "%s\n" "$ac_try_echo"; } >&5
1950  (eval "$ac_link") 2>&5
1951  ac_status=$?
1952  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954  { { case "(($ac_try" in
1955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956  *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959printf "%s\n" "$ac_try_echo"; } >&5
1960  (eval "$ac_try") 2>&5
1961  ac_status=$?
1962  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963  test $ac_status = 0; }; }
1964then :
1965  ac_retval=0
1966else $as_nop
1967  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1968       printf "%s\n" "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971       ac_retval=$ac_status
1972fi
1973  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_c_try_run
1978
1979# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1980# -------------------------------------------
1981# Tests whether TYPE exists after having included INCLUDES, setting cache
1982# variable VAR accordingly.
1983ac_fn_c_check_type ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987printf %s "checking for $2... " >&6; }
1988if eval test \${$3+y}
1989then :
1990  printf %s "(cached) " >&6
1991else $as_nop
1992  eval "$3=no"
1993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h.  */
1995$4
1996int
1997main (void)
1998{
1999if (sizeof ($2))
2000	 return 0;
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"
2006then :
2007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h.  */
2009$4
2010int
2011main (void)
2012{
2013if (sizeof (($2)))
2014	    return 0;
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"
2020then :
2021
2022else $as_nop
2023  eval "$3=yes"
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2028fi
2029eval ac_res=\$$3
2030	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031printf "%s\n" "$ac_res" >&6; }
2032  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034} # ac_fn_c_check_type
2035ac_configure_args_raw=
2036for ac_arg
2037do
2038  case $ac_arg in
2039  *\'*)
2040    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041  esac
2042  as_fn_append ac_configure_args_raw " '$ac_arg'"
2043done
2044
2045case $ac_configure_args_raw in
2046  *$as_nl*)
2047    ac_safe_unquote= ;;
2048  *)
2049    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2050    ac_unsafe_a="$ac_unsafe_z#~"
2051    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2052    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2053esac
2054
2055cat >config.log <<_ACEOF
2056This file contains any messages produced by compilers while
2057running configure, to aid debugging if configure makes a mistake.
2058
2059It was created by expat $as_me 2.3.0, which was
2060generated by GNU Autoconf 2.71.  Invocation command line was
2061
2062  $ $0$ac_configure_args_raw
2063
2064_ACEOF
2065exec 5>>config.log
2066{
2067cat <<_ASUNAME
2068## --------- ##
2069## Platform. ##
2070## --------- ##
2071
2072hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2080
2081/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2082/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2083/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2085/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2086/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2087/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2088
2089_ASUNAME
2090
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  case $as_dir in #(((
2096    '') as_dir=./ ;;
2097    */) ;;
2098    *) as_dir=$as_dir/ ;;
2099  esac
2100    printf "%s\n" "PATH: $as_dir"
2101  done
2102IFS=$as_save_IFS
2103
2104} >&5
2105
2106cat >&5 <<_ACEOF
2107
2108
2109## ----------- ##
2110## Core tests. ##
2111## ----------- ##
2112
2113_ACEOF
2114
2115
2116# Keep a trace of the command line.
2117# Strip out --no-create and --no-recursion so they do not pile up.
2118# Strip out --silent because we don't want to record it for future runs.
2119# Also quote any args containing shell meta-characters.
2120# Make two passes to allow for proper duplicate-argument suppression.
2121ac_configure_args=
2122ac_configure_args0=
2123ac_configure_args1=
2124ac_must_keep_next=false
2125for ac_pass in 1 2
2126do
2127  for ac_arg
2128  do
2129    case $ac_arg in
2130    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132    | -silent | --silent | --silen | --sile | --sil)
2133      continue ;;
2134    *\'*)
2135      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136    esac
2137    case $ac_pass in
2138    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139    2)
2140      as_fn_append ac_configure_args1 " '$ac_arg'"
2141      if test $ac_must_keep_next = true; then
2142	ac_must_keep_next=false # Got value, back to normal.
2143      else
2144	case $ac_arg in
2145	  *=* | --config-cache | -C | -disable-* | --disable-* \
2146	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148	  | -with-* | --with-* | -without-* | --without-* | --x)
2149	    case "$ac_configure_args0 " in
2150	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151	    esac
2152	    ;;
2153	  -* ) ac_must_keep_next=true ;;
2154	esac
2155      fi
2156      as_fn_append ac_configure_args " '$ac_arg'"
2157      ;;
2158    esac
2159  done
2160done
2161{ ac_configure_args0=; unset ac_configure_args0;}
2162{ ac_configure_args1=; unset ac_configure_args1;}
2163
2164# When interrupted or exit'd, cleanup temporary files, and complete
2165# config.log.  We remove comments because anyway the quotes in there
2166# would cause problems or look ugly.
2167# WARNING: Use '\'' to represent an apostrophe within the trap.
2168# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169trap 'exit_status=$?
2170  # Sanitize IFS.
2171  IFS=" ""	$as_nl"
2172  # Save into config.log some information that might help in debugging.
2173  {
2174    echo
2175
2176    printf "%s\n" "## ---------------- ##
2177## Cache variables. ##
2178## ---------------- ##"
2179    echo
2180    # The following way of writing the cache mishandles newlines in values,
2181(
2182  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2183    eval ac_val=\$$ac_var
2184    case $ac_val in #(
2185    *${as_nl}*)
2186      case $ac_var in #(
2187      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2188printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189      esac
2190      case $ac_var in #(
2191      _ | IFS | as_nl) ;; #(
2192      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2193      *) { eval $ac_var=; unset $ac_var;} ;;
2194      esac ;;
2195    esac
2196  done
2197  (set) 2>&1 |
2198    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2199    *${as_nl}ac_space=\ *)
2200      sed -n \
2201	"s/'\''/'\''\\\\'\'''\''/g;
2202	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203      ;; #(
2204    *)
2205      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2206      ;;
2207    esac |
2208    sort
2209)
2210    echo
2211
2212    printf "%s\n" "## ----------------- ##
2213## Output variables. ##
2214## ----------------- ##"
2215    echo
2216    for ac_var in $ac_subst_vars
2217    do
2218      eval ac_val=\$$ac_var
2219      case $ac_val in
2220      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221      esac
2222      printf "%s\n" "$ac_var='\''$ac_val'\''"
2223    done | sort
2224    echo
2225
2226    if test -n "$ac_subst_files"; then
2227      printf "%s\n" "## ------------------- ##
2228## File substitutions. ##
2229## ------------------- ##"
2230      echo
2231      for ac_var in $ac_subst_files
2232      do
2233	eval ac_val=\$$ac_var
2234	case $ac_val in
2235	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236	esac
2237	printf "%s\n" "$ac_var='\''$ac_val'\''"
2238      done | sort
2239      echo
2240    fi
2241
2242    if test -s confdefs.h; then
2243      printf "%s\n" "## ----------- ##
2244## confdefs.h. ##
2245## ----------- ##"
2246      echo
2247      cat confdefs.h
2248      echo
2249    fi
2250    test "$ac_signal" != 0 &&
2251      printf "%s\n" "$as_me: caught signal $ac_signal"
2252    printf "%s\n" "$as_me: exit $exit_status"
2253  } >&5
2254  rm -f core *.core core.conftest.* &&
2255    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256    exit $exit_status
2257' 0
2258for ac_signal in 1 2 13 15; do
2259  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260done
2261ac_signal=0
2262
2263# confdefs.h avoids OS command line length limits that DEFS can exceed.
2264rm -f -r conftest* confdefs.h
2265
2266printf "%s\n" "/* confdefs.h */" > confdefs.h
2267
2268# Predefined preprocessor variables.
2269
2270printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2271
2272printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2273
2274printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2275
2276printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2277
2278printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2279
2280printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2281
2282
2283# Let the site file select an alternate cache file if it wants to.
2284# Prefer an explicitly selected file to automatically selected ones.
2285if test -n "$CONFIG_SITE"; then
2286  ac_site_files="$CONFIG_SITE"
2287elif test "x$prefix" != xNONE; then
2288  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2289else
2290  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2291fi
2292
2293for ac_site_file in $ac_site_files
2294do
2295  case $ac_site_file in #(
2296  */*) :
2297     ;; #(
2298  *) :
2299    ac_site_file=./$ac_site_file ;;
2300esac
2301  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2302    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2303printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2304    sed 's/^/| /' "$ac_site_file" >&5
2305    . "$ac_site_file" \
2306      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2308as_fn_error $? "failed to load site script $ac_site_file
2309See \`config.log' for more details" "$LINENO" 5; }
2310  fi
2311done
2312
2313if test -r "$cache_file"; then
2314  # Some versions of bash will fail to source /dev/null (special files
2315  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2316  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2317    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2318printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2319    case $cache_file in
2320      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2321      *)                      . "./$cache_file";;
2322    esac
2323  fi
2324else
2325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2326printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2327  >$cache_file
2328fi
2329
2330# Test code for whether the C compiler supports C89 (global declarations)
2331ac_c_conftest_c89_globals='
2332/* Does the compiler advertise C89 conformance?
2333   Do not test the value of __STDC__, because some compilers set it to 0
2334   while being otherwise adequately conformant. */
2335#if !defined __STDC__
2336# error "Compiler does not advertise C89 conformance"
2337#endif
2338
2339#include <stddef.h>
2340#include <stdarg.h>
2341struct stat;
2342/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2343struct buf { int x; };
2344struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2345static char *e (p, i)
2346     char **p;
2347     int i;
2348{
2349  return p[i];
2350}
2351static char *f (char * (*g) (char **, int), char **p, ...)
2352{
2353  char *s;
2354  va_list v;
2355  va_start (v,p);
2356  s = g (p, va_arg (v,int));
2357  va_end (v);
2358  return s;
2359}
2360
2361/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2362   function prototypes and stuff, but not \xHH hex character constants.
2363   These do not provoke an error unfortunately, instead are silently treated
2364   as an "x".  The following induces an error, until -std is added to get
2365   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2366   array size at least.  It is necessary to write \x00 == 0 to get something
2367   that is true only with -std.  */
2368int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2369
2370/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2371   inside strings and character constants.  */
2372#define FOO(x) '\''x'\''
2373int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2374
2375int test (int i, double x);
2376struct s1 {int (*f) (int a);};
2377struct s2 {int (*f) (double a);};
2378int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2379               int, int);'
2380
2381# Test code for whether the C compiler supports C89 (body of main).
2382ac_c_conftest_c89_main='
2383ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2384'
2385
2386# Test code for whether the C compiler supports C99 (global declarations)
2387ac_c_conftest_c99_globals='
2388// Does the compiler advertise C99 conformance?
2389#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2390# error "Compiler does not advertise C99 conformance"
2391#endif
2392
2393#include <stdbool.h>
2394extern int puts (const char *);
2395extern int printf (const char *, ...);
2396extern int dprintf (int, const char *, ...);
2397extern void *malloc (size_t);
2398
2399// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2400// dprintf is used instead of fprintf to avoid needing to declare
2401// FILE and stderr.
2402#define debug(...) dprintf (2, __VA_ARGS__)
2403#define showlist(...) puts (#__VA_ARGS__)
2404#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2405static void
2406test_varargs_macros (void)
2407{
2408  int x = 1234;
2409  int y = 5678;
2410  debug ("Flag");
2411  debug ("X = %d\n", x);
2412  showlist (The first, second, and third items.);
2413  report (x>y, "x is %d but y is %d", x, y);
2414}
2415
2416// Check long long types.
2417#define BIG64 18446744073709551615ull
2418#define BIG32 4294967295ul
2419#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2420#if !BIG_OK
2421  #error "your preprocessor is broken"
2422#endif
2423#if BIG_OK
2424#else
2425  #error "your preprocessor is broken"
2426#endif
2427static long long int bignum = -9223372036854775807LL;
2428static unsigned long long int ubignum = BIG64;
2429
2430struct incomplete_array
2431{
2432  int datasize;
2433  double data[];
2434};
2435
2436struct named_init {
2437  int number;
2438  const wchar_t *name;
2439  double average;
2440};
2441
2442typedef const char *ccp;
2443
2444static inline int
2445test_restrict (ccp restrict text)
2446{
2447  // See if C++-style comments work.
2448  // Iterate through items via the restricted pointer.
2449  // Also check for declarations in for loops.
2450  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2451    continue;
2452  return 0;
2453}
2454
2455// Check varargs and va_copy.
2456static bool
2457test_varargs (const char *format, ...)
2458{
2459  va_list args;
2460  va_start (args, format);
2461  va_list args_copy;
2462  va_copy (args_copy, args);
2463
2464  const char *str = "";
2465  int number = 0;
2466  float fnumber = 0;
2467
2468  while (*format)
2469    {
2470      switch (*format++)
2471	{
2472	case '\''s'\'': // string
2473	  str = va_arg (args_copy, const char *);
2474	  break;
2475	case '\''d'\'': // int
2476	  number = va_arg (args_copy, int);
2477	  break;
2478	case '\''f'\'': // float
2479	  fnumber = va_arg (args_copy, double);
2480	  break;
2481	default:
2482	  break;
2483	}
2484    }
2485  va_end (args_copy);
2486  va_end (args);
2487
2488  return *str && number && fnumber;
2489}
2490'
2491
2492# Test code for whether the C compiler supports C99 (body of main).
2493ac_c_conftest_c99_main='
2494  // Check bool.
2495  _Bool success = false;
2496  success |= (argc != 0);
2497
2498  // Check restrict.
2499  if (test_restrict ("String literal") == 0)
2500    success = true;
2501  char *restrict newvar = "Another string";
2502
2503  // Check varargs.
2504  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2505  test_varargs_macros ();
2506
2507  // Check flexible array members.
2508  struct incomplete_array *ia =
2509    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2510  ia->datasize = 10;
2511  for (int i = 0; i < ia->datasize; ++i)
2512    ia->data[i] = i * 1.234;
2513
2514  // Check named initializers.
2515  struct named_init ni = {
2516    .number = 34,
2517    .name = L"Test wide string",
2518    .average = 543.34343,
2519  };
2520
2521  ni.number = 58;
2522
2523  int dynamic_array[ni.number];
2524  dynamic_array[0] = argv[0][0];
2525  dynamic_array[ni.number - 1] = 543;
2526
2527  // work around unused variable warnings
2528  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2529	 || dynamic_array[ni.number - 1] != 543);
2530'
2531
2532# Test code for whether the C compiler supports C11 (global declarations)
2533ac_c_conftest_c11_globals='
2534// Does the compiler advertise C11 conformance?
2535#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2536# error "Compiler does not advertise C11 conformance"
2537#endif
2538
2539// Check _Alignas.
2540char _Alignas (double) aligned_as_double;
2541char _Alignas (0) no_special_alignment;
2542extern char aligned_as_int;
2543char _Alignas (0) _Alignas (int) aligned_as_int;
2544
2545// Check _Alignof.
2546enum
2547{
2548  int_alignment = _Alignof (int),
2549  int_array_alignment = _Alignof (int[100]),
2550  char_alignment = _Alignof (char)
2551};
2552_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2553
2554// Check _Noreturn.
2555int _Noreturn does_not_return (void) { for (;;) continue; }
2556
2557// Check _Static_assert.
2558struct test_static_assert
2559{
2560  int x;
2561  _Static_assert (sizeof (int) <= sizeof (long int),
2562                  "_Static_assert does not work in struct");
2563  long int y;
2564};
2565
2566// Check UTF-8 literals.
2567#define u8 syntax error!
2568char const utf8_literal[] = u8"happens to be ASCII" "another string";
2569
2570// Check duplicate typedefs.
2571typedef long *long_ptr;
2572typedef long int *long_ptr;
2573typedef long_ptr long_ptr;
2574
2575// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2576struct anonymous
2577{
2578  union {
2579    struct { int i; int j; };
2580    struct { int k; long int l; } w;
2581  };
2582  int m;
2583} v1;
2584'
2585
2586# Test code for whether the C compiler supports C11 (body of main).
2587ac_c_conftest_c11_main='
2588  _Static_assert ((offsetof (struct anonymous, i)
2589		   == offsetof (struct anonymous, w.k)),
2590		  "Anonymous union alignment botch");
2591  v1.i = 2;
2592  v1.w.k = 5;
2593  ok |= v1.i != 5;
2594'
2595
2596# Test code for whether the C compiler supports C11 (complete).
2597ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2598${ac_c_conftest_c99_globals}
2599${ac_c_conftest_c11_globals}
2600
2601int
2602main (int argc, char **argv)
2603{
2604  int ok = 0;
2605  ${ac_c_conftest_c89_main}
2606  ${ac_c_conftest_c99_main}
2607  ${ac_c_conftest_c11_main}
2608  return ok;
2609}
2610"
2611
2612# Test code for whether the C compiler supports C99 (complete).
2613ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2614${ac_c_conftest_c99_globals}
2615
2616int
2617main (int argc, char **argv)
2618{
2619  int ok = 0;
2620  ${ac_c_conftest_c89_main}
2621  ${ac_c_conftest_c99_main}
2622  return ok;
2623}
2624"
2625
2626# Test code for whether the C compiler supports C89 (complete).
2627ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2628
2629int
2630main (int argc, char **argv)
2631{
2632  int ok = 0;
2633  ${ac_c_conftest_c89_main}
2634  return ok;
2635}
2636"
2637
2638as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2639as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2640as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2641as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2642as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2643as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2644as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2645as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2646as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2647# Test code for whether the C++ compiler supports C++98 (global declarations)
2648ac_cxx_conftest_cxx98_globals='
2649// Does the compiler advertise C++98 conformance?
2650#if !defined __cplusplus || __cplusplus < 199711L
2651# error "Compiler does not advertise C++98 conformance"
2652#endif
2653
2654// These inclusions are to reject old compilers that
2655// lack the unsuffixed header files.
2656#include <cstdlib>
2657#include <exception>
2658
2659// <cassert> and <cstring> are *not* freestanding headers in C++98.
2660extern void assert (int);
2661namespace std {
2662  extern int strcmp (const char *, const char *);
2663}
2664
2665// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2666using std::exception;
2667using std::strcmp;
2668
2669namespace {
2670
2671void test_exception_syntax()
2672{
2673  try {
2674    throw "test";
2675  } catch (const char *s) {
2676    // Extra parentheses suppress a warning when building autoconf itself,
2677    // due to lint rules shared with more typical C programs.
2678    assert (!(strcmp) (s, "test"));
2679  }
2680}
2681
2682template <typename T> struct test_template
2683{
2684  T const val;
2685  explicit test_template(T t) : val(t) {}
2686  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2687};
2688
2689} // anonymous namespace
2690'
2691
2692# Test code for whether the C++ compiler supports C++98 (body of main)
2693ac_cxx_conftest_cxx98_main='
2694  assert (argc);
2695  assert (! argv[0]);
2696{
2697  test_exception_syntax ();
2698  test_template<double> tt (2.0);
2699  assert (tt.add (4) == 6.0);
2700  assert (true && !false);
2701}
2702'
2703
2704# Test code for whether the C++ compiler supports C++11 (global declarations)
2705ac_cxx_conftest_cxx11_globals='
2706// Does the compiler advertise C++ 2011 conformance?
2707#if !defined __cplusplus || __cplusplus < 201103L
2708# error "Compiler does not advertise C++11 conformance"
2709#endif
2710
2711namespace cxx11test
2712{
2713  constexpr int get_val() { return 20; }
2714
2715  struct testinit
2716  {
2717    int i;
2718    double d;
2719  };
2720
2721  class delegate
2722  {
2723  public:
2724    delegate(int n) : n(n) {}
2725    delegate(): delegate(2354) {}
2726
2727    virtual int getval() { return this->n; };
2728  protected:
2729    int n;
2730  };
2731
2732  class overridden : public delegate
2733  {
2734  public:
2735    overridden(int n): delegate(n) {}
2736    virtual int getval() override final { return this->n * 2; }
2737  };
2738
2739  class nocopy
2740  {
2741  public:
2742    nocopy(int i): i(i) {}
2743    nocopy() = default;
2744    nocopy(const nocopy&) = delete;
2745    nocopy & operator=(const nocopy&) = delete;
2746  private:
2747    int i;
2748  };
2749
2750  // for testing lambda expressions
2751  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2752  {
2753    return f(v);
2754  }
2755
2756  // for testing variadic templates and trailing return types
2757  template <typename V> auto sum(V first) -> V
2758  {
2759    return first;
2760  }
2761  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2762  {
2763    return first + sum(rest...);
2764  }
2765}
2766'
2767
2768# Test code for whether the C++ compiler supports C++11 (body of main)
2769ac_cxx_conftest_cxx11_main='
2770{
2771  // Test auto and decltype
2772  auto a1 = 6538;
2773  auto a2 = 48573953.4;
2774  auto a3 = "String literal";
2775
2776  int total = 0;
2777  for (auto i = a3; *i; ++i) { total += *i; }
2778
2779  decltype(a2) a4 = 34895.034;
2780}
2781{
2782  // Test constexpr
2783  short sa[cxx11test::get_val()] = { 0 };
2784}
2785{
2786  // Test initializer lists
2787  cxx11test::testinit il = { 4323, 435234.23544 };
2788}
2789{
2790  // Test range-based for
2791  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2792                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2793  for (auto &x : array) { x += 23; }
2794}
2795{
2796  // Test lambda expressions
2797  using cxx11test::eval;
2798  assert (eval ([](int x) { return x*2; }, 21) == 42);
2799  double d = 2.0;
2800  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2801  assert (d == 5.0);
2802  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2803  assert (d == 5.0);
2804}
2805{
2806  // Test use of variadic templates
2807  using cxx11test::sum;
2808  auto a = sum(1);
2809  auto b = sum(1, 2);
2810  auto c = sum(1.0, 2.0, 3.0);
2811}
2812{
2813  // Test constructor delegation
2814  cxx11test::delegate d1;
2815  cxx11test::delegate d2();
2816  cxx11test::delegate d3(45);
2817}
2818{
2819  // Test override and final
2820  cxx11test::overridden o1(55464);
2821}
2822{
2823  // Test nullptr
2824  char *c = nullptr;
2825}
2826{
2827  // Test template brackets
2828  test_template<::test_template<int>> v(test_template<int>(12));
2829}
2830{
2831  // Unicode literals
2832  char const *utf8 = u8"UTF-8 string \u2500";
2833  char16_t const *utf16 = u"UTF-8 string \u2500";
2834  char32_t const *utf32 = U"UTF-32 string \u2500";
2835}
2836'
2837
2838# Test code for whether the C compiler supports C++11 (complete).
2839ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2840${ac_cxx_conftest_cxx11_globals}
2841
2842int
2843main (int argc, char **argv)
2844{
2845  int ok = 0;
2846  ${ac_cxx_conftest_cxx98_main}
2847  ${ac_cxx_conftest_cxx11_main}
2848  return ok;
2849}
2850"
2851
2852# Test code for whether the C compiler supports C++98 (complete).
2853ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2854int
2855main (int argc, char **argv)
2856{
2857  int ok = 0;
2858  ${ac_cxx_conftest_cxx98_main}
2859  return ok;
2860}
2861"
2862
2863as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2864as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2865
2866# Auxiliary files required by this configure script.
2867ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
2868
2869# Locations in which to look for auxiliary files.
2870ac_aux_dir_candidates="${srcdir}/conftools"
2871
2872# Search for a directory containing all of the required auxiliary files,
2873# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2874# If we don't find one directory that contains all the files we need,
2875# we report the set of missing files from the *first* directory in
2876# $ac_aux_dir_candidates and give up.
2877ac_missing_aux_files=""
2878ac_first_candidate=:
2879printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881as_found=false
2882for as_dir in $ac_aux_dir_candidates
2883do
2884  IFS=$as_save_IFS
2885  case $as_dir in #(((
2886    '') as_dir=./ ;;
2887    */) ;;
2888    *) as_dir=$as_dir/ ;;
2889  esac
2890  as_found=:
2891
2892  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2893  ac_aux_dir_found=yes
2894  ac_install_sh=
2895  for ac_aux in $ac_aux_files
2896  do
2897    # As a special case, if "install-sh" is required, that requirement
2898    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2899    # and $ac_install_sh is set appropriately for whichever one is found.
2900    if test x"$ac_aux" = x"install-sh"
2901    then
2902      if test -f "${as_dir}install-sh"; then
2903        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2904        ac_install_sh="${as_dir}install-sh -c"
2905      elif test -f "${as_dir}install.sh"; then
2906        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2907        ac_install_sh="${as_dir}install.sh -c"
2908      elif test -f "${as_dir}shtool"; then
2909        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2910        ac_install_sh="${as_dir}shtool install -c"
2911      else
2912        ac_aux_dir_found=no
2913        if $ac_first_candidate; then
2914          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2915        else
2916          break
2917        fi
2918      fi
2919    else
2920      if test -f "${as_dir}${ac_aux}"; then
2921        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2922      else
2923        ac_aux_dir_found=no
2924        if $ac_first_candidate; then
2925          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2926        else
2927          break
2928        fi
2929      fi
2930    fi
2931  done
2932  if test "$ac_aux_dir_found" = yes; then
2933    ac_aux_dir="$as_dir"
2934    break
2935  fi
2936  ac_first_candidate=false
2937
2938  as_found=false
2939done
2940IFS=$as_save_IFS
2941if $as_found
2942then :
2943
2944else $as_nop
2945  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2946fi
2947
2948
2949# These three variables are undocumented and unsupported,
2950# and are intended to be withdrawn in a future Autoconf release.
2951# They can cause serious problems if a builder's source tree is in a directory
2952# whose full name contains unusual characters.
2953if test -f "${ac_aux_dir}config.guess"; then
2954  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2955fi
2956if test -f "${ac_aux_dir}config.sub"; then
2957  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2958fi
2959if test -f "$ac_aux_dir/configure"; then
2960  ac_configure="$SHELL ${ac_aux_dir}configure"
2961fi
2962
2963# Check that the precious variables saved in the cache have kept the same
2964# value.
2965ac_cache_corrupted=false
2966for ac_var in $ac_precious_vars; do
2967  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968  eval ac_new_set=\$ac_env_${ac_var}_set
2969  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970  eval ac_new_val=\$ac_env_${ac_var}_value
2971  case $ac_old_set,$ac_new_set in
2972    set,)
2973      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975      ac_cache_corrupted=: ;;
2976    ,set)
2977      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979      ac_cache_corrupted=: ;;
2980    ,);;
2981    *)
2982      if test "x$ac_old_val" != "x$ac_new_val"; then
2983	# differences in whitespace do not lead to failure.
2984	ac_old_val_w=`echo x $ac_old_val`
2985	ac_new_val_w=`echo x $ac_new_val`
2986	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989	  ac_cache_corrupted=:
2990	else
2991	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993	  eval $ac_var=\$ac_old_val
2994	fi
2995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2996printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2998printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2999      fi;;
3000  esac
3001  # Pass precious variables to config.status.
3002  if test "$ac_new_set" = set; then
3003    case $ac_new_val in
3004    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005    *) ac_arg=$ac_var=$ac_new_val ;;
3006    esac
3007    case " $ac_configure_args " in
3008      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3009      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010    esac
3011  fi
3012done
3013if $ac_cache_corrupted; then
3014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3018  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3019	    and start over" "$LINENO" 5
3020fi
3021## -------------------- ##
3022## Main body of script. ##
3023## -------------------- ##
3024
3025ac_ext=c
3026ac_cpp='$CPP $CPPFLAGS'
3027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040  # Make sure we can run config.sub.
3041$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3042  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3043
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045printf %s "checking build system type... " >&6; }
3046if test ${ac_cv_build+y}
3047then :
3048  printf %s "(cached) " >&6
3049else $as_nop
3050  ac_build_alias=$build_alias
3051test "x$ac_build_alias" = x &&
3052  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3053test "x$ac_build_alias" = x &&
3054  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3055ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3056  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3057
3058fi
3059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060printf "%s\n" "$ac_cv_build" >&6; }
3061case $ac_cv_build in
3062*-*-*) ;;
3063*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3064esac
3065build=$ac_cv_build
3066ac_save_IFS=$IFS; IFS='-'
3067set x $ac_cv_build
3068shift
3069build_cpu=$1
3070build_vendor=$2
3071shift; shift
3072# Remember, the first character of IFS is used to create $*,
3073# except with old shells:
3074build_os=$*
3075IFS=$ac_save_IFS
3076case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077
3078
3079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080printf %s "checking host system type... " >&6; }
3081if test ${ac_cv_host+y}
3082then :
3083  printf %s "(cached) " >&6
3084else $as_nop
3085  if test "x$host_alias" = x; then
3086  ac_cv_host=$ac_cv_build
3087else
3088  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3089    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3090fi
3091
3092fi
3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3094printf "%s\n" "$ac_cv_host" >&6; }
3095case $ac_cv_host in
3096*-*-*) ;;
3097*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3098esac
3099host=$ac_cv_host
3100ac_save_IFS=$IFS; IFS='-'
3101set x $ac_cv_host
3102shift
3103host_cpu=$1
3104host_vendor=$2
3105shift; shift
3106# Remember, the first character of IFS is used to create $*,
3107# except with old shells:
3108host_os=$*
3109IFS=$ac_save_IFS
3110case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3111
3112
3113am__api_version='1.16'
3114
3115
3116  # Find a good install program.  We prefer a C program (faster),
3117# so one script is as good as another.  But avoid the broken or
3118# incompatible versions:
3119# SysV /etc/install, /usr/sbin/install
3120# SunOS /usr/etc/install
3121# IRIX /sbin/install
3122# AIX /bin/install
3123# AmigaOS /C/install, which installs bootblocks on floppy discs
3124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3127# OS/2's system install, which has a completely different semantic
3128# ./install, which can be erroneously created by make from ./install.sh.
3129# Reject install programs that cannot install multiple files.
3130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3131printf %s "checking for a BSD-compatible install... " >&6; }
3132if test -z "$INSTALL"; then
3133if test ${ac_cv_path_install+y}
3134then :
3135  printf %s "(cached) " >&6
3136else $as_nop
3137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  case $as_dir in #(((
3142    '') as_dir=./ ;;
3143    */) ;;
3144    *) as_dir=$as_dir/ ;;
3145  esac
3146    # Account for fact that we put trailing slashes in our PATH walk.
3147case $as_dir in #((
3148  ./ | /[cC]/* | \
3149  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3150  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3151  /usr/ucb/* ) ;;
3152  *)
3153    # OSF1 and SCO ODT 3.0 have their own names for install.
3154    # Don't use installbsd from OSF since it installs stuff as root
3155    # by default.
3156    for ac_prog in ginstall scoinst install; do
3157      for ac_exec_ext in '' $ac_executable_extensions; do
3158	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3159	  if test $ac_prog = install &&
3160	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3161	    # AIX install.  It has an incompatible calling convention.
3162	    :
3163	  elif test $ac_prog = install &&
3164	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3165	    # program-specific install script used by HP pwplus--don't use.
3166	    :
3167	  else
3168	    rm -rf conftest.one conftest.two conftest.dir
3169	    echo one > conftest.one
3170	    echo two > conftest.two
3171	    mkdir conftest.dir
3172	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3173	      test -s conftest.one && test -s conftest.two &&
3174	      test -s conftest.dir/conftest.one &&
3175	      test -s conftest.dir/conftest.two
3176	    then
3177	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3178	      break 3
3179	    fi
3180	  fi
3181	fi
3182      done
3183    done
3184    ;;
3185esac
3186
3187  done
3188IFS=$as_save_IFS
3189
3190rm -rf conftest.one conftest.two conftest.dir
3191
3192fi
3193  if test ${ac_cv_path_install+y}; then
3194    INSTALL=$ac_cv_path_install
3195  else
3196    # As a last resort, use the slow shell script.  Don't cache a
3197    # value for INSTALL within a source directory, because that will
3198    # break other packages using the cache if that directory is
3199    # removed, or if the value is a relative name.
3200    INSTALL=$ac_install_sh
3201  fi
3202fi
3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3204printf "%s\n" "$INSTALL" >&6; }
3205
3206# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3207# It thinks the first close brace ends the variable substitution.
3208test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3209
3210test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3211
3212test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3213
3214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3215printf %s "checking whether build environment is sane... " >&6; }
3216# Reject unsafe characters in $srcdir or the absolute working directory
3217# name.  Accept space and tab only in the latter.
3218am_lf='
3219'
3220case `pwd` in
3221  *[\\\"\#\$\&\'\`$am_lf]*)
3222    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3223esac
3224case $srcdir in
3225  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3226    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3227esac
3228
3229# Do 'set' in a subshell so we don't clobber the current shell's
3230# arguments.  Must try -L first in case configure is actually a
3231# symlink; some systems play weird games with the mod time of symlinks
3232# (eg FreeBSD returns the mod time of the symlink's containing
3233# directory).
3234if (
3235   am_has_slept=no
3236   for am_try in 1 2; do
3237     echo "timestamp, slept: $am_has_slept" > conftest.file
3238     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3239     if test "$*" = "X"; then
3240	# -L didn't work.
3241	set X `ls -t "$srcdir/configure" conftest.file`
3242     fi
3243     if test "$*" != "X $srcdir/configure conftest.file" \
3244	&& test "$*" != "X conftest.file $srcdir/configure"; then
3245
3246	# If neither matched, then we have a broken ls.  This can happen
3247	# if, for instance, CONFIG_SHELL is bash and it inherits a
3248	# broken ls alias from the environment.  This has actually
3249	# happened.  Such a system could not be considered "sane".
3250	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3251  alias in your environment" "$LINENO" 5
3252     fi
3253     if test "$2" = conftest.file || test $am_try -eq 2; then
3254       break
3255     fi
3256     # Just in case.
3257     sleep 1
3258     am_has_slept=yes
3259   done
3260   test "$2" = conftest.file
3261   )
3262then
3263   # Ok.
3264   :
3265else
3266   as_fn_error $? "newly created file is older than distributed files!
3267Check your system clock" "$LINENO" 5
3268fi
3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270printf "%s\n" "yes" >&6; }
3271# If we didn't sleep, we still need to ensure time stamps of config.status and
3272# generated files are strictly newer.
3273am_sleep_pid=
3274if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3275  ( sleep 1 ) &
3276  am_sleep_pid=$!
3277fi
3278
3279rm -f conftest.file
3280
3281test "$program_prefix" != NONE &&
3282  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3283# Use a double $ so make ignores it.
3284test "$program_suffix" != NONE &&
3285  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3286# Double any \ or $.
3287# By default was `s,x,x', remove it if useless.
3288ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3289program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3290
3291
3292# Expand $ac_aux_dir to an absolute path.
3293am_aux_dir=`cd "$ac_aux_dir" && pwd`
3294
3295
3296  if test x"${MISSING+set}" != xset; then
3297  MISSING="\${SHELL} '$am_aux_dir/missing'"
3298fi
3299# Use eval to expand $SHELL
3300if eval "$MISSING --is-lightweight"; then
3301  am_missing_run="$MISSING "
3302else
3303  am_missing_run=
3304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3305printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3306fi
3307
3308if test x"${install_sh+set}" != xset; then
3309  case $am_aux_dir in
3310  *\ * | *\	*)
3311    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3312  *)
3313    install_sh="\${SHELL} $am_aux_dir/install-sh"
3314  esac
3315fi
3316
3317# Installed binaries are usually stripped using 'strip' when the user
3318# run "make install-strip".  However 'strip' might not be the right
3319# tool to use in cross-compilation environments, therefore Automake
3320# will honor the 'STRIP' environment variable to overrule this program.
3321if test "$cross_compiling" != no; then
3322  if test -n "$ac_tool_prefix"; then
3323  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3324set dummy ${ac_tool_prefix}strip; ac_word=$2
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326printf %s "checking for $ac_word... " >&6; }
3327if test ${ac_cv_prog_STRIP+y}
3328then :
3329  printf %s "(cached) " >&6
3330else $as_nop
3331  if test -n "$STRIP"; then
3332  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337  IFS=$as_save_IFS
3338  case $as_dir in #(((
3339    '') as_dir=./ ;;
3340    */) ;;
3341    *) as_dir=$as_dir/ ;;
3342  esac
3343    for ac_exec_ext in '' $ac_executable_extensions; do
3344  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350  done
3351IFS=$as_save_IFS
3352
3353fi
3354fi
3355STRIP=$ac_cv_prog_STRIP
3356if test -n "$STRIP"; then
3357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3358printf "%s\n" "$STRIP" >&6; }
3359else
3360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361printf "%s\n" "no" >&6; }
3362fi
3363
3364
3365fi
3366if test -z "$ac_cv_prog_STRIP"; then
3367  ac_ct_STRIP=$STRIP
3368  # Extract the first word of "strip", so it can be a program name with args.
3369set dummy strip; ac_word=$2
3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371printf %s "checking for $ac_word... " >&6; }
3372if test ${ac_cv_prog_ac_ct_STRIP+y}
3373then :
3374  printf %s "(cached) " >&6
3375else $as_nop
3376  if test -n "$ac_ct_STRIP"; then
3377  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382  IFS=$as_save_IFS
3383  case $as_dir in #(((
3384    '') as_dir=./ ;;
3385    */) ;;
3386    *) as_dir=$as_dir/ ;;
3387  esac
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3390    ac_cv_prog_ac_ct_STRIP="strip"
3391    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395  done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401if test -n "$ac_ct_STRIP"; then
3402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3403printf "%s\n" "$ac_ct_STRIP" >&6; }
3404else
3405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406printf "%s\n" "no" >&6; }
3407fi
3408
3409  if test "x$ac_ct_STRIP" = x; then
3410    STRIP=":"
3411  else
3412    case $cross_compiling:$ac_tool_warned in
3413yes:)
3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416ac_tool_warned=yes ;;
3417esac
3418    STRIP=$ac_ct_STRIP
3419  fi
3420else
3421  STRIP="$ac_cv_prog_STRIP"
3422fi
3423
3424fi
3425INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3426
3427
3428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3429printf %s "checking for a race-free mkdir -p... " >&6; }
3430if test -z "$MKDIR_P"; then
3431  if test ${ac_cv_path_mkdir+y}
3432then :
3433  printf %s "(cached) " >&6
3434else $as_nop
3435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3437do
3438  IFS=$as_save_IFS
3439  case $as_dir in #(((
3440    '') as_dir=./ ;;
3441    */) ;;
3442    *) as_dir=$as_dir/ ;;
3443  esac
3444    for ac_prog in mkdir gmkdir; do
3445	 for ac_exec_ext in '' $ac_executable_extensions; do
3446	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3447	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3448	     'mkdir ('*'coreutils) '* | \
3449	     'BusyBox '* | \
3450	     'mkdir (fileutils) '4.1*)
3451	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3452	       break 3;;
3453	   esac
3454	 done
3455       done
3456  done
3457IFS=$as_save_IFS
3458
3459fi
3460
3461  test -d ./--version && rmdir ./--version
3462  if test ${ac_cv_path_mkdir+y}; then
3463    MKDIR_P="$ac_cv_path_mkdir -p"
3464  else
3465    # As a last resort, use the slow shell script.  Don't cache a
3466    # value for MKDIR_P within a source directory, because that will
3467    # break other packages using the cache if that directory is
3468    # removed, or if the value is a relative name.
3469    MKDIR_P="$ac_install_sh -d"
3470  fi
3471fi
3472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3473printf "%s\n" "$MKDIR_P" >&6; }
3474
3475for ac_prog in gawk mawk nawk awk
3476do
3477  # Extract the first word of "$ac_prog", so it can be a program name with args.
3478set dummy $ac_prog; ac_word=$2
3479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480printf %s "checking for $ac_word... " >&6; }
3481if test ${ac_cv_prog_AWK+y}
3482then :
3483  printf %s "(cached) " >&6
3484else $as_nop
3485  if test -n "$AWK"; then
3486  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  case $as_dir in #(((
3493    '') as_dir=./ ;;
3494    */) ;;
3495    *) as_dir=$as_dir/ ;;
3496  esac
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3499    ac_cv_prog_AWK="$ac_prog"
3500    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3501    break 2
3502  fi
3503done
3504  done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509AWK=$ac_cv_prog_AWK
3510if test -n "$AWK"; then
3511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3512printf "%s\n" "$AWK" >&6; }
3513else
3514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515printf "%s\n" "no" >&6; }
3516fi
3517
3518
3519  test -n "$AWK" && break
3520done
3521
3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3523printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3524set x ${MAKE-make}
3525ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3526if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3527then :
3528  printf %s "(cached) " >&6
3529else $as_nop
3530  cat >conftest.make <<\_ACEOF
3531SHELL = /bin/sh
3532all:
3533	@echo '@@@%%%=$(MAKE)=@@@%%%'
3534_ACEOF
3535# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3536case `${MAKE-make} -f conftest.make 2>/dev/null` in
3537  *@@@%%%=?*=@@@%%%*)
3538    eval ac_cv_prog_make_${ac_make}_set=yes;;
3539  *)
3540    eval ac_cv_prog_make_${ac_make}_set=no;;
3541esac
3542rm -f conftest.make
3543fi
3544if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546printf "%s\n" "yes" >&6; }
3547  SET_MAKE=
3548else
3549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550printf "%s\n" "no" >&6; }
3551  SET_MAKE="MAKE=${MAKE-make}"
3552fi
3553
3554rm -rf .tst 2>/dev/null
3555mkdir .tst 2>/dev/null
3556if test -d .tst; then
3557  am__leading_dot=.
3558else
3559  am__leading_dot=_
3560fi
3561rmdir .tst 2>/dev/null
3562
3563# Check whether --enable-silent-rules was given.
3564if test ${enable_silent_rules+y}
3565then :
3566  enableval=$enable_silent_rules;
3567fi
3568
3569case $enable_silent_rules in # (((
3570  yes) AM_DEFAULT_VERBOSITY=0;;
3571   no) AM_DEFAULT_VERBOSITY=1;;
3572    *) AM_DEFAULT_VERBOSITY=1;;
3573esac
3574am_make=${MAKE-make}
3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3576printf %s "checking whether $am_make supports nested variables... " >&6; }
3577if test ${am_cv_make_support_nested_variables+y}
3578then :
3579  printf %s "(cached) " >&6
3580else $as_nop
3581  if printf "%s\n" 'TRUE=$(BAR$(V))
3582BAR0=false
3583BAR1=true
3584V=1
3585am__doit:
3586	@$(TRUE)
3587.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3588  am_cv_make_support_nested_variables=yes
3589else
3590  am_cv_make_support_nested_variables=no
3591fi
3592fi
3593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3594printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3595if test $am_cv_make_support_nested_variables = yes; then
3596    AM_V='$(V)'
3597  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3598else
3599  AM_V=$AM_DEFAULT_VERBOSITY
3600  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3601fi
3602AM_BACKSLASH='\'
3603
3604if test "`cd $srcdir && pwd`" != "`pwd`"; then
3605  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3606  # is not polluted with repeated "-I."
3607  am__isrc=' -I$(srcdir)'
3608  # test to see if srcdir already configured
3609  if test -f $srcdir/config.status; then
3610    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3611  fi
3612fi
3613
3614# test whether we have cygpath
3615if test -z "$CYGPATH_W"; then
3616  if (cygpath --version) >/dev/null 2>/dev/null; then
3617    CYGPATH_W='cygpath -w'
3618  else
3619    CYGPATH_W=echo
3620  fi
3621fi
3622
3623
3624# Define the identity of the package.
3625 PACKAGE='expat'
3626 VERSION='2.3.0'
3627
3628
3629printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3630
3631
3632printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3633
3634# Some tools Automake needs.
3635
3636ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3637
3638
3639AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3640
3641
3642AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3643
3644
3645AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3646
3647
3648MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3649
3650# For better backward compatibility.  To be removed once Automake 1.9.x
3651# dies out for good.  For more background, see:
3652# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3653# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3654mkdir_p='$(MKDIR_P)'
3655
3656# We need awk for the "check" target (and possibly the TAP driver).  The
3657# system "awk" is bad on some platforms.
3658# Always define AMTAR for backward compatibility.  Yes, it's still used
3659# in the wild :-(  We should find a proper way to deprecate it ...
3660AMTAR='$${TAR-tar}'
3661
3662
3663# We'll loop over all known methods to create a tar archive until one works.
3664_am_tools='gnutar  pax cpio none'
3665
3666am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3667
3668
3669
3670
3671
3672
3673# POSIX will say in a future version that running "rm -f" with no argument
3674# is OK; and we want to be able to make that assumption in our Makefile
3675# recipes.  So use an aggressive probe to check that the usage we want is
3676# actually supported "in the wild" to an acceptable degree.
3677# See automake bug#10828.
3678# To make any issue more visible, cause the running configure to be aborted
3679# by default if the 'rm' program in use doesn't match our expectations; the
3680# user can still override this though.
3681if rm -f && rm -fr && rm -rf; then : OK; else
3682  cat >&2 <<'END'
3683Oops!
3684
3685Your 'rm' program seems unable to run without file operands specified
3686on the command line, even when the '-f' option is present.  This is contrary
3687to the behaviour of most rm programs out there, and not conforming with
3688the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3689
3690Please tell bug-automake@gnu.org about your system, including the value
3691of your $PATH and any error possibly output before this message.  This
3692can help us improve future automake versions.
3693
3694END
3695  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3696    echo 'Configuration will proceed anyway, since you have set the' >&2
3697    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3698    echo >&2
3699  else
3700    cat >&2 <<'END'
3701Aborting the configuration process, to ensure you take notice of the issue.
3702
3703You can download and install GNU coreutils to get an 'rm' implementation
3704that behaves properly: <https://www.gnu.org/software/coreutils/>.
3705
3706If you want to complete the configuration process using your problematic
3707'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3708to "yes", and re-run configure.
3709
3710END
3711    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3712  fi
3713fi
3714
3715
3716
3717
3718LIBCURRENT=8   # sync
3719LIBREVISION=0  # with
3720LIBAGE=7       # CMakeLists.txt!
3721
3722
3723if test ${AM_CPPFLAGS+y}
3724then :
3725
3726  case " $AM_CPPFLAGS " in #(
3727  *" -DHAVE_EXPAT_CONFIG_H "*) :
3728    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H"; } >&5
3729  (: AM_CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H) 2>&5
3730  ac_status=$?
3731  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732  test $ac_status = 0; } ;; #(
3733  *) :
3734
3735     as_fn_append AM_CPPFLAGS " -DHAVE_EXPAT_CONFIG_H"
3736     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
3737  (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
3738  ac_status=$?
3739  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740  test $ac_status = 0; }
3741     ;;
3742esac
3743
3744else $as_nop
3745
3746  AM_CPPFLAGS=-DHAVE_EXPAT_CONFIG_H
3747  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
3748  (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
3749  ac_status=$?
3750  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751  test $ac_status = 0; }
3752
3753fi
3754
3755ac_config_headers="$ac_config_headers expat_config.h"
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767DEPDIR="${am__leading_dot}deps"
3768
3769ac_config_commands="$ac_config_commands depfiles"
3770
3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3772printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3773cat > confinc.mk << 'END'
3774am__doit:
3775	@echo this is the am__doit target >confinc.out
3776.PHONY: am__doit
3777END
3778am__include="#"
3779am__quote=
3780# BSD make does it like this.
3781echo '.include "confinc.mk" # ignored' > confmf.BSD
3782# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3783echo 'include confinc.mk # ignored' > confmf.GNU
3784_am_result=no
3785for s in GNU BSD; do
3786  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3787   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); }
3791  case $?:`cat confinc.out 2>/dev/null` in #(
3792  '0:this is the am__doit target') :
3793    case $s in #(
3794  BSD) :
3795    am__include='.include' am__quote='"' ;; #(
3796  *) :
3797    am__include='include' am__quote='' ;;
3798esac ;; #(
3799  *) :
3800     ;;
3801esac
3802  if test "$am__include" != "#"; then
3803    _am_result="yes ($s style)"
3804    break
3805  fi
3806done
3807rm -f confinc.* confmf.*
3808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3809printf "%s\n" "${_am_result}" >&6; }
3810
3811# Check whether --enable-dependency-tracking was given.
3812if test ${enable_dependency_tracking+y}
3813then :
3814  enableval=$enable_dependency_tracking;
3815fi
3816
3817if test "x$enable_dependency_tracking" != xno; then
3818  am_depcomp="$ac_aux_dir/depcomp"
3819  AMDEPBACKSLASH='\'
3820  am__nodep='_no'
3821fi
3822 if test "x$enable_dependency_tracking" != xno; then
3823  AMDEP_TRUE=
3824  AMDEP_FALSE='#'
3825else
3826  AMDEP_TRUE='#'
3827  AMDEP_FALSE=
3828fi
3829
3830
3831ac_ext=c
3832ac_cpp='$CPP $CPPFLAGS'
3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836if test -n "$ac_tool_prefix"; then
3837  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3838set dummy ${ac_tool_prefix}gcc; ac_word=$2
3839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840printf %s "checking for $ac_word... " >&6; }
3841if test ${ac_cv_prog_CC+y}
3842then :
3843  printf %s "(cached) " >&6
3844else $as_nop
3845  if test -n "$CC"; then
3846  ac_cv_prog_CC="$CC" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851  IFS=$as_save_IFS
3852  case $as_dir in #(((
3853    '') as_dir=./ ;;
3854    */) ;;
3855    *) as_dir=$as_dir/ ;;
3856  esac
3857    for ac_exec_ext in '' $ac_executable_extensions; do
3858  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3859    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3860    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3861    break 2
3862  fi
3863done
3864  done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869CC=$ac_cv_prog_CC
3870if test -n "$CC"; then
3871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872printf "%s\n" "$CC" >&6; }
3873else
3874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875printf "%s\n" "no" >&6; }
3876fi
3877
3878
3879fi
3880if test -z "$ac_cv_prog_CC"; then
3881  ac_ct_CC=$CC
3882  # Extract the first word of "gcc", so it can be a program name with args.
3883set dummy gcc; ac_word=$2
3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885printf %s "checking for $ac_word... " >&6; }
3886if test ${ac_cv_prog_ac_ct_CC+y}
3887then :
3888  printf %s "(cached) " >&6
3889else $as_nop
3890  if test -n "$ac_ct_CC"; then
3891  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896  IFS=$as_save_IFS
3897  case $as_dir in #(((
3898    '') as_dir=./ ;;
3899    */) ;;
3900    *) as_dir=$as_dir/ ;;
3901  esac
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3904    ac_cv_prog_ac_ct_CC="gcc"
3905    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3906    break 2
3907  fi
3908done
3909  done
3910IFS=$as_save_IFS
3911
3912fi
3913fi
3914ac_ct_CC=$ac_cv_prog_ac_ct_CC
3915if test -n "$ac_ct_CC"; then
3916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3917printf "%s\n" "$ac_ct_CC" >&6; }
3918else
3919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920printf "%s\n" "no" >&6; }
3921fi
3922
3923  if test "x$ac_ct_CC" = x; then
3924    CC=""
3925  else
3926    case $cross_compiling:$ac_tool_warned in
3927yes:)
3928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3929printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3930ac_tool_warned=yes ;;
3931esac
3932    CC=$ac_ct_CC
3933  fi
3934else
3935  CC="$ac_cv_prog_CC"
3936fi
3937
3938if test -z "$CC"; then
3939          if test -n "$ac_tool_prefix"; then
3940    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3941set dummy ${ac_tool_prefix}cc; ac_word=$2
3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3943printf %s "checking for $ac_word... " >&6; }
3944if test ${ac_cv_prog_CC+y}
3945then :
3946  printf %s "(cached) " >&6
3947else $as_nop
3948  if test -n "$CC"; then
3949  ac_cv_prog_CC="$CC" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954  IFS=$as_save_IFS
3955  case $as_dir in #(((
3956    '') as_dir=./ ;;
3957    */) ;;
3958    *) as_dir=$as_dir/ ;;
3959  esac
3960    for ac_exec_ext in '' $ac_executable_extensions; do
3961  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3962    ac_cv_prog_CC="${ac_tool_prefix}cc"
3963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3964    break 2
3965  fi
3966done
3967  done
3968IFS=$as_save_IFS
3969
3970fi
3971fi
3972CC=$ac_cv_prog_CC
3973if test -n "$CC"; then
3974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975printf "%s\n" "$CC" >&6; }
3976else
3977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978printf "%s\n" "no" >&6; }
3979fi
3980
3981
3982  fi
3983fi
3984if test -z "$CC"; then
3985  # Extract the first word of "cc", so it can be a program name with args.
3986set dummy cc; ac_word=$2
3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988printf %s "checking for $ac_word... " >&6; }
3989if test ${ac_cv_prog_CC+y}
3990then :
3991  printf %s "(cached) " >&6
3992else $as_nop
3993  if test -n "$CC"; then
3994  ac_cv_prog_CC="$CC" # Let the user override the test.
3995else
3996  ac_prog_rejected=no
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000  IFS=$as_save_IFS
4001  case $as_dir in #(((
4002    '') as_dir=./ ;;
4003    */) ;;
4004    *) as_dir=$as_dir/ ;;
4005  esac
4006    for ac_exec_ext in '' $ac_executable_extensions; do
4007  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4008    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4009       ac_prog_rejected=yes
4010       continue
4011     fi
4012    ac_cv_prog_CC="cc"
4013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4014    break 2
4015  fi
4016done
4017  done
4018IFS=$as_save_IFS
4019
4020if test $ac_prog_rejected = yes; then
4021  # We found a bogon in the path, so make sure we never use it.
4022  set dummy $ac_cv_prog_CC
4023  shift
4024  if test $# != 0; then
4025    # We chose a different compiler from the bogus one.
4026    # However, it has the same basename, so the bogon will be chosen
4027    # first if we set CC to just the basename; use the full file name.
4028    shift
4029    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4030  fi
4031fi
4032fi
4033fi
4034CC=$ac_cv_prog_CC
4035if test -n "$CC"; then
4036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037printf "%s\n" "$CC" >&6; }
4038else
4039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040printf "%s\n" "no" >&6; }
4041fi
4042
4043
4044fi
4045if test -z "$CC"; then
4046  if test -n "$ac_tool_prefix"; then
4047  for ac_prog in cl.exe
4048  do
4049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052printf %s "checking for $ac_word... " >&6; }
4053if test ${ac_cv_prog_CC+y}
4054then :
4055  printf %s "(cached) " >&6
4056else $as_nop
4057  if test -n "$CC"; then
4058  ac_cv_prog_CC="$CC" # Let the user override the test.
4059else
4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063  IFS=$as_save_IFS
4064  case $as_dir in #(((
4065    '') as_dir=./ ;;
4066    */) ;;
4067    *) as_dir=$as_dir/ ;;
4068  esac
4069    for ac_exec_ext in '' $ac_executable_extensions; do
4070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4071    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4073    break 2
4074  fi
4075done
4076  done
4077IFS=$as_save_IFS
4078
4079fi
4080fi
4081CC=$ac_cv_prog_CC
4082if test -n "$CC"; then
4083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4084printf "%s\n" "$CC" >&6; }
4085else
4086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087printf "%s\n" "no" >&6; }
4088fi
4089
4090
4091    test -n "$CC" && break
4092  done
4093fi
4094if test -z "$CC"; then
4095  ac_ct_CC=$CC
4096  for ac_prog in cl.exe
4097do
4098  # Extract the first word of "$ac_prog", so it can be a program name with args.
4099set dummy $ac_prog; ac_word=$2
4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101printf %s "checking for $ac_word... " >&6; }
4102if test ${ac_cv_prog_ac_ct_CC+y}
4103then :
4104  printf %s "(cached) " >&6
4105else $as_nop
4106  if test -n "$ac_ct_CC"; then
4107  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112  IFS=$as_save_IFS
4113  case $as_dir in #(((
4114    '') as_dir=./ ;;
4115    */) ;;
4116    *) as_dir=$as_dir/ ;;
4117  esac
4118    for ac_exec_ext in '' $ac_executable_extensions; do
4119  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4120    ac_cv_prog_ac_ct_CC="$ac_prog"
4121    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4122    break 2
4123  fi
4124done
4125  done
4126IFS=$as_save_IFS
4127
4128fi
4129fi
4130ac_ct_CC=$ac_cv_prog_ac_ct_CC
4131if test -n "$ac_ct_CC"; then
4132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4133printf "%s\n" "$ac_ct_CC" >&6; }
4134else
4135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136printf "%s\n" "no" >&6; }
4137fi
4138
4139
4140  test -n "$ac_ct_CC" && break
4141done
4142
4143  if test "x$ac_ct_CC" = x; then
4144    CC=""
4145  else
4146    case $cross_compiling:$ac_tool_warned in
4147yes:)
4148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4149printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4150ac_tool_warned=yes ;;
4151esac
4152    CC=$ac_ct_CC
4153  fi
4154fi
4155
4156fi
4157if test -z "$CC"; then
4158  if test -n "$ac_tool_prefix"; then
4159  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4160set dummy ${ac_tool_prefix}clang; ac_word=$2
4161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162printf %s "checking for $ac_word... " >&6; }
4163if test ${ac_cv_prog_CC+y}
4164then :
4165  printf %s "(cached) " >&6
4166else $as_nop
4167  if test -n "$CC"; then
4168  ac_cv_prog_CC="$CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  case $as_dir in #(((
4175    '') as_dir=./ ;;
4176    */) ;;
4177    *) as_dir=$as_dir/ ;;
4178  esac
4179    for ac_exec_ext in '' $ac_executable_extensions; do
4180  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4181    ac_cv_prog_CC="${ac_tool_prefix}clang"
4182    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4183    break 2
4184  fi
4185done
4186  done
4187IFS=$as_save_IFS
4188
4189fi
4190fi
4191CC=$ac_cv_prog_CC
4192if test -n "$CC"; then
4193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194printf "%s\n" "$CC" >&6; }
4195else
4196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197printf "%s\n" "no" >&6; }
4198fi
4199
4200
4201fi
4202if test -z "$ac_cv_prog_CC"; then
4203  ac_ct_CC=$CC
4204  # Extract the first word of "clang", so it can be a program name with args.
4205set dummy clang; ac_word=$2
4206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207printf %s "checking for $ac_word... " >&6; }
4208if test ${ac_cv_prog_ac_ct_CC+y}
4209then :
4210  printf %s "(cached) " >&6
4211else $as_nop
4212  if test -n "$ac_ct_CC"; then
4213  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218  IFS=$as_save_IFS
4219  case $as_dir in #(((
4220    '') as_dir=./ ;;
4221    */) ;;
4222    *) as_dir=$as_dir/ ;;
4223  esac
4224    for ac_exec_ext in '' $ac_executable_extensions; do
4225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4226    ac_cv_prog_ac_ct_CC="clang"
4227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231  done
4232IFS=$as_save_IFS
4233
4234fi
4235fi
4236ac_ct_CC=$ac_cv_prog_ac_ct_CC
4237if test -n "$ac_ct_CC"; then
4238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239printf "%s\n" "$ac_ct_CC" >&6; }
4240else
4241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242printf "%s\n" "no" >&6; }
4243fi
4244
4245  if test "x$ac_ct_CC" = x; then
4246    CC=""
4247  else
4248    case $cross_compiling:$ac_tool_warned in
4249yes:)
4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252ac_tool_warned=yes ;;
4253esac
4254    CC=$ac_ct_CC
4255  fi
4256else
4257  CC="$ac_cv_prog_CC"
4258fi
4259
4260fi
4261
4262
4263test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4264printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4265as_fn_error $? "no acceptable C compiler found in \$PATH
4266See \`config.log' for more details" "$LINENO" 5; }
4267
4268# Provide some information about the compiler.
4269printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4270set X $ac_compile
4271ac_compiler=$2
4272for ac_option in --version -v -V -qversion -version; do
4273  { { ac_try="$ac_compiler $ac_option >&5"
4274case "(($ac_try" in
4275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276  *) ac_try_echo=$ac_try;;
4277esac
4278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279printf "%s\n" "$ac_try_echo"; } >&5
4280  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4281  ac_status=$?
4282  if test -s conftest.err; then
4283    sed '10a\
4284... rest of stderr output deleted ...
4285         10q' conftest.err >conftest.er1
4286    cat conftest.er1 >&5
4287  fi
4288  rm -f conftest.er1 conftest.err
4289  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290  test $ac_status = 0; }
4291done
4292
4293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h.  */
4295
4296int
4297main (void)
4298{
4299
4300  ;
4301  return 0;
4302}
4303_ACEOF
4304ac_clean_files_save=$ac_clean_files
4305ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4306# Try to create an executable without -o first, disregard a.out.
4307# It will help us diagnose broken compilers, and finding out an intuition
4308# of exeext.
4309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4310printf %s "checking whether the C compiler works... " >&6; }
4311ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4312
4313# The possible output files:
4314ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4315
4316ac_rmfiles=
4317for ac_file in $ac_files
4318do
4319  case $ac_file in
4320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4321    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4322  esac
4323done
4324rm -f $ac_rmfiles
4325
4326if { { ac_try="$ac_link_default"
4327case "(($ac_try" in
4328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329  *) ac_try_echo=$ac_try;;
4330esac
4331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332printf "%s\n" "$ac_try_echo"; } >&5
4333  (eval "$ac_link_default") 2>&5
4334  ac_status=$?
4335  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336  test $ac_status = 0; }
4337then :
4338  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4339# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4340# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4341# so that the user can short-circuit this test for compilers unknown to
4342# Autoconf.
4343for ac_file in $ac_files ''
4344do
4345  test -f "$ac_file" || continue
4346  case $ac_file in
4347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4348	;;
4349    [ab].out )
4350	# We found the default executable, but exeext='' is most
4351	# certainly right.
4352	break;;
4353    *.* )
4354	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4355	then :; else
4356	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357	fi
4358	# We set ac_cv_exeext here because the later test for it is not
4359	# safe: cross compilers may not add the suffix if given an `-o'
4360	# argument, so we may need to know it at that point already.
4361	# Even if this section looks crufty: it has the advantage of
4362	# actually working.
4363	break;;
4364    * )
4365	break;;
4366  esac
4367done
4368test "$ac_cv_exeext" = no && ac_cv_exeext=
4369
4370else $as_nop
4371  ac_file=''
4372fi
4373if test -z "$ac_file"
4374then :
4375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376printf "%s\n" "no" >&6; }
4377printf "%s\n" "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4381printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4382as_fn_error 77 "C compiler cannot create executables
4383See \`config.log' for more details" "$LINENO" 5; }
4384else $as_nop
4385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386printf "%s\n" "yes" >&6; }
4387fi
4388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4389printf %s "checking for C compiler default output file name... " >&6; }
4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4391printf "%s\n" "$ac_file" >&6; }
4392ac_exeext=$ac_cv_exeext
4393
4394rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4395ac_clean_files=$ac_clean_files_save
4396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4397printf %s "checking for suffix of executables... " >&6; }
4398if { { ac_try="$ac_link"
4399case "(($ac_try" in
4400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401  *) ac_try_echo=$ac_try;;
4402esac
4403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404printf "%s\n" "$ac_try_echo"; } >&5
4405  (eval "$ac_link") 2>&5
4406  ac_status=$?
4407  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408  test $ac_status = 0; }
4409then :
4410  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4411# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4412# work properly (i.e., refer to `conftest.exe'), while it won't with
4413# `rm'.
4414for ac_file in conftest.exe conftest conftest.*; do
4415  test -f "$ac_file" || continue
4416  case $ac_file in
4417    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4418    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4419	  break;;
4420    * ) break;;
4421  esac
4422done
4423else $as_nop
4424  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4426as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4427See \`config.log' for more details" "$LINENO" 5; }
4428fi
4429rm -f conftest conftest$ac_cv_exeext
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4431printf "%s\n" "$ac_cv_exeext" >&6; }
4432
4433rm -f conftest.$ac_ext
4434EXEEXT=$ac_cv_exeext
4435ac_exeext=$EXEEXT
4436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h.  */
4438#include <stdio.h>
4439int
4440main (void)
4441{
4442FILE *f = fopen ("conftest.out", "w");
4443 return ferror (f) || fclose (f) != 0;
4444
4445  ;
4446  return 0;
4447}
4448_ACEOF
4449ac_clean_files="$ac_clean_files conftest.out"
4450# Check that the compiler produces executables we can run.  If not, either
4451# the compiler is broken, or we cross compile.
4452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4453printf %s "checking whether we are cross compiling... " >&6; }
4454if test "$cross_compiling" != yes; then
4455  { { ac_try="$ac_link"
4456case "(($ac_try" in
4457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458  *) ac_try_echo=$ac_try;;
4459esac
4460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461printf "%s\n" "$ac_try_echo"; } >&5
4462  (eval "$ac_link") 2>&5
4463  ac_status=$?
4464  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465  test $ac_status = 0; }
4466  if { ac_try='./conftest$ac_cv_exeext'
4467  { { case "(($ac_try" in
4468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469  *) ac_try_echo=$ac_try;;
4470esac
4471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472printf "%s\n" "$ac_try_echo"; } >&5
4473  (eval "$ac_try") 2>&5
4474  ac_status=$?
4475  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476  test $ac_status = 0; }; }; then
4477    cross_compiling=no
4478  else
4479    if test "$cross_compiling" = maybe; then
4480	cross_compiling=yes
4481    else
4482	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4484as_fn_error 77 "cannot run C compiled programs.
4485If you meant to cross compile, use \`--host'.
4486See \`config.log' for more details" "$LINENO" 5; }
4487    fi
4488  fi
4489fi
4490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4491printf "%s\n" "$cross_compiling" >&6; }
4492
4493rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4494ac_clean_files=$ac_clean_files_save
4495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4496printf %s "checking for suffix of object files... " >&6; }
4497if test ${ac_cv_objext+y}
4498then :
4499  printf %s "(cached) " >&6
4500else $as_nop
4501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h.  */
4503
4504int
4505main (void)
4506{
4507
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512rm -f conftest.o conftest.obj
4513if { { ac_try="$ac_compile"
4514case "(($ac_try" in
4515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516  *) ac_try_echo=$ac_try;;
4517esac
4518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519printf "%s\n" "$ac_try_echo"; } >&5
4520  (eval "$ac_compile") 2>&5
4521  ac_status=$?
4522  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523  test $ac_status = 0; }
4524then :
4525  for ac_file in conftest.o conftest.obj conftest.*; do
4526  test -f "$ac_file" || continue;
4527  case $ac_file in
4528    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4529    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4530       break;;
4531  esac
4532done
4533else $as_nop
4534  printf "%s\n" "$as_me: failed program was:" >&5
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
4537{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4539as_fn_error $? "cannot compute suffix of object files: cannot compile
4540See \`config.log' for more details" "$LINENO" 5; }
4541fi
4542rm -f conftest.$ac_cv_objext conftest.$ac_ext
4543fi
4544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4545printf "%s\n" "$ac_cv_objext" >&6; }
4546OBJEXT=$ac_cv_objext
4547ac_objext=$OBJEXT
4548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4549printf %s "checking whether the compiler supports GNU C... " >&6; }
4550if test ${ac_cv_c_compiler_gnu+y}
4551then :
4552  printf %s "(cached) " >&6
4553else $as_nop
4554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555/* end confdefs.h.  */
4556
4557int
4558main (void)
4559{
4560#ifndef __GNUC__
4561       choke me
4562#endif
4563
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568if ac_fn_c_try_compile "$LINENO"
4569then :
4570  ac_compiler_gnu=yes
4571else $as_nop
4572  ac_compiler_gnu=no
4573fi
4574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4575ac_cv_c_compiler_gnu=$ac_compiler_gnu
4576
4577fi
4578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4579printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582if test $ac_compiler_gnu = yes; then
4583  GCC=yes
4584else
4585  GCC=
4586fi
4587ac_test_CFLAGS=${CFLAGS+y}
4588ac_save_CFLAGS=$CFLAGS
4589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4590printf %s "checking whether $CC accepts -g... " >&6; }
4591if test ${ac_cv_prog_cc_g+y}
4592then :
4593  printf %s "(cached) " >&6
4594else $as_nop
4595  ac_save_c_werror_flag=$ac_c_werror_flag
4596   ac_c_werror_flag=yes
4597   ac_cv_prog_cc_g=no
4598   CFLAGS="-g"
4599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h.  */
4601
4602int
4603main (void)
4604{
4605
4606  ;
4607  return 0;
4608}
4609_ACEOF
4610if ac_fn_c_try_compile "$LINENO"
4611then :
4612  ac_cv_prog_cc_g=yes
4613else $as_nop
4614  CFLAGS=""
4615      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h.  */
4617
4618int
4619main (void)
4620{
4621
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626if ac_fn_c_try_compile "$LINENO"
4627then :
4628
4629else $as_nop
4630  ac_c_werror_flag=$ac_save_c_werror_flag
4631	 CFLAGS="-g"
4632	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634
4635int
4636main (void)
4637{
4638
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643if ac_fn_c_try_compile "$LINENO"
4644then :
4645  ac_cv_prog_cc_g=yes
4646fi
4647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4648fi
4649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4650fi
4651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4652   ac_c_werror_flag=$ac_save_c_werror_flag
4653fi
4654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4655printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4656if test $ac_test_CFLAGS; then
4657  CFLAGS=$ac_save_CFLAGS
4658elif test $ac_cv_prog_cc_g = yes; then
4659  if test "$GCC" = yes; then
4660    CFLAGS="-g -O2"
4661  else
4662    CFLAGS="-g"
4663  fi
4664else
4665  if test "$GCC" = yes; then
4666    CFLAGS="-O2"
4667  else
4668    CFLAGS=
4669  fi
4670fi
4671ac_prog_cc_stdc=no
4672if test x$ac_prog_cc_stdc = xno
4673then :
4674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4675printf %s "checking for $CC option to enable C11 features... " >&6; }
4676if test ${ac_cv_prog_cc_c11+y}
4677then :
4678  printf %s "(cached) " >&6
4679else $as_nop
4680  ac_cv_prog_cc_c11=no
4681ac_save_CC=$CC
4682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h.  */
4684$ac_c_conftest_c11_program
4685_ACEOF
4686for ac_arg in '' -std=gnu11
4687do
4688  CC="$ac_save_CC $ac_arg"
4689  if ac_fn_c_try_compile "$LINENO"
4690then :
4691  ac_cv_prog_cc_c11=$ac_arg
4692fi
4693rm -f core conftest.err conftest.$ac_objext conftest.beam
4694  test "x$ac_cv_prog_cc_c11" != "xno" && break
4695done
4696rm -f conftest.$ac_ext
4697CC=$ac_save_CC
4698fi
4699
4700if test "x$ac_cv_prog_cc_c11" = xno
4701then :
4702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4703printf "%s\n" "unsupported" >&6; }
4704else $as_nop
4705  if test "x$ac_cv_prog_cc_c11" = x
4706then :
4707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4708printf "%s\n" "none needed" >&6; }
4709else $as_nop
4710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4711printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4712     CC="$CC $ac_cv_prog_cc_c11"
4713fi
4714  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4715  ac_prog_cc_stdc=c11
4716fi
4717fi
4718if test x$ac_prog_cc_stdc = xno
4719then :
4720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4721printf %s "checking for $CC option to enable C99 features... " >&6; }
4722if test ${ac_cv_prog_cc_c99+y}
4723then :
4724  printf %s "(cached) " >&6
4725else $as_nop
4726  ac_cv_prog_cc_c99=no
4727ac_save_CC=$CC
4728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h.  */
4730$ac_c_conftest_c99_program
4731_ACEOF
4732for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4733do
4734  CC="$ac_save_CC $ac_arg"
4735  if ac_fn_c_try_compile "$LINENO"
4736then :
4737  ac_cv_prog_cc_c99=$ac_arg
4738fi
4739rm -f core conftest.err conftest.$ac_objext conftest.beam
4740  test "x$ac_cv_prog_cc_c99" != "xno" && break
4741done
4742rm -f conftest.$ac_ext
4743CC=$ac_save_CC
4744fi
4745
4746if test "x$ac_cv_prog_cc_c99" = xno
4747then :
4748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4749printf "%s\n" "unsupported" >&6; }
4750else $as_nop
4751  if test "x$ac_cv_prog_cc_c99" = x
4752then :
4753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4754printf "%s\n" "none needed" >&6; }
4755else $as_nop
4756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4757printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4758     CC="$CC $ac_cv_prog_cc_c99"
4759fi
4760  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4761  ac_prog_cc_stdc=c99
4762fi
4763fi
4764if test x$ac_prog_cc_stdc = xno
4765then :
4766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4767printf %s "checking for $CC option to enable C89 features... " >&6; }
4768if test ${ac_cv_prog_cc_c89+y}
4769then :
4770  printf %s "(cached) " >&6
4771else $as_nop
4772  ac_cv_prog_cc_c89=no
4773ac_save_CC=$CC
4774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776$ac_c_conftest_c89_program
4777_ACEOF
4778for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4779do
4780  CC="$ac_save_CC $ac_arg"
4781  if ac_fn_c_try_compile "$LINENO"
4782then :
4783  ac_cv_prog_cc_c89=$ac_arg
4784fi
4785rm -f core conftest.err conftest.$ac_objext conftest.beam
4786  test "x$ac_cv_prog_cc_c89" != "xno" && break
4787done
4788rm -f conftest.$ac_ext
4789CC=$ac_save_CC
4790fi
4791
4792if test "x$ac_cv_prog_cc_c89" = xno
4793then :
4794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795printf "%s\n" "unsupported" >&6; }
4796else $as_nop
4797  if test "x$ac_cv_prog_cc_c89" = x
4798then :
4799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4800printf "%s\n" "none needed" >&6; }
4801else $as_nop
4802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4803printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4804     CC="$CC $ac_cv_prog_cc_c89"
4805fi
4806  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4807  ac_prog_cc_stdc=c89
4808fi
4809fi
4810
4811ac_ext=c
4812ac_cpp='$CPP $CPPFLAGS'
4813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816
4817
4818  ac_ext=c
4819ac_cpp='$CPP $CPPFLAGS'
4820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4824printf %s "checking whether $CC understands -c and -o together... " >&6; }
4825if test ${am_cv_prog_cc_c_o+y}
4826then :
4827  printf %s "(cached) " >&6
4828else $as_nop
4829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831
4832int
4833main (void)
4834{
4835
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840  # Make sure it works both with $CC and with simple cc.
4841  # Following AC_PROG_CC_C_O, we do the test twice because some
4842  # compilers refuse to overwrite an existing .o file with -o,
4843  # though they will create one.
4844  am_cv_prog_cc_c_o=yes
4845  for am_i in 1 2; do
4846    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4847   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4848   ac_status=$?
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); } \
4851         && test -f conftest2.$ac_objext; then
4852      : OK
4853    else
4854      am_cv_prog_cc_c_o=no
4855      break
4856    fi
4857  done
4858  rm -f core conftest*
4859  unset am_i
4860fi
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4862printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4863if test "$am_cv_prog_cc_c_o" != yes; then
4864   # Losing compiler, so override with the script.
4865   # FIXME: It is wrong to rewrite CC.
4866   # But if we don't then we get into trouble of one sort or another.
4867   # A longer-term fix would be to have automake use am__CC in this case,
4868   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4869   CC="$am_aux_dir/compile $CC"
4870fi
4871ac_ext=c
4872ac_cpp='$CPP $CPPFLAGS'
4873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877
4878depcc="$CC"   am_compiler_list=
4879
4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4881printf %s "checking dependency style of $depcc... " >&6; }
4882if test ${am_cv_CC_dependencies_compiler_type+y}
4883then :
4884  printf %s "(cached) " >&6
4885else $as_nop
4886  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4887  # We make a subdir and do the tests there.  Otherwise we can end up
4888  # making bogus files that we don't know about and never remove.  For
4889  # instance it was reported that on HP-UX the gcc test will end up
4890  # making a dummy file named 'D' -- because '-MD' means "put the output
4891  # in D".
4892  rm -rf conftest.dir
4893  mkdir conftest.dir
4894  # Copy depcomp to subdir because otherwise we won't find it if we're
4895  # using a relative directory.
4896  cp "$am_depcomp" conftest.dir
4897  cd conftest.dir
4898  # We will build objects and dependencies in a subdirectory because
4899  # it helps to detect inapplicable dependency modes.  For instance
4900  # both Tru64's cc and ICC support -MD to output dependencies as a
4901  # side effect of compilation, but ICC will put the dependencies in
4902  # the current directory while Tru64 will put them in the object
4903  # directory.
4904  mkdir sub
4905
4906  am_cv_CC_dependencies_compiler_type=none
4907  if test "$am_compiler_list" = ""; then
4908     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4909  fi
4910  am__universal=false
4911  case " $depcc " in #(
4912     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4913     esac
4914
4915  for depmode in $am_compiler_list; do
4916    # Setup a source with many dependencies, because some compilers
4917    # like to wrap large dependency lists on column 80 (with \), and
4918    # we should not choose a depcomp mode which is confused by this.
4919    #
4920    # We need to recreate these files for each test, as the compiler may
4921    # overwrite some of them when testing with obscure command lines.
4922    # This happens at least with the AIX C compiler.
4923    : > sub/conftest.c
4924    for i in 1 2 3 4 5 6; do
4925      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4926      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4927      # Solaris 10 /bin/sh.
4928      echo '/* dummy */' > sub/conftst$i.h
4929    done
4930    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4931
4932    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4933    # mode.  It turns out that the SunPro C++ compiler does not properly
4934    # handle '-M -o', and we need to detect this.  Also, some Intel
4935    # versions had trouble with output in subdirs.
4936    am__obj=sub/conftest.${OBJEXT-o}
4937    am__minus_obj="-o $am__obj"
4938    case $depmode in
4939    gcc)
4940      # This depmode causes a compiler race in universal mode.
4941      test "$am__universal" = false || continue
4942      ;;
4943    nosideeffect)
4944      # After this tag, mechanisms are not by side-effect, so they'll
4945      # only be used when explicitly requested.
4946      if test "x$enable_dependency_tracking" = xyes; then
4947	continue
4948      else
4949	break
4950      fi
4951      ;;
4952    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4953      # This compiler won't grok '-c -o', but also, the minuso test has
4954      # not run yet.  These depmodes are late enough in the game, and
4955      # so weak that their functioning should not be impacted.
4956      am__obj=conftest.${OBJEXT-o}
4957      am__minus_obj=
4958      ;;
4959    none) break ;;
4960    esac
4961    if depmode=$depmode \
4962       source=sub/conftest.c object=$am__obj \
4963       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4964       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4965         >/dev/null 2>conftest.err &&
4966       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4967       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4968       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4969       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4970      # icc doesn't choke on unknown options, it will just issue warnings
4971      # or remarks (even with -Werror).  So we grep stderr for any message
4972      # that says an option was ignored or not supported.
4973      # When given -MP, icc 7.0 and 7.1 complain thusly:
4974      #   icc: Command line warning: ignoring option '-M'; no argument required
4975      # The diagnosis changed in icc 8.0:
4976      #   icc: Command line remark: option '-MP' not supported
4977      if (grep 'ignoring option' conftest.err ||
4978          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4979        am_cv_CC_dependencies_compiler_type=$depmode
4980        break
4981      fi
4982    fi
4983  done
4984
4985  cd ..
4986  rm -rf conftest.dir
4987else
4988  am_cv_CC_dependencies_compiler_type=none
4989fi
4990
4991fi
4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4993printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4994CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4995
4996 if
4997  test "x$enable_dependency_tracking" != xno \
4998  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4999  am__fastdepCC_TRUE=
5000  am__fastdepCC_FALSE='#'
5001else
5002  am__fastdepCC_TRUE='#'
5003  am__fastdepCC_FALSE=
5004fi
5005
5006
5007
5008
5009  if test -n "$ac_tool_prefix"; then
5010  for ac_prog in ar lib "link -lib"
5011  do
5012    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015printf %s "checking for $ac_word... " >&6; }
5016if test ${ac_cv_prog_AR+y}
5017then :
5018  printf %s "(cached) " >&6
5019else $as_nop
5020  if test -n "$AR"; then
5021  ac_cv_prog_AR="$AR" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026  IFS=$as_save_IFS
5027  case $as_dir in #(((
5028    '') as_dir=./ ;;
5029    */) ;;
5030    *) as_dir=$as_dir/ ;;
5031  esac
5032    for ac_exec_ext in '' $ac_executable_extensions; do
5033  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5034    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5035    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5036    break 2
5037  fi
5038done
5039  done
5040IFS=$as_save_IFS
5041
5042fi
5043fi
5044AR=$ac_cv_prog_AR
5045if test -n "$AR"; then
5046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5047printf "%s\n" "$AR" >&6; }
5048else
5049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050printf "%s\n" "no" >&6; }
5051fi
5052
5053
5054    test -n "$AR" && break
5055  done
5056fi
5057if test -z "$AR"; then
5058  ac_ct_AR=$AR
5059  for ac_prog in ar lib "link -lib"
5060do
5061  # Extract the first word of "$ac_prog", so it can be a program name with args.
5062set dummy $ac_prog; ac_word=$2
5063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064printf %s "checking for $ac_word... " >&6; }
5065if test ${ac_cv_prog_ac_ct_AR+y}
5066then :
5067  printf %s "(cached) " >&6
5068else $as_nop
5069  if test -n "$ac_ct_AR"; then
5070  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  case $as_dir in #(((
5077    '') as_dir=./ ;;
5078    */) ;;
5079    *) as_dir=$as_dir/ ;;
5080  esac
5081    for ac_exec_ext in '' $ac_executable_extensions; do
5082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5083    ac_cv_prog_ac_ct_AR="$ac_prog"
5084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5085    break 2
5086  fi
5087done
5088  done
5089IFS=$as_save_IFS
5090
5091fi
5092fi
5093ac_ct_AR=$ac_cv_prog_ac_ct_AR
5094if test -n "$ac_ct_AR"; then
5095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5096printf "%s\n" "$ac_ct_AR" >&6; }
5097else
5098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099printf "%s\n" "no" >&6; }
5100fi
5101
5102
5103  test -n "$ac_ct_AR" && break
5104done
5105
5106  if test "x$ac_ct_AR" = x; then
5107    AR="false"
5108  else
5109    case $cross_compiling:$ac_tool_warned in
5110yes:)
5111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5112printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5113ac_tool_warned=yes ;;
5114esac
5115    AR=$ac_ct_AR
5116  fi
5117fi
5118
5119: ${AR=ar}
5120
5121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5122printf %s "checking the archiver ($AR) interface... " >&6; }
5123if test ${am_cv_ar_interface+y}
5124then :
5125  printf %s "(cached) " >&6
5126else $as_nop
5127  ac_ext=c
5128ac_cpp='$CPP $CPPFLAGS'
5129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132
5133   am_cv_ar_interface=ar
5134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136int some_variable = 0;
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"
5139then :
5140  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5141      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5142  (eval $am_ar_try) 2>&5
5143  ac_status=$?
5144  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145  test $ac_status = 0; }
5146      if test "$ac_status" -eq 0; then
5147        am_cv_ar_interface=ar
5148      else
5149        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5150        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5151  (eval $am_ar_try) 2>&5
5152  ac_status=$?
5153  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5154  test $ac_status = 0; }
5155        if test "$ac_status" -eq 0; then
5156          am_cv_ar_interface=lib
5157        else
5158          am_cv_ar_interface=unknown
5159        fi
5160      fi
5161      rm -f conftest.lib libconftest.a
5162
5163fi
5164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5165   ac_ext=c
5166ac_cpp='$CPP $CPPFLAGS'
5167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_c_compiler_gnu
5170
5171fi
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5173printf "%s\n" "$am_cv_ar_interface" >&6; }
5174
5175case $am_cv_ar_interface in
5176ar)
5177  ;;
5178lib)
5179  # Microsoft lib, so override with the ar-lib wrapper script.
5180  # FIXME: It is wrong to rewrite AR.
5181  # But if we don't then we get into trouble of one sort or another.
5182  # A longer-term fix would be to have automake use am__AR in this case,
5183  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5184  # similar.
5185  AR="$am_aux_dir/ar-lib $AR"
5186  ;;
5187unknown)
5188  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5189  ;;
5190esac
5191
5192
5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5194printf %s "checking whether ln -s works... " >&6; }
5195LN_S=$as_ln_s
5196if test "$LN_S" = "ln -s"; then
5197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5198printf "%s\n" "yes" >&6; }
5199else
5200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5201printf "%s\n" "no, using $LN_S" >&6; }
5202fi
5203
5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5205printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5206set x ${MAKE-make}
5207ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5208if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5209then :
5210  printf %s "(cached) " >&6
5211else $as_nop
5212  cat >conftest.make <<\_ACEOF
5213SHELL = /bin/sh
5214all:
5215	@echo '@@@%%%=$(MAKE)=@@@%%%'
5216_ACEOF
5217# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5218case `${MAKE-make} -f conftest.make 2>/dev/null` in
5219  *@@@%%%=?*=@@@%%%*)
5220    eval ac_cv_prog_make_${ac_make}_set=yes;;
5221  *)
5222    eval ac_cv_prog_make_${ac_make}_set=no;;
5223esac
5224rm -f conftest.make
5225fi
5226if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228printf "%s\n" "yes" >&6; }
5229  SET_MAKE=
5230else
5231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232printf "%s\n" "no" >&6; }
5233  SET_MAKE="MAKE=${MAKE-make}"
5234fi
5235
5236
5237
5238case `pwd` in
5239  *\ * | *\	*)
5240    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5241printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5242esac
5243
5244
5245
5246macro_version='2.4.6'
5247macro_revision='2.4.6'
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262ltmain=$ac_aux_dir/ltmain.sh
5263
5264# Backslashify metacharacters that are still active within
5265# double-quoted strings.
5266sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5267
5268# Same as above, but do not quote variable references.
5269double_quote_subst='s/\(["`\\]\)/\\\1/g'
5270
5271# Sed substitution to delay expansion of an escaped shell variable in a
5272# double_quote_subst'ed string.
5273delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5274
5275# Sed substitution to delay expansion of an escaped single quote.
5276delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5277
5278# Sed substitution to avoid accidental globbing in evaled expressions
5279no_glob_subst='s/\*/\\\*/g'
5280
5281ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5282ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5283ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5284
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5286printf %s "checking how to print strings... " >&6; }
5287# Test print first, because it will be a builtin if present.
5288if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5289   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5290  ECHO='print -r --'
5291elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5292  ECHO='printf %s\n'
5293else
5294  # Use this function as a fallback that always works.
5295  func_fallback_echo ()
5296  {
5297    eval 'cat <<_LTECHO_EOF
5298$1
5299_LTECHO_EOF'
5300  }
5301  ECHO='func_fallback_echo'
5302fi
5303
5304# func_echo_all arg...
5305# Invoke $ECHO with all args, space-separated.
5306func_echo_all ()
5307{
5308    $ECHO ""
5309}
5310
5311case $ECHO in
5312  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5313printf "%s\n" "printf" >&6; } ;;
5314  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5315printf "%s\n" "print -r" >&6; } ;;
5316  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5317printf "%s\n" "cat" >&6; } ;;
5318esac
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5334printf %s "checking for a sed that does not truncate output... " >&6; }
5335if test ${ac_cv_path_SED+y}
5336then :
5337  printf %s "(cached) " >&6
5338else $as_nop
5339            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5340     for ac_i in 1 2 3 4 5 6 7; do
5341       ac_script="$ac_script$as_nl$ac_script"
5342     done
5343     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5344     { ac_script=; unset ac_script;}
5345     if test -z "$SED"; then
5346  ac_path_SED_found=false
5347  # Loop through the user's path and test for each of PROGNAME-LIST
5348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351  IFS=$as_save_IFS
5352  case $as_dir in #(((
5353    '') as_dir=./ ;;
5354    */) ;;
5355    *) as_dir=$as_dir/ ;;
5356  esac
5357    for ac_prog in sed gsed
5358   do
5359    for ac_exec_ext in '' $ac_executable_extensions; do
5360      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5361      as_fn_executable_p "$ac_path_SED" || continue
5362# Check for GNU ac_path_SED and select it if it is found.
5363  # Check for GNU $ac_path_SED
5364case `"$ac_path_SED" --version 2>&1` in
5365*GNU*)
5366  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5367*)
5368  ac_count=0
5369  printf %s 0123456789 >"conftest.in"
5370  while :
5371  do
5372    cat "conftest.in" "conftest.in" >"conftest.tmp"
5373    mv "conftest.tmp" "conftest.in"
5374    cp "conftest.in" "conftest.nl"
5375    printf "%s\n" '' >> "conftest.nl"
5376    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5377    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5378    as_fn_arith $ac_count + 1 && ac_count=$as_val
5379    if test $ac_count -gt ${ac_path_SED_max-0}; then
5380      # Best one so far, save it but keep looking for a better one
5381      ac_cv_path_SED="$ac_path_SED"
5382      ac_path_SED_max=$ac_count
5383    fi
5384    # 10*(2^10) chars as input seems more than enough
5385    test $ac_count -gt 10 && break
5386  done
5387  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5388esac
5389
5390      $ac_path_SED_found && break 3
5391    done
5392  done
5393  done
5394IFS=$as_save_IFS
5395  if test -z "$ac_cv_path_SED"; then
5396    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5397  fi
5398else
5399  ac_cv_path_SED=$SED
5400fi
5401
5402fi
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5404printf "%s\n" "$ac_cv_path_SED" >&6; }
5405 SED="$ac_cv_path_SED"
5406  rm -f conftest.sed
5407
5408test -z "$SED" && SED=sed
5409Xsed="$SED -e 1s/^X//"
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5422printf %s "checking for grep that handles long lines and -e... " >&6; }
5423if test ${ac_cv_path_GREP+y}
5424then :
5425  printf %s "(cached) " >&6
5426else $as_nop
5427  if test -z "$GREP"; then
5428  ac_path_GREP_found=false
5429  # Loop through the user's path and test for each of PROGNAME-LIST
5430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5432do
5433  IFS=$as_save_IFS
5434  case $as_dir in #(((
5435    '') as_dir=./ ;;
5436    */) ;;
5437    *) as_dir=$as_dir/ ;;
5438  esac
5439    for ac_prog in grep ggrep
5440   do
5441    for ac_exec_ext in '' $ac_executable_extensions; do
5442      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5443      as_fn_executable_p "$ac_path_GREP" || continue
5444# Check for GNU ac_path_GREP and select it if it is found.
5445  # Check for GNU $ac_path_GREP
5446case `"$ac_path_GREP" --version 2>&1` in
5447*GNU*)
5448  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5449*)
5450  ac_count=0
5451  printf %s 0123456789 >"conftest.in"
5452  while :
5453  do
5454    cat "conftest.in" "conftest.in" >"conftest.tmp"
5455    mv "conftest.tmp" "conftest.in"
5456    cp "conftest.in" "conftest.nl"
5457    printf "%s\n" 'GREP' >> "conftest.nl"
5458    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5459    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5460    as_fn_arith $ac_count + 1 && ac_count=$as_val
5461    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5462      # Best one so far, save it but keep looking for a better one
5463      ac_cv_path_GREP="$ac_path_GREP"
5464      ac_path_GREP_max=$ac_count
5465    fi
5466    # 10*(2^10) chars as input seems more than enough
5467    test $ac_count -gt 10 && break
5468  done
5469  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5470esac
5471
5472      $ac_path_GREP_found && break 3
5473    done
5474  done
5475  done
5476IFS=$as_save_IFS
5477  if test -z "$ac_cv_path_GREP"; then
5478    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5479  fi
5480else
5481  ac_cv_path_GREP=$GREP
5482fi
5483
5484fi
5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5486printf "%s\n" "$ac_cv_path_GREP" >&6; }
5487 GREP="$ac_cv_path_GREP"
5488
5489
5490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5491printf %s "checking for egrep... " >&6; }
5492if test ${ac_cv_path_EGREP+y}
5493then :
5494  printf %s "(cached) " >&6
5495else $as_nop
5496  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5497   then ac_cv_path_EGREP="$GREP -E"
5498   else
5499     if test -z "$EGREP"; then
5500  ac_path_EGREP_found=false
5501  # Loop through the user's path and test for each of PROGNAME-LIST
5502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5504do
5505  IFS=$as_save_IFS
5506  case $as_dir in #(((
5507    '') as_dir=./ ;;
5508    */) ;;
5509    *) as_dir=$as_dir/ ;;
5510  esac
5511    for ac_prog in egrep
5512   do
5513    for ac_exec_ext in '' $ac_executable_extensions; do
5514      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5515      as_fn_executable_p "$ac_path_EGREP" || continue
5516# Check for GNU ac_path_EGREP and select it if it is found.
5517  # Check for GNU $ac_path_EGREP
5518case `"$ac_path_EGREP" --version 2>&1` in
5519*GNU*)
5520  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5521*)
5522  ac_count=0
5523  printf %s 0123456789 >"conftest.in"
5524  while :
5525  do
5526    cat "conftest.in" "conftest.in" >"conftest.tmp"
5527    mv "conftest.tmp" "conftest.in"
5528    cp "conftest.in" "conftest.nl"
5529    printf "%s\n" 'EGREP' >> "conftest.nl"
5530    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5531    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5532    as_fn_arith $ac_count + 1 && ac_count=$as_val
5533    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5534      # Best one so far, save it but keep looking for a better one
5535      ac_cv_path_EGREP="$ac_path_EGREP"
5536      ac_path_EGREP_max=$ac_count
5537    fi
5538    # 10*(2^10) chars as input seems more than enough
5539    test $ac_count -gt 10 && break
5540  done
5541  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5542esac
5543
5544      $ac_path_EGREP_found && break 3
5545    done
5546  done
5547  done
5548IFS=$as_save_IFS
5549  if test -z "$ac_cv_path_EGREP"; then
5550    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5551  fi
5552else
5553  ac_cv_path_EGREP=$EGREP
5554fi
5555
5556   fi
5557fi
5558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5559printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5560 EGREP="$ac_cv_path_EGREP"
5561
5562
5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5564printf %s "checking for fgrep... " >&6; }
5565if test ${ac_cv_path_FGREP+y}
5566then :
5567  printf %s "(cached) " >&6
5568else $as_nop
5569  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5570   then ac_cv_path_FGREP="$GREP -F"
5571   else
5572     if test -z "$FGREP"; then
5573  ac_path_FGREP_found=false
5574  # Loop through the user's path and test for each of PROGNAME-LIST
5575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5577do
5578  IFS=$as_save_IFS
5579  case $as_dir in #(((
5580    '') as_dir=./ ;;
5581    */) ;;
5582    *) as_dir=$as_dir/ ;;
5583  esac
5584    for ac_prog in fgrep
5585   do
5586    for ac_exec_ext in '' $ac_executable_extensions; do
5587      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5588      as_fn_executable_p "$ac_path_FGREP" || continue
5589# Check for GNU ac_path_FGREP and select it if it is found.
5590  # Check for GNU $ac_path_FGREP
5591case `"$ac_path_FGREP" --version 2>&1` in
5592*GNU*)
5593  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5594*)
5595  ac_count=0
5596  printf %s 0123456789 >"conftest.in"
5597  while :
5598  do
5599    cat "conftest.in" "conftest.in" >"conftest.tmp"
5600    mv "conftest.tmp" "conftest.in"
5601    cp "conftest.in" "conftest.nl"
5602    printf "%s\n" 'FGREP' >> "conftest.nl"
5603    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5604    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5605    as_fn_arith $ac_count + 1 && ac_count=$as_val
5606    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5607      # Best one so far, save it but keep looking for a better one
5608      ac_cv_path_FGREP="$ac_path_FGREP"
5609      ac_path_FGREP_max=$ac_count
5610    fi
5611    # 10*(2^10) chars as input seems more than enough
5612    test $ac_count -gt 10 && break
5613  done
5614  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5615esac
5616
5617      $ac_path_FGREP_found && break 3
5618    done
5619  done
5620  done
5621IFS=$as_save_IFS
5622  if test -z "$ac_cv_path_FGREP"; then
5623    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5624  fi
5625else
5626  ac_cv_path_FGREP=$FGREP
5627fi
5628
5629   fi
5630fi
5631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5632printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5633 FGREP="$ac_cv_path_FGREP"
5634
5635
5636test -z "$GREP" && GREP=grep
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656# Check whether --with-gnu-ld was given.
5657if test ${with_gnu_ld+y}
5658then :
5659  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5660else $as_nop
5661  with_gnu_ld=no
5662fi
5663
5664ac_prog=ld
5665if test yes = "$GCC"; then
5666  # Check if gcc -print-prog-name=ld gives a path.
5667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5668printf %s "checking for ld used by $CC... " >&6; }
5669  case $host in
5670  *-*-mingw*)
5671    # gcc leaves a trailing carriage return, which upsets mingw
5672    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5673  *)
5674    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5675  esac
5676  case $ac_prog in
5677    # Accept absolute paths.
5678    [\\/]* | ?:[\\/]*)
5679      re_direlt='/[^/][^/]*/\.\./'
5680      # Canonicalize the pathname of ld
5681      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5682      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5683	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5684      done
5685      test -z "$LD" && LD=$ac_prog
5686      ;;
5687  "")
5688    # If it fails, then pretend we aren't using GCC.
5689    ac_prog=ld
5690    ;;
5691  *)
5692    # If it is relative, then search for the first ld in PATH.
5693    with_gnu_ld=unknown
5694    ;;
5695  esac
5696elif test yes = "$with_gnu_ld"; then
5697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5698printf %s "checking for GNU ld... " >&6; }
5699else
5700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5701printf %s "checking for non-GNU ld... " >&6; }
5702fi
5703if test ${lt_cv_path_LD+y}
5704then :
5705  printf %s "(cached) " >&6
5706else $as_nop
5707  if test -z "$LD"; then
5708  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5709  for ac_dir in $PATH; do
5710    IFS=$lt_save_ifs
5711    test -z "$ac_dir" && ac_dir=.
5712    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5713      lt_cv_path_LD=$ac_dir/$ac_prog
5714      # Check to see if the program is GNU ld.  I'd rather use --version,
5715      # but apparently some variants of GNU ld only accept -v.
5716      # Break only if it was the GNU/non-GNU ld that we prefer.
5717      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5718      *GNU* | *'with BFD'*)
5719	test no != "$with_gnu_ld" && break
5720	;;
5721      *)
5722	test yes != "$with_gnu_ld" && break
5723	;;
5724      esac
5725    fi
5726  done
5727  IFS=$lt_save_ifs
5728else
5729  lt_cv_path_LD=$LD # Let the user override the test with a path.
5730fi
5731fi
5732
5733LD=$lt_cv_path_LD
5734if test -n "$LD"; then
5735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5736printf "%s\n" "$LD" >&6; }
5737else
5738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739printf "%s\n" "no" >&6; }
5740fi
5741test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5743printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5744if test ${lt_cv_prog_gnu_ld+y}
5745then :
5746  printf %s "(cached) " >&6
5747else $as_nop
5748  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5749case `$LD -v 2>&1 </dev/null` in
5750*GNU* | *'with BFD'*)
5751  lt_cv_prog_gnu_ld=yes
5752  ;;
5753*)
5754  lt_cv_prog_gnu_ld=no
5755  ;;
5756esac
5757fi
5758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5759printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5760with_gnu_ld=$lt_cv_prog_gnu_ld
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5771printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5772if test ${lt_cv_path_NM+y}
5773then :
5774  printf %s "(cached) " >&6
5775else $as_nop
5776  if test -n "$NM"; then
5777  # Let the user override the test.
5778  lt_cv_path_NM=$NM
5779else
5780  lt_nm_to_check=${ac_tool_prefix}nm
5781  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5782    lt_nm_to_check="$lt_nm_to_check nm"
5783  fi
5784  for lt_tmp_nm in $lt_nm_to_check; do
5785    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5786    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5787      IFS=$lt_save_ifs
5788      test -z "$ac_dir" && ac_dir=.
5789      tmp_nm=$ac_dir/$lt_tmp_nm
5790      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5791	# Check to see if the nm accepts a BSD-compat flag.
5792	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5793	#   nm: unknown option "B" ignored
5794	# Tru64's nm complains that /dev/null is an invalid object file
5795	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5796	case $build_os in
5797	mingw*) lt_bad_file=conftest.nm/nofile ;;
5798	*) lt_bad_file=/dev/null ;;
5799	esac
5800	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5801	*$lt_bad_file* | *'Invalid file or object type'*)
5802	  lt_cv_path_NM="$tmp_nm -B"
5803	  break 2
5804	  ;;
5805	*)
5806	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5807	  */dev/null*)
5808	    lt_cv_path_NM="$tmp_nm -p"
5809	    break 2
5810	    ;;
5811	  *)
5812	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5813	    continue # so that we can try to find one that supports BSD flags
5814	    ;;
5815	  esac
5816	  ;;
5817	esac
5818      fi
5819    done
5820    IFS=$lt_save_ifs
5821  done
5822  : ${lt_cv_path_NM=no}
5823fi
5824fi
5825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5826printf "%s\n" "$lt_cv_path_NM" >&6; }
5827if test no != "$lt_cv_path_NM"; then
5828  NM=$lt_cv_path_NM
5829else
5830  # Didn't find any BSD compatible name lister, look for dumpbin.
5831  if test -n "$DUMPBIN"; then :
5832    # Let the user override the test.
5833  else
5834    if test -n "$ac_tool_prefix"; then
5835  for ac_prog in dumpbin "link -dump"
5836  do
5837    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840printf %s "checking for $ac_word... " >&6; }
5841if test ${ac_cv_prog_DUMPBIN+y}
5842then :
5843  printf %s "(cached) " >&6
5844else $as_nop
5845  if test -n "$DUMPBIN"; then
5846  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851  IFS=$as_save_IFS
5852  case $as_dir in #(((
5853    '') as_dir=./ ;;
5854    */) ;;
5855    *) as_dir=$as_dir/ ;;
5856  esac
5857    for ac_exec_ext in '' $ac_executable_extensions; do
5858  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5859    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5860    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864  done
5865IFS=$as_save_IFS
5866
5867fi
5868fi
5869DUMPBIN=$ac_cv_prog_DUMPBIN
5870if test -n "$DUMPBIN"; then
5871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5872printf "%s\n" "$DUMPBIN" >&6; }
5873else
5874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875printf "%s\n" "no" >&6; }
5876fi
5877
5878
5879    test -n "$DUMPBIN" && break
5880  done
5881fi
5882if test -z "$DUMPBIN"; then
5883  ac_ct_DUMPBIN=$DUMPBIN
5884  for ac_prog in dumpbin "link -dump"
5885do
5886  # Extract the first word of "$ac_prog", so it can be a program name with args.
5887set dummy $ac_prog; ac_word=$2
5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889printf %s "checking for $ac_word... " >&6; }
5890if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5891then :
5892  printf %s "(cached) " >&6
5893else $as_nop
5894  if test -n "$ac_ct_DUMPBIN"; then
5895  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900  IFS=$as_save_IFS
5901  case $as_dir in #(((
5902    '') as_dir=./ ;;
5903    */) ;;
5904    *) as_dir=$as_dir/ ;;
5905  esac
5906    for ac_exec_ext in '' $ac_executable_extensions; do
5907  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5908    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5909    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5910    break 2
5911  fi
5912done
5913  done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5919if test -n "$ac_ct_DUMPBIN"; then
5920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5921printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5922else
5923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924printf "%s\n" "no" >&6; }
5925fi
5926
5927
5928  test -n "$ac_ct_DUMPBIN" && break
5929done
5930
5931  if test "x$ac_ct_DUMPBIN" = x; then
5932    DUMPBIN=":"
5933  else
5934    case $cross_compiling:$ac_tool_warned in
5935yes:)
5936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938ac_tool_warned=yes ;;
5939esac
5940    DUMPBIN=$ac_ct_DUMPBIN
5941  fi
5942fi
5943
5944    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5945    *COFF*)
5946      DUMPBIN="$DUMPBIN -symbols -headers"
5947      ;;
5948    *)
5949      DUMPBIN=:
5950      ;;
5951    esac
5952  fi
5953
5954  if test : != "$DUMPBIN"; then
5955    NM=$DUMPBIN
5956  fi
5957fi
5958test -z "$NM" && NM=nm
5959
5960
5961
5962
5963
5964
5965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5966printf %s "checking the name lister ($NM) interface... " >&6; }
5967if test ${lt_cv_nm_interface+y}
5968then :
5969  printf %s "(cached) " >&6
5970else $as_nop
5971  lt_cv_nm_interface="BSD nm"
5972  echo "int some_variable = 0;" > conftest.$ac_ext
5973  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5974  (eval "$ac_compile" 2>conftest.err)
5975  cat conftest.err >&5
5976  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5977  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5978  cat conftest.err >&5
5979  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5980  cat conftest.out >&5
5981  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5982    lt_cv_nm_interface="MS dumpbin"
5983  fi
5984  rm -f conftest*
5985fi
5986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5987printf "%s\n" "$lt_cv_nm_interface" >&6; }
5988
5989# find the maximum length of command line arguments
5990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5991printf %s "checking the maximum length of command line arguments... " >&6; }
5992if test ${lt_cv_sys_max_cmd_len+y}
5993then :
5994  printf %s "(cached) " >&6
5995else $as_nop
5996    i=0
5997  teststring=ABCD
5998
5999  case $build_os in
6000  msdosdjgpp*)
6001    # On DJGPP, this test can blow up pretty badly due to problems in libc
6002    # (any single argument exceeding 2000 bytes causes a buffer overrun
6003    # during glob expansion).  Even if it were fixed, the result of this
6004    # check would be larger than it should be.
6005    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6006    ;;
6007
6008  gnu*)
6009    # Under GNU Hurd, this test is not required because there is
6010    # no limit to the length of command line arguments.
6011    # Libtool will interpret -1 as no limit whatsoever
6012    lt_cv_sys_max_cmd_len=-1;
6013    ;;
6014
6015  cygwin* | mingw* | cegcc*)
6016    # On Win9x/ME, this test blows up -- it succeeds, but takes
6017    # about 5 minutes as the teststring grows exponentially.
6018    # Worse, since 9x/ME are not pre-emptively multitasking,
6019    # you end up with a "frozen" computer, even though with patience
6020    # the test eventually succeeds (with a max line length of 256k).
6021    # Instead, let's just punt: use the minimum linelength reported by
6022    # all of the supported platforms: 8192 (on NT/2K/XP).
6023    lt_cv_sys_max_cmd_len=8192;
6024    ;;
6025
6026  mint*)
6027    # On MiNT this can take a long time and run out of memory.
6028    lt_cv_sys_max_cmd_len=8192;
6029    ;;
6030
6031  mint*)
6032    # On MiNT this can take a long time and run out of memory.
6033    lt_cv_sys_max_cmd_len=8192;
6034    ;;
6035
6036  amigaos*)
6037    # On AmigaOS with pdksh, this test takes hours, literally.
6038    # So we just punt and use a minimum line length of 8192.
6039    lt_cv_sys_max_cmd_len=8192;
6040    ;;
6041
6042  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6043    # This has been around since 386BSD, at least.  Likely further.
6044    if test -x /sbin/sysctl; then
6045      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6046    elif test -x /usr/sbin/sysctl; then
6047      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6048    else
6049      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6050    fi
6051    # And add a safety zone
6052    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6053    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6054    ;;
6055
6056  interix*)
6057    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6058    lt_cv_sys_max_cmd_len=196608
6059    ;;
6060
6061  os2*)
6062    # The test takes a long time on OS/2.
6063    lt_cv_sys_max_cmd_len=8192
6064    ;;
6065
6066  osf*)
6067    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6068    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6069    # nice to cause kernel panics so lets avoid the loop below.
6070    # First set a reasonable default.
6071    lt_cv_sys_max_cmd_len=16384
6072    #
6073    if test -x /sbin/sysconfig; then
6074      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6075        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6076      esac
6077    fi
6078    ;;
6079  sco3.2v5*)
6080    lt_cv_sys_max_cmd_len=102400
6081    ;;
6082  sysv5* | sco5v6* | sysv4.2uw2*)
6083    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6084    if test -n "$kargmax"; then
6085      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6086    else
6087      lt_cv_sys_max_cmd_len=32768
6088    fi
6089    ;;
6090  *)
6091    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6092    if test -n "$lt_cv_sys_max_cmd_len" && \
6093       test undefined != "$lt_cv_sys_max_cmd_len"; then
6094      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6095      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6096    else
6097      # Make teststring a little bigger before we do anything with it.
6098      # a 1K string should be a reasonable start.
6099      for i in 1 2 3 4 5 6 7 8; do
6100        teststring=$teststring$teststring
6101      done
6102      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6103      # If test is not a shell built-in, we'll probably end up computing a
6104      # maximum length that is only half of the actual maximum length, but
6105      # we can't tell.
6106      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6107	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6108	      test 17 != "$i" # 1/2 MB should be enough
6109      do
6110        i=`expr $i + 1`
6111        teststring=$teststring$teststring
6112      done
6113      # Only check the string length outside the loop.
6114      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6115      teststring=
6116      # Add a significant safety factor because C++ compilers can tack on
6117      # massive amounts of additional arguments before passing them to the
6118      # linker.  It appears as though 1/2 is a usable value.
6119      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6120    fi
6121    ;;
6122  esac
6123
6124fi
6125
6126if test -n "$lt_cv_sys_max_cmd_len"; then
6127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6128printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6129else
6130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6131printf "%s\n" "none" >&6; }
6132fi
6133max_cmd_len=$lt_cv_sys_max_cmd_len
6134
6135
6136
6137
6138
6139
6140: ${CP="cp -f"}
6141: ${MV="mv -f"}
6142: ${RM="rm -f"}
6143
6144if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6145  lt_unset=unset
6146else
6147  lt_unset=false
6148fi
6149
6150
6151
6152
6153
6154# test EBCDIC or ASCII
6155case `echo X|tr X '\101'` in
6156 A) # ASCII based system
6157    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6158  lt_SP2NL='tr \040 \012'
6159  lt_NL2SP='tr \015\012 \040\040'
6160  ;;
6161 *) # EBCDIC based system
6162  lt_SP2NL='tr \100 \n'
6163  lt_NL2SP='tr \r\n \100\100'
6164  ;;
6165esac
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6176printf %s "checking how to convert $build file names to $host format... " >&6; }
6177if test ${lt_cv_to_host_file_cmd+y}
6178then :
6179  printf %s "(cached) " >&6
6180else $as_nop
6181  case $host in
6182  *-*-mingw* )
6183    case $build in
6184      *-*-mingw* ) # actually msys
6185        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6186        ;;
6187      *-*-cygwin* )
6188        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6189        ;;
6190      * ) # otherwise, assume *nix
6191        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6192        ;;
6193    esac
6194    ;;
6195  *-*-cygwin* )
6196    case $build in
6197      *-*-mingw* ) # actually msys
6198        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6199        ;;
6200      *-*-cygwin* )
6201        lt_cv_to_host_file_cmd=func_convert_file_noop
6202        ;;
6203      * ) # otherwise, assume *nix
6204        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6205        ;;
6206    esac
6207    ;;
6208  * ) # unhandled hosts (and "normal" native builds)
6209    lt_cv_to_host_file_cmd=func_convert_file_noop
6210    ;;
6211esac
6212
6213fi
6214
6215to_host_file_cmd=$lt_cv_to_host_file_cmd
6216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6217printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6218
6219
6220
6221
6222
6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6224printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6225if test ${lt_cv_to_tool_file_cmd+y}
6226then :
6227  printf %s "(cached) " >&6
6228else $as_nop
6229  #assume ordinary cross tools, or native build.
6230lt_cv_to_tool_file_cmd=func_convert_file_noop
6231case $host in
6232  *-*-mingw* )
6233    case $build in
6234      *-*-mingw* ) # actually msys
6235        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6236        ;;
6237    esac
6238    ;;
6239esac
6240
6241fi
6242
6243to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6245printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6246
6247
6248
6249
6250
6251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6252printf %s "checking for $LD option to reload object files... " >&6; }
6253if test ${lt_cv_ld_reload_flag+y}
6254then :
6255  printf %s "(cached) " >&6
6256else $as_nop
6257  lt_cv_ld_reload_flag='-r'
6258fi
6259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6260printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6261reload_flag=$lt_cv_ld_reload_flag
6262case $reload_flag in
6263"" | " "*) ;;
6264*) reload_flag=" $reload_flag" ;;
6265esac
6266reload_cmds='$LD$reload_flag -o $output$reload_objs'
6267case $host_os in
6268  cygwin* | mingw* | pw32* | cegcc*)
6269    if test yes != "$GCC"; then
6270      reload_cmds=false
6271    fi
6272    ;;
6273  darwin*)
6274    if test yes = "$GCC"; then
6275      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6276    else
6277      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6278    fi
6279    ;;
6280esac
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290if test -n "$ac_tool_prefix"; then
6291  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6292set dummy ${ac_tool_prefix}objdump; ac_word=$2
6293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294printf %s "checking for $ac_word... " >&6; }
6295if test ${ac_cv_prog_OBJDUMP+y}
6296then :
6297  printf %s "(cached) " >&6
6298else $as_nop
6299  if test -n "$OBJDUMP"; then
6300  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305  IFS=$as_save_IFS
6306  case $as_dir in #(((
6307    '') as_dir=./ ;;
6308    */) ;;
6309    *) as_dir=$as_dir/ ;;
6310  esac
6311    for ac_exec_ext in '' $ac_executable_extensions; do
6312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318  done
6319IFS=$as_save_IFS
6320
6321fi
6322fi
6323OBJDUMP=$ac_cv_prog_OBJDUMP
6324if test -n "$OBJDUMP"; then
6325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6326printf "%s\n" "$OBJDUMP" >&6; }
6327else
6328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329printf "%s\n" "no" >&6; }
6330fi
6331
6332
6333fi
6334if test -z "$ac_cv_prog_OBJDUMP"; then
6335  ac_ct_OBJDUMP=$OBJDUMP
6336  # Extract the first word of "objdump", so it can be a program name with args.
6337set dummy objdump; ac_word=$2
6338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339printf %s "checking for $ac_word... " >&6; }
6340if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6341then :
6342  printf %s "(cached) " >&6
6343else $as_nop
6344  if test -n "$ac_ct_OBJDUMP"; then
6345  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350  IFS=$as_save_IFS
6351  case $as_dir in #(((
6352    '') as_dir=./ ;;
6353    */) ;;
6354    *) as_dir=$as_dir/ ;;
6355  esac
6356    for ac_exec_ext in '' $ac_executable_extensions; do
6357  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6358    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6359    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6360    break 2
6361  fi
6362done
6363  done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6369if test -n "$ac_ct_OBJDUMP"; then
6370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6371printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6372else
6373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374printf "%s\n" "no" >&6; }
6375fi
6376
6377  if test "x$ac_ct_OBJDUMP" = x; then
6378    OBJDUMP="false"
6379  else
6380    case $cross_compiling:$ac_tool_warned in
6381yes:)
6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384ac_tool_warned=yes ;;
6385esac
6386    OBJDUMP=$ac_ct_OBJDUMP
6387  fi
6388else
6389  OBJDUMP="$ac_cv_prog_OBJDUMP"
6390fi
6391
6392test -z "$OBJDUMP" && OBJDUMP=objdump
6393
6394
6395
6396
6397
6398
6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6400printf %s "checking how to recognize dependent libraries... " >&6; }
6401if test ${lt_cv_deplibs_check_method+y}
6402then :
6403  printf %s "(cached) " >&6
6404else $as_nop
6405  lt_cv_file_magic_cmd='$MAGIC_CMD'
6406lt_cv_file_magic_test_file=
6407lt_cv_deplibs_check_method='unknown'
6408# Need to set the preceding variable on all platforms that support
6409# interlibrary dependencies.
6410# 'none' -- dependencies not supported.
6411# 'unknown' -- same as none, but documents that we really don't know.
6412# 'pass_all' -- all dependencies passed with no checks.
6413# 'test_compile' -- check by making test program.
6414# 'file_magic [[regex]]' -- check by looking for files in library path
6415# that responds to the $file_magic_cmd with a given extended regex.
6416# If you have 'file' or equivalent on your system and you're not sure
6417# whether 'pass_all' will *always* work, you probably want this one.
6418
6419case $host_os in
6420aix[4-9]*)
6421  lt_cv_deplibs_check_method=pass_all
6422  ;;
6423
6424beos*)
6425  lt_cv_deplibs_check_method=pass_all
6426  ;;
6427
6428bsdi[45]*)
6429  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6430  lt_cv_file_magic_cmd='/usr/bin/file -L'
6431  lt_cv_file_magic_test_file=/shlib/libc.so
6432  ;;
6433
6434cygwin*)
6435  # func_win32_libid is a shell function defined in ltmain.sh
6436  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6437  lt_cv_file_magic_cmd='func_win32_libid'
6438  ;;
6439
6440mingw* | pw32*)
6441  # Base MSYS/MinGW do not provide the 'file' command needed by
6442  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6443  # unless we find 'file', for example because we are cross-compiling.
6444  if ( file / ) >/dev/null 2>&1; then
6445    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6446    lt_cv_file_magic_cmd='func_win32_libid'
6447  else
6448    # Keep this pattern in sync with the one in func_win32_libid.
6449    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6450    lt_cv_file_magic_cmd='$OBJDUMP -f'
6451  fi
6452  ;;
6453
6454cegcc*)
6455  # use the weaker test based on 'objdump'. See mingw*.
6456  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6457  lt_cv_file_magic_cmd='$OBJDUMP -f'
6458  ;;
6459
6460darwin* | rhapsody*)
6461  lt_cv_deplibs_check_method=pass_all
6462  ;;
6463
6464freebsd* | dragonfly*)
6465  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6466    case $host_cpu in
6467    i*86 )
6468      # Not sure whether the presence of OpenBSD here was a mistake.
6469      # Let's accept both of them until this is cleared up.
6470      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6471      lt_cv_file_magic_cmd=/usr/bin/file
6472      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6473      ;;
6474    esac
6475  else
6476    lt_cv_deplibs_check_method=pass_all
6477  fi
6478  ;;
6479
6480haiku*)
6481  lt_cv_deplibs_check_method=pass_all
6482  ;;
6483
6484hpux10.20* | hpux11*)
6485  lt_cv_file_magic_cmd=/usr/bin/file
6486  case $host_cpu in
6487  ia64*)
6488    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6489    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6490    ;;
6491  hppa*64*)
6492    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]'
6493    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6494    ;;
6495  *)
6496    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6497    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6498    ;;
6499  esac
6500  ;;
6501
6502interix[3-9]*)
6503  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6504  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6505  ;;
6506
6507irix5* | irix6* | nonstopux*)
6508  case $LD in
6509  *-32|*"-32 ") libmagic=32-bit;;
6510  *-n32|*"-n32 ") libmagic=N32;;
6511  *-64|*"-64 ") libmagic=64-bit;;
6512  *) libmagic=never-match;;
6513  esac
6514  lt_cv_deplibs_check_method=pass_all
6515  ;;
6516
6517# This must be glibc/ELF.
6518linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6519  lt_cv_deplibs_check_method=pass_all
6520  ;;
6521
6522netbsd*)
6523  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6524    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6525  else
6526    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6527  fi
6528  ;;
6529
6530newos6*)
6531  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6532  lt_cv_file_magic_cmd=/usr/bin/file
6533  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6534  ;;
6535
6536*nto* | *qnx*)
6537  lt_cv_deplibs_check_method=pass_all
6538  ;;
6539
6540openbsd* | bitrig*)
6541  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6543  else
6544    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6545  fi
6546  ;;
6547
6548osf3* | osf4* | osf5*)
6549  lt_cv_deplibs_check_method=pass_all
6550  ;;
6551
6552rdos*)
6553  lt_cv_deplibs_check_method=pass_all
6554  ;;
6555
6556solaris*)
6557  lt_cv_deplibs_check_method=pass_all
6558  ;;
6559
6560sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6561  lt_cv_deplibs_check_method=pass_all
6562  ;;
6563
6564sysv4 | sysv4.3*)
6565  case $host_vendor in
6566  motorola)
6567    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]'
6568    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6569    ;;
6570  ncr)
6571    lt_cv_deplibs_check_method=pass_all
6572    ;;
6573  sequent)
6574    lt_cv_file_magic_cmd='/bin/file'
6575    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6576    ;;
6577  sni)
6578    lt_cv_file_magic_cmd='/bin/file'
6579    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6580    lt_cv_file_magic_test_file=/lib/libc.so
6581    ;;
6582  siemens)
6583    lt_cv_deplibs_check_method=pass_all
6584    ;;
6585  pc)
6586    lt_cv_deplibs_check_method=pass_all
6587    ;;
6588  esac
6589  ;;
6590
6591tpf*)
6592  lt_cv_deplibs_check_method=pass_all
6593  ;;
6594os2*)
6595  lt_cv_deplibs_check_method=pass_all
6596  ;;
6597esac
6598
6599fi
6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6601printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6602
6603file_magic_glob=
6604want_nocaseglob=no
6605if test "$build" = "$host"; then
6606  case $host_os in
6607  mingw* | pw32*)
6608    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6609      want_nocaseglob=yes
6610    else
6611      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6612    fi
6613    ;;
6614  esac
6615fi
6616
6617file_magic_cmd=$lt_cv_file_magic_cmd
6618deplibs_check_method=$lt_cv_deplibs_check_method
6619test -z "$deplibs_check_method" && deplibs_check_method=unknown
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642if test -n "$ac_tool_prefix"; then
6643  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6644set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646printf %s "checking for $ac_word... " >&6; }
6647if test ${ac_cv_prog_DLLTOOL+y}
6648then :
6649  printf %s "(cached) " >&6
6650else $as_nop
6651  if test -n "$DLLTOOL"; then
6652  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657  IFS=$as_save_IFS
6658  case $as_dir in #(((
6659    '') as_dir=./ ;;
6660    */) ;;
6661    *) as_dir=$as_dir/ ;;
6662  esac
6663    for ac_exec_ext in '' $ac_executable_extensions; do
6664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6665    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6667    break 2
6668  fi
6669done
6670  done
6671IFS=$as_save_IFS
6672
6673fi
6674fi
6675DLLTOOL=$ac_cv_prog_DLLTOOL
6676if test -n "$DLLTOOL"; then
6677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6678printf "%s\n" "$DLLTOOL" >&6; }
6679else
6680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681printf "%s\n" "no" >&6; }
6682fi
6683
6684
6685fi
6686if test -z "$ac_cv_prog_DLLTOOL"; then
6687  ac_ct_DLLTOOL=$DLLTOOL
6688  # Extract the first word of "dlltool", so it can be a program name with args.
6689set dummy dlltool; ac_word=$2
6690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691printf %s "checking for $ac_word... " >&6; }
6692if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6693then :
6694  printf %s "(cached) " >&6
6695else $as_nop
6696  if test -n "$ac_ct_DLLTOOL"; then
6697  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702  IFS=$as_save_IFS
6703  case $as_dir in #(((
6704    '') as_dir=./ ;;
6705    */) ;;
6706    *) as_dir=$as_dir/ ;;
6707  esac
6708    for ac_exec_ext in '' $ac_executable_extensions; do
6709  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6710    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6711    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6712    break 2
6713  fi
6714done
6715  done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6721if test -n "$ac_ct_DLLTOOL"; then
6722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6723printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6724else
6725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726printf "%s\n" "no" >&6; }
6727fi
6728
6729  if test "x$ac_ct_DLLTOOL" = x; then
6730    DLLTOOL="false"
6731  else
6732    case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738    DLLTOOL=$ac_ct_DLLTOOL
6739  fi
6740else
6741  DLLTOOL="$ac_cv_prog_DLLTOOL"
6742fi
6743
6744test -z "$DLLTOOL" && DLLTOOL=dlltool
6745
6746
6747
6748
6749
6750
6751
6752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6753printf %s "checking how to associate runtime and link libraries... " >&6; }
6754if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6755then :
6756  printf %s "(cached) " >&6
6757else $as_nop
6758  lt_cv_sharedlib_from_linklib_cmd='unknown'
6759
6760case $host_os in
6761cygwin* | mingw* | pw32* | cegcc*)
6762  # two different shell functions defined in ltmain.sh;
6763  # decide which one to use based on capabilities of $DLLTOOL
6764  case `$DLLTOOL --help 2>&1` in
6765  *--identify-strict*)
6766    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6767    ;;
6768  *)
6769    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6770    ;;
6771  esac
6772  ;;
6773*)
6774  # fallback: assume linklib IS sharedlib
6775  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6776  ;;
6777esac
6778
6779fi
6780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6781printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6782sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6783test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6784
6785
6786
6787
6788
6789
6790
6791if test -n "$ac_tool_prefix"; then
6792  for ac_prog in ar
6793  do
6794    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797printf %s "checking for $ac_word... " >&6; }
6798if test ${ac_cv_prog_AR+y}
6799then :
6800  printf %s "(cached) " >&6
6801else $as_nop
6802  if test -n "$AR"; then
6803  ac_cv_prog_AR="$AR" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808  IFS=$as_save_IFS
6809  case $as_dir in #(((
6810    '') as_dir=./ ;;
6811    */) ;;
6812    *) as_dir=$as_dir/ ;;
6813  esac
6814    for ac_exec_ext in '' $ac_executable_extensions; do
6815  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6816    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6817    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6818    break 2
6819  fi
6820done
6821  done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826AR=$ac_cv_prog_AR
6827if test -n "$AR"; then
6828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6829printf "%s\n" "$AR" >&6; }
6830else
6831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832printf "%s\n" "no" >&6; }
6833fi
6834
6835
6836    test -n "$AR" && break
6837  done
6838fi
6839if test -z "$AR"; then
6840  ac_ct_AR=$AR
6841  for ac_prog in ar
6842do
6843  # Extract the first word of "$ac_prog", so it can be a program name with args.
6844set dummy $ac_prog; ac_word=$2
6845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846printf %s "checking for $ac_word... " >&6; }
6847if test ${ac_cv_prog_ac_ct_AR+y}
6848then :
6849  printf %s "(cached) " >&6
6850else $as_nop
6851  if test -n "$ac_ct_AR"; then
6852  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  case $as_dir in #(((
6859    '') as_dir=./ ;;
6860    */) ;;
6861    *) as_dir=$as_dir/ ;;
6862  esac
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6865    ac_cv_prog_ac_ct_AR="$ac_prog"
6866    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_AR=$ac_cv_prog_ac_ct_AR
6876if test -n "$ac_ct_AR"; then
6877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6878printf "%s\n" "$ac_ct_AR" >&6; }
6879else
6880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881printf "%s\n" "no" >&6; }
6882fi
6883
6884
6885  test -n "$ac_ct_AR" && break
6886done
6887
6888  if test "x$ac_ct_AR" = x; then
6889    AR="false"
6890  else
6891    case $cross_compiling:$ac_tool_warned in
6892yes:)
6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895ac_tool_warned=yes ;;
6896esac
6897    AR=$ac_ct_AR
6898  fi
6899fi
6900
6901: ${AR=ar}
6902: ${AR_FLAGS=cru}
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6915printf %s "checking for archiver @FILE support... " >&6; }
6916if test ${lt_cv_ar_at_file+y}
6917then :
6918  printf %s "(cached) " >&6
6919else $as_nop
6920  lt_cv_ar_at_file=no
6921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923
6924int
6925main (void)
6926{
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932if ac_fn_c_try_compile "$LINENO"
6933then :
6934  echo conftest.$ac_objext > conftest.lst
6935      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6936      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6937  (eval $lt_ar_try) 2>&5
6938  ac_status=$?
6939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940  test $ac_status = 0; }
6941      if test 0 -eq "$ac_status"; then
6942	# Ensure the archiver fails upon bogus file names.
6943	rm -f conftest.$ac_objext libconftest.a
6944	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6945  (eval $lt_ar_try) 2>&5
6946  ac_status=$?
6947  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948  test $ac_status = 0; }
6949	if test 0 -ne "$ac_status"; then
6950          lt_cv_ar_at_file=@
6951        fi
6952      fi
6953      rm -f conftest.* libconftest.a
6954
6955fi
6956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6957
6958fi
6959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6960printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6961
6962if test no = "$lt_cv_ar_at_file"; then
6963  archiver_list_spec=
6964else
6965  archiver_list_spec=$lt_cv_ar_at_file
6966fi
6967
6968
6969
6970
6971
6972
6973
6974if test -n "$ac_tool_prefix"; then
6975  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6976set dummy ${ac_tool_prefix}strip; ac_word=$2
6977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978printf %s "checking for $ac_word... " >&6; }
6979if test ${ac_cv_prog_STRIP+y}
6980then :
6981  printf %s "(cached) " >&6
6982else $as_nop
6983  if test -n "$STRIP"; then
6984  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989  IFS=$as_save_IFS
6990  case $as_dir in #(((
6991    '') as_dir=./ ;;
6992    */) ;;
6993    *) as_dir=$as_dir/ ;;
6994  esac
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6997    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6998    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007STRIP=$ac_cv_prog_STRIP
7008if test -n "$STRIP"; then
7009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7010printf "%s\n" "$STRIP" >&6; }
7011else
7012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013printf "%s\n" "no" >&6; }
7014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_STRIP"; then
7019  ac_ct_STRIP=$STRIP
7020  # Extract the first word of "strip", so it can be a program name with args.
7021set dummy strip; ac_word=$2
7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023printf %s "checking for $ac_word... " >&6; }
7024if test ${ac_cv_prog_ac_ct_STRIP+y}
7025then :
7026  printf %s "(cached) " >&6
7027else $as_nop
7028  if test -n "$ac_ct_STRIP"; then
7029  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  case $as_dir in #(((
7036    '') as_dir=./ ;;
7037    */) ;;
7038    *) as_dir=$as_dir/ ;;
7039  esac
7040    for ac_exec_ext in '' $ac_executable_extensions; do
7041  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7042    ac_cv_prog_ac_ct_STRIP="strip"
7043    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7044    break 2
7045  fi
7046done
7047  done
7048IFS=$as_save_IFS
7049
7050fi
7051fi
7052ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7053if test -n "$ac_ct_STRIP"; then
7054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7055printf "%s\n" "$ac_ct_STRIP" >&6; }
7056else
7057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058printf "%s\n" "no" >&6; }
7059fi
7060
7061  if test "x$ac_ct_STRIP" = x; then
7062    STRIP=":"
7063  else
7064    case $cross_compiling:$ac_tool_warned in
7065yes:)
7066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068ac_tool_warned=yes ;;
7069esac
7070    STRIP=$ac_ct_STRIP
7071  fi
7072else
7073  STRIP="$ac_cv_prog_STRIP"
7074fi
7075
7076test -z "$STRIP" && STRIP=:
7077
7078
7079
7080
7081
7082
7083if test -n "$ac_tool_prefix"; then
7084  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7085set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087printf %s "checking for $ac_word... " >&6; }
7088if test ${ac_cv_prog_RANLIB+y}
7089then :
7090  printf %s "(cached) " >&6
7091else $as_nop
7092  if test -n "$RANLIB"; then
7093  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098  IFS=$as_save_IFS
7099  case $as_dir in #(((
7100    '') as_dir=./ ;;
7101    */) ;;
7102    *) as_dir=$as_dir/ ;;
7103  esac
7104    for ac_exec_ext in '' $ac_executable_extensions; do
7105  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7106    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7107    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7108    break 2
7109  fi
7110done
7111  done
7112IFS=$as_save_IFS
7113
7114fi
7115fi
7116RANLIB=$ac_cv_prog_RANLIB
7117if test -n "$RANLIB"; then
7118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7119printf "%s\n" "$RANLIB" >&6; }
7120else
7121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122printf "%s\n" "no" >&6; }
7123fi
7124
7125
7126fi
7127if test -z "$ac_cv_prog_RANLIB"; then
7128  ac_ct_RANLIB=$RANLIB
7129  # Extract the first word of "ranlib", so it can be a program name with args.
7130set dummy ranlib; ac_word=$2
7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132printf %s "checking for $ac_word... " >&6; }
7133if test ${ac_cv_prog_ac_ct_RANLIB+y}
7134then :
7135  printf %s "(cached) " >&6
7136else $as_nop
7137  if test -n "$ac_ct_RANLIB"; then
7138  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143  IFS=$as_save_IFS
7144  case $as_dir in #(((
7145    '') as_dir=./ ;;
7146    */) ;;
7147    *) as_dir=$as_dir/ ;;
7148  esac
7149    for ac_exec_ext in '' $ac_executable_extensions; do
7150  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7151    ac_cv_prog_ac_ct_RANLIB="ranlib"
7152    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7153    break 2
7154  fi
7155done
7156  done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162if test -n "$ac_ct_RANLIB"; then
7163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7164printf "%s\n" "$ac_ct_RANLIB" >&6; }
7165else
7166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167printf "%s\n" "no" >&6; }
7168fi
7169
7170  if test "x$ac_ct_RANLIB" = x; then
7171    RANLIB=":"
7172  else
7173    case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177ac_tool_warned=yes ;;
7178esac
7179    RANLIB=$ac_ct_RANLIB
7180  fi
7181else
7182  RANLIB="$ac_cv_prog_RANLIB"
7183fi
7184
7185test -z "$RANLIB" && RANLIB=:
7186
7187
7188
7189
7190
7191
7192# Determine commands to create old-style static archives.
7193old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7194old_postinstall_cmds='chmod 644 $oldlib'
7195old_postuninstall_cmds=
7196
7197if test -n "$RANLIB"; then
7198  case $host_os in
7199  bitrig* | openbsd*)
7200    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7201    ;;
7202  *)
7203    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7204    ;;
7205  esac
7206  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7207fi
7208
7209case $host_os in
7210  darwin*)
7211    lock_old_archive_extraction=yes ;;
7212  *)
7213    lock_old_archive_extraction=no ;;
7214esac
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254# If no C compiler was specified, use CC.
7255LTCC=${LTCC-"$CC"}
7256
7257# If no C compiler flags were specified, use CFLAGS.
7258LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7259
7260# Allow CC to be a program name with arguments.
7261compiler=$CC
7262
7263
7264# Check for command to grab the raw symbol name followed by C symbol from nm.
7265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7266printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7267if test ${lt_cv_sys_global_symbol_pipe+y}
7268then :
7269  printf %s "(cached) " >&6
7270else $as_nop
7271
7272# These are sane defaults that work on at least a few old systems.
7273# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7274
7275# Character class describing NM global symbol codes.
7276symcode='[BCDEGRST]'
7277
7278# Regexp to match symbols that can be accessed directly from C.
7279sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7280
7281# Define system-specific variables.
7282case $host_os in
7283aix*)
7284  symcode='[BCDT]'
7285  ;;
7286cygwin* | mingw* | pw32* | cegcc*)
7287  symcode='[ABCDGISTW]'
7288  ;;
7289hpux*)
7290  if test ia64 = "$host_cpu"; then
7291    symcode='[ABCDEGRST]'
7292  fi
7293  ;;
7294irix* | nonstopux*)
7295  symcode='[BCDEGRST]'
7296  ;;
7297osf*)
7298  symcode='[BCDEGQRST]'
7299  ;;
7300solaris*)
7301  symcode='[BDRT]'
7302  ;;
7303sco3.2v5*)
7304  symcode='[DT]'
7305  ;;
7306sysv4.2uw2*)
7307  symcode='[DT]'
7308  ;;
7309sysv5* | sco5v6* | unixware* | OpenUNIX*)
7310  symcode='[ABDT]'
7311  ;;
7312sysv4)
7313  symcode='[DFNSTU]'
7314  ;;
7315esac
7316
7317# If we're using GNU nm, then use its standard symbol codes.
7318case `$NM -V 2>&1` in
7319*GNU* | *'with BFD'*)
7320  symcode='[ABCDGIRSTW]' ;;
7321esac
7322
7323if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7324  # Gets list of data symbols to import.
7325  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7326  # Adjust the below global symbol transforms to fixup imported variables.
7327  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7328  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7329  lt_c_name_lib_hook="\
7330  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7331  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7332else
7333  # Disable hooks by default.
7334  lt_cv_sys_global_symbol_to_import=
7335  lt_cdecl_hook=
7336  lt_c_name_hook=
7337  lt_c_name_lib_hook=
7338fi
7339
7340# Transform an extracted symbol line into a proper C declaration.
7341# Some systems (esp. on ia64) link data and code symbols differently,
7342# so use this general approach.
7343lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7344$lt_cdecl_hook\
7345" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7346" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7347
7348# Transform an extracted symbol line into symbol name and symbol address
7349lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7350$lt_c_name_hook\
7351" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7352" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7353
7354# Transform an extracted symbol line into symbol name with lib prefix and
7355# symbol address.
7356lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7357$lt_c_name_lib_hook\
7358" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7359" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7360" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7361
7362# Handle CRLF in mingw tool chain
7363opt_cr=
7364case $build_os in
7365mingw*)
7366  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7367  ;;
7368esac
7369
7370# Try without a prefix underscore, then with it.
7371for ac_symprfx in "" "_"; do
7372
7373  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7374  symxfrm="\\1 $ac_symprfx\\2 \\2"
7375
7376  # Write the raw and C identifiers.
7377  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7378    # Fake it for dumpbin and say T for any non-static function,
7379    # D for any global variable and I for any imported variable.
7380    # Also find C++ and __fastcall symbols from MSVC++,
7381    # which start with @ or ?.
7382    lt_cv_sys_global_symbol_pipe="$AWK '"\
7383"     {last_section=section; section=\$ 3};"\
7384"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7385"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7386"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7387"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7388"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7389"     \$ 0!~/External *\|/{next};"\
7390"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7391"     {if(hide[section]) next};"\
7392"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7393"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7394"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7395"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7396"     ' prfx=^$ac_symprfx"
7397  else
7398    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7399  fi
7400  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7401
7402  # Check to see that the pipe works correctly.
7403  pipe_works=no
7404
7405  rm -f conftest*
7406  cat > conftest.$ac_ext <<_LT_EOF
7407#ifdef __cplusplus
7408extern "C" {
7409#endif
7410char nm_test_var;
7411void nm_test_func(void);
7412void nm_test_func(void){}
7413#ifdef __cplusplus
7414}
7415#endif
7416int main(){nm_test_var='a';nm_test_func();return(0);}
7417_LT_EOF
7418
7419  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7420  (eval $ac_compile) 2>&5
7421  ac_status=$?
7422  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423  test $ac_status = 0; }; then
7424    # Now try to grab the symbols.
7425    nlist=conftest.nm
7426    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7427  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7428  ac_status=$?
7429  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430  test $ac_status = 0; } && test -s "$nlist"; then
7431      # Try sorting and uniquifying the output.
7432      if sort "$nlist" | uniq > "$nlist"T; then
7433	mv -f "$nlist"T "$nlist"
7434      else
7435	rm -f "$nlist"T
7436      fi
7437
7438      # Make sure that we snagged all the symbols we need.
7439      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7440	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7441	  cat <<_LT_EOF > conftest.$ac_ext
7442/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7443#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7444/* DATA imports from DLLs on WIN32 can't be const, because runtime
7445   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7446# define LT_DLSYM_CONST
7447#elif defined __osf__
7448/* This system does not cope well with relocations in const data.  */
7449# define LT_DLSYM_CONST
7450#else
7451# define LT_DLSYM_CONST const
7452#endif
7453
7454#ifdef __cplusplus
7455extern "C" {
7456#endif
7457
7458_LT_EOF
7459	  # Now generate the symbol file.
7460	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7461
7462	  cat <<_LT_EOF >> conftest.$ac_ext
7463
7464/* The mapping between symbol names and symbols.  */
7465LT_DLSYM_CONST struct {
7466  const char *name;
7467  void       *address;
7468}
7469lt__PROGRAM__LTX_preloaded_symbols[] =
7470{
7471  { "@PROGRAM@", (void *) 0 },
7472_LT_EOF
7473	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7474	  cat <<\_LT_EOF >> conftest.$ac_ext
7475  {0, (void *) 0}
7476};
7477
7478/* This works around a problem in FreeBSD linker */
7479#ifdef FREEBSD_WORKAROUND
7480static const void *lt_preloaded_setup() {
7481  return lt__PROGRAM__LTX_preloaded_symbols;
7482}
7483#endif
7484
7485#ifdef __cplusplus
7486}
7487#endif
7488_LT_EOF
7489	  # Now try linking the two files.
7490	  mv conftest.$ac_objext conftstm.$ac_objext
7491	  lt_globsym_save_LIBS=$LIBS
7492	  lt_globsym_save_CFLAGS=$CFLAGS
7493	  LIBS=conftstm.$ac_objext
7494	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7495	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7496  (eval $ac_link) 2>&5
7497  ac_status=$?
7498  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7500	    pipe_works=yes
7501	  fi
7502	  LIBS=$lt_globsym_save_LIBS
7503	  CFLAGS=$lt_globsym_save_CFLAGS
7504	else
7505	  echo "cannot find nm_test_func in $nlist" >&5
7506	fi
7507      else
7508	echo "cannot find nm_test_var in $nlist" >&5
7509      fi
7510    else
7511      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7512    fi
7513  else
7514    echo "$progname: failed program was:" >&5
7515    cat conftest.$ac_ext >&5
7516  fi
7517  rm -rf conftest* conftst*
7518
7519  # Do not use the global_symbol_pipe unless it works.
7520  if test yes = "$pipe_works"; then
7521    break
7522  else
7523    lt_cv_sys_global_symbol_pipe=
7524  fi
7525done
7526
7527fi
7528
7529if test -z "$lt_cv_sys_global_symbol_pipe"; then
7530  lt_cv_sys_global_symbol_to_cdecl=
7531fi
7532if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7534printf "%s\n" "failed" >&6; }
7535else
7536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7537printf "%s\n" "ok" >&6; }
7538fi
7539
7540# Response file support.
7541if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7542  nm_file_list_spec='@'
7543elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7544  nm_file_list_spec='@'
7545fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7584printf %s "checking for sysroot... " >&6; }
7585
7586# Check whether --with-sysroot was given.
7587if test ${with_sysroot+y}
7588then :
7589  withval=$with_sysroot;
7590else $as_nop
7591  with_sysroot=no
7592fi
7593
7594
7595lt_sysroot=
7596case $with_sysroot in #(
7597 yes)
7598   if test yes = "$GCC"; then
7599     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7600   fi
7601   ;; #(
7602 /*)
7603   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7604   ;; #(
7605 no|'')
7606   ;; #(
7607 *)
7608   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7609printf "%s\n" "$with_sysroot" >&6; }
7610   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7611   ;;
7612esac
7613
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7615printf "%s\n" "${lt_sysroot:-no}" >&6; }
7616
7617
7618
7619
7620
7621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7622printf %s "checking for a working dd... " >&6; }
7623if test ${ac_cv_path_lt_DD+y}
7624then :
7625  printf %s "(cached) " >&6
7626else $as_nop
7627  printf 0123456789abcdef0123456789abcdef >conftest.i
7628cat conftest.i conftest.i >conftest2.i
7629: ${lt_DD:=$DD}
7630if test -z "$lt_DD"; then
7631  ac_path_lt_DD_found=false
7632  # Loop through the user's path and test for each of PROGNAME-LIST
7633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  case $as_dir in #(((
7638    '') as_dir=./ ;;
7639    */) ;;
7640    *) as_dir=$as_dir/ ;;
7641  esac
7642    for ac_prog in dd
7643   do
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7646      as_fn_executable_p "$ac_path_lt_DD" || continue
7647if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7648  cmp -s conftest.i conftest.out \
7649  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7650fi
7651      $ac_path_lt_DD_found && break 3
7652    done
7653  done
7654  done
7655IFS=$as_save_IFS
7656  if test -z "$ac_cv_path_lt_DD"; then
7657    :
7658  fi
7659else
7660  ac_cv_path_lt_DD=$lt_DD
7661fi
7662
7663rm -f conftest.i conftest2.i conftest.out
7664fi
7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7666printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7667
7668
7669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7670printf %s "checking how to truncate binary pipes... " >&6; }
7671if test ${lt_cv_truncate_bin+y}
7672then :
7673  printf %s "(cached) " >&6
7674else $as_nop
7675  printf 0123456789abcdef0123456789abcdef >conftest.i
7676cat conftest.i conftest.i >conftest2.i
7677lt_cv_truncate_bin=
7678if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7679  cmp -s conftest.i conftest.out \
7680  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7681fi
7682rm -f conftest.i conftest2.i conftest.out
7683test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7684fi
7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7686printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7687
7688
7689
7690
7691
7692
7693
7694# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7695func_cc_basename ()
7696{
7697    for cc_temp in $*""; do
7698      case $cc_temp in
7699        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7700        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7701        \-*) ;;
7702        *) break;;
7703      esac
7704    done
7705    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7706}
7707
7708# Check whether --enable-libtool-lock was given.
7709if test ${enable_libtool_lock+y}
7710then :
7711  enableval=$enable_libtool_lock;
7712fi
7713
7714test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7715
7716# Some flags need to be propagated to the compiler or linker for good
7717# libtool support.
7718case $host in
7719ia64-*-hpux*)
7720  # Find out what ABI is being produced by ac_compile, and set mode
7721  # options accordingly.
7722  echo 'int i;' > conftest.$ac_ext
7723  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724  (eval $ac_compile) 2>&5
7725  ac_status=$?
7726  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727  test $ac_status = 0; }; then
7728    case `/usr/bin/file conftest.$ac_objext` in
7729      *ELF-32*)
7730	HPUX_IA64_MODE=32
7731	;;
7732      *ELF-64*)
7733	HPUX_IA64_MODE=64
7734	;;
7735    esac
7736  fi
7737  rm -rf conftest*
7738  ;;
7739*-*-irix6*)
7740  # Find out what ABI is being produced by ac_compile, and set linker
7741  # options accordingly.
7742  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7743  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744  (eval $ac_compile) 2>&5
7745  ac_status=$?
7746  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747  test $ac_status = 0; }; then
7748    if test yes = "$lt_cv_prog_gnu_ld"; then
7749      case `/usr/bin/file conftest.$ac_objext` in
7750	*32-bit*)
7751	  LD="${LD-ld} -melf32bsmip"
7752	  ;;
7753	*N32*)
7754	  LD="${LD-ld} -melf32bmipn32"
7755	  ;;
7756	*64-bit*)
7757	  LD="${LD-ld} -melf64bmip"
7758	;;
7759      esac
7760    else
7761      case `/usr/bin/file conftest.$ac_objext` in
7762	*32-bit*)
7763	  LD="${LD-ld} -32"
7764	  ;;
7765	*N32*)
7766	  LD="${LD-ld} -n32"
7767	  ;;
7768	*64-bit*)
7769	  LD="${LD-ld} -64"
7770	  ;;
7771      esac
7772    fi
7773  fi
7774  rm -rf conftest*
7775  ;;
7776
7777mips64*-*linux*)
7778  # Find out what ABI is being produced by ac_compile, and set linker
7779  # options accordingly.
7780  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7781  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782  (eval $ac_compile) 2>&5
7783  ac_status=$?
7784  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785  test $ac_status = 0; }; then
7786    emul=elf
7787    case `/usr/bin/file conftest.$ac_objext` in
7788      *32-bit*)
7789	emul="${emul}32"
7790	;;
7791      *64-bit*)
7792	emul="${emul}64"
7793	;;
7794    esac
7795    case `/usr/bin/file conftest.$ac_objext` in
7796      *MSB*)
7797	emul="${emul}btsmip"
7798	;;
7799      *LSB*)
7800	emul="${emul}ltsmip"
7801	;;
7802    esac
7803    case `/usr/bin/file conftest.$ac_objext` in
7804      *N32*)
7805	emul="${emul}n32"
7806	;;
7807    esac
7808    LD="${LD-ld} -m $emul"
7809  fi
7810  rm -rf conftest*
7811  ;;
7812
7813x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7814s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7815  # Find out what ABI is being produced by ac_compile, and set linker
7816  # options accordingly.  Note that the listed cases only cover the
7817  # situations where additional linker options are needed (such as when
7818  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7819  # vice versa); the common cases where no linker options are needed do
7820  # not appear in the list.
7821  echo 'int i;' > conftest.$ac_ext
7822  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823  (eval $ac_compile) 2>&5
7824  ac_status=$?
7825  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826  test $ac_status = 0; }; then
7827    case `/usr/bin/file conftest.o` in
7828      *32-bit*)
7829	case $host in
7830	  x86_64-*kfreebsd*-gnu)
7831	    LD="${LD-ld} -m elf_i386_fbsd"
7832	    ;;
7833	  x86_64-*linux*)
7834	    case `/usr/bin/file conftest.o` in
7835	      *x86-64*)
7836		LD="${LD-ld} -m elf32_x86_64"
7837		;;
7838	      *)
7839		LD="${LD-ld} -m elf_i386"
7840		;;
7841	    esac
7842	    ;;
7843	  powerpc64le-*linux*)
7844	    LD="${LD-ld} -m elf32lppclinux"
7845	    ;;
7846	  powerpc64-*linux*)
7847	    LD="${LD-ld} -m elf32ppclinux"
7848	    ;;
7849	  s390x-*linux*)
7850	    LD="${LD-ld} -m elf_s390"
7851	    ;;
7852	  sparc64-*linux*)
7853	    LD="${LD-ld} -m elf32_sparc"
7854	    ;;
7855	esac
7856	;;
7857      *64-bit*)
7858	case $host in
7859	  x86_64-*kfreebsd*-gnu)
7860	    LD="${LD-ld} -m elf_x86_64_fbsd"
7861	    ;;
7862	  x86_64-*linux*)
7863	    LD="${LD-ld} -m elf_x86_64"
7864	    ;;
7865	  powerpcle-*linux*|powerpc64le-*linux*)
7866	    LD="${LD-ld} -m elf64lppc"
7867	    ;;
7868	  powerpc-*linux*|powerpc64-*linux*)
7869	    LD="${LD-ld} -m elf64ppc"
7870	    ;;
7871	  s390*-*linux*|s390*-*tpf*)
7872	    LD="${LD-ld} -m elf64_s390"
7873	    ;;
7874	  sparc*-*linux*)
7875	    LD="${LD-ld} -m elf64_sparc"
7876	    ;;
7877	esac
7878	;;
7879    esac
7880  fi
7881  rm -rf conftest*
7882  ;;
7883
7884*-*-sco3.2v5*)
7885  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7886  SAVE_CFLAGS=$CFLAGS
7887  CFLAGS="$CFLAGS -belf"
7888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7889printf %s "checking whether the C compiler needs -belf... " >&6; }
7890if test ${lt_cv_cc_needs_belf+y}
7891then :
7892  printf %s "(cached) " >&6
7893else $as_nop
7894  ac_ext=c
7895ac_cpp='$CPP $CPPFLAGS'
7896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899
7900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902
7903int
7904main (void)
7905{
7906
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911if ac_fn_c_try_link "$LINENO"
7912then :
7913  lt_cv_cc_needs_belf=yes
7914else $as_nop
7915  lt_cv_cc_needs_belf=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.beam \
7918    conftest$ac_exeext conftest.$ac_ext
7919     ac_ext=c
7920ac_cpp='$CPP $CPPFLAGS'
7921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924
7925fi
7926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7927printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7928  if test yes != "$lt_cv_cc_needs_belf"; then
7929    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7930    CFLAGS=$SAVE_CFLAGS
7931  fi
7932  ;;
7933*-*solaris*)
7934  # Find out what ABI is being produced by ac_compile, and set linker
7935  # options accordingly.
7936  echo 'int i;' > conftest.$ac_ext
7937  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7938  (eval $ac_compile) 2>&5
7939  ac_status=$?
7940  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7941  test $ac_status = 0; }; then
7942    case `/usr/bin/file conftest.o` in
7943    *64-bit*)
7944      case $lt_cv_prog_gnu_ld in
7945      yes*)
7946        case $host in
7947        i?86-*-solaris*|x86_64-*-solaris*)
7948          LD="${LD-ld} -m elf_x86_64"
7949          ;;
7950        sparc*-*-solaris*)
7951          LD="${LD-ld} -m elf64_sparc"
7952          ;;
7953        esac
7954        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7955        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7956          LD=${LD-ld}_sol2
7957        fi
7958        ;;
7959      *)
7960	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7961	  LD="${LD-ld} -64"
7962	fi
7963	;;
7964      esac
7965      ;;
7966    esac
7967  fi
7968  rm -rf conftest*
7969  ;;
7970esac
7971
7972need_locks=$enable_libtool_lock
7973
7974if test -n "$ac_tool_prefix"; then
7975  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7976set dummy ${ac_tool_prefix}mt; ac_word=$2
7977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978printf %s "checking for $ac_word... " >&6; }
7979if test ${ac_cv_prog_MANIFEST_TOOL+y}
7980then :
7981  printf %s "(cached) " >&6
7982else $as_nop
7983  if test -n "$MANIFEST_TOOL"; then
7984  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7985else
7986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989  IFS=$as_save_IFS
7990  case $as_dir in #(((
7991    '') as_dir=./ ;;
7992    */) ;;
7993    *) as_dir=$as_dir/ ;;
7994  esac
7995    for ac_exec_ext in '' $ac_executable_extensions; do
7996  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7997    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7998    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002  done
8003IFS=$as_save_IFS
8004
8005fi
8006fi
8007MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8008if test -n "$MANIFEST_TOOL"; then
8009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8010printf "%s\n" "$MANIFEST_TOOL" >&6; }
8011else
8012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013printf "%s\n" "no" >&6; }
8014fi
8015
8016
8017fi
8018if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8019  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8020  # Extract the first word of "mt", so it can be a program name with args.
8021set dummy mt; ac_word=$2
8022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023printf %s "checking for $ac_word... " >&6; }
8024if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8025then :
8026  printf %s "(cached) " >&6
8027else $as_nop
8028  if test -n "$ac_ct_MANIFEST_TOOL"; then
8029  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034  IFS=$as_save_IFS
8035  case $as_dir in #(((
8036    '') as_dir=./ ;;
8037    */) ;;
8038    *) as_dir=$as_dir/ ;;
8039  esac
8040    for ac_exec_ext in '' $ac_executable_extensions; do
8041  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8042    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8043    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8044    break 2
8045  fi
8046done
8047  done
8048IFS=$as_save_IFS
8049
8050fi
8051fi
8052ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8053if test -n "$ac_ct_MANIFEST_TOOL"; then
8054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8055printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8056else
8057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058printf "%s\n" "no" >&6; }
8059fi
8060
8061  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8062    MANIFEST_TOOL=":"
8063  else
8064    case $cross_compiling:$ac_tool_warned in
8065yes:)
8066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068ac_tool_warned=yes ;;
8069esac
8070    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8071  fi
8072else
8073  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8074fi
8075
8076test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8078printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8079if test ${lt_cv_path_mainfest_tool+y}
8080then :
8081  printf %s "(cached) " >&6
8082else $as_nop
8083  lt_cv_path_mainfest_tool=no
8084  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8085  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8086  cat conftest.err >&5
8087  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8088    lt_cv_path_mainfest_tool=yes
8089  fi
8090  rm -f conftest*
8091fi
8092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8093printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8094if test yes != "$lt_cv_path_mainfest_tool"; then
8095  MANIFEST_TOOL=:
8096fi
8097
8098
8099
8100
8101
8102
8103  case $host_os in
8104    rhapsody* | darwin*)
8105    if test -n "$ac_tool_prefix"; then
8106  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8107set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109printf %s "checking for $ac_word... " >&6; }
8110if test ${ac_cv_prog_DSYMUTIL+y}
8111then :
8112  printf %s "(cached) " >&6
8113else $as_nop
8114  if test -n "$DSYMUTIL"; then
8115  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  case $as_dir in #(((
8122    '') as_dir=./ ;;
8123    */) ;;
8124    *) as_dir=$as_dir/ ;;
8125  esac
8126    for ac_exec_ext in '' $ac_executable_extensions; do
8127  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8128    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8129    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8130    break 2
8131  fi
8132done
8133  done
8134IFS=$as_save_IFS
8135
8136fi
8137fi
8138DSYMUTIL=$ac_cv_prog_DSYMUTIL
8139if test -n "$DSYMUTIL"; then
8140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8141printf "%s\n" "$DSYMUTIL" >&6; }
8142else
8143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144printf "%s\n" "no" >&6; }
8145fi
8146
8147
8148fi
8149if test -z "$ac_cv_prog_DSYMUTIL"; then
8150  ac_ct_DSYMUTIL=$DSYMUTIL
8151  # Extract the first word of "dsymutil", so it can be a program name with args.
8152set dummy dsymutil; ac_word=$2
8153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154printf %s "checking for $ac_word... " >&6; }
8155if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8156then :
8157  printf %s "(cached) " >&6
8158else $as_nop
8159  if test -n "$ac_ct_DSYMUTIL"; then
8160  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165  IFS=$as_save_IFS
8166  case $as_dir in #(((
8167    '') as_dir=./ ;;
8168    */) ;;
8169    *) as_dir=$as_dir/ ;;
8170  esac
8171    for ac_exec_ext in '' $ac_executable_extensions; do
8172  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8173    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8174    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8175    break 2
8176  fi
8177done
8178  done
8179IFS=$as_save_IFS
8180
8181fi
8182fi
8183ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8184if test -n "$ac_ct_DSYMUTIL"; then
8185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8186printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8187else
8188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189printf "%s\n" "no" >&6; }
8190fi
8191
8192  if test "x$ac_ct_DSYMUTIL" = x; then
8193    DSYMUTIL=":"
8194  else
8195    case $cross_compiling:$ac_tool_warned in
8196yes:)
8197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8198printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8199ac_tool_warned=yes ;;
8200esac
8201    DSYMUTIL=$ac_ct_DSYMUTIL
8202  fi
8203else
8204  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8205fi
8206
8207    if test -n "$ac_tool_prefix"; then
8208  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8209set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211printf %s "checking for $ac_word... " >&6; }
8212if test ${ac_cv_prog_NMEDIT+y}
8213then :
8214  printf %s "(cached) " >&6
8215else $as_nop
8216  if test -n "$NMEDIT"; then
8217  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8218else
8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222  IFS=$as_save_IFS
8223  case $as_dir in #(((
8224    '') as_dir=./ ;;
8225    */) ;;
8226    *) as_dir=$as_dir/ ;;
8227  esac
8228    for ac_exec_ext in '' $ac_executable_extensions; do
8229  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8230    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8231    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8232    break 2
8233  fi
8234done
8235  done
8236IFS=$as_save_IFS
8237
8238fi
8239fi
8240NMEDIT=$ac_cv_prog_NMEDIT
8241if test -n "$NMEDIT"; then
8242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8243printf "%s\n" "$NMEDIT" >&6; }
8244else
8245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246printf "%s\n" "no" >&6; }
8247fi
8248
8249
8250fi
8251if test -z "$ac_cv_prog_NMEDIT"; then
8252  ac_ct_NMEDIT=$NMEDIT
8253  # Extract the first word of "nmedit", so it can be a program name with args.
8254set dummy nmedit; ac_word=$2
8255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256printf %s "checking for $ac_word... " >&6; }
8257if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8258then :
8259  printf %s "(cached) " >&6
8260else $as_nop
8261  if test -n "$ac_ct_NMEDIT"; then
8262  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8263else
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267  IFS=$as_save_IFS
8268  case $as_dir in #(((
8269    '') as_dir=./ ;;
8270    */) ;;
8271    *) as_dir=$as_dir/ ;;
8272  esac
8273    for ac_exec_ext in '' $ac_executable_extensions; do
8274  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8275    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8276    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8277    break 2
8278  fi
8279done
8280  done
8281IFS=$as_save_IFS
8282
8283fi
8284fi
8285ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8286if test -n "$ac_ct_NMEDIT"; then
8287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8288printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8289else
8290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291printf "%s\n" "no" >&6; }
8292fi
8293
8294  if test "x$ac_ct_NMEDIT" = x; then
8295    NMEDIT=":"
8296  else
8297    case $cross_compiling:$ac_tool_warned in
8298yes:)
8299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8300printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8301ac_tool_warned=yes ;;
8302esac
8303    NMEDIT=$ac_ct_NMEDIT
8304  fi
8305else
8306  NMEDIT="$ac_cv_prog_NMEDIT"
8307fi
8308
8309    if test -n "$ac_tool_prefix"; then
8310  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8311set dummy ${ac_tool_prefix}lipo; ac_word=$2
8312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313printf %s "checking for $ac_word... " >&6; }
8314if test ${ac_cv_prog_LIPO+y}
8315then :
8316  printf %s "(cached) " >&6
8317else $as_nop
8318  if test -n "$LIPO"; then
8319  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324  IFS=$as_save_IFS
8325  case $as_dir in #(((
8326    '') as_dir=./ ;;
8327    */) ;;
8328    *) as_dir=$as_dir/ ;;
8329  esac
8330    for ac_exec_ext in '' $ac_executable_extensions; do
8331  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8332    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8333    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8334    break 2
8335  fi
8336done
8337  done
8338IFS=$as_save_IFS
8339
8340fi
8341fi
8342LIPO=$ac_cv_prog_LIPO
8343if test -n "$LIPO"; then
8344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8345printf "%s\n" "$LIPO" >&6; }
8346else
8347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348printf "%s\n" "no" >&6; }
8349fi
8350
8351
8352fi
8353if test -z "$ac_cv_prog_LIPO"; then
8354  ac_ct_LIPO=$LIPO
8355  # Extract the first word of "lipo", so it can be a program name with args.
8356set dummy lipo; ac_word=$2
8357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358printf %s "checking for $ac_word... " >&6; }
8359if test ${ac_cv_prog_ac_ct_LIPO+y}
8360then :
8361  printf %s "(cached) " >&6
8362else $as_nop
8363  if test -n "$ac_ct_LIPO"; then
8364  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369  IFS=$as_save_IFS
8370  case $as_dir in #(((
8371    '') as_dir=./ ;;
8372    */) ;;
8373    *) as_dir=$as_dir/ ;;
8374  esac
8375    for ac_exec_ext in '' $ac_executable_extensions; do
8376  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8377    ac_cv_prog_ac_ct_LIPO="lipo"
8378    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8379    break 2
8380  fi
8381done
8382  done
8383IFS=$as_save_IFS
8384
8385fi
8386fi
8387ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8388if test -n "$ac_ct_LIPO"; then
8389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8390printf "%s\n" "$ac_ct_LIPO" >&6; }
8391else
8392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393printf "%s\n" "no" >&6; }
8394fi
8395
8396  if test "x$ac_ct_LIPO" = x; then
8397    LIPO=":"
8398  else
8399    case $cross_compiling:$ac_tool_warned in
8400yes:)
8401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8402printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8403ac_tool_warned=yes ;;
8404esac
8405    LIPO=$ac_ct_LIPO
8406  fi
8407else
8408  LIPO="$ac_cv_prog_LIPO"
8409fi
8410
8411    if test -n "$ac_tool_prefix"; then
8412  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8413set dummy ${ac_tool_prefix}otool; ac_word=$2
8414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415printf %s "checking for $ac_word... " >&6; }
8416if test ${ac_cv_prog_OTOOL+y}
8417then :
8418  printf %s "(cached) " >&6
8419else $as_nop
8420  if test -n "$OTOOL"; then
8421  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8422else
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426  IFS=$as_save_IFS
8427  case $as_dir in #(((
8428    '') as_dir=./ ;;
8429    */) ;;
8430    *) as_dir=$as_dir/ ;;
8431  esac
8432    for ac_exec_ext in '' $ac_executable_extensions; do
8433  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8434    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8436    break 2
8437  fi
8438done
8439  done
8440IFS=$as_save_IFS
8441
8442fi
8443fi
8444OTOOL=$ac_cv_prog_OTOOL
8445if test -n "$OTOOL"; then
8446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8447printf "%s\n" "$OTOOL" >&6; }
8448else
8449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450printf "%s\n" "no" >&6; }
8451fi
8452
8453
8454fi
8455if test -z "$ac_cv_prog_OTOOL"; then
8456  ac_ct_OTOOL=$OTOOL
8457  # Extract the first word of "otool", so it can be a program name with args.
8458set dummy otool; ac_word=$2
8459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460printf %s "checking for $ac_word... " >&6; }
8461if test ${ac_cv_prog_ac_ct_OTOOL+y}
8462then :
8463  printf %s "(cached) " >&6
8464else $as_nop
8465  if test -n "$ac_ct_OTOOL"; then
8466  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8467else
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471  IFS=$as_save_IFS
8472  case $as_dir in #(((
8473    '') as_dir=./ ;;
8474    */) ;;
8475    *) as_dir=$as_dir/ ;;
8476  esac
8477    for ac_exec_ext in '' $ac_executable_extensions; do
8478  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8479    ac_cv_prog_ac_ct_OTOOL="otool"
8480    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8481    break 2
8482  fi
8483done
8484  done
8485IFS=$as_save_IFS
8486
8487fi
8488fi
8489ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8490if test -n "$ac_ct_OTOOL"; then
8491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8492printf "%s\n" "$ac_ct_OTOOL" >&6; }
8493else
8494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495printf "%s\n" "no" >&6; }
8496fi
8497
8498  if test "x$ac_ct_OTOOL" = x; then
8499    OTOOL=":"
8500  else
8501    case $cross_compiling:$ac_tool_warned in
8502yes:)
8503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8504printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8505ac_tool_warned=yes ;;
8506esac
8507    OTOOL=$ac_ct_OTOOL
8508  fi
8509else
8510  OTOOL="$ac_cv_prog_OTOOL"
8511fi
8512
8513    if test -n "$ac_tool_prefix"; then
8514  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8515set dummy ${ac_tool_prefix}otool64; ac_word=$2
8516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517printf %s "checking for $ac_word... " >&6; }
8518if test ${ac_cv_prog_OTOOL64+y}
8519then :
8520  printf %s "(cached) " >&6
8521else $as_nop
8522  if test -n "$OTOOL64"; then
8523  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8524else
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528  IFS=$as_save_IFS
8529  case $as_dir in #(((
8530    '') as_dir=./ ;;
8531    */) ;;
8532    *) as_dir=$as_dir/ ;;
8533  esac
8534    for ac_exec_ext in '' $ac_executable_extensions; do
8535  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8536    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8537    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8538    break 2
8539  fi
8540done
8541  done
8542IFS=$as_save_IFS
8543
8544fi
8545fi
8546OTOOL64=$ac_cv_prog_OTOOL64
8547if test -n "$OTOOL64"; then
8548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8549printf "%s\n" "$OTOOL64" >&6; }
8550else
8551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552printf "%s\n" "no" >&6; }
8553fi
8554
8555
8556fi
8557if test -z "$ac_cv_prog_OTOOL64"; then
8558  ac_ct_OTOOL64=$OTOOL64
8559  # Extract the first word of "otool64", so it can be a program name with args.
8560set dummy otool64; ac_word=$2
8561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562printf %s "checking for $ac_word... " >&6; }
8563if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8564then :
8565  printf %s "(cached) " >&6
8566else $as_nop
8567  if test -n "$ac_ct_OTOOL64"; then
8568  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573  IFS=$as_save_IFS
8574  case $as_dir in #(((
8575    '') as_dir=./ ;;
8576    */) ;;
8577    *) as_dir=$as_dir/ ;;
8578  esac
8579    for ac_exec_ext in '' $ac_executable_extensions; do
8580  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8581    ac_cv_prog_ac_ct_OTOOL64="otool64"
8582    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8583    break 2
8584  fi
8585done
8586  done
8587IFS=$as_save_IFS
8588
8589fi
8590fi
8591ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8592if test -n "$ac_ct_OTOOL64"; then
8593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8594printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8595else
8596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597printf "%s\n" "no" >&6; }
8598fi
8599
8600  if test "x$ac_ct_OTOOL64" = x; then
8601    OTOOL64=":"
8602  else
8603    case $cross_compiling:$ac_tool_warned in
8604yes:)
8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8606printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8607ac_tool_warned=yes ;;
8608esac
8609    OTOOL64=$ac_ct_OTOOL64
8610  fi
8611else
8612  OTOOL64="$ac_cv_prog_OTOOL64"
8613fi
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8642printf %s "checking for -single_module linker flag... " >&6; }
8643if test ${lt_cv_apple_cc_single_mod+y}
8644then :
8645  printf %s "(cached) " >&6
8646else $as_nop
8647  lt_cv_apple_cc_single_mod=no
8648      if test -z "$LT_MULTI_MODULE"; then
8649	# By default we will add the -single_module flag. You can override
8650	# by either setting the environment variable LT_MULTI_MODULE
8651	# non-empty at configure time, or by adding -multi_module to the
8652	# link flags.
8653	rm -rf libconftest.dylib*
8654	echo "int foo(void){return 1;}" > conftest.c
8655	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8656-dynamiclib -Wl,-single_module conftest.c" >&5
8657	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8658	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8659        _lt_result=$?
8660	# If there is a non-empty error log, and "single_module"
8661	# appears in it, assume the flag caused a linker warning
8662        if test -s conftest.err && $GREP single_module conftest.err; then
8663	  cat conftest.err >&5
8664	# Otherwise, if the output was created with a 0 exit code from
8665	# the compiler, it worked.
8666	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8667	  lt_cv_apple_cc_single_mod=yes
8668	else
8669	  cat conftest.err >&5
8670	fi
8671	rm -rf libconftest.dylib*
8672	rm -f conftest.*
8673      fi
8674fi
8675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8676printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8677
8678    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8679printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8680if test ${lt_cv_ld_exported_symbols_list+y}
8681then :
8682  printf %s "(cached) " >&6
8683else $as_nop
8684  lt_cv_ld_exported_symbols_list=no
8685      save_LDFLAGS=$LDFLAGS
8686      echo "_main" > conftest.sym
8687      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8688      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690
8691int
8692main (void)
8693{
8694
8695  ;
8696  return 0;
8697}
8698_ACEOF
8699if ac_fn_c_try_link "$LINENO"
8700then :
8701  lt_cv_ld_exported_symbols_list=yes
8702else $as_nop
8703  lt_cv_ld_exported_symbols_list=no
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.beam \
8706    conftest$ac_exeext conftest.$ac_ext
8707	LDFLAGS=$save_LDFLAGS
8708
8709fi
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8711printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8712
8713    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8714printf %s "checking for -force_load linker flag... " >&6; }
8715if test ${lt_cv_ld_force_load+y}
8716then :
8717  printf %s "(cached) " >&6
8718else $as_nop
8719  lt_cv_ld_force_load=no
8720      cat > conftest.c << _LT_EOF
8721int forced_loaded() { return 2;}
8722_LT_EOF
8723      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8724      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8725      echo "$AR cru libconftest.a conftest.o" >&5
8726      $AR cru libconftest.a conftest.o 2>&5
8727      echo "$RANLIB libconftest.a" >&5
8728      $RANLIB libconftest.a 2>&5
8729      cat > conftest.c << _LT_EOF
8730int main() { return 0;}
8731_LT_EOF
8732      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8733      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8734      _lt_result=$?
8735      if test -s conftest.err && $GREP force_load conftest.err; then
8736	cat conftest.err >&5
8737      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8738	lt_cv_ld_force_load=yes
8739      else
8740	cat conftest.err >&5
8741      fi
8742        rm -f conftest.err libconftest.a conftest conftest.c
8743        rm -rf conftest.dSYM
8744
8745fi
8746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8747printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8748    case $host_os in
8749    rhapsody* | darwin1.[012])
8750      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8751    darwin1.*)
8752      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8753    darwin*) # darwin 5.x on
8754      # if running on 10.5 or later, the deployment target defaults
8755      # to the OS version, if on x86, and 10.4, the deployment
8756      # target defaults to 10.4. Don't you love it?
8757      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8758	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8759	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8760	10.[012][,.]*)
8761	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8762	10.*)
8763	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8764      esac
8765    ;;
8766  esac
8767    if test yes = "$lt_cv_apple_cc_single_mod"; then
8768      _lt_dar_single_mod='$single_module'
8769    fi
8770    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8771      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8772    else
8773      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8774    fi
8775    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8776      _lt_dsymutil='~$DSYMUTIL $lib || :'
8777    else
8778      _lt_dsymutil=
8779    fi
8780    ;;
8781  esac
8782
8783# func_munge_path_list VARIABLE PATH
8784# -----------------------------------
8785# VARIABLE is name of variable containing _space_ separated list of
8786# directories to be munged by the contents of PATH, which is string
8787# having a format:
8788# "DIR[:DIR]:"
8789#       string "DIR[ DIR]" will be prepended to VARIABLE
8790# ":DIR[:DIR]"
8791#       string "DIR[ DIR]" will be appended to VARIABLE
8792# "DIRP[:DIRP]::[DIRA:]DIRA"
8793#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8794#       "DIRA[ DIRA]" will be appended to VARIABLE
8795# "DIR[:DIR]"
8796#       VARIABLE will be replaced by "DIR[ DIR]"
8797func_munge_path_list ()
8798{
8799    case x$2 in
8800    x)
8801        ;;
8802    *:)
8803        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8804        ;;
8805    x:*)
8806        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8807        ;;
8808    *::*)
8809        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8810        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8811        ;;
8812    *)
8813        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8814        ;;
8815    esac
8816}
8817
8818ac_header= ac_cache=
8819for ac_item in $ac_header_c_list
8820do
8821  if test $ac_cache; then
8822    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8823    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8824      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8825    fi
8826    ac_header= ac_cache=
8827  elif test $ac_header; then
8828    ac_cache=$ac_item
8829  else
8830    ac_header=$ac_item
8831  fi
8832done
8833
8834
8835
8836
8837
8838
8839
8840
8841if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8842then :
8843
8844printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8845
8846fi
8847ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8848"
8849if test "x$ac_cv_header_dlfcn_h" = xyes
8850then :
8851  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8852
8853fi
8854
8855
8856
8857
8858
8859# Set options
8860enable_win32_dll=yes
8861
8862case $host in
8863*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8864  if test -n "$ac_tool_prefix"; then
8865  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8866set dummy ${ac_tool_prefix}as; ac_word=$2
8867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868printf %s "checking for $ac_word... " >&6; }
8869if test ${ac_cv_prog_AS+y}
8870then :
8871  printf %s "(cached) " >&6
8872else $as_nop
8873  if test -n "$AS"; then
8874  ac_cv_prog_AS="$AS" # Let the user override the test.
8875else
8876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877for as_dir in $PATH
8878do
8879  IFS=$as_save_IFS
8880  case $as_dir in #(((
8881    '') as_dir=./ ;;
8882    */) ;;
8883    *) as_dir=$as_dir/ ;;
8884  esac
8885    for ac_exec_ext in '' $ac_executable_extensions; do
8886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8887    ac_cv_prog_AS="${ac_tool_prefix}as"
8888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8889    break 2
8890  fi
8891done
8892  done
8893IFS=$as_save_IFS
8894
8895fi
8896fi
8897AS=$ac_cv_prog_AS
8898if test -n "$AS"; then
8899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8900printf "%s\n" "$AS" >&6; }
8901else
8902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903printf "%s\n" "no" >&6; }
8904fi
8905
8906
8907fi
8908if test -z "$ac_cv_prog_AS"; then
8909  ac_ct_AS=$AS
8910  # Extract the first word of "as", so it can be a program name with args.
8911set dummy as; ac_word=$2
8912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913printf %s "checking for $ac_word... " >&6; }
8914if test ${ac_cv_prog_ac_ct_AS+y}
8915then :
8916  printf %s "(cached) " >&6
8917else $as_nop
8918  if test -n "$ac_ct_AS"; then
8919  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8920else
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924  IFS=$as_save_IFS
8925  case $as_dir in #(((
8926    '') as_dir=./ ;;
8927    */) ;;
8928    *) as_dir=$as_dir/ ;;
8929  esac
8930    for ac_exec_ext in '' $ac_executable_extensions; do
8931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8932    ac_cv_prog_ac_ct_AS="as"
8933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8934    break 2
8935  fi
8936done
8937  done
8938IFS=$as_save_IFS
8939
8940fi
8941fi
8942ac_ct_AS=$ac_cv_prog_ac_ct_AS
8943if test -n "$ac_ct_AS"; then
8944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8945printf "%s\n" "$ac_ct_AS" >&6; }
8946else
8947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948printf "%s\n" "no" >&6; }
8949fi
8950
8951  if test "x$ac_ct_AS" = x; then
8952    AS="false"
8953  else
8954    case $cross_compiling:$ac_tool_warned in
8955yes:)
8956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8957printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8958ac_tool_warned=yes ;;
8959esac
8960    AS=$ac_ct_AS
8961  fi
8962else
8963  AS="$ac_cv_prog_AS"
8964fi
8965
8966  if test -n "$ac_tool_prefix"; then
8967  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8968set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970printf %s "checking for $ac_word... " >&6; }
8971if test ${ac_cv_prog_DLLTOOL+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  if test -n "$DLLTOOL"; then
8976  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8977else
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981  IFS=$as_save_IFS
8982  case $as_dir in #(((
8983    '') as_dir=./ ;;
8984    */) ;;
8985    *) as_dir=$as_dir/ ;;
8986  esac
8987    for ac_exec_ext in '' $ac_executable_extensions; do
8988  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8989    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8990    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8991    break 2
8992  fi
8993done
8994  done
8995IFS=$as_save_IFS
8996
8997fi
8998fi
8999DLLTOOL=$ac_cv_prog_DLLTOOL
9000if test -n "$DLLTOOL"; then
9001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9002printf "%s\n" "$DLLTOOL" >&6; }
9003else
9004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005printf "%s\n" "no" >&6; }
9006fi
9007
9008
9009fi
9010if test -z "$ac_cv_prog_DLLTOOL"; then
9011  ac_ct_DLLTOOL=$DLLTOOL
9012  # Extract the first word of "dlltool", so it can be a program name with args.
9013set dummy dlltool; ac_word=$2
9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015printf %s "checking for $ac_word... " >&6; }
9016if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9017then :
9018  printf %s "(cached) " >&6
9019else $as_nop
9020  if test -n "$ac_ct_DLLTOOL"; then
9021  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9022else
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026  IFS=$as_save_IFS
9027  case $as_dir in #(((
9028    '') as_dir=./ ;;
9029    */) ;;
9030    *) as_dir=$as_dir/ ;;
9031  esac
9032    for ac_exec_ext in '' $ac_executable_extensions; do
9033  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9034    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9035    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9036    break 2
9037  fi
9038done
9039  done
9040IFS=$as_save_IFS
9041
9042fi
9043fi
9044ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9045if test -n "$ac_ct_DLLTOOL"; then
9046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9047printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9048else
9049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050printf "%s\n" "no" >&6; }
9051fi
9052
9053  if test "x$ac_ct_DLLTOOL" = x; then
9054    DLLTOOL="false"
9055  else
9056    case $cross_compiling:$ac_tool_warned in
9057yes:)
9058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060ac_tool_warned=yes ;;
9061esac
9062    DLLTOOL=$ac_ct_DLLTOOL
9063  fi
9064else
9065  DLLTOOL="$ac_cv_prog_DLLTOOL"
9066fi
9067
9068  if test -n "$ac_tool_prefix"; then
9069  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9070set dummy ${ac_tool_prefix}objdump; ac_word=$2
9071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072printf %s "checking for $ac_word... " >&6; }
9073if test ${ac_cv_prog_OBJDUMP+y}
9074then :
9075  printf %s "(cached) " >&6
9076else $as_nop
9077  if test -n "$OBJDUMP"; then
9078  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9079else
9080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081for as_dir in $PATH
9082do
9083  IFS=$as_save_IFS
9084  case $as_dir in #(((
9085    '') as_dir=./ ;;
9086    */) ;;
9087    *) as_dir=$as_dir/ ;;
9088  esac
9089    for ac_exec_ext in '' $ac_executable_extensions; do
9090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9091    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9093    break 2
9094  fi
9095done
9096  done
9097IFS=$as_save_IFS
9098
9099fi
9100fi
9101OBJDUMP=$ac_cv_prog_OBJDUMP
9102if test -n "$OBJDUMP"; then
9103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9104printf "%s\n" "$OBJDUMP" >&6; }
9105else
9106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107printf "%s\n" "no" >&6; }
9108fi
9109
9110
9111fi
9112if test -z "$ac_cv_prog_OBJDUMP"; then
9113  ac_ct_OBJDUMP=$OBJDUMP
9114  # Extract the first word of "objdump", so it can be a program name with args.
9115set dummy objdump; ac_word=$2
9116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117printf %s "checking for $ac_word... " >&6; }
9118if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9119then :
9120  printf %s "(cached) " >&6
9121else $as_nop
9122  if test -n "$ac_ct_OBJDUMP"; then
9123  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9124else
9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128  IFS=$as_save_IFS
9129  case $as_dir in #(((
9130    '') as_dir=./ ;;
9131    */) ;;
9132    *) as_dir=$as_dir/ ;;
9133  esac
9134    for ac_exec_ext in '' $ac_executable_extensions; do
9135  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9136    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9137    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9138    break 2
9139  fi
9140done
9141  done
9142IFS=$as_save_IFS
9143
9144fi
9145fi
9146ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9147if test -n "$ac_ct_OBJDUMP"; then
9148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9149printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9150else
9151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152printf "%s\n" "no" >&6; }
9153fi
9154
9155  if test "x$ac_ct_OBJDUMP" = x; then
9156    OBJDUMP="false"
9157  else
9158    case $cross_compiling:$ac_tool_warned in
9159yes:)
9160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9161printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9162ac_tool_warned=yes ;;
9163esac
9164    OBJDUMP=$ac_ct_OBJDUMP
9165  fi
9166else
9167  OBJDUMP="$ac_cv_prog_OBJDUMP"
9168fi
9169
9170  ;;
9171esac
9172
9173test -z "$AS" && AS=as
9174
9175
9176
9177
9178
9179test -z "$DLLTOOL" && DLLTOOL=dlltool
9180
9181
9182
9183
9184
9185test -z "$OBJDUMP" && OBJDUMP=objdump
9186
9187
9188
9189
9190
9191
9192
9193        enable_dlopen=no
9194
9195
9196
9197            # Check whether --enable-shared was given.
9198if test ${enable_shared+y}
9199then :
9200  enableval=$enable_shared; p=${PACKAGE-default}
9201    case $enableval in
9202    yes) enable_shared=yes ;;
9203    no) enable_shared=no ;;
9204    *)
9205      enable_shared=no
9206      # Look at the argument we got.  We use all the common list separators.
9207      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9208      for pkg in $enableval; do
9209	IFS=$lt_save_ifs
9210	if test "X$pkg" = "X$p"; then
9211	  enable_shared=yes
9212	fi
9213      done
9214      IFS=$lt_save_ifs
9215      ;;
9216    esac
9217else $as_nop
9218  enable_shared=yes
9219fi
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229  # Check whether --enable-static was given.
9230if test ${enable_static+y}
9231then :
9232  enableval=$enable_static; p=${PACKAGE-default}
9233    case $enableval in
9234    yes) enable_static=yes ;;
9235    no) enable_static=no ;;
9236    *)
9237     enable_static=no
9238      # Look at the argument we got.  We use all the common list separators.
9239      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9240      for pkg in $enableval; do
9241	IFS=$lt_save_ifs
9242	if test "X$pkg" = "X$p"; then
9243	  enable_static=yes
9244	fi
9245      done
9246      IFS=$lt_save_ifs
9247      ;;
9248    esac
9249else $as_nop
9250  enable_static=yes
9251fi
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262# Check whether --with-pic was given.
9263if test ${with_pic+y}
9264then :
9265  withval=$with_pic; lt_p=${PACKAGE-default}
9266    case $withval in
9267    yes|no) pic_mode=$withval ;;
9268    *)
9269      pic_mode=default
9270      # Look at the argument we got.  We use all the common list separators.
9271      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9272      for lt_pkg in $withval; do
9273	IFS=$lt_save_ifs
9274	if test "X$lt_pkg" = "X$lt_p"; then
9275	  pic_mode=yes
9276	fi
9277      done
9278      IFS=$lt_save_ifs
9279      ;;
9280    esac
9281else $as_nop
9282  pic_mode=default
9283fi
9284
9285
9286
9287
9288
9289
9290
9291
9292  # Check whether --enable-fast-install was given.
9293if test ${enable_fast_install+y}
9294then :
9295  enableval=$enable_fast_install; p=${PACKAGE-default}
9296    case $enableval in
9297    yes) enable_fast_install=yes ;;
9298    no) enable_fast_install=no ;;
9299    *)
9300      enable_fast_install=no
9301      # Look at the argument we got.  We use all the common list separators.
9302      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9303      for pkg in $enableval; do
9304	IFS=$lt_save_ifs
9305	if test "X$pkg" = "X$p"; then
9306	  enable_fast_install=yes
9307	fi
9308      done
9309      IFS=$lt_save_ifs
9310      ;;
9311    esac
9312else $as_nop
9313  enable_fast_install=yes
9314fi
9315
9316
9317
9318
9319
9320
9321
9322
9323  shared_archive_member_spec=
9324case $host,$enable_shared in
9325power*-*-aix[5-9]*,yes)
9326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9327printf %s "checking which variant of shared library versioning to provide... " >&6; }
9328
9329# Check whether --with-aix-soname was given.
9330if test ${with_aix_soname+y}
9331then :
9332  withval=$with_aix_soname; case $withval in
9333    aix|svr4|both)
9334      ;;
9335    *)
9336      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9337      ;;
9338    esac
9339    lt_cv_with_aix_soname=$with_aix_soname
9340else $as_nop
9341  if test ${lt_cv_with_aix_soname+y}
9342then :
9343  printf %s "(cached) " >&6
9344else $as_nop
9345  lt_cv_with_aix_soname=aix
9346fi
9347
9348    with_aix_soname=$lt_cv_with_aix_soname
9349fi
9350
9351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9352printf "%s\n" "$with_aix_soname" >&6; }
9353  if test aix != "$with_aix_soname"; then
9354    # For the AIX way of multilib, we name the shared archive member
9355    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9356    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9357    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9358    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9359    if test 64 = "${OBJECT_MODE-32}"; then
9360      shared_archive_member_spec=shr_64
9361    else
9362      shared_archive_member_spec=shr
9363    fi
9364  fi
9365  ;;
9366*)
9367  with_aix_soname=aix
9368  ;;
9369esac
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380# This can be used to rebuild libtool when needed
9381LIBTOOL_DEPS=$ltmain
9382
9383# Always use our own libtool.
9384LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415test -z "$LN_S" && LN_S="ln -s"
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430if test -n "${ZSH_VERSION+set}"; then
9431   setopt NO_GLOB_SUBST
9432fi
9433
9434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9435printf %s "checking for objdir... " >&6; }
9436if test ${lt_cv_objdir+y}
9437then :
9438  printf %s "(cached) " >&6
9439else $as_nop
9440  rm -f .libs 2>/dev/null
9441mkdir .libs 2>/dev/null
9442if test -d .libs; then
9443  lt_cv_objdir=.libs
9444else
9445  # MS-DOS does not allow filenames that begin with a dot.
9446  lt_cv_objdir=_libs
9447fi
9448rmdir .libs 2>/dev/null
9449fi
9450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9451printf "%s\n" "$lt_cv_objdir" >&6; }
9452objdir=$lt_cv_objdir
9453
9454
9455
9456
9457
9458printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9459
9460
9461
9462
9463case $host_os in
9464aix3*)
9465  # AIX sometimes has problems with the GCC collect2 program.  For some
9466  # reason, if we set the COLLECT_NAMES environment variable, the problems
9467  # vanish in a puff of smoke.
9468  if test set != "${COLLECT_NAMES+set}"; then
9469    COLLECT_NAMES=
9470    export COLLECT_NAMES
9471  fi
9472  ;;
9473esac
9474
9475# Global variables:
9476ofile=libtool
9477can_build_shared=yes
9478
9479# All known linkers require a '.a' archive for static linking (except MSVC,
9480# which needs '.lib').
9481libext=a
9482
9483with_gnu_ld=$lt_cv_prog_gnu_ld
9484
9485old_CC=$CC
9486old_CFLAGS=$CFLAGS
9487
9488# Set sane defaults for various variables
9489test -z "$CC" && CC=cc
9490test -z "$LTCC" && LTCC=$CC
9491test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9492test -z "$LD" && LD=ld
9493test -z "$ac_objext" && ac_objext=o
9494
9495func_cc_basename $compiler
9496cc_basename=$func_cc_basename_result
9497
9498
9499# Only perform the check for file, if the check method requires it
9500test -z "$MAGIC_CMD" && MAGIC_CMD=file
9501case $deplibs_check_method in
9502file_magic*)
9503  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9505printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9506if test ${lt_cv_path_MAGIC_CMD+y}
9507then :
9508  printf %s "(cached) " >&6
9509else $as_nop
9510  case $MAGIC_CMD in
9511[\\/*] |  ?:[\\/]*)
9512  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9513  ;;
9514*)
9515  lt_save_MAGIC_CMD=$MAGIC_CMD
9516  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9517  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9518  for ac_dir in $ac_dummy; do
9519    IFS=$lt_save_ifs
9520    test -z "$ac_dir" && ac_dir=.
9521    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9522      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9523      if test -n "$file_magic_test_file"; then
9524	case $deplibs_check_method in
9525	"file_magic "*)
9526	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9527	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9528	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9529	    $EGREP "$file_magic_regex" > /dev/null; then
9530	    :
9531	  else
9532	    cat <<_LT_EOF 1>&2
9533
9534*** Warning: the command libtool uses to detect shared libraries,
9535*** $file_magic_cmd, produces output that libtool cannot recognize.
9536*** The result is that libtool may fail to recognize shared libraries
9537*** as such.  This will affect the creation of libtool libraries that
9538*** depend on shared libraries, but programs linked with such libtool
9539*** libraries will work regardless of this problem.  Nevertheless, you
9540*** may want to report the problem to your system manager and/or to
9541*** bug-libtool@gnu.org
9542
9543_LT_EOF
9544	  fi ;;
9545	esac
9546      fi
9547      break
9548    fi
9549  done
9550  IFS=$lt_save_ifs
9551  MAGIC_CMD=$lt_save_MAGIC_CMD
9552  ;;
9553esac
9554fi
9555
9556MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9557if test -n "$MAGIC_CMD"; then
9558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9559printf "%s\n" "$MAGIC_CMD" >&6; }
9560else
9561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562printf "%s\n" "no" >&6; }
9563fi
9564
9565
9566
9567
9568
9569if test -z "$lt_cv_path_MAGIC_CMD"; then
9570  if test -n "$ac_tool_prefix"; then
9571    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9572printf %s "checking for file... " >&6; }
9573if test ${lt_cv_path_MAGIC_CMD+y}
9574then :
9575  printf %s "(cached) " >&6
9576else $as_nop
9577  case $MAGIC_CMD in
9578[\\/*] |  ?:[\\/]*)
9579  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9580  ;;
9581*)
9582  lt_save_MAGIC_CMD=$MAGIC_CMD
9583  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9584  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9585  for ac_dir in $ac_dummy; do
9586    IFS=$lt_save_ifs
9587    test -z "$ac_dir" && ac_dir=.
9588    if test -f "$ac_dir/file"; then
9589      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9590      if test -n "$file_magic_test_file"; then
9591	case $deplibs_check_method in
9592	"file_magic "*)
9593	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9594	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9595	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9596	    $EGREP "$file_magic_regex" > /dev/null; then
9597	    :
9598	  else
9599	    cat <<_LT_EOF 1>&2
9600
9601*** Warning: the command libtool uses to detect shared libraries,
9602*** $file_magic_cmd, produces output that libtool cannot recognize.
9603*** The result is that libtool may fail to recognize shared libraries
9604*** as such.  This will affect the creation of libtool libraries that
9605*** depend on shared libraries, but programs linked with such libtool
9606*** libraries will work regardless of this problem.  Nevertheless, you
9607*** may want to report the problem to your system manager and/or to
9608*** bug-libtool@gnu.org
9609
9610_LT_EOF
9611	  fi ;;
9612	esac
9613      fi
9614      break
9615    fi
9616  done
9617  IFS=$lt_save_ifs
9618  MAGIC_CMD=$lt_save_MAGIC_CMD
9619  ;;
9620esac
9621fi
9622
9623MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9624if test -n "$MAGIC_CMD"; then
9625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9626printf "%s\n" "$MAGIC_CMD" >&6; }
9627else
9628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629printf "%s\n" "no" >&6; }
9630fi
9631
9632
9633  else
9634    MAGIC_CMD=:
9635  fi
9636fi
9637
9638  fi
9639  ;;
9640esac
9641
9642# Use C for the default configuration in the libtool script
9643
9644lt_save_CC=$CC
9645ac_ext=c
9646ac_cpp='$CPP $CPPFLAGS'
9647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9649ac_compiler_gnu=$ac_cv_c_compiler_gnu
9650
9651
9652# Source file extension for C test sources.
9653ac_ext=c
9654
9655# Object file extension for compiled C test sources.
9656objext=o
9657objext=$objext
9658
9659# Code to be used in simple compile tests
9660lt_simple_compile_test_code="int some_variable = 0;"
9661
9662# Code to be used in simple link tests
9663lt_simple_link_test_code='int main(){return(0);}'
9664
9665
9666
9667
9668
9669
9670
9671# If no C compiler was specified, use CC.
9672LTCC=${LTCC-"$CC"}
9673
9674# If no C compiler flags were specified, use CFLAGS.
9675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9676
9677# Allow CC to be a program name with arguments.
9678compiler=$CC
9679
9680# Save the default compiler, since it gets overwritten when the other
9681# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9682compiler_DEFAULT=$CC
9683
9684# save warnings/boilerplate of simple test code
9685ac_outfile=conftest.$ac_objext
9686echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9688_lt_compiler_boilerplate=`cat conftest.err`
9689$RM conftest*
9690
9691ac_outfile=conftest.$ac_objext
9692echo "$lt_simple_link_test_code" >conftest.$ac_ext
9693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9694_lt_linker_boilerplate=`cat conftest.err`
9695$RM -r conftest*
9696
9697
9698## CAVEAT EMPTOR:
9699## There is no encapsulation within the following macros, do not change
9700## the running order or otherwise move them around unless you know exactly
9701## what you are doing...
9702if test -n "$compiler"; then
9703
9704lt_prog_compiler_no_builtin_flag=
9705
9706if test yes = "$GCC"; then
9707  case $cc_basename in
9708  nvcc*)
9709    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9710  *)
9711    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9712  esac
9713
9714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9715printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9716if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9717then :
9718  printf %s "(cached) " >&6
9719else $as_nop
9720  lt_cv_prog_compiler_rtti_exceptions=no
9721   ac_outfile=conftest.$ac_objext
9722   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9723   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9724   # Insert the option either (1) after the last *FLAGS variable, or
9725   # (2) before a word containing "conftest.", or (3) at the end.
9726   # Note that $ac_compile itself does not contain backslashes and begins
9727   # with a dollar sign (not a hyphen), so the echo should work correctly.
9728   # The option is referenced via a variable to avoid confusing sed.
9729   lt_compile=`echo "$ac_compile" | $SED \
9730   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9732   -e 's:$: $lt_compiler_flag:'`
9733   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9734   (eval "$lt_compile" 2>conftest.err)
9735   ac_status=$?
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   if (exit $ac_status) && test -s "$ac_outfile"; then
9739     # The compiler can only warn and ignore the option if not recognized
9740     # So say no if there are warnings other than the usual output.
9741     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9742     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9743     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9744       lt_cv_prog_compiler_rtti_exceptions=yes
9745     fi
9746   fi
9747   $RM conftest*
9748
9749fi
9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9751printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9752
9753if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9754    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9755else
9756    :
9757fi
9758
9759fi
9760
9761
9762
9763
9764
9765
9766  lt_prog_compiler_wl=
9767lt_prog_compiler_pic=
9768lt_prog_compiler_static=
9769
9770
9771  if test yes = "$GCC"; then
9772    lt_prog_compiler_wl='-Wl,'
9773    lt_prog_compiler_static='-static'
9774
9775    case $host_os in
9776      aix*)
9777      # All AIX code is PIC.
9778      if test ia64 = "$host_cpu"; then
9779	# AIX 5 now supports IA64 processor
9780	lt_prog_compiler_static='-Bstatic'
9781      fi
9782      lt_prog_compiler_pic='-fPIC'
9783      ;;
9784
9785    amigaos*)
9786      case $host_cpu in
9787      powerpc)
9788            # see comment about AmigaOS4 .so support
9789            lt_prog_compiler_pic='-fPIC'
9790        ;;
9791      m68k)
9792            # FIXME: we need at least 68020 code to build shared libraries, but
9793            # adding the '-m68020' flag to GCC prevents building anything better,
9794            # like '-m68040'.
9795            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9796        ;;
9797      esac
9798      ;;
9799
9800    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9801      # PIC is the default for these OSes.
9802      ;;
9803
9804    mingw* | cygwin* | pw32* | os2* | cegcc*)
9805      # This hack is so that the source file can tell whether it is being
9806      # built for inclusion in a dll (and should export symbols for example).
9807      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9808      # (--disable-auto-import) libraries
9809      lt_prog_compiler_pic='-DDLL_EXPORT'
9810      case $host_os in
9811      os2*)
9812	lt_prog_compiler_static='$wl-static'
9813	;;
9814      esac
9815      ;;
9816
9817    darwin* | rhapsody*)
9818      # PIC is the default on this platform
9819      # Common symbols not allowed in MH_DYLIB files
9820      lt_prog_compiler_pic='-fno-common'
9821      ;;
9822
9823    haiku*)
9824      # PIC is the default for Haiku.
9825      # The "-static" flag exists, but is broken.
9826      lt_prog_compiler_static=
9827      ;;
9828
9829    hpux*)
9830      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9831      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9832      # sets the default TLS model and affects inlining.
9833      case $host_cpu in
9834      hppa*64*)
9835	# +Z the default
9836	;;
9837      *)
9838	lt_prog_compiler_pic='-fPIC'
9839	;;
9840      esac
9841      ;;
9842
9843    interix[3-9]*)
9844      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9845      # Instead, we relocate shared libraries at runtime.
9846      ;;
9847
9848    msdosdjgpp*)
9849      # Just because we use GCC doesn't mean we suddenly get shared libraries
9850      # on systems that don't support them.
9851      lt_prog_compiler_can_build_shared=no
9852      enable_shared=no
9853      ;;
9854
9855    *nto* | *qnx*)
9856      # QNX uses GNU C++, but need to define -shared option too, otherwise
9857      # it will coredump.
9858      lt_prog_compiler_pic='-fPIC -shared'
9859      ;;
9860
9861    sysv4*MP*)
9862      if test -d /usr/nec; then
9863	lt_prog_compiler_pic=-Kconform_pic
9864      fi
9865      ;;
9866
9867    *)
9868      lt_prog_compiler_pic='-fPIC'
9869      ;;
9870    esac
9871
9872    case $cc_basename in
9873    nvcc*) # Cuda Compiler Driver 2.2
9874      lt_prog_compiler_wl='-Xlinker '
9875      if test -n "$lt_prog_compiler_pic"; then
9876        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9877      fi
9878      ;;
9879    esac
9880  else
9881    # PORTME Check for flag to pass linker flags through the system compiler.
9882    case $host_os in
9883    aix*)
9884      lt_prog_compiler_wl='-Wl,'
9885      if test ia64 = "$host_cpu"; then
9886	# AIX 5 now supports IA64 processor
9887	lt_prog_compiler_static='-Bstatic'
9888      else
9889	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9890      fi
9891      ;;
9892
9893    darwin* | rhapsody*)
9894      # PIC is the default on this platform
9895      # Common symbols not allowed in MH_DYLIB files
9896      lt_prog_compiler_pic='-fno-common'
9897      case $cc_basename in
9898      nagfor*)
9899        # NAG Fortran compiler
9900        lt_prog_compiler_wl='-Wl,-Wl,,'
9901        lt_prog_compiler_pic='-PIC'
9902        lt_prog_compiler_static='-Bstatic'
9903        ;;
9904      esac
9905      ;;
9906
9907    mingw* | cygwin* | pw32* | os2* | cegcc*)
9908      # This hack is so that the source file can tell whether it is being
9909      # built for inclusion in a dll (and should export symbols for example).
9910      lt_prog_compiler_pic='-DDLL_EXPORT'
9911      case $host_os in
9912      os2*)
9913	lt_prog_compiler_static='$wl-static'
9914	;;
9915      esac
9916      ;;
9917
9918    hpux9* | hpux10* | hpux11*)
9919      lt_prog_compiler_wl='-Wl,'
9920      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9921      # not for PA HP-UX.
9922      case $host_cpu in
9923      hppa*64*|ia64*)
9924	# +Z the default
9925	;;
9926      *)
9927	lt_prog_compiler_pic='+Z'
9928	;;
9929      esac
9930      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9931      lt_prog_compiler_static='$wl-a ${wl}archive'
9932      ;;
9933
9934    irix5* | irix6* | nonstopux*)
9935      lt_prog_compiler_wl='-Wl,'
9936      # PIC (with -KPIC) is the default.
9937      lt_prog_compiler_static='-non_shared'
9938      ;;
9939
9940    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9941      case $cc_basename in
9942      # old Intel for x86_64, which still supported -KPIC.
9943      ecc*)
9944	lt_prog_compiler_wl='-Wl,'
9945	lt_prog_compiler_pic='-KPIC'
9946	lt_prog_compiler_static='-static'
9947        ;;
9948      # icc used to be incompatible with GCC.
9949      # ICC 10 doesn't accept -KPIC any more.
9950      icc* | ifort*)
9951	lt_prog_compiler_wl='-Wl,'
9952	lt_prog_compiler_pic='-fPIC'
9953	lt_prog_compiler_static='-static'
9954        ;;
9955      # Lahey Fortran 8.1.
9956      lf95*)
9957	lt_prog_compiler_wl='-Wl,'
9958	lt_prog_compiler_pic='--shared'
9959	lt_prog_compiler_static='--static'
9960	;;
9961      nagfor*)
9962	# NAG Fortran compiler
9963	lt_prog_compiler_wl='-Wl,-Wl,,'
9964	lt_prog_compiler_pic='-PIC'
9965	lt_prog_compiler_static='-Bstatic'
9966	;;
9967      tcc*)
9968	# Fabrice Bellard et al's Tiny C Compiler
9969	lt_prog_compiler_wl='-Wl,'
9970	lt_prog_compiler_pic='-fPIC'
9971	lt_prog_compiler_static='-static'
9972	;;
9973      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9974        # Portland Group compilers (*not* the Pentium gcc compiler,
9975	# which looks to be a dead project)
9976	lt_prog_compiler_wl='-Wl,'
9977	lt_prog_compiler_pic='-fpic'
9978	lt_prog_compiler_static='-Bstatic'
9979        ;;
9980      ccc*)
9981        lt_prog_compiler_wl='-Wl,'
9982        # All Alpha code is PIC.
9983        lt_prog_compiler_static='-non_shared'
9984        ;;
9985      xl* | bgxl* | bgf* | mpixl*)
9986	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9987	lt_prog_compiler_wl='-Wl,'
9988	lt_prog_compiler_pic='-qpic'
9989	lt_prog_compiler_static='-qstaticlink'
9990	;;
9991      *)
9992	case `$CC -V 2>&1 | sed 5q` in
9993	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9994	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9995	  lt_prog_compiler_pic='-KPIC'
9996	  lt_prog_compiler_static='-Bstatic'
9997	  lt_prog_compiler_wl=''
9998	  ;;
9999	*Sun\ F* | *Sun*Fortran*)
10000	  lt_prog_compiler_pic='-KPIC'
10001	  lt_prog_compiler_static='-Bstatic'
10002	  lt_prog_compiler_wl='-Qoption ld '
10003	  ;;
10004	*Sun\ C*)
10005	  # Sun C 5.9
10006	  lt_prog_compiler_pic='-KPIC'
10007	  lt_prog_compiler_static='-Bstatic'
10008	  lt_prog_compiler_wl='-Wl,'
10009	  ;;
10010        *Intel*\ [CF]*Compiler*)
10011	  lt_prog_compiler_wl='-Wl,'
10012	  lt_prog_compiler_pic='-fPIC'
10013	  lt_prog_compiler_static='-static'
10014	  ;;
10015	*Portland\ Group*)
10016	  lt_prog_compiler_wl='-Wl,'
10017	  lt_prog_compiler_pic='-fpic'
10018	  lt_prog_compiler_static='-Bstatic'
10019	  ;;
10020	esac
10021	;;
10022      esac
10023      ;;
10024
10025    newsos6)
10026      lt_prog_compiler_pic='-KPIC'
10027      lt_prog_compiler_static='-Bstatic'
10028      ;;
10029
10030    *nto* | *qnx*)
10031      # QNX uses GNU C++, but need to define -shared option too, otherwise
10032      # it will coredump.
10033      lt_prog_compiler_pic='-fPIC -shared'
10034      ;;
10035
10036    osf3* | osf4* | osf5*)
10037      lt_prog_compiler_wl='-Wl,'
10038      # All OSF/1 code is PIC.
10039      lt_prog_compiler_static='-non_shared'
10040      ;;
10041
10042    rdos*)
10043      lt_prog_compiler_static='-non_shared'
10044      ;;
10045
10046    solaris*)
10047      lt_prog_compiler_pic='-KPIC'
10048      lt_prog_compiler_static='-Bstatic'
10049      case $cc_basename in
10050      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10051	lt_prog_compiler_wl='-Qoption ld ';;
10052      *)
10053	lt_prog_compiler_wl='-Wl,';;
10054      esac
10055      ;;
10056
10057    sunos4*)
10058      lt_prog_compiler_wl='-Qoption ld '
10059      lt_prog_compiler_pic='-PIC'
10060      lt_prog_compiler_static='-Bstatic'
10061      ;;
10062
10063    sysv4 | sysv4.2uw2* | sysv4.3*)
10064      lt_prog_compiler_wl='-Wl,'
10065      lt_prog_compiler_pic='-KPIC'
10066      lt_prog_compiler_static='-Bstatic'
10067      ;;
10068
10069    sysv4*MP*)
10070      if test -d /usr/nec; then
10071	lt_prog_compiler_pic='-Kconform_pic'
10072	lt_prog_compiler_static='-Bstatic'
10073      fi
10074      ;;
10075
10076    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10077      lt_prog_compiler_wl='-Wl,'
10078      lt_prog_compiler_pic='-KPIC'
10079      lt_prog_compiler_static='-Bstatic'
10080      ;;
10081
10082    unicos*)
10083      lt_prog_compiler_wl='-Wl,'
10084      lt_prog_compiler_can_build_shared=no
10085      ;;
10086
10087    uts4*)
10088      lt_prog_compiler_pic='-pic'
10089      lt_prog_compiler_static='-Bstatic'
10090      ;;
10091
10092    *)
10093      lt_prog_compiler_can_build_shared=no
10094      ;;
10095    esac
10096  fi
10097
10098case $host_os in
10099  # For platforms that do not support PIC, -DPIC is meaningless:
10100  *djgpp*)
10101    lt_prog_compiler_pic=
10102    ;;
10103  *)
10104    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10105    ;;
10106esac
10107
10108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10109printf %s "checking for $compiler option to produce PIC... " >&6; }
10110if test ${lt_cv_prog_compiler_pic+y}
10111then :
10112  printf %s "(cached) " >&6
10113else $as_nop
10114  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10115fi
10116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10117printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10118lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10119
10120#
10121# Check to make sure the PIC flag actually works.
10122#
10123if test -n "$lt_prog_compiler_pic"; then
10124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10125printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10126if test ${lt_cv_prog_compiler_pic_works+y}
10127then :
10128  printf %s "(cached) " >&6
10129else $as_nop
10130  lt_cv_prog_compiler_pic_works=no
10131   ac_outfile=conftest.$ac_objext
10132   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10133   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10134   # Insert the option either (1) after the last *FLAGS variable, or
10135   # (2) before a word containing "conftest.", or (3) at the end.
10136   # Note that $ac_compile itself does not contain backslashes and begins
10137   # with a dollar sign (not a hyphen), so the echo should work correctly.
10138   # The option is referenced via a variable to avoid confusing sed.
10139   lt_compile=`echo "$ac_compile" | $SED \
10140   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10142   -e 's:$: $lt_compiler_flag:'`
10143   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10144   (eval "$lt_compile" 2>conftest.err)
10145   ac_status=$?
10146   cat conftest.err >&5
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   if (exit $ac_status) && test -s "$ac_outfile"; then
10149     # The compiler can only warn and ignore the option if not recognized
10150     # So say no if there are warnings other than the usual output.
10151     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10152     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10153     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10154       lt_cv_prog_compiler_pic_works=yes
10155     fi
10156   fi
10157   $RM conftest*
10158
10159fi
10160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10161printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10162
10163if test yes = "$lt_cv_prog_compiler_pic_works"; then
10164    case $lt_prog_compiler_pic in
10165     "" | " "*) ;;
10166     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10167     esac
10168else
10169    lt_prog_compiler_pic=
10170     lt_prog_compiler_can_build_shared=no
10171fi
10172
10173fi
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185#
10186# Check to make sure the static flag actually works.
10187#
10188wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10190printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10191if test ${lt_cv_prog_compiler_static_works+y}
10192then :
10193  printf %s "(cached) " >&6
10194else $as_nop
10195  lt_cv_prog_compiler_static_works=no
10196   save_LDFLAGS=$LDFLAGS
10197   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10198   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10199   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10200     # The linker can only warn and ignore the option if not recognized
10201     # So say no if there are warnings
10202     if test -s conftest.err; then
10203       # Append any errors to the config.log.
10204       cat conftest.err 1>&5
10205       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10206       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10207       if diff conftest.exp conftest.er2 >/dev/null; then
10208         lt_cv_prog_compiler_static_works=yes
10209       fi
10210     else
10211       lt_cv_prog_compiler_static_works=yes
10212     fi
10213   fi
10214   $RM -r conftest*
10215   LDFLAGS=$save_LDFLAGS
10216
10217fi
10218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10219printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10220
10221if test yes = "$lt_cv_prog_compiler_static_works"; then
10222    :
10223else
10224    lt_prog_compiler_static=
10225fi
10226
10227
10228
10229
10230
10231
10232
10233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10234printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10235if test ${lt_cv_prog_compiler_c_o+y}
10236then :
10237  printf %s "(cached) " >&6
10238else $as_nop
10239  lt_cv_prog_compiler_c_o=no
10240   $RM -r conftest 2>/dev/null
10241   mkdir conftest
10242   cd conftest
10243   mkdir out
10244   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10245
10246   lt_compiler_flag="-o out/conftest2.$ac_objext"
10247   # Insert the option either (1) after the last *FLAGS variable, or
10248   # (2) before a word containing "conftest.", or (3) at the end.
10249   # Note that $ac_compile itself does not contain backslashes and begins
10250   # with a dollar sign (not a hyphen), so the echo should work correctly.
10251   lt_compile=`echo "$ac_compile" | $SED \
10252   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10253   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10254   -e 's:$: $lt_compiler_flag:'`
10255   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10256   (eval "$lt_compile" 2>out/conftest.err)
10257   ac_status=$?
10258   cat out/conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10261   then
10262     # The compiler can only warn and ignore the option if not recognized
10263     # So say no if there are warnings
10264     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10265     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10266     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10267       lt_cv_prog_compiler_c_o=yes
10268     fi
10269   fi
10270   chmod u+w . 2>&5
10271   $RM conftest*
10272   # SGI C++ compiler will create directory out/ii_files/ for
10273   # template instantiation
10274   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10275   $RM out/* && rmdir out
10276   cd ..
10277   $RM -r conftest
10278   $RM conftest*
10279
10280fi
10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10282printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10283
10284
10285
10286
10287
10288
10289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10290printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10291if test ${lt_cv_prog_compiler_c_o+y}
10292then :
10293  printf %s "(cached) " >&6
10294else $as_nop
10295  lt_cv_prog_compiler_c_o=no
10296   $RM -r conftest 2>/dev/null
10297   mkdir conftest
10298   cd conftest
10299   mkdir out
10300   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10301
10302   lt_compiler_flag="-o out/conftest2.$ac_objext"
10303   # Insert the option either (1) after the last *FLAGS variable, or
10304   # (2) before a word containing "conftest.", or (3) at the end.
10305   # Note that $ac_compile itself does not contain backslashes and begins
10306   # with a dollar sign (not a hyphen), so the echo should work correctly.
10307   lt_compile=`echo "$ac_compile" | $SED \
10308   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10310   -e 's:$: $lt_compiler_flag:'`
10311   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10312   (eval "$lt_compile" 2>out/conftest.err)
10313   ac_status=$?
10314   cat out/conftest.err >&5
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10317   then
10318     # The compiler can only warn and ignore the option if not recognized
10319     # So say no if there are warnings
10320     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10321     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10322     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10323       lt_cv_prog_compiler_c_o=yes
10324     fi
10325   fi
10326   chmod u+w . 2>&5
10327   $RM conftest*
10328   # SGI C++ compiler will create directory out/ii_files/ for
10329   # template instantiation
10330   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10331   $RM out/* && rmdir out
10332   cd ..
10333   $RM -r conftest
10334   $RM conftest*
10335
10336fi
10337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10338printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10339
10340
10341
10342
10343hard_links=nottested
10344if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10345  # do not overwrite the value of need_locks provided by the user
10346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10347printf %s "checking if we can lock with hard links... " >&6; }
10348  hard_links=yes
10349  $RM conftest*
10350  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10351  touch conftest.a
10352  ln conftest.a conftest.b 2>&5 || hard_links=no
10353  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10355printf "%s\n" "$hard_links" >&6; }
10356  if test no = "$hard_links"; then
10357    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10358printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10359    need_locks=warn
10360  fi
10361else
10362  need_locks=no
10363fi
10364
10365
10366
10367
10368
10369
10370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10371printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10372
10373  runpath_var=
10374  allow_undefined_flag=
10375  always_export_symbols=no
10376  archive_cmds=
10377  archive_expsym_cmds=
10378  compiler_needs_object=no
10379  enable_shared_with_static_runtimes=no
10380  export_dynamic_flag_spec=
10381  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10382  hardcode_automatic=no
10383  hardcode_direct=no
10384  hardcode_direct_absolute=no
10385  hardcode_libdir_flag_spec=
10386  hardcode_libdir_separator=
10387  hardcode_minus_L=no
10388  hardcode_shlibpath_var=unsupported
10389  inherit_rpath=no
10390  link_all_deplibs=unknown
10391  module_cmds=
10392  module_expsym_cmds=
10393  old_archive_from_new_cmds=
10394  old_archive_from_expsyms_cmds=
10395  thread_safe_flag_spec=
10396  whole_archive_flag_spec=
10397  # include_expsyms should be a list of space-separated symbols to be *always*
10398  # included in the symbol list
10399  include_expsyms=
10400  # exclude_expsyms can be an extended regexp of symbols to exclude
10401  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10402  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10403  # as well as any symbol that contains 'd'.
10404  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10405  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10406  # platforms (ab)use it in PIC code, but their linkers get confused if
10407  # the symbol is explicitly referenced.  Since portable code cannot
10408  # rely on this symbol name, it's probably fine to never include it in
10409  # preloaded symbol tables.
10410  # Exclude shared library initialization/finalization symbols.
10411  extract_expsyms_cmds=
10412
10413  case $host_os in
10414  cygwin* | mingw* | pw32* | cegcc*)
10415    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10416    # When not using gcc, we currently assume that we are using
10417    # Microsoft Visual C++.
10418    if test yes != "$GCC"; then
10419      with_gnu_ld=no
10420    fi
10421    ;;
10422  interix*)
10423    # we just hope/assume this is gcc and not c89 (= MSVC++)
10424    with_gnu_ld=yes
10425    ;;
10426  openbsd* | bitrig*)
10427    with_gnu_ld=no
10428    ;;
10429  esac
10430
10431  ld_shlibs=yes
10432
10433  # On some targets, GNU ld is compatible enough with the native linker
10434  # that we're better off using the native interface for both.
10435  lt_use_gnu_ld_interface=no
10436  if test yes = "$with_gnu_ld"; then
10437    case $host_os in
10438      aix*)
10439	# The AIX port of GNU ld has always aspired to compatibility
10440	# with the native linker.  However, as the warning in the GNU ld
10441	# block says, versions before 2.19.5* couldn't really create working
10442	# shared libraries, regardless of the interface used.
10443	case `$LD -v 2>&1` in
10444	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10445	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10446	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10447	  *)
10448	    lt_use_gnu_ld_interface=yes
10449	    ;;
10450	esac
10451	;;
10452      *)
10453	lt_use_gnu_ld_interface=yes
10454	;;
10455    esac
10456  fi
10457
10458  if test yes = "$lt_use_gnu_ld_interface"; then
10459    # If archive_cmds runs LD, not CC, wlarc should be empty
10460    wlarc='$wl'
10461
10462    # Set some defaults for GNU ld with shared library support. These
10463    # are reset later if shared libraries are not supported. Putting them
10464    # here allows them to be overridden if necessary.
10465    runpath_var=LD_RUN_PATH
10466    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10467    export_dynamic_flag_spec='$wl--export-dynamic'
10468    # ancient GNU ld didn't support --whole-archive et. al.
10469    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10470      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10471    else
10472      whole_archive_flag_spec=
10473    fi
10474    supports_anon_versioning=no
10475    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10476      *GNU\ gold*) supports_anon_versioning=yes ;;
10477      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10478      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10479      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10480      *\ 2.11.*) ;; # other 2.11 versions
10481      *) supports_anon_versioning=yes ;;
10482    esac
10483
10484    # See if GNU ld supports shared libraries.
10485    case $host_os in
10486    aix[3-9]*)
10487      # On AIX/PPC, the GNU linker is very broken
10488      if test ia64 != "$host_cpu"; then
10489	ld_shlibs=no
10490	cat <<_LT_EOF 1>&2
10491
10492*** Warning: the GNU linker, at least up to release 2.19, is reported
10493*** to be unable to reliably create shared libraries on AIX.
10494*** Therefore, libtool is disabling shared libraries support.  If you
10495*** really care for shared libraries, you may want to install binutils
10496*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10497*** You will then need to restart the configuration process.
10498
10499_LT_EOF
10500      fi
10501      ;;
10502
10503    amigaos*)
10504      case $host_cpu in
10505      powerpc)
10506            # see comment about AmigaOS4 .so support
10507            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10508            archive_expsym_cmds=''
10509        ;;
10510      m68k)
10511            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)'
10512            hardcode_libdir_flag_spec='-L$libdir'
10513            hardcode_minus_L=yes
10514        ;;
10515      esac
10516      ;;
10517
10518    beos*)
10519      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10520	allow_undefined_flag=unsupported
10521	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10522	# support --undefined.  This deserves some investigation.  FIXME
10523	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10524      else
10525	ld_shlibs=no
10526      fi
10527      ;;
10528
10529    cygwin* | mingw* | pw32* | cegcc*)
10530      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10531      # as there is no search path for DLLs.
10532      hardcode_libdir_flag_spec='-L$libdir'
10533      export_dynamic_flag_spec='$wl--export-all-symbols'
10534      allow_undefined_flag=unsupported
10535      always_export_symbols=no
10536      enable_shared_with_static_runtimes=yes
10537      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'
10538      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10539
10540      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10541        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10542	# If the export-symbols file already is a .def file, use it as
10543	# is; otherwise, prepend EXPORTS...
10544	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10545          cp $export_symbols $output_objdir/$soname.def;
10546        else
10547          echo EXPORTS > $output_objdir/$soname.def;
10548          cat $export_symbols >> $output_objdir/$soname.def;
10549        fi~
10550        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10551      else
10552	ld_shlibs=no
10553      fi
10554      ;;
10555
10556    haiku*)
10557      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10558      link_all_deplibs=yes
10559      ;;
10560
10561    os2*)
10562      hardcode_libdir_flag_spec='-L$libdir'
10563      hardcode_minus_L=yes
10564      allow_undefined_flag=unsupported
10565      shrext_cmds=.dll
10566      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10567	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10568	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10569	$ECHO EXPORTS >> $output_objdir/$libname.def~
10570	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10571	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10572	emximp -o $lib $output_objdir/$libname.def'
10573      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10574	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10575	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10576	$ECHO EXPORTS >> $output_objdir/$libname.def~
10577	prefix_cmds="$SED"~
10578	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10579	  prefix_cmds="$prefix_cmds -e 1d";
10580	fi~
10581	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10582	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10583	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10584	emximp -o $lib $output_objdir/$libname.def'
10585      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10586      enable_shared_with_static_runtimes=yes
10587      ;;
10588
10589    interix[3-9]*)
10590      hardcode_direct=no
10591      hardcode_shlibpath_var=no
10592      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10593      export_dynamic_flag_spec='$wl-E'
10594      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10595      # Instead, shared libraries are loaded at an image base (0x10000000 by
10596      # default) and relocated if they conflict, which is a slow very memory
10597      # consuming and fragmenting process.  To avoid this, we pick a random,
10598      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10599      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10600      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10601      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'
10602      ;;
10603
10604    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10605      tmp_diet=no
10606      if test linux-dietlibc = "$host_os"; then
10607	case $cc_basename in
10608	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10609	esac
10610      fi
10611      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10612	 && test no = "$tmp_diet"
10613      then
10614	tmp_addflag=' $pic_flag'
10615	tmp_sharedflag='-shared'
10616	case $cc_basename,$host_cpu in
10617        pgcc*)				# Portland Group C compiler
10618	  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'
10619	  tmp_addflag=' $pic_flag'
10620	  ;;
10621	pgf77* | pgf90* | pgf95* | pgfortran*)
10622					# Portland Group f77 and f90 compilers
10623	  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'
10624	  tmp_addflag=' $pic_flag -Mnomain' ;;
10625	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10626	  tmp_addflag=' -i_dynamic' ;;
10627	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10628	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10629	ifc* | ifort*)			# Intel Fortran compiler
10630	  tmp_addflag=' -nofor_main' ;;
10631	lf95*)				# Lahey Fortran 8.1
10632	  whole_archive_flag_spec=
10633	  tmp_sharedflag='--shared' ;;
10634        nagfor*)                        # NAGFOR 5.3
10635          tmp_sharedflag='-Wl,-shared' ;;
10636	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10637	  tmp_sharedflag='-qmkshrobj'
10638	  tmp_addflag= ;;
10639	nvcc*)	# Cuda Compiler Driver 2.2
10640	  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'
10641	  compiler_needs_object=yes
10642	  ;;
10643	esac
10644	case `$CC -V 2>&1 | sed 5q` in
10645	*Sun\ C*)			# Sun C 5.9
10646	  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'
10647	  compiler_needs_object=yes
10648	  tmp_sharedflag='-G' ;;
10649	*Sun\ F*)			# Sun Fortran 8.3
10650	  tmp_sharedflag='-G' ;;
10651	esac
10652	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10653
10654        if test yes = "$supports_anon_versioning"; then
10655          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10656            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10657            echo "local: *; };" >> $output_objdir/$libname.ver~
10658            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10659        fi
10660
10661	case $cc_basename in
10662	tcc*)
10663	  export_dynamic_flag_spec='-rdynamic'
10664	  ;;
10665	xlf* | bgf* | bgxlf* | mpixlf*)
10666	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10667	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10668	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10669	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10670	  if test yes = "$supports_anon_versioning"; then
10671	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10672              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10673              echo "local: *; };" >> $output_objdir/$libname.ver~
10674              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10675	  fi
10676	  ;;
10677	esac
10678      else
10679        ld_shlibs=no
10680      fi
10681      ;;
10682
10683    netbsd*)
10684      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10685	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10686	wlarc=
10687      else
10688	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10689	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10690      fi
10691      ;;
10692
10693    solaris*)
10694      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10695	ld_shlibs=no
10696	cat <<_LT_EOF 1>&2
10697
10698*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10699*** create shared libraries on Solaris systems.  Therefore, libtool
10700*** is disabling shared libraries support.  We urge you to upgrade GNU
10701*** binutils to release 2.9.1 or newer.  Another option is to modify
10702*** your PATH or compiler configuration so that the native linker is
10703*** used, and then restart.
10704
10705_LT_EOF
10706      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10707	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10708	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10709      else
10710	ld_shlibs=no
10711      fi
10712      ;;
10713
10714    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10715      case `$LD -v 2>&1` in
10716        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10717	ld_shlibs=no
10718	cat <<_LT_EOF 1>&2
10719
10720*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10721*** reliably create shared libraries on SCO systems.  Therefore, libtool
10722*** is disabling shared libraries support.  We urge you to upgrade GNU
10723*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10724*** your PATH or compiler configuration so that the native linker is
10725*** used, and then restart.
10726
10727_LT_EOF
10728	;;
10729	*)
10730	  # For security reasons, it is highly recommended that you always
10731	  # use absolute paths for naming shared libraries, and exclude the
10732	  # DT_RUNPATH tag from executables and libraries.  But doing so
10733	  # requires that you compile everything twice, which is a pain.
10734	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10735	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10736	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10737	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10738	  else
10739	    ld_shlibs=no
10740	  fi
10741	;;
10742      esac
10743      ;;
10744
10745    sunos4*)
10746      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10747      wlarc=
10748      hardcode_direct=yes
10749      hardcode_shlibpath_var=no
10750      ;;
10751
10752    *)
10753      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10754	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10755	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10756      else
10757	ld_shlibs=no
10758      fi
10759      ;;
10760    esac
10761
10762    if test no = "$ld_shlibs"; then
10763      runpath_var=
10764      hardcode_libdir_flag_spec=
10765      export_dynamic_flag_spec=
10766      whole_archive_flag_spec=
10767    fi
10768  else
10769    # PORTME fill in a description of your system's linker (not GNU ld)
10770    case $host_os in
10771    aix3*)
10772      allow_undefined_flag=unsupported
10773      always_export_symbols=yes
10774      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'
10775      # Note: this linker hardcodes the directories in LIBPATH if there
10776      # are no directories specified by -L.
10777      hardcode_minus_L=yes
10778      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10779	# Neither direct hardcoding nor static linking is supported with a
10780	# broken collect2.
10781	hardcode_direct=unsupported
10782      fi
10783      ;;
10784
10785    aix[4-9]*)
10786      if test ia64 = "$host_cpu"; then
10787	# On IA64, the linker does run time linking by default, so we don't
10788	# have to do anything special.
10789	aix_use_runtimelinking=no
10790	exp_sym_flag='-Bexport'
10791	no_entry_flag=
10792      else
10793	# If we're using GNU nm, then we don't want the "-C" option.
10794	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10795	# Without the "-l" option, or with the "-B" option, AIX nm treats
10796	# weak defined symbols like other global defined symbols, whereas
10797	# GNU nm marks them as "W".
10798	# While the 'weak' keyword is ignored in the Export File, we need
10799	# it in the Import File for the 'aix-soname' feature, so we have
10800	# to replace the "-B" option with "-P" for AIX nm.
10801	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10802	  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'
10803	else
10804	  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'
10805	fi
10806	aix_use_runtimelinking=no
10807
10808	# Test if we are trying to use run time linking or normal
10809	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10810	# have runtime linking enabled, and use it for executables.
10811	# For shared libraries, we enable/disable runtime linking
10812	# depending on the kind of the shared library created -
10813	# when "with_aix_soname,aix_use_runtimelinking" is:
10814	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10815	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10816	#            lib.a           static archive
10817	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10818	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10819	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10820	#            lib.a(lib.so.V) shared, rtl:no
10821	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10822	#            lib.a           static archive
10823	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10824	  for ld_flag in $LDFLAGS; do
10825	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10826	    aix_use_runtimelinking=yes
10827	    break
10828	  fi
10829	  done
10830	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10831	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10832	    # so we don't have lib.a shared libs to link our executables.
10833	    # We have to force runtime linking in this case.
10834	    aix_use_runtimelinking=yes
10835	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10836	  fi
10837	  ;;
10838	esac
10839
10840	exp_sym_flag='-bexport'
10841	no_entry_flag='-bnoentry'
10842      fi
10843
10844      # When large executables or shared objects are built, AIX ld can
10845      # have problems creating the table of contents.  If linking a library
10846      # or program results in "error TOC overflow" add -mminimal-toc to
10847      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10848      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10849
10850      archive_cmds=''
10851      hardcode_direct=yes
10852      hardcode_direct_absolute=yes
10853      hardcode_libdir_separator=':'
10854      link_all_deplibs=yes
10855      file_list_spec='$wl-f,'
10856      case $with_aix_soname,$aix_use_runtimelinking in
10857      aix,*) ;; # traditional, no import file
10858      svr4,* | *,yes) # use import file
10859	# The Import File defines what to hardcode.
10860	hardcode_direct=no
10861	hardcode_direct_absolute=no
10862	;;
10863      esac
10864
10865      if test yes = "$GCC"; then
10866	case $host_os in aix4.[012]|aix4.[012].*)
10867	# We only want to do this on AIX 4.2 and lower, the check
10868	# below for broken collect2 doesn't work under 4.3+
10869	  collect2name=`$CC -print-prog-name=collect2`
10870	  if test -f "$collect2name" &&
10871	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10872	  then
10873	  # We have reworked collect2
10874	  :
10875	  else
10876	  # We have old collect2
10877	  hardcode_direct=unsupported
10878	  # It fails to find uninstalled libraries when the uninstalled
10879	  # path is not listed in the libpath.  Setting hardcode_minus_L
10880	  # to unsupported forces relinking
10881	  hardcode_minus_L=yes
10882	  hardcode_libdir_flag_spec='-L$libdir'
10883	  hardcode_libdir_separator=
10884	  fi
10885	  ;;
10886	esac
10887	shared_flag='-shared'
10888	if test yes = "$aix_use_runtimelinking"; then
10889	  shared_flag="$shared_flag "'$wl-G'
10890	fi
10891	# Need to ensure runtime linking is disabled for the traditional
10892	# shared library, or the linker may eventually find shared libraries
10893	# /with/ Import File - we do not want to mix them.
10894	shared_flag_aix='-shared'
10895	shared_flag_svr4='-shared $wl-G'
10896      else
10897	# not using gcc
10898	if test ia64 = "$host_cpu"; then
10899	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10900	# chokes on -Wl,-G. The following line is correct:
10901	  shared_flag='-G'
10902	else
10903	  if test yes = "$aix_use_runtimelinking"; then
10904	    shared_flag='$wl-G'
10905	  else
10906	    shared_flag='$wl-bM:SRE'
10907	  fi
10908	  shared_flag_aix='$wl-bM:SRE'
10909	  shared_flag_svr4='$wl-G'
10910	fi
10911      fi
10912
10913      export_dynamic_flag_spec='$wl-bexpall'
10914      # It seems that -bexpall does not export symbols beginning with
10915      # underscore (_), so it is better to generate a list of symbols to export.
10916      always_export_symbols=yes
10917      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10918	# Warning - without using the other runtime loading flags (-brtl),
10919	# -berok will link without error, but may produce a broken library.
10920	allow_undefined_flag='-berok'
10921        # Determine the default libpath from the value encoded in an
10922        # empty executable.
10923        if test set = "${lt_cv_aix_libpath+set}"; then
10924  aix_libpath=$lt_cv_aix_libpath
10925else
10926  if test ${lt_cv_aix_libpath_+y}
10927then :
10928  printf %s "(cached) " >&6
10929else $as_nop
10930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931/* end confdefs.h.  */
10932
10933int
10934main (void)
10935{
10936
10937  ;
10938  return 0;
10939}
10940_ACEOF
10941if ac_fn_c_try_link "$LINENO"
10942then :
10943
10944  lt_aix_libpath_sed='
10945      /Import File Strings/,/^$/ {
10946	  /^0/ {
10947	      s/^0  *\([^ ]*\) *$/\1/
10948	      p
10949	  }
10950      }'
10951  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10952  # Check for a 64-bit object if we didn't find anything.
10953  if test -z "$lt_cv_aix_libpath_"; then
10954    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10955  fi
10956fi
10957rm -f core conftest.err conftest.$ac_objext conftest.beam \
10958    conftest$ac_exeext conftest.$ac_ext
10959  if test -z "$lt_cv_aix_libpath_"; then
10960    lt_cv_aix_libpath_=/usr/lib:/lib
10961  fi
10962
10963fi
10964
10965  aix_libpath=$lt_cv_aix_libpath_
10966fi
10967
10968        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10969        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
10970      else
10971	if test ia64 = "$host_cpu"; then
10972	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10973	  allow_undefined_flag="-z nodefs"
10974	  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"
10975	else
10976	 # Determine the default libpath from the value encoded in an
10977	 # empty executable.
10978	 if test set = "${lt_cv_aix_libpath+set}"; then
10979  aix_libpath=$lt_cv_aix_libpath
10980else
10981  if test ${lt_cv_aix_libpath_+y}
10982then :
10983  printf %s "(cached) " >&6
10984else $as_nop
10985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986/* end confdefs.h.  */
10987
10988int
10989main (void)
10990{
10991
10992  ;
10993  return 0;
10994}
10995_ACEOF
10996if ac_fn_c_try_link "$LINENO"
10997then :
10998
10999  lt_aix_libpath_sed='
11000      /Import File Strings/,/^$/ {
11001	  /^0/ {
11002	      s/^0  *\([^ ]*\) *$/\1/
11003	      p
11004	  }
11005      }'
11006  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11007  # Check for a 64-bit object if we didn't find anything.
11008  if test -z "$lt_cv_aix_libpath_"; then
11009    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11010  fi
11011fi
11012rm -f core conftest.err conftest.$ac_objext conftest.beam \
11013    conftest$ac_exeext conftest.$ac_ext
11014  if test -z "$lt_cv_aix_libpath_"; then
11015    lt_cv_aix_libpath_=/usr/lib:/lib
11016  fi
11017
11018fi
11019
11020  aix_libpath=$lt_cv_aix_libpath_
11021fi
11022
11023	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11024	  # Warning - without using the other run time loading flags,
11025	  # -berok will link without error, but may produce a broken library.
11026	  no_undefined_flag=' $wl-bernotok'
11027	  allow_undefined_flag=' $wl-berok'
11028	  if test yes = "$with_gnu_ld"; then
11029	    # We only use this code for GNU lds that support --whole-archive.
11030	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11031	  else
11032	    # Exported symbols can be pulled into shared objects from archives
11033	    whole_archive_flag_spec='$convenience'
11034	  fi
11035	  archive_cmds_need_lc=yes
11036	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11037	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11038	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11039	  if test svr4 != "$with_aix_soname"; then
11040	    # This is similar to how AIX traditionally builds its shared libraries.
11041	    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'
11042	  fi
11043	  if test aix != "$with_aix_soname"; then
11044	    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'
11045	  else
11046	    # used by -dlpreopen to get the symbols
11047	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11048	  fi
11049	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11050	fi
11051      fi
11052      ;;
11053
11054    amigaos*)
11055      case $host_cpu in
11056      powerpc)
11057            # see comment about AmigaOS4 .so support
11058            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11059            archive_expsym_cmds=''
11060        ;;
11061      m68k)
11062            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)'
11063            hardcode_libdir_flag_spec='-L$libdir'
11064            hardcode_minus_L=yes
11065        ;;
11066      esac
11067      ;;
11068
11069    bsdi[45]*)
11070      export_dynamic_flag_spec=-rdynamic
11071      ;;
11072
11073    cygwin* | mingw* | pw32* | cegcc*)
11074      # When not using gcc, we currently assume that we are using
11075      # Microsoft Visual C++.
11076      # hardcode_libdir_flag_spec is actually meaningless, as there is
11077      # no search path for DLLs.
11078      case $cc_basename in
11079      cl*)
11080	# Native MSVC
11081	hardcode_libdir_flag_spec=' '
11082	allow_undefined_flag=unsupported
11083	always_export_symbols=yes
11084	file_list_spec='@'
11085	# Tell ltmain to make .lib files, not .a files.
11086	libext=lib
11087	# Tell ltmain to make .dll files, not .so files.
11088	shrext_cmds=.dll
11089	# FIXME: Setting linknames here is a bad hack.
11090	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11091	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11092            cp "$export_symbols" "$output_objdir/$soname.def";
11093            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11094          else
11095            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11096          fi~
11097          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11098          linknames='
11099	# The linker will not automatically build a static lib if we build a DLL.
11100	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11101	enable_shared_with_static_runtimes=yes
11102	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11103	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11104	# Don't use ranlib
11105	old_postinstall_cmds='chmod 644 $oldlib'
11106	postlink_cmds='lt_outputfile="@OUTPUT@"~
11107          lt_tool_outputfile="@TOOL_OUTPUT@"~
11108          case $lt_outputfile in
11109            *.exe|*.EXE) ;;
11110            *)
11111              lt_outputfile=$lt_outputfile.exe
11112              lt_tool_outputfile=$lt_tool_outputfile.exe
11113              ;;
11114          esac~
11115          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11116            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11117            $RM "$lt_outputfile.manifest";
11118          fi'
11119	;;
11120      *)
11121	# Assume MSVC wrapper
11122	hardcode_libdir_flag_spec=' '
11123	allow_undefined_flag=unsupported
11124	# Tell ltmain to make .lib files, not .a files.
11125	libext=lib
11126	# Tell ltmain to make .dll files, not .so files.
11127	shrext_cmds=.dll
11128	# FIXME: Setting linknames here is a bad hack.
11129	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11130	# The linker will automatically build a .lib file if we build a DLL.
11131	old_archive_from_new_cmds='true'
11132	# FIXME: Should let the user specify the lib program.
11133	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11134	enable_shared_with_static_runtimes=yes
11135	;;
11136      esac
11137      ;;
11138
11139    darwin* | rhapsody*)
11140
11141
11142  archive_cmds_need_lc=no
11143  hardcode_direct=no
11144  hardcode_automatic=yes
11145  hardcode_shlibpath_var=unsupported
11146  if test yes = "$lt_cv_ld_force_load"; then
11147    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\"`'
11148
11149  else
11150    whole_archive_flag_spec=''
11151  fi
11152  link_all_deplibs=yes
11153  allow_undefined_flag=$_lt_dar_allow_undefined
11154  case $cc_basename in
11155     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11156     *) _lt_dar_can_shared=$GCC ;;
11157  esac
11158  if test yes = "$_lt_dar_can_shared"; then
11159    output_verbose_link_cmd=func_echo_all
11160    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11161    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11162    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"
11163    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"
11164
11165  else
11166  ld_shlibs=no
11167  fi
11168
11169      ;;
11170
11171    dgux*)
11172      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11173      hardcode_libdir_flag_spec='-L$libdir'
11174      hardcode_shlibpath_var=no
11175      ;;
11176
11177    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11178    # support.  Future versions do this automatically, but an explicit c++rt0.o
11179    # does not break anything, and helps significantly (at the cost of a little
11180    # extra space).
11181    freebsd2.2*)
11182      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11183      hardcode_libdir_flag_spec='-R$libdir'
11184      hardcode_direct=yes
11185      hardcode_shlibpath_var=no
11186      ;;
11187
11188    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11189    freebsd2.*)
11190      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11191      hardcode_direct=yes
11192      hardcode_minus_L=yes
11193      hardcode_shlibpath_var=no
11194      ;;
11195
11196    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11197    freebsd* | dragonfly*)
11198      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11199      hardcode_libdir_flag_spec='-R$libdir'
11200      hardcode_direct=yes
11201      hardcode_shlibpath_var=no
11202      ;;
11203
11204    hpux9*)
11205      if test yes = "$GCC"; then
11206	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'
11207      else
11208	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'
11209      fi
11210      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11211      hardcode_libdir_separator=:
11212      hardcode_direct=yes
11213
11214      # hardcode_minus_L: Not really in the search PATH,
11215      # but as the default location of the library.
11216      hardcode_minus_L=yes
11217      export_dynamic_flag_spec='$wl-E'
11218      ;;
11219
11220    hpux10*)
11221      if test yes,no = "$GCC,$with_gnu_ld"; then
11222	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11223      else
11224	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11225      fi
11226      if test no = "$with_gnu_ld"; then
11227	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11228	hardcode_libdir_separator=:
11229	hardcode_direct=yes
11230	hardcode_direct_absolute=yes
11231	export_dynamic_flag_spec='$wl-E'
11232	# hardcode_minus_L: Not really in the search PATH,
11233	# but as the default location of the library.
11234	hardcode_minus_L=yes
11235      fi
11236      ;;
11237
11238    hpux11*)
11239      if test yes,no = "$GCC,$with_gnu_ld"; then
11240	case $host_cpu in
11241	hppa*64*)
11242	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11243	  ;;
11244	ia64*)
11245	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11246	  ;;
11247	*)
11248	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11249	  ;;
11250	esac
11251      else
11252	case $host_cpu in
11253	hppa*64*)
11254	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11255	  ;;
11256	ia64*)
11257	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11258	  ;;
11259	*)
11260
11261	  # Older versions of the 11.00 compiler do not understand -b yet
11262	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11263	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11264printf %s "checking if $CC understands -b... " >&6; }
11265if test ${lt_cv_prog_compiler__b+y}
11266then :
11267  printf %s "(cached) " >&6
11268else $as_nop
11269  lt_cv_prog_compiler__b=no
11270   save_LDFLAGS=$LDFLAGS
11271   LDFLAGS="$LDFLAGS -b"
11272   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11273   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11274     # The linker can only warn and ignore the option if not recognized
11275     # So say no if there are warnings
11276     if test -s conftest.err; then
11277       # Append any errors to the config.log.
11278       cat conftest.err 1>&5
11279       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11280       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11281       if diff conftest.exp conftest.er2 >/dev/null; then
11282         lt_cv_prog_compiler__b=yes
11283       fi
11284     else
11285       lt_cv_prog_compiler__b=yes
11286     fi
11287   fi
11288   $RM -r conftest*
11289   LDFLAGS=$save_LDFLAGS
11290
11291fi
11292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11293printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11294
11295if test yes = "$lt_cv_prog_compiler__b"; then
11296    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11297else
11298    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11299fi
11300
11301	  ;;
11302	esac
11303      fi
11304      if test no = "$with_gnu_ld"; then
11305	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11306	hardcode_libdir_separator=:
11307
11308	case $host_cpu in
11309	hppa*64*|ia64*)
11310	  hardcode_direct=no
11311	  hardcode_shlibpath_var=no
11312	  ;;
11313	*)
11314	  hardcode_direct=yes
11315	  hardcode_direct_absolute=yes
11316	  export_dynamic_flag_spec='$wl-E'
11317
11318	  # hardcode_minus_L: Not really in the search PATH,
11319	  # but as the default location of the library.
11320	  hardcode_minus_L=yes
11321	  ;;
11322	esac
11323      fi
11324      ;;
11325
11326    irix5* | irix6* | nonstopux*)
11327      if test yes = "$GCC"; then
11328	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'
11329	# Try to use the -exported_symbol ld option, if it does not
11330	# work, assume that -exports_file does not work either and
11331	# implicitly export all symbols.
11332	# This should be the same for all languages, so no per-tag cache variable.
11333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11334printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11335if test ${lt_cv_irix_exported_symbol+y}
11336then :
11337  printf %s "(cached) " >&6
11338else $as_nop
11339  save_LDFLAGS=$LDFLAGS
11340	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11341	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h.  */
11343int foo (void) { return 0; }
11344_ACEOF
11345if ac_fn_c_try_link "$LINENO"
11346then :
11347  lt_cv_irix_exported_symbol=yes
11348else $as_nop
11349  lt_cv_irix_exported_symbol=no
11350fi
11351rm -f core conftest.err conftest.$ac_objext conftest.beam \
11352    conftest$ac_exeext conftest.$ac_ext
11353           LDFLAGS=$save_LDFLAGS
11354fi
11355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11356printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11357	if test yes = "$lt_cv_irix_exported_symbol"; then
11358          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'
11359	fi
11360      else
11361	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'
11362	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'
11363      fi
11364      archive_cmds_need_lc='no'
11365      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11366      hardcode_libdir_separator=:
11367      inherit_rpath=yes
11368      link_all_deplibs=yes
11369      ;;
11370
11371    linux*)
11372      case $cc_basename in
11373      tcc*)
11374	# Fabrice Bellard et al's Tiny C Compiler
11375	ld_shlibs=yes
11376	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11377	;;
11378      esac
11379      ;;
11380
11381    netbsd*)
11382      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11383	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11384      else
11385	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11386      fi
11387      hardcode_libdir_flag_spec='-R$libdir'
11388      hardcode_direct=yes
11389      hardcode_shlibpath_var=no
11390      ;;
11391
11392    newsos6)
11393      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11394      hardcode_direct=yes
11395      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11396      hardcode_libdir_separator=:
11397      hardcode_shlibpath_var=no
11398      ;;
11399
11400    *nto* | *qnx*)
11401      ;;
11402
11403    openbsd* | bitrig*)
11404      if test -f /usr/libexec/ld.so; then
11405	hardcode_direct=yes
11406	hardcode_shlibpath_var=no
11407	hardcode_direct_absolute=yes
11408	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11409	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11410	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11411	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11412	  export_dynamic_flag_spec='$wl-E'
11413	else
11414	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11415	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11416	fi
11417      else
11418	ld_shlibs=no
11419      fi
11420      ;;
11421
11422    os2*)
11423      hardcode_libdir_flag_spec='-L$libdir'
11424      hardcode_minus_L=yes
11425      allow_undefined_flag=unsupported
11426      shrext_cmds=.dll
11427      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11428	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11429	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11430	$ECHO EXPORTS >> $output_objdir/$libname.def~
11431	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11432	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11433	emximp -o $lib $output_objdir/$libname.def'
11434      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11435	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11436	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11437	$ECHO EXPORTS >> $output_objdir/$libname.def~
11438	prefix_cmds="$SED"~
11439	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11440	  prefix_cmds="$prefix_cmds -e 1d";
11441	fi~
11442	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11443	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11444	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11445	emximp -o $lib $output_objdir/$libname.def'
11446      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11447      enable_shared_with_static_runtimes=yes
11448      ;;
11449
11450    osf3*)
11451      if test yes = "$GCC"; then
11452	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11453	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'
11454      else
11455	allow_undefined_flag=' -expect_unresolved \*'
11456	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'
11457      fi
11458      archive_cmds_need_lc='no'
11459      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11460      hardcode_libdir_separator=:
11461      ;;
11462
11463    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11464      if test yes = "$GCC"; then
11465	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11466	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'
11467	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11468      else
11469	allow_undefined_flag=' -expect_unresolved \*'
11470	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'
11471	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~
11472          $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'
11473
11474	# Both c and cxx compiler support -rpath directly
11475	hardcode_libdir_flag_spec='-rpath $libdir'
11476      fi
11477      archive_cmds_need_lc='no'
11478      hardcode_libdir_separator=:
11479      ;;
11480
11481    solaris*)
11482      no_undefined_flag=' -z defs'
11483      if test yes = "$GCC"; then
11484	wlarc='$wl'
11485	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11486	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11487          $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'
11488      else
11489	case `$CC -V 2>&1` in
11490	*"Compilers 5.0"*)
11491	  wlarc=''
11492	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11493	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11494            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11495	  ;;
11496	*)
11497	  wlarc='$wl'
11498	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11499	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11500            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11501	  ;;
11502	esac
11503      fi
11504      hardcode_libdir_flag_spec='-R$libdir'
11505      hardcode_shlibpath_var=no
11506      case $host_os in
11507      solaris2.[0-5] | solaris2.[0-5].*) ;;
11508      *)
11509	# The compiler driver will combine and reorder linker options,
11510	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11511	# but is careful enough not to reorder.
11512	# Supported since Solaris 2.6 (maybe 2.5.1?)
11513	if test yes = "$GCC"; then
11514	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11515	else
11516	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11517	fi
11518	;;
11519      esac
11520      link_all_deplibs=yes
11521      ;;
11522
11523    sunos4*)
11524      if test sequent = "$host_vendor"; then
11525	# Use $CC to link under sequent, because it throws in some extra .o
11526	# files that make .init and .fini sections work.
11527	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11528      else
11529	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11530      fi
11531      hardcode_libdir_flag_spec='-L$libdir'
11532      hardcode_direct=yes
11533      hardcode_minus_L=yes
11534      hardcode_shlibpath_var=no
11535      ;;
11536
11537    sysv4)
11538      case $host_vendor in
11539	sni)
11540	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11541	  hardcode_direct=yes # is this really true???
11542	;;
11543	siemens)
11544	  ## LD is ld it makes a PLAMLIB
11545	  ## CC just makes a GrossModule.
11546	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11547	  reload_cmds='$CC -r -o $output$reload_objs'
11548	  hardcode_direct=no
11549        ;;
11550	motorola)
11551	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11552	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11553	;;
11554      esac
11555      runpath_var='LD_RUN_PATH'
11556      hardcode_shlibpath_var=no
11557      ;;
11558
11559    sysv4.3*)
11560      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11561      hardcode_shlibpath_var=no
11562      export_dynamic_flag_spec='-Bexport'
11563      ;;
11564
11565    sysv4*MP*)
11566      if test -d /usr/nec; then
11567	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11568	hardcode_shlibpath_var=no
11569	runpath_var=LD_RUN_PATH
11570	hardcode_runpath_var=yes
11571	ld_shlibs=yes
11572      fi
11573      ;;
11574
11575    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11576      no_undefined_flag='$wl-z,text'
11577      archive_cmds_need_lc=no
11578      hardcode_shlibpath_var=no
11579      runpath_var='LD_RUN_PATH'
11580
11581      if test yes = "$GCC"; then
11582	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11584      else
11585	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11586	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11587      fi
11588      ;;
11589
11590    sysv5* | sco3.2v5* | sco5v6*)
11591      # Note: We CANNOT use -z defs as we might desire, because we do not
11592      # link with -lc, and that would cause any symbols used from libc to
11593      # always be unresolved, which means just about no library would
11594      # ever link correctly.  If we're not using GNU ld we use -z text
11595      # though, which does catch some bad symbols but isn't as heavy-handed
11596      # as -z defs.
11597      no_undefined_flag='$wl-z,text'
11598      allow_undefined_flag='$wl-z,nodefs'
11599      archive_cmds_need_lc=no
11600      hardcode_shlibpath_var=no
11601      hardcode_libdir_flag_spec='$wl-R,$libdir'
11602      hardcode_libdir_separator=':'
11603      link_all_deplibs=yes
11604      export_dynamic_flag_spec='$wl-Bexport'
11605      runpath_var='LD_RUN_PATH'
11606
11607      if test yes = "$GCC"; then
11608	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11609	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11610      else
11611	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11612	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11613      fi
11614      ;;
11615
11616    uts4*)
11617      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11618      hardcode_libdir_flag_spec='-L$libdir'
11619      hardcode_shlibpath_var=no
11620      ;;
11621
11622    *)
11623      ld_shlibs=no
11624      ;;
11625    esac
11626
11627    if test sni = "$host_vendor"; then
11628      case $host in
11629      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11630	export_dynamic_flag_spec='$wl-Blargedynsym'
11631	;;
11632      esac
11633    fi
11634  fi
11635
11636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11637printf "%s\n" "$ld_shlibs" >&6; }
11638test no = "$ld_shlibs" && can_build_shared=no
11639
11640with_gnu_ld=$with_gnu_ld
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656#
11657# Do we need to explicitly link libc?
11658#
11659case "x$archive_cmds_need_lc" in
11660x|xyes)
11661  # Assume -lc should be added
11662  archive_cmds_need_lc=yes
11663
11664  if test yes,yes = "$GCC,$enable_shared"; then
11665    case $archive_cmds in
11666    *'~'*)
11667      # FIXME: we may have to deal with multi-command sequences.
11668      ;;
11669    '$CC '*)
11670      # Test whether the compiler implicitly links with -lc since on some
11671      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11672      # to ld, don't add -lc before -lgcc.
11673      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11674printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11675if test ${lt_cv_archive_cmds_need_lc+y}
11676then :
11677  printf %s "(cached) " >&6
11678else $as_nop
11679  $RM conftest*
11680	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11681
11682	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11683  (eval $ac_compile) 2>&5
11684  ac_status=$?
11685  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11686  test $ac_status = 0; } 2>conftest.err; then
11687	  soname=conftest
11688	  lib=conftest
11689	  libobjs=conftest.$ac_objext
11690	  deplibs=
11691	  wl=$lt_prog_compiler_wl
11692	  pic_flag=$lt_prog_compiler_pic
11693	  compiler_flags=-v
11694	  linker_flags=-v
11695	  verstring=
11696	  output_objdir=.
11697	  libname=conftest
11698	  lt_save_allow_undefined_flag=$allow_undefined_flag
11699	  allow_undefined_flag=
11700	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11701  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11702  ac_status=$?
11703  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11704  test $ac_status = 0; }
11705	  then
11706	    lt_cv_archive_cmds_need_lc=no
11707	  else
11708	    lt_cv_archive_cmds_need_lc=yes
11709	  fi
11710	  allow_undefined_flag=$lt_save_allow_undefined_flag
11711	else
11712	  cat conftest.err 1>&5
11713	fi
11714	$RM conftest*
11715
11716fi
11717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11718printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11719      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11720      ;;
11721    esac
11722  fi
11723  ;;
11724esac
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11878printf %s "checking dynamic linker characteristics... " >&6; }
11879
11880if test yes = "$GCC"; then
11881  case $host_os in
11882    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11883    *) lt_awk_arg='/^libraries:/' ;;
11884  esac
11885  case $host_os in
11886    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11887    *) lt_sed_strip_eq='s|=/|/|g' ;;
11888  esac
11889  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11890  case $lt_search_path_spec in
11891  *\;*)
11892    # if the path contains ";" then we assume it to be the separator
11893    # otherwise default to the standard path separator (i.e. ":") - it is
11894    # assumed that no part of a normal pathname contains ";" but that should
11895    # okay in the real world where ";" in dirpaths is itself problematic.
11896    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11897    ;;
11898  *)
11899    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11900    ;;
11901  esac
11902  # Ok, now we have the path, separated by spaces, we can step through it
11903  # and add multilib dir if necessary...
11904  lt_tmp_lt_search_path_spec=
11905  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11906  # ...but if some path component already ends with the multilib dir we assume
11907  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11908  case "$lt_multi_os_dir; $lt_search_path_spec " in
11909  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11910    lt_multi_os_dir=
11911    ;;
11912  esac
11913  for lt_sys_path in $lt_search_path_spec; do
11914    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11915      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11916    elif test -n "$lt_multi_os_dir"; then
11917      test -d "$lt_sys_path" && \
11918	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11919    fi
11920  done
11921  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11922BEGIN {RS = " "; FS = "/|\n";} {
11923  lt_foo = "";
11924  lt_count = 0;
11925  for (lt_i = NF; lt_i > 0; lt_i--) {
11926    if ($lt_i != "" && $lt_i != ".") {
11927      if ($lt_i == "..") {
11928        lt_count++;
11929      } else {
11930        if (lt_count == 0) {
11931          lt_foo = "/" $lt_i lt_foo;
11932        } else {
11933          lt_count--;
11934        }
11935      }
11936    }
11937  }
11938  if (lt_foo != "") { lt_freq[lt_foo]++; }
11939  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11940}'`
11941  # AWK program above erroneously prepends '/' to C:/dos/paths
11942  # for these hosts.
11943  case $host_os in
11944    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11945      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11946  esac
11947  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11948else
11949  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11950fi
11951library_names_spec=
11952libname_spec='lib$name'
11953soname_spec=
11954shrext_cmds=.so
11955postinstall_cmds=
11956postuninstall_cmds=
11957finish_cmds=
11958finish_eval=
11959shlibpath_var=
11960shlibpath_overrides_runpath=unknown
11961version_type=none
11962dynamic_linker="$host_os ld.so"
11963sys_lib_dlsearch_path_spec="/lib /usr/lib"
11964need_lib_prefix=unknown
11965hardcode_into_libs=no
11966
11967# when you set need_version to no, make sure it does not cause -set_version
11968# flags to be left without arguments
11969need_version=unknown
11970
11971
11972
11973case $host_os in
11974aix3*)
11975  version_type=linux # correct to gnu/linux during the next big refactor
11976  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11977  shlibpath_var=LIBPATH
11978
11979  # AIX 3 has no versioning support, so we append a major version to the name.
11980  soname_spec='$libname$release$shared_ext$major'
11981  ;;
11982
11983aix[4-9]*)
11984  version_type=linux # correct to gnu/linux during the next big refactor
11985  need_lib_prefix=no
11986  need_version=no
11987  hardcode_into_libs=yes
11988  if test ia64 = "$host_cpu"; then
11989    # AIX 5 supports IA64
11990    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11991    shlibpath_var=LD_LIBRARY_PATH
11992  else
11993    # With GCC up to 2.95.x, collect2 would create an import file
11994    # for dependence libraries.  The import file would start with
11995    # the line '#! .'.  This would cause the generated library to
11996    # depend on '.', always an invalid library.  This was fixed in
11997    # development snapshots of GCC prior to 3.0.
11998    case $host_os in
11999      aix4 | aix4.[01] | aix4.[01].*)
12000      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12001	   echo ' yes '
12002	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12003	:
12004      else
12005	can_build_shared=no
12006      fi
12007      ;;
12008    esac
12009    # Using Import Files as archive members, it is possible to support
12010    # filename-based versioning of shared library archives on AIX. While
12011    # this would work for both with and without runtime linking, it will
12012    # prevent static linking of such archives. So we do filename-based
12013    # shared library versioning with .so extension only, which is used
12014    # when both runtime linking and shared linking is enabled.
12015    # Unfortunately, runtime linking may impact performance, so we do
12016    # not want this to be the default eventually. Also, we use the
12017    # versioned .so libs for executables only if there is the -brtl
12018    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12019    # To allow for filename-based versioning support, we need to create
12020    # libNAME.so.V as an archive file, containing:
12021    # *) an Import File, referring to the versioned filename of the
12022    #    archive as well as the shared archive member, telling the
12023    #    bitwidth (32 or 64) of that shared object, and providing the
12024    #    list of exported symbols of that shared object, eventually
12025    #    decorated with the 'weak' keyword
12026    # *) the shared object with the F_LOADONLY flag set, to really avoid
12027    #    it being seen by the linker.
12028    # At run time we better use the real file rather than another symlink,
12029    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12030
12031    case $with_aix_soname,$aix_use_runtimelinking in
12032    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12033    # soname into executable. Probably we can add versioning support to
12034    # collect2, so additional links can be useful in future.
12035    aix,yes) # traditional libtool
12036      dynamic_linker='AIX unversionable lib.so'
12037      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12038      # instead of lib<name>.a to let people know that these are not
12039      # typical AIX shared libraries.
12040      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041      ;;
12042    aix,no) # traditional AIX only
12043      dynamic_linker='AIX lib.a(lib.so.V)'
12044      # We preserve .a as extension for shared libraries through AIX4.2
12045      # and later when we are not doing run time linking.
12046      library_names_spec='$libname$release.a $libname.a'
12047      soname_spec='$libname$release$shared_ext$major'
12048      ;;
12049    svr4,*) # full svr4 only
12050      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12051      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12052      # We do not specify a path in Import Files, so LIBPATH fires.
12053      shlibpath_overrides_runpath=yes
12054      ;;
12055    *,yes) # both, prefer svr4
12056      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12057      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12058      # unpreferred sharedlib libNAME.a needs extra handling
12059      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"'
12060      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"'
12061      # We do not specify a path in Import Files, so LIBPATH fires.
12062      shlibpath_overrides_runpath=yes
12063      ;;
12064    *,no) # both, prefer aix
12065      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12066      library_names_spec='$libname$release.a $libname.a'
12067      soname_spec='$libname$release$shared_ext$major'
12068      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12069      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)'
12070      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"'
12071      ;;
12072    esac
12073    shlibpath_var=LIBPATH
12074  fi
12075  ;;
12076
12077amigaos*)
12078  case $host_cpu in
12079  powerpc)
12080    # Since July 2007 AmigaOS4 officially supports .so libraries.
12081    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12082    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083    ;;
12084  m68k)
12085    library_names_spec='$libname.ixlibrary $libname.a'
12086    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12087    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'
12088    ;;
12089  esac
12090  ;;
12091
12092beos*)
12093  library_names_spec='$libname$shared_ext'
12094  dynamic_linker="$host_os ld.so"
12095  shlibpath_var=LIBRARY_PATH
12096  ;;
12097
12098bsdi[45]*)
12099  version_type=linux # correct to gnu/linux during the next big refactor
12100  need_version=no
12101  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12102  soname_spec='$libname$release$shared_ext$major'
12103  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12104  shlibpath_var=LD_LIBRARY_PATH
12105  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12106  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12107  # the default ld.so.conf also contains /usr/contrib/lib and
12108  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12109  # libtool to hard-code these into programs
12110  ;;
12111
12112cygwin* | mingw* | pw32* | cegcc*)
12113  version_type=windows
12114  shrext_cmds=.dll
12115  need_version=no
12116  need_lib_prefix=no
12117
12118  case $GCC,$cc_basename in
12119  yes,*)
12120    # gcc
12121    library_names_spec='$libname.dll.a'
12122    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12123    postinstall_cmds='base_file=`basename \$file`~
12124      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12125      dldir=$destdir/`dirname \$dlpath`~
12126      test -d \$dldir || mkdir -p \$dldir~
12127      $install_prog $dir/$dlname \$dldir/$dlname~
12128      chmod a+x \$dldir/$dlname~
12129      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12130        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12131      fi'
12132    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12133      dlpath=$dir/\$dldll~
12134       $RM \$dlpath'
12135    shlibpath_overrides_runpath=yes
12136
12137    case $host_os in
12138    cygwin*)
12139      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12140      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12141
12142      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12143      ;;
12144    mingw* | cegcc*)
12145      # MinGW DLLs use traditional 'lib' prefix
12146      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12147      ;;
12148    pw32*)
12149      # pw32 DLLs use 'pw' prefix rather than 'lib'
12150      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12151      ;;
12152    esac
12153    dynamic_linker='Win32 ld.exe'
12154    ;;
12155
12156  *,cl*)
12157    # Native MSVC
12158    libname_spec='$name'
12159    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12160    library_names_spec='$libname.dll.lib'
12161
12162    case $build_os in
12163    mingw*)
12164      sys_lib_search_path_spec=
12165      lt_save_ifs=$IFS
12166      IFS=';'
12167      for lt_path in $LIB
12168      do
12169        IFS=$lt_save_ifs
12170        # Let DOS variable expansion print the short 8.3 style file name.
12171        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12172        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12173      done
12174      IFS=$lt_save_ifs
12175      # Convert to MSYS style.
12176      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12177      ;;
12178    cygwin*)
12179      # Convert to unix form, then to dos form, then back to unix form
12180      # but this time dos style (no spaces!) so that the unix form looks
12181      # like /cygdrive/c/PROGRA~1:/cygdr...
12182      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12183      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12184      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12185      ;;
12186    *)
12187      sys_lib_search_path_spec=$LIB
12188      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12189        # It is most probably a Windows format PATH.
12190        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12191      else
12192        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12193      fi
12194      # FIXME: find the short name or the path components, as spaces are
12195      # common. (e.g. "Program Files" -> "PROGRA~1")
12196      ;;
12197    esac
12198
12199    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12200    postinstall_cmds='base_file=`basename \$file`~
12201      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12202      dldir=$destdir/`dirname \$dlpath`~
12203      test -d \$dldir || mkdir -p \$dldir~
12204      $install_prog $dir/$dlname \$dldir/$dlname'
12205    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12206      dlpath=$dir/\$dldll~
12207       $RM \$dlpath'
12208    shlibpath_overrides_runpath=yes
12209    dynamic_linker='Win32 link.exe'
12210    ;;
12211
12212  *)
12213    # Assume MSVC wrapper
12214    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12215    dynamic_linker='Win32 ld.exe'
12216    ;;
12217  esac
12218  # FIXME: first we should search . and the directory the executable is in
12219  shlibpath_var=PATH
12220  ;;
12221
12222darwin* | rhapsody*)
12223  dynamic_linker="$host_os dyld"
12224  version_type=darwin
12225  need_lib_prefix=no
12226  need_version=no
12227  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
12228  soname_spec='$libname$release$major$shared_ext'
12229  shlibpath_overrides_runpath=yes
12230  shlibpath_var=DYLD_LIBRARY_PATH
12231  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
12232
12233  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12234  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12235  ;;
12236
12237dgux*)
12238  version_type=linux # correct to gnu/linux during the next big refactor
12239  need_lib_prefix=no
12240  need_version=no
12241  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242  soname_spec='$libname$release$shared_ext$major'
12243  shlibpath_var=LD_LIBRARY_PATH
12244  ;;
12245
12246freebsd* | dragonfly*)
12247  # DragonFly does not have aout.  When/if they implement a new
12248  # versioning mechanism, adjust this.
12249  if test -x /usr/bin/objformat; then
12250    objformat=`/usr/bin/objformat`
12251  else
12252    case $host_os in
12253    freebsd[23].*) objformat=aout ;;
12254    *) objformat=elf ;;
12255    esac
12256  fi
12257  # Handle Gentoo/FreeBSD as it was Linux
12258  case $host_vendor in
12259    gentoo)
12260      version_type=linux ;;
12261    *)
12262      version_type=freebsd-$objformat ;;
12263  esac
12264
12265  case $version_type in
12266    freebsd-elf*)
12267      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12268      soname_spec='$libname$release$shared_ext$major'
12269      need_version=no
12270      need_lib_prefix=no
12271      ;;
12272    freebsd-*)
12273      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12274      need_version=yes
12275      ;;
12276    linux)
12277      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12278      soname_spec='${libname}${release}${shared_ext}$major'
12279      need_lib_prefix=no
12280      need_version=no
12281      ;;
12282  esac
12283  shlibpath_var=LD_LIBRARY_PATH
12284  case $host_os in
12285  freebsd2.*)
12286    shlibpath_overrides_runpath=yes
12287    ;;
12288  freebsd3.[01]* | freebsdelf3.[01]*)
12289    shlibpath_overrides_runpath=yes
12290    hardcode_into_libs=yes
12291    ;;
12292  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12293  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12294    shlibpath_overrides_runpath=no
12295    hardcode_into_libs=yes
12296    ;;
12297  *) # from 4.6 on, and DragonFly
12298    shlibpath_overrides_runpath=yes
12299    hardcode_into_libs=yes
12300    ;;
12301  esac
12302  ;;
12303
12304haiku*)
12305  version_type=linux # correct to gnu/linux during the next big refactor
12306  need_lib_prefix=no
12307  need_version=no
12308  dynamic_linker="$host_os runtime_loader"
12309  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12310  soname_spec='$libname$release$shared_ext$major'
12311  shlibpath_var=LIBRARY_PATH
12312  shlibpath_overrides_runpath=no
12313  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12314  hardcode_into_libs=yes
12315  ;;
12316
12317hpux9* | hpux10* | hpux11*)
12318  # Give a soname corresponding to the major version so that dld.sl refuses to
12319  # link against other versions.
12320  version_type=sunos
12321  need_lib_prefix=no
12322  need_version=no
12323  case $host_cpu in
12324  ia64*)
12325    shrext_cmds='.so'
12326    hardcode_into_libs=yes
12327    dynamic_linker="$host_os dld.so"
12328    shlibpath_var=LD_LIBRARY_PATH
12329    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12330    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331    soname_spec='$libname$release$shared_ext$major'
12332    if test 32 = "$HPUX_IA64_MODE"; then
12333      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12334      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12335    else
12336      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12337      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12338    fi
12339    ;;
12340  hppa*64*)
12341    shrext_cmds='.sl'
12342    hardcode_into_libs=yes
12343    dynamic_linker="$host_os dld.sl"
12344    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12345    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12346    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12347    soname_spec='$libname$release$shared_ext$major'
12348    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12349    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12350    ;;
12351  *)
12352    shrext_cmds='.sl'
12353    dynamic_linker="$host_os dld.sl"
12354    shlibpath_var=SHLIB_PATH
12355    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12356    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12357    soname_spec='$libname$release$shared_ext$major'
12358    ;;
12359  esac
12360  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12361  postinstall_cmds='chmod 555 $lib'
12362  # or fails outright, so override atomically:
12363  install_override_mode=555
12364  ;;
12365
12366interix[3-9]*)
12367  version_type=linux # correct to gnu/linux during the next big refactor
12368  need_lib_prefix=no
12369  need_version=no
12370  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371  soname_spec='$libname$release$shared_ext$major'
12372  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12373  shlibpath_var=LD_LIBRARY_PATH
12374  shlibpath_overrides_runpath=no
12375  hardcode_into_libs=yes
12376  ;;
12377
12378irix5* | irix6* | nonstopux*)
12379  case $host_os in
12380    nonstopux*) version_type=nonstopux ;;
12381    *)
12382	if test yes = "$lt_cv_prog_gnu_ld"; then
12383		version_type=linux # correct to gnu/linux during the next big refactor
12384	else
12385		version_type=irix
12386	fi ;;
12387  esac
12388  need_lib_prefix=no
12389  need_version=no
12390  soname_spec='$libname$release$shared_ext$major'
12391  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12392  case $host_os in
12393  irix5* | nonstopux*)
12394    libsuff= shlibsuff=
12395    ;;
12396  *)
12397    case $LD in # libtool.m4 will add one of these switches to LD
12398    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12399      libsuff= shlibsuff= libmagic=32-bit;;
12400    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12401      libsuff=32 shlibsuff=N32 libmagic=N32;;
12402    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12403      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12404    *) libsuff= shlibsuff= libmagic=never-match;;
12405    esac
12406    ;;
12407  esac
12408  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12409  shlibpath_overrides_runpath=no
12410  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12411  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12412  hardcode_into_libs=yes
12413  ;;
12414
12415# No shared lib support for Linux oldld, aout, or coff.
12416linux*oldld* | linux*aout* | linux*coff*)
12417  dynamic_linker=no
12418  ;;
12419
12420linux*android*)
12421  version_type=none # Android doesn't support versioned libraries.
12422  need_lib_prefix=no
12423  need_version=no
12424  library_names_spec='$libname$release$shared_ext'
12425  soname_spec='$libname$release$shared_ext'
12426  finish_cmds=
12427  shlibpath_var=LD_LIBRARY_PATH
12428  shlibpath_overrides_runpath=yes
12429
12430  # This implies no fast_install, which is unacceptable.
12431  # Some rework will be needed to allow for fast_install
12432  # before this can be enabled.
12433  hardcode_into_libs=yes
12434
12435  dynamic_linker='Android linker'
12436  # Don't embed -rpath directories since the linker doesn't support them.
12437  hardcode_libdir_flag_spec='-L$libdir'
12438  ;;
12439
12440# This must be glibc/ELF.
12441linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12442  version_type=linux # correct to gnu/linux during the next big refactor
12443  need_lib_prefix=no
12444  need_version=no
12445  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12446  soname_spec='$libname$release$shared_ext$major'
12447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12448  shlibpath_var=LD_LIBRARY_PATH
12449  shlibpath_overrides_runpath=no
12450
12451  # Some binutils ld are patched to set DT_RUNPATH
12452  if test ${lt_cv_shlibpath_overrides_runpath+y}
12453then :
12454  printf %s "(cached) " >&6
12455else $as_nop
12456  lt_cv_shlibpath_overrides_runpath=no
12457    save_LDFLAGS=$LDFLAGS
12458    save_libdir=$libdir
12459    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12460	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12461    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h.  */
12463
12464int
12465main (void)
12466{
12467
12468  ;
12469  return 0;
12470}
12471_ACEOF
12472if ac_fn_c_try_link "$LINENO"
12473then :
12474  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12475then :
12476  lt_cv_shlibpath_overrides_runpath=yes
12477fi
12478fi
12479rm -f core conftest.err conftest.$ac_objext conftest.beam \
12480    conftest$ac_exeext conftest.$ac_ext
12481    LDFLAGS=$save_LDFLAGS
12482    libdir=$save_libdir
12483
12484fi
12485
12486  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12487
12488  # This implies no fast_install, which is unacceptable.
12489  # Some rework will be needed to allow for fast_install
12490  # before this can be enabled.
12491  hardcode_into_libs=yes
12492
12493  # Ideally, we could use ldconfig to report *all* directores which are
12494  # searched for libraries, however this is still not possible.  Aside from not
12495  # being certain /sbin/ldconfig is available, command
12496  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12497  # even though it is searched at run-time.  Try to do the best guess by
12498  # appending ld.so.conf contents (and includes) to the search path.
12499  if test -f /etc/ld.so.conf; then
12500    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' ' '`
12501    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12502  fi
12503
12504  # We used to test for /lib/ld.so.1 and disable shared libraries on
12505  # powerpc, because MkLinux only supported shared libraries with the
12506  # GNU dynamic linker.  Since this was broken with cross compilers,
12507  # most powerpc-linux boxes support dynamic linking these days and
12508  # people can always --disable-shared, the test was removed, and we
12509  # assume the GNU/Linux dynamic linker is in use.
12510  dynamic_linker='GNU/Linux ld.so'
12511  ;;
12512
12513netbsd*)
12514  version_type=sunos
12515  need_lib_prefix=no
12516  need_version=no
12517  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12518    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12519    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12520    dynamic_linker='NetBSD (a.out) ld.so'
12521  else
12522    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12523    soname_spec='$libname$release$shared_ext$major'
12524    dynamic_linker='NetBSD ld.elf_so'
12525  fi
12526  shlibpath_var=LD_LIBRARY_PATH
12527  shlibpath_overrides_runpath=yes
12528  hardcode_into_libs=yes
12529  ;;
12530
12531newsos6)
12532  version_type=linux # correct to gnu/linux during the next big refactor
12533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12534  shlibpath_var=LD_LIBRARY_PATH
12535  shlibpath_overrides_runpath=yes
12536  ;;
12537
12538*nto* | *qnx*)
12539  version_type=qnx
12540  need_lib_prefix=no
12541  need_version=no
12542  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543  soname_spec='$libname$release$shared_ext$major'
12544  shlibpath_var=LD_LIBRARY_PATH
12545  shlibpath_overrides_runpath=no
12546  hardcode_into_libs=yes
12547  dynamic_linker='ldqnx.so'
12548  ;;
12549
12550openbsd* | bitrig*)
12551  version_type=sunos
12552  sys_lib_dlsearch_path_spec=/usr/lib
12553  need_lib_prefix=no
12554  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12555    need_version=no
12556  else
12557    need_version=yes
12558  fi
12559  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12560  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12561  shlibpath_var=LD_LIBRARY_PATH
12562  shlibpath_overrides_runpath=yes
12563  ;;
12564
12565os2*)
12566  libname_spec='$name'
12567  version_type=windows
12568  shrext_cmds=.dll
12569  need_version=no
12570  need_lib_prefix=no
12571  # OS/2 can only load a DLL with a base name of 8 characters or less.
12572  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12573    v=$($ECHO $release$versuffix | tr -d .-);
12574    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12575    $ECHO $n$v`$shared_ext'
12576  library_names_spec='${libname}_dll.$libext'
12577  dynamic_linker='OS/2 ld.exe'
12578  shlibpath_var=BEGINLIBPATH
12579  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12580  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12581  postinstall_cmds='base_file=`basename \$file`~
12582    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12583    dldir=$destdir/`dirname \$dlpath`~
12584    test -d \$dldir || mkdir -p \$dldir~
12585    $install_prog $dir/$dlname \$dldir/$dlname~
12586    chmod a+x \$dldir/$dlname~
12587    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12588      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12589    fi'
12590  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12591    dlpath=$dir/\$dldll~
12592    $RM \$dlpath'
12593  ;;
12594
12595osf3* | osf4* | osf5*)
12596  version_type=osf
12597  need_lib_prefix=no
12598  need_version=no
12599  soname_spec='$libname$release$shared_ext$major'
12600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12601  shlibpath_var=LD_LIBRARY_PATH
12602  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12603  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12604  ;;
12605
12606rdos*)
12607  dynamic_linker=no
12608  ;;
12609
12610solaris*)
12611  version_type=linux # correct to gnu/linux during the next big refactor
12612  need_lib_prefix=no
12613  need_version=no
12614  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12615  soname_spec='$libname$release$shared_ext$major'
12616  shlibpath_var=LD_LIBRARY_PATH
12617  shlibpath_overrides_runpath=yes
12618  hardcode_into_libs=yes
12619  # ldd complains unless libraries are executable
12620  postinstall_cmds='chmod +x $lib'
12621  ;;
12622
12623sunos4*)
12624  version_type=sunos
12625  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12626  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12627  shlibpath_var=LD_LIBRARY_PATH
12628  shlibpath_overrides_runpath=yes
12629  if test yes = "$with_gnu_ld"; then
12630    need_lib_prefix=no
12631  fi
12632  need_version=yes
12633  ;;
12634
12635sysv4 | sysv4.3*)
12636  version_type=linux # correct to gnu/linux during the next big refactor
12637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12638  soname_spec='$libname$release$shared_ext$major'
12639  shlibpath_var=LD_LIBRARY_PATH
12640  case $host_vendor in
12641    sni)
12642      shlibpath_overrides_runpath=no
12643      need_lib_prefix=no
12644      runpath_var=LD_RUN_PATH
12645      ;;
12646    siemens)
12647      need_lib_prefix=no
12648      ;;
12649    motorola)
12650      need_lib_prefix=no
12651      need_version=no
12652      shlibpath_overrides_runpath=no
12653      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12654      ;;
12655  esac
12656  ;;
12657
12658sysv4*MP*)
12659  if test -d /usr/nec; then
12660    version_type=linux # correct to gnu/linux during the next big refactor
12661    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12662    soname_spec='$libname$shared_ext.$major'
12663    shlibpath_var=LD_LIBRARY_PATH
12664  fi
12665  ;;
12666
12667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12668  version_type=sco
12669  need_lib_prefix=no
12670  need_version=no
12671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12672  soname_spec='$libname$release$shared_ext$major'
12673  shlibpath_var=LD_LIBRARY_PATH
12674  shlibpath_overrides_runpath=yes
12675  hardcode_into_libs=yes
12676  if test yes = "$with_gnu_ld"; then
12677    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12678  else
12679    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12680    case $host_os in
12681      sco3.2v5*)
12682        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12683	;;
12684    esac
12685  fi
12686  sys_lib_dlsearch_path_spec='/usr/lib'
12687  ;;
12688
12689tpf*)
12690  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12691  version_type=linux # correct to gnu/linux during the next big refactor
12692  need_lib_prefix=no
12693  need_version=no
12694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12695  shlibpath_var=LD_LIBRARY_PATH
12696  shlibpath_overrides_runpath=no
12697  hardcode_into_libs=yes
12698  ;;
12699
12700uts4*)
12701  version_type=linux # correct to gnu/linux during the next big refactor
12702  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12703  soname_spec='$libname$release$shared_ext$major'
12704  shlibpath_var=LD_LIBRARY_PATH
12705  ;;
12706
12707*)
12708  dynamic_linker=no
12709  ;;
12710esac
12711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12712printf "%s\n" "$dynamic_linker" >&6; }
12713test no = "$dynamic_linker" && can_build_shared=no
12714
12715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12716if test yes = "$GCC"; then
12717  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12718fi
12719
12720if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12721  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12722fi
12723
12724if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12725  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12726fi
12727
12728# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12729configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12730
12731# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12732func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12733
12734# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12735configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12834printf %s "checking how to hardcode library paths into programs... " >&6; }
12835hardcode_action=
12836if test -n "$hardcode_libdir_flag_spec" ||
12837   test -n "$runpath_var" ||
12838   test yes = "$hardcode_automatic"; then
12839
12840  # We can hardcode non-existent directories.
12841  if test no != "$hardcode_direct" &&
12842     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12843     # have to relink, otherwise we might link with an installed library
12844     # when we should be linking with a yet-to-be-installed one
12845     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12846     test no != "$hardcode_minus_L"; then
12847    # Linking always hardcodes the temporary library directory.
12848    hardcode_action=relink
12849  else
12850    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12851    hardcode_action=immediate
12852  fi
12853else
12854  # We cannot hardcode anything, or else we can only hardcode existing
12855  # directories.
12856  hardcode_action=unsupported
12857fi
12858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12859printf "%s\n" "$hardcode_action" >&6; }
12860
12861if test relink = "$hardcode_action" ||
12862   test yes = "$inherit_rpath"; then
12863  # Fast installation is not supported
12864  enable_fast_install=no
12865elif test yes = "$shlibpath_overrides_runpath" ||
12866     test no = "$enable_shared"; then
12867  # Fast installation is not necessary
12868  enable_fast_install=needless
12869fi
12870
12871
12872
12873
12874
12875
12876  if test yes != "$enable_dlopen"; then
12877  enable_dlopen=unknown
12878  enable_dlopen_self=unknown
12879  enable_dlopen_self_static=unknown
12880else
12881  lt_cv_dlopen=no
12882  lt_cv_dlopen_libs=
12883
12884  case $host_os in
12885  beos*)
12886    lt_cv_dlopen=load_add_on
12887    lt_cv_dlopen_libs=
12888    lt_cv_dlopen_self=yes
12889    ;;
12890
12891  mingw* | pw32* | cegcc*)
12892    lt_cv_dlopen=LoadLibrary
12893    lt_cv_dlopen_libs=
12894    ;;
12895
12896  cygwin*)
12897    lt_cv_dlopen=dlopen
12898    lt_cv_dlopen_libs=
12899    ;;
12900
12901  darwin*)
12902    # if libdl is installed we need to link against it
12903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12904printf %s "checking for dlopen in -ldl... " >&6; }
12905if test ${ac_cv_lib_dl_dlopen+y}
12906then :
12907  printf %s "(cached) " >&6
12908else $as_nop
12909  ac_check_lib_save_LIBS=$LIBS
12910LIBS="-ldl  $LIBS"
12911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h.  */
12913
12914/* Override any GCC internal prototype to avoid an error.
12915   Use char because int might match the return type of a GCC
12916   builtin and then its argument prototype would still apply.  */
12917char dlopen ();
12918int
12919main (void)
12920{
12921return dlopen ();
12922  ;
12923  return 0;
12924}
12925_ACEOF
12926if ac_fn_c_try_link "$LINENO"
12927then :
12928  ac_cv_lib_dl_dlopen=yes
12929else $as_nop
12930  ac_cv_lib_dl_dlopen=no
12931fi
12932rm -f core conftest.err conftest.$ac_objext conftest.beam \
12933    conftest$ac_exeext conftest.$ac_ext
12934LIBS=$ac_check_lib_save_LIBS
12935fi
12936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12937printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12938if test "x$ac_cv_lib_dl_dlopen" = xyes
12939then :
12940  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12941else $as_nop
12942
12943    lt_cv_dlopen=dyld
12944    lt_cv_dlopen_libs=
12945    lt_cv_dlopen_self=yes
12946
12947fi
12948
12949    ;;
12950
12951  tpf*)
12952    # Don't try to run any link tests for TPF.  We know it's impossible
12953    # because TPF is a cross-compiler, and we know how we open DSOs.
12954    lt_cv_dlopen=dlopen
12955    lt_cv_dlopen_libs=
12956    lt_cv_dlopen_self=no
12957    ;;
12958
12959  *)
12960    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12961if test "x$ac_cv_func_shl_load" = xyes
12962then :
12963  lt_cv_dlopen=shl_load
12964else $as_nop
12965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12966printf %s "checking for shl_load in -ldld... " >&6; }
12967if test ${ac_cv_lib_dld_shl_load+y}
12968then :
12969  printf %s "(cached) " >&6
12970else $as_nop
12971  ac_check_lib_save_LIBS=$LIBS
12972LIBS="-ldld  $LIBS"
12973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974/* end confdefs.h.  */
12975
12976/* Override any GCC internal prototype to avoid an error.
12977   Use char because int might match the return type of a GCC
12978   builtin and then its argument prototype would still apply.  */
12979char shl_load ();
12980int
12981main (void)
12982{
12983return shl_load ();
12984  ;
12985  return 0;
12986}
12987_ACEOF
12988if ac_fn_c_try_link "$LINENO"
12989then :
12990  ac_cv_lib_dld_shl_load=yes
12991else $as_nop
12992  ac_cv_lib_dld_shl_load=no
12993fi
12994rm -f core conftest.err conftest.$ac_objext conftest.beam \
12995    conftest$ac_exeext conftest.$ac_ext
12996LIBS=$ac_check_lib_save_LIBS
12997fi
12998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12999printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13000if test "x$ac_cv_lib_dld_shl_load" = xyes
13001then :
13002  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13003else $as_nop
13004  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13005if test "x$ac_cv_func_dlopen" = xyes
13006then :
13007  lt_cv_dlopen=dlopen
13008else $as_nop
13009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13010printf %s "checking for dlopen in -ldl... " >&6; }
13011if test ${ac_cv_lib_dl_dlopen+y}
13012then :
13013  printf %s "(cached) " >&6
13014else $as_nop
13015  ac_check_lib_save_LIBS=$LIBS
13016LIBS="-ldl  $LIBS"
13017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018/* end confdefs.h.  */
13019
13020/* Override any GCC internal prototype to avoid an error.
13021   Use char because int might match the return type of a GCC
13022   builtin and then its argument prototype would still apply.  */
13023char dlopen ();
13024int
13025main (void)
13026{
13027return dlopen ();
13028  ;
13029  return 0;
13030}
13031_ACEOF
13032if ac_fn_c_try_link "$LINENO"
13033then :
13034  ac_cv_lib_dl_dlopen=yes
13035else $as_nop
13036  ac_cv_lib_dl_dlopen=no
13037fi
13038rm -f core conftest.err conftest.$ac_objext conftest.beam \
13039    conftest$ac_exeext conftest.$ac_ext
13040LIBS=$ac_check_lib_save_LIBS
13041fi
13042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13043printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13044if test "x$ac_cv_lib_dl_dlopen" = xyes
13045then :
13046  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13047else $as_nop
13048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13049printf %s "checking for dlopen in -lsvld... " >&6; }
13050if test ${ac_cv_lib_svld_dlopen+y}
13051then :
13052  printf %s "(cached) " >&6
13053else $as_nop
13054  ac_check_lib_save_LIBS=$LIBS
13055LIBS="-lsvld  $LIBS"
13056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057/* end confdefs.h.  */
13058
13059/* Override any GCC internal prototype to avoid an error.
13060   Use char because int might match the return type of a GCC
13061   builtin and then its argument prototype would still apply.  */
13062char dlopen ();
13063int
13064main (void)
13065{
13066return dlopen ();
13067  ;
13068  return 0;
13069}
13070_ACEOF
13071if ac_fn_c_try_link "$LINENO"
13072then :
13073  ac_cv_lib_svld_dlopen=yes
13074else $as_nop
13075  ac_cv_lib_svld_dlopen=no
13076fi
13077rm -f core conftest.err conftest.$ac_objext conftest.beam \
13078    conftest$ac_exeext conftest.$ac_ext
13079LIBS=$ac_check_lib_save_LIBS
13080fi
13081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13082printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13083if test "x$ac_cv_lib_svld_dlopen" = xyes
13084then :
13085  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13086else $as_nop
13087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13088printf %s "checking for dld_link in -ldld... " >&6; }
13089if test ${ac_cv_lib_dld_dld_link+y}
13090then :
13091  printf %s "(cached) " >&6
13092else $as_nop
13093  ac_check_lib_save_LIBS=$LIBS
13094LIBS="-ldld  $LIBS"
13095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096/* end confdefs.h.  */
13097
13098/* Override any GCC internal prototype to avoid an error.
13099   Use char because int might match the return type of a GCC
13100   builtin and then its argument prototype would still apply.  */
13101char dld_link ();
13102int
13103main (void)
13104{
13105return dld_link ();
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110if ac_fn_c_try_link "$LINENO"
13111then :
13112  ac_cv_lib_dld_dld_link=yes
13113else $as_nop
13114  ac_cv_lib_dld_dld_link=no
13115fi
13116rm -f core conftest.err conftest.$ac_objext conftest.beam \
13117    conftest$ac_exeext conftest.$ac_ext
13118LIBS=$ac_check_lib_save_LIBS
13119fi
13120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13121printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13122if test "x$ac_cv_lib_dld_dld_link" = xyes
13123then :
13124  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13125fi
13126
13127
13128fi
13129
13130
13131fi
13132
13133
13134fi
13135
13136
13137fi
13138
13139
13140fi
13141
13142    ;;
13143  esac
13144
13145  if test no = "$lt_cv_dlopen"; then
13146    enable_dlopen=no
13147  else
13148    enable_dlopen=yes
13149  fi
13150
13151  case $lt_cv_dlopen in
13152  dlopen)
13153    save_CPPFLAGS=$CPPFLAGS
13154    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13155
13156    save_LDFLAGS=$LDFLAGS
13157    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13158
13159    save_LIBS=$LIBS
13160    LIBS="$lt_cv_dlopen_libs $LIBS"
13161
13162    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13163printf %s "checking whether a program can dlopen itself... " >&6; }
13164if test ${lt_cv_dlopen_self+y}
13165then :
13166  printf %s "(cached) " >&6
13167else $as_nop
13168  	  if test yes = "$cross_compiling"; then :
13169  lt_cv_dlopen_self=cross
13170else
13171  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13172  lt_status=$lt_dlunknown
13173  cat > conftest.$ac_ext <<_LT_EOF
13174#line $LINENO "configure"
13175#include "confdefs.h"
13176
13177#if HAVE_DLFCN_H
13178#include <dlfcn.h>
13179#endif
13180
13181#include <stdio.h>
13182
13183#ifdef RTLD_GLOBAL
13184#  define LT_DLGLOBAL		RTLD_GLOBAL
13185#else
13186#  ifdef DL_GLOBAL
13187#    define LT_DLGLOBAL		DL_GLOBAL
13188#  else
13189#    define LT_DLGLOBAL		0
13190#  endif
13191#endif
13192
13193/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13194   find out it does not work in some platform. */
13195#ifndef LT_DLLAZY_OR_NOW
13196#  ifdef RTLD_LAZY
13197#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13198#  else
13199#    ifdef DL_LAZY
13200#      define LT_DLLAZY_OR_NOW		DL_LAZY
13201#    else
13202#      ifdef RTLD_NOW
13203#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13204#      else
13205#        ifdef DL_NOW
13206#          define LT_DLLAZY_OR_NOW	DL_NOW
13207#        else
13208#          define LT_DLLAZY_OR_NOW	0
13209#        endif
13210#      endif
13211#    endif
13212#  endif
13213#endif
13214
13215/* When -fvisibility=hidden is used, assume the code has been annotated
13216   correspondingly for the symbols needed.  */
13217#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13218int fnord () __attribute__((visibility("default")));
13219#endif
13220
13221int fnord () { return 42; }
13222int main ()
13223{
13224  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13225  int status = $lt_dlunknown;
13226
13227  if (self)
13228    {
13229      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13230      else
13231        {
13232	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13233          else puts (dlerror ());
13234	}
13235      /* dlclose (self); */
13236    }
13237  else
13238    puts (dlerror ());
13239
13240  return status;
13241}
13242_LT_EOF
13243  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13244  (eval $ac_link) 2>&5
13245  ac_status=$?
13246  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13247  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13248    (./conftest; exit; ) >&5 2>/dev/null
13249    lt_status=$?
13250    case x$lt_status in
13251      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13252      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13253      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13254    esac
13255  else :
13256    # compilation failed
13257    lt_cv_dlopen_self=no
13258  fi
13259fi
13260rm -fr conftest*
13261
13262
13263fi
13264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13265printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13266
13267    if test yes = "$lt_cv_dlopen_self"; then
13268      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13269      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13270printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13271if test ${lt_cv_dlopen_self_static+y}
13272then :
13273  printf %s "(cached) " >&6
13274else $as_nop
13275  	  if test yes = "$cross_compiling"; then :
13276  lt_cv_dlopen_self_static=cross
13277else
13278  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13279  lt_status=$lt_dlunknown
13280  cat > conftest.$ac_ext <<_LT_EOF
13281#line $LINENO "configure"
13282#include "confdefs.h"
13283
13284#if HAVE_DLFCN_H
13285#include <dlfcn.h>
13286#endif
13287
13288#include <stdio.h>
13289
13290#ifdef RTLD_GLOBAL
13291#  define LT_DLGLOBAL		RTLD_GLOBAL
13292#else
13293#  ifdef DL_GLOBAL
13294#    define LT_DLGLOBAL		DL_GLOBAL
13295#  else
13296#    define LT_DLGLOBAL		0
13297#  endif
13298#endif
13299
13300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13301   find out it does not work in some platform. */
13302#ifndef LT_DLLAZY_OR_NOW
13303#  ifdef RTLD_LAZY
13304#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13305#  else
13306#    ifdef DL_LAZY
13307#      define LT_DLLAZY_OR_NOW		DL_LAZY
13308#    else
13309#      ifdef RTLD_NOW
13310#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13311#      else
13312#        ifdef DL_NOW
13313#          define LT_DLLAZY_OR_NOW	DL_NOW
13314#        else
13315#          define LT_DLLAZY_OR_NOW	0
13316#        endif
13317#      endif
13318#    endif
13319#  endif
13320#endif
13321
13322/* When -fvisibility=hidden is used, assume the code has been annotated
13323   correspondingly for the symbols needed.  */
13324#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13325int fnord () __attribute__((visibility("default")));
13326#endif
13327
13328int fnord () { return 42; }
13329int main ()
13330{
13331  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13332  int status = $lt_dlunknown;
13333
13334  if (self)
13335    {
13336      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13337      else
13338        {
13339	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13340          else puts (dlerror ());
13341	}
13342      /* dlclose (self); */
13343    }
13344  else
13345    puts (dlerror ());
13346
13347  return status;
13348}
13349_LT_EOF
13350  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13351  (eval $ac_link) 2>&5
13352  ac_status=$?
13353  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13354  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13355    (./conftest; exit; ) >&5 2>/dev/null
13356    lt_status=$?
13357    case x$lt_status in
13358      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13359      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13360      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13361    esac
13362  else :
13363    # compilation failed
13364    lt_cv_dlopen_self_static=no
13365  fi
13366fi
13367rm -fr conftest*
13368
13369
13370fi
13371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13372printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13373    fi
13374
13375    CPPFLAGS=$save_CPPFLAGS
13376    LDFLAGS=$save_LDFLAGS
13377    LIBS=$save_LIBS
13378    ;;
13379  esac
13380
13381  case $lt_cv_dlopen_self in
13382  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13383  *) enable_dlopen_self=unknown ;;
13384  esac
13385
13386  case $lt_cv_dlopen_self_static in
13387  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13388  *) enable_dlopen_self_static=unknown ;;
13389  esac
13390fi
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408striplib=
13409old_striplib=
13410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13411printf %s "checking whether stripping libraries is possible... " >&6; }
13412if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13413  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13414  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416printf "%s\n" "yes" >&6; }
13417else
13418# FIXME - insert some real tests, host_os isn't really good enough
13419  case $host_os in
13420  darwin*)
13421    if test -n "$STRIP"; then
13422      striplib="$STRIP -x"
13423      old_striplib="$STRIP -S"
13424      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13425printf "%s\n" "yes" >&6; }
13426    else
13427      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428printf "%s\n" "no" >&6; }
13429    fi
13430    ;;
13431  *)
13432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433printf "%s\n" "no" >&6; }
13434    ;;
13435  esac
13436fi
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449  # Report what library types will actually be built
13450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13451printf %s "checking if libtool supports shared libraries... " >&6; }
13452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13453printf "%s\n" "$can_build_shared" >&6; }
13454
13455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13456printf %s "checking whether to build shared libraries... " >&6; }
13457  test no = "$can_build_shared" && enable_shared=no
13458
13459  # On AIX, shared libraries and static libraries use the same namespace, and
13460  # are all built from PIC.
13461  case $host_os in
13462  aix3*)
13463    test yes = "$enable_shared" && enable_static=no
13464    if test -n "$RANLIB"; then
13465      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13466      postinstall_cmds='$RANLIB $lib'
13467    fi
13468    ;;
13469
13470  aix[4-9]*)
13471    if test ia64 != "$host_cpu"; then
13472      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13473      yes,aix,yes) ;;			# shared object as lib.so file only
13474      yes,svr4,*) ;;			# shared object as lib.so archive member only
13475      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13476      esac
13477    fi
13478    ;;
13479  esac
13480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13481printf "%s\n" "$enable_shared" >&6; }
13482
13483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13484printf %s "checking whether to build static libraries... " >&6; }
13485  # Make sure either enable_shared or enable_static is yes.
13486  test yes = "$enable_shared" || enable_static=yes
13487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13488printf "%s\n" "$enable_static" >&6; }
13489
13490
13491
13492
13493fi
13494ac_ext=c
13495ac_cpp='$CPP $CPPFLAGS'
13496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13498ac_compiler_gnu=$ac_cv_c_compiler_gnu
13499
13500CC=$lt_save_CC
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516        ac_config_commands="$ac_config_commands libtool"
13517
13518
13519
13520
13521# Only expand once:
13522
13523
13524
13525
13526
13527
13528
13529ac_ext=c
13530ac_cpp='$CPP $CPPFLAGS'
13531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13533ac_compiler_gnu=$ac_cv_c_compiler_gnu
13534
13535
13536
13537if test "$GCC" = yes
13538then :
13539
13540
13541
13542
13543for flag in -Wall -Wextra; do
13544  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13546printf %s "checking whether C compiler accepts $flag... " >&6; }
13547if eval test \${$as_CACHEVAR+y}
13548then :
13549  printf %s "(cached) " >&6
13550else $as_nop
13551
13552  ax_check_save_flags=$CFLAGS
13553  CFLAGS="$CFLAGS  -Werror $flag"
13554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555/* end confdefs.h.  */
13556int main(void) { return 0; }
13557_ACEOF
13558if ac_fn_c_try_compile "$LINENO"
13559then :
13560  eval "$as_CACHEVAR=yes"
13561else $as_nop
13562  eval "$as_CACHEVAR=no"
13563fi
13564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13565  CFLAGS=$ax_check_save_flags
13566fi
13567eval ac_res=\$$as_CACHEVAR
13568	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13569printf "%s\n" "$ac_res" >&6; }
13570if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13571then :
13572
13573if test ${AM_CFLAGS+y}
13574then :
13575
13576  case " $AM_CFLAGS " in #(
13577  *" $flag "*) :
13578    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13579  (: AM_CFLAGS already contains $flag) 2>&5
13580  ac_status=$?
13581  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13582  test $ac_status = 0; } ;; #(
13583  *) :
13584
13585     as_fn_append AM_CFLAGS " $flag"
13586     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13587  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13588  ac_status=$?
13589  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13590  test $ac_status = 0; }
13591     ;;
13592esac
13593
13594else $as_nop
13595
13596  AM_CFLAGS=$flag
13597  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13598  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13599  ac_status=$?
13600  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13601  test $ac_status = 0; }
13602
13603fi
13604
13605else $as_nop
13606  :
13607fi
13608
13609done
13610
13611
13612
13613
13614
13615for flag in -fexceptions; do
13616  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13618printf %s "checking whether C compiler accepts $flag... " >&6; }
13619if eval test \${$as_CACHEVAR+y}
13620then :
13621  printf %s "(cached) " >&6
13622else $as_nop
13623
13624  ax_check_save_flags=$CFLAGS
13625  CFLAGS="$CFLAGS  -Werror $flag"
13626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627/* end confdefs.h.  */
13628int main(void) { return 0; }
13629_ACEOF
13630if ac_fn_c_try_compile "$LINENO"
13631then :
13632  eval "$as_CACHEVAR=yes"
13633else $as_nop
13634  eval "$as_CACHEVAR=no"
13635fi
13636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13637  CFLAGS=$ax_check_save_flags
13638fi
13639eval ac_res=\$$as_CACHEVAR
13640	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13641printf "%s\n" "$ac_res" >&6; }
13642if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13643then :
13644
13645if test ${AM_CFLAGS+y}
13646then :
13647
13648  case " $AM_CFLAGS " in #(
13649  *" $flag "*) :
13650    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13651  (: AM_CFLAGS already contains $flag) 2>&5
13652  ac_status=$?
13653  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654  test $ac_status = 0; } ;; #(
13655  *) :
13656
13657     as_fn_append AM_CFLAGS " $flag"
13658     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13659  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13660  ac_status=$?
13661  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13662  test $ac_status = 0; }
13663     ;;
13664esac
13665
13666else $as_nop
13667
13668  AM_CFLAGS=$flag
13669  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13670  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13671  ac_status=$?
13672  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13673  test $ac_status = 0; }
13674
13675fi
13676
13677else $as_nop
13678  :
13679fi
13680
13681done
13682
13683
13684
13685
13686
13687for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
13688  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13690printf %s "checking whether C compiler accepts $flag... " >&6; }
13691if eval test \${$as_CACHEVAR+y}
13692then :
13693  printf %s "(cached) " >&6
13694else $as_nop
13695
13696  ax_check_save_flags=$CFLAGS
13697  CFLAGS="$CFLAGS  -Werror $flag"
13698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699/* end confdefs.h.  */
13700int main(void) { return 0; }
13701_ACEOF
13702if ac_fn_c_try_compile "$LINENO"
13703then :
13704  eval "$as_CACHEVAR=yes"
13705else $as_nop
13706  eval "$as_CACHEVAR=no"
13707fi
13708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13709  CFLAGS=$ax_check_save_flags
13710fi
13711eval ac_res=\$$as_CACHEVAR
13712	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13713printf "%s\n" "$ac_res" >&6; }
13714if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13715then :
13716
13717if test ${AM_CFLAGS+y}
13718then :
13719
13720  case " $AM_CFLAGS " in #(
13721  *" $flag "*) :
13722    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13723  (: AM_CFLAGS already contains $flag) 2>&5
13724  ac_status=$?
13725  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726  test $ac_status = 0; } ;; #(
13727  *) :
13728
13729     as_fn_append AM_CFLAGS " $flag"
13730     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13731  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13732  ac_status=$?
13733  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734  test $ac_status = 0; }
13735     ;;
13736esac
13737
13738else $as_nop
13739
13740  AM_CFLAGS=$flag
13741  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13742  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13743  ac_status=$?
13744  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745  test $ac_status = 0; }
13746
13747fi
13748
13749else $as_nop
13750  :
13751fi
13752
13753done
13754
13755
13756
13757
13758
13759for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
13760  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13762printf %s "checking whether C compiler accepts $flag... " >&6; }
13763if eval test \${$as_CACHEVAR+y}
13764then :
13765  printf %s "(cached) " >&6
13766else $as_nop
13767
13768  ax_check_save_flags=$CFLAGS
13769  CFLAGS="$CFLAGS  -Werror $flag"
13770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772int main(void) { return 0; }
13773_ACEOF
13774if ac_fn_c_try_compile "$LINENO"
13775then :
13776  eval "$as_CACHEVAR=yes"
13777else $as_nop
13778  eval "$as_CACHEVAR=no"
13779fi
13780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13781  CFLAGS=$ax_check_save_flags
13782fi
13783eval ac_res=\$$as_CACHEVAR
13784	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13785printf "%s\n" "$ac_res" >&6; }
13786if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13787then :
13788
13789if test ${AM_CFLAGS+y}
13790then :
13791
13792  case " $AM_CFLAGS " in #(
13793  *" $flag "*) :
13794    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13795  (: AM_CFLAGS already contains $flag) 2>&5
13796  ac_status=$?
13797  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13798  test $ac_status = 0; } ;; #(
13799  *) :
13800
13801     as_fn_append AM_CFLAGS " $flag"
13802     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13803  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13804  ac_status=$?
13805  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13806  test $ac_status = 0; }
13807     ;;
13808esac
13809
13810else $as_nop
13811
13812  AM_CFLAGS=$flag
13813  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13814  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13815  ac_status=$?
13816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817  test $ac_status = 0; }
13818
13819fi
13820
13821else $as_nop
13822  :
13823fi
13824
13825done
13826
13827
13828
13829
13830
13831for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
13832  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13834printf %s "checking whether C compiler accepts $flag... " >&6; }
13835if eval test \${$as_CACHEVAR+y}
13836then :
13837  printf %s "(cached) " >&6
13838else $as_nop
13839
13840  ax_check_save_flags=$CFLAGS
13841  CFLAGS="$CFLAGS  -Werror $flag"
13842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843/* end confdefs.h.  */
13844int main(void) { return 0; }
13845_ACEOF
13846if ac_fn_c_try_compile "$LINENO"
13847then :
13848  eval "$as_CACHEVAR=yes"
13849else $as_nop
13850  eval "$as_CACHEVAR=no"
13851fi
13852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13853  CFLAGS=$ax_check_save_flags
13854fi
13855eval ac_res=\$$as_CACHEVAR
13856	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13857printf "%s\n" "$ac_res" >&6; }
13858if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13859then :
13860
13861if test ${AM_CFLAGS+y}
13862then :
13863
13864  case " $AM_CFLAGS " in #(
13865  *" $flag "*) :
13866    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13867  (: AM_CFLAGS already contains $flag) 2>&5
13868  ac_status=$?
13869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13870  test $ac_status = 0; } ;; #(
13871  *) :
13872
13873     as_fn_append AM_CFLAGS " $flag"
13874     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13875  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13876  ac_status=$?
13877  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13878  test $ac_status = 0; }
13879     ;;
13880esac
13881
13882else $as_nop
13883
13884  AM_CFLAGS=$flag
13885  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13886  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13887  ac_status=$?
13888  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13889  test $ac_status = 0; }
13890
13891fi
13892
13893else $as_nop
13894  :
13895fi
13896
13897done
13898
13899
13900
13901
13902
13903for flag in -Wshadow -Wformat=2 -Wmisleading-indentation; do
13904  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13906printf %s "checking whether C compiler accepts $flag... " >&6; }
13907if eval test \${$as_CACHEVAR+y}
13908then :
13909  printf %s "(cached) " >&6
13910else $as_nop
13911
13912  ax_check_save_flags=$CFLAGS
13913  CFLAGS="$CFLAGS  -Werror $flag"
13914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915/* end confdefs.h.  */
13916int main(void) { return 0; }
13917_ACEOF
13918if ac_fn_c_try_compile "$LINENO"
13919then :
13920  eval "$as_CACHEVAR=yes"
13921else $as_nop
13922  eval "$as_CACHEVAR=no"
13923fi
13924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13925  CFLAGS=$ax_check_save_flags
13926fi
13927eval ac_res=\$$as_CACHEVAR
13928	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13929printf "%s\n" "$ac_res" >&6; }
13930if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13931then :
13932
13933if test ${AM_CFLAGS+y}
13934then :
13935
13936  case " $AM_CFLAGS " in #(
13937  *" $flag "*) :
13938    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
13939  (: AM_CFLAGS already contains $flag) 2>&5
13940  ac_status=$?
13941  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13942  test $ac_status = 0; } ;; #(
13943  *) :
13944
13945     as_fn_append AM_CFLAGS " $flag"
13946     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13947  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13948  ac_status=$?
13949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13950  test $ac_status = 0; }
13951     ;;
13952esac
13953
13954else $as_nop
13955
13956  AM_CFLAGS=$flag
13957  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
13958  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
13959  ac_status=$?
13960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961  test $ac_status = 0; }
13962
13963fi
13964
13965else $as_nop
13966  :
13967fi
13968
13969done
13970
13971fi
13972
13973ac_ext=cpp
13974ac_cpp='$CXXCPP $CPPFLAGS'
13975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13978
13979
13980
13981
13982
13983
13984
13985ac_ext=cpp
13986ac_cpp='$CXXCPP $CPPFLAGS'
13987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13990if test -z "$CXX"; then
13991  if test -n "$CCC"; then
13992    CXX=$CCC
13993  else
13994    if test -n "$ac_tool_prefix"; then
13995  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
13996  do
13997    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14000printf %s "checking for $ac_word... " >&6; }
14001if test ${ac_cv_prog_CXX+y}
14002then :
14003  printf %s "(cached) " >&6
14004else $as_nop
14005  if test -n "$CXX"; then
14006  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14007else
14008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009for as_dir in $PATH
14010do
14011  IFS=$as_save_IFS
14012  case $as_dir in #(((
14013    '') as_dir=./ ;;
14014    */) ;;
14015    *) as_dir=$as_dir/ ;;
14016  esac
14017    for ac_exec_ext in '' $ac_executable_extensions; do
14018  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14019    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14020    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14021    break 2
14022  fi
14023done
14024  done
14025IFS=$as_save_IFS
14026
14027fi
14028fi
14029CXX=$ac_cv_prog_CXX
14030if test -n "$CXX"; then
14031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14032printf "%s\n" "$CXX" >&6; }
14033else
14034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035printf "%s\n" "no" >&6; }
14036fi
14037
14038
14039    test -n "$CXX" && break
14040  done
14041fi
14042if test -z "$CXX"; then
14043  ac_ct_CXX=$CXX
14044  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14045do
14046  # Extract the first word of "$ac_prog", so it can be a program name with args.
14047set dummy $ac_prog; ac_word=$2
14048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14049printf %s "checking for $ac_word... " >&6; }
14050if test ${ac_cv_prog_ac_ct_CXX+y}
14051then :
14052  printf %s "(cached) " >&6
14053else $as_nop
14054  if test -n "$ac_ct_CXX"; then
14055  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14056else
14057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058for as_dir in $PATH
14059do
14060  IFS=$as_save_IFS
14061  case $as_dir in #(((
14062    '') as_dir=./ ;;
14063    */) ;;
14064    *) as_dir=$as_dir/ ;;
14065  esac
14066    for ac_exec_ext in '' $ac_executable_extensions; do
14067  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14068    ac_cv_prog_ac_ct_CXX="$ac_prog"
14069    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14070    break 2
14071  fi
14072done
14073  done
14074IFS=$as_save_IFS
14075
14076fi
14077fi
14078ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14079if test -n "$ac_ct_CXX"; then
14080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14081printf "%s\n" "$ac_ct_CXX" >&6; }
14082else
14083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084printf "%s\n" "no" >&6; }
14085fi
14086
14087
14088  test -n "$ac_ct_CXX" && break
14089done
14090
14091  if test "x$ac_ct_CXX" = x; then
14092    CXX="g++"
14093  else
14094    case $cross_compiling:$ac_tool_warned in
14095yes:)
14096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14097printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14098ac_tool_warned=yes ;;
14099esac
14100    CXX=$ac_ct_CXX
14101  fi
14102fi
14103
14104  fi
14105fi
14106# Provide some information about the compiler.
14107printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14108set X $ac_compile
14109ac_compiler=$2
14110for ac_option in --version -v -V -qversion; do
14111  { { ac_try="$ac_compiler $ac_option >&5"
14112case "(($ac_try" in
14113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114  *) ac_try_echo=$ac_try;;
14115esac
14116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14117printf "%s\n" "$ac_try_echo"; } >&5
14118  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14119  ac_status=$?
14120  if test -s conftest.err; then
14121    sed '10a\
14122... rest of stderr output deleted ...
14123         10q' conftest.err >conftest.er1
14124    cat conftest.er1 >&5
14125  fi
14126  rm -f conftest.er1 conftest.err
14127  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128  test $ac_status = 0; }
14129done
14130
14131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14132printf %s "checking whether the compiler supports GNU C++... " >&6; }
14133if test ${ac_cv_cxx_compiler_gnu+y}
14134then :
14135  printf %s "(cached) " >&6
14136else $as_nop
14137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138/* end confdefs.h.  */
14139
14140int
14141main (void)
14142{
14143#ifndef __GNUC__
14144       choke me
14145#endif
14146
14147  ;
14148  return 0;
14149}
14150_ACEOF
14151if ac_fn_cxx_try_compile "$LINENO"
14152then :
14153  ac_compiler_gnu=yes
14154else $as_nop
14155  ac_compiler_gnu=no
14156fi
14157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14158ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14159
14160fi
14161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14162printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14164
14165if test $ac_compiler_gnu = yes; then
14166  GXX=yes
14167else
14168  GXX=
14169fi
14170ac_test_CXXFLAGS=${CXXFLAGS+y}
14171ac_save_CXXFLAGS=$CXXFLAGS
14172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14173printf %s "checking whether $CXX accepts -g... " >&6; }
14174if test ${ac_cv_prog_cxx_g+y}
14175then :
14176  printf %s "(cached) " >&6
14177else $as_nop
14178  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14179   ac_cxx_werror_flag=yes
14180   ac_cv_prog_cxx_g=no
14181   CXXFLAGS="-g"
14182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183/* end confdefs.h.  */
14184
14185int
14186main (void)
14187{
14188
14189  ;
14190  return 0;
14191}
14192_ACEOF
14193if ac_fn_cxx_try_compile "$LINENO"
14194then :
14195  ac_cv_prog_cxx_g=yes
14196else $as_nop
14197  CXXFLAGS=""
14198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200
14201int
14202main (void)
14203{
14204
14205  ;
14206  return 0;
14207}
14208_ACEOF
14209if ac_fn_cxx_try_compile "$LINENO"
14210then :
14211
14212else $as_nop
14213  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14214	 CXXFLAGS="-g"
14215	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h.  */
14217
14218int
14219main (void)
14220{
14221
14222  ;
14223  return 0;
14224}
14225_ACEOF
14226if ac_fn_cxx_try_compile "$LINENO"
14227then :
14228  ac_cv_prog_cxx_g=yes
14229fi
14230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14233fi
14234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14235   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14236fi
14237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14238printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14239if test $ac_test_CXXFLAGS; then
14240  CXXFLAGS=$ac_save_CXXFLAGS
14241elif test $ac_cv_prog_cxx_g = yes; then
14242  if test "$GXX" = yes; then
14243    CXXFLAGS="-g -O2"
14244  else
14245    CXXFLAGS="-g"
14246  fi
14247else
14248  if test "$GXX" = yes; then
14249    CXXFLAGS="-O2"
14250  else
14251    CXXFLAGS=
14252  fi
14253fi
14254ac_prog_cxx_stdcxx=no
14255if test x$ac_prog_cxx_stdcxx = xno
14256then :
14257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14258printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14259if test ${ac_cv_prog_cxx_11+y}
14260then :
14261  printf %s "(cached) " >&6
14262else $as_nop
14263  ac_cv_prog_cxx_11=no
14264ac_save_CXX=$CXX
14265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266/* end confdefs.h.  */
14267$ac_cxx_conftest_cxx11_program
14268_ACEOF
14269for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14270do
14271  CXX="$ac_save_CXX $ac_arg"
14272  if ac_fn_cxx_try_compile "$LINENO"
14273then :
14274  ac_cv_prog_cxx_cxx11=$ac_arg
14275fi
14276rm -f core conftest.err conftest.$ac_objext conftest.beam
14277  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14278done
14279rm -f conftest.$ac_ext
14280CXX=$ac_save_CXX
14281fi
14282
14283if test "x$ac_cv_prog_cxx_cxx11" = xno
14284then :
14285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14286printf "%s\n" "unsupported" >&6; }
14287else $as_nop
14288  if test "x$ac_cv_prog_cxx_cxx11" = x
14289then :
14290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14291printf "%s\n" "none needed" >&6; }
14292else $as_nop
14293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14294printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14295     CXX="$CXX $ac_cv_prog_cxx_cxx11"
14296fi
14297  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14298  ac_prog_cxx_stdcxx=cxx11
14299fi
14300fi
14301if test x$ac_prog_cxx_stdcxx = xno
14302then :
14303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14304printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14305if test ${ac_cv_prog_cxx_98+y}
14306then :
14307  printf %s "(cached) " >&6
14308else $as_nop
14309  ac_cv_prog_cxx_98=no
14310ac_save_CXX=$CXX
14311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312/* end confdefs.h.  */
14313$ac_cxx_conftest_cxx98_program
14314_ACEOF
14315for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14316do
14317  CXX="$ac_save_CXX $ac_arg"
14318  if ac_fn_cxx_try_compile "$LINENO"
14319then :
14320  ac_cv_prog_cxx_cxx98=$ac_arg
14321fi
14322rm -f core conftest.err conftest.$ac_objext conftest.beam
14323  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14324done
14325rm -f conftest.$ac_ext
14326CXX=$ac_save_CXX
14327fi
14328
14329if test "x$ac_cv_prog_cxx_cxx98" = xno
14330then :
14331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14332printf "%s\n" "unsupported" >&6; }
14333else $as_nop
14334  if test "x$ac_cv_prog_cxx_cxx98" = x
14335then :
14336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14337printf "%s\n" "none needed" >&6; }
14338else $as_nop
14339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14340printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14341     CXX="$CXX $ac_cv_prog_cxx_cxx98"
14342fi
14343  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14344  ac_prog_cxx_stdcxx=cxx98
14345fi
14346fi
14347
14348ac_ext=cpp
14349ac_cpp='$CXXCPP $CPPFLAGS'
14350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14353
14354depcc="$CXX"  am_compiler_list=
14355
14356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14357printf %s "checking dependency style of $depcc... " >&6; }
14358if test ${am_cv_CXX_dependencies_compiler_type+y}
14359then :
14360  printf %s "(cached) " >&6
14361else $as_nop
14362  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14363  # We make a subdir and do the tests there.  Otherwise we can end up
14364  # making bogus files that we don't know about and never remove.  For
14365  # instance it was reported that on HP-UX the gcc test will end up
14366  # making a dummy file named 'D' -- because '-MD' means "put the output
14367  # in D".
14368  rm -rf conftest.dir
14369  mkdir conftest.dir
14370  # Copy depcomp to subdir because otherwise we won't find it if we're
14371  # using a relative directory.
14372  cp "$am_depcomp" conftest.dir
14373  cd conftest.dir
14374  # We will build objects and dependencies in a subdirectory because
14375  # it helps to detect inapplicable dependency modes.  For instance
14376  # both Tru64's cc and ICC support -MD to output dependencies as a
14377  # side effect of compilation, but ICC will put the dependencies in
14378  # the current directory while Tru64 will put them in the object
14379  # directory.
14380  mkdir sub
14381
14382  am_cv_CXX_dependencies_compiler_type=none
14383  if test "$am_compiler_list" = ""; then
14384     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14385  fi
14386  am__universal=false
14387  case " $depcc " in #(
14388     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14389     esac
14390
14391  for depmode in $am_compiler_list; do
14392    # Setup a source with many dependencies, because some compilers
14393    # like to wrap large dependency lists on column 80 (with \), and
14394    # we should not choose a depcomp mode which is confused by this.
14395    #
14396    # We need to recreate these files for each test, as the compiler may
14397    # overwrite some of them when testing with obscure command lines.
14398    # This happens at least with the AIX C compiler.
14399    : > sub/conftest.c
14400    for i in 1 2 3 4 5 6; do
14401      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14402      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14403      # Solaris 10 /bin/sh.
14404      echo '/* dummy */' > sub/conftst$i.h
14405    done
14406    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14407
14408    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14409    # mode.  It turns out that the SunPro C++ compiler does not properly
14410    # handle '-M -o', and we need to detect this.  Also, some Intel
14411    # versions had trouble with output in subdirs.
14412    am__obj=sub/conftest.${OBJEXT-o}
14413    am__minus_obj="-o $am__obj"
14414    case $depmode in
14415    gcc)
14416      # This depmode causes a compiler race in universal mode.
14417      test "$am__universal" = false || continue
14418      ;;
14419    nosideeffect)
14420      # After this tag, mechanisms are not by side-effect, so they'll
14421      # only be used when explicitly requested.
14422      if test "x$enable_dependency_tracking" = xyes; then
14423	continue
14424      else
14425	break
14426      fi
14427      ;;
14428    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14429      # This compiler won't grok '-c -o', but also, the minuso test has
14430      # not run yet.  These depmodes are late enough in the game, and
14431      # so weak that their functioning should not be impacted.
14432      am__obj=conftest.${OBJEXT-o}
14433      am__minus_obj=
14434      ;;
14435    none) break ;;
14436    esac
14437    if depmode=$depmode \
14438       source=sub/conftest.c object=$am__obj \
14439       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14440       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14441         >/dev/null 2>conftest.err &&
14442       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14443       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14444       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14445       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14446      # icc doesn't choke on unknown options, it will just issue warnings
14447      # or remarks (even with -Werror).  So we grep stderr for any message
14448      # that says an option was ignored or not supported.
14449      # When given -MP, icc 7.0 and 7.1 complain thusly:
14450      #   icc: Command line warning: ignoring option '-M'; no argument required
14451      # The diagnosis changed in icc 8.0:
14452      #   icc: Command line remark: option '-MP' not supported
14453      if (grep 'ignoring option' conftest.err ||
14454          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14455        am_cv_CXX_dependencies_compiler_type=$depmode
14456        break
14457      fi
14458    fi
14459  done
14460
14461  cd ..
14462  rm -rf conftest.dir
14463else
14464  am_cv_CXX_dependencies_compiler_type=none
14465fi
14466
14467fi
14468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14469printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
14470CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14471
14472 if
14473  test "x$enable_dependency_tracking" != xno \
14474  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14475  am__fastdepCXX_TRUE=
14476  am__fastdepCXX_FALSE='#'
14477else
14478  am__fastdepCXX_TRUE='#'
14479  am__fastdepCXX_FALSE=
14480fi
14481
14482
14483
14484
14485func_stripname_cnf ()
14486{
14487  case $2 in
14488  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14489  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14490  esac
14491} # func_stripname_cnf
14492
14493      if test -n "$CXX" && ( test no != "$CXX" &&
14494    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14495    (test g++ != "$CXX"))); then
14496  ac_ext=cpp
14497ac_cpp='$CXXCPP $CPPFLAGS'
14498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14502printf %s "checking how to run the C++ preprocessor... " >&6; }
14503if test -z "$CXXCPP"; then
14504  if test ${ac_cv_prog_CXXCPP+y}
14505then :
14506  printf %s "(cached) " >&6
14507else $as_nop
14508      # Double quotes because $CXX needs to be expanded
14509    for CXXCPP in "$CXX -E" cpp /lib/cpp
14510    do
14511      ac_preproc_ok=false
14512for ac_cxx_preproc_warn_flag in '' yes
14513do
14514  # Use a header file that comes with gcc, so configuring glibc
14515  # with a fresh cross-compiler works.
14516  # On the NeXT, cc -E runs the code through the compiler's parser,
14517  # not just through cpp. "Syntax error" is here to catch this case.
14518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519/* end confdefs.h.  */
14520#include <limits.h>
14521		     Syntax error
14522_ACEOF
14523if ac_fn_cxx_try_cpp "$LINENO"
14524then :
14525
14526else $as_nop
14527  # Broken: fails on valid input.
14528continue
14529fi
14530rm -f conftest.err conftest.i conftest.$ac_ext
14531
14532  # OK, works on sane cases.  Now check whether nonexistent headers
14533  # can be detected and how.
14534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535/* end confdefs.h.  */
14536#include <ac_nonexistent.h>
14537_ACEOF
14538if ac_fn_cxx_try_cpp "$LINENO"
14539then :
14540  # Broken: success on invalid input.
14541continue
14542else $as_nop
14543  # Passes both tests.
14544ac_preproc_ok=:
14545break
14546fi
14547rm -f conftest.err conftest.i conftest.$ac_ext
14548
14549done
14550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14551rm -f conftest.i conftest.err conftest.$ac_ext
14552if $ac_preproc_ok
14553then :
14554  break
14555fi
14556
14557    done
14558    ac_cv_prog_CXXCPP=$CXXCPP
14559
14560fi
14561  CXXCPP=$ac_cv_prog_CXXCPP
14562else
14563  ac_cv_prog_CXXCPP=$CXXCPP
14564fi
14565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14566printf "%s\n" "$CXXCPP" >&6; }
14567ac_preproc_ok=false
14568for ac_cxx_preproc_warn_flag in '' yes
14569do
14570  # Use a header file that comes with gcc, so configuring glibc
14571  # with a fresh cross-compiler works.
14572  # On the NeXT, cc -E runs the code through the compiler's parser,
14573  # not just through cpp. "Syntax error" is here to catch this case.
14574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575/* end confdefs.h.  */
14576#include <limits.h>
14577		     Syntax error
14578_ACEOF
14579if ac_fn_cxx_try_cpp "$LINENO"
14580then :
14581
14582else $as_nop
14583  # Broken: fails on valid input.
14584continue
14585fi
14586rm -f conftest.err conftest.i conftest.$ac_ext
14587
14588  # OK, works on sane cases.  Now check whether nonexistent headers
14589  # can be detected and how.
14590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591/* end confdefs.h.  */
14592#include <ac_nonexistent.h>
14593_ACEOF
14594if ac_fn_cxx_try_cpp "$LINENO"
14595then :
14596  # Broken: success on invalid input.
14597continue
14598else $as_nop
14599  # Passes both tests.
14600ac_preproc_ok=:
14601break
14602fi
14603rm -f conftest.err conftest.i conftest.$ac_ext
14604
14605done
14606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14607rm -f conftest.i conftest.err conftest.$ac_ext
14608if $ac_preproc_ok
14609then :
14610
14611else $as_nop
14612  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14613printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14614as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14615See \`config.log' for more details" "$LINENO" 5; }
14616fi
14617
14618ac_ext=cpp
14619ac_cpp='$CXXCPP $CPPFLAGS'
14620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14623
14624else
14625  _lt_caught_CXX_error=yes
14626fi
14627
14628ac_ext=cpp
14629ac_cpp='$CXXCPP $CPPFLAGS'
14630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14633
14634archive_cmds_need_lc_CXX=no
14635allow_undefined_flag_CXX=
14636always_export_symbols_CXX=no
14637archive_expsym_cmds_CXX=
14638compiler_needs_object_CXX=no
14639export_dynamic_flag_spec_CXX=
14640hardcode_direct_CXX=no
14641hardcode_direct_absolute_CXX=no
14642hardcode_libdir_flag_spec_CXX=
14643hardcode_libdir_separator_CXX=
14644hardcode_minus_L_CXX=no
14645hardcode_shlibpath_var_CXX=unsupported
14646hardcode_automatic_CXX=no
14647inherit_rpath_CXX=no
14648module_cmds_CXX=
14649module_expsym_cmds_CXX=
14650link_all_deplibs_CXX=unknown
14651old_archive_cmds_CXX=$old_archive_cmds
14652reload_flag_CXX=$reload_flag
14653reload_cmds_CXX=$reload_cmds
14654no_undefined_flag_CXX=
14655whole_archive_flag_spec_CXX=
14656enable_shared_with_static_runtimes_CXX=no
14657
14658# Source file extension for C++ test sources.
14659ac_ext=cpp
14660
14661# Object file extension for compiled C++ test sources.
14662objext=o
14663objext_CXX=$objext
14664
14665# No sense in running all these tests if we already determined that
14666# the CXX compiler isn't working.  Some variables (like enable_shared)
14667# are currently assumed to apply to all compilers on this platform,
14668# and will be corrupted by setting them based on a non-working compiler.
14669if test yes != "$_lt_caught_CXX_error"; then
14670  # Code to be used in simple compile tests
14671  lt_simple_compile_test_code="int some_variable = 0;"
14672
14673  # Code to be used in simple link tests
14674  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14675
14676  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14677
14678
14679
14680
14681
14682
14683# If no C compiler was specified, use CC.
14684LTCC=${LTCC-"$CC"}
14685
14686# If no C compiler flags were specified, use CFLAGS.
14687LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14688
14689# Allow CC to be a program name with arguments.
14690compiler=$CC
14691
14692
14693  # save warnings/boilerplate of simple test code
14694  ac_outfile=conftest.$ac_objext
14695echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14696eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14697_lt_compiler_boilerplate=`cat conftest.err`
14698$RM conftest*
14699
14700  ac_outfile=conftest.$ac_objext
14701echo "$lt_simple_link_test_code" >conftest.$ac_ext
14702eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14703_lt_linker_boilerplate=`cat conftest.err`
14704$RM -r conftest*
14705
14706
14707  # Allow CC to be a program name with arguments.
14708  lt_save_CC=$CC
14709  lt_save_CFLAGS=$CFLAGS
14710  lt_save_LD=$LD
14711  lt_save_GCC=$GCC
14712  GCC=$GXX
14713  lt_save_with_gnu_ld=$with_gnu_ld
14714  lt_save_path_LD=$lt_cv_path_LD
14715  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14716    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14717  else
14718    $as_unset lt_cv_prog_gnu_ld
14719  fi
14720  if test -n "${lt_cv_path_LDCXX+set}"; then
14721    lt_cv_path_LD=$lt_cv_path_LDCXX
14722  else
14723    $as_unset lt_cv_path_LD
14724  fi
14725  test -z "${LDCXX+set}" || LD=$LDCXX
14726  CC=${CXX-"c++"}
14727  CFLAGS=$CXXFLAGS
14728  compiler=$CC
14729  compiler_CXX=$CC
14730  func_cc_basename $compiler
14731cc_basename=$func_cc_basename_result
14732
14733
14734  if test -n "$compiler"; then
14735    # We don't want -fno-exception when compiling C++ code, so set the
14736    # no_builtin_flag separately
14737    if test yes = "$GXX"; then
14738      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14739    else
14740      lt_prog_compiler_no_builtin_flag_CXX=
14741    fi
14742
14743    if test yes = "$GXX"; then
14744      # Set up default GNU C++ configuration
14745
14746
14747
14748# Check whether --with-gnu-ld was given.
14749if test ${with_gnu_ld+y}
14750then :
14751  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14752else $as_nop
14753  with_gnu_ld=no
14754fi
14755
14756ac_prog=ld
14757if test yes = "$GCC"; then
14758  # Check if gcc -print-prog-name=ld gives a path.
14759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14760printf %s "checking for ld used by $CC... " >&6; }
14761  case $host in
14762  *-*-mingw*)
14763    # gcc leaves a trailing carriage return, which upsets mingw
14764    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14765  *)
14766    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14767  esac
14768  case $ac_prog in
14769    # Accept absolute paths.
14770    [\\/]* | ?:[\\/]*)
14771      re_direlt='/[^/][^/]*/\.\./'
14772      # Canonicalize the pathname of ld
14773      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14774      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14775	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14776      done
14777      test -z "$LD" && LD=$ac_prog
14778      ;;
14779  "")
14780    # If it fails, then pretend we aren't using GCC.
14781    ac_prog=ld
14782    ;;
14783  *)
14784    # If it is relative, then search for the first ld in PATH.
14785    with_gnu_ld=unknown
14786    ;;
14787  esac
14788elif test yes = "$with_gnu_ld"; then
14789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14790printf %s "checking for GNU ld... " >&6; }
14791else
14792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14793printf %s "checking for non-GNU ld... " >&6; }
14794fi
14795if test ${lt_cv_path_LD+y}
14796then :
14797  printf %s "(cached) " >&6
14798else $as_nop
14799  if test -z "$LD"; then
14800  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14801  for ac_dir in $PATH; do
14802    IFS=$lt_save_ifs
14803    test -z "$ac_dir" && ac_dir=.
14804    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14805      lt_cv_path_LD=$ac_dir/$ac_prog
14806      # Check to see if the program is GNU ld.  I'd rather use --version,
14807      # but apparently some variants of GNU ld only accept -v.
14808      # Break only if it was the GNU/non-GNU ld that we prefer.
14809      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14810      *GNU* | *'with BFD'*)
14811	test no != "$with_gnu_ld" && break
14812	;;
14813      *)
14814	test yes != "$with_gnu_ld" && break
14815	;;
14816      esac
14817    fi
14818  done
14819  IFS=$lt_save_ifs
14820else
14821  lt_cv_path_LD=$LD # Let the user override the test with a path.
14822fi
14823fi
14824
14825LD=$lt_cv_path_LD
14826if test -n "$LD"; then
14827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14828printf "%s\n" "$LD" >&6; }
14829else
14830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14831printf "%s\n" "no" >&6; }
14832fi
14833test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14835printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14836if test ${lt_cv_prog_gnu_ld+y}
14837then :
14838  printf %s "(cached) " >&6
14839else $as_nop
14840  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14841case `$LD -v 2>&1 </dev/null` in
14842*GNU* | *'with BFD'*)
14843  lt_cv_prog_gnu_ld=yes
14844  ;;
14845*)
14846  lt_cv_prog_gnu_ld=no
14847  ;;
14848esac
14849fi
14850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14851printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14852with_gnu_ld=$lt_cv_prog_gnu_ld
14853
14854
14855
14856
14857
14858
14859
14860      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14861      # archiving commands below assume that GNU ld is being used.
14862      if test yes = "$with_gnu_ld"; then
14863        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14864        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'
14865
14866        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14867        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14868
14869        # If archive_cmds runs LD, not CC, wlarc should be empty
14870        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14871        #     investigate it a little bit more. (MM)
14872        wlarc='$wl'
14873
14874        # ancient GNU ld didn't support --whole-archive et. al.
14875        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14876	  $GREP 'no-whole-archive' > /dev/null; then
14877          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14878        else
14879          whole_archive_flag_spec_CXX=
14880        fi
14881      else
14882        with_gnu_ld=no
14883        wlarc=
14884
14885        # A generic and very simple default shared library creation
14886        # command for GNU C++ for the case where it uses the native
14887        # linker, instead of GNU ld.  If possible, this setting should
14888        # overridden to take advantage of the native linker features on
14889        # the platform it is being used on.
14890        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14891      fi
14892
14893      # Commands to make compiler produce verbose output that lists
14894      # what "hidden" libraries, object files and flags are used when
14895      # linking a shared library.
14896      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14897
14898    else
14899      GXX=no
14900      with_gnu_ld=no
14901      wlarc=
14902    fi
14903
14904    # PORTME: fill in a description of your system's C++ link characteristics
14905    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14907    ld_shlibs_CXX=yes
14908    case $host_os in
14909      aix3*)
14910        # FIXME: insert proper C++ library support
14911        ld_shlibs_CXX=no
14912        ;;
14913      aix[4-9]*)
14914        if test ia64 = "$host_cpu"; then
14915          # On IA64, the linker does run time linking by default, so we don't
14916          # have to do anything special.
14917          aix_use_runtimelinking=no
14918          exp_sym_flag='-Bexport'
14919          no_entry_flag=
14920        else
14921          aix_use_runtimelinking=no
14922
14923          # Test if we are trying to use run time linking or normal
14924          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14925          # have runtime linking enabled, and use it for executables.
14926          # For shared libraries, we enable/disable runtime linking
14927          # depending on the kind of the shared library created -
14928          # when "with_aix_soname,aix_use_runtimelinking" is:
14929          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14930          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14931          #            lib.a           static archive
14932          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14933          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14934          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14935          #            lib.a(lib.so.V) shared, rtl:no
14936          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14937          #            lib.a           static archive
14938          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14939	    for ld_flag in $LDFLAGS; do
14940	      case $ld_flag in
14941	      *-brtl*)
14942	        aix_use_runtimelinking=yes
14943	        break
14944	        ;;
14945	      esac
14946	    done
14947	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14948	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14949	      # so we don't have lib.a shared libs to link our executables.
14950	      # We have to force runtime linking in this case.
14951	      aix_use_runtimelinking=yes
14952	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14953	    fi
14954	    ;;
14955          esac
14956
14957          exp_sym_flag='-bexport'
14958          no_entry_flag='-bnoentry'
14959        fi
14960
14961        # When large executables or shared objects are built, AIX ld can
14962        # have problems creating the table of contents.  If linking a library
14963        # or program results in "error TOC overflow" add -mminimal-toc to
14964        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14965        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14966
14967        archive_cmds_CXX=''
14968        hardcode_direct_CXX=yes
14969        hardcode_direct_absolute_CXX=yes
14970        hardcode_libdir_separator_CXX=':'
14971        link_all_deplibs_CXX=yes
14972        file_list_spec_CXX='$wl-f,'
14973        case $with_aix_soname,$aix_use_runtimelinking in
14974        aix,*) ;;	# no import file
14975        svr4,* | *,yes) # use import file
14976          # The Import File defines what to hardcode.
14977          hardcode_direct_CXX=no
14978          hardcode_direct_absolute_CXX=no
14979          ;;
14980        esac
14981
14982        if test yes = "$GXX"; then
14983          case $host_os in aix4.[012]|aix4.[012].*)
14984          # We only want to do this on AIX 4.2 and lower, the check
14985          # below for broken collect2 doesn't work under 4.3+
14986	  collect2name=`$CC -print-prog-name=collect2`
14987	  if test -f "$collect2name" &&
14988	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14989	  then
14990	    # We have reworked collect2
14991	    :
14992	  else
14993	    # We have old collect2
14994	    hardcode_direct_CXX=unsupported
14995	    # It fails to find uninstalled libraries when the uninstalled
14996	    # path is not listed in the libpath.  Setting hardcode_minus_L
14997	    # to unsupported forces relinking
14998	    hardcode_minus_L_CXX=yes
14999	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15000	    hardcode_libdir_separator_CXX=
15001	  fi
15002          esac
15003          shared_flag='-shared'
15004	  if test yes = "$aix_use_runtimelinking"; then
15005	    shared_flag=$shared_flag' $wl-G'
15006	  fi
15007	  # Need to ensure runtime linking is disabled for the traditional
15008	  # shared library, or the linker may eventually find shared libraries
15009	  # /with/ Import File - we do not want to mix them.
15010	  shared_flag_aix='-shared'
15011	  shared_flag_svr4='-shared $wl-G'
15012        else
15013          # not using gcc
15014          if test ia64 = "$host_cpu"; then
15015	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15016	  # chokes on -Wl,-G. The following line is correct:
15017	  shared_flag='-G'
15018          else
15019	    if test yes = "$aix_use_runtimelinking"; then
15020	      shared_flag='$wl-G'
15021	    else
15022	      shared_flag='$wl-bM:SRE'
15023	    fi
15024	    shared_flag_aix='$wl-bM:SRE'
15025	    shared_flag_svr4='$wl-G'
15026          fi
15027        fi
15028
15029        export_dynamic_flag_spec_CXX='$wl-bexpall'
15030        # It seems that -bexpall does not export symbols beginning with
15031        # underscore (_), so it is better to generate a list of symbols to
15032	# export.
15033        always_export_symbols_CXX=yes
15034	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15035          # Warning - without using the other runtime loading flags (-brtl),
15036          # -berok will link without error, but may produce a broken library.
15037          # The "-G" linker flag allows undefined symbols.
15038          no_undefined_flag_CXX='-bernotok'
15039          # Determine the default libpath from the value encoded in an empty
15040          # executable.
15041          if test set = "${lt_cv_aix_libpath+set}"; then
15042  aix_libpath=$lt_cv_aix_libpath
15043else
15044  if test ${lt_cv_aix_libpath__CXX+y}
15045then :
15046  printf %s "(cached) " >&6
15047else $as_nop
15048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049/* end confdefs.h.  */
15050
15051int
15052main (void)
15053{
15054
15055  ;
15056  return 0;
15057}
15058_ACEOF
15059if ac_fn_cxx_try_link "$LINENO"
15060then :
15061
15062  lt_aix_libpath_sed='
15063      /Import File Strings/,/^$/ {
15064	  /^0/ {
15065	      s/^0  *\([^ ]*\) *$/\1/
15066	      p
15067	  }
15068      }'
15069  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15070  # Check for a 64-bit object if we didn't find anything.
15071  if test -z "$lt_cv_aix_libpath__CXX"; then
15072    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15073  fi
15074fi
15075rm -f core conftest.err conftest.$ac_objext conftest.beam \
15076    conftest$ac_exeext conftest.$ac_ext
15077  if test -z "$lt_cv_aix_libpath__CXX"; then
15078    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15079  fi
15080
15081fi
15082
15083  aix_libpath=$lt_cv_aix_libpath__CXX
15084fi
15085
15086          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15087
15088          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
15089        else
15090          if test ia64 = "$host_cpu"; then
15091	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15092	    allow_undefined_flag_CXX="-z nodefs"
15093	    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"
15094          else
15095	    # Determine the default libpath from the value encoded in an
15096	    # empty executable.
15097	    if test set = "${lt_cv_aix_libpath+set}"; then
15098  aix_libpath=$lt_cv_aix_libpath
15099else
15100  if test ${lt_cv_aix_libpath__CXX+y}
15101then :
15102  printf %s "(cached) " >&6
15103else $as_nop
15104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105/* end confdefs.h.  */
15106
15107int
15108main (void)
15109{
15110
15111  ;
15112  return 0;
15113}
15114_ACEOF
15115if ac_fn_cxx_try_link "$LINENO"
15116then :
15117
15118  lt_aix_libpath_sed='
15119      /Import File Strings/,/^$/ {
15120	  /^0/ {
15121	      s/^0  *\([^ ]*\) *$/\1/
15122	      p
15123	  }
15124      }'
15125  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15126  # Check for a 64-bit object if we didn't find anything.
15127  if test -z "$lt_cv_aix_libpath__CXX"; then
15128    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15129  fi
15130fi
15131rm -f core conftest.err conftest.$ac_objext conftest.beam \
15132    conftest$ac_exeext conftest.$ac_ext
15133  if test -z "$lt_cv_aix_libpath__CXX"; then
15134    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15135  fi
15136
15137fi
15138
15139  aix_libpath=$lt_cv_aix_libpath__CXX
15140fi
15141
15142	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15143	    # Warning - without using the other run time loading flags,
15144	    # -berok will link without error, but may produce a broken library.
15145	    no_undefined_flag_CXX=' $wl-bernotok'
15146	    allow_undefined_flag_CXX=' $wl-berok'
15147	    if test yes = "$with_gnu_ld"; then
15148	      # We only use this code for GNU lds that support --whole-archive.
15149	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15150	    else
15151	      # Exported symbols can be pulled into shared objects from archives
15152	      whole_archive_flag_spec_CXX='$convenience'
15153	    fi
15154	    archive_cmds_need_lc_CXX=yes
15155	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15156	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15157	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15158	    if test svr4 != "$with_aix_soname"; then
15159	      # This is similar to how AIX traditionally builds its shared
15160	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15161	      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'
15162	    fi
15163	    if test aix != "$with_aix_soname"; then
15164	      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'
15165	    else
15166	      # used by -dlpreopen to get the symbols
15167	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15168	    fi
15169	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15170          fi
15171        fi
15172        ;;
15173
15174      beos*)
15175	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15176	  allow_undefined_flag_CXX=unsupported
15177	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15178	  # support --undefined.  This deserves some investigation.  FIXME
15179	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15180	else
15181	  ld_shlibs_CXX=no
15182	fi
15183	;;
15184
15185      chorus*)
15186        case $cc_basename in
15187          *)
15188	  # FIXME: insert proper C++ library support
15189	  ld_shlibs_CXX=no
15190	  ;;
15191        esac
15192        ;;
15193
15194      cygwin* | mingw* | pw32* | cegcc*)
15195	case $GXX,$cc_basename in
15196	,cl* | no,cl*)
15197	  # Native MSVC
15198	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15199	  # no search path for DLLs.
15200	  hardcode_libdir_flag_spec_CXX=' '
15201	  allow_undefined_flag_CXX=unsupported
15202	  always_export_symbols_CXX=yes
15203	  file_list_spec_CXX='@'
15204	  # Tell ltmain to make .lib files, not .a files.
15205	  libext=lib
15206	  # Tell ltmain to make .dll files, not .so files.
15207	  shrext_cmds=.dll
15208	  # FIXME: Setting linknames here is a bad hack.
15209	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15210	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15211              cp "$export_symbols" "$output_objdir/$soname.def";
15212              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15213            else
15214              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15215            fi~
15216            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15217            linknames='
15218	  # The linker will not automatically build a static lib if we build a DLL.
15219	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15220	  enable_shared_with_static_runtimes_CXX=yes
15221	  # Don't use ranlib
15222	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15223	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15224            lt_tool_outputfile="@TOOL_OUTPUT@"~
15225            case $lt_outputfile in
15226              *.exe|*.EXE) ;;
15227              *)
15228                lt_outputfile=$lt_outputfile.exe
15229                lt_tool_outputfile=$lt_tool_outputfile.exe
15230                ;;
15231            esac~
15232            func_to_tool_file "$lt_outputfile"~
15233            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15234              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15235              $RM "$lt_outputfile.manifest";
15236            fi'
15237	  ;;
15238	*)
15239	  # g++
15240	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15241	  # as there is no search path for DLLs.
15242	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15243	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15244	  allow_undefined_flag_CXX=unsupported
15245	  always_export_symbols_CXX=no
15246	  enable_shared_with_static_runtimes_CXX=yes
15247
15248	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15249	    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'
15250	    # If the export-symbols file already is a .def file, use it as
15251	    # is; otherwise, prepend EXPORTS...
15252	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15253              cp $export_symbols $output_objdir/$soname.def;
15254            else
15255              echo EXPORTS > $output_objdir/$soname.def;
15256              cat $export_symbols >> $output_objdir/$soname.def;
15257            fi~
15258            $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'
15259	  else
15260	    ld_shlibs_CXX=no
15261	  fi
15262	  ;;
15263	esac
15264	;;
15265      darwin* | rhapsody*)
15266
15267
15268  archive_cmds_need_lc_CXX=no
15269  hardcode_direct_CXX=no
15270  hardcode_automatic_CXX=yes
15271  hardcode_shlibpath_var_CXX=unsupported
15272  if test yes = "$lt_cv_ld_force_load"; then
15273    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\"`'
15274
15275  else
15276    whole_archive_flag_spec_CXX=''
15277  fi
15278  link_all_deplibs_CXX=yes
15279  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15280  case $cc_basename in
15281     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15282     *) _lt_dar_can_shared=$GCC ;;
15283  esac
15284  if test yes = "$_lt_dar_can_shared"; then
15285    output_verbose_link_cmd=func_echo_all
15286    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"
15287    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15288    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"
15289    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"
15290       if test yes != "$lt_cv_apple_cc_single_mod"; then
15291      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"
15292      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"
15293    fi
15294
15295  else
15296  ld_shlibs_CXX=no
15297  fi
15298
15299	;;
15300
15301      os2*)
15302	hardcode_libdir_flag_spec_CXX='-L$libdir'
15303	hardcode_minus_L_CXX=yes
15304	allow_undefined_flag_CXX=unsupported
15305	shrext_cmds=.dll
15306	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15307	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15308	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15309	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15310	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15311	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15312	  emximp -o $lib $output_objdir/$libname.def'
15313	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15314	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15315	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15316	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15317	  prefix_cmds="$SED"~
15318	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15319	    prefix_cmds="$prefix_cmds -e 1d";
15320	  fi~
15321	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15322	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15323	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15324	  emximp -o $lib $output_objdir/$libname.def'
15325	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15326	enable_shared_with_static_runtimes_CXX=yes
15327	;;
15328
15329      dgux*)
15330        case $cc_basename in
15331          ec++*)
15332	    # FIXME: insert proper C++ library support
15333	    ld_shlibs_CXX=no
15334	    ;;
15335          ghcx*)
15336	    # Green Hills C++ Compiler
15337	    # FIXME: insert proper C++ library support
15338	    ld_shlibs_CXX=no
15339	    ;;
15340          *)
15341	    # FIXME: insert proper C++ library support
15342	    ld_shlibs_CXX=no
15343	    ;;
15344        esac
15345        ;;
15346
15347      freebsd2.*)
15348        # C++ shared libraries reported to be fairly broken before
15349	# switch to ELF
15350        ld_shlibs_CXX=no
15351        ;;
15352
15353      freebsd-elf*)
15354        archive_cmds_need_lc_CXX=no
15355        ;;
15356
15357      freebsd* | dragonfly*)
15358        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15359        # conventions
15360        ld_shlibs_CXX=yes
15361        ;;
15362
15363      haiku*)
15364        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15365        link_all_deplibs_CXX=yes
15366        ;;
15367
15368      hpux9*)
15369        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15370        hardcode_libdir_separator_CXX=:
15371        export_dynamic_flag_spec_CXX='$wl-E'
15372        hardcode_direct_CXX=yes
15373        hardcode_minus_L_CXX=yes # Not in the search PATH,
15374				             # but as the default
15375				             # location of the library.
15376
15377        case $cc_basename in
15378          CC*)
15379            # FIXME: insert proper C++ library support
15380            ld_shlibs_CXX=no
15381            ;;
15382          aCC*)
15383            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'
15384            # Commands to make compiler produce verbose output that lists
15385            # what "hidden" libraries, object files and flags are used when
15386            # linking a shared library.
15387            #
15388            # There doesn't appear to be a way to prevent this compiler from
15389            # explicitly linking system object files so we need to strip them
15390            # from the output so that they don't get included in the library
15391            # dependencies.
15392            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"'
15393            ;;
15394          *)
15395            if test yes = "$GXX"; then
15396              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'
15397            else
15398              # FIXME: insert proper C++ library support
15399              ld_shlibs_CXX=no
15400            fi
15401            ;;
15402        esac
15403        ;;
15404
15405      hpux10*|hpux11*)
15406        if test no = "$with_gnu_ld"; then
15407	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15408	  hardcode_libdir_separator_CXX=:
15409
15410          case $host_cpu in
15411            hppa*64*|ia64*)
15412              ;;
15413            *)
15414	      export_dynamic_flag_spec_CXX='$wl-E'
15415              ;;
15416          esac
15417        fi
15418        case $host_cpu in
15419          hppa*64*|ia64*)
15420            hardcode_direct_CXX=no
15421            hardcode_shlibpath_var_CXX=no
15422            ;;
15423          *)
15424            hardcode_direct_CXX=yes
15425            hardcode_direct_absolute_CXX=yes
15426            hardcode_minus_L_CXX=yes # Not in the search PATH,
15427					         # but as the default
15428					         # location of the library.
15429            ;;
15430        esac
15431
15432        case $cc_basename in
15433          CC*)
15434	    # FIXME: insert proper C++ library support
15435	    ld_shlibs_CXX=no
15436	    ;;
15437          aCC*)
15438	    case $host_cpu in
15439	      hppa*64*)
15440	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15441	        ;;
15442	      ia64*)
15443	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15444	        ;;
15445	      *)
15446	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15447	        ;;
15448	    esac
15449	    # Commands to make compiler produce verbose output that lists
15450	    # what "hidden" libraries, object files and flags are used when
15451	    # linking a shared library.
15452	    #
15453	    # There doesn't appear to be a way to prevent this compiler from
15454	    # explicitly linking system object files so we need to strip them
15455	    # from the output so that they don't get included in the library
15456	    # dependencies.
15457	    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"'
15458	    ;;
15459          *)
15460	    if test yes = "$GXX"; then
15461	      if test no = "$with_gnu_ld"; then
15462	        case $host_cpu in
15463	          hppa*64*)
15464	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15465	            ;;
15466	          ia64*)
15467	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15468	            ;;
15469	          *)
15470	            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'
15471	            ;;
15472	        esac
15473	      fi
15474	    else
15475	      # FIXME: insert proper C++ library support
15476	      ld_shlibs_CXX=no
15477	    fi
15478	    ;;
15479        esac
15480        ;;
15481
15482      interix[3-9]*)
15483	hardcode_direct_CXX=no
15484	hardcode_shlibpath_var_CXX=no
15485	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15486	export_dynamic_flag_spec_CXX='$wl-E'
15487	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15488	# Instead, shared libraries are loaded at an image base (0x10000000 by
15489	# default) and relocated if they conflict, which is a slow very memory
15490	# consuming and fragmenting process.  To avoid this, we pick a random,
15491	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15492	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15493	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'
15494	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'
15495	;;
15496      irix5* | irix6*)
15497        case $cc_basename in
15498          CC*)
15499	    # SGI C++
15500	    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'
15501
15502	    # Archives containing C++ object files must be created using
15503	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15504	    # necessary to make sure instantiated templates are included
15505	    # in the archive.
15506	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15507	    ;;
15508          *)
15509	    if test yes = "$GXX"; then
15510	      if test no = "$with_gnu_ld"; then
15511	        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'
15512	      else
15513	        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'
15514	      fi
15515	    fi
15516	    link_all_deplibs_CXX=yes
15517	    ;;
15518        esac
15519        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15520        hardcode_libdir_separator_CXX=:
15521        inherit_rpath_CXX=yes
15522        ;;
15523
15524      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15525        case $cc_basename in
15526          KCC*)
15527	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15528
15529	    # KCC will only create a shared library if the output file
15530	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15531	    # to its proper name (with version) after linking.
15532	    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'
15533	    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'
15534	    # Commands to make compiler produce verbose output that lists
15535	    # what "hidden" libraries, object files and flags are used when
15536	    # linking a shared library.
15537	    #
15538	    # There doesn't appear to be a way to prevent this compiler from
15539	    # explicitly linking system object files so we need to strip them
15540	    # from the output so that they don't get included in the library
15541	    # dependencies.
15542	    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"'
15543
15544	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15545	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15546
15547	    # Archives containing C++ object files must be created using
15548	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15549	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15550	    ;;
15551	  icpc* | ecpc* )
15552	    # Intel C++
15553	    with_gnu_ld=yes
15554	    # version 8.0 and above of icpc choke on multiply defined symbols
15555	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15556	    # earlier do not add the objects themselves.
15557	    case `$CC -V 2>&1` in
15558	      *"Version 7."*)
15559	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15560		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'
15561		;;
15562	      *)  # Version 8.0 or newer
15563	        tmp_idyn=
15564	        case $host_cpu in
15565		  ia64*) tmp_idyn=' -i_dynamic';;
15566		esac
15567	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15568		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'
15569		;;
15570	    esac
15571	    archive_cmds_need_lc_CXX=no
15572	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15573	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15574	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15575	    ;;
15576          pgCC* | pgcpp*)
15577            # Portland Group C++ compiler
15578	    case `$CC -V` in
15579	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15580	      prelink_cmds_CXX='tpldir=Template.dir~
15581               rm -rf $tpldir~
15582               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15583               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15584	      old_archive_cmds_CXX='tpldir=Template.dir~
15585                rm -rf $tpldir~
15586                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15587                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15588                $RANLIB $oldlib'
15589	      archive_cmds_CXX='tpldir=Template.dir~
15590                rm -rf $tpldir~
15591                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15592                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15593	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15594                rm -rf $tpldir~
15595                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15596                $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'
15597	      ;;
15598	    *) # Version 6 and above use weak symbols
15599	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15600	      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'
15601	      ;;
15602	    esac
15603
15604	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15605	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15606	    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'
15607            ;;
15608	  cxx*)
15609	    # Compaq C++
15610	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15611	    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'
15612
15613	    runpath_var=LD_RUN_PATH
15614	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15615	    hardcode_libdir_separator_CXX=:
15616
15617	    # Commands to make compiler produce verbose output that lists
15618	    # what "hidden" libraries, object files and flags are used when
15619	    # linking a shared library.
15620	    #
15621	    # There doesn't appear to be a way to prevent this compiler from
15622	    # explicitly linking system object files so we need to strip them
15623	    # from the output so that they don't get included in the library
15624	    # dependencies.
15625	    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'
15626	    ;;
15627	  xl* | mpixl* | bgxl*)
15628	    # IBM XL 8.0 on PPC, with GNU ld
15629	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15630	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15631	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15632	    if test yes = "$supports_anon_versioning"; then
15633	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15634                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15635                echo "local: *; };" >> $output_objdir/$libname.ver~
15636                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15637	    fi
15638	    ;;
15639	  *)
15640	    case `$CC -V 2>&1 | sed 5q` in
15641	    *Sun\ C*)
15642	      # Sun C++ 5.9
15643	      no_undefined_flag_CXX=' -zdefs'
15644	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15645	      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'
15646	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15647	      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'
15648	      compiler_needs_object_CXX=yes
15649
15650	      # Not sure whether something based on
15651	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15652	      # would be better.
15653	      output_verbose_link_cmd='func_echo_all'
15654
15655	      # Archives containing C++ object files must be created using
15656	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15657	      # necessary to make sure instantiated templates are included
15658	      # in the archive.
15659	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15660	      ;;
15661	    esac
15662	    ;;
15663	esac
15664	;;
15665
15666      lynxos*)
15667        # FIXME: insert proper C++ library support
15668	ld_shlibs_CXX=no
15669	;;
15670
15671      m88k*)
15672        # FIXME: insert proper C++ library support
15673        ld_shlibs_CXX=no
15674	;;
15675
15676      mvs*)
15677        case $cc_basename in
15678          cxx*)
15679	    # FIXME: insert proper C++ library support
15680	    ld_shlibs_CXX=no
15681	    ;;
15682	  *)
15683	    # FIXME: insert proper C++ library support
15684	    ld_shlibs_CXX=no
15685	    ;;
15686	esac
15687	;;
15688
15689      netbsd*)
15690        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15691	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15692	  wlarc=
15693	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15694	  hardcode_direct_CXX=yes
15695	  hardcode_shlibpath_var_CXX=no
15696	fi
15697	# Workaround some broken pre-1.5 toolchains
15698	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15699	;;
15700
15701      *nto* | *qnx*)
15702        ld_shlibs_CXX=yes
15703	;;
15704
15705      openbsd* | bitrig*)
15706	if test -f /usr/libexec/ld.so; then
15707	  hardcode_direct_CXX=yes
15708	  hardcode_shlibpath_var_CXX=no
15709	  hardcode_direct_absolute_CXX=yes
15710	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15711	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15712	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15713	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15714	    export_dynamic_flag_spec_CXX='$wl-E'
15715	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15716	  fi
15717	  output_verbose_link_cmd=func_echo_all
15718	else
15719	  ld_shlibs_CXX=no
15720	fi
15721	;;
15722
15723      osf3* | osf4* | osf5*)
15724        case $cc_basename in
15725          KCC*)
15726	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15727
15728	    # KCC will only create a shared library if the output file
15729	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15730	    # to its proper name (with version) after linking.
15731	    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'
15732
15733	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15734	    hardcode_libdir_separator_CXX=:
15735
15736	    # Archives containing C++ object files must be created using
15737	    # the KAI C++ compiler.
15738	    case $host in
15739	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15740	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15741	    esac
15742	    ;;
15743          RCC*)
15744	    # Rational C++ 2.4.1
15745	    # FIXME: insert proper C++ library support
15746	    ld_shlibs_CXX=no
15747	    ;;
15748          cxx*)
15749	    case $host in
15750	      osf3*)
15751	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15752	        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'
15753	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15754		;;
15755	      *)
15756	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15757	        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'
15758	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15759                  echo "-hidden">> $lib.exp~
15760                  $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~
15761                  $RM $lib.exp'
15762	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15763		;;
15764	    esac
15765
15766	    hardcode_libdir_separator_CXX=:
15767
15768	    # Commands to make compiler produce verbose output that lists
15769	    # what "hidden" libraries, object files and flags are used when
15770	    # linking a shared library.
15771	    #
15772	    # There doesn't appear to be a way to prevent this compiler from
15773	    # explicitly linking system object files so we need to strip them
15774	    # from the output so that they don't get included in the library
15775	    # dependencies.
15776	    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"'
15777	    ;;
15778	  *)
15779	    if test yes,no = "$GXX,$with_gnu_ld"; then
15780	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15781	      case $host in
15782	        osf3*)
15783	          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'
15784		  ;;
15785	        *)
15786	          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'
15787		  ;;
15788	      esac
15789
15790	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15791	      hardcode_libdir_separator_CXX=:
15792
15793	      # Commands to make compiler produce verbose output that lists
15794	      # what "hidden" libraries, object files and flags are used when
15795	      # linking a shared library.
15796	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15797
15798	    else
15799	      # FIXME: insert proper C++ library support
15800	      ld_shlibs_CXX=no
15801	    fi
15802	    ;;
15803        esac
15804        ;;
15805
15806      psos*)
15807        # FIXME: insert proper C++ library support
15808        ld_shlibs_CXX=no
15809        ;;
15810
15811      sunos4*)
15812        case $cc_basename in
15813          CC*)
15814	    # Sun C++ 4.x
15815	    # FIXME: insert proper C++ library support
15816	    ld_shlibs_CXX=no
15817	    ;;
15818          lcc*)
15819	    # Lucid
15820	    # FIXME: insert proper C++ library support
15821	    ld_shlibs_CXX=no
15822	    ;;
15823          *)
15824	    # FIXME: insert proper C++ library support
15825	    ld_shlibs_CXX=no
15826	    ;;
15827        esac
15828        ;;
15829
15830      solaris*)
15831        case $cc_basename in
15832          CC* | sunCC*)
15833	    # Sun C++ 4.2, 5.x and Centerline C++
15834            archive_cmds_need_lc_CXX=yes
15835	    no_undefined_flag_CXX=' -zdefs'
15836	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15837	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15838              $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'
15839
15840	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15841	    hardcode_shlibpath_var_CXX=no
15842	    case $host_os in
15843	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15844	      *)
15845		# The compiler driver will combine and reorder linker options,
15846		# but understands '-z linker_flag'.
15847	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15848		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15849	        ;;
15850	    esac
15851	    link_all_deplibs_CXX=yes
15852
15853	    output_verbose_link_cmd='func_echo_all'
15854
15855	    # Archives containing C++ object files must be created using
15856	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15857	    # necessary to make sure instantiated templates are included
15858	    # in the archive.
15859	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15860	    ;;
15861          gcx*)
15862	    # Green Hills C++ Compiler
15863	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15864
15865	    # The C++ compiler must be used to create the archive.
15866	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15867	    ;;
15868          *)
15869	    # GNU C++ compiler with Solaris linker
15870	    if test yes,no = "$GXX,$with_gnu_ld"; then
15871	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15872	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15873	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15874	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15875                  $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'
15876
15877	        # Commands to make compiler produce verbose output that lists
15878	        # what "hidden" libraries, object files and flags are used when
15879	        # linking a shared library.
15880	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15881	      else
15882	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15883	        # platform.
15884	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15885	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15886                  $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'
15887
15888	        # Commands to make compiler produce verbose output that lists
15889	        # what "hidden" libraries, object files and flags are used when
15890	        # linking a shared library.
15891	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15892	      fi
15893
15894	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15895	      case $host_os in
15896		solaris2.[0-5] | solaris2.[0-5].*) ;;
15897		*)
15898		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15899		  ;;
15900	      esac
15901	    fi
15902	    ;;
15903        esac
15904        ;;
15905
15906    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15907      no_undefined_flag_CXX='$wl-z,text'
15908      archive_cmds_need_lc_CXX=no
15909      hardcode_shlibpath_var_CXX=no
15910      runpath_var='LD_RUN_PATH'
15911
15912      case $cc_basename in
15913        CC*)
15914	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15915	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15916	  ;;
15917	*)
15918	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15919	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15920	  ;;
15921      esac
15922      ;;
15923
15924      sysv5* | sco3.2v5* | sco5v6*)
15925	# Note: We CANNOT use -z defs as we might desire, because we do not
15926	# link with -lc, and that would cause any symbols used from libc to
15927	# always be unresolved, which means just about no library would
15928	# ever link correctly.  If we're not using GNU ld we use -z text
15929	# though, which does catch some bad symbols but isn't as heavy-handed
15930	# as -z defs.
15931	no_undefined_flag_CXX='$wl-z,text'
15932	allow_undefined_flag_CXX='$wl-z,nodefs'
15933	archive_cmds_need_lc_CXX=no
15934	hardcode_shlibpath_var_CXX=no
15935	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15936	hardcode_libdir_separator_CXX=':'
15937	link_all_deplibs_CXX=yes
15938	export_dynamic_flag_spec_CXX='$wl-Bexport'
15939	runpath_var='LD_RUN_PATH'
15940
15941	case $cc_basename in
15942          CC*)
15943	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15944	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15945	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15946              '"$old_archive_cmds_CXX"
15947	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15948              '"$reload_cmds_CXX"
15949	    ;;
15950	  *)
15951	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15952	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953	    ;;
15954	esac
15955      ;;
15956
15957      tandem*)
15958        case $cc_basename in
15959          NCC*)
15960	    # NonStop-UX NCC 3.20
15961	    # FIXME: insert proper C++ library support
15962	    ld_shlibs_CXX=no
15963	    ;;
15964          *)
15965	    # FIXME: insert proper C++ library support
15966	    ld_shlibs_CXX=no
15967	    ;;
15968        esac
15969        ;;
15970
15971      vxworks*)
15972        # FIXME: insert proper C++ library support
15973        ld_shlibs_CXX=no
15974        ;;
15975
15976      *)
15977        # FIXME: insert proper C++ library support
15978        ld_shlibs_CXX=no
15979        ;;
15980    esac
15981
15982    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15983printf "%s\n" "$ld_shlibs_CXX" >&6; }
15984    test no = "$ld_shlibs_CXX" && can_build_shared=no
15985
15986    GCC_CXX=$GXX
15987    LD_CXX=$LD
15988
15989    ## CAVEAT EMPTOR:
15990    ## There is no encapsulation within the following macros, do not change
15991    ## the running order or otherwise move them around unless you know exactly
15992    ## what you are doing...
15993    # Dependencies to place before and after the object being linked:
15994predep_objects_CXX=
15995postdep_objects_CXX=
15996predeps_CXX=
15997postdeps_CXX=
15998compiler_lib_search_path_CXX=
15999
16000cat > conftest.$ac_ext <<_LT_EOF
16001class Foo
16002{
16003public:
16004  Foo (void) { a = 0; }
16005private:
16006  int a;
16007};
16008_LT_EOF
16009
16010
16011_lt_libdeps_save_CFLAGS=$CFLAGS
16012case "$CC $CFLAGS " in #(
16013*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16014*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16015*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16016esac
16017
16018if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16019  (eval $ac_compile) 2>&5
16020  ac_status=$?
16021  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16022  test $ac_status = 0; }; then
16023  # Parse the compiler output and extract the necessary
16024  # objects, libraries and library flags.
16025
16026  # Sentinel used to keep track of whether or not we are before
16027  # the conftest object file.
16028  pre_test_object_deps_done=no
16029
16030  for p in `eval "$output_verbose_link_cmd"`; do
16031    case $prev$p in
16032
16033    -L* | -R* | -l*)
16034       # Some compilers place space between "-{L,R}" and the path.
16035       # Remove the space.
16036       if test x-L = "$p" ||
16037          test x-R = "$p"; then
16038	 prev=$p
16039	 continue
16040       fi
16041
16042       # Expand the sysroot to ease extracting the directories later.
16043       if test -z "$prev"; then
16044         case $p in
16045         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16046         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16047         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16048         esac
16049       fi
16050       case $p in
16051       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16052       esac
16053       if test no = "$pre_test_object_deps_done"; then
16054	 case $prev in
16055	 -L | -R)
16056	   # Internal compiler library paths should come after those
16057	   # provided the user.  The postdeps already come after the
16058	   # user supplied libs so there is no need to process them.
16059	   if test -z "$compiler_lib_search_path_CXX"; then
16060	     compiler_lib_search_path_CXX=$prev$p
16061	   else
16062	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16063	   fi
16064	   ;;
16065	 # The "-l" case would never come before the object being
16066	 # linked, so don't bother handling this case.
16067	 esac
16068       else
16069	 if test -z "$postdeps_CXX"; then
16070	   postdeps_CXX=$prev$p
16071	 else
16072	   postdeps_CXX="${postdeps_CXX} $prev$p"
16073	 fi
16074       fi
16075       prev=
16076       ;;
16077
16078    *.lto.$objext) ;; # Ignore GCC LTO objects
16079    *.$objext)
16080       # This assumes that the test object file only shows up
16081       # once in the compiler output.
16082       if test "$p" = "conftest.$objext"; then
16083	 pre_test_object_deps_done=yes
16084	 continue
16085       fi
16086
16087       if test no = "$pre_test_object_deps_done"; then
16088	 if test -z "$predep_objects_CXX"; then
16089	   predep_objects_CXX=$p
16090	 else
16091	   predep_objects_CXX="$predep_objects_CXX $p"
16092	 fi
16093       else
16094	 if test -z "$postdep_objects_CXX"; then
16095	   postdep_objects_CXX=$p
16096	 else
16097	   postdep_objects_CXX="$postdep_objects_CXX $p"
16098	 fi
16099       fi
16100       ;;
16101
16102    *) ;; # Ignore the rest.
16103
16104    esac
16105  done
16106
16107  # Clean up.
16108  rm -f a.out a.exe
16109else
16110  echo "libtool.m4: error: problem compiling CXX test program"
16111fi
16112
16113$RM -f confest.$objext
16114CFLAGS=$_lt_libdeps_save_CFLAGS
16115
16116# PORTME: override above test on systems where it is broken
16117case $host_os in
16118interix[3-9]*)
16119  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16120  # hack all around it, let's just trust "g++" to DTRT.
16121  predep_objects_CXX=
16122  postdep_objects_CXX=
16123  postdeps_CXX=
16124  ;;
16125esac
16126
16127
16128case " $postdeps_CXX " in
16129*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16130esac
16131 compiler_lib_search_dirs_CXX=
16132if test -n "${compiler_lib_search_path_CXX}"; then
16133 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16134fi
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166    lt_prog_compiler_wl_CXX=
16167lt_prog_compiler_pic_CXX=
16168lt_prog_compiler_static_CXX=
16169
16170
16171  # C++ specific cases for pic, static, wl, etc.
16172  if test yes = "$GXX"; then
16173    lt_prog_compiler_wl_CXX='-Wl,'
16174    lt_prog_compiler_static_CXX='-static'
16175
16176    case $host_os in
16177    aix*)
16178      # All AIX code is PIC.
16179      if test ia64 = "$host_cpu"; then
16180	# AIX 5 now supports IA64 processor
16181	lt_prog_compiler_static_CXX='-Bstatic'
16182      fi
16183      lt_prog_compiler_pic_CXX='-fPIC'
16184      ;;
16185
16186    amigaos*)
16187      case $host_cpu in
16188      powerpc)
16189            # see comment about AmigaOS4 .so support
16190            lt_prog_compiler_pic_CXX='-fPIC'
16191        ;;
16192      m68k)
16193            # FIXME: we need at least 68020 code to build shared libraries, but
16194            # adding the '-m68020' flag to GCC prevents building anything better,
16195            # like '-m68040'.
16196            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16197        ;;
16198      esac
16199      ;;
16200
16201    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16202      # PIC is the default for these OSes.
16203      ;;
16204    mingw* | cygwin* | os2* | pw32* | cegcc*)
16205      # This hack is so that the source file can tell whether it is being
16206      # built for inclusion in a dll (and should export symbols for example).
16207      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16208      # (--disable-auto-import) libraries
16209      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16210      case $host_os in
16211      os2*)
16212	lt_prog_compiler_static_CXX='$wl-static'
16213	;;
16214      esac
16215      ;;
16216    darwin* | rhapsody*)
16217      # PIC is the default on this platform
16218      # Common symbols not allowed in MH_DYLIB files
16219      lt_prog_compiler_pic_CXX='-fno-common'
16220      ;;
16221    *djgpp*)
16222      # DJGPP does not support shared libraries at all
16223      lt_prog_compiler_pic_CXX=
16224      ;;
16225    haiku*)
16226      # PIC is the default for Haiku.
16227      # The "-static" flag exists, but is broken.
16228      lt_prog_compiler_static_CXX=
16229      ;;
16230    interix[3-9]*)
16231      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16232      # Instead, we relocate shared libraries at runtime.
16233      ;;
16234    sysv4*MP*)
16235      if test -d /usr/nec; then
16236	lt_prog_compiler_pic_CXX=-Kconform_pic
16237      fi
16238      ;;
16239    hpux*)
16240      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16241      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16242      # sets the default TLS model and affects inlining.
16243      case $host_cpu in
16244      hppa*64*)
16245	;;
16246      *)
16247	lt_prog_compiler_pic_CXX='-fPIC'
16248	;;
16249      esac
16250      ;;
16251    *qnx* | *nto*)
16252      # QNX uses GNU C++, but need to define -shared option too, otherwise
16253      # it will coredump.
16254      lt_prog_compiler_pic_CXX='-fPIC -shared'
16255      ;;
16256    *)
16257      lt_prog_compiler_pic_CXX='-fPIC'
16258      ;;
16259    esac
16260  else
16261    case $host_os in
16262      aix[4-9]*)
16263	# All AIX code is PIC.
16264	if test ia64 = "$host_cpu"; then
16265	  # AIX 5 now supports IA64 processor
16266	  lt_prog_compiler_static_CXX='-Bstatic'
16267	else
16268	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16269	fi
16270	;;
16271      chorus*)
16272	case $cc_basename in
16273	cxch68*)
16274	  # Green Hills C++ Compiler
16275	  # _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"
16276	  ;;
16277	esac
16278	;;
16279      mingw* | cygwin* | os2* | pw32* | cegcc*)
16280	# This hack is so that the source file can tell whether it is being
16281	# built for inclusion in a dll (and should export symbols for example).
16282	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16283	;;
16284      dgux*)
16285	case $cc_basename in
16286	  ec++*)
16287	    lt_prog_compiler_pic_CXX='-KPIC'
16288	    ;;
16289	  ghcx*)
16290	    # Green Hills C++ Compiler
16291	    lt_prog_compiler_pic_CXX='-pic'
16292	    ;;
16293	  *)
16294	    ;;
16295	esac
16296	;;
16297      freebsd* | dragonfly*)
16298	# FreeBSD uses GNU C++
16299	;;
16300      hpux9* | hpux10* | hpux11*)
16301	case $cc_basename in
16302	  CC*)
16303	    lt_prog_compiler_wl_CXX='-Wl,'
16304	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16305	    if test ia64 != "$host_cpu"; then
16306	      lt_prog_compiler_pic_CXX='+Z'
16307	    fi
16308	    ;;
16309	  aCC*)
16310	    lt_prog_compiler_wl_CXX='-Wl,'
16311	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16312	    case $host_cpu in
16313	    hppa*64*|ia64*)
16314	      # +Z the default
16315	      ;;
16316	    *)
16317	      lt_prog_compiler_pic_CXX='+Z'
16318	      ;;
16319	    esac
16320	    ;;
16321	  *)
16322	    ;;
16323	esac
16324	;;
16325      interix*)
16326	# This is c89, which is MS Visual C++ (no shared libs)
16327	# Anyone wants to do a port?
16328	;;
16329      irix5* | irix6* | nonstopux*)
16330	case $cc_basename in
16331	  CC*)
16332	    lt_prog_compiler_wl_CXX='-Wl,'
16333	    lt_prog_compiler_static_CXX='-non_shared'
16334	    # CC pic flag -KPIC is the default.
16335	    ;;
16336	  *)
16337	    ;;
16338	esac
16339	;;
16340      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16341	case $cc_basename in
16342	  KCC*)
16343	    # KAI C++ Compiler
16344	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16345	    lt_prog_compiler_pic_CXX='-fPIC'
16346	    ;;
16347	  ecpc* )
16348	    # old Intel C++ for x86_64, which still supported -KPIC.
16349	    lt_prog_compiler_wl_CXX='-Wl,'
16350	    lt_prog_compiler_pic_CXX='-KPIC'
16351	    lt_prog_compiler_static_CXX='-static'
16352	    ;;
16353	  icpc* )
16354	    # Intel C++, used to be incompatible with GCC.
16355	    # ICC 10 doesn't accept -KPIC any more.
16356	    lt_prog_compiler_wl_CXX='-Wl,'
16357	    lt_prog_compiler_pic_CXX='-fPIC'
16358	    lt_prog_compiler_static_CXX='-static'
16359	    ;;
16360	  pgCC* | pgcpp*)
16361	    # Portland Group C++ compiler
16362	    lt_prog_compiler_wl_CXX='-Wl,'
16363	    lt_prog_compiler_pic_CXX='-fpic'
16364	    lt_prog_compiler_static_CXX='-Bstatic'
16365	    ;;
16366	  cxx*)
16367	    # Compaq C++
16368	    # Make sure the PIC flag is empty.  It appears that all Alpha
16369	    # Linux and Compaq Tru64 Unix objects are PIC.
16370	    lt_prog_compiler_pic_CXX=
16371	    lt_prog_compiler_static_CXX='-non_shared'
16372	    ;;
16373	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16374	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16375	    lt_prog_compiler_wl_CXX='-Wl,'
16376	    lt_prog_compiler_pic_CXX='-qpic'
16377	    lt_prog_compiler_static_CXX='-qstaticlink'
16378	    ;;
16379	  *)
16380	    case `$CC -V 2>&1 | sed 5q` in
16381	    *Sun\ C*)
16382	      # Sun C++ 5.9
16383	      lt_prog_compiler_pic_CXX='-KPIC'
16384	      lt_prog_compiler_static_CXX='-Bstatic'
16385	      lt_prog_compiler_wl_CXX='-Qoption ld '
16386	      ;;
16387	    esac
16388	    ;;
16389	esac
16390	;;
16391      lynxos*)
16392	;;
16393      m88k*)
16394	;;
16395      mvs*)
16396	case $cc_basename in
16397	  cxx*)
16398	    lt_prog_compiler_pic_CXX='-W c,exportall'
16399	    ;;
16400	  *)
16401	    ;;
16402	esac
16403	;;
16404      netbsd*)
16405	;;
16406      *qnx* | *nto*)
16407        # QNX uses GNU C++, but need to define -shared option too, otherwise
16408        # it will coredump.
16409        lt_prog_compiler_pic_CXX='-fPIC -shared'
16410        ;;
16411      osf3* | osf4* | osf5*)
16412	case $cc_basename in
16413	  KCC*)
16414	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16415	    ;;
16416	  RCC*)
16417	    # Rational C++ 2.4.1
16418	    lt_prog_compiler_pic_CXX='-pic'
16419	    ;;
16420	  cxx*)
16421	    # Digital/Compaq C++
16422	    lt_prog_compiler_wl_CXX='-Wl,'
16423	    # Make sure the PIC flag is empty.  It appears that all Alpha
16424	    # Linux and Compaq Tru64 Unix objects are PIC.
16425	    lt_prog_compiler_pic_CXX=
16426	    lt_prog_compiler_static_CXX='-non_shared'
16427	    ;;
16428	  *)
16429	    ;;
16430	esac
16431	;;
16432      psos*)
16433	;;
16434      solaris*)
16435	case $cc_basename in
16436	  CC* | sunCC*)
16437	    # Sun C++ 4.2, 5.x and Centerline C++
16438	    lt_prog_compiler_pic_CXX='-KPIC'
16439	    lt_prog_compiler_static_CXX='-Bstatic'
16440	    lt_prog_compiler_wl_CXX='-Qoption ld '
16441	    ;;
16442	  gcx*)
16443	    # Green Hills C++ Compiler
16444	    lt_prog_compiler_pic_CXX='-PIC'
16445	    ;;
16446	  *)
16447	    ;;
16448	esac
16449	;;
16450      sunos4*)
16451	case $cc_basename in
16452	  CC*)
16453	    # Sun C++ 4.x
16454	    lt_prog_compiler_pic_CXX='-pic'
16455	    lt_prog_compiler_static_CXX='-Bstatic'
16456	    ;;
16457	  lcc*)
16458	    # Lucid
16459	    lt_prog_compiler_pic_CXX='-pic'
16460	    ;;
16461	  *)
16462	    ;;
16463	esac
16464	;;
16465      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16466	case $cc_basename in
16467	  CC*)
16468	    lt_prog_compiler_wl_CXX='-Wl,'
16469	    lt_prog_compiler_pic_CXX='-KPIC'
16470	    lt_prog_compiler_static_CXX='-Bstatic'
16471	    ;;
16472	esac
16473	;;
16474      tandem*)
16475	case $cc_basename in
16476	  NCC*)
16477	    # NonStop-UX NCC 3.20
16478	    lt_prog_compiler_pic_CXX='-KPIC'
16479	    ;;
16480	  *)
16481	    ;;
16482	esac
16483	;;
16484      vxworks*)
16485	;;
16486      *)
16487	lt_prog_compiler_can_build_shared_CXX=no
16488	;;
16489    esac
16490  fi
16491
16492case $host_os in
16493  # For platforms that do not support PIC, -DPIC is meaningless:
16494  *djgpp*)
16495    lt_prog_compiler_pic_CXX=
16496    ;;
16497  *)
16498    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16499    ;;
16500esac
16501
16502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16503printf %s "checking for $compiler option to produce PIC... " >&6; }
16504if test ${lt_cv_prog_compiler_pic_CXX+y}
16505then :
16506  printf %s "(cached) " >&6
16507else $as_nop
16508  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16509fi
16510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16511printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16512lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16513
16514#
16515# Check to make sure the PIC flag actually works.
16516#
16517if test -n "$lt_prog_compiler_pic_CXX"; then
16518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16519printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16520if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16521then :
16522  printf %s "(cached) " >&6
16523else $as_nop
16524  lt_cv_prog_compiler_pic_works_CXX=no
16525   ac_outfile=conftest.$ac_objext
16526   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16527   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16528   # Insert the option either (1) after the last *FLAGS variable, or
16529   # (2) before a word containing "conftest.", or (3) at the end.
16530   # Note that $ac_compile itself does not contain backslashes and begins
16531   # with a dollar sign (not a hyphen), so the echo should work correctly.
16532   # The option is referenced via a variable to avoid confusing sed.
16533   lt_compile=`echo "$ac_compile" | $SED \
16534   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16535   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16536   -e 's:$: $lt_compiler_flag:'`
16537   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16538   (eval "$lt_compile" 2>conftest.err)
16539   ac_status=$?
16540   cat conftest.err >&5
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   if (exit $ac_status) && test -s "$ac_outfile"; then
16543     # The compiler can only warn and ignore the option if not recognized
16544     # So say no if there are warnings other than the usual output.
16545     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16546     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16547     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16548       lt_cv_prog_compiler_pic_works_CXX=yes
16549     fi
16550   fi
16551   $RM conftest*
16552
16553fi
16554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16555printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16556
16557if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16558    case $lt_prog_compiler_pic_CXX in
16559     "" | " "*) ;;
16560     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16561     esac
16562else
16563    lt_prog_compiler_pic_CXX=
16564     lt_prog_compiler_can_build_shared_CXX=no
16565fi
16566
16567fi
16568
16569
16570
16571
16572
16573#
16574# Check to make sure the static flag actually works.
16575#
16576wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16578printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16579if test ${lt_cv_prog_compiler_static_works_CXX+y}
16580then :
16581  printf %s "(cached) " >&6
16582else $as_nop
16583  lt_cv_prog_compiler_static_works_CXX=no
16584   save_LDFLAGS=$LDFLAGS
16585   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16586   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16587   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16588     # The linker can only warn and ignore the option if not recognized
16589     # So say no if there are warnings
16590     if test -s conftest.err; then
16591       # Append any errors to the config.log.
16592       cat conftest.err 1>&5
16593       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16594       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16595       if diff conftest.exp conftest.er2 >/dev/null; then
16596         lt_cv_prog_compiler_static_works_CXX=yes
16597       fi
16598     else
16599       lt_cv_prog_compiler_static_works_CXX=yes
16600     fi
16601   fi
16602   $RM -r conftest*
16603   LDFLAGS=$save_LDFLAGS
16604
16605fi
16606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16607printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16608
16609if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16610    :
16611else
16612    lt_prog_compiler_static_CXX=
16613fi
16614
16615
16616
16617
16618    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16619printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16620if test ${lt_cv_prog_compiler_c_o_CXX+y}
16621then :
16622  printf %s "(cached) " >&6
16623else $as_nop
16624  lt_cv_prog_compiler_c_o_CXX=no
16625   $RM -r conftest 2>/dev/null
16626   mkdir conftest
16627   cd conftest
16628   mkdir out
16629   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16630
16631   lt_compiler_flag="-o out/conftest2.$ac_objext"
16632   # Insert the option either (1) after the last *FLAGS variable, or
16633   # (2) before a word containing "conftest.", or (3) at the end.
16634   # Note that $ac_compile itself does not contain backslashes and begins
16635   # with a dollar sign (not a hyphen), so the echo should work correctly.
16636   lt_compile=`echo "$ac_compile" | $SED \
16637   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16638   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16639   -e 's:$: $lt_compiler_flag:'`
16640   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16641   (eval "$lt_compile" 2>out/conftest.err)
16642   ac_status=$?
16643   cat out/conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16646   then
16647     # The compiler can only warn and ignore the option if not recognized
16648     # So say no if there are warnings
16649     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16650     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16651     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16652       lt_cv_prog_compiler_c_o_CXX=yes
16653     fi
16654   fi
16655   chmod u+w . 2>&5
16656   $RM conftest*
16657   # SGI C++ compiler will create directory out/ii_files/ for
16658   # template instantiation
16659   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16660   $RM out/* && rmdir out
16661   cd ..
16662   $RM -r conftest
16663   $RM conftest*
16664
16665fi
16666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16667printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16668
16669
16670
16671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16672printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16673if test ${lt_cv_prog_compiler_c_o_CXX+y}
16674then :
16675  printf %s "(cached) " >&6
16676else $as_nop
16677  lt_cv_prog_compiler_c_o_CXX=no
16678   $RM -r conftest 2>/dev/null
16679   mkdir conftest
16680   cd conftest
16681   mkdir out
16682   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16683
16684   lt_compiler_flag="-o out/conftest2.$ac_objext"
16685   # Insert the option either (1) after the last *FLAGS variable, or
16686   # (2) before a word containing "conftest.", or (3) at the end.
16687   # Note that $ac_compile itself does not contain backslashes and begins
16688   # with a dollar sign (not a hyphen), so the echo should work correctly.
16689   lt_compile=`echo "$ac_compile" | $SED \
16690   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16691   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16692   -e 's:$: $lt_compiler_flag:'`
16693   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16694   (eval "$lt_compile" 2>out/conftest.err)
16695   ac_status=$?
16696   cat out/conftest.err >&5
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16699   then
16700     # The compiler can only warn and ignore the option if not recognized
16701     # So say no if there are warnings
16702     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16703     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16704     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16705       lt_cv_prog_compiler_c_o_CXX=yes
16706     fi
16707   fi
16708   chmod u+w . 2>&5
16709   $RM conftest*
16710   # SGI C++ compiler will create directory out/ii_files/ for
16711   # template instantiation
16712   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16713   $RM out/* && rmdir out
16714   cd ..
16715   $RM -r conftest
16716   $RM conftest*
16717
16718fi
16719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16720printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16721
16722
16723
16724
16725hard_links=nottested
16726if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16727  # do not overwrite the value of need_locks provided by the user
16728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16729printf %s "checking if we can lock with hard links... " >&6; }
16730  hard_links=yes
16731  $RM conftest*
16732  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16733  touch conftest.a
16734  ln conftest.a conftest.b 2>&5 || hard_links=no
16735  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16737printf "%s\n" "$hard_links" >&6; }
16738  if test no = "$hard_links"; then
16739    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16740printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16741    need_locks=warn
16742  fi
16743else
16744  need_locks=no
16745fi
16746
16747
16748
16749    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16750printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16751
16752  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16753  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16754  case $host_os in
16755  aix[4-9]*)
16756    # If we're using GNU nm, then we don't want the "-C" option.
16757    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16758    # Without the "-l" option, or with the "-B" option, AIX nm treats
16759    # weak defined symbols like other global defined symbols, whereas
16760    # GNU nm marks them as "W".
16761    # While the 'weak' keyword is ignored in the Export File, we need
16762    # it in the Import File for the 'aix-soname' feature, so we have
16763    # to replace the "-B" option with "-P" for AIX nm.
16764    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16765      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'
16766    else
16767      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'
16768    fi
16769    ;;
16770  pw32*)
16771    export_symbols_cmds_CXX=$ltdll_cmds
16772    ;;
16773  cygwin* | mingw* | cegcc*)
16774    case $cc_basename in
16775    cl*)
16776      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16777      ;;
16778    *)
16779      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'
16780      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16781      ;;
16782    esac
16783    ;;
16784  *)
16785    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16786    ;;
16787  esac
16788
16789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16790printf "%s\n" "$ld_shlibs_CXX" >&6; }
16791test no = "$ld_shlibs_CXX" && can_build_shared=no
16792
16793with_gnu_ld_CXX=$with_gnu_ld
16794
16795
16796
16797
16798
16799
16800#
16801# Do we need to explicitly link libc?
16802#
16803case "x$archive_cmds_need_lc_CXX" in
16804x|xyes)
16805  # Assume -lc should be added
16806  archive_cmds_need_lc_CXX=yes
16807
16808  if test yes,yes = "$GCC,$enable_shared"; then
16809    case $archive_cmds_CXX in
16810    *'~'*)
16811      # FIXME: we may have to deal with multi-command sequences.
16812      ;;
16813    '$CC '*)
16814      # Test whether the compiler implicitly links with -lc since on some
16815      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16816      # to ld, don't add -lc before -lgcc.
16817      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16818printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16819if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16820then :
16821  printf %s "(cached) " >&6
16822else $as_nop
16823  $RM conftest*
16824	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16825
16826	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16827  (eval $ac_compile) 2>&5
16828  ac_status=$?
16829  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16830  test $ac_status = 0; } 2>conftest.err; then
16831	  soname=conftest
16832	  lib=conftest
16833	  libobjs=conftest.$ac_objext
16834	  deplibs=
16835	  wl=$lt_prog_compiler_wl_CXX
16836	  pic_flag=$lt_prog_compiler_pic_CXX
16837	  compiler_flags=-v
16838	  linker_flags=-v
16839	  verstring=
16840	  output_objdir=.
16841	  libname=conftest
16842	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16843	  allow_undefined_flag_CXX=
16844	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16845  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16846  ac_status=$?
16847  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16848  test $ac_status = 0; }
16849	  then
16850	    lt_cv_archive_cmds_need_lc_CXX=no
16851	  else
16852	    lt_cv_archive_cmds_need_lc_CXX=yes
16853	  fi
16854	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16855	else
16856	  cat conftest.err 1>&5
16857	fi
16858	$RM conftest*
16859
16860fi
16861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16862printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16863      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16864      ;;
16865    esac
16866  fi
16867  ;;
16868esac
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16932printf %s "checking dynamic linker characteristics... " >&6; }
16933
16934library_names_spec=
16935libname_spec='lib$name'
16936soname_spec=
16937shrext_cmds=.so
16938postinstall_cmds=
16939postuninstall_cmds=
16940finish_cmds=
16941finish_eval=
16942shlibpath_var=
16943shlibpath_overrides_runpath=unknown
16944version_type=none
16945dynamic_linker="$host_os ld.so"
16946sys_lib_dlsearch_path_spec="/lib /usr/lib"
16947need_lib_prefix=unknown
16948hardcode_into_libs=no
16949
16950# when you set need_version to no, make sure it does not cause -set_version
16951# flags to be left without arguments
16952need_version=unknown
16953
16954
16955
16956case $host_os in
16957aix3*)
16958  version_type=linux # correct to gnu/linux during the next big refactor
16959  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16960  shlibpath_var=LIBPATH
16961
16962  # AIX 3 has no versioning support, so we append a major version to the name.
16963  soname_spec='$libname$release$shared_ext$major'
16964  ;;
16965
16966aix[4-9]*)
16967  version_type=linux # correct to gnu/linux during the next big refactor
16968  need_lib_prefix=no
16969  need_version=no
16970  hardcode_into_libs=yes
16971  if test ia64 = "$host_cpu"; then
16972    # AIX 5 supports IA64
16973    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16974    shlibpath_var=LD_LIBRARY_PATH
16975  else
16976    # With GCC up to 2.95.x, collect2 would create an import file
16977    # for dependence libraries.  The import file would start with
16978    # the line '#! .'.  This would cause the generated library to
16979    # depend on '.', always an invalid library.  This was fixed in
16980    # development snapshots of GCC prior to 3.0.
16981    case $host_os in
16982      aix4 | aix4.[01] | aix4.[01].*)
16983      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16984	   echo ' yes '
16985	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16986	:
16987      else
16988	can_build_shared=no
16989      fi
16990      ;;
16991    esac
16992    # Using Import Files as archive members, it is possible to support
16993    # filename-based versioning of shared library archives on AIX. While
16994    # this would work for both with and without runtime linking, it will
16995    # prevent static linking of such archives. So we do filename-based
16996    # shared library versioning with .so extension only, which is used
16997    # when both runtime linking and shared linking is enabled.
16998    # Unfortunately, runtime linking may impact performance, so we do
16999    # not want this to be the default eventually. Also, we use the
17000    # versioned .so libs for executables only if there is the -brtl
17001    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17002    # To allow for filename-based versioning support, we need to create
17003    # libNAME.so.V as an archive file, containing:
17004    # *) an Import File, referring to the versioned filename of the
17005    #    archive as well as the shared archive member, telling the
17006    #    bitwidth (32 or 64) of that shared object, and providing the
17007    #    list of exported symbols of that shared object, eventually
17008    #    decorated with the 'weak' keyword
17009    # *) the shared object with the F_LOADONLY flag set, to really avoid
17010    #    it being seen by the linker.
17011    # At run time we better use the real file rather than another symlink,
17012    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17013
17014    case $with_aix_soname,$aix_use_runtimelinking in
17015    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17016    # soname into executable. Probably we can add versioning support to
17017    # collect2, so additional links can be useful in future.
17018    aix,yes) # traditional libtool
17019      dynamic_linker='AIX unversionable lib.so'
17020      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17021      # instead of lib<name>.a to let people know that these are not
17022      # typical AIX shared libraries.
17023      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17024      ;;
17025    aix,no) # traditional AIX only
17026      dynamic_linker='AIX lib.a(lib.so.V)'
17027      # We preserve .a as extension for shared libraries through AIX4.2
17028      # and later when we are not doing run time linking.
17029      library_names_spec='$libname$release.a $libname.a'
17030      soname_spec='$libname$release$shared_ext$major'
17031      ;;
17032    svr4,*) # full svr4 only
17033      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17034      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17035      # We do not specify a path in Import Files, so LIBPATH fires.
17036      shlibpath_overrides_runpath=yes
17037      ;;
17038    *,yes) # both, prefer svr4
17039      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17040      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17041      # unpreferred sharedlib libNAME.a needs extra handling
17042      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"'
17043      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"'
17044      # We do not specify a path in Import Files, so LIBPATH fires.
17045      shlibpath_overrides_runpath=yes
17046      ;;
17047    *,no) # both, prefer aix
17048      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17049      library_names_spec='$libname$release.a $libname.a'
17050      soname_spec='$libname$release$shared_ext$major'
17051      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17052      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)'
17053      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"'
17054      ;;
17055    esac
17056    shlibpath_var=LIBPATH
17057  fi
17058  ;;
17059
17060amigaos*)
17061  case $host_cpu in
17062  powerpc)
17063    # Since July 2007 AmigaOS4 officially supports .so libraries.
17064    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17065    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17066    ;;
17067  m68k)
17068    library_names_spec='$libname.ixlibrary $libname.a'
17069    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17070    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'
17071    ;;
17072  esac
17073  ;;
17074
17075beos*)
17076  library_names_spec='$libname$shared_ext'
17077  dynamic_linker="$host_os ld.so"
17078  shlibpath_var=LIBRARY_PATH
17079  ;;
17080
17081bsdi[45]*)
17082  version_type=linux # correct to gnu/linux during the next big refactor
17083  need_version=no
17084  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17085  soname_spec='$libname$release$shared_ext$major'
17086  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17087  shlibpath_var=LD_LIBRARY_PATH
17088  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17089  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17090  # the default ld.so.conf also contains /usr/contrib/lib and
17091  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17092  # libtool to hard-code these into programs
17093  ;;
17094
17095cygwin* | mingw* | pw32* | cegcc*)
17096  version_type=windows
17097  shrext_cmds=.dll
17098  need_version=no
17099  need_lib_prefix=no
17100
17101  case $GCC,$cc_basename in
17102  yes,*)
17103    # gcc
17104    library_names_spec='$libname.dll.a'
17105    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17106    postinstall_cmds='base_file=`basename \$file`~
17107      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17108      dldir=$destdir/`dirname \$dlpath`~
17109      test -d \$dldir || mkdir -p \$dldir~
17110      $install_prog $dir/$dlname \$dldir/$dlname~
17111      chmod a+x \$dldir/$dlname~
17112      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17113        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17114      fi'
17115    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17116      dlpath=$dir/\$dldll~
17117       $RM \$dlpath'
17118    shlibpath_overrides_runpath=yes
17119
17120    case $host_os in
17121    cygwin*)
17122      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17123      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17124
17125      ;;
17126    mingw* | cegcc*)
17127      # MinGW DLLs use traditional 'lib' prefix
17128      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17129      ;;
17130    pw32*)
17131      # pw32 DLLs use 'pw' prefix rather than 'lib'
17132      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17133      ;;
17134    esac
17135    dynamic_linker='Win32 ld.exe'
17136    ;;
17137
17138  *,cl*)
17139    # Native MSVC
17140    libname_spec='$name'
17141    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17142    library_names_spec='$libname.dll.lib'
17143
17144    case $build_os in
17145    mingw*)
17146      sys_lib_search_path_spec=
17147      lt_save_ifs=$IFS
17148      IFS=';'
17149      for lt_path in $LIB
17150      do
17151        IFS=$lt_save_ifs
17152        # Let DOS variable expansion print the short 8.3 style file name.
17153        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17154        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17155      done
17156      IFS=$lt_save_ifs
17157      # Convert to MSYS style.
17158      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17159      ;;
17160    cygwin*)
17161      # Convert to unix form, then to dos form, then back to unix form
17162      # but this time dos style (no spaces!) so that the unix form looks
17163      # like /cygdrive/c/PROGRA~1:/cygdr...
17164      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17165      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17166      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17167      ;;
17168    *)
17169      sys_lib_search_path_spec=$LIB
17170      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17171        # It is most probably a Windows format PATH.
17172        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17173      else
17174        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17175      fi
17176      # FIXME: find the short name or the path components, as spaces are
17177      # common. (e.g. "Program Files" -> "PROGRA~1")
17178      ;;
17179    esac
17180
17181    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17182    postinstall_cmds='base_file=`basename \$file`~
17183      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17184      dldir=$destdir/`dirname \$dlpath`~
17185      test -d \$dldir || mkdir -p \$dldir~
17186      $install_prog $dir/$dlname \$dldir/$dlname'
17187    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17188      dlpath=$dir/\$dldll~
17189       $RM \$dlpath'
17190    shlibpath_overrides_runpath=yes
17191    dynamic_linker='Win32 link.exe'
17192    ;;
17193
17194  *)
17195    # Assume MSVC wrapper
17196    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17197    dynamic_linker='Win32 ld.exe'
17198    ;;
17199  esac
17200  # FIXME: first we should search . and the directory the executable is in
17201  shlibpath_var=PATH
17202  ;;
17203
17204darwin* | rhapsody*)
17205  dynamic_linker="$host_os dyld"
17206  version_type=darwin
17207  need_lib_prefix=no
17208  need_version=no
17209  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
17210  soname_spec='$libname$release$major$shared_ext'
17211  shlibpath_overrides_runpath=yes
17212  shlibpath_var=DYLD_LIBRARY_PATH
17213  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
17214
17215  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17216  ;;
17217
17218dgux*)
17219  version_type=linux # correct to gnu/linux during the next big refactor
17220  need_lib_prefix=no
17221  need_version=no
17222  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17223  soname_spec='$libname$release$shared_ext$major'
17224  shlibpath_var=LD_LIBRARY_PATH
17225  ;;
17226
17227freebsd* | dragonfly*)
17228  # DragonFly does not have aout.  When/if they implement a new
17229  # versioning mechanism, adjust this.
17230  if test -x /usr/bin/objformat; then
17231    objformat=`/usr/bin/objformat`
17232  else
17233    case $host_os in
17234    freebsd[23].*) objformat=aout ;;
17235    *) objformat=elf ;;
17236    esac
17237  fi
17238  # Handle Gentoo/FreeBSD as it was Linux
17239  case $host_vendor in
17240    gentoo)
17241      version_type=linux ;;
17242    *)
17243      version_type=freebsd-$objformat ;;
17244  esac
17245
17246  case $version_type in
17247    freebsd-elf*)
17248      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17249      soname_spec='$libname$release$shared_ext$major'
17250      need_version=no
17251      need_lib_prefix=no
17252      ;;
17253    freebsd-*)
17254      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17255      need_version=yes
17256      ;;
17257    linux)
17258      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259      soname_spec='${libname}${release}${shared_ext}$major'
17260      need_lib_prefix=no
17261      need_version=no
17262      ;;
17263  esac
17264  shlibpath_var=LD_LIBRARY_PATH
17265  case $host_os in
17266  freebsd2.*)
17267    shlibpath_overrides_runpath=yes
17268    ;;
17269  freebsd3.[01]* | freebsdelf3.[01]*)
17270    shlibpath_overrides_runpath=yes
17271    hardcode_into_libs=yes
17272    ;;
17273  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17274  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17275    shlibpath_overrides_runpath=no
17276    hardcode_into_libs=yes
17277    ;;
17278  *) # from 4.6 on, and DragonFly
17279    shlibpath_overrides_runpath=yes
17280    hardcode_into_libs=yes
17281    ;;
17282  esac
17283  ;;
17284
17285haiku*)
17286  version_type=linux # correct to gnu/linux during the next big refactor
17287  need_lib_prefix=no
17288  need_version=no
17289  dynamic_linker="$host_os runtime_loader"
17290  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17291  soname_spec='$libname$release$shared_ext$major'
17292  shlibpath_var=LIBRARY_PATH
17293  shlibpath_overrides_runpath=no
17294  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17295  hardcode_into_libs=yes
17296  ;;
17297
17298hpux9* | hpux10* | hpux11*)
17299  # Give a soname corresponding to the major version so that dld.sl refuses to
17300  # link against other versions.
17301  version_type=sunos
17302  need_lib_prefix=no
17303  need_version=no
17304  case $host_cpu in
17305  ia64*)
17306    shrext_cmds='.so'
17307    hardcode_into_libs=yes
17308    dynamic_linker="$host_os dld.so"
17309    shlibpath_var=LD_LIBRARY_PATH
17310    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17311    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17312    soname_spec='$libname$release$shared_ext$major'
17313    if test 32 = "$HPUX_IA64_MODE"; then
17314      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17315      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17316    else
17317      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17318      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17319    fi
17320    ;;
17321  hppa*64*)
17322    shrext_cmds='.sl'
17323    hardcode_into_libs=yes
17324    dynamic_linker="$host_os dld.sl"
17325    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17326    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17327    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17328    soname_spec='$libname$release$shared_ext$major'
17329    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17330    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17331    ;;
17332  *)
17333    shrext_cmds='.sl'
17334    dynamic_linker="$host_os dld.sl"
17335    shlibpath_var=SHLIB_PATH
17336    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17337    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17338    soname_spec='$libname$release$shared_ext$major'
17339    ;;
17340  esac
17341  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17342  postinstall_cmds='chmod 555 $lib'
17343  # or fails outright, so override atomically:
17344  install_override_mode=555
17345  ;;
17346
17347interix[3-9]*)
17348  version_type=linux # correct to gnu/linux during the next big refactor
17349  need_lib_prefix=no
17350  need_version=no
17351  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17352  soname_spec='$libname$release$shared_ext$major'
17353  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17354  shlibpath_var=LD_LIBRARY_PATH
17355  shlibpath_overrides_runpath=no
17356  hardcode_into_libs=yes
17357  ;;
17358
17359irix5* | irix6* | nonstopux*)
17360  case $host_os in
17361    nonstopux*) version_type=nonstopux ;;
17362    *)
17363	if test yes = "$lt_cv_prog_gnu_ld"; then
17364		version_type=linux # correct to gnu/linux during the next big refactor
17365	else
17366		version_type=irix
17367	fi ;;
17368  esac
17369  need_lib_prefix=no
17370  need_version=no
17371  soname_spec='$libname$release$shared_ext$major'
17372  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17373  case $host_os in
17374  irix5* | nonstopux*)
17375    libsuff= shlibsuff=
17376    ;;
17377  *)
17378    case $LD in # libtool.m4 will add one of these switches to LD
17379    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17380      libsuff= shlibsuff= libmagic=32-bit;;
17381    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17382      libsuff=32 shlibsuff=N32 libmagic=N32;;
17383    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17384      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17385    *) libsuff= shlibsuff= libmagic=never-match;;
17386    esac
17387    ;;
17388  esac
17389  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17390  shlibpath_overrides_runpath=no
17391  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17392  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17393  hardcode_into_libs=yes
17394  ;;
17395
17396# No shared lib support for Linux oldld, aout, or coff.
17397linux*oldld* | linux*aout* | linux*coff*)
17398  dynamic_linker=no
17399  ;;
17400
17401linux*android*)
17402  version_type=none # Android doesn't support versioned libraries.
17403  need_lib_prefix=no
17404  need_version=no
17405  library_names_spec='$libname$release$shared_ext'
17406  soname_spec='$libname$release$shared_ext'
17407  finish_cmds=
17408  shlibpath_var=LD_LIBRARY_PATH
17409  shlibpath_overrides_runpath=yes
17410
17411  # This implies no fast_install, which is unacceptable.
17412  # Some rework will be needed to allow for fast_install
17413  # before this can be enabled.
17414  hardcode_into_libs=yes
17415
17416  dynamic_linker='Android linker'
17417  # Don't embed -rpath directories since the linker doesn't support them.
17418  hardcode_libdir_flag_spec_CXX='-L$libdir'
17419  ;;
17420
17421# This must be glibc/ELF.
17422linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17423  version_type=linux # correct to gnu/linux during the next big refactor
17424  need_lib_prefix=no
17425  need_version=no
17426  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17427  soname_spec='$libname$release$shared_ext$major'
17428  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17429  shlibpath_var=LD_LIBRARY_PATH
17430  shlibpath_overrides_runpath=no
17431
17432  # Some binutils ld are patched to set DT_RUNPATH
17433  if test ${lt_cv_shlibpath_overrides_runpath+y}
17434then :
17435  printf %s "(cached) " >&6
17436else $as_nop
17437  lt_cv_shlibpath_overrides_runpath=no
17438    save_LDFLAGS=$LDFLAGS
17439    save_libdir=$libdir
17440    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17441	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444
17445int
17446main (void)
17447{
17448
17449  ;
17450  return 0;
17451}
17452_ACEOF
17453if ac_fn_cxx_try_link "$LINENO"
17454then :
17455  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17456then :
17457  lt_cv_shlibpath_overrides_runpath=yes
17458fi
17459fi
17460rm -f core conftest.err conftest.$ac_objext conftest.beam \
17461    conftest$ac_exeext conftest.$ac_ext
17462    LDFLAGS=$save_LDFLAGS
17463    libdir=$save_libdir
17464
17465fi
17466
17467  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17468
17469  # This implies no fast_install, which is unacceptable.
17470  # Some rework will be needed to allow for fast_install
17471  # before this can be enabled.
17472  hardcode_into_libs=yes
17473
17474  # Ideally, we could use ldconfig to report *all* directores which are
17475  # searched for libraries, however this is still not possible.  Aside from not
17476  # being certain /sbin/ldconfig is available, command
17477  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17478  # even though it is searched at run-time.  Try to do the best guess by
17479  # appending ld.so.conf contents (and includes) to the search path.
17480  if test -f /etc/ld.so.conf; then
17481    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' ' '`
17482    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17483  fi
17484
17485  # We used to test for /lib/ld.so.1 and disable shared libraries on
17486  # powerpc, because MkLinux only supported shared libraries with the
17487  # GNU dynamic linker.  Since this was broken with cross compilers,
17488  # most powerpc-linux boxes support dynamic linking these days and
17489  # people can always --disable-shared, the test was removed, and we
17490  # assume the GNU/Linux dynamic linker is in use.
17491  dynamic_linker='GNU/Linux ld.so'
17492  ;;
17493
17494netbsd*)
17495  version_type=sunos
17496  need_lib_prefix=no
17497  need_version=no
17498  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17499    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17500    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17501    dynamic_linker='NetBSD (a.out) ld.so'
17502  else
17503    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17504    soname_spec='$libname$release$shared_ext$major'
17505    dynamic_linker='NetBSD ld.elf_so'
17506  fi
17507  shlibpath_var=LD_LIBRARY_PATH
17508  shlibpath_overrides_runpath=yes
17509  hardcode_into_libs=yes
17510  ;;
17511
17512newsos6)
17513  version_type=linux # correct to gnu/linux during the next big refactor
17514  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17515  shlibpath_var=LD_LIBRARY_PATH
17516  shlibpath_overrides_runpath=yes
17517  ;;
17518
17519*nto* | *qnx*)
17520  version_type=qnx
17521  need_lib_prefix=no
17522  need_version=no
17523  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17524  soname_spec='$libname$release$shared_ext$major'
17525  shlibpath_var=LD_LIBRARY_PATH
17526  shlibpath_overrides_runpath=no
17527  hardcode_into_libs=yes
17528  dynamic_linker='ldqnx.so'
17529  ;;
17530
17531openbsd* | bitrig*)
17532  version_type=sunos
17533  sys_lib_dlsearch_path_spec=/usr/lib
17534  need_lib_prefix=no
17535  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17536    need_version=no
17537  else
17538    need_version=yes
17539  fi
17540  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17542  shlibpath_var=LD_LIBRARY_PATH
17543  shlibpath_overrides_runpath=yes
17544  ;;
17545
17546os2*)
17547  libname_spec='$name'
17548  version_type=windows
17549  shrext_cmds=.dll
17550  need_version=no
17551  need_lib_prefix=no
17552  # OS/2 can only load a DLL with a base name of 8 characters or less.
17553  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17554    v=$($ECHO $release$versuffix | tr -d .-);
17555    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17556    $ECHO $n$v`$shared_ext'
17557  library_names_spec='${libname}_dll.$libext'
17558  dynamic_linker='OS/2 ld.exe'
17559  shlibpath_var=BEGINLIBPATH
17560  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17561  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17562  postinstall_cmds='base_file=`basename \$file`~
17563    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17564    dldir=$destdir/`dirname \$dlpath`~
17565    test -d \$dldir || mkdir -p \$dldir~
17566    $install_prog $dir/$dlname \$dldir/$dlname~
17567    chmod a+x \$dldir/$dlname~
17568    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17569      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17570    fi'
17571  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17572    dlpath=$dir/\$dldll~
17573    $RM \$dlpath'
17574  ;;
17575
17576osf3* | osf4* | osf5*)
17577  version_type=osf
17578  need_lib_prefix=no
17579  need_version=no
17580  soname_spec='$libname$release$shared_ext$major'
17581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17582  shlibpath_var=LD_LIBRARY_PATH
17583  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17584  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17585  ;;
17586
17587rdos*)
17588  dynamic_linker=no
17589  ;;
17590
17591solaris*)
17592  version_type=linux # correct to gnu/linux during the next big refactor
17593  need_lib_prefix=no
17594  need_version=no
17595  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17596  soname_spec='$libname$release$shared_ext$major'
17597  shlibpath_var=LD_LIBRARY_PATH
17598  shlibpath_overrides_runpath=yes
17599  hardcode_into_libs=yes
17600  # ldd complains unless libraries are executable
17601  postinstall_cmds='chmod +x $lib'
17602  ;;
17603
17604sunos4*)
17605  version_type=sunos
17606  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17607  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17608  shlibpath_var=LD_LIBRARY_PATH
17609  shlibpath_overrides_runpath=yes
17610  if test yes = "$with_gnu_ld"; then
17611    need_lib_prefix=no
17612  fi
17613  need_version=yes
17614  ;;
17615
17616sysv4 | sysv4.3*)
17617  version_type=linux # correct to gnu/linux during the next big refactor
17618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17619  soname_spec='$libname$release$shared_ext$major'
17620  shlibpath_var=LD_LIBRARY_PATH
17621  case $host_vendor in
17622    sni)
17623      shlibpath_overrides_runpath=no
17624      need_lib_prefix=no
17625      runpath_var=LD_RUN_PATH
17626      ;;
17627    siemens)
17628      need_lib_prefix=no
17629      ;;
17630    motorola)
17631      need_lib_prefix=no
17632      need_version=no
17633      shlibpath_overrides_runpath=no
17634      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17635      ;;
17636  esac
17637  ;;
17638
17639sysv4*MP*)
17640  if test -d /usr/nec; then
17641    version_type=linux # correct to gnu/linux during the next big refactor
17642    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17643    soname_spec='$libname$shared_ext.$major'
17644    shlibpath_var=LD_LIBRARY_PATH
17645  fi
17646  ;;
17647
17648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17649  version_type=sco
17650  need_lib_prefix=no
17651  need_version=no
17652  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17653  soname_spec='$libname$release$shared_ext$major'
17654  shlibpath_var=LD_LIBRARY_PATH
17655  shlibpath_overrides_runpath=yes
17656  hardcode_into_libs=yes
17657  if test yes = "$with_gnu_ld"; then
17658    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17659  else
17660    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17661    case $host_os in
17662      sco3.2v5*)
17663        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17664	;;
17665    esac
17666  fi
17667  sys_lib_dlsearch_path_spec='/usr/lib'
17668  ;;
17669
17670tpf*)
17671  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17672  version_type=linux # correct to gnu/linux during the next big refactor
17673  need_lib_prefix=no
17674  need_version=no
17675  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17676  shlibpath_var=LD_LIBRARY_PATH
17677  shlibpath_overrides_runpath=no
17678  hardcode_into_libs=yes
17679  ;;
17680
17681uts4*)
17682  version_type=linux # correct to gnu/linux during the next big refactor
17683  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17684  soname_spec='$libname$release$shared_ext$major'
17685  shlibpath_var=LD_LIBRARY_PATH
17686  ;;
17687
17688*)
17689  dynamic_linker=no
17690  ;;
17691esac
17692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17693printf "%s\n" "$dynamic_linker" >&6; }
17694test no = "$dynamic_linker" && can_build_shared=no
17695
17696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17697if test yes = "$GCC"; then
17698  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17699fi
17700
17701if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17702  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17703fi
17704
17705if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17706  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17707fi
17708
17709# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17710configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17711
17712# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17713func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17714
17715# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17716configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17758printf %s "checking how to hardcode library paths into programs... " >&6; }
17759hardcode_action_CXX=
17760if test -n "$hardcode_libdir_flag_spec_CXX" ||
17761   test -n "$runpath_var_CXX" ||
17762   test yes = "$hardcode_automatic_CXX"; then
17763
17764  # We can hardcode non-existent directories.
17765  if test no != "$hardcode_direct_CXX" &&
17766     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17767     # have to relink, otherwise we might link with an installed library
17768     # when we should be linking with a yet-to-be-installed one
17769     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17770     test no != "$hardcode_minus_L_CXX"; then
17771    # Linking always hardcodes the temporary library directory.
17772    hardcode_action_CXX=relink
17773  else
17774    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17775    hardcode_action_CXX=immediate
17776  fi
17777else
17778  # We cannot hardcode anything, or else we can only hardcode existing
17779  # directories.
17780  hardcode_action_CXX=unsupported
17781fi
17782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17783printf "%s\n" "$hardcode_action_CXX" >&6; }
17784
17785if test relink = "$hardcode_action_CXX" ||
17786   test yes = "$inherit_rpath_CXX"; then
17787  # Fast installation is not supported
17788  enable_fast_install=no
17789elif test yes = "$shlibpath_overrides_runpath" ||
17790     test no = "$enable_shared"; then
17791  # Fast installation is not necessary
17792  enable_fast_install=needless
17793fi
17794
17795
17796
17797
17798
17799
17800
17801  fi # test -n "$compiler"
17802
17803  CC=$lt_save_CC
17804  CFLAGS=$lt_save_CFLAGS
17805  LDCXX=$LD
17806  LD=$lt_save_LD
17807  GCC=$lt_save_GCC
17808  with_gnu_ld=$lt_save_with_gnu_ld
17809  lt_cv_path_LDCXX=$lt_cv_path_LD
17810  lt_cv_path_LD=$lt_save_path_LD
17811  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17812  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17813fi # test yes != "$_lt_caught_CXX_error"
17814
17815ac_ext=cpp
17816ac_cpp='$CXXCPP $CPPFLAGS'
17817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17820
17821
17822
17823if test "$GCC" = yes
17824then :
17825
17826
17827
17828
17829for flag in -Wall -Wextra; do
17830  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17832printf %s "checking whether C++ compiler accepts $flag... " >&6; }
17833if eval test \${$as_CACHEVAR+y}
17834then :
17835  printf %s "(cached) " >&6
17836else $as_nop
17837
17838  ax_check_save_flags=$CXXFLAGS
17839  CXXFLAGS="$CXXFLAGS  -Werror $flag"
17840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841/* end confdefs.h.  */
17842int main(void) { return 0; }
17843_ACEOF
17844if ac_fn_cxx_try_compile "$LINENO"
17845then :
17846  eval "$as_CACHEVAR=yes"
17847else $as_nop
17848  eval "$as_CACHEVAR=no"
17849fi
17850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17851  CXXFLAGS=$ax_check_save_flags
17852fi
17853eval ac_res=\$$as_CACHEVAR
17854	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17855printf "%s\n" "$ac_res" >&6; }
17856if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17857then :
17858
17859if test ${AM_CXXFLAGS+y}
17860then :
17861
17862  case " $AM_CXXFLAGS " in #(
17863  *" $flag "*) :
17864    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
17865  (: AM_CXXFLAGS already contains $flag) 2>&5
17866  ac_status=$?
17867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868  test $ac_status = 0; } ;; #(
17869  *) :
17870
17871     as_fn_append AM_CXXFLAGS " $flag"
17872     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17873  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17874  ac_status=$?
17875  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17876  test $ac_status = 0; }
17877     ;;
17878esac
17879
17880else $as_nop
17881
17882  AM_CXXFLAGS=$flag
17883  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17884  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17885  ac_status=$?
17886  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17887  test $ac_status = 0; }
17888
17889fi
17890
17891else $as_nop
17892  :
17893fi
17894
17895done
17896
17897
17898
17899
17900
17901for flag in -fexceptions; do
17902  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17904printf %s "checking whether C++ compiler accepts $flag... " >&6; }
17905if eval test \${$as_CACHEVAR+y}
17906then :
17907  printf %s "(cached) " >&6
17908else $as_nop
17909
17910  ax_check_save_flags=$CXXFLAGS
17911  CXXFLAGS="$CXXFLAGS  -Werror $flag"
17912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913/* end confdefs.h.  */
17914int main(void) { return 0; }
17915_ACEOF
17916if ac_fn_cxx_try_compile "$LINENO"
17917then :
17918  eval "$as_CACHEVAR=yes"
17919else $as_nop
17920  eval "$as_CACHEVAR=no"
17921fi
17922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17923  CXXFLAGS=$ax_check_save_flags
17924fi
17925eval ac_res=\$$as_CACHEVAR
17926	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17927printf "%s\n" "$ac_res" >&6; }
17928if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17929then :
17930
17931if test ${AM_CXXFLAGS+y}
17932then :
17933
17934  case " $AM_CXXFLAGS " in #(
17935  *" $flag "*) :
17936    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
17937  (: AM_CXXFLAGS already contains $flag) 2>&5
17938  ac_status=$?
17939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17940  test $ac_status = 0; } ;; #(
17941  *) :
17942
17943     as_fn_append AM_CXXFLAGS " $flag"
17944     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17945  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17946  ac_status=$?
17947  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17948  test $ac_status = 0; }
17949     ;;
17950esac
17951
17952else $as_nop
17953
17954  AM_CXXFLAGS=$flag
17955  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
17956  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
17957  ac_status=$?
17958  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17959  test $ac_status = 0; }
17960
17961fi
17962
17963else $as_nop
17964  :
17965fi
17966
17967done
17968
17969
17970
17971
17972
17973for flag in -fno-strict-aliasing; do
17974  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17976printf %s "checking whether C++ compiler accepts $flag... " >&6; }
17977if eval test \${$as_CACHEVAR+y}
17978then :
17979  printf %s "(cached) " >&6
17980else $as_nop
17981
17982  ax_check_save_flags=$CXXFLAGS
17983  CXXFLAGS="$CXXFLAGS  -Werror $flag"
17984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985/* end confdefs.h.  */
17986int main(void) { return 0; }
17987_ACEOF
17988if ac_fn_cxx_try_compile "$LINENO"
17989then :
17990  eval "$as_CACHEVAR=yes"
17991else $as_nop
17992  eval "$as_CACHEVAR=no"
17993fi
17994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17995  CXXFLAGS=$ax_check_save_flags
17996fi
17997eval ac_res=\$$as_CACHEVAR
17998	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17999printf "%s\n" "$ac_res" >&6; }
18000if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
18001then :
18002
18003if test ${AM_CXXFLAGS+y}
18004then :
18005
18006  case " $AM_CXXFLAGS " in #(
18007  *" $flag "*) :
18008    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
18009  (: AM_CXXFLAGS already contains $flag) 2>&5
18010  ac_status=$?
18011  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18012  test $ac_status = 0; } ;; #(
18013  *) :
18014
18015     as_fn_append AM_CXXFLAGS " $flag"
18016     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
18017  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
18018  ac_status=$?
18019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18020  test $ac_status = 0; }
18021     ;;
18022esac
18023
18024else $as_nop
18025
18026  AM_CXXFLAGS=$flag
18027  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
18028  (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
18029  ac_status=$?
18030  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18031  test $ac_status = 0; }
18032
18033fi
18034
18035else $as_nop
18036  :
18037fi
18038
18039done
18040
18041fi
18042ac_ext=c
18043ac_cpp='$CPP $CPPFLAGS'
18044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048
18049if test "$GCC" = yes
18050then :
18051
18052
18053
18054
18055for flag in -fno-strict-aliasing; do
18056  as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
18057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
18058printf %s "checking whether the linker accepts $flag... " >&6; }
18059if eval test \${$as_CACHEVAR+y}
18060then :
18061  printf %s "(cached) " >&6
18062else $as_nop
18063
18064  ax_check_save_flags=$LDFLAGS
18065  LDFLAGS="$LDFLAGS  $flag"
18066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067/* end confdefs.h.  */
18068
18069int
18070main (void)
18071{
18072
18073  ;
18074  return 0;
18075}
18076_ACEOF
18077if ac_fn_c_try_link "$LINENO"
18078then :
18079  eval "$as_CACHEVAR=yes"
18080else $as_nop
18081  eval "$as_CACHEVAR=no"
18082fi
18083rm -f core conftest.err conftest.$ac_objext conftest.beam \
18084    conftest$ac_exeext conftest.$ac_ext
18085  LDFLAGS=$ax_check_save_flags
18086fi
18087eval ac_res=\$$as_CACHEVAR
18088	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18089printf "%s\n" "$ac_res" >&6; }
18090if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
18091then :
18092
18093if test ${AM_LDFLAGS+y}
18094then :
18095
18096  case " $AM_LDFLAGS " in #(
18097  *" $flag "*) :
18098    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
18099  (: AM_LDFLAGS already contains $flag) 2>&5
18100  ac_status=$?
18101  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18102  test $ac_status = 0; } ;; #(
18103  *) :
18104
18105     as_fn_append AM_LDFLAGS " $flag"
18106     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
18107  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
18108  ac_status=$?
18109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18110  test $ac_status = 0; }
18111     ;;
18112esac
18113
18114else $as_nop
18115
18116  AM_LDFLAGS=$flag
18117  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
18118  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
18119  ac_status=$?
18120  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18121  test $ac_status = 0; }
18122
18123fi
18124
18125else $as_nop
18126  :
18127fi
18128
18129done
18130
18131fi
18132
18133case "$LD" in #(
18134  *clang*) :
18135    case "${host_os}" in #(
18136  *linux*) :
18137    archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
18138  *) :
18139     ;;
18140esac ;; #(
18141  *) :
18142     ;;
18143esac
18144
18145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
18146printf %s "checking whether compiler supports visibility... " >&6; }
18147if test ${expatcfg_cv_compiler_supports_visibility+y}
18148then :
18149  printf %s "(cached) " >&6
18150else $as_nop
18151  expatcfg_cv_compiler_supports_visibility=no
18152      OLDFLAGS=$CFLAGS
18153      as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
18154      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155/* end confdefs.h.  */
18156
18157          void __attribute__((visibility("default"))) foo(void);
18158          void foo(void) {}
18159
18160_ACEOF
18161if ac_fn_c_try_compile "$LINENO"
18162then :
18163  expatcfg_cv_compiler_supports_visibility=yes
18164fi
18165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18166      CFLAGS=$OLDFLAGS
18167fi
18168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
18169printf "%s\n" "$expatcfg_cv_compiler_supports_visibility" >&6; }
18170   if test "$expatcfg_cv_compiler_supports_visibility" = yes
18171then :
18172
18173
18174if test ${AM_CFLAGS+y}
18175then :
18176
18177  case " $AM_CFLAGS " in #(
18178  *" -fvisibility=hidden "*) :
18179    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
18180  (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
18181  ac_status=$?
18182  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18183  test $ac_status = 0; } ;; #(
18184  *) :
18185
18186     as_fn_append AM_CFLAGS " -fvisibility=hidden"
18187     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
18188  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
18189  ac_status=$?
18190  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18191  test $ac_status = 0; }
18192     ;;
18193esac
18194
18195else $as_nop
18196
18197  AM_CFLAGS=-fvisibility=hidden
18198  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
18199  (: AM_CFLAGS="$AM_CFLAGS") 2>&5
18200  ac_status=$?
18201  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202  test $ac_status = 0; }
18203
18204fi
18205
18206
18207if test ${AM_CPPFLAGS+y}
18208then :
18209
18210  case " $AM_CPPFLAGS " in #(
18211  *" -DXML_ENABLE_VISIBILITY=1 "*) :
18212    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
18213  (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
18214  ac_status=$?
18215  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18216  test $ac_status = 0; } ;; #(
18217  *) :
18218
18219     as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
18220     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
18221  (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
18222  ac_status=$?
18223  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224  test $ac_status = 0; }
18225     ;;
18226esac
18227
18228else $as_nop
18229
18230  AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
18231  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
18232  (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
18233  ac_status=$?
18234  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18235  test $ac_status = 0; }
18236
18237fi
18238
18239fi
18240
18241
18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18243printf %s "checking whether byte ordering is bigendian... " >&6; }
18244if test ${ac_cv_c_bigendian+y}
18245then :
18246  printf %s "(cached) " >&6
18247else $as_nop
18248  ac_cv_c_bigendian=unknown
18249    # See if we're dealing with a universal compiler.
18250    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251/* end confdefs.h.  */
18252#ifndef __APPLE_CC__
18253	       not a universal capable compiler
18254	     #endif
18255	     typedef int dummy;
18256
18257_ACEOF
18258if ac_fn_c_try_compile "$LINENO"
18259then :
18260
18261	# Check for potential -arch flags.  It is not universal unless
18262	# there are at least two -arch flags with different values.
18263	ac_arch=
18264	ac_prev=
18265	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18266	 if test -n "$ac_prev"; then
18267	   case $ac_word in
18268	     i?86 | x86_64 | ppc | ppc64)
18269	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18270		 ac_arch=$ac_word
18271	       else
18272		 ac_cv_c_bigendian=universal
18273		 break
18274	       fi
18275	       ;;
18276	   esac
18277	   ac_prev=
18278	 elif test "x$ac_word" = "x-arch"; then
18279	   ac_prev=arch
18280	 fi
18281       done
18282fi
18283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18284    if test $ac_cv_c_bigendian = unknown; then
18285      # See if sys/param.h defines the BYTE_ORDER macro.
18286      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287/* end confdefs.h.  */
18288#include <sys/types.h>
18289	     #include <sys/param.h>
18290
18291int
18292main (void)
18293{
18294#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18295		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18296		     && LITTLE_ENDIAN)
18297	      bogus endian macros
18298	     #endif
18299
18300  ;
18301  return 0;
18302}
18303_ACEOF
18304if ac_fn_c_try_compile "$LINENO"
18305then :
18306  # It does; now see whether it defined to BIG_ENDIAN or not.
18307	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308/* end confdefs.h.  */
18309#include <sys/types.h>
18310		#include <sys/param.h>
18311
18312int
18313main (void)
18314{
18315#if BYTE_ORDER != BIG_ENDIAN
18316		 not big endian
18317		#endif
18318
18319  ;
18320  return 0;
18321}
18322_ACEOF
18323if ac_fn_c_try_compile "$LINENO"
18324then :
18325  ac_cv_c_bigendian=yes
18326else $as_nop
18327  ac_cv_c_bigendian=no
18328fi
18329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18330fi
18331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18332    fi
18333    if test $ac_cv_c_bigendian = unknown; then
18334      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18335      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336/* end confdefs.h.  */
18337#include <limits.h>
18338
18339int
18340main (void)
18341{
18342#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18343	      bogus endian macros
18344	     #endif
18345
18346  ;
18347  return 0;
18348}
18349_ACEOF
18350if ac_fn_c_try_compile "$LINENO"
18351then :
18352  # It does; now see whether it defined to _BIG_ENDIAN or not.
18353	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354/* end confdefs.h.  */
18355#include <limits.h>
18356
18357int
18358main (void)
18359{
18360#ifndef _BIG_ENDIAN
18361		 not big endian
18362		#endif
18363
18364  ;
18365  return 0;
18366}
18367_ACEOF
18368if ac_fn_c_try_compile "$LINENO"
18369then :
18370  ac_cv_c_bigendian=yes
18371else $as_nop
18372  ac_cv_c_bigendian=no
18373fi
18374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18375fi
18376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18377    fi
18378    if test $ac_cv_c_bigendian = unknown; then
18379      # Compile a test program.
18380      if test "$cross_compiling" = yes
18381then :
18382  # Try to guess by grepping values from an object file.
18383	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384/* end confdefs.h.  */
18385unsigned short int ascii_mm[] =
18386		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18387		unsigned short int ascii_ii[] =
18388		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18389		int use_ascii (int i) {
18390		  return ascii_mm[i] + ascii_ii[i];
18391		}
18392		unsigned short int ebcdic_ii[] =
18393		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18394		unsigned short int ebcdic_mm[] =
18395		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18396		int use_ebcdic (int i) {
18397		  return ebcdic_mm[i] + ebcdic_ii[i];
18398		}
18399		extern int foo;
18400
18401int
18402main (void)
18403{
18404return use_ascii (foo) == use_ebcdic (foo);
18405  ;
18406  return 0;
18407}
18408_ACEOF
18409if ac_fn_c_try_compile "$LINENO"
18410then :
18411  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18412	      ac_cv_c_bigendian=yes
18413	    fi
18414	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18415	      if test "$ac_cv_c_bigendian" = unknown; then
18416		ac_cv_c_bigendian=no
18417	      else
18418		# finding both strings is unlikely to happen, but who knows?
18419		ac_cv_c_bigendian=unknown
18420	      fi
18421	    fi
18422fi
18423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18424else $as_nop
18425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426/* end confdefs.h.  */
18427$ac_includes_default
18428int
18429main (void)
18430{
18431
18432	     /* Are we little or big endian?  From Harbison&Steele.  */
18433	     union
18434	     {
18435	       long int l;
18436	       char c[sizeof (long int)];
18437	     } u;
18438	     u.l = 1;
18439	     return u.c[sizeof (long int) - 1] == 1;
18440
18441  ;
18442  return 0;
18443}
18444_ACEOF
18445if ac_fn_c_try_run "$LINENO"
18446then :
18447  ac_cv_c_bigendian=no
18448else $as_nop
18449  ac_cv_c_bigendian=yes
18450fi
18451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18452  conftest.$ac_objext conftest.beam conftest.$ac_ext
18453fi
18454
18455    fi
18456fi
18457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18458printf "%s\n" "$ac_cv_c_bigendian" >&6; }
18459 case $ac_cv_c_bigendian in #(
18460   yes)
18461     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
18462
18463                BYTEORDER=4321;; #(
18464   no)
18465     BYTEORDER=1234 ;; #(
18466   universal)
18467
18468printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18469
18470     ;; #(
18471   *)
18472     as_fn_error $? "unknown endianness
18473 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18474 esac
18475
18476
18477printf "%s\n" "#define BYTEORDER $BYTEORDER" >>confdefs.h
18478
18479
18480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18481printf %s "checking for an ANSI C-conforming const... " >&6; }
18482if test ${ac_cv_c_const+y}
18483then :
18484  printf %s "(cached) " >&6
18485else $as_nop
18486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487/* end confdefs.h.  */
18488
18489int
18490main (void)
18491{
18492
18493#ifndef __cplusplus
18494  /* Ultrix mips cc rejects this sort of thing.  */
18495  typedef int charset[2];
18496  const charset cs = { 0, 0 };
18497  /* SunOS 4.1.1 cc rejects this.  */
18498  char const *const *pcpcc;
18499  char **ppc;
18500  /* NEC SVR4.0.2 mips cc rejects this.  */
18501  struct point {int x, y;};
18502  static struct point const zero = {0,0};
18503  /* IBM XL C 1.02.0.0 rejects this.
18504     It does not let you subtract one const X* pointer from another in
18505     an arm of an if-expression whose if-part is not a constant
18506     expression */
18507  const char *g = "string";
18508  pcpcc = &g + (g ? g-g : 0);
18509  /* HPUX 7.0 cc rejects these. */
18510  ++pcpcc;
18511  ppc = (char**) pcpcc;
18512  pcpcc = (char const *const *) ppc;
18513  { /* SCO 3.2v4 cc rejects this sort of thing.  */
18514    char tx;
18515    char *t = &tx;
18516    char const *s = 0 ? (char *) 0 : (char const *) 0;
18517
18518    *t++ = 0;
18519    if (s) return 0;
18520  }
18521  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18522    int x[] = {25, 17};
18523    const int *foo = &x[0];
18524    ++foo;
18525  }
18526  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18527    typedef const int *iptr;
18528    iptr p = 0;
18529    ++p;
18530  }
18531  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
18532       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18533    struct s { int j; const int *ap[3]; } bx;
18534    struct s *b = &bx; b->j = 5;
18535  }
18536  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18537    const int foo = 10;
18538    if (!foo) return 0;
18539  }
18540  return !cs[0] && !zero.x;
18541#endif
18542
18543  ;
18544  return 0;
18545}
18546_ACEOF
18547if ac_fn_c_try_compile "$LINENO"
18548then :
18549  ac_cv_c_const=yes
18550else $as_nop
18551  ac_cv_c_const=no
18552fi
18553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18554fi
18555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18556printf "%s\n" "$ac_cv_c_const" >&6; }
18557if test $ac_cv_c_const = no; then
18558
18559printf "%s\n" "#define const /**/" >>confdefs.h
18560
18561fi
18562
18563ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18564if test "x$ac_cv_type_size_t" = xyes
18565then :
18566
18567else $as_nop
18568
18569printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18570
18571fi
18572
18573
18574
18575# Check whether --with-xmlwf was given.
18576if test ${with_xmlwf+y}
18577then :
18578  withval=$with_xmlwf;
18579else $as_nop
18580  with_xmlwf=yes
18581fi
18582
18583 if test x${with_xmlwf} = xyes; then
18584  WITH_XMLWF_TRUE=
18585  WITH_XMLWF_FALSE='#'
18586else
18587  WITH_XMLWF_TRUE='#'
18588  WITH_XMLWF_FALSE=
18589fi
18590
18591
18592
18593# Check whether --with-examples was given.
18594if test ${with_examples+y}
18595then :
18596  withval=$with_examples;
18597else $as_nop
18598  with_examples=yes
18599fi
18600
18601 if test x${with_examples} = xyes; then
18602  WITH_EXAMPLES_TRUE=
18603  WITH_EXAMPLES_FALSE='#'
18604else
18605  WITH_EXAMPLES_TRUE='#'
18606  WITH_EXAMPLES_FALSE=
18607fi
18608
18609
18610
18611# Check whether --with-tests was given.
18612if test ${with_tests+y}
18613then :
18614  withval=$with_tests;
18615else $as_nop
18616  with_tests=yes
18617fi
18618
18619 if test x${with_tests} = xyes; then
18620  WITH_TESTS_TRUE=
18621  WITH_TESTS_FALSE='#'
18622else
18623  WITH_TESTS_TRUE='#'
18624  WITH_TESTS_FALSE=
18625fi
18626
18627
18628
18629EXPATCFG_ON_MINGW=no
18630case "${host_os}" in #(
18631  mingw*) :
18632    EXPATCFG_ON_MINGW=yes
18633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
18634printf "%s\n" "$as_me: detected OS: MinGW" >&6;} ;; #(
18635  *) :
18636     ;;
18637esac
18638 if test x${EXPATCFG_ON_MINGW} = xyes; then
18639  MINGW_TRUE=
18640  MINGW_FALSE='#'
18641else
18642  MINGW_TRUE='#'
18643  MINGW_FALSE=
18644fi
18645
18646
18647 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
18648  UNICODE_TRUE=
18649  UNICODE_FALSE='#'
18650else
18651  UNICODE_TRUE='#'
18652  UNICODE_FALSE=
18653fi
18654
18655 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null; then
18656  _INTERNAL_UNICODE_WCHAR_T_TRUE=
18657  _INTERNAL_UNICODE_WCHAR_T_FALSE='#'
18658else
18659  _INTERNAL_UNICODE_WCHAR_T_TRUE='#'
18660  _INTERNAL_UNICODE_WCHAR_T_FALSE=
18661fi
18662
18663 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null; then
18664  _INTERNAL_MIN_SIZE_TRUE=
18665  _INTERNAL_MIN_SIZE_FALSE='#'
18666else
18667  _INTERNAL_MIN_SIZE_TRUE='#'
18668  _INTERNAL_MIN_SIZE_FALSE=
18669fi
18670
18671 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null; then
18672  _INTERNAL_LARGE_SIZE_TRUE=
18673  _INTERNAL_LARGE_SIZE_FALSE='#'
18674else
18675  _INTERNAL_LARGE_SIZE_TRUE='#'
18676  _INTERNAL_LARGE_SIZE_FALSE=
18677fi
18678
18679
18680
18681
18682# Check whether --with-libbsd was given.
18683if test ${with_libbsd+y}
18684then :
18685  withval=$with_libbsd;
18686else $as_nop
18687  with_libbsd=no
18688fi
18689
18690if test "x${with_libbsd}" != xno
18691then :
18692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
18693printf %s "checking for arc4random_buf in -lbsd... " >&6; }
18694if test ${ac_cv_lib_bsd_arc4random_buf+y}
18695then :
18696  printf %s "(cached) " >&6
18697else $as_nop
18698  ac_check_lib_save_LIBS=$LIBS
18699LIBS="-lbsd  $LIBS"
18700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701/* end confdefs.h.  */
18702
18703/* Override any GCC internal prototype to avoid an error.
18704   Use char because int might match the return type of a GCC
18705   builtin and then its argument prototype would still apply.  */
18706char arc4random_buf ();
18707int
18708main (void)
18709{
18710return arc4random_buf ();
18711  ;
18712  return 0;
18713}
18714_ACEOF
18715if ac_fn_c_try_link "$LINENO"
18716then :
18717  ac_cv_lib_bsd_arc4random_buf=yes
18718else $as_nop
18719  ac_cv_lib_bsd_arc4random_buf=no
18720fi
18721rm -f core conftest.err conftest.$ac_objext conftest.beam \
18722    conftest$ac_exeext conftest.$ac_ext
18723LIBS=$ac_check_lib_save_LIBS
18724fi
18725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
18726printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; }
18727if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes
18728then :
18729  printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
18730
18731  LIBS="-lbsd $LIBS"
18732
18733else $as_nop
18734  if test "x${with_libbsd}" = xyes
18735then :
18736  as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
18737fi
18738fi
18739
18740fi
18741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
18742printf %s "checking for arc4random_buf (BSD or libbsd)... " >&6; }
18743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744/* end confdefs.h.  */
18745
18746    #include <stdlib.h>  /* for arc4random_buf on BSD, for NULL */
18747    #if defined(HAVE_LIBBSD)
18748    # include <bsd/stdlib.h>
18749    #endif
18750    int main() {
18751      arc4random_buf(NULL, 0U);
18752      return 0;
18753    }
18754
18755_ACEOF
18756if ac_fn_c_try_link "$LINENO"
18757then :
18758
18759printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
18760
18761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18762printf "%s\n" "yes" >&6; }
18763else $as_nop
18764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765printf "%s\n" "no" >&6; }
18766
18767   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
18768printf %s "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
18769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770/* end confdefs.h.  */
18771
18772       #if defined(HAVE_LIBBSD)
18773       # include <bsd/stdlib.h>
18774       #else
18775       # include <stdlib.h>
18776       #endif
18777       int main() {
18778          arc4random();
18779          return 0;
18780       }
18781
18782_ACEOF
18783if ac_fn_c_try_link "$LINENO"
18784then :
18785
18786printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18787
18788      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18789printf "%s\n" "yes" >&6; }
18790else $as_nop
18791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792printf "%s\n" "no" >&6; }
18793fi
18794rm -f core conftest.err conftest.$ac_objext conftest.beam \
18795    conftest$ac_exeext conftest.$ac_ext
18796fi
18797rm -f core conftest.err conftest.$ac_objext conftest.beam \
18798    conftest$ac_exeext conftest.$ac_ext
18799
18800
18801# Check whether --with-getrandom was given.
18802if test ${with_getrandom+y}
18803then :
18804  withval=$with_getrandom;
18805else $as_nop
18806  with_getrandom=check
18807fi
18808
18809
18810if test "x$with_getrandom" != xno
18811then :
18812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
18813printf %s "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
18814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815/* end confdefs.h.  */
18816
18817       #include <stdlib.h>  /* for NULL */
18818       #include <sys/random.h>
18819       int main() {
18820         return getrandom(NULL, 0U, 0U);
18821       }
18822
18823_ACEOF
18824if ac_fn_c_try_link "$LINENO"
18825then :
18826
18827printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
18828
18829      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18830printf "%s\n" "yes" >&6; }
18831else $as_nop
18832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18833printf "%s\n" "no" >&6; }
18834      if test "x$with_getrandom" = xyes
18835then :
18836  as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
18837fi
18838fi
18839rm -f core conftest.err conftest.$ac_objext conftest.beam \
18840    conftest$ac_exeext conftest.$ac_ext
18841fi
18842
18843
18844# Check whether --with-sys_getrandom was given.
18845if test ${with_sys_getrandom+y}
18846then :
18847  withval=$with_sys_getrandom;
18848else $as_nop
18849  with_sys_getrandom=check
18850fi
18851
18852
18853if test "x$with_sys_getrandom" != xno
18854then :
18855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
18856printf %s "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
18857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858/* end confdefs.h.  */
18859
18860       #include <stdlib.h>  /* for NULL */
18861       #include <unistd.h>  /* for syscall */
18862       #include <sys/syscall.h>  /* for SYS_getrandom */
18863       int main() {
18864         syscall(SYS_getrandom, NULL, 0, 0);
18865         return 0;
18866     }
18867
18868_ACEOF
18869if ac_fn_c_try_link "$LINENO"
18870then :
18871
18872printf "%s\n" "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
18873
18874      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18875printf "%s\n" "yes" >&6; }
18876else $as_nop
18877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18878printf "%s\n" "no" >&6; }
18879      if test "x$with_sys_getrandom" = xyes
18880then :
18881  as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
18882fi
18883fi
18884rm -f core conftest.err conftest.$ac_objext conftest.beam \
18885    conftest$ac_exeext conftest.$ac_ext
18886fi
18887
18888ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
18889if test "x$ac_cv_header_fcntl_h" = xyes
18890then :
18891  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
18892
18893fi
18894ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18895if test "x$ac_cv_header_unistd_h" = xyes
18896then :
18897  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18898
18899fi
18900
18901ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18902if test "x$ac_cv_type_off_t" = xyes
18903then :
18904
18905else $as_nop
18906
18907printf "%s\n" "#define off_t long int" >>confdefs.h
18908
18909fi
18910
18911
18912ac_func=
18913for ac_item in $ac_func_c_list
18914do
18915  if test $ac_func; then
18916    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18917    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18918      echo "#define $ac_item 1" >> confdefs.h
18919    fi
18920    ac_func=
18921  else
18922    ac_func=$ac_item
18923  fi
18924done
18925
18926
18927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18928printf %s "checking for working mmap... " >&6; }
18929if test ${ac_cv_func_mmap_fixed_mapped+y}
18930then :
18931  printf %s "(cached) " >&6
18932else $as_nop
18933  if test "$cross_compiling" = yes
18934then :
18935  case "$host_os" in # ((
18936			  # Guess yes on platforms where we know the result.
18937		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
18938			  # If we don't know, assume the worst.
18939		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
18940		esac
18941else $as_nop
18942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943/* end confdefs.h.  */
18944$ac_includes_default
18945/* malloc might have been renamed as rpl_malloc. */
18946#undef malloc
18947
18948/* Thanks to Mike Haertel and Jim Avera for this test.
18949   Here is a matrix of mmap possibilities:
18950	mmap private not fixed
18951	mmap private fixed at somewhere currently unmapped
18952	mmap private fixed at somewhere already mapped
18953	mmap shared not fixed
18954	mmap shared fixed at somewhere currently unmapped
18955	mmap shared fixed at somewhere already mapped
18956   For private mappings, we should verify that changes cannot be read()
18957   back from the file, nor mmap's back from the file at a different
18958   address.  (There have been systems where private was not correctly
18959   implemented like the infamous i386 svr4.0, and systems where the
18960   VM page cache was not coherent with the file system buffer cache
18961   like early versions of FreeBSD and possibly contemporary NetBSD.)
18962   For shared mappings, we should conversely verify that changes get
18963   propagated back to all the places they're supposed to be.
18964
18965   Grep wants private fixed already mapped.
18966   The main things grep needs to know about mmap are:
18967   * does it exist and is it safe to write into the mmap'd area
18968   * how to use it (BSD variants)  */
18969
18970#include <fcntl.h>
18971#include <sys/mman.h>
18972
18973/* This mess was copied from the GNU getpagesize.h.  */
18974#ifndef HAVE_GETPAGESIZE
18975# ifdef _SC_PAGESIZE
18976#  define getpagesize() sysconf(_SC_PAGESIZE)
18977# else /* no _SC_PAGESIZE */
18978#  ifdef HAVE_SYS_PARAM_H
18979#   include <sys/param.h>
18980#   ifdef EXEC_PAGESIZE
18981#    define getpagesize() EXEC_PAGESIZE
18982#   else /* no EXEC_PAGESIZE */
18983#    ifdef NBPG
18984#     define getpagesize() NBPG * CLSIZE
18985#     ifndef CLSIZE
18986#      define CLSIZE 1
18987#     endif /* no CLSIZE */
18988#    else /* no NBPG */
18989#     ifdef NBPC
18990#      define getpagesize() NBPC
18991#     else /* no NBPC */
18992#      ifdef PAGESIZE
18993#       define getpagesize() PAGESIZE
18994#      endif /* PAGESIZE */
18995#     endif /* no NBPC */
18996#    endif /* no NBPG */
18997#   endif /* no EXEC_PAGESIZE */
18998#  else /* no HAVE_SYS_PARAM_H */
18999#   define getpagesize() 8192	/* punt totally */
19000#  endif /* no HAVE_SYS_PARAM_H */
19001# endif /* no _SC_PAGESIZE */
19002
19003#endif /* no HAVE_GETPAGESIZE */
19004
19005int
19006main (void)
19007{
19008  char *data, *data2, *data3;
19009  const char *cdata2;
19010  int i, pagesize;
19011  int fd, fd2;
19012
19013  pagesize = getpagesize ();
19014
19015  /* First, make a file with some known garbage in it. */
19016  data = (char *) malloc (pagesize);
19017  if (!data)
19018    return 1;
19019  for (i = 0; i < pagesize; ++i)
19020    *(data + i) = rand ();
19021  umask (0);
19022  fd = creat ("conftest.mmap", 0600);
19023  if (fd < 0)
19024    return 2;
19025  if (write (fd, data, pagesize) != pagesize)
19026    return 3;
19027  close (fd);
19028
19029  /* Next, check that the tail of a page is zero-filled.  File must have
19030     non-zero length, otherwise we risk SIGBUS for entire page.  */
19031  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19032  if (fd2 < 0)
19033    return 4;
19034  cdata2 = "";
19035  if (write (fd2, cdata2, 1) != 1)
19036    return 5;
19037  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19038  if (data2 == MAP_FAILED)
19039    return 6;
19040  for (i = 0; i < pagesize; ++i)
19041    if (*(data2 + i))
19042      return 7;
19043  close (fd2);
19044  if (munmap (data2, pagesize))
19045    return 8;
19046
19047  /* Next, try to mmap the file at a fixed address which already has
19048     something else allocated at it.  If we can, also make sure that
19049     we see the same garbage.  */
19050  fd = open ("conftest.mmap", O_RDWR);
19051  if (fd < 0)
19052    return 9;
19053  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19054		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
19055    return 10;
19056  for (i = 0; i < pagesize; ++i)
19057    if (*(data + i) != *(data2 + i))
19058      return 11;
19059
19060  /* Finally, make sure that changes to the mapped area do not
19061     percolate back to the file as seen by read().  (This is a bug on
19062     some variants of i386 svr4.0.)  */
19063  for (i = 0; i < pagesize; ++i)
19064    *(data2 + i) = *(data2 + i) + 1;
19065  data3 = (char *) malloc (pagesize);
19066  if (!data3)
19067    return 12;
19068  if (read (fd, data3, pagesize) != pagesize)
19069    return 13;
19070  for (i = 0; i < pagesize; ++i)
19071    if (*(data + i) != *(data3 + i))
19072      return 14;
19073  close (fd);
19074  free (data);
19075  free (data3);
19076  return 0;
19077}
19078_ACEOF
19079if ac_fn_c_try_run "$LINENO"
19080then :
19081  ac_cv_func_mmap_fixed_mapped=yes
19082else $as_nop
19083  ac_cv_func_mmap_fixed_mapped=no
19084fi
19085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19086  conftest.$ac_objext conftest.beam conftest.$ac_ext
19087fi
19088
19089fi
19090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19091printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
19092if test $ac_cv_func_mmap_fixed_mapped = yes; then
19093
19094printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
19095
19096fi
19097rm -f conftest.mmap conftest.txt
19098
19099
19100if test "$ac_cv_func_mmap_fixed_mapped" = "yes"
19101then :
19102  FILEMAP=unixfilemap
19103else $as_nop
19104  FILEMAP=readfilemap
19105fi
19106
19107
19108
19109
19110printf "%s\n" "#define XML_NS 1" >>confdefs.h
19111
19112
19113printf "%s\n" "#define XML_DTD 1" >>confdefs.h
19114
19115
19116printf "%s\n" "#define XML_DEV_URANDOM 1" >>confdefs.h
19117
19118
19119# Check whether --enable-xml-attr-info was given.
19120if test ${enable_xml_attr_info+y}
19121then :
19122  enableval=$enable_xml_attr_info;
19123else $as_nop
19124  enable_xml_attr_info=no
19125fi
19126
19127if test "x${enable_xml_attr_info}" = "xyes"
19128then :
19129
19130printf "%s\n" "#define XML_ATTR_INFO 1" >>confdefs.h
19131
19132fi
19133
19134# Check whether --enable-xml-context was given.
19135if test ${enable_xml_context+y}
19136then :
19137  enableval=$enable_xml_context; enable_xml_context=${enableval}
19138fi
19139
19140if test "x${enable_xml_context}" != "xno"
19141then :
19142  if test "x${enable_xml_context}" = "xyes" \
19143            -o "x${enable_xml_context}" = "x"
19144then :
19145  enable_xml_context=1024
19146fi
19147
19148printf "%s\n" "#define XML_CONTEXT_BYTES ${enable_xml_context}" >>confdefs.h
19149
19150fi
19151
19152
19153# Check whether --with-docbook was given.
19154if test ${with_docbook+y}
19155then :
19156  withval=$with_docbook;
19157else $as_nop
19158  with_docbook=check
19159fi
19160
19161
19162
19163if test "x$with_docbook" != xno
19164then :
19165  for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
19166do
19167  # Extract the first word of "$ac_prog", so it can be a program name with args.
19168set dummy $ac_prog; ac_word=$2
19169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19170printf %s "checking for $ac_word... " >&6; }
19171if test ${ac_cv_prog_DOCBOOK_TO_MAN+y}
19172then :
19173  printf %s "(cached) " >&6
19174else $as_nop
19175  if test -n "$DOCBOOK_TO_MAN"; then
19176  ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
19177else
19178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19179for as_dir in $PATH
19180do
19181  IFS=$as_save_IFS
19182  case $as_dir in #(((
19183    '') as_dir=./ ;;
19184    */) ;;
19185    *) as_dir=$as_dir/ ;;
19186  esac
19187    for ac_exec_ext in '' $ac_executable_extensions; do
19188  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19189    ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
19190    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19191    break 2
19192  fi
19193done
19194  done
19195IFS=$as_save_IFS
19196
19197fi
19198fi
19199DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
19200if test -n "$DOCBOOK_TO_MAN"; then
19201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
19202printf "%s\n" "$DOCBOOK_TO_MAN" >&6; }
19203else
19204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19205printf "%s\n" "no" >&6; }
19206fi
19207
19208
19209  test -n "$DOCBOOK_TO_MAN" && break
19210done
19211
19212fi
19213if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes
19214then :
19215  as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
19216fi
19217if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno
19218then :
19219  if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase
19220then :
19221  as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
19222  than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
19223  configure to command docbook2x-man of docbook2X.
19224  Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
19225  You can also configure using --without-docbook if you can do without a man
19226  page for xmlwf." "$LINENO" 5
19227fi
19228fi
19229
19230 if test "x${DOCBOOK_TO_MAN}" != x; then
19231  WITH_DOCBOOK_TRUE=
19232  WITH_DOCBOOK_FALSE='#'
19233else
19234  WITH_DOCBOOK_TRUE='#'
19235  WITH_DOCBOOK_FALSE=
19236fi
19237
19238
19239
19240if test "x${enable_xml_attr_info}" = xyes
19241then :
19242  EXPAT_ATTR_INFO=ON
19243else $as_nop
19244  EXPAT_ATTR_INFO=OFF
19245fi
19246EXPAT_DTD=ON
19247if test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x
19248then :
19249  EXPAT_LARGE_SIZE=ON
19250else $as_nop
19251  EXPAT_LARGE_SIZE=OFF
19252fi
19253if test "x${_INTERNAL_MIN_SIZE_TRUE}" = x
19254then :
19255  EXPAT_MIN_SIZE=ON
19256else $as_nop
19257  EXPAT_MIN_SIZE=OFF
19258fi
19259EXPAT_NS=ON
19260if test "x${enable_xml_context}" != xno
19261then :
19262  EXPAT_CONTEXT_BYTES=${enable_xml_context}
19263else $as_nop
19264  EXPAT_CONTEXT_BYTES=OFF
19265fi
19266if test "x${UNICODE_TRUE}" = x
19267then :
19268  if test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x
19269then :
19270  EXPAT_CHAR_TYPE=wchar_t
19271else $as_nop
19272  EXPAT_CHAR_TYPE=ushort
19273fi
19274else $as_nop
19275  EXPAT_CHAR_TYPE=char
19276fi
19277PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
19278LIBDIR_BASENAME="$(basename "${libdir}")"
19279SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
19280SO_MINOR="${LIBAGE}"
19281SO_PATCH="${LIBREVISION}"
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301_EXPAT_OUTPUT_NAME="$PACKAGE_NAME"
19302
19303
19304ac_config_files="$ac_config_files Makefile expat.pc cmake/expat-config.cmake cmake/autotools/expat-config-version.cmake cmake/autotools/expat-noconfig.cmake doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
19305
19306ac_config_files="$ac_config_files run.sh"
19307
19308cat >confcache <<\_ACEOF
19309# This file is a shell script that caches the results of configure
19310# tests run on this system so they can be shared between configure
19311# scripts and configure runs, see configure's option --config-cache.
19312# It is not useful on other systems.  If it contains results you don't
19313# want to keep, you may remove or edit it.
19314#
19315# config.status only pays attention to the cache file if you give it
19316# the --recheck option to rerun configure.
19317#
19318# `ac_cv_env_foo' variables (set or unset) will be overridden when
19319# loading this file, other *unset* `ac_cv_foo' will be assigned the
19320# following values.
19321
19322_ACEOF
19323
19324# The following way of writing the cache mishandles newlines in values,
19325# but we know of no workaround that is simple, portable, and efficient.
19326# So, we kill variables containing newlines.
19327# Ultrix sh set writes to stderr and can't be redirected directly,
19328# and sets the high bit in the cache file unless we assign to the vars.
19329(
19330  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19331    eval ac_val=\$$ac_var
19332    case $ac_val in #(
19333    *${as_nl}*)
19334      case $ac_var in #(
19335      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19336printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19337      esac
19338      case $ac_var in #(
19339      _ | IFS | as_nl) ;; #(
19340      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19341      *) { eval $ac_var=; unset $ac_var;} ;;
19342      esac ;;
19343    esac
19344  done
19345
19346  (set) 2>&1 |
19347    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19348    *${as_nl}ac_space=\ *)
19349      # `set' does not quote correctly, so add quotes: double-quote
19350      # substitution turns \\\\ into \\, and sed turns \\ into \.
19351      sed -n \
19352	"s/'/'\\\\''/g;
19353	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19354      ;; #(
19355    *)
19356      # `set' quotes correctly as required by POSIX, so do not add quotes.
19357      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19358      ;;
19359    esac |
19360    sort
19361) |
19362  sed '
19363     /^ac_cv_env_/b end
19364     t clear
19365     :clear
19366     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19367     t end
19368     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19369     :end' >>confcache
19370if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19371  if test -w "$cache_file"; then
19372    if test "x$cache_file" != "x/dev/null"; then
19373      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19374printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19375      if test ! -f "$cache_file" || test -h "$cache_file"; then
19376	cat confcache >"$cache_file"
19377      else
19378        case $cache_file in #(
19379        */* | ?:*)
19380	  mv -f confcache "$cache_file"$$ &&
19381	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19382        *)
19383	  mv -f confcache "$cache_file" ;;
19384	esac
19385      fi
19386    fi
19387  else
19388    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19389printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19390  fi
19391fi
19392rm -f confcache
19393
19394test "x$prefix" = xNONE && prefix=$ac_default_prefix
19395# Let make expand exec_prefix.
19396test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19397
19398DEFS=-DHAVE_CONFIG_H
19399
19400ac_libobjs=
19401ac_ltlibobjs=
19402U=
19403for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19404  # 1. Remove the extension, and $U if already installed.
19405  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19406  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19407  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19408  #    will be set to the directory where LIBOBJS objects are built.
19409  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19410  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19411done
19412LIBOBJS=$ac_libobjs
19413
19414LTLIBOBJS=$ac_ltlibobjs
19415
19416
19417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19418printf %s "checking that generated files are newer than configure... " >&6; }
19419   if test -n "$am_sleep_pid"; then
19420     # Hide warnings about reused PIDs.
19421     wait $am_sleep_pid 2>/dev/null
19422   fi
19423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19424printf "%s\n" "done" >&6; }
19425 if test -n "$EXEEXT"; then
19426  am__EXEEXT_TRUE=
19427  am__EXEEXT_FALSE='#'
19428else
19429  am__EXEEXT_TRUE='#'
19430  am__EXEEXT_FALSE=
19431fi
19432
19433if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19434  as_fn_error $? "conditional \"AMDEP\" was never defined.
19435Usually this means the macro was only invoked conditionally." "$LINENO" 5
19436fi
19437if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19438  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19439Usually this means the macro was only invoked conditionally." "$LINENO" 5
19440fi
19441if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19442  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19443Usually this means the macro was only invoked conditionally." "$LINENO" 5
19444fi
19445
19446if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
19447  as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
19448Usually this means the macro was only invoked conditionally." "$LINENO" 5
19449fi
19450if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
19451  as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
19452Usually this means the macro was only invoked conditionally." "$LINENO" 5
19453fi
19454if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
19455  as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
19456Usually this means the macro was only invoked conditionally." "$LINENO" 5
19457fi
19458if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
19459  as_fn_error $? "conditional \"MINGW\" was never defined.
19460Usually this means the macro was only invoked conditionally." "$LINENO" 5
19461fi
19462if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
19463  as_fn_error $? "conditional \"UNICODE\" was never defined.
19464Usually this means the macro was only invoked conditionally." "$LINENO" 5
19465fi
19466if test -z "${_INTERNAL_UNICODE_WCHAR_T_TRUE}" && test -z "${_INTERNAL_UNICODE_WCHAR_T_FALSE}"; then
19467  as_fn_error $? "conditional \"_INTERNAL_UNICODE_WCHAR_T\" was never defined.
19468Usually this means the macro was only invoked conditionally." "$LINENO" 5
19469fi
19470if test -z "${_INTERNAL_MIN_SIZE_TRUE}" && test -z "${_INTERNAL_MIN_SIZE_FALSE}"; then
19471  as_fn_error $? "conditional \"_INTERNAL_MIN_SIZE\" was never defined.
19472Usually this means the macro was only invoked conditionally." "$LINENO" 5
19473fi
19474if test -z "${_INTERNAL_LARGE_SIZE_TRUE}" && test -z "${_INTERNAL_LARGE_SIZE_FALSE}"; then
19475  as_fn_error $? "conditional \"_INTERNAL_LARGE_SIZE\" was never defined.
19476Usually this means the macro was only invoked conditionally." "$LINENO" 5
19477fi
19478if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then
19479  as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined.
19480Usually this means the macro was only invoked conditionally." "$LINENO" 5
19481fi
19482
19483: "${CONFIG_STATUS=./config.status}"
19484ac_write_fail=0
19485ac_clean_files_save=$ac_clean_files
19486ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19488printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19489as_write_fail=0
19490cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19491#! $SHELL
19492# Generated by $as_me.
19493# Run this file to recreate the current configuration.
19494# Compiler output produced by configure, useful for debugging
19495# configure, is in config.log if it exists.
19496
19497debug=false
19498ac_cs_recheck=false
19499ac_cs_silent=false
19500
19501SHELL=\${CONFIG_SHELL-$SHELL}
19502export SHELL
19503_ASEOF
19504cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19505## -------------------- ##
19506## M4sh Initialization. ##
19507## -------------------- ##
19508
19509# Be more Bourne compatible
19510DUALCASE=1; export DUALCASE # for MKS sh
19511as_nop=:
19512if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19513then :
19514  emulate sh
19515  NULLCMD=:
19516  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19517  # is contrary to our usage.  Disable this feature.
19518  alias -g '${1+"$@"}'='"$@"'
19519  setopt NO_GLOB_SUBST
19520else $as_nop
19521  case `(set -o) 2>/dev/null` in #(
19522  *posix*) :
19523    set -o posix ;; #(
19524  *) :
19525     ;;
19526esac
19527fi
19528
19529
19530
19531# Reset variables that may have inherited troublesome values from
19532# the environment.
19533
19534# IFS needs to be set, to space, tab, and newline, in precisely that order.
19535# (If _AS_PATH_WALK were called with IFS unset, it would have the
19536# side effect of setting IFS to empty, thus disabling word splitting.)
19537# Quoting is to prevent editors from complaining about space-tab.
19538as_nl='
19539'
19540export as_nl
19541IFS=" ""	$as_nl"
19542
19543PS1='$ '
19544PS2='> '
19545PS4='+ '
19546
19547# Ensure predictable behavior from utilities with locale-dependent output.
19548LC_ALL=C
19549export LC_ALL
19550LANGUAGE=C
19551export LANGUAGE
19552
19553# We cannot yet rely on "unset" to work, but we need these variables
19554# to be unset--not just set to an empty or harmless value--now, to
19555# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19556# also avoids known problems related to "unset" and subshell syntax
19557# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19558for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19559do eval test \${$as_var+y} \
19560  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19561done
19562
19563# Ensure that fds 0, 1, and 2 are open.
19564if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19565if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19566if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19567
19568# The user is always right.
19569if ${PATH_SEPARATOR+false} :; then
19570  PATH_SEPARATOR=:
19571  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19572    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19573      PATH_SEPARATOR=';'
19574  }
19575fi
19576
19577
19578# Find who we are.  Look in the path if we contain no directory separator.
19579as_myself=
19580case $0 in #((
19581  *[\\/]* ) as_myself=$0 ;;
19582  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19583for as_dir in $PATH
19584do
19585  IFS=$as_save_IFS
19586  case $as_dir in #(((
19587    '') as_dir=./ ;;
19588    */) ;;
19589    *) as_dir=$as_dir/ ;;
19590  esac
19591    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19592  done
19593IFS=$as_save_IFS
19594
19595     ;;
19596esac
19597# We did not find ourselves, most probably we were run as `sh COMMAND'
19598# in which case we are not to be found in the path.
19599if test "x$as_myself" = x; then
19600  as_myself=$0
19601fi
19602if test ! -f "$as_myself"; then
19603  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19604  exit 1
19605fi
19606
19607
19608
19609# as_fn_error STATUS ERROR [LINENO LOG_FD]
19610# ----------------------------------------
19611# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19612# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19613# script with STATUS, using 1 if that was 0.
19614as_fn_error ()
19615{
19616  as_status=$1; test $as_status -eq 0 && as_status=1
19617  if test "$4"; then
19618    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19619    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19620  fi
19621  printf "%s\n" "$as_me: error: $2" >&2
19622  as_fn_exit $as_status
19623} # as_fn_error
19624
19625
19626
19627# as_fn_set_status STATUS
19628# -----------------------
19629# Set $? to STATUS, without forking.
19630as_fn_set_status ()
19631{
19632  return $1
19633} # as_fn_set_status
19634
19635# as_fn_exit STATUS
19636# -----------------
19637# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19638as_fn_exit ()
19639{
19640  set +e
19641  as_fn_set_status $1
19642  exit $1
19643} # as_fn_exit
19644
19645# as_fn_unset VAR
19646# ---------------
19647# Portably unset VAR.
19648as_fn_unset ()
19649{
19650  { eval $1=; unset $1;}
19651}
19652as_unset=as_fn_unset
19653
19654# as_fn_append VAR VALUE
19655# ----------------------
19656# Append the text in VALUE to the end of the definition contained in VAR. Take
19657# advantage of any shell optimizations that allow amortized linear growth over
19658# repeated appends, instead of the typical quadratic growth present in naive
19659# implementations.
19660if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19661then :
19662  eval 'as_fn_append ()
19663  {
19664    eval $1+=\$2
19665  }'
19666else $as_nop
19667  as_fn_append ()
19668  {
19669    eval $1=\$$1\$2
19670  }
19671fi # as_fn_append
19672
19673# as_fn_arith ARG...
19674# ------------------
19675# Perform arithmetic evaluation on the ARGs, and store the result in the
19676# global $as_val. Take advantage of shells that can avoid forks. The arguments
19677# must be portable across $(()) and expr.
19678if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19679then :
19680  eval 'as_fn_arith ()
19681  {
19682    as_val=$(( $* ))
19683  }'
19684else $as_nop
19685  as_fn_arith ()
19686  {
19687    as_val=`expr "$@" || test $? -eq 1`
19688  }
19689fi # as_fn_arith
19690
19691
19692if expr a : '\(a\)' >/dev/null 2>&1 &&
19693   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19694  as_expr=expr
19695else
19696  as_expr=false
19697fi
19698
19699if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19700  as_basename=basename
19701else
19702  as_basename=false
19703fi
19704
19705if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19706  as_dirname=dirname
19707else
19708  as_dirname=false
19709fi
19710
19711as_me=`$as_basename -- "$0" ||
19712$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19713	 X"$0" : 'X\(//\)$' \| \
19714	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19715printf "%s\n" X/"$0" |
19716    sed '/^.*\/\([^/][^/]*\)\/*$/{
19717	    s//\1/
19718	    q
19719	  }
19720	  /^X\/\(\/\/\)$/{
19721	    s//\1/
19722	    q
19723	  }
19724	  /^X\/\(\/\).*/{
19725	    s//\1/
19726	    q
19727	  }
19728	  s/.*/./; q'`
19729
19730# Avoid depending upon Character Ranges.
19731as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19732as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19733as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19734as_cr_digits='0123456789'
19735as_cr_alnum=$as_cr_Letters$as_cr_digits
19736
19737
19738# Determine whether it's possible to make 'echo' print without a newline.
19739# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19740# for compatibility with existing Makefiles.
19741ECHO_C= ECHO_N= ECHO_T=
19742case `echo -n x` in #(((((
19743-n*)
19744  case `echo 'xy\c'` in
19745  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19746  xy)  ECHO_C='\c';;
19747  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19748       ECHO_T='	';;
19749  esac;;
19750*)
19751  ECHO_N='-n';;
19752esac
19753
19754# For backward compatibility with old third-party macros, we provide
19755# the shell variables $as_echo and $as_echo_n.  New code should use
19756# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19757as_echo='printf %s\n'
19758as_echo_n='printf %s'
19759
19760rm -f conf$$ conf$$.exe conf$$.file
19761if test -d conf$$.dir; then
19762  rm -f conf$$.dir/conf$$.file
19763else
19764  rm -f conf$$.dir
19765  mkdir conf$$.dir 2>/dev/null
19766fi
19767if (echo >conf$$.file) 2>/dev/null; then
19768  if ln -s conf$$.file conf$$ 2>/dev/null; then
19769    as_ln_s='ln -s'
19770    # ... but there are two gotchas:
19771    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19772    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19773    # In both cases, we have to default to `cp -pR'.
19774    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19775      as_ln_s='cp -pR'
19776  elif ln conf$$.file conf$$ 2>/dev/null; then
19777    as_ln_s=ln
19778  else
19779    as_ln_s='cp -pR'
19780  fi
19781else
19782  as_ln_s='cp -pR'
19783fi
19784rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19785rmdir conf$$.dir 2>/dev/null
19786
19787
19788# as_fn_mkdir_p
19789# -------------
19790# Create "$as_dir" as a directory, including parents if necessary.
19791as_fn_mkdir_p ()
19792{
19793
19794  case $as_dir in #(
19795  -*) as_dir=./$as_dir;;
19796  esac
19797  test -d "$as_dir" || eval $as_mkdir_p || {
19798    as_dirs=
19799    while :; do
19800      case $as_dir in #(
19801      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19802      *) as_qdir=$as_dir;;
19803      esac
19804      as_dirs="'$as_qdir' $as_dirs"
19805      as_dir=`$as_dirname -- "$as_dir" ||
19806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19807	 X"$as_dir" : 'X\(//\)[^/]' \| \
19808	 X"$as_dir" : 'X\(//\)$' \| \
19809	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19810printf "%s\n" X"$as_dir" |
19811    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19812	    s//\1/
19813	    q
19814	  }
19815	  /^X\(\/\/\)[^/].*/{
19816	    s//\1/
19817	    q
19818	  }
19819	  /^X\(\/\/\)$/{
19820	    s//\1/
19821	    q
19822	  }
19823	  /^X\(\/\).*/{
19824	    s//\1/
19825	    q
19826	  }
19827	  s/.*/./; q'`
19828      test -d "$as_dir" && break
19829    done
19830    test -z "$as_dirs" || eval "mkdir $as_dirs"
19831  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19832
19833
19834} # as_fn_mkdir_p
19835if mkdir -p . 2>/dev/null; then
19836  as_mkdir_p='mkdir -p "$as_dir"'
19837else
19838  test -d ./-p && rmdir ./-p
19839  as_mkdir_p=false
19840fi
19841
19842
19843# as_fn_executable_p FILE
19844# -----------------------
19845# Test if FILE is an executable regular file.
19846as_fn_executable_p ()
19847{
19848  test -f "$1" && test -x "$1"
19849} # as_fn_executable_p
19850as_test_x='test -x'
19851as_executable_p=as_fn_executable_p
19852
19853# Sed expression to map a string onto a valid CPP name.
19854as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19855
19856# Sed expression to map a string onto a valid variable name.
19857as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19858
19859
19860exec 6>&1
19861## ----------------------------------- ##
19862## Main body of $CONFIG_STATUS script. ##
19863## ----------------------------------- ##
19864_ASEOF
19865test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19866
19867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868# Save the log message, to keep $0 and so on meaningful, and to
19869# report actual input values of CONFIG_FILES etc. instead of their
19870# values after options handling.
19871ac_log="
19872This file was extended by expat $as_me 2.3.0, which was
19873generated by GNU Autoconf 2.71.  Invocation command line was
19874
19875  CONFIG_FILES    = $CONFIG_FILES
19876  CONFIG_HEADERS  = $CONFIG_HEADERS
19877  CONFIG_LINKS    = $CONFIG_LINKS
19878  CONFIG_COMMANDS = $CONFIG_COMMANDS
19879  $ $0 $@
19880
19881on `(hostname || uname -n) 2>/dev/null | sed 1q`
19882"
19883
19884_ACEOF
19885
19886case $ac_config_files in *"
19887"*) set x $ac_config_files; shift; ac_config_files=$*;;
19888esac
19889
19890case $ac_config_headers in *"
19891"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19892esac
19893
19894
19895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19896# Files that config.status was made for.
19897config_files="$ac_config_files"
19898config_headers="$ac_config_headers"
19899config_commands="$ac_config_commands"
19900
19901_ACEOF
19902
19903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904ac_cs_usage="\
19905\`$as_me' instantiates files and other configuration actions
19906from templates according to the current configuration.  Unless the files
19907and actions are specified as TAGs, all are instantiated by default.
19908
19909Usage: $0 [OPTION]... [TAG]...
19910
19911  -h, --help       print this help, then exit
19912  -V, --version    print version number and configuration settings, then exit
19913      --config     print configuration, then exit
19914  -q, --quiet, --silent
19915                   do not print progress messages
19916  -d, --debug      don't remove temporary files
19917      --recheck    update $as_me by reconfiguring in the same conditions
19918      --file=FILE[:TEMPLATE]
19919                   instantiate the configuration file FILE
19920      --header=FILE[:TEMPLATE]
19921                   instantiate the configuration header FILE
19922
19923Configuration files:
19924$config_files
19925
19926Configuration headers:
19927$config_headers
19928
19929Configuration commands:
19930$config_commands
19931
19932Report bugs to <expat-bugs@libexpat.org>."
19933
19934_ACEOF
19935ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19936ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19938ac_cs_config='$ac_cs_config_escaped'
19939ac_cs_version="\\
19940expat config.status 2.3.0
19941configured by $0, generated by GNU Autoconf 2.71,
19942  with options \\"\$ac_cs_config\\"
19943
19944Copyright (C) 2021 Free Software Foundation, Inc.
19945This config.status script is free software; the Free Software Foundation
19946gives unlimited permission to copy, distribute and modify it."
19947
19948ac_pwd='$ac_pwd'
19949srcdir='$srcdir'
19950INSTALL='$INSTALL'
19951MKDIR_P='$MKDIR_P'
19952AWK='$AWK'
19953test -n "\$AWK" || AWK=awk
19954_ACEOF
19955
19956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19957# The default lists apply if the user does not specify any file.
19958ac_need_defaults=:
19959while test $# != 0
19960do
19961  case $1 in
19962  --*=?*)
19963    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19964    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19965    ac_shift=:
19966    ;;
19967  --*=)
19968    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19969    ac_optarg=
19970    ac_shift=:
19971    ;;
19972  *)
19973    ac_option=$1
19974    ac_optarg=$2
19975    ac_shift=shift
19976    ;;
19977  esac
19978
19979  case $ac_option in
19980  # Handling of the options.
19981  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19982    ac_cs_recheck=: ;;
19983  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19984    printf "%s\n" "$ac_cs_version"; exit ;;
19985  --config | --confi | --conf | --con | --co | --c )
19986    printf "%s\n" "$ac_cs_config"; exit ;;
19987  --debug | --debu | --deb | --de | --d | -d )
19988    debug=: ;;
19989  --file | --fil | --fi | --f )
19990    $ac_shift
19991    case $ac_optarg in
19992    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19993    '') as_fn_error $? "missing file argument" ;;
19994    esac
19995    as_fn_append CONFIG_FILES " '$ac_optarg'"
19996    ac_need_defaults=false;;
19997  --header | --heade | --head | --hea )
19998    $ac_shift
19999    case $ac_optarg in
20000    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20001    esac
20002    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20003    ac_need_defaults=false;;
20004  --he | --h)
20005    # Conflict between --help and --header
20006    as_fn_error $? "ambiguous option: \`$1'
20007Try \`$0 --help' for more information.";;
20008  --help | --hel | -h )
20009    printf "%s\n" "$ac_cs_usage"; exit ;;
20010  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20011  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20012    ac_cs_silent=: ;;
20013
20014  # This is an error.
20015  -*) as_fn_error $? "unrecognized option: \`$1'
20016Try \`$0 --help' for more information." ;;
20017
20018  *) as_fn_append ac_config_targets " $1"
20019     ac_need_defaults=false ;;
20020
20021  esac
20022  shift
20023done
20024
20025ac_configure_extra_args=
20026
20027if $ac_cs_silent; then
20028  exec 6>/dev/null
20029  ac_configure_extra_args="$ac_configure_extra_args --silent"
20030fi
20031
20032_ACEOF
20033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20034if \$ac_cs_recheck; then
20035  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20036  shift
20037  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20038  CONFIG_SHELL='$SHELL'
20039  export CONFIG_SHELL
20040  exec "\$@"
20041fi
20042
20043_ACEOF
20044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20045exec 5>>config.log
20046{
20047  echo
20048  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20049## Running $as_me. ##
20050_ASBOX
20051  printf "%s\n" "$ac_log"
20052} >&5
20053
20054_ACEOF
20055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20056#
20057# INIT-COMMANDS
20058#
20059AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20060
20061
20062# The HP-UX ksh and POSIX shell print the target directory to stdout
20063# if CDPATH is set.
20064(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20065
20066sed_quote_subst='$sed_quote_subst'
20067double_quote_subst='$double_quote_subst'
20068delay_variable_subst='$delay_variable_subst'
20069macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20070macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20071AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20072DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20073OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20074enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20075enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20076pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20077enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20078shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20079SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20080ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20081PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20082host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20083host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20084host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20085build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20086build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20087build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20088SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20089Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20090GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20091EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20092FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20093LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20094NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20095LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20096max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20097ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20098exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20099lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20100lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20101lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20102lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20103lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20104reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20105reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20106deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20107file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20108file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20109want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20110sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20111AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20112AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20113archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20114STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20115RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20116old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20117old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20118old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20119lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20120CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20121CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20122compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20123GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20124lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20125lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20126lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20127lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20128lt_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"`'
20129lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20130nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20131lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20132lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20133objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20134MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20135lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20136lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20137lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20138lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20139lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20140need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20141MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20142DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20143NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20144LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20145OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20146OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20147libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20148shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20149extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20150archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20151enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20152export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20153whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20154compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20155old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20156old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20157archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20158archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20159module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20160module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20161with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20162allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20163no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20164hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20165hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20166hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20167hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20168hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20169hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20170hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20171inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20172link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20173always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20174export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20175exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20176include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20177prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20178postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20179file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20180variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20181need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20182need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20183version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20184runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20185shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20186shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20187libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20188library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20189soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20190install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20191postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20192postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20193finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20194finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20195hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20196sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20197configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20198configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20199hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20200enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20201enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20202enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20203old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20204striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20205compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20206predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20207postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20208predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20209postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20210compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20211LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20212reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20213reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20214old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20215compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20216GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20217lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20218lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20219lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20220lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20221lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20222archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20223enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20224export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20225whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20226compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20227old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20228old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20229archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20230archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20231module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20232module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20233with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20234allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20235no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20236hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20237hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20238hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20239hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20240hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20241hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20242hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20243inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20244link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20245always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20246export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20247exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20248include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20249prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20250postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20251file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20252hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20253compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20254predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20255postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20256predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20257postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20258compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20259
20260LTCC='$LTCC'
20261LTCFLAGS='$LTCFLAGS'
20262compiler='$compiler_DEFAULT'
20263
20264# A function that is used when there is no print builtin or printf.
20265func_fallback_echo ()
20266{
20267  eval 'cat <<_LTECHO_EOF
20268\$1
20269_LTECHO_EOF'
20270}
20271
20272# Quote evaled strings.
20273for var in AS \
20274DLLTOOL \
20275OBJDUMP \
20276SHELL \
20277ECHO \
20278PATH_SEPARATOR \
20279SED \
20280GREP \
20281EGREP \
20282FGREP \
20283LD \
20284NM \
20285LN_S \
20286lt_SP2NL \
20287lt_NL2SP \
20288reload_flag \
20289deplibs_check_method \
20290file_magic_cmd \
20291file_magic_glob \
20292want_nocaseglob \
20293sharedlib_from_linklib_cmd \
20294AR \
20295AR_FLAGS \
20296archiver_list_spec \
20297STRIP \
20298RANLIB \
20299CC \
20300CFLAGS \
20301compiler \
20302lt_cv_sys_global_symbol_pipe \
20303lt_cv_sys_global_symbol_to_cdecl \
20304lt_cv_sys_global_symbol_to_import \
20305lt_cv_sys_global_symbol_to_c_name_address \
20306lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20307lt_cv_nm_interface \
20308nm_file_list_spec \
20309lt_cv_truncate_bin \
20310lt_prog_compiler_no_builtin_flag \
20311lt_prog_compiler_pic \
20312lt_prog_compiler_wl \
20313lt_prog_compiler_static \
20314lt_cv_prog_compiler_c_o \
20315need_locks \
20316MANIFEST_TOOL \
20317DSYMUTIL \
20318NMEDIT \
20319LIPO \
20320OTOOL \
20321OTOOL64 \
20322shrext_cmds \
20323export_dynamic_flag_spec \
20324whole_archive_flag_spec \
20325compiler_needs_object \
20326with_gnu_ld \
20327allow_undefined_flag \
20328no_undefined_flag \
20329hardcode_libdir_flag_spec \
20330hardcode_libdir_separator \
20331exclude_expsyms \
20332include_expsyms \
20333file_list_spec \
20334variables_saved_for_relink \
20335libname_spec \
20336library_names_spec \
20337soname_spec \
20338install_override_mode \
20339finish_eval \
20340old_striplib \
20341striplib \
20342compiler_lib_search_dirs \
20343predep_objects \
20344postdep_objects \
20345predeps \
20346postdeps \
20347compiler_lib_search_path \
20348LD_CXX \
20349reload_flag_CXX \
20350compiler_CXX \
20351lt_prog_compiler_no_builtin_flag_CXX \
20352lt_prog_compiler_pic_CXX \
20353lt_prog_compiler_wl_CXX \
20354lt_prog_compiler_static_CXX \
20355lt_cv_prog_compiler_c_o_CXX \
20356export_dynamic_flag_spec_CXX \
20357whole_archive_flag_spec_CXX \
20358compiler_needs_object_CXX \
20359with_gnu_ld_CXX \
20360allow_undefined_flag_CXX \
20361no_undefined_flag_CXX \
20362hardcode_libdir_flag_spec_CXX \
20363hardcode_libdir_separator_CXX \
20364exclude_expsyms_CXX \
20365include_expsyms_CXX \
20366file_list_spec_CXX \
20367compiler_lib_search_dirs_CXX \
20368predep_objects_CXX \
20369postdep_objects_CXX \
20370predeps_CXX \
20371postdeps_CXX \
20372compiler_lib_search_path_CXX; do
20373    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20374    *[\\\\\\\`\\"\\\$]*)
20375      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20376      ;;
20377    *)
20378      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20379      ;;
20380    esac
20381done
20382
20383# Double-quote double-evaled strings.
20384for var in reload_cmds \
20385old_postinstall_cmds \
20386old_postuninstall_cmds \
20387old_archive_cmds \
20388extract_expsyms_cmds \
20389old_archive_from_new_cmds \
20390old_archive_from_expsyms_cmds \
20391archive_cmds \
20392archive_expsym_cmds \
20393module_cmds \
20394module_expsym_cmds \
20395export_symbols_cmds \
20396prelink_cmds \
20397postlink_cmds \
20398postinstall_cmds \
20399postuninstall_cmds \
20400finish_cmds \
20401sys_lib_search_path_spec \
20402configure_time_dlsearch_path \
20403configure_time_lt_sys_library_path \
20404reload_cmds_CXX \
20405old_archive_cmds_CXX \
20406old_archive_from_new_cmds_CXX \
20407old_archive_from_expsyms_cmds_CXX \
20408archive_cmds_CXX \
20409archive_expsym_cmds_CXX \
20410module_cmds_CXX \
20411module_expsym_cmds_CXX \
20412export_symbols_cmds_CXX \
20413prelink_cmds_CXX \
20414postlink_cmds_CXX; do
20415    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20416    *[\\\\\\\`\\"\\\$]*)
20417      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20418      ;;
20419    *)
20420      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20421      ;;
20422    esac
20423done
20424
20425ac_aux_dir='$ac_aux_dir'
20426
20427# See if we are running on zsh, and set the options that allow our
20428# commands through without removal of \ escapes INIT.
20429if test -n "\${ZSH_VERSION+set}"; then
20430   setopt NO_GLOB_SUBST
20431fi
20432
20433
20434    PACKAGE='$PACKAGE'
20435    VERSION='$VERSION'
20436    RM='$RM'
20437    ofile='$ofile'
20438
20439
20440
20441
20442
20443
20444_ACEOF
20445
20446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447
20448# Handling of arguments.
20449for ac_config_target in $ac_config_targets
20450do
20451  case $ac_config_target in
20452    "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
20453    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20454    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20455    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20456    "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
20457    "cmake/expat-config.cmake") CONFIG_FILES="$CONFIG_FILES cmake/expat-config.cmake" ;;
20458    "cmake/autotools/expat-config-version.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-config-version.cmake" ;;
20459    "cmake/autotools/expat-noconfig.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-noconfig.cmake" ;;
20460    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20461    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20462    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20463    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20464    "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
20465    "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
20466    "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
20467
20468  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20469  esac
20470done
20471
20472
20473# If the user did not use the arguments to specify the items to instantiate,
20474# then the envvar interface is used.  Set only those that are not.
20475# We use the long form for the default assignment because of an extremely
20476# bizarre bug on SunOS 4.1.3.
20477if $ac_need_defaults; then
20478  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20479  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20480  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20481fi
20482
20483# Have a temporary directory for convenience.  Make it in the build tree
20484# simply because there is no reason against having it here, and in addition,
20485# creating and moving files from /tmp can sometimes cause problems.
20486# Hook for its removal unless debugging.
20487# Note that there is a small window in which the directory will not be cleaned:
20488# after its creation but before its name has been assigned to `$tmp'.
20489$debug ||
20490{
20491  tmp= ac_tmp=
20492  trap 'exit_status=$?
20493  : "${ac_tmp:=$tmp}"
20494  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20495' 0
20496  trap 'as_fn_exit 1' 1 2 13 15
20497}
20498# Create a (secure) tmp directory for tmp files.
20499
20500{
20501  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20502  test -d "$tmp"
20503}  ||
20504{
20505  tmp=./conf$$-$RANDOM
20506  (umask 077 && mkdir "$tmp")
20507} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20508ac_tmp=$tmp
20509
20510# Set up the scripts for CONFIG_FILES section.
20511# No need to generate them if there are no CONFIG_FILES.
20512# This happens for instance with `./config.status config.h'.
20513if test -n "$CONFIG_FILES"; then
20514
20515if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20516  ac_cs_awk_getline=:
20517  ac_cs_awk_pipe_init=
20518  ac_cs_awk_read_file='
20519      while ((getline aline < (F[key])) > 0)
20520	print(aline)
20521      close(F[key])'
20522  ac_cs_awk_pipe_fini=
20523else
20524  ac_cs_awk_getline=false
20525  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20526  ac_cs_awk_read_file='
20527      print "|#_!!_#|"
20528      print "cat " F[key] " &&"
20529      '$ac_cs_awk_pipe_init
20530  # The final `:' finishes the AND list.
20531  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20532fi
20533ac_cr=`echo X | tr X '\015'`
20534# On cygwin, bash can eat \r inside `` if the user requested igncr.
20535# But we know of no other shell where ac_cr would be empty at this
20536# point, so we can use a bashism as a fallback.
20537if test "x$ac_cr" = x; then
20538  eval ac_cr=\$\'\\r\'
20539fi
20540ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20541if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20542  ac_cs_awk_cr='\\r'
20543else
20544  ac_cs_awk_cr=$ac_cr
20545fi
20546
20547echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20548_ACEOF
20549
20550# Create commands to substitute file output variables.
20551{
20552  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20553  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20554  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20555  echo "_ACAWK" &&
20556  echo "_ACEOF"
20557} >conf$$files.sh &&
20558. ./conf$$files.sh ||
20559  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20560rm -f conf$$files.sh
20561
20562{
20563  echo "cat >conf$$subs.awk <<_ACEOF" &&
20564  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20565  echo "_ACEOF"
20566} >conf$$subs.sh ||
20567  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20568ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20569ac_delim='%!_!# '
20570for ac_last_try in false false false false false :; do
20571  . ./conf$$subs.sh ||
20572    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20573
20574  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20575  if test $ac_delim_n = $ac_delim_num; then
20576    break
20577  elif $ac_last_try; then
20578    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20579  else
20580    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20581  fi
20582done
20583rm -f conf$$subs.sh
20584
20585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20586cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20587_ACEOF
20588sed -n '
20589h
20590s/^/S["/; s/!.*/"]=/
20591p
20592g
20593s/^[^!]*!//
20594:repl
20595t repl
20596s/'"$ac_delim"'$//
20597t delim
20598:nl
20599h
20600s/\(.\{148\}\)..*/\1/
20601t more1
20602s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20603p
20604n
20605b repl
20606:more1
20607s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20608p
20609g
20610s/.\{148\}//
20611t nl
20612:delim
20613h
20614s/\(.\{148\}\)..*/\1/
20615t more2
20616s/["\\]/\\&/g; s/^/"/; s/$/"/
20617p
20618b
20619:more2
20620s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20621p
20622g
20623s/.\{148\}//
20624t delim
20625' <conf$$subs.awk | sed '
20626/^[^""]/{
20627  N
20628  s/\n//
20629}
20630' >>$CONFIG_STATUS || ac_write_fail=1
20631rm -f conf$$subs.awk
20632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20633_ACAWK
20634cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20635  for (key in S) S_is_set[key] = 1
20636  FS = ""
20637  \$ac_cs_awk_pipe_init
20638}
20639{
20640  line = $ 0
20641  nfields = split(line, field, "@")
20642  substed = 0
20643  len = length(field[1])
20644  for (i = 2; i < nfields; i++) {
20645    key = field[i]
20646    keylen = length(key)
20647    if (S_is_set[key]) {
20648      value = S[key]
20649      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20650      len += length(value) + length(field[++i])
20651      substed = 1
20652    } else
20653      len += 1 + keylen
20654  }
20655  if (nfields == 3 && !substed) {
20656    key = field[2]
20657    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
20658      \$ac_cs_awk_read_file
20659      next
20660    }
20661  }
20662  print line
20663}
20664\$ac_cs_awk_pipe_fini
20665_ACAWK
20666_ACEOF
20667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20668if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20669  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20670else
20671  cat
20672fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20673  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20674_ACEOF
20675
20676# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20677# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20678# trailing colons and then remove the whole line if VPATH becomes empty
20679# (actually we leave an empty line to preserve line numbers).
20680if test "x$srcdir" = x.; then
20681  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20682h
20683s///
20684s/^/:/
20685s/[	 ]*$/:/
20686s/:\$(srcdir):/:/g
20687s/:\${srcdir}:/:/g
20688s/:@srcdir@:/:/g
20689s/^:*//
20690s/:*$//
20691x
20692s/\(=[	 ]*\).*/\1/
20693G
20694s/\n//
20695s/^[^=]*=[	 ]*$//
20696}'
20697fi
20698
20699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20700fi # test -n "$CONFIG_FILES"
20701
20702# Set up the scripts for CONFIG_HEADERS section.
20703# No need to generate them if there are no CONFIG_HEADERS.
20704# This happens for instance with `./config.status Makefile'.
20705if test -n "$CONFIG_HEADERS"; then
20706cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20707BEGIN {
20708_ACEOF
20709
20710# Transform confdefs.h into an awk script `defines.awk', embedded as
20711# here-document in config.status, that substitutes the proper values into
20712# config.h.in to produce config.h.
20713
20714# Create a delimiter string that does not exist in confdefs.h, to ease
20715# handling of long lines.
20716ac_delim='%!_!# '
20717for ac_last_try in false false :; do
20718  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20719  if test -z "$ac_tt"; then
20720    break
20721  elif $ac_last_try; then
20722    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20723  else
20724    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20725  fi
20726done
20727
20728# For the awk script, D is an array of macro values keyed by name,
20729# likewise P contains macro parameters if any.  Preserve backslash
20730# newline sequences.
20731
20732ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20733sed -n '
20734s/.\{148\}/&'"$ac_delim"'/g
20735t rset
20736:rset
20737s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20738t def
20739d
20740:def
20741s/\\$//
20742t bsnl
20743s/["\\]/\\&/g
20744s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20745D["\1"]=" \3"/p
20746s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20747d
20748:bsnl
20749s/["\\]/\\&/g
20750s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20751D["\1"]=" \3\\\\\\n"\\/p
20752t cont
20753s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20754t cont
20755d
20756:cont
20757n
20758s/.\{148\}/&'"$ac_delim"'/g
20759t clear
20760:clear
20761s/\\$//
20762t bsnlc
20763s/["\\]/\\&/g; s/^/"/; s/$/"/p
20764d
20765:bsnlc
20766s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20767b cont
20768' <confdefs.h | sed '
20769s/'"$ac_delim"'/"\\\
20770"/g' >>$CONFIG_STATUS || ac_write_fail=1
20771
20772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20773  for (key in D) D_is_set[key] = 1
20774  FS = ""
20775}
20776/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20777  line = \$ 0
20778  split(line, arg, " ")
20779  if (arg[1] == "#") {
20780    defundef = arg[2]
20781    mac1 = arg[3]
20782  } else {
20783    defundef = substr(arg[1], 2)
20784    mac1 = arg[2]
20785  }
20786  split(mac1, mac2, "(") #)
20787  macro = mac2[1]
20788  prefix = substr(line, 1, index(line, defundef) - 1)
20789  if (D_is_set[macro]) {
20790    # Preserve the white space surrounding the "#".
20791    print prefix "define", macro P[macro] D[macro]
20792    next
20793  } else {
20794    # Replace #undef with comments.  This is necessary, for example,
20795    # in the case of _POSIX_SOURCE, which is predefined and required
20796    # on some systems where configure will not decide to define it.
20797    if (defundef == "undef") {
20798      print "/*", prefix defundef, macro, "*/"
20799      next
20800    }
20801  }
20802}
20803{ print }
20804_ACAWK
20805_ACEOF
20806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20807  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20808fi # test -n "$CONFIG_HEADERS"
20809
20810
20811eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20812shift
20813for ac_tag
20814do
20815  case $ac_tag in
20816  :[FHLC]) ac_mode=$ac_tag; continue;;
20817  esac
20818  case $ac_mode$ac_tag in
20819  :[FHL]*:*);;
20820  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20821  :[FH]-) ac_tag=-:-;;
20822  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20823  esac
20824  ac_save_IFS=$IFS
20825  IFS=:
20826  set x $ac_tag
20827  IFS=$ac_save_IFS
20828  shift
20829  ac_file=$1
20830  shift
20831
20832  case $ac_mode in
20833  :L) ac_source=$1;;
20834  :[FH])
20835    ac_file_inputs=
20836    for ac_f
20837    do
20838      case $ac_f in
20839      -) ac_f="$ac_tmp/stdin";;
20840      *) # Look for the file first in the build tree, then in the source tree
20841	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20842	 # because $ac_f cannot contain `:'.
20843	 test -f "$ac_f" ||
20844	   case $ac_f in
20845	   [\\/$]*) false;;
20846	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20847	   esac ||
20848	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20849      esac
20850      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20851      as_fn_append ac_file_inputs " '$ac_f'"
20852    done
20853
20854    # Let's still pretend it is `configure' which instantiates (i.e., don't
20855    # use $as_me), people would be surprised to read:
20856    #    /* config.h.  Generated by config.status.  */
20857    configure_input='Generated from '`
20858	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20859	`' by configure.'
20860    if test x"$ac_file" != x-; then
20861      configure_input="$ac_file.  $configure_input"
20862      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20863printf "%s\n" "$as_me: creating $ac_file" >&6;}
20864    fi
20865    # Neutralize special characters interpreted by sed in replacement strings.
20866    case $configure_input in #(
20867    *\&* | *\|* | *\\* )
20868       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20869       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20870    *) ac_sed_conf_input=$configure_input;;
20871    esac
20872
20873    case $ac_tag in
20874    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20875      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20876    esac
20877    ;;
20878  esac
20879
20880  ac_dir=`$as_dirname -- "$ac_file" ||
20881$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20882	 X"$ac_file" : 'X\(//\)[^/]' \| \
20883	 X"$ac_file" : 'X\(//\)$' \| \
20884	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20885printf "%s\n" X"$ac_file" |
20886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20887	    s//\1/
20888	    q
20889	  }
20890	  /^X\(\/\/\)[^/].*/{
20891	    s//\1/
20892	    q
20893	  }
20894	  /^X\(\/\/\)$/{
20895	    s//\1/
20896	    q
20897	  }
20898	  /^X\(\/\).*/{
20899	    s//\1/
20900	    q
20901	  }
20902	  s/.*/./; q'`
20903  as_dir="$ac_dir"; as_fn_mkdir_p
20904  ac_builddir=.
20905
20906case "$ac_dir" in
20907.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20908*)
20909  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20910  # A ".." for each directory in $ac_dir_suffix.
20911  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20912  case $ac_top_builddir_sub in
20913  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20914  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20915  esac ;;
20916esac
20917ac_abs_top_builddir=$ac_pwd
20918ac_abs_builddir=$ac_pwd$ac_dir_suffix
20919# for backward compatibility:
20920ac_top_builddir=$ac_top_build_prefix
20921
20922case $srcdir in
20923  .)  # We are building in place.
20924    ac_srcdir=.
20925    ac_top_srcdir=$ac_top_builddir_sub
20926    ac_abs_top_srcdir=$ac_pwd ;;
20927  [\\/]* | ?:[\\/]* )  # Absolute name.
20928    ac_srcdir=$srcdir$ac_dir_suffix;
20929    ac_top_srcdir=$srcdir
20930    ac_abs_top_srcdir=$srcdir ;;
20931  *) # Relative name.
20932    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20933    ac_top_srcdir=$ac_top_build_prefix$srcdir
20934    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20935esac
20936ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20937
20938
20939  case $ac_mode in
20940  :F)
20941  #
20942  # CONFIG_FILE
20943  #
20944
20945  case $INSTALL in
20946  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20947  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20948  esac
20949  ac_MKDIR_P=$MKDIR_P
20950  case $MKDIR_P in
20951  [\\/$]* | ?:[\\/]* ) ;;
20952  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20953  esac
20954_ACEOF
20955
20956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20957# If the template does not know about datarootdir, expand it.
20958# FIXME: This hack should be removed a few years after 2.60.
20959ac_datarootdir_hack=; ac_datarootdir_seen=
20960ac_sed_dataroot='
20961/datarootdir/ {
20962  p
20963  q
20964}
20965/@datadir@/p
20966/@docdir@/p
20967/@infodir@/p
20968/@localedir@/p
20969/@mandir@/p'
20970case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20971*datarootdir*) ac_datarootdir_seen=yes;;
20972*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20974printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20975_ACEOF
20976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20977  ac_datarootdir_hack='
20978  s&@datadir@&$datadir&g
20979  s&@docdir@&$docdir&g
20980  s&@infodir@&$infodir&g
20981  s&@localedir@&$localedir&g
20982  s&@mandir@&$mandir&g
20983  s&\\\${datarootdir}&$datarootdir&g' ;;
20984esac
20985_ACEOF
20986
20987# Neutralize VPATH when `$srcdir' = `.'.
20988# Shell code in configure.ac might set extrasub.
20989# FIXME: do we really want to maintain this feature?
20990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20991ac_sed_extra="$ac_vpsub
20992$extrasub
20993_ACEOF
20994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20995:t
20996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20997s|@configure_input@|$ac_sed_conf_input|;t t
20998s&@top_builddir@&$ac_top_builddir_sub&;t t
20999s&@top_build_prefix@&$ac_top_build_prefix&;t t
21000s&@srcdir@&$ac_srcdir&;t t
21001s&@abs_srcdir@&$ac_abs_srcdir&;t t
21002s&@top_srcdir@&$ac_top_srcdir&;t t
21003s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21004s&@builddir@&$ac_builddir&;t t
21005s&@abs_builddir@&$ac_abs_builddir&;t t
21006s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21007s&@INSTALL@&$ac_INSTALL&;t t
21008s&@MKDIR_P@&$ac_MKDIR_P&;t t
21009$ac_datarootdir_hack
21010"
21011eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21012if $ac_cs_awk_getline; then
21013  $AWK -f "$ac_tmp/subs.awk"
21014else
21015  $AWK -f "$ac_tmp/subs.awk" | $SHELL
21016fi \
21017  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21018
21019test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21020  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21021  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21022      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21024which seems to be undefined.  Please make sure it is defined" >&5
21025printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21026which seems to be undefined.  Please make sure it is defined" >&2;}
21027
21028  rm -f "$ac_tmp/stdin"
21029  case $ac_file in
21030  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21031  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21032  esac \
21033  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21034 ;;
21035  :H)
21036  #
21037  # CONFIG_HEADER
21038  #
21039  if test x"$ac_file" != x-; then
21040    {
21041      printf "%s\n" "/* $configure_input  */" >&1 \
21042      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21043    } >"$ac_tmp/config.h" \
21044      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21045    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21046      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21047printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21048    else
21049      rm -f "$ac_file"
21050      mv "$ac_tmp/config.h" "$ac_file" \
21051	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21052    fi
21053  else
21054    printf "%s\n" "/* $configure_input  */" >&1 \
21055      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21056      || as_fn_error $? "could not create -" "$LINENO" 5
21057  fi
21058# Compute "$ac_file"'s index in $config_headers.
21059_am_arg="$ac_file"
21060_am_stamp_count=1
21061for _am_header in $config_headers :; do
21062  case $_am_header in
21063    $_am_arg | $_am_arg:* )
21064      break ;;
21065    * )
21066      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21067  esac
21068done
21069echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21070$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21071	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21072	 X"$_am_arg" : 'X\(//\)$' \| \
21073	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21074printf "%s\n" X"$_am_arg" |
21075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21076	    s//\1/
21077	    q
21078	  }
21079	  /^X\(\/\/\)[^/].*/{
21080	    s//\1/
21081	    q
21082	  }
21083	  /^X\(\/\/\)$/{
21084	    s//\1/
21085	    q
21086	  }
21087	  /^X\(\/\).*/{
21088	    s//\1/
21089	    q
21090	  }
21091	  s/.*/./; q'`/stamp-h$_am_stamp_count
21092 ;;
21093
21094  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21095printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21096 ;;
21097  esac
21098
21099
21100  case $ac_file$ac_mode in
21101    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21102  # Older Autoconf quotes --file arguments for eval, but not when files
21103  # are listed without --file.  Let's play safe and only enable the eval
21104  # if we detect the quoting.
21105  # TODO: see whether this extra hack can be removed once we start
21106  # requiring Autoconf 2.70 or later.
21107  case $CONFIG_FILES in #(
21108  *\'*) :
21109    eval set x "$CONFIG_FILES" ;; #(
21110  *) :
21111    set x $CONFIG_FILES ;; #(
21112  *) :
21113     ;;
21114esac
21115  shift
21116  # Used to flag and report bootstrapping failures.
21117  am_rc=0
21118  for am_mf
21119  do
21120    # Strip MF so we end up with the name of the file.
21121    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21122    # Check whether this is an Automake generated Makefile which includes
21123    # dependency-tracking related rules and includes.
21124    # Grep'ing the whole file directly is not great: AIX grep has a line
21125    # limit of 2048, but all sed's we know have understand at least 4000.
21126    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21127      || continue
21128    am_dirpart=`$as_dirname -- "$am_mf" ||
21129$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130	 X"$am_mf" : 'X\(//\)[^/]' \| \
21131	 X"$am_mf" : 'X\(//\)$' \| \
21132	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21133printf "%s\n" X"$am_mf" |
21134    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21135	    s//\1/
21136	    q
21137	  }
21138	  /^X\(\/\/\)[^/].*/{
21139	    s//\1/
21140	    q
21141	  }
21142	  /^X\(\/\/\)$/{
21143	    s//\1/
21144	    q
21145	  }
21146	  /^X\(\/\).*/{
21147	    s//\1/
21148	    q
21149	  }
21150	  s/.*/./; q'`
21151    am_filepart=`$as_basename -- "$am_mf" ||
21152$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21153	 X"$am_mf" : 'X\(//\)$' \| \
21154	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21155printf "%s\n" X/"$am_mf" |
21156    sed '/^.*\/\([^/][^/]*\)\/*$/{
21157	    s//\1/
21158	    q
21159	  }
21160	  /^X\/\(\/\/\)$/{
21161	    s//\1/
21162	    q
21163	  }
21164	  /^X\/\(\/\).*/{
21165	    s//\1/
21166	    q
21167	  }
21168	  s/.*/./; q'`
21169    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21170      && sed -e '/# am--include-marker/d' "$am_filepart" \
21171        | $MAKE -f - am--depfiles" >&5
21172   (cd "$am_dirpart" \
21173      && sed -e '/# am--include-marker/d' "$am_filepart" \
21174        | $MAKE -f - am--depfiles) >&5 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } || am_rc=$?
21178  done
21179  if test $am_rc -ne 0; then
21180    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21181printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21182as_fn_error $? "Something went wrong bootstrapping makefile fragments
21183    for automatic dependency tracking.  If GNU make was not used, consider
21184    re-running the configure script with MAKE=\"gmake\" (or whatever is
21185    necessary).  You can also try re-running configure with the
21186    '--disable-dependency-tracking' option to at least be able to build
21187    the package (albeit without support for automatic dependency tracking).
21188See \`config.log' for more details" "$LINENO" 5; }
21189  fi
21190  { am_dirpart=; unset am_dirpart;}
21191  { am_filepart=; unset am_filepart;}
21192  { am_mf=; unset am_mf;}
21193  { am_rc=; unset am_rc;}
21194  rm -f conftest-deps.mk
21195}
21196 ;;
21197    "libtool":C)
21198
21199    # See if we are running on zsh, and set the options that allow our
21200    # commands through without removal of \ escapes.
21201    if test -n "${ZSH_VERSION+set}"; then
21202      setopt NO_GLOB_SUBST
21203    fi
21204
21205    cfgfile=${ofile}T
21206    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21207    $RM "$cfgfile"
21208
21209    cat <<_LT_EOF >> "$cfgfile"
21210#! $SHELL
21211# Generated automatically by $as_me ($PACKAGE) $VERSION
21212# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21213# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21214
21215# Provide generalized library-building support services.
21216# Written by Gordon Matzigkeit, 1996
21217
21218# Copyright (C) 2014 Free Software Foundation, Inc.
21219# This is free software; see the source for copying conditions.  There is NO
21220# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21221
21222# GNU Libtool is free software; you can redistribute it and/or modify
21223# it under the terms of the GNU General Public License as published by
21224# the Free Software Foundation; either version 2 of of the License, or
21225# (at your option) any later version.
21226#
21227# As a special exception to the GNU General Public License, if you
21228# distribute this file as part of a program or library that is built
21229# using GNU Libtool, you may include this file under the  same
21230# distribution terms that you use for the rest of that program.
21231#
21232# GNU Libtool is distributed in the hope that it will be useful, but
21233# WITHOUT ANY WARRANTY; without even the implied warranty of
21234# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21235# GNU General Public License for more details.
21236#
21237# You should have received a copy of the GNU General Public License
21238# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21239
21240
21241# The names of the tagged configurations supported by this script.
21242available_tags='CXX '
21243
21244# Configured defaults for sys_lib_dlsearch_path munging.
21245: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21246
21247# ### BEGIN LIBTOOL CONFIG
21248
21249# Which release of libtool.m4 was used?
21250macro_version=$macro_version
21251macro_revision=$macro_revision
21252
21253# Assembler program.
21254AS=$lt_AS
21255
21256# DLL creation program.
21257DLLTOOL=$lt_DLLTOOL
21258
21259# Object dumper program.
21260OBJDUMP=$lt_OBJDUMP
21261
21262# Whether or not to build shared libraries.
21263build_libtool_libs=$enable_shared
21264
21265# Whether or not to build static libraries.
21266build_old_libs=$enable_static
21267
21268# What type of objects to build.
21269pic_mode=$pic_mode
21270
21271# Whether or not to optimize for fast installation.
21272fast_install=$enable_fast_install
21273
21274# Shared archive member basename,for filename based shared library versioning on AIX.
21275shared_archive_member_spec=$shared_archive_member_spec
21276
21277# Shell to use when invoking shell scripts.
21278SHELL=$lt_SHELL
21279
21280# An echo program that protects backslashes.
21281ECHO=$lt_ECHO
21282
21283# The PATH separator for the build system.
21284PATH_SEPARATOR=$lt_PATH_SEPARATOR
21285
21286# The host system.
21287host_alias=$host_alias
21288host=$host
21289host_os=$host_os
21290
21291# The build system.
21292build_alias=$build_alias
21293build=$build
21294build_os=$build_os
21295
21296# A sed program that does not truncate output.
21297SED=$lt_SED
21298
21299# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21300Xsed="\$SED -e 1s/^X//"
21301
21302# A grep program that handles long lines.
21303GREP=$lt_GREP
21304
21305# An ERE matcher.
21306EGREP=$lt_EGREP
21307
21308# A literal string matcher.
21309FGREP=$lt_FGREP
21310
21311# A BSD- or MS-compatible name lister.
21312NM=$lt_NM
21313
21314# Whether we need soft or hard links.
21315LN_S=$lt_LN_S
21316
21317# What is the maximum length of a command?
21318max_cmd_len=$max_cmd_len
21319
21320# Object file suffix (normally "o").
21321objext=$ac_objext
21322
21323# Executable file suffix (normally "").
21324exeext=$exeext
21325
21326# whether the shell understands "unset".
21327lt_unset=$lt_unset
21328
21329# turn spaces into newlines.
21330SP2NL=$lt_lt_SP2NL
21331
21332# turn newlines into spaces.
21333NL2SP=$lt_lt_NL2SP
21334
21335# convert \$build file names to \$host format.
21336to_host_file_cmd=$lt_cv_to_host_file_cmd
21337
21338# convert \$build files to toolchain format.
21339to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21340
21341# Method to check whether dependent libraries are shared objects.
21342deplibs_check_method=$lt_deplibs_check_method
21343
21344# Command to use when deplibs_check_method = "file_magic".
21345file_magic_cmd=$lt_file_magic_cmd
21346
21347# How to find potential files when deplibs_check_method = "file_magic".
21348file_magic_glob=$lt_file_magic_glob
21349
21350# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21351want_nocaseglob=$lt_want_nocaseglob
21352
21353# Command to associate shared and link libraries.
21354sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21355
21356# The archiver.
21357AR=$lt_AR
21358
21359# Flags to create an archive.
21360AR_FLAGS=$lt_AR_FLAGS
21361
21362# How to feed a file listing to the archiver.
21363archiver_list_spec=$lt_archiver_list_spec
21364
21365# A symbol stripping program.
21366STRIP=$lt_STRIP
21367
21368# Commands used to install an old-style archive.
21369RANLIB=$lt_RANLIB
21370old_postinstall_cmds=$lt_old_postinstall_cmds
21371old_postuninstall_cmds=$lt_old_postuninstall_cmds
21372
21373# Whether to use a lock for old archive extraction.
21374lock_old_archive_extraction=$lock_old_archive_extraction
21375
21376# A C compiler.
21377LTCC=$lt_CC
21378
21379# LTCC compiler flags.
21380LTCFLAGS=$lt_CFLAGS
21381
21382# Take the output of nm and produce a listing of raw symbols and C names.
21383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21384
21385# Transform the output of nm in a proper C declaration.
21386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21387
21388# Transform the output of nm into a list of symbols to manually relocate.
21389global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21390
21391# Transform the output of nm in a C name address pair.
21392global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21393
21394# Transform the output of nm in a C name address pair when lib prefix is needed.
21395global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21396
21397# The name lister interface.
21398nm_interface=$lt_lt_cv_nm_interface
21399
21400# Specify filename containing input files for \$NM.
21401nm_file_list_spec=$lt_nm_file_list_spec
21402
21403# The root where to search for dependent libraries,and where our libraries should be installed.
21404lt_sysroot=$lt_sysroot
21405
21406# Command to truncate a binary pipe.
21407lt_truncate_bin=$lt_lt_cv_truncate_bin
21408
21409# The name of the directory that contains temporary libtool files.
21410objdir=$objdir
21411
21412# Used to examine libraries when file_magic_cmd begins with "file".
21413MAGIC_CMD=$MAGIC_CMD
21414
21415# Must we lock files when doing compilation?
21416need_locks=$lt_need_locks
21417
21418# Manifest tool.
21419MANIFEST_TOOL=$lt_MANIFEST_TOOL
21420
21421# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21422DSYMUTIL=$lt_DSYMUTIL
21423
21424# Tool to change global to local symbols on Mac OS X.
21425NMEDIT=$lt_NMEDIT
21426
21427# Tool to manipulate fat objects and archives on Mac OS X.
21428LIPO=$lt_LIPO
21429
21430# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21431OTOOL=$lt_OTOOL
21432
21433# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21434OTOOL64=$lt_OTOOL64
21435
21436# Old archive suffix (normally "a").
21437libext=$libext
21438
21439# Shared library suffix (normally ".so").
21440shrext_cmds=$lt_shrext_cmds
21441
21442# The commands to extract the exported symbol list from a shared archive.
21443extract_expsyms_cmds=$lt_extract_expsyms_cmds
21444
21445# Variables whose values should be saved in libtool wrapper scripts and
21446# restored at link time.
21447variables_saved_for_relink=$lt_variables_saved_for_relink
21448
21449# Do we need the "lib" prefix for modules?
21450need_lib_prefix=$need_lib_prefix
21451
21452# Do we need a version for libraries?
21453need_version=$need_version
21454
21455# Library versioning type.
21456version_type=$version_type
21457
21458# Shared library runtime path variable.
21459runpath_var=$runpath_var
21460
21461# Shared library path variable.
21462shlibpath_var=$shlibpath_var
21463
21464# Is shlibpath searched before the hard-coded library search path?
21465shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21466
21467# Format of library name prefix.
21468libname_spec=$lt_libname_spec
21469
21470# List of archive names.  First name is the real one, the rest are links.
21471# The last name is the one that the linker finds with -lNAME
21472library_names_spec=$lt_library_names_spec
21473
21474# The coded name of the library, if different from the real name.
21475soname_spec=$lt_soname_spec
21476
21477# Permission mode override for installation of shared libraries.
21478install_override_mode=$lt_install_override_mode
21479
21480# Command to use after installation of a shared archive.
21481postinstall_cmds=$lt_postinstall_cmds
21482
21483# Command to use after uninstallation of a shared archive.
21484postuninstall_cmds=$lt_postuninstall_cmds
21485
21486# Commands used to finish a libtool library installation in a directory.
21487finish_cmds=$lt_finish_cmds
21488
21489# As "finish_cmds", except a single script fragment to be evaled but
21490# not shown.
21491finish_eval=$lt_finish_eval
21492
21493# Whether we should hardcode library paths into libraries.
21494hardcode_into_libs=$hardcode_into_libs
21495
21496# Compile-time system search path for libraries.
21497sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21498
21499# Detected run-time system search path for libraries.
21500sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21501
21502# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21503configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21504
21505# Whether dlopen is supported.
21506dlopen_support=$enable_dlopen
21507
21508# Whether dlopen of programs is supported.
21509dlopen_self=$enable_dlopen_self
21510
21511# Whether dlopen of statically linked programs is supported.
21512dlopen_self_static=$enable_dlopen_self_static
21513
21514# Commands to strip libraries.
21515old_striplib=$lt_old_striplib
21516striplib=$lt_striplib
21517
21518
21519# The linker used to build libraries.
21520LD=$lt_LD
21521
21522# How to create reloadable object files.
21523reload_flag=$lt_reload_flag
21524reload_cmds=$lt_reload_cmds
21525
21526# Commands used to build an old-style archive.
21527old_archive_cmds=$lt_old_archive_cmds
21528
21529# A language specific compiler.
21530CC=$lt_compiler
21531
21532# Is the compiler the GNU compiler?
21533with_gcc=$GCC
21534
21535# Compiler flag to turn off builtin functions.
21536no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21537
21538# Additional compiler flags for building library objects.
21539pic_flag=$lt_lt_prog_compiler_pic
21540
21541# How to pass a linker flag through the compiler.
21542wl=$lt_lt_prog_compiler_wl
21543
21544# Compiler flag to prevent dynamic linking.
21545link_static_flag=$lt_lt_prog_compiler_static
21546
21547# Does compiler simultaneously support -c and -o options?
21548compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21549
21550# Whether or not to add -lc for building shared libraries.
21551build_libtool_need_lc=$archive_cmds_need_lc
21552
21553# Whether or not to disallow shared libs when runtime libs are static.
21554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21555
21556# Compiler flag to allow reflexive dlopens.
21557export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21558
21559# Compiler flag to generate shared objects directly from archives.
21560whole_archive_flag_spec=$lt_whole_archive_flag_spec
21561
21562# Whether the compiler copes with passing no objects directly.
21563compiler_needs_object=$lt_compiler_needs_object
21564
21565# Create an old-style archive from a shared archive.
21566old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21567
21568# Create a temporary old-style archive to link instead of a shared archive.
21569old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21570
21571# Commands used to build a shared archive.
21572archive_cmds=$lt_archive_cmds
21573archive_expsym_cmds=$lt_archive_expsym_cmds
21574
21575# Commands used to build a loadable module if different from building
21576# a shared archive.
21577module_cmds=$lt_module_cmds
21578module_expsym_cmds=$lt_module_expsym_cmds
21579
21580# Whether we are building with GNU ld or not.
21581with_gnu_ld=$lt_with_gnu_ld
21582
21583# Flag that allows shared libraries with undefined symbols to be built.
21584allow_undefined_flag=$lt_allow_undefined_flag
21585
21586# Flag that enforces no undefined symbols.
21587no_undefined_flag=$lt_no_undefined_flag
21588
21589# Flag to hardcode \$libdir into a binary during linking.
21590# This must work even if \$libdir does not exist
21591hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21592
21593# Whether we need a single "-rpath" flag with a separated argument.
21594hardcode_libdir_separator=$lt_hardcode_libdir_separator
21595
21596# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21597# DIR into the resulting binary.
21598hardcode_direct=$hardcode_direct
21599
21600# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21601# DIR into the resulting binary and the resulting library dependency is
21602# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21603# library is relocated.
21604hardcode_direct_absolute=$hardcode_direct_absolute
21605
21606# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21607# into the resulting binary.
21608hardcode_minus_L=$hardcode_minus_L
21609
21610# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21611# into the resulting binary.
21612hardcode_shlibpath_var=$hardcode_shlibpath_var
21613
21614# Set to "yes" if building a shared library automatically hardcodes DIR
21615# into the library and all subsequent libraries and executables linked
21616# against it.
21617hardcode_automatic=$hardcode_automatic
21618
21619# Set to yes if linker adds runtime paths of dependent libraries
21620# to runtime path list.
21621inherit_rpath=$inherit_rpath
21622
21623# Whether libtool must link a program against all its dependency libraries.
21624link_all_deplibs=$link_all_deplibs
21625
21626# Set to "yes" if exported symbols are required.
21627always_export_symbols=$always_export_symbols
21628
21629# The commands to list exported symbols.
21630export_symbols_cmds=$lt_export_symbols_cmds
21631
21632# Symbols that should not be listed in the preloaded symbols.
21633exclude_expsyms=$lt_exclude_expsyms
21634
21635# Symbols that must always be exported.
21636include_expsyms=$lt_include_expsyms
21637
21638# Commands necessary for linking programs (against libraries) with templates.
21639prelink_cmds=$lt_prelink_cmds
21640
21641# Commands necessary for finishing linking programs.
21642postlink_cmds=$lt_postlink_cmds
21643
21644# Specify filename containing input files.
21645file_list_spec=$lt_file_list_spec
21646
21647# How to hardcode a shared library path into an executable.
21648hardcode_action=$hardcode_action
21649
21650# The directories searched by this compiler when creating a shared library.
21651compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21652
21653# Dependencies to place before and after the objects being linked to
21654# create a shared library.
21655predep_objects=$lt_predep_objects
21656postdep_objects=$lt_postdep_objects
21657predeps=$lt_predeps
21658postdeps=$lt_postdeps
21659
21660# The library search path used internally by the compiler when linking
21661# a shared library.
21662compiler_lib_search_path=$lt_compiler_lib_search_path
21663
21664# ### END LIBTOOL CONFIG
21665
21666_LT_EOF
21667
21668    cat <<'_LT_EOF' >> "$cfgfile"
21669
21670# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21671
21672# func_munge_path_list VARIABLE PATH
21673# -----------------------------------
21674# VARIABLE is name of variable containing _space_ separated list of
21675# directories to be munged by the contents of PATH, which is string
21676# having a format:
21677# "DIR[:DIR]:"
21678#       string "DIR[ DIR]" will be prepended to VARIABLE
21679# ":DIR[:DIR]"
21680#       string "DIR[ DIR]" will be appended to VARIABLE
21681# "DIRP[:DIRP]::[DIRA:]DIRA"
21682#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21683#       "DIRA[ DIRA]" will be appended to VARIABLE
21684# "DIR[:DIR]"
21685#       VARIABLE will be replaced by "DIR[ DIR]"
21686func_munge_path_list ()
21687{
21688    case x$2 in
21689    x)
21690        ;;
21691    *:)
21692        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21693        ;;
21694    x:*)
21695        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21696        ;;
21697    *::*)
21698        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21699        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21700        ;;
21701    *)
21702        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21703        ;;
21704    esac
21705}
21706
21707
21708# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21709func_cc_basename ()
21710{
21711    for cc_temp in $*""; do
21712      case $cc_temp in
21713        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21714        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21715        \-*) ;;
21716        *) break;;
21717      esac
21718    done
21719    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21720}
21721
21722
21723# ### END FUNCTIONS SHARED WITH CONFIGURE
21724
21725_LT_EOF
21726
21727  case $host_os in
21728  aix3*)
21729    cat <<\_LT_EOF >> "$cfgfile"
21730# AIX sometimes has problems with the GCC collect2 program.  For some
21731# reason, if we set the COLLECT_NAMES environment variable, the problems
21732# vanish in a puff of smoke.
21733if test set != "${COLLECT_NAMES+set}"; then
21734  COLLECT_NAMES=
21735  export COLLECT_NAMES
21736fi
21737_LT_EOF
21738    ;;
21739  esac
21740
21741
21742
21743ltmain=$ac_aux_dir/ltmain.sh
21744
21745
21746  # We use sed instead of cat because bash on DJGPP gets confused if
21747  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21748  # text mode, it properly converts lines to CR/LF.  This bash problem
21749  # is reportedly fixed, but why not run on old versions too?
21750  sed '$q' "$ltmain" >> "$cfgfile" \
21751     || (rm -f "$cfgfile"; exit 1)
21752
21753   mv -f "$cfgfile" "$ofile" ||
21754    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21755  chmod +x "$ofile"
21756
21757
21758    cat <<_LT_EOF >> "$ofile"
21759
21760# ### BEGIN LIBTOOL TAG CONFIG: CXX
21761
21762# The linker used to build libraries.
21763LD=$lt_LD_CXX
21764
21765# How to create reloadable object files.
21766reload_flag=$lt_reload_flag_CXX
21767reload_cmds=$lt_reload_cmds_CXX
21768
21769# Commands used to build an old-style archive.
21770old_archive_cmds=$lt_old_archive_cmds_CXX
21771
21772# A language specific compiler.
21773CC=$lt_compiler_CXX
21774
21775# Is the compiler the GNU compiler?
21776with_gcc=$GCC_CXX
21777
21778# Compiler flag to turn off builtin functions.
21779no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21780
21781# Additional compiler flags for building library objects.
21782pic_flag=$lt_lt_prog_compiler_pic_CXX
21783
21784# How to pass a linker flag through the compiler.
21785wl=$lt_lt_prog_compiler_wl_CXX
21786
21787# Compiler flag to prevent dynamic linking.
21788link_static_flag=$lt_lt_prog_compiler_static_CXX
21789
21790# Does compiler simultaneously support -c and -o options?
21791compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21792
21793# Whether or not to add -lc for building shared libraries.
21794build_libtool_need_lc=$archive_cmds_need_lc_CXX
21795
21796# Whether or not to disallow shared libs when runtime libs are static.
21797allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21798
21799# Compiler flag to allow reflexive dlopens.
21800export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21801
21802# Compiler flag to generate shared objects directly from archives.
21803whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21804
21805# Whether the compiler copes with passing no objects directly.
21806compiler_needs_object=$lt_compiler_needs_object_CXX
21807
21808# Create an old-style archive from a shared archive.
21809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21810
21811# Create a temporary old-style archive to link instead of a shared archive.
21812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21813
21814# Commands used to build a shared archive.
21815archive_cmds=$lt_archive_cmds_CXX
21816archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21817
21818# Commands used to build a loadable module if different from building
21819# a shared archive.
21820module_cmds=$lt_module_cmds_CXX
21821module_expsym_cmds=$lt_module_expsym_cmds_CXX
21822
21823# Whether we are building with GNU ld or not.
21824with_gnu_ld=$lt_with_gnu_ld_CXX
21825
21826# Flag that allows shared libraries with undefined symbols to be built.
21827allow_undefined_flag=$lt_allow_undefined_flag_CXX
21828
21829# Flag that enforces no undefined symbols.
21830no_undefined_flag=$lt_no_undefined_flag_CXX
21831
21832# Flag to hardcode \$libdir into a binary during linking.
21833# This must work even if \$libdir does not exist
21834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21835
21836# Whether we need a single "-rpath" flag with a separated argument.
21837hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21838
21839# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21840# DIR into the resulting binary.
21841hardcode_direct=$hardcode_direct_CXX
21842
21843# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21844# DIR into the resulting binary and the resulting library dependency is
21845# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21846# library is relocated.
21847hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21848
21849# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21850# into the resulting binary.
21851hardcode_minus_L=$hardcode_minus_L_CXX
21852
21853# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21854# into the resulting binary.
21855hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21856
21857# Set to "yes" if building a shared library automatically hardcodes DIR
21858# into the library and all subsequent libraries and executables linked
21859# against it.
21860hardcode_automatic=$hardcode_automatic_CXX
21861
21862# Set to yes if linker adds runtime paths of dependent libraries
21863# to runtime path list.
21864inherit_rpath=$inherit_rpath_CXX
21865
21866# Whether libtool must link a program against all its dependency libraries.
21867link_all_deplibs=$link_all_deplibs_CXX
21868
21869# Set to "yes" if exported symbols are required.
21870always_export_symbols=$always_export_symbols_CXX
21871
21872# The commands to list exported symbols.
21873export_symbols_cmds=$lt_export_symbols_cmds_CXX
21874
21875# Symbols that should not be listed in the preloaded symbols.
21876exclude_expsyms=$lt_exclude_expsyms_CXX
21877
21878# Symbols that must always be exported.
21879include_expsyms=$lt_include_expsyms_CXX
21880
21881# Commands necessary for linking programs (against libraries) with templates.
21882prelink_cmds=$lt_prelink_cmds_CXX
21883
21884# Commands necessary for finishing linking programs.
21885postlink_cmds=$lt_postlink_cmds_CXX
21886
21887# Specify filename containing input files.
21888file_list_spec=$lt_file_list_spec_CXX
21889
21890# How to hardcode a shared library path into an executable.
21891hardcode_action=$hardcode_action_CXX
21892
21893# The directories searched by this compiler when creating a shared library.
21894compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21895
21896# Dependencies to place before and after the objects being linked to
21897# create a shared library.
21898predep_objects=$lt_predep_objects_CXX
21899postdep_objects=$lt_postdep_objects_CXX
21900predeps=$lt_predeps_CXX
21901postdeps=$lt_postdeps_CXX
21902
21903# The library search path used internally by the compiler when linking
21904# a shared library.
21905compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21906
21907# ### END LIBTOOL TAG CONFIG: CXX
21908_LT_EOF
21909
21910 ;;
21911    "run.sh":F) chmod +x run.sh ;;
21912
21913  esac
21914done # for ac_tag
21915
21916
21917as_fn_exit 0
21918_ACEOF
21919ac_clean_files=$ac_clean_files_save
21920
21921test $ac_write_fail = 0 ||
21922  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21923
21924
21925# configure is writing to config.log, and then calls config.status.
21926# config.status does its own redirection, appending to config.log.
21927# Unfortunately, on DOS this fails, as config.log is still kept open
21928# by configure, so config.status won't be able to write to it; its
21929# output is simply discarded.  So we exec the FD to /dev/null,
21930# effectively closing config.log, so it can be properly (re)opened and
21931# appended to by config.status.  When coming back to configure, we
21932# need to make the FD available again.
21933if test "$no_create" != yes; then
21934  ac_cs_success=:
21935  ac_config_status_args=
21936  test "$silent" = yes &&
21937    ac_config_status_args="$ac_config_status_args --quiet"
21938  exec 5>/dev/null
21939  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21940  exec 5>>config.log
21941  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21942  # would make configure fail if this is the last instruction.
21943  $ac_cs_success || as_fn_exit 1
21944fi
21945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21947printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21948fi
21949
21950
21951
21952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:
21953
21954Automake flags (can be overridden by user flags):
21955  AM_CPPFLAGS: ${AM_CPPFLAGS}
21956    AM_CFLAGS: ${AM_CFLAGS}
21957  AM_CXXFLAGS: ${AM_CXXFLAGS}
21958   AM_LDFLAGS: ${AM_LDFLAGS}
21959
21960User flags (override Automake flags on conflict):
21961     CPPFLAGS: ${CPPFLAGS}
21962       CFLAGS: ${CFLAGS}
21963     CXXFLAGS: ${CXXFLAGS}
21964      LDFLAGS: ${LDFLAGS}" >&5
21965printf "%s\n" "$as_me:
21966
21967Automake flags (can be overridden by user flags):
21968  AM_CPPFLAGS: ${AM_CPPFLAGS}
21969    AM_CFLAGS: ${AM_CFLAGS}
21970  AM_CXXFLAGS: ${AM_CXXFLAGS}
21971   AM_LDFLAGS: ${AM_LDFLAGS}
21972
21973User flags (override Automake flags on conflict):
21974     CPPFLAGS: ${CPPFLAGS}
21975       CFLAGS: ${CFLAGS}
21976     CXXFLAGS: ${CXXFLAGS}
21977      LDFLAGS: ${LDFLAGS}" >&6;}
21978
21979