xref: /freebsd/contrib/lutok/configure (revision 132f818ddbf457ee67d502cd89b5a18e0a34713d)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for Lutok 0.6.2.
4#
5# Report bugs to <testing@FreeBSD.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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# Copyright 2011 Google Inc.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23then :
24  emulate sh
25  NULLCMD=:
26  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27  # is contrary to our usage.  Disable this feature.
28  alias -g '${1+"$@"}'='"$@"'
29  setopt NO_GLOB_SUBST
30else case e in #(
31  e) case `(set -o) 2>/dev/null` in #(
32  *posix*) :
33    set -o posix ;; #(
34  *) :
35     ;;
36esac ;;
37esac
38fi
39
40
41
42# Reset variables that may have inherited troublesome values from
43# the environment.
44
45# IFS needs to be set, to space, tab, and newline, in precisely that order.
46# (If _AS_PATH_WALK were called with IFS unset, it would have the
47# side effect of setting IFS to empty, thus disabling word splitting.)
48# Quoting is to prevent editors from complaining about space-tab.
49as_nl='
50'
51export as_nl
52IFS=" ""	$as_nl"
53
54PS1='$ '
55PS2='> '
56PS4='+ '
57
58# Ensure predictable behavior from utilities with locale-dependent output.
59LC_ALL=C
60export LC_ALL
61LANGUAGE=C
62export LANGUAGE
63
64# We cannot yet rely on "unset" to work, but we need these variables
65# to be unset--not just set to an empty or harmless value--now, to
66# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
67# also avoids known problems related to "unset" and subshell syntax
68# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
69for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
70do eval test \${$as_var+y} \
71  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72done
73
74# Ensure that fds 0, 1, and 2 are open.
75if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
76if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
77if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
78
79# The user is always right.
80if ${PATH_SEPARATOR+false} :; then
81  PATH_SEPARATOR=:
82  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84      PATH_SEPARATOR=';'
85  }
86fi
87
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  case $as_dir in #(((
98    '') as_dir=./ ;;
99    */) ;;
100    *) as_dir=$as_dir/ ;;
101  esac
102    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as 'sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118
119# Use a proper internal environment variable to ensure we don't fall
120  # into an infinite loop, continuously re-executing ourselves.
121  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
122    _as_can_reexec=no; export _as_can_reexec;
123    # We cannot yet assume a decent shell, so we have to provide a
124# neutralization value for shells without unset; and this also
125# works around shells that cannot unset nonexistent variables.
126# Preserve -v and -x to the replacement shell.
127BASH_ENV=/dev/null
128ENV=/dev/null
129(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
130case $- in # ((((
131  *v*x* | *x*v* ) as_opts=-vx ;;
132  *v* ) as_opts=-v ;;
133  *x* ) as_opts=-x ;;
134  * ) as_opts= ;;
135esac
136exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
137# Admittedly, this is quite paranoid, since all the known shells bail
138# out after a failed 'exec'.
139printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140exit 255
141  fi
142  # We don't want this to propagate to other subprocesses.
143          { _as_can_reexec=; unset _as_can_reexec;}
144if test "x$CONFIG_SHELL" = x; then
145  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146then :
147  emulate sh
148  NULLCMD=:
149  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
150  # is contrary to our usage.  Disable this feature.
151  alias -g '\${1+\"\$@\"}'='\"\$@\"'
152  setopt NO_GLOB_SUBST
153else case e in #(
154  e) case \`(set -o) 2>/dev/null\` in #(
155  *posix*) :
156    set -o posix ;; #(
157  *) :
158     ;;
159esac ;;
160esac
161fi
162"
163  as_required="as_fn_return () { (exit \$1); }
164as_fn_success () { as_fn_return 0; }
165as_fn_failure () { as_fn_return 1; }
166as_fn_ret_success () { return 0; }
167as_fn_ret_failure () { return 1; }
168
169exitcode=0
170as_fn_success || { exitcode=1; echo as_fn_success failed.; }
171as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
172as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
173as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
174if ( set x; as_fn_ret_success y && test x = \"\$1\" )
175then :
176
177else case e in #(
178  e) exitcode=1; echo positional parameters were not saved. ;;
179esac
180fi
181test x\$exitcode = x0 || exit 1
182blah=\$(echo \$(echo blah))
183test x\"\$blah\" = xblah || exit 1
184test -x / || exit 1"
185  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
186  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
187  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
188  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
189
190  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
191    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
192    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194    PATH=/empty FPATH=/empty; export PATH FPATH
195    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
196      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
197test \$(( 1 + 1 )) = 2 || exit 1"
198  if (eval "$as_required") 2>/dev/null
199then :
200  as_have_required=yes
201else case e in #(
202  e) as_have_required=no ;;
203esac
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
206then :
207
208else case e in #(
209  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213  IFS=$as_save_IFS
214  case $as_dir in #(((
215    '') as_dir=./ ;;
216    */) ;;
217    *) as_dir=$as_dir/ ;;
218  esac
219  as_found=:
220  case $as_dir in #(
221	 /*)
222	   for as_base in sh bash ksh sh5; do
223	     # Try only shells that exist, to save several forks.
224	     as_shell=$as_dir$as_base
225	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
226		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
227then :
228  CONFIG_SHELL=$as_shell as_have_required=yes
229		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
230then :
231  break 2
232fi
233fi
234	   done;;
235       esac
236  as_found=false
237done
238IFS=$as_save_IFS
239if $as_found
240then :
241
242else case e in #(
243  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
245then :
246  CONFIG_SHELL=$SHELL as_have_required=yes
247fi ;;
248esac
249fi
250
251
252      if test "x$CONFIG_SHELL" != x
253then :
254  export CONFIG_SHELL
255             # We cannot yet assume a decent shell, so we have to provide a
256# neutralization value for shells without unset; and this also
257# works around shells that cannot unset nonexistent variables.
258# Preserve -v and -x to the replacement shell.
259BASH_ENV=/dev/null
260ENV=/dev/null
261(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
262case $- in # ((((
263  *v*x* | *x*v* ) as_opts=-vx ;;
264  *v* ) as_opts=-v ;;
265  *x* ) as_opts=-x ;;
266  * ) as_opts= ;;
267esac
268exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
269# Admittedly, this is quite paranoid, since all the known shells bail
270# out after a failed 'exec'.
271printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
272exit 255
273fi
274
275    if test x$as_have_required = xno
276then :
277  printf "%s\n" "$0: This script requires a shell more modern than all"
278  printf "%s\n" "$0: the shells that I found on your system."
279  if test ${ZSH_VERSION+y} ; then
280    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
281    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
282  else
283    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
284$0: testing@FreeBSD.org about your system, including any
285$0: error possibly output before this message. Then install
286$0: a modern shell, or manually run the script under such a
287$0: shell if you do have one."
288  fi
289  exit 1
290fi ;;
291esac
292fi
293fi
294SHELL=${CONFIG_SHELL-/bin/sh}
295export SHELL
296# Unset more variables known to interfere with behavior of common tools.
297CLICOLOR_FORCE= GREP_OPTIONS=
298unset CLICOLOR_FORCE GREP_OPTIONS
299
300## --------------------- ##
301## M4sh Shell Functions. ##
302## --------------------- ##
303# as_fn_unset VAR
304# ---------------
305# Portably unset VAR.
306as_fn_unset ()
307{
308  { eval $1=; unset $1;}
309}
310as_unset=as_fn_unset
311
312
313# as_fn_set_status STATUS
314# -----------------------
315# Set $? to STATUS, without forking.
316as_fn_set_status ()
317{
318  return $1
319} # as_fn_set_status
320
321# as_fn_exit STATUS
322# -----------------
323# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
324as_fn_exit ()
325{
326  set +e
327  as_fn_set_status $1
328  exit $1
329} # as_fn_exit
330
331# as_fn_mkdir_p
332# -------------
333# Create "$as_dir" as a directory, including parents if necessary.
334as_fn_mkdir_p ()
335{
336
337  case $as_dir in #(
338  -*) as_dir=./$as_dir;;
339  esac
340  test -d "$as_dir" || eval $as_mkdir_p || {
341    as_dirs=
342    while :; do
343      case $as_dir in #(
344      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
345      *) as_qdir=$as_dir;;
346      esac
347      as_dirs="'$as_qdir' $as_dirs"
348      as_dir=`$as_dirname -- "$as_dir" ||
349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
350	 X"$as_dir" : 'X\(//\)[^/]' \| \
351	 X"$as_dir" : 'X\(//\)$' \| \
352	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
353printf "%s\n" X"$as_dir" |
354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\/\)[^/].*/{
359	    s//\1/
360	    q
361	  }
362	  /^X\(\/\/\)$/{
363	    s//\1/
364	    q
365	  }
366	  /^X\(\/\).*/{
367	    s//\1/
368	    q
369	  }
370	  s/.*/./; q'`
371      test -d "$as_dir" && break
372    done
373    test -z "$as_dirs" || eval "mkdir $as_dirs"
374  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
375
376
377} # as_fn_mkdir_p
378
379# as_fn_executable_p FILE
380# -----------------------
381# Test if FILE is an executable regular file.
382as_fn_executable_p ()
383{
384  test -f "$1" && test -x "$1"
385} # as_fn_executable_p
386# as_fn_append VAR VALUE
387# ----------------------
388# Append the text in VALUE to the end of the definition contained in VAR. Take
389# advantage of any shell optimizations that allow amortized linear growth over
390# repeated appends, instead of the typical quadratic growth present in naive
391# implementations.
392if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
393then :
394  eval 'as_fn_append ()
395  {
396    eval $1+=\$2
397  }'
398else case e in #(
399  e) as_fn_append ()
400  {
401    eval $1=\$$1\$2
402  } ;;
403esac
404fi # as_fn_append
405
406# as_fn_arith ARG...
407# ------------------
408# Perform arithmetic evaluation on the ARGs, and store the result in the
409# global $as_val. Take advantage of shells that can avoid forks. The arguments
410# must be portable across $(()) and expr.
411if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412then :
413  eval 'as_fn_arith ()
414  {
415    as_val=$(( $* ))
416  }'
417else case e in #(
418  e) as_fn_arith ()
419  {
420    as_val=`expr "$@" || test $? -eq 1`
421  } ;;
422esac
423fi # as_fn_arith
424
425
426# as_fn_error STATUS ERROR [LINENO LOG_FD]
427# ----------------------------------------
428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430# script with STATUS, using 1 if that was 0.
431as_fn_error ()
432{
433  as_status=$1; test $as_status -eq 0 && as_status=1
434  if test "$4"; then
435    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437  fi
438  printf "%s\n" "$as_me: error: $2" >&2
439  as_fn_exit $as_status
440} # as_fn_error
441
442if expr a : '\(a\)' >/dev/null 2>&1 &&
443   test "X`expr 00001 : '.*\(...\)'`" = X001; then
444  as_expr=expr
445else
446  as_expr=false
447fi
448
449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450  as_basename=basename
451else
452  as_basename=false
453fi
454
455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456  as_dirname=dirname
457else
458  as_dirname=false
459fi
460
461as_me=`$as_basename -- "$0" ||
462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463	 X"$0" : 'X\(//\)$' \| \
464	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465printf "%s\n" X/"$0" |
466    sed '/^.*\/\([^/][^/]*\)\/*$/{
467	    s//\1/
468	    q
469	  }
470	  /^X\/\(\/\/\)$/{
471	    s//\1/
472	    q
473	  }
474	  /^X\/\(\/\).*/{
475	    s//\1/
476	    q
477	  }
478	  s/.*/./; q'`
479
480# Avoid depending upon Character Ranges.
481as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484as_cr_digits='0123456789'
485as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488  as_lineno_1=$LINENO as_lineno_1a=$LINENO
489  as_lineno_2=$LINENO as_lineno_2a=$LINENO
490  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
493  sed -n '
494    p
495    /[$]LINENO/=
496  ' <$as_myself |
497    sed '
498      t clear
499      :clear
500      s/[$]LINENO.*/&-/
501      t lineno
502      b
503      :lineno
504      N
505      :loop
506      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
507      t loop
508      s/-\n.*//
509    ' >$as_me.lineno &&
510  chmod +x "$as_me.lineno" ||
511    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
512
513  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
514  # already done that, so ensure we don't try to do so again and fall
515  # in an infinite loop.  This has already happened in practice.
516  _as_can_reexec=no; export _as_can_reexec
517  # Don't try to exec as it changes $[0], causing all sort of problems
518  # (the dirname of $[0] is not the place where we might find the
519  # original and so on.  Autoconf is especially sensitive to this).
520  . "./$as_me.lineno"
521  # Exit status is that of the last command.
522  exit
523}
524
525
526# Determine whether it's possible to make 'echo' print without a newline.
527# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
528# for compatibility with existing Makefiles.
529ECHO_C= ECHO_N= ECHO_T=
530case `echo -n x` in #(((((
531-n*)
532  case `echo 'xy\c'` in
533  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
534  xy)  ECHO_C='\c';;
535  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
536       ECHO_T='	';;
537  esac;;
538*)
539  ECHO_N='-n';;
540esac
541
542# For backward compatibility with old third-party macros, we provide
543# the shell variables $as_echo and $as_echo_n.  New code should use
544# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
545as_echo='printf %s\n'
546as_echo_n='printf %s'
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
561    # In both cases, we have to default to 'cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
587as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
588
589# Sed expression to map a string onto a valid variable name.
590as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
591as_tr_sh="eval sed '$as_sed_sh'" # deprecated
592
593SHELL=${CONFIG_SHELL-/bin/sh}
594
595
596test -n "$DJDIR" || exec 7<&0 </dev/null
597exec 6>&1
598
599# Name of the host.
600# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
601# so uname gets run too.
602ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
603
604#
605# Initializations.
606#
607ac_default_prefix=/usr/local
608ac_clean_files=
609ac_config_libobj_dir=.
610LIBOBJS=
611cross_compiling=no
612subdirs=
613MFLAGS=
614MAKEFLAGS=
615
616# Identity of this package.
617PACKAGE_NAME='Lutok'
618PACKAGE_TARNAME='lutok'
619PACKAGE_VERSION='0.6.2'
620PACKAGE_STRING='Lutok 0.6.2'
621PACKAGE_BUGREPORT='testing@FreeBSD.org'
622PACKAGE_URL='https://github.com/freebsd/lutok/'
623
624ac_unique_file="state.hpp"
625# Factoring default headers for most tests.
626ac_includes_default="\
627#include <stddef.h>
628#ifdef HAVE_STDIO_H
629# include <stdio.h>
630#endif
631#ifdef HAVE_STDLIB_H
632# include <stdlib.h>
633#endif
634#ifdef HAVE_STRING_H
635# include <string.h>
636#endif
637#ifdef HAVE_INTTYPES_H
638# include <inttypes.h>
639#endif
640#ifdef HAVE_STDINT_H
641# include <stdint.h>
642#endif
643#ifdef HAVE_STRINGS_H
644# include <strings.h>
645#endif
646#ifdef HAVE_SYS_TYPES_H
647# include <sys/types.h>
648#endif
649#ifdef HAVE_SYS_STAT_H
650# include <sys/stat.h>
651#endif
652#ifdef HAVE_UNISTD_H
653# include <unistd.h>
654#endif"
655
656ac_header_c_list=
657with_atf=yes
658with_atf=yes
659ac_subst_vars='am__EXEEXT_FALSE
660am__EXEEXT_TRUE
661LTLIBOBJS
662LIBOBJS
663testsdir
664pkgconfigdir
665GIT
666HAVE_KYUA_FALSE
667HAVE_KYUA_TRUE
668KYUA
669LUA_LIBS
670LUA_CFLAGS
671WITH_DOXYGEN_FALSE
672WITH_DOXYGEN_TRUE
673DOXYGEN
674ATF_SH
675ATF_CXX_LIBS
676ATF_CXX_CFLAGS
677PKG_CONFIG_LIBDIR
678PKG_CONFIG_PATH
679PKG_CONFIG
680WITH_ATF_FALSE
681WITH_ATF_TRUE
682HAVE_CXX20
683CXXCPP
684am__fastdepCXX_FALSE
685am__fastdepCXX_TRUE
686CXXDEPMODE
687ac_ct_CXX
688CXXFLAGS
689CXX
690LT_SYS_LIBRARY_PATH
691OTOOL64
692OTOOL
693LIPO
694NMEDIT
695DSYMUTIL
696MANIFEST_TOOL
697RANLIB
698DLLTOOL
699OBJDUMP
700FILECMD
701LN_S
702NM
703ac_ct_DUMPBIN
704DUMPBIN
705LD
706FGREP
707EGREP
708GREP
709SED
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718LIBTOOL
719am__fastdepCC_FALSE
720am__fastdepCC_TRUE
721CCDEPMODE
722am__nodep
723AMDEPBACKSLASH
724AMDEP_FALSE
725AMDEP_TRUE
726am__include
727DEPDIR
728OBJEXT
729EXEEXT
730ac_ct_CC
731CPPFLAGS
732LDFLAGS
733CFLAGS
734CC
735ac_ct_AR
736AR
737am__xargs_n
738am__rm_f_notfound
739AM_BACKSLASH
740AM_DEFAULT_VERBOSITY
741AM_DEFAULT_V
742AM_V
743CSCOPE
744ETAGS
745CTAGS
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751AWK
752mkdir_p
753MKDIR_P
754INSTALL_STRIP_PROGRAM
755STRIP
756install_sh
757MAKEINFO
758AUTOHEADER
759AUTOMAKE
760AUTOCONF
761ACLOCAL
762VERSION
763PACKAGE
764CYGPATH_W
765am__isrc
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788runstatedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL
808am__quote'
809ac_subst_files=''
810ac_user_opts='
811enable_option_checking
812enable_silent_rules
813enable_dependency_tracking
814enable_shared
815enable_static
816enable_pic
817with_pic
818enable_fast_install
819enable_aix_soname
820with_aix_soname
821with_gnu_ld
822with_sysroot
823enable_libtool_lock
824enable_developer
825enable_atf
826with_doxygen
827'
828      ac_precious_vars='build_alias
829host_alias
830target_alias
831CC
832CFLAGS
833LDFLAGS
834LIBS
835CPPFLAGS
836LT_SYS_LIBRARY_PATH
837CXX
838CXXFLAGS
839CCC
840CXXCPP
841PKG_CONFIG
842PKG_CONFIG_PATH
843PKG_CONFIG_LIBDIR
844ATF_CXX_CFLAGS
845ATF_CXX_LIBS
846LUA_CFLAGS
847LUA_LIBS'
848
849
850# Initialize some variables set by options.
851ac_init_help=
852ac_init_version=false
853ac_unrecognized_opts=
854ac_unrecognized_sep=
855# The variables have the same names as the options, with
856# dashes changed to underlines.
857cache_file=/dev/null
858exec_prefix=NONE
859no_create=
860no_recursion=
861prefix=NONE
862program_prefix=NONE
863program_suffix=NONE
864program_transform_name=s,x,x,
865silent=
866site=
867srcdir=
868verbose=
869x_includes=NONE
870x_libraries=NONE
871
872# Installation directory options.
873# These are left unexpanded so users can "make install exec_prefix=/foo"
874# and all the variables that are supposed to be based on exec_prefix
875# by default will actually change.
876# Use braces instead of parens because sh, perl, etc. also accept them.
877# (The list follows the same order as the GNU Coding Standards.)
878bindir='${exec_prefix}/bin'
879sbindir='${exec_prefix}/sbin'
880libexecdir='${exec_prefix}/libexec'
881datarootdir='${prefix}/share'
882datadir='${datarootdir}'
883sysconfdir='${prefix}/etc'
884sharedstatedir='${prefix}/com'
885localstatedir='${prefix}/var'
886runstatedir='${localstatedir}/run'
887includedir='${prefix}/include'
888oldincludedir='/usr/include'
889docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890infodir='${datarootdir}/info'
891htmldir='${docdir}'
892dvidir='${docdir}'
893pdfdir='${docdir}'
894psdir='${docdir}'
895libdir='${exec_prefix}/lib'
896localedir='${datarootdir}/locale'
897mandir='${datarootdir}/man'
898
899ac_prev=
900ac_dashdash=
901for ac_option
902do
903  # If the previous option needs an argument, assign it.
904  if test -n "$ac_prev"; then
905    eval $ac_prev=\$ac_option
906    ac_prev=
907    continue
908  fi
909
910  case $ac_option in
911  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912  *=)   ac_optarg= ;;
913  *)    ac_optarg=yes ;;
914  esac
915
916  case $ac_dashdash$ac_option in
917  --)
918    ac_dashdash=yes ;;
919
920  -bindir | --bindir | --bindi | --bind | --bin | --bi)
921    ac_prev=bindir ;;
922  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923    bindir=$ac_optarg ;;
924
925  -build | --build | --buil | --bui | --bu)
926    ac_prev=build_alias ;;
927  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928    build_alias=$ac_optarg ;;
929
930  -cache-file | --cache-file | --cache-fil | --cache-fi \
931  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932    ac_prev=cache_file ;;
933  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935    cache_file=$ac_optarg ;;
936
937  --config-cache | -C)
938    cache_file=config.cache ;;
939
940  -datadir | --datadir | --datadi | --datad)
941    ac_prev=datadir ;;
942  -datadir=* | --datadir=* | --datadi=* | --datad=*)
943    datadir=$ac_optarg ;;
944
945  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946  | --dataroo | --dataro | --datar)
947    ac_prev=datarootdir ;;
948  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950    datarootdir=$ac_optarg ;;
951
952  -disable-* | --disable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: '$ac_useropt'"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=no ;;
967
968  -docdir | --docdir | --docdi | --doc | --do)
969    ac_prev=docdir ;;
970  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971    docdir=$ac_optarg ;;
972
973  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974    ac_prev=dvidir ;;
975  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976    dvidir=$ac_optarg ;;
977
978  -enable-* | --enable-*)
979    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980    # Reject names that are not valid shell variable names.
981    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982      as_fn_error $? "invalid feature name: '$ac_useropt'"
983    ac_useropt_orig=$ac_useropt
984    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
985    case $ac_user_opts in
986      *"
987"enable_$ac_useropt"
988"*) ;;
989      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990	 ac_unrecognized_sep=', ';;
991    esac
992    eval enable_$ac_useropt=\$ac_optarg ;;
993
994  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996  | --exec | --exe | --ex)
997    ac_prev=exec_prefix ;;
998  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000  | --exec=* | --exe=* | --ex=*)
1001    exec_prefix=$ac_optarg ;;
1002
1003  -gas | --gas | --ga | --g)
1004    # Obsolete; use --with-gas.
1005    with_gas=yes ;;
1006
1007  -help | --help | --hel | --he | -h)
1008    ac_init_help=long ;;
1009  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010    ac_init_help=recursive ;;
1011  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012    ac_init_help=short ;;
1013
1014  -host | --host | --hos | --ho)
1015    ac_prev=host_alias ;;
1016  -host=* | --host=* | --hos=* | --ho=*)
1017    host_alias=$ac_optarg ;;
1018
1019  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020    ac_prev=htmldir ;;
1021  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022  | --ht=*)
1023    htmldir=$ac_optarg ;;
1024
1025  -includedir | --includedir | --includedi | --included | --include \
1026  | --includ | --inclu | --incl | --inc)
1027    ac_prev=includedir ;;
1028  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029  | --includ=* | --inclu=* | --incl=* | --inc=*)
1030    includedir=$ac_optarg ;;
1031
1032  -infodir | --infodir | --infodi | --infod | --info | --inf)
1033    ac_prev=infodir ;;
1034  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035    infodir=$ac_optarg ;;
1036
1037  -libdir | --libdir | --libdi | --libd)
1038    ac_prev=libdir ;;
1039  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040    libdir=$ac_optarg ;;
1041
1042  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043  | --libexe | --libex | --libe)
1044    ac_prev=libexecdir ;;
1045  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046  | --libexe=* | --libex=* | --libe=*)
1047    libexecdir=$ac_optarg ;;
1048
1049  -localedir | --localedir | --localedi | --localed | --locale)
1050    ac_prev=localedir ;;
1051  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052    localedir=$ac_optarg ;;
1053
1054  -localstatedir | --localstatedir | --localstatedi | --localstated \
1055  | --localstate | --localstat | --localsta | --localst | --locals)
1056    ac_prev=localstatedir ;;
1057  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059    localstatedir=$ac_optarg ;;
1060
1061  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062    ac_prev=mandir ;;
1063  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064    mandir=$ac_optarg ;;
1065
1066  -nfp | --nfp | --nf)
1067    # Obsolete; use --without-fp.
1068    with_fp=no ;;
1069
1070  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071  | --no-cr | --no-c | -n)
1072    no_create=yes ;;
1073
1074  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076    no_recursion=yes ;;
1077
1078  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080  | --oldin | --oldi | --old | --ol | --o)
1081    ac_prev=oldincludedir ;;
1082  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085    oldincludedir=$ac_optarg ;;
1086
1087  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088    ac_prev=prefix ;;
1089  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090    prefix=$ac_optarg ;;
1091
1092  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093  | --program-pre | --program-pr | --program-p)
1094    ac_prev=program_prefix ;;
1095  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097    program_prefix=$ac_optarg ;;
1098
1099  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100  | --program-suf | --program-su | --program-s)
1101    ac_prev=program_suffix ;;
1102  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104    program_suffix=$ac_optarg ;;
1105
1106  -program-transform-name | --program-transform-name \
1107  | --program-transform-nam | --program-transform-na \
1108  | --program-transform-n | --program-transform- \
1109  | --program-transform | --program-transfor \
1110  | --program-transfo | --program-transf \
1111  | --program-trans | --program-tran \
1112  | --progr-tra | --program-tr | --program-t)
1113    ac_prev=program_transform_name ;;
1114  -program-transform-name=* | --program-transform-name=* \
1115  | --program-transform-nam=* | --program-transform-na=* \
1116  | --program-transform-n=* | --program-transform-=* \
1117  | --program-transform=* | --program-transfor=* \
1118  | --program-transfo=* | --program-transf=* \
1119  | --program-trans=* | --program-tran=* \
1120  | --progr-tra=* | --program-tr=* | --program-t=*)
1121    program_transform_name=$ac_optarg ;;
1122
1123  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124    ac_prev=pdfdir ;;
1125  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126    pdfdir=$ac_optarg ;;
1127
1128  -psdir | --psdir | --psdi | --psd | --ps)
1129    ac_prev=psdir ;;
1130  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131    psdir=$ac_optarg ;;
1132
1133  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134  | -silent | --silent | --silen | --sile | --sil)
1135    silent=yes ;;
1136
1137  -runstatedir | --runstatedir | --runstatedi | --runstated \
1138  | --runstate | --runstat | --runsta | --runst | --runs \
1139  | --run | --ru | --r)
1140    ac_prev=runstatedir ;;
1141  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143  | --run=* | --ru=* | --r=*)
1144    runstatedir=$ac_optarg ;;
1145
1146  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147    ac_prev=sbindir ;;
1148  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149  | --sbi=* | --sb=*)
1150    sbindir=$ac_optarg ;;
1151
1152  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154  | --sharedst | --shareds | --shared | --share | --shar \
1155  | --sha | --sh)
1156    ac_prev=sharedstatedir ;;
1157  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160  | --sha=* | --sh=*)
1161    sharedstatedir=$ac_optarg ;;
1162
1163  -site | --site | --sit)
1164    ac_prev=site ;;
1165  -site=* | --site=* | --sit=*)
1166    site=$ac_optarg ;;
1167
1168  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169    ac_prev=srcdir ;;
1170  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171    srcdir=$ac_optarg ;;
1172
1173  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174  | --syscon | --sysco | --sysc | --sys | --sy)
1175    ac_prev=sysconfdir ;;
1176  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178    sysconfdir=$ac_optarg ;;
1179
1180  -target | --target | --targe | --targ | --tar | --ta | --t)
1181    ac_prev=target_alias ;;
1182  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183    target_alias=$ac_optarg ;;
1184
1185  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186    verbose=yes ;;
1187
1188  -version | --version | --versio | --versi | --vers | -V)
1189    ac_init_version=: ;;
1190
1191  -with-* | --with-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: '$ac_useropt'"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=\$ac_optarg ;;
1206
1207  -without-* | --without-*)
1208    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1219	 ac_unrecognized_sep=', ';;
1220    esac
1221    eval with_$ac_useropt=no ;;
1222
1223  --x)
1224    # Obsolete; use --with-x.
1225    with_x=yes ;;
1226
1227  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228  | --x-incl | --x-inc | --x-in | --x-i)
1229    ac_prev=x_includes ;;
1230  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232    x_includes=$ac_optarg ;;
1233
1234  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236    ac_prev=x_libraries ;;
1237  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239    x_libraries=$ac_optarg ;;
1240
1241  -*) as_fn_error $? "unrecognized option: '$ac_option'
1242Try '$0 --help' for more information"
1243    ;;
1244
1245  *=*)
1246    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247    # Reject names that are not valid shell variable names.
1248    case $ac_envvar in #(
1249      '' | [0-9]* | *[!_$as_cr_alnum]* )
1250      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1251    esac
1252    eval $ac_envvar=\$ac_optarg
1253    export $ac_envvar ;;
1254
1255  *)
1256    # FIXME: should be removed in autoconf 3.0.
1257    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1258    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1260    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261    ;;
1262
1263  esac
1264done
1265
1266if test -n "$ac_prev"; then
1267  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268  as_fn_error $? "missing argument to $ac_option"
1269fi
1270
1271if test -n "$ac_unrecognized_opts"; then
1272  case $enable_option_checking in
1273    no) ;;
1274    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276  esac
1277fi
1278
1279# Check all directory arguments for consistency.
1280for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281		datadir sysconfdir sharedstatedir localstatedir includedir \
1282		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283		libdir localedir mandir runstatedir
1284do
1285  eval ac_val=\$$ac_var
1286  # Remove trailing slashes.
1287  case $ac_val in
1288    */ )
1289      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290      eval $ac_var=\$ac_val;;
1291  esac
1292  # Be sure to have absolute directory names.
1293  case $ac_val in
1294    [\\/$]* | ?:[\\/]* )  continue;;
1295    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296  esac
1297  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298done
1299
1300# There might be people who depend on the old broken behavior: '$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309  if test "x$build_alias" = x; then
1310    cross_compiling=maybe
1311  elif test "x$build_alias" != "x$host_alias"; then
1312    cross_compiling=yes
1313  fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325  as_fn_error $? "working directory cannot be determined"
1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327  as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332  ac_srcdir_defaulted=yes
1333  # Try the directory containing this script, then the parent directory.
1334  ac_confdir=`$as_dirname -- "$as_myself" ||
1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336	 X"$as_myself" : 'X\(//\)[^/]' \| \
1337	 X"$as_myself" : 'X\(//\)$' \| \
1338	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339printf "%s\n" X"$as_myself" |
1340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)[^/].*/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\).*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  s/.*/./; q'`
1357  srcdir=$ac_confdir
1358  if test ! -r "$srcdir/$ac_unique_file"; then
1359    srcdir=..
1360  fi
1361else
1362  ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367fi
1368ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371	pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374  srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_env_${ac_var}_value=\$${ac_var}
1385  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393  # Omit some internal or obsolete options to make the list less imposing.
1394  # This message is too long to be a string in the A/UX 3.1 sh.
1395  cat <<_ACEOF
1396'configure' configures Lutok 0.6.2 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406  -h, --help              display this help and exit
1407      --help=short        display options specific to this package
1408      --help=recursive    display the short help of all the included packages
1409  -V, --version           display version information and exit
1410  -q, --quiet, --silent   do not print 'checking ...' messages
1411      --cache-file=FILE   cache test results in FILE [disabled]
1412  -C, --config-cache      alias for '--cache-file=config.cache'
1413  -n, --no-create         do not create output files
1414      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1415
1416Installation directories:
1417  --prefix=PREFIX         install architecture-independent files in PREFIX
1418                          [$ac_default_prefix]
1419  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420                          [PREFIX]
1421
1422By default, 'make install' will install all the files in
1423'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1424an installation prefix other than '$ac_default_prefix' using '--prefix',
1425for instance '--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430  --bindir=DIR            user executables [EPREFIX/bin]
1431  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1432  --libexecdir=DIR        program executables [EPREFIX/libexec]
1433  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1434  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1435  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1436  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1437  --libdir=DIR            object code libraries [EPREFIX/lib]
1438  --includedir=DIR        C header files [PREFIX/include]
1439  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1440  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1441  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1442  --infodir=DIR           info documentation [DATAROOTDIR/info]
1443  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1444  --mandir=DIR            man documentation [DATAROOTDIR/man]
1445  --docdir=DIR            documentation root [DATAROOTDIR/doc/lutok]
1446  --htmldir=DIR           html documentation [DOCDIR]
1447  --dvidir=DIR            dvi documentation [DOCDIR]
1448  --pdfdir=DIR            pdf documentation [DOCDIR]
1449  --psdir=DIR             ps documentation [DOCDIR]
1450_ACEOF
1451
1452  cat <<\_ACEOF
1453
1454Program names:
1455  --program-prefix=PREFIX            prepend PREFIX to installed program names
1456  --program-suffix=SUFFIX            append SUFFIX to installed program names
1457  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1458
1459System types:
1460  --build=BUILD     configure for building on BUILD [guessed]
1461  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466  case $ac_init_help in
1467     short | recursive ) echo "Configuration of Lutok 0.6.2:";;
1468   esac
1469  cat <<\_ACEOF
1470
1471Optional Features:
1472  --disable-option-checking  ignore unrecognized --enable/--with options
1473  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1474  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1475  --enable-silent-rules   less verbose build output (undo: "make V=1")
1476  --disable-silent-rules  verbose build output (undo: "make V=0")
1477  --enable-dependency-tracking
1478                          do not reject slow dependency extractors
1479  --disable-dependency-tracking
1480                          speeds up one-time build
1481  --enable-shared[=PKGS]  build shared libraries [default=yes]
1482  --enable-static[=PKGS]  build static libraries [default=yes]
1483  --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
1484                          both]
1485  --enable-fast-install[=PKGS]
1486                          optimize for fast installation [default=yes]
1487  --enable-aix-soname=aix|svr4|both
1488                          shared library versioning (aka "SONAME") variant to
1489                          provide on AIX, [default=aix].
1490  --disable-libtool-lock  avoid locking (might break parallel builds)
1491  --enable-developer      enable developer features
1492  --enable-atf            Enable ATF tests (default: no)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1498  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1499                          compiler's sysroot if not specified).
1500  --with-doxygen          build documentation for internal APIs
1501
1502Some influential environment variables:
1503  CC          C compiler command
1504  CFLAGS      C compiler flags
1505  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506              nonstandard directory <lib dir>
1507  LIBS        libraries to pass to the linker, e.g. -l<library>
1508  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509              you have headers in a nonstandard directory <include dir>
1510  LT_SYS_LIBRARY_PATH
1511              User-defined run-time library search path.
1512  CXX         C++ compiler command
1513  CXXFLAGS    C++ compiler flags
1514  CXXCPP      C++ preprocessor
1515  PKG_CONFIG  path to pkg-config utility
1516  PKG_CONFIG_PATH
1517              directories to add to pkg-config's search path
1518  PKG_CONFIG_LIBDIR
1519              path overriding pkg-config's built-in search path
1520  ATF_CXX_CFLAGS
1521              C compiler flags for ATF_CXX, overriding pkg-config
1522  ATF_CXX_LIBS
1523              linker flags for ATF_CXX, overriding pkg-config
1524  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1525  LUA_LIBS    linker flags for LUA, overriding pkg-config
1526
1527Use these variables to override the choices made by 'configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <testing@FreeBSD.org>.
1531Lutok home page: <https://github.com/freebsd/lutok/>.
1532_ACEOF
1533ac_status=$?
1534fi
1535
1536if test "$ac_init_help" = "recursive"; then
1537  # If there are subdirs, report their specific --help.
1538  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539    test -d "$ac_dir" ||
1540      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541      continue
1542    ac_builddir=.
1543
1544case "$ac_dir" in
1545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546*)
1547  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1548  # A ".." for each directory in $ac_dir_suffix.
1549  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550  case $ac_top_builddir_sub in
1551  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553  esac ;;
1554esac
1555ac_abs_top_builddir=$ac_pwd
1556ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557# for backward compatibility:
1558ac_top_builddir=$ac_top_build_prefix
1559
1560case $srcdir in
1561  .)  # We are building in place.
1562    ac_srcdir=.
1563    ac_top_srcdir=$ac_top_builddir_sub
1564    ac_abs_top_srcdir=$ac_pwd ;;
1565  [\\/]* | ?:[\\/]* )  # Absolute name.
1566    ac_srcdir=$srcdir$ac_dir_suffix;
1567    ac_top_srcdir=$srcdir
1568    ac_abs_top_srcdir=$srcdir ;;
1569  *) # Relative name.
1570    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571    ac_top_srcdir=$ac_top_build_prefix$srcdir
1572    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573esac
1574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576    cd "$ac_dir" || { ac_status=$?; continue; }
1577    # Check for configure.gnu first; this name is used for a wrapper for
1578    # Metaconfig's "Configure" on case-insensitive file systems.
1579    if test -f "$ac_srcdir/configure.gnu"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582    elif test -f "$ac_srcdir/configure"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure" --help=recursive
1585    else
1586      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587    fi || ac_status=$?
1588    cd "$ac_pwd" || { ac_status=$?; break; }
1589  done
1590fi
1591
1592test -n "$ac_init_help" && exit $ac_status
1593if $ac_init_version; then
1594  cat <<\_ACEOF
1595Lutok configure 0.6.2
1596generated by GNU Autoconf 2.72
1597
1598Copyright (C) 2023 Free Software Foundation, Inc.
1599This configure script is free software; the Free Software Foundation
1600gives unlimited permission to copy, distribute and modify it.
1601
1602Copyright 2011 Google Inc.
1603_ACEOF
1604  exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
1610
1611# ac_fn_c_try_compile LINENO
1612# --------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_compile ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  rm -f conftest.$ac_objext conftest.beam
1618  if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624printf "%s\n" "$ac_try_echo"; } >&5
1625  (eval "$ac_compile") 2>conftest.err
1626  ac_status=$?
1627  if test -s conftest.err; then
1628    grep -v '^ *+' conftest.err >conftest.er1
1629    cat conftest.er1 >&5
1630    mv -f conftest.er1 conftest.err
1631  fi
1632  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } && {
1634	 test -z "$ac_c_werror_flag" ||
1635	 test ! -s conftest.err
1636       } && test -s conftest.$ac_objext
1637then :
1638  ac_retval=0
1639else case e in #(
1640  e) printf "%s\n" "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643	ac_retval=1 ;;
1644esac
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_compile
1650
1651# ac_fn_c_try_link LINENO
1652# -----------------------
1653# Try to link conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_link ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1658  if { { ac_try="$ac_link"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664printf "%s\n" "$ac_try_echo"; } >&5
1665  (eval "$ac_link") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && {
1674	 test -z "$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       } && test -s conftest$ac_exeext && {
1677	 test "$cross_compiling" = yes ||
1678	 test -x conftest$ac_exeext
1679       }
1680then :
1681  ac_retval=0
1682else case e in #(
1683  e) printf "%s\n" "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686	ac_retval=1 ;;
1687esac
1688fi
1689  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691  # interfere with the next link command; also delete a directory that is
1692  # left behind by Apple's compiler.  We do this before executing the actions.
1693  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_link
1698
1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700# -------------------------------------------------------
1701# Tests whether HEADER exists and can be compiled using the include files in
1702# INCLUDES, setting the cache variable VAR accordingly.
1703ac_fn_c_check_header_compile ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707printf %s "checking for $2... " >&6; }
1708if eval test \${$3+y}
1709then :
1710  printf %s "(cached) " >&6
1711else case e in #(
1712  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"
1718then :
1719  eval "$3=yes"
1720else case e in #(
1721  e) eval "$3=no" ;;
1722esac
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1725esac
1726fi
1727eval ac_res=\$$3
1728	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729printf "%s\n" "$ac_res" >&6; }
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732} # ac_fn_c_check_header_compile
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741printf %s "checking for $2... " >&6; }
1742if eval test \${$3+y}
1743then :
1744  printf %s "(cached) " >&6
1745else case e in #(
1746  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1750#define $2 innocuous_$2
1751
1752/* System header to define __stub macros and hopefully few prototypes,
1753   which can conflict with char $2 (void); below.  */
1754
1755#include <limits.h>
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759   Use char because int might match the return type of a GCC
1760   builtin and then its argument prototype would still apply.  */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 (void);
1765/* The GNU C library defines this for functions which it implements
1766    to always fail with ENOSYS.  Some functions are actually named
1767    something starting with __ and the normal name is an alias.  */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main (void)
1774{
1775return $2 ();
1776  ;
1777  return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"
1781then :
1782  eval "$3=yes"
1783else case e in #(
1784  e) eval "$3=no" ;;
1785esac
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788    conftest$ac_exeext conftest.$ac_ext ;;
1789esac
1790fi
1791eval ac_res=\$$3
1792	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793printf "%s\n" "$ac_res" >&6; }
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796} # ac_fn_c_check_func
1797
1798# ac_fn_cxx_try_compile LINENO
1799# ----------------------------
1800# Try to compile conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_cxx_try_compile ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  rm -f conftest.$ac_objext conftest.beam
1805  if { { ac_try="$ac_compile"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811printf "%s\n" "$ac_try_echo"; } >&5
1812  (eval "$ac_compile") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && {
1821	 test -z "$ac_cxx_werror_flag" ||
1822	 test ! -s conftest.err
1823       } && test -s conftest.$ac_objext
1824then :
1825  ac_retval=0
1826else case e in #(
1827  e) printf "%s\n" "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830	ac_retval=1 ;;
1831esac
1832fi
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834  as_fn_set_status $ac_retval
1835
1836} # ac_fn_cxx_try_compile
1837
1838# ac_fn_cxx_try_cpp LINENO
1839# ------------------------
1840# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_cxx_try_cpp ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  if { { ac_try="$ac_cpp conftest.$ac_ext"
1845case "(($ac_try" in
1846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847  *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850printf "%s\n" "$ac_try_echo"; } >&5
1851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852  ac_status=$?
1853  if test -s conftest.err; then
1854    grep -v '^ *+' conftest.err >conftest.er1
1855    cat conftest.er1 >&5
1856    mv -f conftest.er1 conftest.err
1857  fi
1858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; } > conftest.i && {
1860	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1861	 test ! -s conftest.err
1862       }
1863then :
1864  ac_retval=0
1865else case e in #(
1866  e) printf "%s\n" "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869    ac_retval=1 ;;
1870esac
1871fi
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873  as_fn_set_status $ac_retval
1874
1875} # ac_fn_cxx_try_cpp
1876
1877# ac_fn_cxx_try_link LINENO
1878# -------------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded.
1880ac_fn_cxx_try_link ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1884  if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887  *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890printf "%s\n" "$ac_try_echo"; } >&5
1891  (eval "$ac_link") 2>conftest.err
1892  ac_status=$?
1893  if test -s conftest.err; then
1894    grep -v '^ *+' conftest.err >conftest.er1
1895    cat conftest.er1 >&5
1896    mv -f conftest.er1 conftest.err
1897  fi
1898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899  test $ac_status = 0; } && {
1900	 test -z "$ac_cxx_werror_flag" ||
1901	 test ! -s conftest.err
1902       } && test -s conftest$ac_exeext && {
1903	 test "$cross_compiling" = yes ||
1904	 test -x conftest$ac_exeext
1905       }
1906then :
1907  ac_retval=0
1908else case e in #(
1909  e) printf "%s\n" "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912	ac_retval=1 ;;
1913esac
1914fi
1915  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917  # interfere with the next link command; also delete a directory that is
1918  # left behind by Apple's compiler.  We do this before executing the actions.
1919  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921  as_fn_set_status $ac_retval
1922
1923} # ac_fn_cxx_try_link
1924ac_configure_args_raw=
1925for ac_arg
1926do
1927  case $ac_arg in
1928  *\'*)
1929    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930  esac
1931  as_fn_append ac_configure_args_raw " '$ac_arg'"
1932done
1933
1934case $ac_configure_args_raw in
1935  *$as_nl*)
1936    ac_safe_unquote= ;;
1937  *)
1938    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1939    ac_unsafe_a="$ac_unsafe_z#~"
1940    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1941    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1942esac
1943
1944cat >config.log <<_ACEOF
1945This file contains any messages produced by compilers while
1946running configure, to aid debugging if configure makes a mistake.
1947
1948It was created by Lutok $as_me 0.6.2, which was
1949generated by GNU Autoconf 2.72.  Invocation command line was
1950
1951  $ $0$ac_configure_args_raw
1952
1953_ACEOF
1954exec 5>>config.log
1955{
1956cat <<_ASUNAME
1957## --------- ##
1958## Platform. ##
1959## --------- ##
1960
1961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966
1967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1969
1970/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1971/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1974/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1975/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1976/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1977
1978_ASUNAME
1979
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983  IFS=$as_save_IFS
1984  case $as_dir in #(((
1985    '') as_dir=./ ;;
1986    */) ;;
1987    *) as_dir=$as_dir/ ;;
1988  esac
1989    printf "%s\n" "PATH: $as_dir"
1990  done
1991IFS=$as_save_IFS
1992
1993} >&5
1994
1995cat >&5 <<_ACEOF
1996
1997
1998## ----------- ##
1999## Core tests. ##
2000## ----------- ##
2001
2002_ACEOF
2003
2004
2005# Keep a trace of the command line.
2006# Strip out --no-create and --no-recursion so they do not pile up.
2007# Strip out --silent because we don't want to record it for future runs.
2008# Also quote any args containing shell meta-characters.
2009# Make two passes to allow for proper duplicate-argument suppression.
2010ac_configure_args=
2011ac_configure_args0=
2012ac_configure_args1=
2013ac_must_keep_next=false
2014for ac_pass in 1 2
2015do
2016  for ac_arg
2017  do
2018    case $ac_arg in
2019    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021    | -silent | --silent | --silen | --sile | --sil)
2022      continue ;;
2023    *\'*)
2024      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025    esac
2026    case $ac_pass in
2027    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028    2)
2029      as_fn_append ac_configure_args1 " '$ac_arg'"
2030      if test $ac_must_keep_next = true; then
2031	ac_must_keep_next=false # Got value, back to normal.
2032      else
2033	case $ac_arg in
2034	  *=* | --config-cache | -C | -disable-* | --disable-* \
2035	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037	  | -with-* | --with-* | -without-* | --without-* | --x)
2038	    case "$ac_configure_args0 " in
2039	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040	    esac
2041	    ;;
2042	  -* ) ac_must_keep_next=true ;;
2043	esac
2044      fi
2045      as_fn_append ac_configure_args " '$ac_arg'"
2046      ;;
2047    esac
2048  done
2049done
2050{ ac_configure_args0=; unset ac_configure_args0;}
2051{ ac_configure_args1=; unset ac_configure_args1;}
2052
2053# When interrupted or exit'd, cleanup temporary files, and complete
2054# config.log.  We remove comments because anyway the quotes in there
2055# would cause problems or look ugly.
2056# WARNING: Use '\'' to represent an apostrophe within the trap.
2057# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058trap 'exit_status=$?
2059  # Sanitize IFS.
2060  IFS=" ""	$as_nl"
2061  # Save into config.log some information that might help in debugging.
2062  {
2063    echo
2064
2065    printf "%s\n" "## ---------------- ##
2066## Cache variables. ##
2067## ---------------- ##"
2068    echo
2069    # The following way of writing the cache mishandles newlines in values,
2070(
2071  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072    eval ac_val=\$$ac_var
2073    case $ac_val in #(
2074    *${as_nl}*)
2075      case $ac_var in #(
2076      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078      esac
2079      case $ac_var in #(
2080      _ | IFS | as_nl) ;; #(
2081      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082      *) { eval $ac_var=; unset $ac_var;} ;;
2083      esac ;;
2084    esac
2085  done
2086  (set) 2>&1 |
2087    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088    *${as_nl}ac_space=\ *)
2089      sed -n \
2090	"s/'\''/'\''\\\\'\'''\''/g;
2091	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092      ;; #(
2093    *)
2094      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095      ;;
2096    esac |
2097    sort
2098)
2099    echo
2100
2101    printf "%s\n" "## ----------------- ##
2102## Output variables. ##
2103## ----------------- ##"
2104    echo
2105    for ac_var in $ac_subst_vars
2106    do
2107      eval ac_val=\$$ac_var
2108      case $ac_val in
2109      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110      esac
2111      printf "%s\n" "$ac_var='\''$ac_val'\''"
2112    done | sort
2113    echo
2114
2115    if test -n "$ac_subst_files"; then
2116      printf "%s\n" "## ------------------- ##
2117## File substitutions. ##
2118## ------------------- ##"
2119      echo
2120      for ac_var in $ac_subst_files
2121      do
2122	eval ac_val=\$$ac_var
2123	case $ac_val in
2124	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125	esac
2126	printf "%s\n" "$ac_var='\''$ac_val'\''"
2127      done | sort
2128      echo
2129    fi
2130
2131    if test -s confdefs.h; then
2132      printf "%s\n" "## ----------- ##
2133## confdefs.h. ##
2134## ----------- ##"
2135      echo
2136      cat confdefs.h
2137      echo
2138    fi
2139    test "$ac_signal" != 0 &&
2140      printf "%s\n" "$as_me: caught signal $ac_signal"
2141    printf "%s\n" "$as_me: exit $exit_status"
2142  } >&5
2143  rm -f core *.core core.conftest.* &&
2144    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145    exit $exit_status
2146' 0
2147for ac_signal in 1 2 13 15; do
2148  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2149done
2150ac_signal=0
2151
2152# confdefs.h avoids OS command line length limits that DEFS can exceed.
2153rm -f -r conftest* confdefs.h
2154
2155printf "%s\n" "/* confdefs.h */" > confdefs.h
2156
2157# Predefined preprocessor variables.
2158
2159printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2160
2161printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2162
2163printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2164
2165printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2166
2167printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2168
2169printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2170
2171
2172# Let the site file select an alternate cache file if it wants to.
2173# Prefer an explicitly selected file to automatically selected ones.
2174if test -n "$CONFIG_SITE"; then
2175  ac_site_files="$CONFIG_SITE"
2176elif test "x$prefix" != xNONE; then
2177  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2178else
2179  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2180fi
2181
2182for ac_site_file in $ac_site_files
2183do
2184  case $ac_site_file in #(
2185  */*) :
2186     ;; #(
2187  *) :
2188    ac_site_file=./$ac_site_file ;;
2189esac
2190  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2191    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2192printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2193    sed 's/^/| /' "$ac_site_file" >&5
2194    . "$ac_site_file" \
2195      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2196printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2197as_fn_error $? "failed to load site script $ac_site_file
2198See 'config.log' for more details" "$LINENO" 5; }
2199  fi
2200done
2201
2202if test -r "$cache_file"; then
2203  # Some versions of bash will fail to source /dev/null (special files
2204  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2205  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2206    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2207printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2208    case $cache_file in
2209      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210      *)                      . "./$cache_file";;
2211    esac
2212  fi
2213else
2214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2215printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2216  >$cache_file
2217fi
2218
2219# Test code for whether the C compiler supports C89 (global declarations)
2220ac_c_conftest_c89_globals='
2221/* Does the compiler advertise C89 conformance?
2222   Do not test the value of __STDC__, because some compilers set it to 0
2223   while being otherwise adequately conformant. */
2224#if !defined __STDC__
2225# error "Compiler does not advertise C89 conformance"
2226#endif
2227
2228#include <stddef.h>
2229#include <stdarg.h>
2230struct stat;
2231/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2232struct buf { int x; };
2233struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2234static char *e (char **p, int i)
2235{
2236  return p[i];
2237}
2238static char *f (char * (*g) (char **, int), char **p, ...)
2239{
2240  char *s;
2241  va_list v;
2242  va_start (v,p);
2243  s = g (p, va_arg (v,int));
2244  va_end (v);
2245  return s;
2246}
2247
2248/* C89 style stringification. */
2249#define noexpand_stringify(a) #a
2250const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2251
2252/* C89 style token pasting.  Exercises some of the corner cases that
2253   e.g. old MSVC gets wrong, but not very hard. */
2254#define noexpand_concat(a,b) a##b
2255#define expand_concat(a,b) noexpand_concat(a,b)
2256extern int vA;
2257extern int vbee;
2258#define aye A
2259#define bee B
2260int *pvA = &expand_concat(v,aye);
2261int *pvbee = &noexpand_concat(v,bee);
2262
2263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2264   function prototypes and stuff, but not \xHH hex character constants.
2265   These do not provoke an error unfortunately, instead are silently treated
2266   as an "x".  The following induces an error, until -std is added to get
2267   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2268   array size at least.  It is necessary to write \x00 == 0 to get something
2269   that is true only with -std.  */
2270int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2271
2272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2273   inside strings and character constants.  */
2274#define FOO(x) '\''x'\''
2275int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2276
2277int test (int i, double x);
2278struct s1 {int (*f) (int a);};
2279struct s2 {int (*f) (double a);};
2280int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2281               int, int);'
2282
2283# Test code for whether the C compiler supports C89 (body of main).
2284ac_c_conftest_c89_main='
2285ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2286'
2287
2288# Test code for whether the C compiler supports C99 (global declarations)
2289ac_c_conftest_c99_globals='
2290/* Does the compiler advertise C99 conformance? */
2291#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2292# error "Compiler does not advertise C99 conformance"
2293#endif
2294
2295// See if C++-style comments work.
2296
2297#include <stdbool.h>
2298extern int puts (const char *);
2299extern int printf (const char *, ...);
2300extern int dprintf (int, const char *, ...);
2301extern void *malloc (size_t);
2302extern void free (void *);
2303
2304// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2305// dprintf is used instead of fprintf to avoid needing to declare
2306// FILE and stderr.
2307#define debug(...) dprintf (2, __VA_ARGS__)
2308#define showlist(...) puts (#__VA_ARGS__)
2309#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2310static void
2311test_varargs_macros (void)
2312{
2313  int x = 1234;
2314  int y = 5678;
2315  debug ("Flag");
2316  debug ("X = %d\n", x);
2317  showlist (The first, second, and third items.);
2318  report (x>y, "x is %d but y is %d", x, y);
2319}
2320
2321// Check long long types.
2322#define BIG64 18446744073709551615ull
2323#define BIG32 4294967295ul
2324#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2325#if !BIG_OK
2326  #error "your preprocessor is broken"
2327#endif
2328#if BIG_OK
2329#else
2330  #error "your preprocessor is broken"
2331#endif
2332static long long int bignum = -9223372036854775807LL;
2333static unsigned long long int ubignum = BIG64;
2334
2335struct incomplete_array
2336{
2337  int datasize;
2338  double data[];
2339};
2340
2341struct named_init {
2342  int number;
2343  const wchar_t *name;
2344  double average;
2345};
2346
2347typedef const char *ccp;
2348
2349static inline int
2350test_restrict (ccp restrict text)
2351{
2352  // Iterate through items via the restricted pointer.
2353  // Also check for declarations in for loops.
2354  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2355    continue;
2356  return 0;
2357}
2358
2359// Check varargs and va_copy.
2360static bool
2361test_varargs (const char *format, ...)
2362{
2363  va_list args;
2364  va_start (args, format);
2365  va_list args_copy;
2366  va_copy (args_copy, args);
2367
2368  const char *str = "";
2369  int number = 0;
2370  float fnumber = 0;
2371
2372  while (*format)
2373    {
2374      switch (*format++)
2375	{
2376	case '\''s'\'': // string
2377	  str = va_arg (args_copy, const char *);
2378	  break;
2379	case '\''d'\'': // int
2380	  number = va_arg (args_copy, int);
2381	  break;
2382	case '\''f'\'': // float
2383	  fnumber = va_arg (args_copy, double);
2384	  break;
2385	default:
2386	  break;
2387	}
2388    }
2389  va_end (args_copy);
2390  va_end (args);
2391
2392  return *str && number && fnumber;
2393}
2394'
2395
2396# Test code for whether the C compiler supports C99 (body of main).
2397ac_c_conftest_c99_main='
2398  // Check bool.
2399  _Bool success = false;
2400  success |= (argc != 0);
2401
2402  // Check restrict.
2403  if (test_restrict ("String literal") == 0)
2404    success = true;
2405  char *restrict newvar = "Another string";
2406
2407  // Check varargs.
2408  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2409  test_varargs_macros ();
2410
2411  // Check flexible array members.
2412  struct incomplete_array *ia =
2413    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2414  ia->datasize = 10;
2415  for (int i = 0; i < ia->datasize; ++i)
2416    ia->data[i] = i * 1.234;
2417  // Work around memory leak warnings.
2418  free (ia);
2419
2420  // Check named initializers.
2421  struct named_init ni = {
2422    .number = 34,
2423    .name = L"Test wide string",
2424    .average = 543.34343,
2425  };
2426
2427  ni.number = 58;
2428
2429  int dynamic_array[ni.number];
2430  dynamic_array[0] = argv[0][0];
2431  dynamic_array[ni.number - 1] = 543;
2432
2433  // work around unused variable warnings
2434  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2435	 || dynamic_array[ni.number - 1] != 543);
2436'
2437
2438# Test code for whether the C compiler supports C11 (global declarations)
2439ac_c_conftest_c11_globals='
2440/* Does the compiler advertise C11 conformance? */
2441#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2442# error "Compiler does not advertise C11 conformance"
2443#endif
2444
2445// Check _Alignas.
2446char _Alignas (double) aligned_as_double;
2447char _Alignas (0) no_special_alignment;
2448extern char aligned_as_int;
2449char _Alignas (0) _Alignas (int) aligned_as_int;
2450
2451// Check _Alignof.
2452enum
2453{
2454  int_alignment = _Alignof (int),
2455  int_array_alignment = _Alignof (int[100]),
2456  char_alignment = _Alignof (char)
2457};
2458_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2459
2460// Check _Noreturn.
2461int _Noreturn does_not_return (void) { for (;;) continue; }
2462
2463// Check _Static_assert.
2464struct test_static_assert
2465{
2466  int x;
2467  _Static_assert (sizeof (int) <= sizeof (long int),
2468                  "_Static_assert does not work in struct");
2469  long int y;
2470};
2471
2472// Check UTF-8 literals.
2473#define u8 syntax error!
2474char const utf8_literal[] = u8"happens to be ASCII" "another string";
2475
2476// Check duplicate typedefs.
2477typedef long *long_ptr;
2478typedef long int *long_ptr;
2479typedef long_ptr long_ptr;
2480
2481// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2482struct anonymous
2483{
2484  union {
2485    struct { int i; int j; };
2486    struct { int k; long int l; } w;
2487  };
2488  int m;
2489} v1;
2490'
2491
2492# Test code for whether the C compiler supports C11 (body of main).
2493ac_c_conftest_c11_main='
2494  _Static_assert ((offsetof (struct anonymous, i)
2495		   == offsetof (struct anonymous, w.k)),
2496		  "Anonymous union alignment botch");
2497  v1.i = 2;
2498  v1.w.k = 5;
2499  ok |= v1.i != 5;
2500'
2501
2502# Test code for whether the C compiler supports C11 (complete).
2503ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2504${ac_c_conftest_c99_globals}
2505${ac_c_conftest_c11_globals}
2506
2507int
2508main (int argc, char **argv)
2509{
2510  int ok = 0;
2511  ${ac_c_conftest_c89_main}
2512  ${ac_c_conftest_c99_main}
2513  ${ac_c_conftest_c11_main}
2514  return ok;
2515}
2516"
2517
2518# Test code for whether the C compiler supports C99 (complete).
2519ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2520${ac_c_conftest_c99_globals}
2521
2522int
2523main (int argc, char **argv)
2524{
2525  int ok = 0;
2526  ${ac_c_conftest_c89_main}
2527  ${ac_c_conftest_c99_main}
2528  return ok;
2529}
2530"
2531
2532# Test code for whether the C compiler supports C89 (complete).
2533ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2534
2535int
2536main (int argc, char **argv)
2537{
2538  int ok = 0;
2539  ${ac_c_conftest_c89_main}
2540  return ok;
2541}
2542"
2543
2544as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2545as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2546as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2547as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2548as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2549as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2550as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2551as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2552as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2553# Test code for whether the C++ compiler supports C++98 (global declarations)
2554ac_cxx_conftest_cxx98_globals='
2555// Does the compiler advertise C++98 conformance?
2556#if !defined __cplusplus || __cplusplus < 199711L
2557# error "Compiler does not advertise C++98 conformance"
2558#endif
2559
2560// These inclusions are to reject old compilers that
2561// lack the unsuffixed header files.
2562#include <cstdlib>
2563#include <exception>
2564
2565// <cassert> and <cstring> are *not* freestanding headers in C++98.
2566extern void assert (int);
2567namespace std {
2568  extern int strcmp (const char *, const char *);
2569}
2570
2571// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2572using std::exception;
2573using std::strcmp;
2574
2575namespace {
2576
2577void test_exception_syntax()
2578{
2579  try {
2580    throw "test";
2581  } catch (const char *s) {
2582    // Extra parentheses suppress a warning when building autoconf itself,
2583    // due to lint rules shared with more typical C programs.
2584    assert (!(strcmp) (s, "test"));
2585  }
2586}
2587
2588template <typename T> struct test_template
2589{
2590  T const val;
2591  explicit test_template(T t) : val(t) {}
2592  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2593};
2594
2595} // anonymous namespace
2596'
2597
2598# Test code for whether the C++ compiler supports C++98 (body of main)
2599ac_cxx_conftest_cxx98_main='
2600  assert (argc);
2601  assert (! argv[0]);
2602{
2603  test_exception_syntax ();
2604  test_template<double> tt (2.0);
2605  assert (tt.add (4) == 6.0);
2606  assert (true && !false);
2607}
2608'
2609
2610# Test code for whether the C++ compiler supports C++11 (global declarations)
2611ac_cxx_conftest_cxx11_globals='
2612// Does the compiler advertise C++ 2011 conformance?
2613#if !defined __cplusplus || __cplusplus < 201103L
2614# error "Compiler does not advertise C++11 conformance"
2615#endif
2616
2617namespace cxx11test
2618{
2619  constexpr int get_val() { return 20; }
2620
2621  struct testinit
2622  {
2623    int i;
2624    double d;
2625  };
2626
2627  class delegate
2628  {
2629  public:
2630    delegate(int n) : n(n) {}
2631    delegate(): delegate(2354) {}
2632
2633    virtual int getval() { return this->n; };
2634  protected:
2635    int n;
2636  };
2637
2638  class overridden : public delegate
2639  {
2640  public:
2641    overridden(int n): delegate(n) {}
2642    virtual int getval() override final { return this->n * 2; }
2643  };
2644
2645  class nocopy
2646  {
2647  public:
2648    nocopy(int i): i(i) {}
2649    nocopy() = default;
2650    nocopy(const nocopy&) = delete;
2651    nocopy & operator=(const nocopy&) = delete;
2652  private:
2653    int i;
2654  };
2655
2656  // for testing lambda expressions
2657  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2658  {
2659    return f(v);
2660  }
2661
2662  // for testing variadic templates and trailing return types
2663  template <typename V> auto sum(V first) -> V
2664  {
2665    return first;
2666  }
2667  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2668  {
2669    return first + sum(rest...);
2670  }
2671}
2672'
2673
2674# Test code for whether the C++ compiler supports C++11 (body of main)
2675ac_cxx_conftest_cxx11_main='
2676{
2677  // Test auto and decltype
2678  auto a1 = 6538;
2679  auto a2 = 48573953.4;
2680  auto a3 = "String literal";
2681
2682  int total = 0;
2683  for (auto i = a3; *i; ++i) { total += *i; }
2684
2685  decltype(a2) a4 = 34895.034;
2686}
2687{
2688  // Test constexpr
2689  short sa[cxx11test::get_val()] = { 0 };
2690}
2691{
2692  // Test initializer lists
2693  cxx11test::testinit il = { 4323, 435234.23544 };
2694}
2695{
2696  // Test range-based for
2697  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2698                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2699  for (auto &x : array) { x += 23; }
2700}
2701{
2702  // Test lambda expressions
2703  using cxx11test::eval;
2704  assert (eval ([](int x) { return x*2; }, 21) == 42);
2705  double d = 2.0;
2706  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2707  assert (d == 5.0);
2708  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2709  assert (d == 5.0);
2710}
2711{
2712  // Test use of variadic templates
2713  using cxx11test::sum;
2714  auto a = sum(1);
2715  auto b = sum(1, 2);
2716  auto c = sum(1.0, 2.0, 3.0);
2717}
2718{
2719  // Test constructor delegation
2720  cxx11test::delegate d1;
2721  cxx11test::delegate d2();
2722  cxx11test::delegate d3(45);
2723}
2724{
2725  // Test override and final
2726  cxx11test::overridden o1(55464);
2727}
2728{
2729  // Test nullptr
2730  char *c = nullptr;
2731}
2732{
2733  // Test template brackets
2734  test_template<::test_template<int>> v(test_template<int>(12));
2735}
2736{
2737  // Unicode literals
2738  char const *utf8 = u8"UTF-8 string \u2500";
2739  char16_t const *utf16 = u"UTF-8 string \u2500";
2740  char32_t const *utf32 = U"UTF-32 string \u2500";
2741}
2742'
2743
2744# Test code for whether the C compiler supports C++11 (complete).
2745ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2746${ac_cxx_conftest_cxx11_globals}
2747
2748int
2749main (int argc, char **argv)
2750{
2751  int ok = 0;
2752  ${ac_cxx_conftest_cxx98_main}
2753  ${ac_cxx_conftest_cxx11_main}
2754  return ok;
2755}
2756"
2757
2758# Test code for whether the C compiler supports C++98 (complete).
2759ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2760int
2761main (int argc, char **argv)
2762{
2763  int ok = 0;
2764  ${ac_cxx_conftest_cxx98_main}
2765  return ok;
2766}
2767"
2768
2769
2770# Auxiliary files required by this configure script.
2771ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2772
2773# Locations in which to look for auxiliary files.
2774ac_aux_dir_candidates="${srcdir}/admin"
2775
2776# Search for a directory containing all of the required auxiliary files,
2777# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2778# If we don't find one directory that contains all the files we need,
2779# we report the set of missing files from the *first* directory in
2780# $ac_aux_dir_candidates and give up.
2781ac_missing_aux_files=""
2782ac_first_candidate=:
2783printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785as_found=false
2786for as_dir in $ac_aux_dir_candidates
2787do
2788  IFS=$as_save_IFS
2789  case $as_dir in #(((
2790    '') as_dir=./ ;;
2791    */) ;;
2792    *) as_dir=$as_dir/ ;;
2793  esac
2794  as_found=:
2795
2796  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2797  ac_aux_dir_found=yes
2798  ac_install_sh=
2799  for ac_aux in $ac_aux_files
2800  do
2801    # As a special case, if "install-sh" is required, that requirement
2802    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2803    # and $ac_install_sh is set appropriately for whichever one is found.
2804    if test x"$ac_aux" = x"install-sh"
2805    then
2806      if test -f "${as_dir}install-sh"; then
2807        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2808        ac_install_sh="${as_dir}install-sh -c"
2809      elif test -f "${as_dir}install.sh"; then
2810        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2811        ac_install_sh="${as_dir}install.sh -c"
2812      elif test -f "${as_dir}shtool"; then
2813        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2814        ac_install_sh="${as_dir}shtool install -c"
2815      else
2816        ac_aux_dir_found=no
2817        if $ac_first_candidate; then
2818          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2819        else
2820          break
2821        fi
2822      fi
2823    else
2824      if test -f "${as_dir}${ac_aux}"; then
2825        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2826      else
2827        ac_aux_dir_found=no
2828        if $ac_first_candidate; then
2829          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2830        else
2831          break
2832        fi
2833      fi
2834    fi
2835  done
2836  if test "$ac_aux_dir_found" = yes; then
2837    ac_aux_dir="$as_dir"
2838    break
2839  fi
2840  ac_first_candidate=false
2841
2842  as_found=false
2843done
2844IFS=$as_save_IFS
2845if $as_found
2846then :
2847
2848else case e in #(
2849  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2850esac
2851fi
2852
2853
2854# These three variables are undocumented and unsupported,
2855# and are intended to be withdrawn in a future Autoconf release.
2856# They can cause serious problems if a builder's source tree is in a directory
2857# whose full name contains unusual characters.
2858if test -f "${ac_aux_dir}config.guess"; then
2859  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2860fi
2861if test -f "${ac_aux_dir}config.sub"; then
2862  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2863fi
2864if test -f "$ac_aux_dir/configure"; then
2865  ac_configure="$SHELL ${ac_aux_dir}configure"
2866fi
2867
2868# Check that the precious variables saved in the cache have kept the same
2869# value.
2870ac_cache_corrupted=false
2871for ac_var in $ac_precious_vars; do
2872  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2873  eval ac_new_set=\$ac_env_${ac_var}_set
2874  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2875  eval ac_new_val=\$ac_env_${ac_var}_value
2876  case $ac_old_set,$ac_new_set in
2877    set,)
2878      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2879printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2880      ac_cache_corrupted=: ;;
2881    ,set)
2882      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2883printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2884      ac_cache_corrupted=: ;;
2885    ,);;
2886    *)
2887      if test "x$ac_old_val" != "x$ac_new_val"; then
2888	# differences in whitespace do not lead to failure.
2889	ac_old_val_w=`echo x $ac_old_val`
2890	ac_new_val_w=`echo x $ac_new_val`
2891	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2892	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2893printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2894	  ac_cache_corrupted=:
2895	else
2896	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2897printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2898	  eval $ac_var=\$ac_old_val
2899	fi
2900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2901printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2903printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2904      fi;;
2905  esac
2906  # Pass precious variables to config.status.
2907  if test "$ac_new_set" = set; then
2908    case $ac_new_val in
2909    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2910    *) ac_arg=$ac_var=$ac_new_val ;;
2911    esac
2912    case " $ac_configure_args " in
2913      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2914      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2915    esac
2916  fi
2917done
2918if $ac_cache_corrupted; then
2919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2920printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2922printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2923  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2924	    and start over" "$LINENO" 5
2925fi
2926## -------------------- ##
2927## Main body of script. ##
2928## -------------------- ##
2929
2930ac_ext=c
2931ac_cpp='$CPP $CPPFLAGS'
2932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935
2936
2937
2938
2939
2940
2941
2942ac_config_files="$ac_config_files Doxyfile Makefile"
2943
2944ac_config_headers="$ac_config_headers config.h"
2945
2946
2947
2948
2949
2950am__api_version='1.17'
2951
2952
2953
2954  # Find a good install program.  We prefer a C program (faster),
2955# so one script is as good as another.  But avoid the broken or
2956# incompatible versions:
2957# SysV /etc/install, /usr/sbin/install
2958# SunOS /usr/etc/install
2959# IRIX /sbin/install
2960# AIX /bin/install
2961# AmigaOS /C/install, which installs bootblocks on floppy discs
2962# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965# OS/2's system install, which has a completely different semantic
2966# ./install, which can be erroneously created by make from ./install.sh.
2967# Reject install programs that cannot install multiple files.
2968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2969printf %s "checking for a BSD-compatible install... " >&6; }
2970if test -z "$INSTALL"; then
2971if test ${ac_cv_path_install+y}
2972then :
2973  printf %s "(cached) " >&6
2974else case e in #(
2975  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978  IFS=$as_save_IFS
2979  case $as_dir in #(((
2980    '') as_dir=./ ;;
2981    */) ;;
2982    *) as_dir=$as_dir/ ;;
2983  esac
2984    # Account for fact that we put trailing slashes in our PATH walk.
2985case $as_dir in #((
2986  ./ | /[cC]/* | \
2987  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2988  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2989  /usr/ucb/* ) ;;
2990  *)
2991    # OSF1 and SCO ODT 3.0 have their own names for install.
2992    # Don't use installbsd from OSF since it installs stuff as root
2993    # by default.
2994    for ac_prog in ginstall scoinst install; do
2995      for ac_exec_ext in '' $ac_executable_extensions; do
2996	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2997	  if test $ac_prog = install &&
2998	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999	    # AIX install.  It has an incompatible calling convention.
3000	    :
3001	  elif test $ac_prog = install &&
3002	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3003	    # program-specific install script used by HP pwplus--don't use.
3004	    :
3005	  else
3006	    rm -rf conftest.one conftest.two conftest.dir
3007	    echo one > conftest.one
3008	    echo two > conftest.two
3009	    mkdir conftest.dir
3010	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3011	      test -s conftest.one && test -s conftest.two &&
3012	      test -s conftest.dir/conftest.one &&
3013	      test -s conftest.dir/conftest.two
3014	    then
3015	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3016	      break 3
3017	    fi
3018	  fi
3019	fi
3020      done
3021    done
3022    ;;
3023esac
3024
3025  done
3026IFS=$as_save_IFS
3027
3028rm -rf conftest.one conftest.two conftest.dir
3029 ;;
3030esac
3031fi
3032  if test ${ac_cv_path_install+y}; then
3033    INSTALL=$ac_cv_path_install
3034  else
3035    # As a last resort, use the slow shell script.  Don't cache a
3036    # value for INSTALL within a source directory, because that will
3037    # break other packages using the cache if that directory is
3038    # removed, or if the value is a relative name.
3039    INSTALL=$ac_install_sh
3040  fi
3041fi
3042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3043printf "%s\n" "$INSTALL" >&6; }
3044
3045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3046# It thinks the first close brace ends the variable substitution.
3047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3048
3049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3050
3051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3052
3053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3054printf %s "checking whether sleep supports fractional seconds... " >&6; }
3055if test ${am_cv_sleep_fractional_seconds+y}
3056then :
3057  printf %s "(cached) " >&6
3058else case e in #(
3059  e) if sleep 0.001 2>/dev/null
3060then :
3061  am_cv_sleep_fractional_seconds=yes
3062else case e in #(
3063  e) am_cv_sleep_fractional_seconds=no ;;
3064esac
3065fi
3066 ;;
3067esac
3068fi
3069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3070printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3071
3072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3073printf %s "checking filesystem timestamp resolution... " >&6; }
3074if test ${am_cv_filesystem_timestamp_resolution+y}
3075then :
3076  printf %s "(cached) " >&6
3077else case e in #(
3078  e) # Default to the worst case.
3079am_cv_filesystem_timestamp_resolution=2
3080
3081# Only try to go finer than 1 sec if sleep can do it.
3082# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3083# - 1 sec is not much of a win compared to 2 sec, and
3084# - it takes 2 seconds to perform the test whether 1 sec works.
3085#
3086# Instead, just use the default 2s on platforms that have 1s resolution,
3087# accept the extra 1s delay when using $sleep in the Automake tests, in
3088# exchange for not incurring the 2s delay for running the test for all
3089# packages.
3090#
3091am_try_resolutions=
3092if test "$am_cv_sleep_fractional_seconds" = yes; then
3093  # Even a millisecond often causes a bunch of false positives,
3094  # so just try a hundredth of a second. The time saved between .001 and
3095  # .01 is not terribly consequential.
3096  am_try_resolutions="0.01 0.1 $am_try_resolutions"
3097fi
3098
3099# In order to catch current-generation FAT out, we must *modify* files
3100# that already exist; the *creation* timestamp is finer.  Use names
3101# that make ls -t sort them differently when they have equal
3102# timestamps than when they have distinct timestamps, keeping
3103# in mind that ls -t prints the *newest* file first.
3104rm -f conftest.ts?
3105: > conftest.ts1
3106: > conftest.ts2
3107: > conftest.ts3
3108
3109# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
3110# clobber the current shell's arguments. (Outer-level square brackets
3111# are removed by m4; they're present so that m4 does not expand
3112# <dollar><star>; be careful, easy to get confused.)
3113if (
3114     set X `ls -t conftest.ts[12]` &&
3115     {
3116       test "$*" != "X conftest.ts1 conftest.ts2" ||
3117       test "$*" != "X conftest.ts2 conftest.ts1";
3118     }
3119); then :; else
3120  # If neither matched, then we have a broken ls.  This can happen
3121  # if, for instance, CONFIG_SHELL is bash and it inherits a
3122  # broken ls alias from the environment.  This has actually
3123  # happened.  Such a system could not be considered "sane".
3124  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3125  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3126printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3127as_fn_error $? "ls -t produces unexpected output.
3128Make sure there is not a broken ls alias in your environment.
3129See 'config.log' for more details" "$LINENO" 5; }
3130fi
3131
3132for am_try_res in $am_try_resolutions; do
3133  # Any one fine-grained sleep might happen to cross the boundary
3134  # between two values of a coarser actual resolution, but if we do
3135  # two fine-grained sleeps in a row, at least one of them will fall
3136  # entirely within a coarse interval.
3137  echo alpha > conftest.ts1
3138  sleep $am_try_res
3139  echo beta > conftest.ts2
3140  sleep $am_try_res
3141  echo gamma > conftest.ts3
3142
3143  # We assume that 'ls -t' will make use of high-resolution
3144  # timestamps if the operating system supports them at all.
3145  if (set X `ls -t conftest.ts?` &&
3146      test "$2" = conftest.ts3 &&
3147      test "$3" = conftest.ts2 &&
3148      test "$4" = conftest.ts1); then
3149    #
3150    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3151    # because we don't need to test make.
3152    make_ok=true
3153    if test $am_try_res != 1; then
3154      # But if we've succeeded so far with a subsecond resolution, we
3155      # have one more thing to check: make. It can happen that
3156      # everything else supports the subsecond mtimes, but make doesn't;
3157      # notably on macOS, which ships make 3.81 from 2006 (the last one
3158      # released under GPLv2). https://bugs.gnu.org/68808
3159      #
3160      # We test $MAKE if it is defined in the environment, else "make".
3161      # It might get overridden later, but our hope is that in practice
3162      # it does not matter: it is the system "make" which is (by far)
3163      # the most likely to be broken, whereas if the user overrides it,
3164      # probably they did so with a better, or at least not worse, make.
3165      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3166      #
3167      # Create a Makefile (real tab character here):
3168      rm -f conftest.mk
3169      echo 'conftest.ts1: conftest.ts2' >conftest.mk
3170      echo '	touch conftest.ts2' >>conftest.mk
3171      #
3172      # Now, running
3173      #   touch conftest.ts1; touch conftest.ts2; make
3174      # should touch ts1 because ts2 is newer. This could happen by luck,
3175      # but most often, it will fail if make's support is insufficient. So
3176      # test for several consecutive successes.
3177      #
3178      # (We reuse conftest.ts[12] because we still want to modify existing
3179      # files, not create new ones, per above.)
3180      n=0
3181      make=${MAKE-make}
3182      until test $n -eq 3; do
3183        echo one > conftest.ts1
3184        sleep $am_try_res
3185        echo two > conftest.ts2 # ts2 should now be newer than ts1
3186        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3187          make_ok=false
3188          break # out of $n loop
3189        fi
3190        n=`expr $n + 1`
3191      done
3192    fi
3193    #
3194    if $make_ok; then
3195      # Everything we know to check worked out, so call this resolution good.
3196      am_cv_filesystem_timestamp_resolution=$am_try_res
3197      break # out of $am_try_res loop
3198    fi
3199    # Otherwise, we'll go on to check the next resolution.
3200  fi
3201done
3202rm -f conftest.ts?
3203# (end _am_filesystem_timestamp_resolution)
3204 ;;
3205esac
3206fi
3207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3208printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3209
3210# This check should not be cached, as it may vary across builds of
3211# different projects.
3212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3213printf %s "checking whether build environment is sane... " >&6; }
3214# Reject unsafe characters in $srcdir or the absolute working directory
3215# name.  Accept space and tab only in the latter.
3216am_lf='
3217'
3218case `pwd` in
3219  *[\\\"\#\$\&\'\`$am_lf]*)
3220    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3221esac
3222case $srcdir in
3223  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3224    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3225esac
3226
3227# Do 'set' in a subshell so we don't clobber the current shell's
3228# arguments.  Must try -L first in case configure is actually a
3229# symlink; some systems play weird games with the mod time of symlinks
3230# (eg FreeBSD returns the mod time of the symlink's containing
3231# directory).
3232am_build_env_is_sane=no
3233am_has_slept=no
3234rm -f conftest.file
3235for am_try in 1 2; do
3236  echo "timestamp, slept: $am_has_slept" > conftest.file
3237  if (
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    test "$2" = conftest.file
3244  ); then
3245    am_build_env_is_sane=yes
3246    break
3247  fi
3248  # Just in case.
3249  sleep "$am_cv_filesystem_timestamp_resolution"
3250  am_has_slept=yes
3251done
3252
3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3254printf "%s\n" "$am_build_env_is_sane" >&6; }
3255if test "$am_build_env_is_sane" = no; then
3256  as_fn_error $? "newly created file is older than distributed files!
3257Check your system clock" "$LINENO" 5
3258fi
3259
3260# If we didn't sleep, we still need to ensure time stamps of config.status and
3261# generated files are strictly newer.
3262am_sleep_pid=
3263if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3264then :
3265
3266else case e in #(
3267  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3268  am_sleep_pid=$!
3269 ;;
3270esac
3271fi
3272
3273rm -f conftest.file
3274
3275test "$program_prefix" != NONE &&
3276  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3277# Use a double $ so make ignores it.
3278test "$program_suffix" != NONE &&
3279  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3280# Double any \ or $.
3281# By default was 's,x,x', remove it if useless.
3282ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3283program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3284
3285
3286# Expand $ac_aux_dir to an absolute path.
3287am_aux_dir=`cd "$ac_aux_dir" && pwd`
3288
3289
3290  if test x"${MISSING+set}" != xset; then
3291  MISSING="\${SHELL} '$am_aux_dir/missing'"
3292fi
3293# Use eval to expand $SHELL
3294if eval "$MISSING --is-lightweight"; then
3295  am_missing_run="$MISSING "
3296else
3297  am_missing_run=
3298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3299printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3300fi
3301
3302if test x"${install_sh+set}" != xset; then
3303  case $am_aux_dir in
3304  *\ * | *\	*)
3305    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3306  *)
3307    install_sh="\${SHELL} $am_aux_dir/install-sh"
3308  esac
3309fi
3310
3311# Installed binaries are usually stripped using 'strip' when the user
3312# run "make install-strip".  However 'strip' might not be the right
3313# tool to use in cross-compilation environments, therefore Automake
3314# will honor the 'STRIP' environment variable to overrule this program.
3315if test "$cross_compiling" != no; then
3316  if test -n "$ac_tool_prefix"; then
3317  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3318set dummy ${ac_tool_prefix}strip; ac_word=$2
3319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320printf %s "checking for $ac_word... " >&6; }
3321if test ${ac_cv_prog_STRIP+y}
3322then :
3323  printf %s "(cached) " >&6
3324else case e in #(
3325  e) if test -n "$STRIP"; then
3326  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331  IFS=$as_save_IFS
3332  case $as_dir in #(((
3333    '') as_dir=./ ;;
3334    */) ;;
3335    *) as_dir=$as_dir/ ;;
3336  esac
3337    for ac_exec_ext in '' $ac_executable_extensions; do
3338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3339    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3341    break 2
3342  fi
3343done
3344  done
3345IFS=$as_save_IFS
3346
3347fi ;;
3348esac
3349fi
3350STRIP=$ac_cv_prog_STRIP
3351if test -n "$STRIP"; then
3352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3353printf "%s\n" "$STRIP" >&6; }
3354else
3355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356printf "%s\n" "no" >&6; }
3357fi
3358
3359
3360fi
3361if test -z "$ac_cv_prog_STRIP"; then
3362  ac_ct_STRIP=$STRIP
3363  # Extract the first word of "strip", so it can be a program name with args.
3364set dummy strip; ac_word=$2
3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366printf %s "checking for $ac_word... " >&6; }
3367if test ${ac_cv_prog_ac_ct_STRIP+y}
3368then :
3369  printf %s "(cached) " >&6
3370else case e in #(
3371  e) if test -n "$ac_ct_STRIP"; then
3372  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  case $as_dir in #(((
3379    '') as_dir=./ ;;
3380    */) ;;
3381    *) as_dir=$as_dir/ ;;
3382  esac
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_ac_ct_STRIP="strip"
3386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393fi ;;
3394esac
3395fi
3396ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3397if test -n "$ac_ct_STRIP"; then
3398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3399printf "%s\n" "$ac_ct_STRIP" >&6; }
3400else
3401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402printf "%s\n" "no" >&6; }
3403fi
3404
3405  if test "x$ac_ct_STRIP" = x; then
3406    STRIP=":"
3407  else
3408    case $cross_compiling:$ac_tool_warned in
3409yes:)
3410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412ac_tool_warned=yes ;;
3413esac
3414    STRIP=$ac_ct_STRIP
3415  fi
3416else
3417  STRIP="$ac_cv_prog_STRIP"
3418fi
3419
3420fi
3421INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3422
3423
3424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3425printf %s "checking for a race-free mkdir -p... " >&6; }
3426if test -z "$MKDIR_P"; then
3427  if test ${ac_cv_path_mkdir+y}
3428then :
3429  printf %s "(cached) " >&6
3430else case e in #(
3431  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3433do
3434  IFS=$as_save_IFS
3435  case $as_dir in #(((
3436    '') as_dir=./ ;;
3437    */) ;;
3438    *) as_dir=$as_dir/ ;;
3439  esac
3440    for ac_prog in mkdir gmkdir; do
3441	 for ac_exec_ext in '' $ac_executable_extensions; do
3442	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3443	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3444	     'mkdir ('*'coreutils) '* | \
3445	     *'BusyBox '* | \
3446	     'mkdir (fileutils) '4.1*)
3447	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3448	       break 3;;
3449	   esac
3450	 done
3451       done
3452  done
3453IFS=$as_save_IFS
3454 ;;
3455esac
3456fi
3457
3458  test -d ./--version && rmdir ./--version
3459  if test ${ac_cv_path_mkdir+y}; then
3460    MKDIR_P="$ac_cv_path_mkdir -p"
3461  else
3462    # As a last resort, use plain mkdir -p,
3463    # in the hope it doesn't have the bugs of ancient mkdir.
3464    MKDIR_P='mkdir -p'
3465  fi
3466fi
3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3468printf "%s\n" "$MKDIR_P" >&6; }
3469
3470for ac_prog in gawk mawk nawk awk
3471do
3472  # Extract the first word of "$ac_prog", so it can be a program name with args.
3473set dummy $ac_prog; ac_word=$2
3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475printf %s "checking for $ac_word... " >&6; }
3476if test ${ac_cv_prog_AWK+y}
3477then :
3478  printf %s "(cached) " >&6
3479else case e in #(
3480  e) if test -n "$AWK"; then
3481  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  case $as_dir in #(((
3488    '') as_dir=./ ;;
3489    */) ;;
3490    *) as_dir=$as_dir/ ;;
3491  esac
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494    ac_cv_prog_AWK="$ac_prog"
3495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496    break 2
3497  fi
3498done
3499  done
3500IFS=$as_save_IFS
3501
3502fi ;;
3503esac
3504fi
3505AWK=$ac_cv_prog_AWK
3506if test -n "$AWK"; then
3507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3508printf "%s\n" "$AWK" >&6; }
3509else
3510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511printf "%s\n" "no" >&6; }
3512fi
3513
3514
3515  test -n "$AWK" && break
3516done
3517
3518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3519printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3520set x ${MAKE-make}
3521ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3522if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3523then :
3524  printf %s "(cached) " >&6
3525else case e in #(
3526  e) cat >conftest.make <<\_ACEOF
3527SHELL = /bin/sh
3528all:
3529	@echo '@@@%%%=$(MAKE)=@@@%%%'
3530_ACEOF
3531# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3532case `${MAKE-make} -f conftest.make 2>/dev/null` in
3533  *@@@%%%=?*=@@@%%%*)
3534    eval ac_cv_prog_make_${ac_make}_set=yes;;
3535  *)
3536    eval ac_cv_prog_make_${ac_make}_set=no;;
3537esac
3538rm -f conftest.make ;;
3539esac
3540fi
3541if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543printf "%s\n" "yes" >&6; }
3544  SET_MAKE=
3545else
3546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547printf "%s\n" "no" >&6; }
3548  SET_MAKE="MAKE=${MAKE-make}"
3549fi
3550
3551rm -rf .tst 2>/dev/null
3552mkdir .tst 2>/dev/null
3553if test -d .tst; then
3554  am__leading_dot=.
3555else
3556  am__leading_dot=_
3557fi
3558rmdir .tst 2>/dev/null
3559
3560AM_DEFAULT_VERBOSITY=1
3561# Check whether --enable-silent-rules was given.
3562if test ${enable_silent_rules+y}
3563then :
3564  enableval=$enable_silent_rules;
3565fi
3566
3567am_make=${MAKE-make}
3568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3569printf %s "checking whether $am_make supports nested variables... " >&6; }
3570if test ${am_cv_make_support_nested_variables+y}
3571then :
3572  printf %s "(cached) " >&6
3573else case e in #(
3574  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3575BAR0=false
3576BAR1=true
3577V=1
3578am__doit:
3579	@$(TRUE)
3580.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3581  am_cv_make_support_nested_variables=yes
3582else
3583  am_cv_make_support_nested_variables=no
3584fi ;;
3585esac
3586fi
3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3588printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3589AM_BACKSLASH='\'
3590
3591am__rm_f_notfound=
3592if (rm -f && rm -fr && rm -rf) 2>/dev/null
3593then :
3594
3595else case e in #(
3596  e) am__rm_f_notfound='""' ;;
3597esac
3598fi
3599
3600
3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3602printf %s "checking xargs -n works... " >&6; }
3603if test ${am_cv_xargs_n_works+y}
3604then :
3605  printf %s "(cached) " >&6
3606else case e in #(
3607  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
36083"
3609then :
3610  am_cv_xargs_n_works=yes
3611else case e in #(
3612  e) am_cv_xargs_n_works=no ;;
3613esac
3614fi ;;
3615esac
3616fi
3617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3618printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3619if test "$am_cv_xargs_n_works" = yes
3620then :
3621  am__xargs_n='xargs -n'
3622else case e in #(
3623  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3624 ;;
3625esac
3626fi
3627
3628if test "`cd $srcdir && pwd`" != "`pwd`"; then
3629  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3630  # is not polluted with repeated "-I."
3631  am__isrc=' -I$(srcdir)'
3632  # test to see if srcdir already configured
3633  if test -f $srcdir/config.status; then
3634    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3635  fi
3636fi
3637
3638# test whether we have cygpath
3639if test -z "$CYGPATH_W"; then
3640  if (cygpath --version) >/dev/null 2>/dev/null; then
3641    CYGPATH_W='cygpath -w'
3642  else
3643    CYGPATH_W=echo
3644  fi
3645fi
3646
3647
3648# Define the identity of the package.
3649 PACKAGE='lutok'
3650 VERSION='0.6.2'
3651
3652
3653printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3654
3655
3656printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3657
3658# Some tools Automake needs.
3659
3660ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3661
3662
3663AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3664
3665
3666AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3667
3668
3669AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3670
3671
3672MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3673
3674# For better backward compatibility.  To be removed once Automake 1.9.x
3675# dies out for good.  For more background, see:
3676# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3677# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3678mkdir_p='$(MKDIR_P)'
3679
3680# We need awk for the "check" target (and possibly the TAP driver).  The
3681# system "awk" is bad on some platforms.
3682# Always define AMTAR for backward compatibility.  Yes, it's still used
3683# in the wild :-(  We should find a proper way to deprecate it ...
3684AMTAR='$${TAR-tar}'
3685
3686
3687# We'll loop over all known methods to create a tar archive until one works.
3688_am_tools='gnutar  pax cpio none'
3689
3690am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3691
3692
3693
3694
3695
3696# Variables for tags utilities; see am/tags.am
3697if test -z "$CTAGS"; then
3698  CTAGS=ctags
3699fi
3700
3701if test -z "$ETAGS"; then
3702  ETAGS=etags
3703fi
3704
3705if test -z "$CSCOPE"; then
3706  CSCOPE=cscope
3707fi
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725DEPDIR="${am__leading_dot}deps"
3726
3727ac_config_commands="$ac_config_commands depfiles"
3728
3729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3730printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3731cat > confinc.mk << 'END'
3732am__doit:
3733	@echo this is the am__doit target >confinc.out
3734.PHONY: am__doit
3735END
3736am__include="#"
3737am__quote=
3738# BSD make does it like this.
3739echo '.include "confinc.mk" # ignored' > confmf.BSD
3740# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3741echo 'include confinc.mk # ignored' > confmf.GNU
3742_am_result=no
3743for s in GNU BSD; do
3744  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3745   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }
3749  case $?:`cat confinc.out 2>/dev/null` in #(
3750  '0:this is the am__doit target') :
3751    case $s in #(
3752  BSD) :
3753    am__include='.include' am__quote='"' ;; #(
3754  *) :
3755    am__include='include' am__quote='' ;;
3756esac ;; #(
3757  *) :
3758     ;;
3759esac
3760  if test "$am__include" != "#"; then
3761    _am_result="yes ($s style)"
3762    break
3763  fi
3764done
3765rm -f confinc.* confmf.*
3766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3767printf "%s\n" "${_am_result}" >&6; }
3768
3769# Check whether --enable-dependency-tracking was given.
3770if test ${enable_dependency_tracking+y}
3771then :
3772  enableval=$enable_dependency_tracking;
3773fi
3774
3775if test "x$enable_dependency_tracking" != xno; then
3776  am_depcomp="$ac_aux_dir/depcomp"
3777  AMDEPBACKSLASH='\'
3778  am__nodep='_no'
3779fi
3780 if test "x$enable_dependency_tracking" != xno; then
3781  AMDEP_TRUE=
3782  AMDEP_FALSE='#'
3783else
3784  AMDEP_TRUE='#'
3785  AMDEP_FALSE=
3786fi
3787
3788
3789ac_ext=c
3790ac_cpp='$CPP $CPPFLAGS'
3791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794if test -n "$ac_tool_prefix"; then
3795  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3796set dummy ${ac_tool_prefix}gcc; ac_word=$2
3797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798printf %s "checking for $ac_word... " >&6; }
3799if test ${ac_cv_prog_CC+y}
3800then :
3801  printf %s "(cached) " >&6
3802else case e in #(
3803  e) if test -n "$CC"; then
3804  ac_cv_prog_CC="$CC" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809  IFS=$as_save_IFS
3810  case $as_dir in #(((
3811    '') as_dir=./ ;;
3812    */) ;;
3813    *) as_dir=$as_dir/ ;;
3814  esac
3815    for ac_exec_ext in '' $ac_executable_extensions; do
3816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3817    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3819    break 2
3820  fi
3821done
3822  done
3823IFS=$as_save_IFS
3824
3825fi ;;
3826esac
3827fi
3828CC=$ac_cv_prog_CC
3829if test -n "$CC"; then
3830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3831printf "%s\n" "$CC" >&6; }
3832else
3833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834printf "%s\n" "no" >&6; }
3835fi
3836
3837
3838fi
3839if test -z "$ac_cv_prog_CC"; then
3840  ac_ct_CC=$CC
3841  # Extract the first word of "gcc", so it can be a program name with args.
3842set dummy gcc; ac_word=$2
3843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844printf %s "checking for $ac_word... " >&6; }
3845if test ${ac_cv_prog_ac_ct_CC+y}
3846then :
3847  printf %s "(cached) " >&6
3848else case e in #(
3849  e) if test -n "$ac_ct_CC"; then
3850  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  case $as_dir in #(((
3857    '') as_dir=./ ;;
3858    */) ;;
3859    *) as_dir=$as_dir/ ;;
3860  esac
3861    for ac_exec_ext in '' $ac_executable_extensions; do
3862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3863    ac_cv_prog_ac_ct_CC="gcc"
3864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3865    break 2
3866  fi
3867done
3868  done
3869IFS=$as_save_IFS
3870
3871fi ;;
3872esac
3873fi
3874ac_ct_CC=$ac_cv_prog_ac_ct_CC
3875if test -n "$ac_ct_CC"; then
3876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877printf "%s\n" "$ac_ct_CC" >&6; }
3878else
3879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880printf "%s\n" "no" >&6; }
3881fi
3882
3883  if test "x$ac_ct_CC" = x; then
3884    CC=""
3885  else
3886    case $cross_compiling:$ac_tool_warned in
3887yes:)
3888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890ac_tool_warned=yes ;;
3891esac
3892    CC=$ac_ct_CC
3893  fi
3894else
3895  CC="$ac_cv_prog_CC"
3896fi
3897
3898if test -z "$CC"; then
3899          if test -n "$ac_tool_prefix"; then
3900    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3901set dummy ${ac_tool_prefix}cc; ac_word=$2
3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903printf %s "checking for $ac_word... " >&6; }
3904if test ${ac_cv_prog_CC+y}
3905then :
3906  printf %s "(cached) " >&6
3907else case e in #(
3908  e) if test -n "$CC"; then
3909  ac_cv_prog_CC="$CC" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  case $as_dir in #(((
3916    '') as_dir=./ ;;
3917    */) ;;
3918    *) as_dir=$as_dir/ ;;
3919  esac
3920    for ac_exec_ext in '' $ac_executable_extensions; do
3921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3922    ac_cv_prog_CC="${ac_tool_prefix}cc"
3923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3924    break 2
3925  fi
3926done
3927  done
3928IFS=$as_save_IFS
3929
3930fi ;;
3931esac
3932fi
3933CC=$ac_cv_prog_CC
3934if test -n "$CC"; then
3935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936printf "%s\n" "$CC" >&6; }
3937else
3938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939printf "%s\n" "no" >&6; }
3940fi
3941
3942
3943  fi
3944fi
3945if test -z "$CC"; then
3946  # Extract the first word of "cc", so it can be a program name with args.
3947set dummy cc; ac_word=$2
3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949printf %s "checking for $ac_word... " >&6; }
3950if test ${ac_cv_prog_CC+y}
3951then :
3952  printf %s "(cached) " >&6
3953else case e in #(
3954  e) if test -n "$CC"; then
3955  ac_cv_prog_CC="$CC" # Let the user override the test.
3956else
3957  ac_prog_rejected=no
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  case $as_dir in #(((
3963    '') as_dir=./ ;;
3964    */) ;;
3965    *) as_dir=$as_dir/ ;;
3966  esac
3967    for ac_exec_ext in '' $ac_executable_extensions; do
3968  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3969    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3970       ac_prog_rejected=yes
3971       continue
3972     fi
3973    ac_cv_prog_CC="cc"
3974    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3975    break 2
3976  fi
3977done
3978  done
3979IFS=$as_save_IFS
3980
3981if test $ac_prog_rejected = yes; then
3982  # We found a bogon in the path, so make sure we never use it.
3983  set dummy $ac_cv_prog_CC
3984  shift
3985  if test $# != 0; then
3986    # We chose a different compiler from the bogus one.
3987    # However, it has the same basename, so the bogon will be chosen
3988    # first if we set CC to just the basename; use the full file name.
3989    shift
3990    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3991  fi
3992fi
3993fi ;;
3994esac
3995fi
3996CC=$ac_cv_prog_CC
3997if test -n "$CC"; then
3998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3999printf "%s\n" "$CC" >&6; }
4000else
4001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002printf "%s\n" "no" >&6; }
4003fi
4004
4005
4006fi
4007if test -z "$CC"; then
4008  if test -n "$ac_tool_prefix"; then
4009  for ac_prog in cl.exe
4010  do
4011    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4012set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014printf %s "checking for $ac_word... " >&6; }
4015if test ${ac_cv_prog_CC+y}
4016then :
4017  printf %s "(cached) " >&6
4018else case e in #(
4019  e) if test -n "$CC"; then
4020  ac_cv_prog_CC="$CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025  IFS=$as_save_IFS
4026  case $as_dir in #(((
4027    '') as_dir=./ ;;
4028    */) ;;
4029    *) as_dir=$as_dir/ ;;
4030  esac
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4034    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi ;;
4042esac
4043fi
4044CC=$ac_cv_prog_CC
4045if test -n "$CC"; then
4046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4047printf "%s\n" "$CC" >&6; }
4048else
4049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050printf "%s\n" "no" >&6; }
4051fi
4052
4053
4054    test -n "$CC" && break
4055  done
4056fi
4057if test -z "$CC"; then
4058  ac_ct_CC=$CC
4059  for ac_prog in cl.exe
4060do
4061  # Extract the first word of "$ac_prog", so it can be a program name with args.
4062set dummy $ac_prog; ac_word=$2
4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064printf %s "checking for $ac_word... " >&6; }
4065if test ${ac_cv_prog_ac_ct_CC+y}
4066then :
4067  printf %s "(cached) " >&6
4068else case e in #(
4069  e) if test -n "$ac_ct_CC"; then
4070  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4071else
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075  IFS=$as_save_IFS
4076  case $as_dir in #(((
4077    '') as_dir=./ ;;
4078    */) ;;
4079    *) as_dir=$as_dir/ ;;
4080  esac
4081    for ac_exec_ext in '' $ac_executable_extensions; do
4082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4083    ac_cv_prog_ac_ct_CC="$ac_prog"
4084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087done
4088  done
4089IFS=$as_save_IFS
4090
4091fi ;;
4092esac
4093fi
4094ac_ct_CC=$ac_cv_prog_ac_ct_CC
4095if test -n "$ac_ct_CC"; then
4096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4097printf "%s\n" "$ac_ct_CC" >&6; }
4098else
4099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100printf "%s\n" "no" >&6; }
4101fi
4102
4103
4104  test -n "$ac_ct_CC" && break
4105done
4106
4107  if test "x$ac_ct_CC" = x; then
4108    CC=""
4109  else
4110    case $cross_compiling:$ac_tool_warned in
4111yes:)
4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114ac_tool_warned=yes ;;
4115esac
4116    CC=$ac_ct_CC
4117  fi
4118fi
4119
4120fi
4121if test -z "$CC"; then
4122  if test -n "$ac_tool_prefix"; then
4123  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4124set dummy ${ac_tool_prefix}clang; ac_word=$2
4125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126printf %s "checking for $ac_word... " >&6; }
4127if test ${ac_cv_prog_CC+y}
4128then :
4129  printf %s "(cached) " >&6
4130else case e in #(
4131  e) if test -n "$CC"; then
4132  ac_cv_prog_CC="$CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137  IFS=$as_save_IFS
4138  case $as_dir in #(((
4139    '') as_dir=./ ;;
4140    */) ;;
4141    *) as_dir=$as_dir/ ;;
4142  esac
4143    for ac_exec_ext in '' $ac_executable_extensions; do
4144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4145    ac_cv_prog_CC="${ac_tool_prefix}clang"
4146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4147    break 2
4148  fi
4149done
4150  done
4151IFS=$as_save_IFS
4152
4153fi ;;
4154esac
4155fi
4156CC=$ac_cv_prog_CC
4157if test -n "$CC"; then
4158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4159printf "%s\n" "$CC" >&6; }
4160else
4161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162printf "%s\n" "no" >&6; }
4163fi
4164
4165
4166fi
4167if test -z "$ac_cv_prog_CC"; then
4168  ac_ct_CC=$CC
4169  # Extract the first word of "clang", so it can be a program name with args.
4170set dummy clang; ac_word=$2
4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172printf %s "checking for $ac_word... " >&6; }
4173if test ${ac_cv_prog_ac_ct_CC+y}
4174then :
4175  printf %s "(cached) " >&6
4176else case e in #(
4177  e) if test -n "$ac_ct_CC"; then
4178  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179else
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183  IFS=$as_save_IFS
4184  case $as_dir in #(((
4185    '') as_dir=./ ;;
4186    */) ;;
4187    *) as_dir=$as_dir/ ;;
4188  esac
4189    for ac_exec_ext in '' $ac_executable_extensions; do
4190  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_ac_ct_CC="clang"
4192    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196  done
4197IFS=$as_save_IFS
4198
4199fi ;;
4200esac
4201fi
4202ac_ct_CC=$ac_cv_prog_ac_ct_CC
4203if test -n "$ac_ct_CC"; then
4204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4205printf "%s\n" "$ac_ct_CC" >&6; }
4206else
4207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208printf "%s\n" "no" >&6; }
4209fi
4210
4211  if test "x$ac_ct_CC" = x; then
4212    CC=""
4213  else
4214    case $cross_compiling:$ac_tool_warned in
4215yes:)
4216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218ac_tool_warned=yes ;;
4219esac
4220    CC=$ac_ct_CC
4221  fi
4222else
4223  CC="$ac_cv_prog_CC"
4224fi
4225
4226fi
4227
4228
4229test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4230printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4231as_fn_error $? "no acceptable C compiler found in \$PATH
4232See 'config.log' for more details" "$LINENO" 5; }
4233
4234# Provide some information about the compiler.
4235printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4236set X $ac_compile
4237ac_compiler=$2
4238for ac_option in --version -v -V -qversion -version; do
4239  { { ac_try="$ac_compiler $ac_option >&5"
4240case "(($ac_try" in
4241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242  *) ac_try_echo=$ac_try;;
4243esac
4244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245printf "%s\n" "$ac_try_echo"; } >&5
4246  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4247  ac_status=$?
4248  if test -s conftest.err; then
4249    sed '10a\
4250... rest of stderr output deleted ...
4251         10q' conftest.err >conftest.er1
4252    cat conftest.er1 >&5
4253  fi
4254  rm -f conftest.er1 conftest.err
4255  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256  test $ac_status = 0; }
4257done
4258
4259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261
4262int
4263main (void)
4264{
4265
4266  ;
4267  return 0;
4268}
4269_ACEOF
4270ac_clean_files_save=$ac_clean_files
4271ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4272# Try to create an executable without -o first, disregard a.out.
4273# It will help us diagnose broken compilers, and finding out an intuition
4274# of exeext.
4275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4276printf %s "checking whether the C compiler works... " >&6; }
4277ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4278
4279# The possible output files:
4280ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4281
4282ac_rmfiles=
4283for ac_file in $ac_files
4284do
4285  case $ac_file in
4286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4287    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4288  esac
4289done
4290rm -f $ac_rmfiles
4291
4292if { { ac_try="$ac_link_default"
4293case "(($ac_try" in
4294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295  *) ac_try_echo=$ac_try;;
4296esac
4297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298printf "%s\n" "$ac_try_echo"; } >&5
4299  (eval "$ac_link_default") 2>&5
4300  ac_status=$?
4301  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302  test $ac_status = 0; }
4303then :
4304  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4305# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4306# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4307# so that the user can short-circuit this test for compilers unknown to
4308# Autoconf.
4309for ac_file in $ac_files ''
4310do
4311  test -f "$ac_file" || continue
4312  case $ac_file in
4313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4314	;;
4315    [ab].out )
4316	# We found the default executable, but exeext='' is most
4317	# certainly right.
4318	break;;
4319    *.* )
4320	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4321	then :; else
4322	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4323	fi
4324	# We set ac_cv_exeext here because the later test for it is not
4325	# safe: cross compilers may not add the suffix if given an '-o'
4326	# argument, so we may need to know it at that point already.
4327	# Even if this section looks crufty: it has the advantage of
4328	# actually working.
4329	break;;
4330    * )
4331	break;;
4332  esac
4333done
4334test "$ac_cv_exeext" = no && ac_cv_exeext=
4335
4336else case e in #(
4337  e) ac_file='' ;;
4338esac
4339fi
4340if test -z "$ac_file"
4341then :
4342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343printf "%s\n" "no" >&6; }
4344printf "%s\n" "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4348printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4349as_fn_error 77 "C compiler cannot create executables
4350See 'config.log' for more details" "$LINENO" 5; }
4351else case e in #(
4352  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353printf "%s\n" "yes" >&6; } ;;
4354esac
4355fi
4356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4357printf %s "checking for C compiler default output file name... " >&6; }
4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4359printf "%s\n" "$ac_file" >&6; }
4360ac_exeext=$ac_cv_exeext
4361
4362rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4363ac_clean_files=$ac_clean_files_save
4364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4365printf %s "checking for suffix of executables... " >&6; }
4366if { { ac_try="$ac_link"
4367case "(($ac_try" in
4368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369  *) ac_try_echo=$ac_try;;
4370esac
4371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372printf "%s\n" "$ac_try_echo"; } >&5
4373  (eval "$ac_link") 2>&5
4374  ac_status=$?
4375  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376  test $ac_status = 0; }
4377then :
4378  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4379# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
4380# work properly (i.e., refer to 'conftest.exe'), while it won't with
4381# 'rm'.
4382for ac_file in conftest.exe conftest conftest.*; do
4383  test -f "$ac_file" || continue
4384  case $ac_file in
4385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4386    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4387	  break;;
4388    * ) break;;
4389  esac
4390done
4391else case e in #(
4392  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4393printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4394as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4395See 'config.log' for more details" "$LINENO" 5; } ;;
4396esac
4397fi
4398rm -f conftest conftest$ac_cv_exeext
4399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4400printf "%s\n" "$ac_cv_exeext" >&6; }
4401
4402rm -f conftest.$ac_ext
4403EXEEXT=$ac_cv_exeext
4404ac_exeext=$EXEEXT
4405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h.  */
4407#include <stdio.h>
4408int
4409main (void)
4410{
4411FILE *f = fopen ("conftest.out", "w");
4412 if (!f)
4413  return 1;
4414 return ferror (f) || fclose (f) != 0;
4415
4416  ;
4417  return 0;
4418}
4419_ACEOF
4420ac_clean_files="$ac_clean_files conftest.out"
4421# Check that the compiler produces executables we can run.  If not, either
4422# the compiler is broken, or we cross compile.
4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4424printf %s "checking whether we are cross compiling... " >&6; }
4425if test "$cross_compiling" != yes; then
4426  { { ac_try="$ac_link"
4427case "(($ac_try" in
4428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429  *) ac_try_echo=$ac_try;;
4430esac
4431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432printf "%s\n" "$ac_try_echo"; } >&5
4433  (eval "$ac_link") 2>&5
4434  ac_status=$?
4435  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436  test $ac_status = 0; }
4437  if { ac_try='./conftest$ac_cv_exeext'
4438  { { case "(($ac_try" in
4439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440  *) ac_try_echo=$ac_try;;
4441esac
4442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4443printf "%s\n" "$ac_try_echo"; } >&5
4444  (eval "$ac_try") 2>&5
4445  ac_status=$?
4446  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447  test $ac_status = 0; }; }; then
4448    cross_compiling=no
4449  else
4450    if test "$cross_compiling" = maybe; then
4451	cross_compiling=yes
4452    else
4453	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4454printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4455as_fn_error 77 "cannot run C compiled programs.
4456If you meant to cross compile, use '--host'.
4457See 'config.log' for more details" "$LINENO" 5; }
4458    fi
4459  fi
4460fi
4461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4462printf "%s\n" "$cross_compiling" >&6; }
4463
4464rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4465  conftest.o conftest.obj conftest.out
4466ac_clean_files=$ac_clean_files_save
4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4468printf %s "checking for suffix of object files... " >&6; }
4469if test ${ac_cv_objext+y}
4470then :
4471  printf %s "(cached) " >&6
4472else case e in #(
4473  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h.  */
4475
4476int
4477main (void)
4478{
4479
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484rm -f conftest.o conftest.obj
4485if { { ac_try="$ac_compile"
4486case "(($ac_try" in
4487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488  *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491printf "%s\n" "$ac_try_echo"; } >&5
4492  (eval "$ac_compile") 2>&5
4493  ac_status=$?
4494  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495  test $ac_status = 0; }
4496then :
4497  for ac_file in conftest.o conftest.obj conftest.*; do
4498  test -f "$ac_file" || continue;
4499  case $ac_file in
4500    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4501    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4502       break;;
4503  esac
4504done
4505else case e in #(
4506  e) printf "%s\n" "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4510printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4511as_fn_error $? "cannot compute suffix of object files: cannot compile
4512See 'config.log' for more details" "$LINENO" 5; } ;;
4513esac
4514fi
4515rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4516esac
4517fi
4518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4519printf "%s\n" "$ac_cv_objext" >&6; }
4520OBJEXT=$ac_cv_objext
4521ac_objext=$OBJEXT
4522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4523printf %s "checking whether the compiler supports GNU C... " >&6; }
4524if test ${ac_cv_c_compiler_gnu+y}
4525then :
4526  printf %s "(cached) " >&6
4527else case e in #(
4528  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h.  */
4530
4531int
4532main (void)
4533{
4534#ifndef __GNUC__
4535       choke me
4536#endif
4537
4538  ;
4539  return 0;
4540}
4541_ACEOF
4542if ac_fn_c_try_compile "$LINENO"
4543then :
4544  ac_compiler_gnu=yes
4545else case e in #(
4546  e) ac_compiler_gnu=no ;;
4547esac
4548fi
4549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4550ac_cv_c_compiler_gnu=$ac_compiler_gnu
4551 ;;
4552esac
4553fi
4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4555printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4556ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558if test $ac_compiler_gnu = yes; then
4559  GCC=yes
4560else
4561  GCC=
4562fi
4563ac_test_CFLAGS=${CFLAGS+y}
4564ac_save_CFLAGS=$CFLAGS
4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4566printf %s "checking whether $CC accepts -g... " >&6; }
4567if test ${ac_cv_prog_cc_g+y}
4568then :
4569  printf %s "(cached) " >&6
4570else case e in #(
4571  e) ac_save_c_werror_flag=$ac_c_werror_flag
4572   ac_c_werror_flag=yes
4573   ac_cv_prog_cc_g=no
4574   CFLAGS="-g"
4575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576/* end confdefs.h.  */
4577
4578int
4579main (void)
4580{
4581
4582  ;
4583  return 0;
4584}
4585_ACEOF
4586if ac_fn_c_try_compile "$LINENO"
4587then :
4588  ac_cv_prog_cc_g=yes
4589else case e in #(
4590  e) CFLAGS=""
4591      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593
4594int
4595main (void)
4596{
4597
4598  ;
4599  return 0;
4600}
4601_ACEOF
4602if ac_fn_c_try_compile "$LINENO"
4603then :
4604
4605else case e in #(
4606  e) ac_c_werror_flag=$ac_save_c_werror_flag
4607	 CFLAGS="-g"
4608	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h.  */
4610
4611int
4612main (void)
4613{
4614
4615  ;
4616  return 0;
4617}
4618_ACEOF
4619if ac_fn_c_try_compile "$LINENO"
4620then :
4621  ac_cv_prog_cc_g=yes
4622fi
4623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4624esac
4625fi
4626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4627esac
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4630   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4631esac
4632fi
4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4634printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4635if test $ac_test_CFLAGS; then
4636  CFLAGS=$ac_save_CFLAGS
4637elif test $ac_cv_prog_cc_g = yes; then
4638  if test "$GCC" = yes; then
4639    CFLAGS="-g -O2"
4640  else
4641    CFLAGS="-g"
4642  fi
4643else
4644  if test "$GCC" = yes; then
4645    CFLAGS="-O2"
4646  else
4647    CFLAGS=
4648  fi
4649fi
4650ac_prog_cc_stdc=no
4651if test x$ac_prog_cc_stdc = xno
4652then :
4653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4654printf %s "checking for $CC option to enable C11 features... " >&6; }
4655if test ${ac_cv_prog_cc_c11+y}
4656then :
4657  printf %s "(cached) " >&6
4658else case e in #(
4659  e) ac_cv_prog_cc_c11=no
4660ac_save_CC=$CC
4661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h.  */
4663$ac_c_conftest_c11_program
4664_ACEOF
4665for ac_arg in '' -std=gnu11
4666do
4667  CC="$ac_save_CC $ac_arg"
4668  if ac_fn_c_try_compile "$LINENO"
4669then :
4670  ac_cv_prog_cc_c11=$ac_arg
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.beam
4673  test "x$ac_cv_prog_cc_c11" != "xno" && break
4674done
4675rm -f conftest.$ac_ext
4676CC=$ac_save_CC ;;
4677esac
4678fi
4679
4680if test "x$ac_cv_prog_cc_c11" = xno
4681then :
4682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4683printf "%s\n" "unsupported" >&6; }
4684else case e in #(
4685  e) if test "x$ac_cv_prog_cc_c11" = x
4686then :
4687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4688printf "%s\n" "none needed" >&6; }
4689else case e in #(
4690  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4691printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4692     CC="$CC $ac_cv_prog_cc_c11" ;;
4693esac
4694fi
4695  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4696  ac_prog_cc_stdc=c11 ;;
4697esac
4698fi
4699fi
4700if test x$ac_prog_cc_stdc = xno
4701then :
4702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4703printf %s "checking for $CC option to enable C99 features... " >&6; }
4704if test ${ac_cv_prog_cc_c99+y}
4705then :
4706  printf %s "(cached) " >&6
4707else case e in #(
4708  e) ac_cv_prog_cc_c99=no
4709ac_save_CC=$CC
4710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711/* end confdefs.h.  */
4712$ac_c_conftest_c99_program
4713_ACEOF
4714for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4715do
4716  CC="$ac_save_CC $ac_arg"
4717  if ac_fn_c_try_compile "$LINENO"
4718then :
4719  ac_cv_prog_cc_c99=$ac_arg
4720fi
4721rm -f core conftest.err conftest.$ac_objext conftest.beam
4722  test "x$ac_cv_prog_cc_c99" != "xno" && break
4723done
4724rm -f conftest.$ac_ext
4725CC=$ac_save_CC ;;
4726esac
4727fi
4728
4729if test "x$ac_cv_prog_cc_c99" = xno
4730then :
4731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4732printf "%s\n" "unsupported" >&6; }
4733else case e in #(
4734  e) if test "x$ac_cv_prog_cc_c99" = x
4735then :
4736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4737printf "%s\n" "none needed" >&6; }
4738else case e in #(
4739  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4740printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4741     CC="$CC $ac_cv_prog_cc_c99" ;;
4742esac
4743fi
4744  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4745  ac_prog_cc_stdc=c99 ;;
4746esac
4747fi
4748fi
4749if test x$ac_prog_cc_stdc = xno
4750then :
4751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4752printf %s "checking for $CC option to enable C89 features... " >&6; }
4753if test ${ac_cv_prog_cc_c89+y}
4754then :
4755  printf %s "(cached) " >&6
4756else case e in #(
4757  e) ac_cv_prog_cc_c89=no
4758ac_save_CC=$CC
4759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h.  */
4761$ac_c_conftest_c89_program
4762_ACEOF
4763for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4764do
4765  CC="$ac_save_CC $ac_arg"
4766  if ac_fn_c_try_compile "$LINENO"
4767then :
4768  ac_cv_prog_cc_c89=$ac_arg
4769fi
4770rm -f core conftest.err conftest.$ac_objext conftest.beam
4771  test "x$ac_cv_prog_cc_c89" != "xno" && break
4772done
4773rm -f conftest.$ac_ext
4774CC=$ac_save_CC ;;
4775esac
4776fi
4777
4778if test "x$ac_cv_prog_cc_c89" = xno
4779then :
4780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4781printf "%s\n" "unsupported" >&6; }
4782else case e in #(
4783  e) if test "x$ac_cv_prog_cc_c89" = x
4784then :
4785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4786printf "%s\n" "none needed" >&6; }
4787else case e in #(
4788  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4789printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4790     CC="$CC $ac_cv_prog_cc_c89" ;;
4791esac
4792fi
4793  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4794  ac_prog_cc_stdc=c89 ;;
4795esac
4796fi
4797fi
4798
4799ac_ext=c
4800ac_cpp='$CPP $CPPFLAGS'
4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805
4806  ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4812printf %s "checking whether $CC understands -c and -o together... " >&6; }
4813if test ${am_cv_prog_cc_c_o+y}
4814then :
4815  printf %s "(cached) " >&6
4816else case e in #(
4817  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819
4820int
4821main (void)
4822{
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828  # Make sure it works both with $CC and with simple cc.
4829  # Following AC_PROG_CC_C_O, we do the test twice because some
4830  # compilers refuse to overwrite an existing .o file with -o,
4831  # though they will create one.
4832  am_cv_prog_cc_c_o=yes
4833  for am_i in 1 2; do
4834    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4835   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } \
4839         && test -f conftest2.$ac_objext; then
4840      : OK
4841    else
4842      am_cv_prog_cc_c_o=no
4843      break
4844    fi
4845  done
4846  rm -f core conftest*
4847  unset am_i ;;
4848esac
4849fi
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4851printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4852if test "$am_cv_prog_cc_c_o" != yes; then
4853   # Losing compiler, so override with the script.
4854   # FIXME: It is wrong to rewrite CC.
4855   # But if we don't then we get into trouble of one sort or another.
4856   # A longer-term fix would be to have automake use am__CC in this case,
4857   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4858   CC="$am_aux_dir/compile $CC"
4859fi
4860ac_ext=c
4861ac_cpp='$CPP $CPPFLAGS'
4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865
4866
4867depcc="$CC"   am_compiler_list=
4868
4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4870printf %s "checking dependency style of $depcc... " >&6; }
4871if test ${am_cv_CC_dependencies_compiler_type+y}
4872then :
4873  printf %s "(cached) " >&6
4874else case e in #(
4875  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4876  # We make a subdir and do the tests there.  Otherwise we can end up
4877  # making bogus files that we don't know about and never remove.  For
4878  # instance it was reported that on HP-UX the gcc test will end up
4879  # making a dummy file named 'D' -- because '-MD' means "put the output
4880  # in D".
4881  rm -rf conftest.dir
4882  mkdir conftest.dir
4883  # Copy depcomp to subdir because otherwise we won't find it if we're
4884  # using a relative directory.
4885  cp "$am_depcomp" conftest.dir
4886  cd conftest.dir
4887  # We will build objects and dependencies in a subdirectory because
4888  # it helps to detect inapplicable dependency modes.  For instance
4889  # both Tru64's cc and ICC support -MD to output dependencies as a
4890  # side effect of compilation, but ICC will put the dependencies in
4891  # the current directory while Tru64 will put them in the object
4892  # directory.
4893  mkdir sub
4894
4895  am_cv_CC_dependencies_compiler_type=none
4896  if test "$am_compiler_list" = ""; then
4897     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898  fi
4899  am__universal=false
4900  case " $depcc " in #(
4901     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4902     esac
4903
4904  for depmode in $am_compiler_list; do
4905    # Setup a source with many dependencies, because some compilers
4906    # like to wrap large dependency lists on column 80 (with \), and
4907    # we should not choose a depcomp mode which is confused by this.
4908    #
4909    # We need to recreate these files for each test, as the compiler may
4910    # overwrite some of them when testing with obscure command lines.
4911    # This happens at least with the AIX C compiler.
4912    : > sub/conftest.c
4913    for i in 1 2 3 4 5 6; do
4914      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4916      # Solaris 10 /bin/sh.
4917      echo '/* dummy */' > sub/conftst$i.h
4918    done
4919    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4920
4921    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4922    # mode.  It turns out that the SunPro C++ compiler does not properly
4923    # handle '-M -o', and we need to detect this.  Also, some Intel
4924    # versions had trouble with output in subdirs.
4925    am__obj=sub/conftest.${OBJEXT-o}
4926    am__minus_obj="-o $am__obj"
4927    case $depmode in
4928    gcc)
4929      # This depmode causes a compiler race in universal mode.
4930      test "$am__universal" = false || continue
4931      ;;
4932    nosideeffect)
4933      # After this tag, mechanisms are not by side-effect, so they'll
4934      # only be used when explicitly requested.
4935      if test "x$enable_dependency_tracking" = xyes; then
4936	continue
4937      else
4938	break
4939      fi
4940      ;;
4941    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4942      # This compiler won't grok '-c -o', but also, the minuso test has
4943      # not run yet.  These depmodes are late enough in the game, and
4944      # so weak that their functioning should not be impacted.
4945      am__obj=conftest.${OBJEXT-o}
4946      am__minus_obj=
4947      ;;
4948    none) break ;;
4949    esac
4950    if depmode=$depmode \
4951       source=sub/conftest.c object=$am__obj \
4952       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4954         >/dev/null 2>conftest.err &&
4955       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4956       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4957       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4958       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4959      # icc doesn't choke on unknown options, it will just issue warnings
4960      # or remarks (even with -Werror).  So we grep stderr for any message
4961      # that says an option was ignored or not supported.
4962      # When given -MP, icc 7.0 and 7.1 complain thus:
4963      #   icc: Command line warning: ignoring option '-M'; no argument required
4964      # The diagnosis changed in icc 8.0:
4965      #   icc: Command line remark: option '-MP' not supported
4966      if (grep 'ignoring option' conftest.err ||
4967          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4968        am_cv_CC_dependencies_compiler_type=$depmode
4969        break
4970      fi
4971    fi
4972  done
4973
4974  cd ..
4975  rm -rf conftest.dir
4976else
4977  am_cv_CC_dependencies_compiler_type=none
4978fi
4979 ;;
4980esac
4981fi
4982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4983printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4984CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4985
4986 if
4987  test "x$enable_dependency_tracking" != xno \
4988  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4989  am__fastdepCC_TRUE=
4990  am__fastdepCC_FALSE='#'
4991else
4992  am__fastdepCC_TRUE='#'
4993  am__fastdepCC_FALSE=
4994fi
4995
4996
4997
4998
4999  if test -n "$ac_tool_prefix"; then
5000  for ac_prog in ar lib "link -lib"
5001  do
5002    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005printf %s "checking for $ac_word... " >&6; }
5006if test ${ac_cv_prog_AR+y}
5007then :
5008  printf %s "(cached) " >&6
5009else case e in #(
5010  e) if test -n "$AR"; then
5011  ac_cv_prog_AR="$AR" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  case $as_dir in #(((
5018    '') as_dir=./ ;;
5019    */) ;;
5020    *) as_dir=$as_dir/ ;;
5021  esac
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5024    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5025    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029  done
5030IFS=$as_save_IFS
5031
5032fi ;;
5033esac
5034fi
5035AR=$ac_cv_prog_AR
5036if test -n "$AR"; then
5037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5038printf "%s\n" "$AR" >&6; }
5039else
5040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041printf "%s\n" "no" >&6; }
5042fi
5043
5044
5045    test -n "$AR" && break
5046  done
5047fi
5048if test -z "$AR"; then
5049  ac_ct_AR=$AR
5050  for ac_prog in ar lib "link -lib"
5051do
5052  # Extract the first word of "$ac_prog", so it can be a program name with args.
5053set dummy $ac_prog; ac_word=$2
5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055printf %s "checking for $ac_word... " >&6; }
5056if test ${ac_cv_prog_ac_ct_AR+y}
5057then :
5058  printf %s "(cached) " >&6
5059else case e in #(
5060  e) if test -n "$ac_ct_AR"; then
5061  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  case $as_dir in #(((
5068    '') as_dir=./ ;;
5069    */) ;;
5070    *) as_dir=$as_dir/ ;;
5071  esac
5072    for ac_exec_ext in '' $ac_executable_extensions; do
5073  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5074    ac_cv_prog_ac_ct_AR="$ac_prog"
5075    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5076    break 2
5077  fi
5078done
5079  done
5080IFS=$as_save_IFS
5081
5082fi ;;
5083esac
5084fi
5085ac_ct_AR=$ac_cv_prog_ac_ct_AR
5086if test -n "$ac_ct_AR"; then
5087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5088printf "%s\n" "$ac_ct_AR" >&6; }
5089else
5090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091printf "%s\n" "no" >&6; }
5092fi
5093
5094
5095  test -n "$ac_ct_AR" && break
5096done
5097
5098  if test "x$ac_ct_AR" = x; then
5099    AR="false"
5100  else
5101    case $cross_compiling:$ac_tool_warned in
5102yes:)
5103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105ac_tool_warned=yes ;;
5106esac
5107    AR=$ac_ct_AR
5108  fi
5109fi
5110
5111: ${AR=ar}
5112: ${ARFLAGS=cr}
5113
5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5115printf %s "checking the archiver ($AR) interface... " >&6; }
5116if test ${am_cv_ar_interface+y}
5117then :
5118  printf %s "(cached) " >&6
5119else case e in #(
5120  e) ac_ext=c
5121ac_cpp='$CPP $CPPFLAGS'
5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126   am_cv_ar_interface=ar
5127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129int some_variable = 0;
5130_ACEOF
5131if ac_fn_c_try_compile "$LINENO"
5132then :
5133  am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5134      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5135  (eval $am_ar_try) 2>&5
5136  ac_status=$?
5137  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138  test $ac_status = 0; }
5139      if test "$ac_status" -eq 0; then
5140        am_cv_ar_interface=ar
5141      else
5142        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5143        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5144  (eval $am_ar_try) 2>&5
5145  ac_status=$?
5146  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5147  test $ac_status = 0; }
5148        if test "$ac_status" -eq 0; then
5149          am_cv_ar_interface=lib
5150        else
5151          am_cv_ar_interface=unknown
5152        fi
5153      fi
5154      rm -f conftest.lib libconftest.a
5155
5156fi
5157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5158   ac_ext=c
5159ac_cpp='$CPP $CPPFLAGS'
5160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163 ;;
5164esac
5165fi
5166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5167printf "%s\n" "$am_cv_ar_interface" >&6; }
5168
5169case $am_cv_ar_interface in
5170ar)
5171  ;;
5172lib)
5173  # Microsoft lib, so override with the ar-lib wrapper script.
5174  # FIXME: It is wrong to rewrite AR.
5175  # But if we don't then we get into trouble of one sort or another.
5176  # A longer-term fix would be to have automake use am__AR in this case,
5177  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5178  # similar.
5179  AR="$am_aux_dir/ar-lib $AR"
5180  ;;
5181unknown)
5182  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5183  ;;
5184esac
5185
5186case `pwd` in
5187  *\ * | *\	*)
5188    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5189printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5190esac
5191
5192
5193
5194macro_version='2.5.4'
5195macro_revision='2.5.4'
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210ltmain=$ac_aux_dir/ltmain.sh
5211
5212
5213
5214  # Make sure we can run config.sub.
5215$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5216  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5217
5218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5219printf %s "checking build system type... " >&6; }
5220if test ${ac_cv_build+y}
5221then :
5222  printf %s "(cached) " >&6
5223else case e in #(
5224  e) ac_build_alias=$build_alias
5225test "x$ac_build_alias" = x &&
5226  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5227test "x$ac_build_alias" = x &&
5228  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5229ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5230  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5231 ;;
5232esac
5233fi
5234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5235printf "%s\n" "$ac_cv_build" >&6; }
5236case $ac_cv_build in
5237*-*-*) ;;
5238*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5239esac
5240build=$ac_cv_build
5241ac_save_IFS=$IFS; IFS='-'
5242set x $ac_cv_build
5243shift
5244build_cpu=$1
5245build_vendor=$2
5246shift; shift
5247# Remember, the first character of IFS is used to create $*,
5248# except with old shells:
5249build_os=$*
5250IFS=$ac_save_IFS
5251case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5252
5253
5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5255printf %s "checking host system type... " >&6; }
5256if test ${ac_cv_host+y}
5257then :
5258  printf %s "(cached) " >&6
5259else case e in #(
5260  e) if test "x$host_alias" = x; then
5261  ac_cv_host=$ac_cv_build
5262else
5263  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5264    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5265fi
5266 ;;
5267esac
5268fi
5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5270printf "%s\n" "$ac_cv_host" >&6; }
5271case $ac_cv_host in
5272*-*-*) ;;
5273*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5274esac
5275host=$ac_cv_host
5276ac_save_IFS=$IFS; IFS='-'
5277set x $ac_cv_host
5278shift
5279host_cpu=$1
5280host_vendor=$2
5281shift; shift
5282# Remember, the first character of IFS is used to create $*,
5283# except with old shells:
5284host_os=$*
5285IFS=$ac_save_IFS
5286case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5287
5288
5289# Backslashify metacharacters that are still active within
5290# double-quoted strings.
5291sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5292
5293# Same as above, but do not quote variable references.
5294double_quote_subst='s/\(["`\\]\)/\\\1/g'
5295
5296# Sed substitution to delay expansion of an escaped shell variable in a
5297# double_quote_subst'ed string.
5298delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5299
5300# Sed substitution to delay expansion of an escaped single quote.
5301delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5302
5303# Sed substitution to avoid accidental globbing in evaled expressions
5304no_glob_subst='s/\*/\\\*/g'
5305
5306ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5307ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5308ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5309
5310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5311printf %s "checking how to print strings... " >&6; }
5312# Test print first, because it will be a builtin if present.
5313if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5314   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5315  ECHO='print -r --'
5316elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5317  ECHO='printf %s\n'
5318else
5319  # Use this function as a fallback that always works.
5320  func_fallback_echo ()
5321  {
5322    eval 'cat <<_LTECHO_EOF
5323$1
5324_LTECHO_EOF'
5325  }
5326  ECHO='func_fallback_echo'
5327fi
5328
5329# func_echo_all arg...
5330# Invoke $ECHO with all args, space-separated.
5331func_echo_all ()
5332{
5333    $ECHO ""
5334}
5335
5336case $ECHO in
5337  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5338printf "%s\n" "printf" >&6; } ;;
5339  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5340printf "%s\n" "print -r" >&6; } ;;
5341  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5342printf "%s\n" "cat" >&6; } ;;
5343esac
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5359printf %s "checking for a sed that does not truncate output... " >&6; }
5360if test ${ac_cv_path_SED+y}
5361then :
5362  printf %s "(cached) " >&6
5363else case e in #(
5364  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5365     for ac_i in 1 2 3 4 5 6 7; do
5366       ac_script="$ac_script$as_nl$ac_script"
5367     done
5368     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5369     { ac_script=; unset ac_script;}
5370     if test -z "$SED"; then
5371  ac_path_SED_found=false
5372  # Loop through the user's path and test for each of PROGNAME-LIST
5373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376  IFS=$as_save_IFS
5377  case $as_dir in #(((
5378    '') as_dir=./ ;;
5379    */) ;;
5380    *) as_dir=$as_dir/ ;;
5381  esac
5382    for ac_prog in sed gsed
5383   do
5384    for ac_exec_ext in '' $ac_executable_extensions; do
5385      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5386      as_fn_executable_p "$ac_path_SED" || continue
5387# Check for GNU ac_path_SED and select it if it is found.
5388  # Check for GNU $ac_path_SED
5389case `"$ac_path_SED" --version 2>&1` in #(
5390*GNU*)
5391  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5392#(
5393*)
5394  ac_count=0
5395  printf %s 0123456789 >"conftest.in"
5396  while :
5397  do
5398    cat "conftest.in" "conftest.in" >"conftest.tmp"
5399    mv "conftest.tmp" "conftest.in"
5400    cp "conftest.in" "conftest.nl"
5401    printf "%s\n" '' >> "conftest.nl"
5402    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404    as_fn_arith $ac_count + 1 && ac_count=$as_val
5405    if test $ac_count -gt ${ac_path_SED_max-0}; then
5406      # Best one so far, save it but keep looking for a better one
5407      ac_cv_path_SED="$ac_path_SED"
5408      ac_path_SED_max=$ac_count
5409    fi
5410    # 10*(2^10) chars as input seems more than enough
5411    test $ac_count -gt 10 && break
5412  done
5413  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414esac
5415
5416      $ac_path_SED_found && break 3
5417    done
5418  done
5419  done
5420IFS=$as_save_IFS
5421  if test -z "$ac_cv_path_SED"; then
5422    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5423  fi
5424else
5425  ac_cv_path_SED=$SED
5426fi
5427 ;;
5428esac
5429fi
5430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5431printf "%s\n" "$ac_cv_path_SED" >&6; }
5432 SED="$ac_cv_path_SED"
5433  rm -f conftest.sed
5434
5435test -z "$SED" && SED=sed
5436Xsed="$SED -e 1s/^X//"
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5449printf %s "checking for grep that handles long lines and -e... " >&6; }
5450if test ${ac_cv_path_GREP+y}
5451then :
5452  printf %s "(cached) " >&6
5453else case e in #(
5454  e) if test -z "$GREP"; then
5455  ac_path_GREP_found=false
5456  # Loop through the user's path and test for each of PROGNAME-LIST
5457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5459do
5460  IFS=$as_save_IFS
5461  case $as_dir in #(((
5462    '') as_dir=./ ;;
5463    */) ;;
5464    *) as_dir=$as_dir/ ;;
5465  esac
5466    for ac_prog in grep ggrep
5467   do
5468    for ac_exec_ext in '' $ac_executable_extensions; do
5469      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5470      as_fn_executable_p "$ac_path_GREP" || continue
5471# Check for GNU ac_path_GREP and select it if it is found.
5472  # Check for GNU $ac_path_GREP
5473case `"$ac_path_GREP" --version 2>&1` in #(
5474*GNU*)
5475  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5476#(
5477*)
5478  ac_count=0
5479  printf %s 0123456789 >"conftest.in"
5480  while :
5481  do
5482    cat "conftest.in" "conftest.in" >"conftest.tmp"
5483    mv "conftest.tmp" "conftest.in"
5484    cp "conftest.in" "conftest.nl"
5485    printf "%s\n" 'GREP' >> "conftest.nl"
5486    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5487    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5488    as_fn_arith $ac_count + 1 && ac_count=$as_val
5489    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5490      # Best one so far, save it but keep looking for a better one
5491      ac_cv_path_GREP="$ac_path_GREP"
5492      ac_path_GREP_max=$ac_count
5493    fi
5494    # 10*(2^10) chars as input seems more than enough
5495    test $ac_count -gt 10 && break
5496  done
5497  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5498esac
5499
5500      $ac_path_GREP_found && break 3
5501    done
5502  done
5503  done
5504IFS=$as_save_IFS
5505  if test -z "$ac_cv_path_GREP"; then
5506    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5507  fi
5508else
5509  ac_cv_path_GREP=$GREP
5510fi
5511 ;;
5512esac
5513fi
5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5515printf "%s\n" "$ac_cv_path_GREP" >&6; }
5516 GREP="$ac_cv_path_GREP"
5517
5518
5519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5520printf %s "checking for egrep... " >&6; }
5521if test ${ac_cv_path_EGREP+y}
5522then :
5523  printf %s "(cached) " >&6
5524else case e in #(
5525  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5526   then ac_cv_path_EGREP="$GREP -E"
5527   else
5528     if test -z "$EGREP"; then
5529  ac_path_EGREP_found=false
5530  # Loop through the user's path and test for each of PROGNAME-LIST
5531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5533do
5534  IFS=$as_save_IFS
5535  case $as_dir in #(((
5536    '') as_dir=./ ;;
5537    */) ;;
5538    *) as_dir=$as_dir/ ;;
5539  esac
5540    for ac_prog in egrep
5541   do
5542    for ac_exec_ext in '' $ac_executable_extensions; do
5543      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5544      as_fn_executable_p "$ac_path_EGREP" || continue
5545# Check for GNU ac_path_EGREP and select it if it is found.
5546  # Check for GNU $ac_path_EGREP
5547case `"$ac_path_EGREP" --version 2>&1` in #(
5548*GNU*)
5549  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5550#(
5551*)
5552  ac_count=0
5553  printf %s 0123456789 >"conftest.in"
5554  while :
5555  do
5556    cat "conftest.in" "conftest.in" >"conftest.tmp"
5557    mv "conftest.tmp" "conftest.in"
5558    cp "conftest.in" "conftest.nl"
5559    printf "%s\n" 'EGREP' >> "conftest.nl"
5560    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562    as_fn_arith $ac_count + 1 && ac_count=$as_val
5563    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5564      # Best one so far, save it but keep looking for a better one
5565      ac_cv_path_EGREP="$ac_path_EGREP"
5566      ac_path_EGREP_max=$ac_count
5567    fi
5568    # 10*(2^10) chars as input seems more than enough
5569    test $ac_count -gt 10 && break
5570  done
5571  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572esac
5573
5574      $ac_path_EGREP_found && break 3
5575    done
5576  done
5577  done
5578IFS=$as_save_IFS
5579  if test -z "$ac_cv_path_EGREP"; then
5580    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5581  fi
5582else
5583  ac_cv_path_EGREP=$EGREP
5584fi
5585
5586   fi ;;
5587esac
5588fi
5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5590printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5591 EGREP="$ac_cv_path_EGREP"
5592
5593         EGREP_TRADITIONAL=$EGREP
5594 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5595
5596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5597printf %s "checking for fgrep... " >&6; }
5598if test ${ac_cv_path_FGREP+y}
5599then :
5600  printf %s "(cached) " >&6
5601else case e in #(
5602  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5603   then ac_cv_path_FGREP="$GREP -F"
5604   else
5605     if test -z "$FGREP"; then
5606  ac_path_FGREP_found=false
5607  # Loop through the user's path and test for each of PROGNAME-LIST
5608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610do
5611  IFS=$as_save_IFS
5612  case $as_dir in #(((
5613    '') as_dir=./ ;;
5614    */) ;;
5615    *) as_dir=$as_dir/ ;;
5616  esac
5617    for ac_prog in fgrep
5618   do
5619    for ac_exec_ext in '' $ac_executable_extensions; do
5620      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5621      as_fn_executable_p "$ac_path_FGREP" || continue
5622# Check for GNU ac_path_FGREP and select it if it is found.
5623  # Check for GNU $ac_path_FGREP
5624case `"$ac_path_FGREP" --version 2>&1` in #(
5625*GNU*)
5626  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5627#(
5628*)
5629  ac_count=0
5630  printf %s 0123456789 >"conftest.in"
5631  while :
5632  do
5633    cat "conftest.in" "conftest.in" >"conftest.tmp"
5634    mv "conftest.tmp" "conftest.in"
5635    cp "conftest.in" "conftest.nl"
5636    printf "%s\n" 'FGREP' >> "conftest.nl"
5637    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5638    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5639    as_fn_arith $ac_count + 1 && ac_count=$as_val
5640    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5641      # Best one so far, save it but keep looking for a better one
5642      ac_cv_path_FGREP="$ac_path_FGREP"
5643      ac_path_FGREP_max=$ac_count
5644    fi
5645    # 10*(2^10) chars as input seems more than enough
5646    test $ac_count -gt 10 && break
5647  done
5648  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5649esac
5650
5651      $ac_path_FGREP_found && break 3
5652    done
5653  done
5654  done
5655IFS=$as_save_IFS
5656  if test -z "$ac_cv_path_FGREP"; then
5657    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5658  fi
5659else
5660  ac_cv_path_FGREP=$FGREP
5661fi
5662
5663   fi ;;
5664esac
5665fi
5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5667printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5668 FGREP="$ac_cv_path_FGREP"
5669
5670
5671test -z "$GREP" && GREP=grep
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691# Check whether --with-gnu-ld was given.
5692if test ${with_gnu_ld+y}
5693then :
5694  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5695else case e in #(
5696  e) with_gnu_ld=no ;;
5697esac
5698fi
5699
5700ac_prog=ld
5701if test yes = "$GCC"; then
5702  # Check if gcc -print-prog-name=ld gives a path.
5703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5704printf %s "checking for ld used by $CC... " >&6; }
5705  case $host in
5706  *-*-mingw* | *-*-windows*)
5707    # gcc leaves a trailing carriage return, which upsets mingw
5708    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5709  *)
5710    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5711  esac
5712  case $ac_prog in
5713    # Accept absolute paths.
5714    [\\/]* | ?:[\\/]*)
5715      re_direlt='/[^/][^/]*/\.\./'
5716      # Canonicalize the pathname of ld
5717      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5718      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5719	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5720      done
5721      test -z "$LD" && LD=$ac_prog
5722      ;;
5723  "")
5724    # If it fails, then pretend we aren't using GCC.
5725    ac_prog=ld
5726    ;;
5727  *)
5728    # If it is relative, then search for the first ld in PATH.
5729    with_gnu_ld=unknown
5730    ;;
5731  esac
5732elif test yes = "$with_gnu_ld"; then
5733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5734printf %s "checking for GNU ld... " >&6; }
5735else
5736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5737printf %s "checking for non-GNU ld... " >&6; }
5738fi
5739if test ${lt_cv_path_LD+y}
5740then :
5741  printf %s "(cached) " >&6
5742else case e in #(
5743  e) if test -z "$LD"; then
5744  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5745  for ac_dir in $PATH; do
5746    IFS=$lt_save_ifs
5747    test -z "$ac_dir" && ac_dir=.
5748    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5749      lt_cv_path_LD=$ac_dir/$ac_prog
5750      # Check to see if the program is GNU ld.  I'd rather use --version,
5751      # but apparently some variants of GNU ld only accept -v.
5752      # Break only if it was the GNU/non-GNU ld that we prefer.
5753      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5754      *GNU* | *'with BFD'*)
5755	test no != "$with_gnu_ld" && break
5756	;;
5757      *)
5758	test yes != "$with_gnu_ld" && break
5759	;;
5760      esac
5761    fi
5762  done
5763  IFS=$lt_save_ifs
5764else
5765  lt_cv_path_LD=$LD # Let the user override the test with a path.
5766fi ;;
5767esac
5768fi
5769
5770LD=$lt_cv_path_LD
5771if test -n "$LD"; then
5772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5773printf "%s\n" "$LD" >&6; }
5774else
5775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776printf "%s\n" "no" >&6; }
5777fi
5778test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5780printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5781if test ${lt_cv_prog_gnu_ld+y}
5782then :
5783  printf %s "(cached) " >&6
5784else case e in #(
5785  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5786case `$LD -v 2>&1 </dev/null` in
5787*GNU* | *'with BFD'*)
5788  lt_cv_prog_gnu_ld=yes
5789  ;;
5790*)
5791  lt_cv_prog_gnu_ld=no
5792  ;;
5793esac ;;
5794esac
5795fi
5796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5797printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5798with_gnu_ld=$lt_cv_prog_gnu_ld
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5809printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5810if test ${lt_cv_path_NM+y}
5811then :
5812  printf %s "(cached) " >&6
5813else case e in #(
5814  e) if test -n "$NM"; then
5815  # Let the user override the test.
5816  lt_cv_path_NM=$NM
5817else
5818  lt_nm_to_check=${ac_tool_prefix}nm
5819  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5820    lt_nm_to_check="$lt_nm_to_check nm"
5821  fi
5822  for lt_tmp_nm in $lt_nm_to_check; do
5823    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5824    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5825      IFS=$lt_save_ifs
5826      test -z "$ac_dir" && ac_dir=.
5827      tmp_nm=$ac_dir/$lt_tmp_nm
5828      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5829	# Check to see if the nm accepts a BSD-compat flag.
5830	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5831	#   nm: unknown option "B" ignored
5832	# Tru64's nm complains that /dev/null is an invalid object file
5833	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5834	case $build_os in
5835	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5836	*) lt_bad_file=/dev/null ;;
5837	esac
5838	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5839	*$lt_bad_file* | *'Invalid file or object type'*)
5840	  lt_cv_path_NM="$tmp_nm -B"
5841	  break 2
5842	  ;;
5843	*)
5844	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5845	  */dev/null*)
5846	    lt_cv_path_NM="$tmp_nm -p"
5847	    break 2
5848	    ;;
5849	  *)
5850	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5851	    continue # so that we can try to find one that supports BSD flags
5852	    ;;
5853	  esac
5854	  ;;
5855	esac
5856      fi
5857    done
5858    IFS=$lt_save_ifs
5859  done
5860  : ${lt_cv_path_NM=no}
5861fi ;;
5862esac
5863fi
5864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5865printf "%s\n" "$lt_cv_path_NM" >&6; }
5866if test no != "$lt_cv_path_NM"; then
5867  NM=$lt_cv_path_NM
5868else
5869  # Didn't find any BSD compatible name lister, look for dumpbin.
5870  if test -n "$DUMPBIN"; then :
5871    # Let the user override the test.
5872  else
5873    if test -n "$ac_tool_prefix"; then
5874  for ac_prog in dumpbin "link -dump"
5875  do
5876    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879printf %s "checking for $ac_word... " >&6; }
5880if test ${ac_cv_prog_DUMPBIN+y}
5881then :
5882  printf %s "(cached) " >&6
5883else case e in #(
5884  e) if test -n "$DUMPBIN"; then
5885  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890  IFS=$as_save_IFS
5891  case $as_dir in #(((
5892    '') as_dir=./ ;;
5893    */) ;;
5894    *) as_dir=$as_dir/ ;;
5895  esac
5896    for ac_exec_ext in '' $ac_executable_extensions; do
5897  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5898    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5899    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903  done
5904IFS=$as_save_IFS
5905
5906fi ;;
5907esac
5908fi
5909DUMPBIN=$ac_cv_prog_DUMPBIN
5910if test -n "$DUMPBIN"; then
5911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5912printf "%s\n" "$DUMPBIN" >&6; }
5913else
5914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915printf "%s\n" "no" >&6; }
5916fi
5917
5918
5919    test -n "$DUMPBIN" && break
5920  done
5921fi
5922if test -z "$DUMPBIN"; then
5923  ac_ct_DUMPBIN=$DUMPBIN
5924  for ac_prog in dumpbin "link -dump"
5925do
5926  # Extract the first word of "$ac_prog", so it can be a program name with args.
5927set dummy $ac_prog; ac_word=$2
5928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929printf %s "checking for $ac_word... " >&6; }
5930if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5931then :
5932  printf %s "(cached) " >&6
5933else case e in #(
5934  e) if test -n "$ac_ct_DUMPBIN"; then
5935  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940  IFS=$as_save_IFS
5941  case $as_dir in #(((
5942    '') as_dir=./ ;;
5943    */) ;;
5944    *) as_dir=$as_dir/ ;;
5945  esac
5946    for ac_exec_ext in '' $ac_executable_extensions; do
5947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5948    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5950    break 2
5951  fi
5952done
5953  done
5954IFS=$as_save_IFS
5955
5956fi ;;
5957esac
5958fi
5959ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5960if test -n "$ac_ct_DUMPBIN"; then
5961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5962printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5963else
5964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965printf "%s\n" "no" >&6; }
5966fi
5967
5968
5969  test -n "$ac_ct_DUMPBIN" && break
5970done
5971
5972  if test "x$ac_ct_DUMPBIN" = x; then
5973    DUMPBIN=":"
5974  else
5975    case $cross_compiling:$ac_tool_warned in
5976yes:)
5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979ac_tool_warned=yes ;;
5980esac
5981    DUMPBIN=$ac_ct_DUMPBIN
5982  fi
5983fi
5984
5985    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5986    *COFF*)
5987      DUMPBIN="$DUMPBIN -symbols -headers"
5988      ;;
5989    *)
5990      DUMPBIN=:
5991      ;;
5992    esac
5993  fi
5994
5995  if test : != "$DUMPBIN"; then
5996    NM=$DUMPBIN
5997  fi
5998fi
5999test -z "$NM" && NM=nm
6000
6001
6002
6003
6004
6005
6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6007printf %s "checking the name lister ($NM) interface... " >&6; }
6008if test ${lt_cv_nm_interface+y}
6009then :
6010  printf %s "(cached) " >&6
6011else case e in #(
6012  e) lt_cv_nm_interface="BSD nm"
6013  echo "int some_variable = 0;" > conftest.$ac_ext
6014  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6015  (eval "$ac_compile" 2>conftest.err)
6016  cat conftest.err >&5
6017  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6018  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6019  cat conftest.err >&5
6020  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6021  cat conftest.out >&5
6022  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6023    lt_cv_nm_interface="MS dumpbin"
6024  fi
6025  rm -f conftest* ;;
6026esac
6027fi
6028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6029printf "%s\n" "$lt_cv_nm_interface" >&6; }
6030
6031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6032printf %s "checking whether ln -s works... " >&6; }
6033LN_S=$as_ln_s
6034if test "$LN_S" = "ln -s"; then
6035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6036printf "%s\n" "yes" >&6; }
6037else
6038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6039printf "%s\n" "no, using $LN_S" >&6; }
6040fi
6041
6042# find the maximum length of command line arguments
6043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6044printf %s "checking the maximum length of command line arguments... " >&6; }
6045if test ${lt_cv_sys_max_cmd_len+y}
6046then :
6047  printf %s "(cached) " >&6
6048else case e in #(
6049  e)   i=0
6050  teststring=ABCD
6051
6052  case $build_os in
6053  msdosdjgpp*)
6054    # On DJGPP, this test can blow up pretty badly due to problems in libc
6055    # (any single argument exceeding 2000 bytes causes a buffer overrun
6056    # during glob expansion).  Even if it were fixed, the result of this
6057    # check would be larger than it should be.
6058    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6059    ;;
6060
6061  gnu* | ironclad*)
6062    # Under GNU Hurd and Ironclad, this test is not required because there
6063    # is no limit to the length of command line arguments.
6064    # Libtool will interpret -1 as no limit whatsoever
6065    lt_cv_sys_max_cmd_len=-1;
6066    ;;
6067
6068  cygwin* | mingw* | windows* | cegcc*)
6069    # On Win9x/ME, this test blows up -- it succeeds, but takes
6070    # about 5 minutes as the teststring grows exponentially.
6071    # Worse, since 9x/ME are not pre-emptively multitasking,
6072    # you end up with a "frozen" computer, even though with patience
6073    # the test eventually succeeds (with a max line length of 256k).
6074    # Instead, let's just punt: use the minimum linelength reported by
6075    # all of the supported platforms: 8192 (on NT/2K/XP).
6076    lt_cv_sys_max_cmd_len=8192;
6077    ;;
6078
6079  mint*)
6080    # On MiNT this can take a long time and run out of memory.
6081    lt_cv_sys_max_cmd_len=8192;
6082    ;;
6083
6084  amigaos*)
6085    # On AmigaOS with pdksh, this test takes hours, literally.
6086    # So we just punt and use a minimum line length of 8192.
6087    lt_cv_sys_max_cmd_len=8192;
6088    ;;
6089
6090  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6091    # This has been around since 386BSD, at least.  Likely further.
6092    if test -x /sbin/sysctl; then
6093      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6094    elif test -x /usr/sbin/sysctl; then
6095      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6096    else
6097      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6098    fi
6099    # And add a safety zone
6100    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102    ;;
6103
6104  interix*)
6105    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106    lt_cv_sys_max_cmd_len=196608
6107    ;;
6108
6109  os2*)
6110    # The test takes a long time on OS/2.
6111    lt_cv_sys_max_cmd_len=8192
6112    ;;
6113
6114  osf*)
6115    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6116    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6117    # nice to cause kernel panics so lets avoid the loop below.
6118    # First set a reasonable default.
6119    lt_cv_sys_max_cmd_len=16384
6120    #
6121    if test -x /sbin/sysconfig; then
6122      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6123        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6124      esac
6125    fi
6126    ;;
6127  sco3.2v5*)
6128    lt_cv_sys_max_cmd_len=102400
6129    ;;
6130  sysv5* | sco5v6* | sysv4.2uw2*)
6131    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6132    if test -n "$kargmax"; then
6133      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6134    else
6135      lt_cv_sys_max_cmd_len=32768
6136    fi
6137    ;;
6138  *)
6139    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6140    if test -n "$lt_cv_sys_max_cmd_len" && \
6141       test undefined != "$lt_cv_sys_max_cmd_len"; then
6142      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6143      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6144    else
6145      # Make teststring a little bigger before we do anything with it.
6146      # a 1K string should be a reasonable start.
6147      for i in 1 2 3 4 5 6 7 8; do
6148        teststring=$teststring$teststring
6149      done
6150      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6151      # If test is not a shell built-in, we'll probably end up computing a
6152      # maximum length that is only half of the actual maximum length, but
6153      # we can't tell.
6154      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6155	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6156	      test 17 != "$i" # 1/2 MB should be enough
6157      do
6158        i=`expr $i + 1`
6159        teststring=$teststring$teststring
6160      done
6161      # Only check the string length outside the loop.
6162      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6163      teststring=
6164      # Add a significant safety factor because C++ compilers can tack on
6165      # massive amounts of additional arguments before passing them to the
6166      # linker.  It appears as though 1/2 is a usable value.
6167      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6168    fi
6169    ;;
6170  esac
6171 ;;
6172esac
6173fi
6174
6175if test -n "$lt_cv_sys_max_cmd_len"; then
6176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6177printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6178else
6179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6180printf "%s\n" "none" >&6; }
6181fi
6182max_cmd_len=$lt_cv_sys_max_cmd_len
6183
6184
6185
6186
6187
6188
6189: ${CP="cp -f"}
6190: ${MV="mv -f"}
6191: ${RM="rm -f"}
6192
6193if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6194  lt_unset=unset
6195else
6196  lt_unset=false
6197fi
6198
6199
6200
6201
6202
6203# test EBCDIC or ASCII
6204case `echo X|tr X '\101'` in
6205 A) # ASCII based system
6206    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6207  lt_SP2NL='tr \040 \012'
6208  lt_NL2SP='tr \015\012 \040\040'
6209  ;;
6210 *) # EBCDIC based system
6211  lt_SP2NL='tr \100 \n'
6212  lt_NL2SP='tr \r\n \100\100'
6213  ;;
6214esac
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6225printf %s "checking how to convert $build file names to $host format... " >&6; }
6226if test ${lt_cv_to_host_file_cmd+y}
6227then :
6228  printf %s "(cached) " >&6
6229else case e in #(
6230  e) case $host in
6231  *-*-mingw* )
6232    case $build in
6233      *-*-mingw* | *-*-windows* ) # actually msys
6234        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6235        ;;
6236      *-*-cygwin* )
6237        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6238        ;;
6239      * ) # otherwise, assume *nix
6240        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6241        ;;
6242    esac
6243    ;;
6244  *-*-cygwin* )
6245    case $build in
6246      *-*-mingw* | *-*-windows* ) # actually msys
6247        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6248        ;;
6249      *-*-cygwin* )
6250        lt_cv_to_host_file_cmd=func_convert_file_noop
6251        ;;
6252      * ) # otherwise, assume *nix
6253        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6254        ;;
6255    esac
6256    ;;
6257  * ) # unhandled hosts (and "normal" native builds)
6258    lt_cv_to_host_file_cmd=func_convert_file_noop
6259    ;;
6260esac
6261 ;;
6262esac
6263fi
6264
6265to_host_file_cmd=$lt_cv_to_host_file_cmd
6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6267printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6268
6269
6270
6271
6272
6273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6274printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6275if test ${lt_cv_to_tool_file_cmd+y}
6276then :
6277  printf %s "(cached) " >&6
6278else case e in #(
6279  e) #assume ordinary cross tools, or native build.
6280lt_cv_to_tool_file_cmd=func_convert_file_noop
6281case $host in
6282  *-*-mingw* | *-*-windows* )
6283    case $build in
6284      *-*-mingw* | *-*-windows* ) # actually msys
6285        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6286        ;;
6287    esac
6288    ;;
6289esac
6290 ;;
6291esac
6292fi
6293
6294to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6296printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6297
6298
6299
6300
6301
6302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6303printf %s "checking for $LD option to reload object files... " >&6; }
6304if test ${lt_cv_ld_reload_flag+y}
6305then :
6306  printf %s "(cached) " >&6
6307else case e in #(
6308  e) lt_cv_ld_reload_flag='-r' ;;
6309esac
6310fi
6311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6312printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6313reload_flag=$lt_cv_ld_reload_flag
6314case $reload_flag in
6315"" | " "*) ;;
6316*) reload_flag=" $reload_flag" ;;
6317esac
6318reload_cmds='$LD$reload_flag -o $output$reload_objs'
6319case $host_os in
6320  cygwin* | mingw* | windows* | pw32* | cegcc*)
6321    if test yes != "$GCC"; then
6322      reload_cmds=false
6323    fi
6324    ;;
6325  darwin*)
6326    if test yes = "$GCC"; then
6327      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6328    else
6329      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6330    fi
6331    ;;
6332esac
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342# Extract the first word of "file", so it can be a program name with args.
6343set dummy file; ac_word=$2
6344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345printf %s "checking for $ac_word... " >&6; }
6346if test ${ac_cv_prog_FILECMD+y}
6347then :
6348  printf %s "(cached) " >&6
6349else case e in #(
6350  e) if test -n "$FILECMD"; then
6351  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  case $as_dir in #(((
6358    '') as_dir=./ ;;
6359    */) ;;
6360    *) as_dir=$as_dir/ ;;
6361  esac
6362    for ac_exec_ext in '' $ac_executable_extensions; do
6363  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6364    ac_cv_prog_FILECMD="file"
6365    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6366    break 2
6367  fi
6368done
6369  done
6370IFS=$as_save_IFS
6371
6372  test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6373fi ;;
6374esac
6375fi
6376FILECMD=$ac_cv_prog_FILECMD
6377if test -n "$FILECMD"; then
6378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6379printf "%s\n" "$FILECMD" >&6; }
6380else
6381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382printf "%s\n" "no" >&6; }
6383fi
6384
6385
6386
6387
6388
6389
6390
6391
6392if test -n "$ac_tool_prefix"; then
6393  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6394set dummy ${ac_tool_prefix}objdump; ac_word=$2
6395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396printf %s "checking for $ac_word... " >&6; }
6397if test ${ac_cv_prog_OBJDUMP+y}
6398then :
6399  printf %s "(cached) " >&6
6400else case e in #(
6401  e) if test -n "$OBJDUMP"; then
6402  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407  IFS=$as_save_IFS
6408  case $as_dir in #(((
6409    '') as_dir=./ ;;
6410    */) ;;
6411    *) as_dir=$as_dir/ ;;
6412  esac
6413    for ac_exec_ext in '' $ac_executable_extensions; do
6414  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6415    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6416    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6417    break 2
6418  fi
6419done
6420  done
6421IFS=$as_save_IFS
6422
6423fi ;;
6424esac
6425fi
6426OBJDUMP=$ac_cv_prog_OBJDUMP
6427if test -n "$OBJDUMP"; then
6428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6429printf "%s\n" "$OBJDUMP" >&6; }
6430else
6431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432printf "%s\n" "no" >&6; }
6433fi
6434
6435
6436fi
6437if test -z "$ac_cv_prog_OBJDUMP"; then
6438  ac_ct_OBJDUMP=$OBJDUMP
6439  # Extract the first word of "objdump", so it can be a program name with args.
6440set dummy objdump; ac_word=$2
6441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442printf %s "checking for $ac_word... " >&6; }
6443if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6444then :
6445  printf %s "(cached) " >&6
6446else case e in #(
6447  e) if test -n "$ac_ct_OBJDUMP"; then
6448  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453  IFS=$as_save_IFS
6454  case $as_dir in #(((
6455    '') as_dir=./ ;;
6456    */) ;;
6457    *) as_dir=$as_dir/ ;;
6458  esac
6459    for ac_exec_ext in '' $ac_executable_extensions; do
6460  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6461    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6462    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6463    break 2
6464  fi
6465done
6466  done
6467IFS=$as_save_IFS
6468
6469fi ;;
6470esac
6471fi
6472ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6473if test -n "$ac_ct_OBJDUMP"; then
6474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6475printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6476else
6477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478printf "%s\n" "no" >&6; }
6479fi
6480
6481  if test "x$ac_ct_OBJDUMP" = x; then
6482    OBJDUMP="false"
6483  else
6484    case $cross_compiling:$ac_tool_warned in
6485yes:)
6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488ac_tool_warned=yes ;;
6489esac
6490    OBJDUMP=$ac_ct_OBJDUMP
6491  fi
6492else
6493  OBJDUMP="$ac_cv_prog_OBJDUMP"
6494fi
6495
6496test -z "$OBJDUMP" && OBJDUMP=objdump
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6507printf %s "checking how to recognize dependent libraries... " >&6; }
6508if test ${lt_cv_deplibs_check_method+y}
6509then :
6510  printf %s "(cached) " >&6
6511else case e in #(
6512  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6513lt_cv_file_magic_test_file=
6514lt_cv_deplibs_check_method='unknown'
6515# Need to set the preceding variable on all platforms that support
6516# interlibrary dependencies.
6517# 'none' -- dependencies not supported.
6518# 'unknown' -- same as none, but documents that we really don't know.
6519# 'pass_all' -- all dependencies passed with no checks.
6520# 'file_magic [[regex]]' -- check by looking for files in library path
6521# that responds to the $file_magic_cmd with a given extended regex.
6522# If you have 'file' or equivalent on your system and you're not sure
6523# whether 'pass_all' will *always* work, you probably want this one.
6524
6525case $host_os in
6526aix[4-9]*)
6527  lt_cv_deplibs_check_method=pass_all
6528  ;;
6529
6530beos*)
6531  lt_cv_deplibs_check_method=pass_all
6532  ;;
6533
6534bsdi[45]*)
6535  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6536  lt_cv_file_magic_cmd='$FILECMD -L'
6537  lt_cv_file_magic_test_file=/shlib/libc.so
6538  ;;
6539
6540cygwin*)
6541  # func_win32_libid is a shell function defined in ltmain.sh
6542  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6543  lt_cv_file_magic_cmd='func_win32_libid'
6544  ;;
6545
6546mingw* | windows* | pw32*)
6547  # Base MSYS/MinGW do not provide the 'file' command needed by
6548  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6549  # unless we find 'file', for example because we are cross-compiling.
6550  if ( file / ) >/dev/null 2>&1; then
6551    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6552    lt_cv_file_magic_cmd='func_win32_libid'
6553  else
6554    # Keep this pattern in sync with the one in func_win32_libid.
6555    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6556    lt_cv_file_magic_cmd='$OBJDUMP -f'
6557  fi
6558  ;;
6559
6560cegcc*)
6561  # use the weaker test based on 'objdump'. See mingw*.
6562  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6563  lt_cv_file_magic_cmd='$OBJDUMP -f'
6564  ;;
6565
6566darwin* | rhapsody*)
6567  lt_cv_deplibs_check_method=pass_all
6568  ;;
6569
6570freebsd* | dragonfly* | midnightbsd*)
6571  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6572    case $host_cpu in
6573    i*86 )
6574      # Not sure whether the presence of OpenBSD here was a mistake.
6575      # Let's accept both of them until this is cleared up.
6576      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6577      lt_cv_file_magic_cmd=$FILECMD
6578      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6579      ;;
6580    esac
6581  else
6582    lt_cv_deplibs_check_method=pass_all
6583  fi
6584  ;;
6585
6586haiku*)
6587  lt_cv_deplibs_check_method=pass_all
6588  ;;
6589
6590hpux10.20* | hpux11*)
6591  lt_cv_file_magic_cmd=$FILECMD
6592  case $host_cpu in
6593  ia64*)
6594    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6595    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6596    ;;
6597  hppa*64*)
6598    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]'
6599    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6600    ;;
6601  *)
6602    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6603    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6604    ;;
6605  esac
6606  ;;
6607
6608interix[3-9]*)
6609  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6610  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6611  ;;
6612
6613irix5* | irix6* | nonstopux*)
6614  case $LD in
6615  *-32|*"-32 ") libmagic=32-bit;;
6616  *-n32|*"-n32 ") libmagic=N32;;
6617  *-64|*"-64 ") libmagic=64-bit;;
6618  *) libmagic=never-match;;
6619  esac
6620  lt_cv_deplibs_check_method=pass_all
6621  ;;
6622
6623# This must be glibc/ELF.
6624linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6625  lt_cv_deplibs_check_method=pass_all
6626  ;;
6627
6628*-mlibc)
6629  lt_cv_deplibs_check_method=pass_all
6630  ;;
6631
6632netbsd* | netbsdelf*-gnu)
6633  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6634    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6635  else
6636    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6637  fi
6638  ;;
6639
6640newos6*)
6641  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6642  lt_cv_file_magic_cmd=$FILECMD
6643  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6644  ;;
6645
6646*nto* | *qnx*)
6647  lt_cv_deplibs_check_method=pass_all
6648  ;;
6649
6650openbsd*)
6651  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6652    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6653  else
6654    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6655  fi
6656  ;;
6657
6658osf3* | osf4* | osf5*)
6659  lt_cv_deplibs_check_method=pass_all
6660  ;;
6661
6662rdos*)
6663  lt_cv_deplibs_check_method=pass_all
6664  ;;
6665
6666serenity*)
6667  lt_cv_deplibs_check_method=pass_all
6668  ;;
6669
6670solaris*)
6671  lt_cv_deplibs_check_method=pass_all
6672  ;;
6673
6674sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6675  lt_cv_deplibs_check_method=pass_all
6676  ;;
6677
6678sysv4 | sysv4.3*)
6679  case $host_vendor in
6680  motorola)
6681    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]'
6682    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6683    ;;
6684  ncr)
6685    lt_cv_deplibs_check_method=pass_all
6686    ;;
6687  sequent)
6688    lt_cv_file_magic_cmd='/bin/file'
6689    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6690    ;;
6691  sni)
6692    lt_cv_file_magic_cmd='/bin/file'
6693    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6694    lt_cv_file_magic_test_file=/lib/libc.so
6695    ;;
6696  siemens)
6697    lt_cv_deplibs_check_method=pass_all
6698    ;;
6699  pc)
6700    lt_cv_deplibs_check_method=pass_all
6701    ;;
6702  esac
6703  ;;
6704
6705tpf*)
6706  lt_cv_deplibs_check_method=pass_all
6707  ;;
6708os2*)
6709  lt_cv_deplibs_check_method=pass_all
6710  ;;
6711esac
6712 ;;
6713esac
6714fi
6715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6716printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6717
6718file_magic_glob=
6719want_nocaseglob=no
6720if test "$build" = "$host"; then
6721  case $host_os in
6722  mingw* | windows* | pw32*)
6723    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6724      want_nocaseglob=yes
6725    else
6726      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6727    fi
6728    ;;
6729  esac
6730fi
6731
6732file_magic_cmd=$lt_cv_file_magic_cmd
6733deplibs_check_method=$lt_cv_deplibs_check_method
6734test -z "$deplibs_check_method" && deplibs_check_method=unknown
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757if test -n "$ac_tool_prefix"; then
6758  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6759set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761printf %s "checking for $ac_word... " >&6; }
6762if test ${ac_cv_prog_DLLTOOL+y}
6763then :
6764  printf %s "(cached) " >&6
6765else case e in #(
6766  e) if test -n "$DLLTOOL"; then
6767  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772  IFS=$as_save_IFS
6773  case $as_dir in #(((
6774    '') as_dir=./ ;;
6775    */) ;;
6776    *) as_dir=$as_dir/ ;;
6777  esac
6778    for ac_exec_ext in '' $ac_executable_extensions; do
6779  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6780    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6782    break 2
6783  fi
6784done
6785  done
6786IFS=$as_save_IFS
6787
6788fi ;;
6789esac
6790fi
6791DLLTOOL=$ac_cv_prog_DLLTOOL
6792if test -n "$DLLTOOL"; then
6793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6794printf "%s\n" "$DLLTOOL" >&6; }
6795else
6796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797printf "%s\n" "no" >&6; }
6798fi
6799
6800
6801fi
6802if test -z "$ac_cv_prog_DLLTOOL"; then
6803  ac_ct_DLLTOOL=$DLLTOOL
6804  # Extract the first word of "dlltool", so it can be a program name with args.
6805set dummy dlltool; ac_word=$2
6806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807printf %s "checking for $ac_word... " >&6; }
6808if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6809then :
6810  printf %s "(cached) " >&6
6811else case e in #(
6812  e) if test -n "$ac_ct_DLLTOOL"; then
6813  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818  IFS=$as_save_IFS
6819  case $as_dir in #(((
6820    '') as_dir=./ ;;
6821    */) ;;
6822    *) as_dir=$as_dir/ ;;
6823  esac
6824    for ac_exec_ext in '' $ac_executable_extensions; do
6825  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6826    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6827    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831  done
6832IFS=$as_save_IFS
6833
6834fi ;;
6835esac
6836fi
6837ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6838if test -n "$ac_ct_DLLTOOL"; then
6839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6840printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6841else
6842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843printf "%s\n" "no" >&6; }
6844fi
6845
6846  if test "x$ac_ct_DLLTOOL" = x; then
6847    DLLTOOL="false"
6848  else
6849    case $cross_compiling:$ac_tool_warned in
6850yes:)
6851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6852printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6853ac_tool_warned=yes ;;
6854esac
6855    DLLTOOL=$ac_ct_DLLTOOL
6856  fi
6857else
6858  DLLTOOL="$ac_cv_prog_DLLTOOL"
6859fi
6860
6861test -z "$DLLTOOL" && DLLTOOL=dlltool
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6873printf %s "checking how to associate runtime and link libraries... " >&6; }
6874if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6875then :
6876  printf %s "(cached) " >&6
6877else case e in #(
6878  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6879
6880case $host_os in
6881cygwin* | mingw* | windows* | pw32* | cegcc*)
6882  # two different shell functions defined in ltmain.sh;
6883  # decide which one to use based on capabilities of $DLLTOOL
6884  case `$DLLTOOL --help 2>&1` in
6885  *--identify-strict*)
6886    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6887    ;;
6888  *)
6889    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6890    ;;
6891  esac
6892  ;;
6893*)
6894  # fallback: assume linklib IS sharedlib
6895  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6896  ;;
6897esac
6898 ;;
6899esac
6900fi
6901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6902printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6903sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6904test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6905
6906
6907
6908
6909
6910
6911
6912if test -n "$ac_tool_prefix"; then
6913  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916printf %s "checking for $ac_word... " >&6; }
6917if test ${ac_cv_prog_RANLIB+y}
6918then :
6919  printf %s "(cached) " >&6
6920else case e in #(
6921  e) if test -n "$RANLIB"; then
6922  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  case $as_dir in #(((
6929    '') as_dir=./ ;;
6930    */) ;;
6931    *) as_dir=$as_dir/ ;;
6932  esac
6933    for ac_exec_ext in '' $ac_executable_extensions; do
6934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6935    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6937    break 2
6938  fi
6939done
6940  done
6941IFS=$as_save_IFS
6942
6943fi ;;
6944esac
6945fi
6946RANLIB=$ac_cv_prog_RANLIB
6947if test -n "$RANLIB"; then
6948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6949printf "%s\n" "$RANLIB" >&6; }
6950else
6951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952printf "%s\n" "no" >&6; }
6953fi
6954
6955
6956fi
6957if test -z "$ac_cv_prog_RANLIB"; then
6958  ac_ct_RANLIB=$RANLIB
6959  # Extract the first word of "ranlib", so it can be a program name with args.
6960set dummy ranlib; ac_word=$2
6961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962printf %s "checking for $ac_word... " >&6; }
6963if test ${ac_cv_prog_ac_ct_RANLIB+y}
6964then :
6965  printf %s "(cached) " >&6
6966else case e in #(
6967  e) if test -n "$ac_ct_RANLIB"; then
6968  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  case $as_dir in #(((
6975    '') as_dir=./ ;;
6976    */) ;;
6977    *) as_dir=$as_dir/ ;;
6978  esac
6979    for ac_exec_ext in '' $ac_executable_extensions; do
6980  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6981    ac_cv_prog_ac_ct_RANLIB="ranlib"
6982    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986  done
6987IFS=$as_save_IFS
6988
6989fi ;;
6990esac
6991fi
6992ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6993if test -n "$ac_ct_RANLIB"; then
6994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6995printf "%s\n" "$ac_ct_RANLIB" >&6; }
6996else
6997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998printf "%s\n" "no" >&6; }
6999fi
7000
7001  if test "x$ac_ct_RANLIB" = x; then
7002    RANLIB=":"
7003  else
7004    case $cross_compiling:$ac_tool_warned in
7005yes:)
7006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008ac_tool_warned=yes ;;
7009esac
7010    RANLIB=$ac_ct_RANLIB
7011  fi
7012else
7013  RANLIB="$ac_cv_prog_RANLIB"
7014fi
7015
7016if test -n "$ac_tool_prefix"; then
7017  for ac_prog in ar
7018  do
7019    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022printf %s "checking for $ac_word... " >&6; }
7023if test ${ac_cv_prog_AR+y}
7024then :
7025  printf %s "(cached) " >&6
7026else case e in #(
7027  e) if test -n "$AR"; then
7028  ac_cv_prog_AR="$AR" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  case $as_dir in #(((
7035    '') as_dir=./ ;;
7036    */) ;;
7037    *) as_dir=$as_dir/ ;;
7038  esac
7039    for ac_exec_ext in '' $ac_executable_extensions; do
7040  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7041    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7042    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7043    break 2
7044  fi
7045done
7046  done
7047IFS=$as_save_IFS
7048
7049fi ;;
7050esac
7051fi
7052AR=$ac_cv_prog_AR
7053if test -n "$AR"; then
7054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7055printf "%s\n" "$AR" >&6; }
7056else
7057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058printf "%s\n" "no" >&6; }
7059fi
7060
7061
7062    test -n "$AR" && break
7063  done
7064fi
7065if test -z "$AR"; then
7066  ac_ct_AR=$AR
7067  for ac_prog in ar
7068do
7069  # Extract the first word of "$ac_prog", so it can be a program name with args.
7070set dummy $ac_prog; ac_word=$2
7071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072printf %s "checking for $ac_word... " >&6; }
7073if test ${ac_cv_prog_ac_ct_AR+y}
7074then :
7075  printf %s "(cached) " >&6
7076else case e in #(
7077  e) if test -n "$ac_ct_AR"; then
7078  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083  IFS=$as_save_IFS
7084  case $as_dir in #(((
7085    '') as_dir=./ ;;
7086    */) ;;
7087    *) as_dir=$as_dir/ ;;
7088  esac
7089    for ac_exec_ext in '' $ac_executable_extensions; do
7090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7091    ac_cv_prog_ac_ct_AR="$ac_prog"
7092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7093    break 2
7094  fi
7095done
7096  done
7097IFS=$as_save_IFS
7098
7099fi ;;
7100esac
7101fi
7102ac_ct_AR=$ac_cv_prog_ac_ct_AR
7103if test -n "$ac_ct_AR"; then
7104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7105printf "%s\n" "$ac_ct_AR" >&6; }
7106else
7107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108printf "%s\n" "no" >&6; }
7109fi
7110
7111
7112  test -n "$ac_ct_AR" && break
7113done
7114
7115  if test "x$ac_ct_AR" = x; then
7116    AR="false"
7117  else
7118    case $cross_compiling:$ac_tool_warned in
7119yes:)
7120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122ac_tool_warned=yes ;;
7123esac
7124    AR=$ac_ct_AR
7125  fi
7126fi
7127
7128: ${AR=ar}
7129
7130
7131
7132
7133
7134
7135# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7136# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7137# higher priority because that's what people were doing historically (setting
7138# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7139# variable obsoleted/removed.
7140
7141test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7142lt_ar_flags=$AR_FLAGS
7143
7144
7145
7146
7147
7148
7149# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7150# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7151
7152
7153
7154
7155
7156
7157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7158printf %s "checking for archiver @FILE support... " >&6; }
7159if test ${lt_cv_ar_at_file+y}
7160then :
7161  printf %s "(cached) " >&6
7162else case e in #(
7163  e) lt_cv_ar_at_file=no
7164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165/* end confdefs.h.  */
7166
7167int
7168main (void)
7169{
7170
7171  ;
7172  return 0;
7173}
7174_ACEOF
7175if ac_fn_c_try_compile "$LINENO"
7176then :
7177  echo conftest.$ac_objext > conftest.lst
7178      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7179      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7180  (eval $lt_ar_try) 2>&5
7181  ac_status=$?
7182  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183  test $ac_status = 0; }
7184      if test 0 -eq "$ac_status"; then
7185	# Ensure the archiver fails upon bogus file names.
7186	rm -f conftest.$ac_objext libconftest.a
7187	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7188  (eval $lt_ar_try) 2>&5
7189  ac_status=$?
7190  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191  test $ac_status = 0; }
7192	if test 0 -ne "$ac_status"; then
7193          lt_cv_ar_at_file=@
7194        fi
7195      fi
7196      rm -f conftest.* libconftest.a
7197
7198fi
7199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7200   ;;
7201esac
7202fi
7203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7204printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7205
7206if test no = "$lt_cv_ar_at_file"; then
7207  archiver_list_spec=
7208else
7209  archiver_list_spec=$lt_cv_ar_at_file
7210fi
7211
7212
7213
7214
7215
7216
7217
7218if test -n "$ac_tool_prefix"; then
7219  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7220set dummy ${ac_tool_prefix}strip; ac_word=$2
7221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222printf %s "checking for $ac_word... " >&6; }
7223if test ${ac_cv_prog_STRIP+y}
7224then :
7225  printf %s "(cached) " >&6
7226else case e in #(
7227  e) if test -n "$STRIP"; then
7228  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233  IFS=$as_save_IFS
7234  case $as_dir in #(((
7235    '') as_dir=./ ;;
7236    */) ;;
7237    *) as_dir=$as_dir/ ;;
7238  esac
7239    for ac_exec_ext in '' $ac_executable_extensions; do
7240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7241    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246  done
7247IFS=$as_save_IFS
7248
7249fi ;;
7250esac
7251fi
7252STRIP=$ac_cv_prog_STRIP
7253if test -n "$STRIP"; then
7254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7255printf "%s\n" "$STRIP" >&6; }
7256else
7257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258printf "%s\n" "no" >&6; }
7259fi
7260
7261
7262fi
7263if test -z "$ac_cv_prog_STRIP"; then
7264  ac_ct_STRIP=$STRIP
7265  # Extract the first word of "strip", so it can be a program name with args.
7266set dummy strip; ac_word=$2
7267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268printf %s "checking for $ac_word... " >&6; }
7269if test ${ac_cv_prog_ac_ct_STRIP+y}
7270then :
7271  printf %s "(cached) " >&6
7272else case e in #(
7273  e) if test -n "$ac_ct_STRIP"; then
7274  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  case $as_dir in #(((
7281    '') as_dir=./ ;;
7282    */) ;;
7283    *) as_dir=$as_dir/ ;;
7284  esac
7285    for ac_exec_ext in '' $ac_executable_extensions; do
7286  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7287    ac_cv_prog_ac_ct_STRIP="strip"
7288    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7289    break 2
7290  fi
7291done
7292  done
7293IFS=$as_save_IFS
7294
7295fi ;;
7296esac
7297fi
7298ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7299if test -n "$ac_ct_STRIP"; then
7300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7301printf "%s\n" "$ac_ct_STRIP" >&6; }
7302else
7303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304printf "%s\n" "no" >&6; }
7305fi
7306
7307  if test "x$ac_ct_STRIP" = x; then
7308    STRIP=":"
7309  else
7310    case $cross_compiling:$ac_tool_warned in
7311yes:)
7312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314ac_tool_warned=yes ;;
7315esac
7316    STRIP=$ac_ct_STRIP
7317  fi
7318else
7319  STRIP="$ac_cv_prog_STRIP"
7320fi
7321
7322test -z "$STRIP" && STRIP=:
7323
7324
7325
7326
7327
7328
7329
7330test -z "$RANLIB" && RANLIB=:
7331
7332
7333
7334
7335
7336
7337# Determine commands to create old-style static archives.
7338old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7339old_postinstall_cmds='chmod 644 $oldlib'
7340old_postuninstall_cmds=
7341
7342if test -n "$RANLIB"; then
7343  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7344  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7345fi
7346
7347case $host_os in
7348  darwin*)
7349    lock_old_archive_extraction=yes ;;
7350  *)
7351    lock_old_archive_extraction=no ;;
7352esac
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392# If no C compiler was specified, use CC.
7393LTCC=${LTCC-"$CC"}
7394
7395# If no C compiler flags were specified, use CFLAGS.
7396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7397
7398# Allow CC to be a program name with arguments.
7399compiler=$CC
7400
7401
7402# Check for command to grab the raw symbol name followed by C symbol from nm.
7403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7404printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7405if test ${lt_cv_sys_global_symbol_pipe+y}
7406then :
7407  printf %s "(cached) " >&6
7408else case e in #(
7409  e)
7410# These are sane defaults that work on at least a few old systems.
7411# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7412
7413# Character class describing NM global symbol codes.
7414symcode='[BCDEGRST]'
7415
7416# Regexp to match symbols that can be accessed directly from C.
7417sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7418
7419# Define system-specific variables.
7420case $host_os in
7421aix*)
7422  symcode='[BCDT]'
7423  ;;
7424cygwin* | mingw* | windows* | pw32* | cegcc*)
7425  symcode='[ABCDGISTW]'
7426  ;;
7427hpux*)
7428  if test ia64 = "$host_cpu"; then
7429    symcode='[ABCDEGRST]'
7430  fi
7431  ;;
7432irix* | nonstopux*)
7433  symcode='[BCDEGRST]'
7434  ;;
7435osf*)
7436  symcode='[BCDEGQRST]'
7437  ;;
7438solaris*)
7439  symcode='[BCDRT]'
7440  ;;
7441sco3.2v5*)
7442  symcode='[DT]'
7443  ;;
7444sysv4.2uw2*)
7445  symcode='[DT]'
7446  ;;
7447sysv5* | sco5v6* | unixware* | OpenUNIX*)
7448  symcode='[ABDT]'
7449  ;;
7450sysv4)
7451  symcode='[DFNSTU]'
7452  ;;
7453esac
7454
7455# If we're using GNU nm, then use its standard symbol codes.
7456case `$NM -V 2>&1` in
7457*GNU* | *'with BFD'*)
7458  symcode='[ABCDGIRSTW]' ;;
7459esac
7460
7461if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7462  # Gets list of data symbols to import.
7463  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7464  # Adjust the below global symbol transforms to fixup imported variables.
7465  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7466  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7467  lt_c_name_lib_hook="\
7468  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7469  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7470else
7471  # Disable hooks by default.
7472  lt_cv_sys_global_symbol_to_import=
7473  lt_cdecl_hook=
7474  lt_c_name_hook=
7475  lt_c_name_lib_hook=
7476fi
7477
7478# Transform an extracted symbol line into a proper C declaration.
7479# Some systems (esp. on ia64) link data and code symbols differently,
7480# so use this general approach.
7481lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7482$lt_cdecl_hook\
7483" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7484" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7485
7486# Transform an extracted symbol line into symbol name and symbol address
7487lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7488$lt_c_name_hook\
7489" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7490" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7491
7492# Transform an extracted symbol line into symbol name with lib prefix and
7493# symbol address.
7494lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7495$lt_c_name_lib_hook\
7496" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7497" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7498" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7499
7500# Handle CRLF in mingw tool chain
7501opt_cr=
7502case $build_os in
7503mingw* | windows*)
7504  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7505  ;;
7506esac
7507
7508# Try without a prefix underscore, then with it.
7509for ac_symprfx in "" "_"; do
7510
7511  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7512  symxfrm="\\1 $ac_symprfx\\2 \\2"
7513
7514  # Write the raw and C identifiers.
7515  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7516    # Fake it for dumpbin and say T for any non-static function,
7517    # D for any global variable and I for any imported variable.
7518    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7519    # which start with @ or ?.
7520    lt_cv_sys_global_symbol_pipe="$AWK '"\
7521"     {last_section=section; section=\$ 3};"\
7522"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7523"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7524"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7525"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7526"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7527"     \$ 0!~/External *\|/{next};"\
7528"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7529"     {if(hide[section]) next};"\
7530"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7531"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7532"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7533"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7534"     ' prfx=^$ac_symprfx"
7535  else
7536    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7537  fi
7538  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7539
7540  # Check to see that the pipe works correctly.
7541  pipe_works=no
7542
7543  rm -f conftest*
7544  cat > conftest.$ac_ext <<_LT_EOF
7545#ifdef __cplusplus
7546extern "C" {
7547#endif
7548char nm_test_var;
7549void nm_test_func(void);
7550void nm_test_func(void){}
7551#ifdef __cplusplus
7552}
7553#endif
7554int main(void){nm_test_var='a';nm_test_func();return(0);}
7555_LT_EOF
7556
7557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558  (eval $ac_compile) 2>&5
7559  ac_status=$?
7560  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561  test $ac_status = 0; }; then
7562    # Now try to grab the symbols.
7563    nlist=conftest.nm
7564    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7565    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7566      # Try sorting and uniquifying the output.
7567      if sort "$nlist" | uniq > "$nlist"T; then
7568	mv -f "$nlist"T "$nlist"
7569      else
7570	rm -f "$nlist"T
7571      fi
7572
7573      # Make sure that we snagged all the symbols we need.
7574      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7575	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7576	  cat <<_LT_EOF > conftest.$ac_ext
7577/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7578#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7579/* DATA imports from DLLs on WIN32 can't be const, because runtime
7580   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7581# define LT_DLSYM_CONST
7582#elif defined __osf__
7583/* This system does not cope well with relocations in const data.  */
7584# define LT_DLSYM_CONST
7585#else
7586# define LT_DLSYM_CONST const
7587#endif
7588
7589#ifdef __cplusplus
7590extern "C" {
7591#endif
7592
7593_LT_EOF
7594	  # Now generate the symbol file.
7595	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7596
7597	  cat <<_LT_EOF >> conftest.$ac_ext
7598
7599/* The mapping between symbol names and symbols.  */
7600LT_DLSYM_CONST struct {
7601  const char *name;
7602  void       *address;
7603}
7604lt__PROGRAM__LTX_preloaded_symbols[] =
7605{
7606  { "@PROGRAM@", (void *) 0 },
7607_LT_EOF
7608	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7609	  cat <<\_LT_EOF >> conftest.$ac_ext
7610  {0, (void *) 0}
7611};
7612
7613/* This works around a problem in FreeBSD linker */
7614#ifdef FREEBSD_WORKAROUND
7615static const void *lt_preloaded_setup() {
7616  return lt__PROGRAM__LTX_preloaded_symbols;
7617}
7618#endif
7619
7620#ifdef __cplusplus
7621}
7622#endif
7623_LT_EOF
7624	  # Now try linking the two files.
7625	  mv conftest.$ac_objext conftstm.$ac_objext
7626	  lt_globsym_save_LIBS=$LIBS
7627	  lt_globsym_save_CFLAGS=$CFLAGS
7628	  LIBS=conftstm.$ac_objext
7629	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7630	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7631  (eval $ac_link) 2>&5
7632  ac_status=$?
7633  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7635	    pipe_works=yes
7636	  fi
7637	  LIBS=$lt_globsym_save_LIBS
7638	  CFLAGS=$lt_globsym_save_CFLAGS
7639	else
7640	  echo "cannot find nm_test_func in $nlist" >&5
7641	fi
7642      else
7643	echo "cannot find nm_test_var in $nlist" >&5
7644      fi
7645    else
7646      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7647    fi
7648  else
7649    echo "$progname: failed program was:" >&5
7650    cat conftest.$ac_ext >&5
7651  fi
7652  rm -rf conftest* conftst*
7653
7654  # Do not use the global_symbol_pipe unless it works.
7655  if test yes = "$pipe_works"; then
7656    break
7657  else
7658    lt_cv_sys_global_symbol_pipe=
7659  fi
7660done
7661 ;;
7662esac
7663fi
7664
7665if test -z "$lt_cv_sys_global_symbol_pipe"; then
7666  lt_cv_sys_global_symbol_to_cdecl=
7667fi
7668if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7670printf "%s\n" "failed" >&6; }
7671else
7672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7673printf "%s\n" "ok" >&6; }
7674fi
7675
7676# Response file support.
7677if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7678  nm_file_list_spec='@'
7679elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7680  nm_file_list_spec='@'
7681fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7720printf %s "checking for sysroot... " >&6; }
7721
7722# Check whether --with-sysroot was given.
7723if test ${with_sysroot+y}
7724then :
7725  withval=$with_sysroot;
7726else case e in #(
7727  e) with_sysroot=no ;;
7728esac
7729fi
7730
7731
7732lt_sysroot=
7733case $with_sysroot in #(
7734 yes)
7735   if test yes = "$GCC"; then
7736     # Trim trailing / since we'll always append absolute paths and we want
7737     # to avoid //, if only for less confusing output for the user.
7738     lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7739   fi
7740   ;; #(
7741 /*)
7742   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7743   ;; #(
7744 no|'')
7745   ;; #(
7746 *)
7747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7748printf "%s\n" "$with_sysroot" >&6; }
7749   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7750   ;;
7751esac
7752
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7754printf "%s\n" "${lt_sysroot:-no}" >&6; }
7755
7756
7757
7758
7759
7760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7761printf %s "checking for a working dd... " >&6; }
7762if test ${ac_cv_path_lt_DD+y}
7763then :
7764  printf %s "(cached) " >&6
7765else case e in #(
7766  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7767cat conftest.i conftest.i >conftest2.i
7768: ${lt_DD:=$DD}
7769if test -z "$lt_DD"; then
7770  ac_path_lt_DD_found=false
7771  # Loop through the user's path and test for each of PROGNAME-LIST
7772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775  IFS=$as_save_IFS
7776  case $as_dir in #(((
7777    '') as_dir=./ ;;
7778    */) ;;
7779    *) as_dir=$as_dir/ ;;
7780  esac
7781    for ac_prog in dd
7782   do
7783    for ac_exec_ext in '' $ac_executable_extensions; do
7784      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7785      as_fn_executable_p "$ac_path_lt_DD" || continue
7786if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7787  cmp -s conftest.i conftest.out \
7788  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7789fi
7790      $ac_path_lt_DD_found && break 3
7791    done
7792  done
7793  done
7794IFS=$as_save_IFS
7795  if test -z "$ac_cv_path_lt_DD"; then
7796    :
7797  fi
7798else
7799  ac_cv_path_lt_DD=$lt_DD
7800fi
7801
7802rm -f conftest.i conftest2.i conftest.out ;;
7803esac
7804fi
7805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7806printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7807
7808
7809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7810printf %s "checking how to truncate binary pipes... " >&6; }
7811if test ${lt_cv_truncate_bin+y}
7812then :
7813  printf %s "(cached) " >&6
7814else case e in #(
7815  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7816cat conftest.i conftest.i >conftest2.i
7817lt_cv_truncate_bin=
7818if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7819  cmp -s conftest.i conftest.out \
7820  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7821fi
7822rm -f conftest.i conftest2.i conftest.out
7823test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7824esac
7825fi
7826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7827printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7828
7829
7830
7831
7832
7833
7834
7835# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7836func_cc_basename ()
7837{
7838    for cc_temp in $*""; do
7839      case $cc_temp in
7840        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7841        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7842        \-*) ;;
7843        *) break;;
7844      esac
7845    done
7846    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7847}
7848
7849# Check whether --enable-libtool-lock was given.
7850if test ${enable_libtool_lock+y}
7851then :
7852  enableval=$enable_libtool_lock;
7853fi
7854
7855test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7856
7857# Some flags need to be propagated to the compiler or linker for good
7858# libtool support.
7859case $host in
7860ia64-*-hpux*)
7861  # Find out what ABI is being produced by ac_compile, and set mode
7862  # options accordingly.
7863  echo 'int i;' > conftest.$ac_ext
7864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865  (eval $ac_compile) 2>&5
7866  ac_status=$?
7867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868  test $ac_status = 0; }; then
7869    case `$FILECMD conftest.$ac_objext` in
7870      *ELF-32*)
7871	HPUX_IA64_MODE=32
7872	;;
7873      *ELF-64*)
7874	HPUX_IA64_MODE=64
7875	;;
7876    esac
7877  fi
7878  rm -rf conftest*
7879  ;;
7880*-*-irix6*)
7881  # Find out what ABI is being produced by ac_compile, and set linker
7882  # options accordingly.
7883  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7884  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885  (eval $ac_compile) 2>&5
7886  ac_status=$?
7887  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888  test $ac_status = 0; }; then
7889    if test yes = "$lt_cv_prog_gnu_ld"; then
7890      case `$FILECMD conftest.$ac_objext` in
7891	*32-bit*)
7892	  LD="${LD-ld} -melf32bsmip"
7893	  ;;
7894	*N32*)
7895	  LD="${LD-ld} -melf32bmipn32"
7896	  ;;
7897	*64-bit*)
7898	  LD="${LD-ld} -melf64bmip"
7899	;;
7900      esac
7901    else
7902      case `$FILECMD conftest.$ac_objext` in
7903	*32-bit*)
7904	  LD="${LD-ld} -32"
7905	  ;;
7906	*N32*)
7907	  LD="${LD-ld} -n32"
7908	  ;;
7909	*64-bit*)
7910	  LD="${LD-ld} -64"
7911	  ;;
7912      esac
7913    fi
7914  fi
7915  rm -rf conftest*
7916  ;;
7917
7918mips64*-*linux*)
7919  # Find out what ABI is being produced by ac_compile, and set linker
7920  # options accordingly.
7921  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7922  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923  (eval $ac_compile) 2>&5
7924  ac_status=$?
7925  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926  test $ac_status = 0; }; then
7927    emul=elf
7928    case `$FILECMD conftest.$ac_objext` in
7929      *32-bit*)
7930	emul="${emul}32"
7931	;;
7932      *64-bit*)
7933	emul="${emul}64"
7934	;;
7935    esac
7936    case `$FILECMD conftest.$ac_objext` in
7937      *MSB*)
7938	emul="${emul}btsmip"
7939	;;
7940      *LSB*)
7941	emul="${emul}ltsmip"
7942	;;
7943    esac
7944    case `$FILECMD conftest.$ac_objext` in
7945      *N32*)
7946	emul="${emul}n32"
7947	;;
7948    esac
7949    LD="${LD-ld} -m $emul"
7950  fi
7951  rm -rf conftest*
7952  ;;
7953
7954x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7955s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7956  # Find out what ABI is being produced by ac_compile, and set linker
7957  # options accordingly.  Note that the listed cases only cover the
7958  # situations where additional linker options are needed (such as when
7959  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7960  # vice versa); the common cases where no linker options are needed do
7961  # not appear in the list.
7962  echo 'int i;' > conftest.$ac_ext
7963  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7964  (eval $ac_compile) 2>&5
7965  ac_status=$?
7966  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7967  test $ac_status = 0; }; then
7968    case `$FILECMD conftest.o` in
7969      *32-bit*)
7970	case $host in
7971	  x86_64-*kfreebsd*-gnu)
7972	    LD="${LD-ld} -m elf_i386_fbsd"
7973	    ;;
7974	  x86_64-*linux*|x86_64-gnu*)
7975	    case `$FILECMD conftest.o` in
7976	      *x86-64*)
7977		LD="${LD-ld} -m elf32_x86_64"
7978		;;
7979	      *)
7980		LD="${LD-ld} -m elf_i386"
7981		;;
7982	    esac
7983	    ;;
7984	  powerpc64le-*linux*)
7985	    LD="${LD-ld} -m elf32lppclinux"
7986	    ;;
7987	  powerpc64-*linux*)
7988	    LD="${LD-ld} -m elf32ppclinux"
7989	    ;;
7990	  s390x-*linux*)
7991	    LD="${LD-ld} -m elf_s390"
7992	    ;;
7993	  sparc64-*linux*)
7994	    LD="${LD-ld} -m elf32_sparc"
7995	    ;;
7996	esac
7997	;;
7998      *64-bit*)
7999	case $host in
8000	  x86_64-*kfreebsd*-gnu)
8001	    LD="${LD-ld} -m elf_x86_64_fbsd"
8002	    ;;
8003	  x86_64-*linux*|x86_64-gnu*)
8004	    LD="${LD-ld} -m elf_x86_64"
8005	    ;;
8006	  powerpcle-*linux*)
8007	    LD="${LD-ld} -m elf64lppc"
8008	    ;;
8009	  powerpc-*linux*)
8010	    LD="${LD-ld} -m elf64ppc"
8011	    ;;
8012	  s390*-*linux*|s390*-*tpf*)
8013	    LD="${LD-ld} -m elf64_s390"
8014	    ;;
8015	  sparc*-*linux*)
8016	    LD="${LD-ld} -m elf64_sparc"
8017	    ;;
8018	esac
8019	;;
8020    esac
8021  fi
8022  rm -rf conftest*
8023  ;;
8024
8025*-*-sco3.2v5*)
8026  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8027  SAVE_CFLAGS=$CFLAGS
8028  CFLAGS="$CFLAGS -belf"
8029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8030printf %s "checking whether the C compiler needs -belf... " >&6; }
8031if test ${lt_cv_cc_needs_belf+y}
8032then :
8033  printf %s "(cached) " >&6
8034else case e in #(
8035  e) ac_ext=c
8036ac_cpp='$CPP $CPPFLAGS'
8037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h.  */
8043
8044int
8045main (void)
8046{
8047
8048  ;
8049  return 0;
8050}
8051_ACEOF
8052if ac_fn_c_try_link "$LINENO"
8053then :
8054  lt_cv_cc_needs_belf=yes
8055else case e in #(
8056  e) lt_cv_cc_needs_belf=no ;;
8057esac
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.beam \
8060    conftest$ac_exeext conftest.$ac_ext
8061     ac_ext=c
8062ac_cpp='$CPP $CPPFLAGS'
8063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066 ;;
8067esac
8068fi
8069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8070printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8071  if test yes != "$lt_cv_cc_needs_belf"; then
8072    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8073    CFLAGS=$SAVE_CFLAGS
8074  fi
8075  ;;
8076*-*solaris*)
8077  # Find out what ABI is being produced by ac_compile, and set linker
8078  # options accordingly.
8079  echo 'int i;' > conftest.$ac_ext
8080  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8081  (eval $ac_compile) 2>&5
8082  ac_status=$?
8083  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084  test $ac_status = 0; }; then
8085    case `$FILECMD conftest.o` in
8086    *64-bit*)
8087      case $lt_cv_prog_gnu_ld in
8088      yes*)
8089        case $host in
8090        i?86-*-solaris*|x86_64-*-solaris*)
8091          LD="${LD-ld} -m elf_x86_64"
8092          ;;
8093        sparc*-*-solaris*)
8094          LD="${LD-ld} -m elf64_sparc"
8095          ;;
8096        esac
8097        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8098        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8099          LD=${LD-ld}_sol2
8100        fi
8101        ;;
8102      *)
8103	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8104	  LD="${LD-ld} -64"
8105	fi
8106	;;
8107      esac
8108      ;;
8109    esac
8110  fi
8111  rm -rf conftest*
8112  ;;
8113esac
8114
8115need_locks=$enable_libtool_lock
8116
8117if test -n "$ac_tool_prefix"; then
8118  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8119set dummy ${ac_tool_prefix}mt; ac_word=$2
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121printf %s "checking for $ac_word... " >&6; }
8122if test ${ac_cv_prog_MANIFEST_TOOL+y}
8123then :
8124  printf %s "(cached) " >&6
8125else case e in #(
8126  e) if test -n "$MANIFEST_TOOL"; then
8127  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132  IFS=$as_save_IFS
8133  case $as_dir in #(((
8134    '') as_dir=./ ;;
8135    */) ;;
8136    *) as_dir=$as_dir/ ;;
8137  esac
8138    for ac_exec_ext in '' $ac_executable_extensions; do
8139  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8140    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8141    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142    break 2
8143  fi
8144done
8145  done
8146IFS=$as_save_IFS
8147
8148fi ;;
8149esac
8150fi
8151MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8152if test -n "$MANIFEST_TOOL"; then
8153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8154printf "%s\n" "$MANIFEST_TOOL" >&6; }
8155else
8156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157printf "%s\n" "no" >&6; }
8158fi
8159
8160
8161fi
8162if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8163  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8164  # Extract the first word of "mt", so it can be a program name with args.
8165set dummy mt; ac_word=$2
8166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167printf %s "checking for $ac_word... " >&6; }
8168if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8169then :
8170  printf %s "(cached) " >&6
8171else case e in #(
8172  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8173  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8174else
8175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178  IFS=$as_save_IFS
8179  case $as_dir in #(((
8180    '') as_dir=./ ;;
8181    */) ;;
8182    *) as_dir=$as_dir/ ;;
8183  esac
8184    for ac_exec_ext in '' $ac_executable_extensions; do
8185  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8186    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8187    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8188    break 2
8189  fi
8190done
8191  done
8192IFS=$as_save_IFS
8193
8194fi ;;
8195esac
8196fi
8197ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8198if test -n "$ac_ct_MANIFEST_TOOL"; then
8199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8200printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8201else
8202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203printf "%s\n" "no" >&6; }
8204fi
8205
8206  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8207    MANIFEST_TOOL=":"
8208  else
8209    case $cross_compiling:$ac_tool_warned in
8210yes:)
8211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213ac_tool_warned=yes ;;
8214esac
8215    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8216  fi
8217else
8218  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8219fi
8220
8221test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8223printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8224if test ${lt_cv_path_manifest_tool+y}
8225then :
8226  printf %s "(cached) " >&6
8227else case e in #(
8228  e) lt_cv_path_manifest_tool=no
8229  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8230  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8231  cat conftest.err >&5
8232  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8233    lt_cv_path_manifest_tool=yes
8234  fi
8235  rm -f conftest* ;;
8236esac
8237fi
8238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8239printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8240if test yes != "$lt_cv_path_manifest_tool"; then
8241  MANIFEST_TOOL=:
8242fi
8243
8244
8245
8246
8247
8248
8249  case $host_os in
8250    rhapsody* | darwin*)
8251    if test -n "$ac_tool_prefix"; then
8252  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8253set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255printf %s "checking for $ac_word... " >&6; }
8256if test ${ac_cv_prog_DSYMUTIL+y}
8257then :
8258  printf %s "(cached) " >&6
8259else case e in #(
8260  e) if test -n "$DSYMUTIL"; then
8261  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8262else
8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266  IFS=$as_save_IFS
8267  case $as_dir in #(((
8268    '') as_dir=./ ;;
8269    */) ;;
8270    *) as_dir=$as_dir/ ;;
8271  esac
8272    for ac_exec_ext in '' $ac_executable_extensions; do
8273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8274    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8276    break 2
8277  fi
8278done
8279  done
8280IFS=$as_save_IFS
8281
8282fi ;;
8283esac
8284fi
8285DSYMUTIL=$ac_cv_prog_DSYMUTIL
8286if test -n "$DSYMUTIL"; then
8287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8288printf "%s\n" "$DSYMUTIL" >&6; }
8289else
8290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291printf "%s\n" "no" >&6; }
8292fi
8293
8294
8295fi
8296if test -z "$ac_cv_prog_DSYMUTIL"; then
8297  ac_ct_DSYMUTIL=$DSYMUTIL
8298  # Extract the first word of "dsymutil", so it can be a program name with args.
8299set dummy dsymutil; ac_word=$2
8300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301printf %s "checking for $ac_word... " >&6; }
8302if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8303then :
8304  printf %s "(cached) " >&6
8305else case e in #(
8306  e) if test -n "$ac_ct_DSYMUTIL"; then
8307  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312  IFS=$as_save_IFS
8313  case $as_dir in #(((
8314    '') as_dir=./ ;;
8315    */) ;;
8316    *) as_dir=$as_dir/ ;;
8317  esac
8318    for ac_exec_ext in '' $ac_executable_extensions; do
8319  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8321    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322    break 2
8323  fi
8324done
8325  done
8326IFS=$as_save_IFS
8327
8328fi ;;
8329esac
8330fi
8331ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8332if test -n "$ac_ct_DSYMUTIL"; then
8333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8334printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8335else
8336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337printf "%s\n" "no" >&6; }
8338fi
8339
8340  if test "x$ac_ct_DSYMUTIL" = x; then
8341    DSYMUTIL=":"
8342  else
8343    case $cross_compiling:$ac_tool_warned in
8344yes:)
8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347ac_tool_warned=yes ;;
8348esac
8349    DSYMUTIL=$ac_ct_DSYMUTIL
8350  fi
8351else
8352  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8353fi
8354
8355    if test -n "$ac_tool_prefix"; then
8356  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8357set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359printf %s "checking for $ac_word... " >&6; }
8360if test ${ac_cv_prog_NMEDIT+y}
8361then :
8362  printf %s "(cached) " >&6
8363else case e in #(
8364  e) if test -n "$NMEDIT"; then
8365  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8366else
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370  IFS=$as_save_IFS
8371  case $as_dir in #(((
8372    '') as_dir=./ ;;
8373    */) ;;
8374    *) as_dir=$as_dir/ ;;
8375  esac
8376    for ac_exec_ext in '' $ac_executable_extensions; do
8377  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8378    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8379    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8380    break 2
8381  fi
8382done
8383  done
8384IFS=$as_save_IFS
8385
8386fi ;;
8387esac
8388fi
8389NMEDIT=$ac_cv_prog_NMEDIT
8390if test -n "$NMEDIT"; then
8391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8392printf "%s\n" "$NMEDIT" >&6; }
8393else
8394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395printf "%s\n" "no" >&6; }
8396fi
8397
8398
8399fi
8400if test -z "$ac_cv_prog_NMEDIT"; then
8401  ac_ct_NMEDIT=$NMEDIT
8402  # Extract the first word of "nmedit", so it can be a program name with args.
8403set dummy nmedit; ac_word=$2
8404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405printf %s "checking for $ac_word... " >&6; }
8406if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8407then :
8408  printf %s "(cached) " >&6
8409else case e in #(
8410  e) if test -n "$ac_ct_NMEDIT"; then
8411  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416  IFS=$as_save_IFS
8417  case $as_dir in #(((
8418    '') as_dir=./ ;;
8419    */) ;;
8420    *) as_dir=$as_dir/ ;;
8421  esac
8422    for ac_exec_ext in '' $ac_executable_extensions; do
8423  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8424    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8425    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8426    break 2
8427  fi
8428done
8429  done
8430IFS=$as_save_IFS
8431
8432fi ;;
8433esac
8434fi
8435ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8436if test -n "$ac_ct_NMEDIT"; then
8437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8438printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8439else
8440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441printf "%s\n" "no" >&6; }
8442fi
8443
8444  if test "x$ac_ct_NMEDIT" = x; then
8445    NMEDIT=":"
8446  else
8447    case $cross_compiling:$ac_tool_warned in
8448yes:)
8449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8450printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8451ac_tool_warned=yes ;;
8452esac
8453    NMEDIT=$ac_ct_NMEDIT
8454  fi
8455else
8456  NMEDIT="$ac_cv_prog_NMEDIT"
8457fi
8458
8459    if test -n "$ac_tool_prefix"; then
8460  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8461set dummy ${ac_tool_prefix}lipo; ac_word=$2
8462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463printf %s "checking for $ac_word... " >&6; }
8464if test ${ac_cv_prog_LIPO+y}
8465then :
8466  printf %s "(cached) " >&6
8467else case e in #(
8468  e) if test -n "$LIPO"; then
8469  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8470else
8471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH
8473do
8474  IFS=$as_save_IFS
8475  case $as_dir in #(((
8476    '') as_dir=./ ;;
8477    */) ;;
8478    *) as_dir=$as_dir/ ;;
8479  esac
8480    for ac_exec_ext in '' $ac_executable_extensions; do
8481  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8482    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8483    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8484    break 2
8485  fi
8486done
8487  done
8488IFS=$as_save_IFS
8489
8490fi ;;
8491esac
8492fi
8493LIPO=$ac_cv_prog_LIPO
8494if test -n "$LIPO"; then
8495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8496printf "%s\n" "$LIPO" >&6; }
8497else
8498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499printf "%s\n" "no" >&6; }
8500fi
8501
8502
8503fi
8504if test -z "$ac_cv_prog_LIPO"; then
8505  ac_ct_LIPO=$LIPO
8506  # Extract the first word of "lipo", so it can be a program name with args.
8507set dummy lipo; ac_word=$2
8508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509printf %s "checking for $ac_word... " >&6; }
8510if test ${ac_cv_prog_ac_ct_LIPO+y}
8511then :
8512  printf %s "(cached) " >&6
8513else case e in #(
8514  e) if test -n "$ac_ct_LIPO"; then
8515  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8516else
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520  IFS=$as_save_IFS
8521  case $as_dir in #(((
8522    '') as_dir=./ ;;
8523    */) ;;
8524    *) as_dir=$as_dir/ ;;
8525  esac
8526    for ac_exec_ext in '' $ac_executable_extensions; do
8527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8528    ac_cv_prog_ac_ct_LIPO="lipo"
8529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8530    break 2
8531  fi
8532done
8533  done
8534IFS=$as_save_IFS
8535
8536fi ;;
8537esac
8538fi
8539ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8540if test -n "$ac_ct_LIPO"; then
8541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8542printf "%s\n" "$ac_ct_LIPO" >&6; }
8543else
8544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545printf "%s\n" "no" >&6; }
8546fi
8547
8548  if test "x$ac_ct_LIPO" = x; then
8549    LIPO=":"
8550  else
8551    case $cross_compiling:$ac_tool_warned in
8552yes:)
8553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8554printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8555ac_tool_warned=yes ;;
8556esac
8557    LIPO=$ac_ct_LIPO
8558  fi
8559else
8560  LIPO="$ac_cv_prog_LIPO"
8561fi
8562
8563    if test -n "$ac_tool_prefix"; then
8564  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8565set dummy ${ac_tool_prefix}otool; ac_word=$2
8566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567printf %s "checking for $ac_word... " >&6; }
8568if test ${ac_cv_prog_OTOOL+y}
8569then :
8570  printf %s "(cached) " >&6
8571else case e in #(
8572  e) if test -n "$OTOOL"; then
8573  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8574else
8575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576for as_dir in $PATH
8577do
8578  IFS=$as_save_IFS
8579  case $as_dir in #(((
8580    '') as_dir=./ ;;
8581    */) ;;
8582    *) as_dir=$as_dir/ ;;
8583  esac
8584    for ac_exec_ext in '' $ac_executable_extensions; do
8585  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8586    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8587    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8588    break 2
8589  fi
8590done
8591  done
8592IFS=$as_save_IFS
8593
8594fi ;;
8595esac
8596fi
8597OTOOL=$ac_cv_prog_OTOOL
8598if test -n "$OTOOL"; then
8599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8600printf "%s\n" "$OTOOL" >&6; }
8601else
8602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603printf "%s\n" "no" >&6; }
8604fi
8605
8606
8607fi
8608if test -z "$ac_cv_prog_OTOOL"; then
8609  ac_ct_OTOOL=$OTOOL
8610  # Extract the first word of "otool", so it can be a program name with args.
8611set dummy otool; ac_word=$2
8612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613printf %s "checking for $ac_word... " >&6; }
8614if test ${ac_cv_prog_ac_ct_OTOOL+y}
8615then :
8616  printf %s "(cached) " >&6
8617else case e in #(
8618  e) if test -n "$ac_ct_OTOOL"; then
8619  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8620else
8621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622for as_dir in $PATH
8623do
8624  IFS=$as_save_IFS
8625  case $as_dir in #(((
8626    '') as_dir=./ ;;
8627    */) ;;
8628    *) as_dir=$as_dir/ ;;
8629  esac
8630    for ac_exec_ext in '' $ac_executable_extensions; do
8631  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8632    ac_cv_prog_ac_ct_OTOOL="otool"
8633    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8634    break 2
8635  fi
8636done
8637  done
8638IFS=$as_save_IFS
8639
8640fi ;;
8641esac
8642fi
8643ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8644if test -n "$ac_ct_OTOOL"; then
8645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8646printf "%s\n" "$ac_ct_OTOOL" >&6; }
8647else
8648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649printf "%s\n" "no" >&6; }
8650fi
8651
8652  if test "x$ac_ct_OTOOL" = x; then
8653    OTOOL=":"
8654  else
8655    case $cross_compiling:$ac_tool_warned in
8656yes:)
8657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8658printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8659ac_tool_warned=yes ;;
8660esac
8661    OTOOL=$ac_ct_OTOOL
8662  fi
8663else
8664  OTOOL="$ac_cv_prog_OTOOL"
8665fi
8666
8667    if test -n "$ac_tool_prefix"; then
8668  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8669set dummy ${ac_tool_prefix}otool64; ac_word=$2
8670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671printf %s "checking for $ac_word... " >&6; }
8672if test ${ac_cv_prog_OTOOL64+y}
8673then :
8674  printf %s "(cached) " >&6
8675else case e in #(
8676  e) if test -n "$OTOOL64"; then
8677  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682  IFS=$as_save_IFS
8683  case $as_dir in #(((
8684    '') as_dir=./ ;;
8685    */) ;;
8686    *) as_dir=$as_dir/ ;;
8687  esac
8688    for ac_exec_ext in '' $ac_executable_extensions; do
8689  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8690    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8691    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8692    break 2
8693  fi
8694done
8695  done
8696IFS=$as_save_IFS
8697
8698fi ;;
8699esac
8700fi
8701OTOOL64=$ac_cv_prog_OTOOL64
8702if test -n "$OTOOL64"; then
8703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8704printf "%s\n" "$OTOOL64" >&6; }
8705else
8706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707printf "%s\n" "no" >&6; }
8708fi
8709
8710
8711fi
8712if test -z "$ac_cv_prog_OTOOL64"; then
8713  ac_ct_OTOOL64=$OTOOL64
8714  # Extract the first word of "otool64", so it can be a program name with args.
8715set dummy otool64; ac_word=$2
8716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8717printf %s "checking for $ac_word... " >&6; }
8718if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8719then :
8720  printf %s "(cached) " >&6
8721else case e in #(
8722  e) if test -n "$ac_ct_OTOOL64"; then
8723  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8724else
8725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726for as_dir in $PATH
8727do
8728  IFS=$as_save_IFS
8729  case $as_dir in #(((
8730    '') as_dir=./ ;;
8731    */) ;;
8732    *) as_dir=$as_dir/ ;;
8733  esac
8734    for ac_exec_ext in '' $ac_executable_extensions; do
8735  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8736    ac_cv_prog_ac_ct_OTOOL64="otool64"
8737    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8738    break 2
8739  fi
8740done
8741  done
8742IFS=$as_save_IFS
8743
8744fi ;;
8745esac
8746fi
8747ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8748if test -n "$ac_ct_OTOOL64"; then
8749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8750printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8751else
8752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753printf "%s\n" "no" >&6; }
8754fi
8755
8756  if test "x$ac_ct_OTOOL64" = x; then
8757    OTOOL64=":"
8758  else
8759    case $cross_compiling:$ac_tool_warned in
8760yes:)
8761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8762printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8763ac_tool_warned=yes ;;
8764esac
8765    OTOOL64=$ac_ct_OTOOL64
8766  fi
8767else
8768  OTOOL64="$ac_cv_prog_OTOOL64"
8769fi
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8798printf %s "checking for -single_module linker flag... " >&6; }
8799if test ${lt_cv_apple_cc_single_mod+y}
8800then :
8801  printf %s "(cached) " >&6
8802else case e in #(
8803  e) lt_cv_apple_cc_single_mod=no
8804      if test -z "$LT_MULTI_MODULE"; then
8805	# By default we will add the -single_module flag. You can override
8806	# by either setting the environment variable LT_MULTI_MODULE
8807	# non-empty at configure time, or by adding -multi_module to the
8808	# link flags.
8809	rm -rf libconftest.dylib*
8810	echo "int foo(void){return 1;}" > conftest.c
8811	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8812-dynamiclib -Wl,-single_module conftest.c" >&5
8813	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8814	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8815        _lt_result=$?
8816	# If there is a non-empty error log, and "single_module"
8817	# appears in it, assume the flag caused a linker warning
8818        if test -s conftest.err && $GREP single_module conftest.err; then
8819	  cat conftest.err >&5
8820	# Otherwise, if the output was created with a 0 exit code from
8821	# the compiler, it worked.
8822	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8823	  lt_cv_apple_cc_single_mod=yes
8824	else
8825	  cat conftest.err >&5
8826	fi
8827	rm -rf libconftest.dylib*
8828	rm -f conftest.*
8829      fi ;;
8830esac
8831fi
8832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8833printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8834
8835    # Feature test to disable chained fixups since it is not
8836    # compatible with '-undefined dynamic_lookup'
8837    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8838printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8839if test ${lt_cv_support_no_fixup_chains+y}
8840then :
8841  printf %s "(cached) " >&6
8842else case e in #(
8843  e)  save_LDFLAGS=$LDFLAGS
8844        LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8845        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h.  */
8847
8848int
8849main (void)
8850{
8851
8852  ;
8853  return 0;
8854}
8855_ACEOF
8856if ac_fn_c_try_link "$LINENO"
8857then :
8858  lt_cv_support_no_fixup_chains=yes
8859else case e in #(
8860  e) lt_cv_support_no_fixup_chains=no
8861         ;;
8862esac
8863fi
8864rm -f core conftest.err conftest.$ac_objext conftest.beam \
8865    conftest$ac_exeext conftest.$ac_ext
8866        LDFLAGS=$save_LDFLAGS
8867
8868     ;;
8869esac
8870fi
8871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8872printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8873
8874    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8875printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8876if test ${lt_cv_ld_exported_symbols_list+y}
8877then :
8878  printf %s "(cached) " >&6
8879else case e in #(
8880  e) lt_cv_ld_exported_symbols_list=no
8881      save_LDFLAGS=$LDFLAGS
8882      echo "_main" > conftest.sym
8883      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8884      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885/* end confdefs.h.  */
8886
8887int
8888main (void)
8889{
8890
8891  ;
8892  return 0;
8893}
8894_ACEOF
8895if ac_fn_c_try_link "$LINENO"
8896then :
8897  lt_cv_ld_exported_symbols_list=yes
8898else case e in #(
8899  e) lt_cv_ld_exported_symbols_list=no ;;
8900esac
8901fi
8902rm -f core conftest.err conftest.$ac_objext conftest.beam \
8903    conftest$ac_exeext conftest.$ac_ext
8904	LDFLAGS=$save_LDFLAGS
8905     ;;
8906esac
8907fi
8908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8909printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8910
8911    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8912printf %s "checking for -force_load linker flag... " >&6; }
8913if test ${lt_cv_ld_force_load+y}
8914then :
8915  printf %s "(cached) " >&6
8916else case e in #(
8917  e) lt_cv_ld_force_load=no
8918      cat > conftest.c << _LT_EOF
8919int forced_loaded() { return 2;}
8920_LT_EOF
8921      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8922      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8923      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8924      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8925      echo "$RANLIB libconftest.a" >&5
8926      $RANLIB libconftest.a 2>&5
8927      cat > conftest.c << _LT_EOF
8928int main(void) { return 0;}
8929_LT_EOF
8930      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8931      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8932      _lt_result=$?
8933      if test -s conftest.err && $GREP force_load conftest.err; then
8934	cat conftest.err >&5
8935      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8936	lt_cv_ld_force_load=yes
8937      else
8938	cat conftest.err >&5
8939      fi
8940        rm -f conftest.err libconftest.a conftest conftest.c
8941        rm -rf conftest.dSYM
8942     ;;
8943esac
8944fi
8945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8946printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8947    case $host_os in
8948    rhapsody* | darwin1.[012])
8949      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8950    darwin1.*)
8951      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8952    darwin*)
8953      case $MACOSX_DEPLOYMENT_TARGET,$host in
8954        10.[012],*|,*powerpc*-darwin[5-8]*)
8955          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8956        *)
8957          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8958          if test yes = "$lt_cv_support_no_fixup_chains"; then
8959            as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8960          fi
8961        ;;
8962      esac
8963    ;;
8964  esac
8965    if test yes = "$lt_cv_apple_cc_single_mod"; then
8966      _lt_dar_single_mod='$single_module'
8967    fi
8968    _lt_dar_needs_single_mod=no
8969    case $host_os in
8970    rhapsody* | darwin1.*)
8971      _lt_dar_needs_single_mod=yes ;;
8972    darwin*)
8973      # When targeting Mac OS X 10.4 (darwin 8) or later,
8974      # -single_module is the default and -multi_module is unsupported.
8975      # The toolchain on macOS 10.14 (darwin 18) and later cannot
8976      # target any OS version that needs -single_module.
8977      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8978      10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8979        _lt_dar_needs_single_mod=yes ;;
8980      esac
8981    ;;
8982    esac
8983    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8984      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8985    else
8986      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8987    fi
8988    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8989      _lt_dsymutil='~$DSYMUTIL $lib || :'
8990    else
8991      _lt_dsymutil=
8992    fi
8993    ;;
8994  esac
8995
8996# func_munge_path_list VARIABLE PATH
8997# -----------------------------------
8998# VARIABLE is name of variable containing _space_ separated list of
8999# directories to be munged by the contents of PATH, which is string
9000# having a format:
9001# "DIR[:DIR]:"
9002#       string "DIR[ DIR]" will be prepended to VARIABLE
9003# ":DIR[:DIR]"
9004#       string "DIR[ DIR]" will be appended to VARIABLE
9005# "DIRP[:DIRP]::[DIRA:]DIRA"
9006#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9007#       "DIRA[ DIRA]" will be appended to VARIABLE
9008# "DIR[:DIR]"
9009#       VARIABLE will be replaced by "DIR[ DIR]"
9010func_munge_path_list ()
9011{
9012    case x$2 in
9013    x)
9014        ;;
9015    *:)
9016        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9017        ;;
9018    x:*)
9019        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9020        ;;
9021    *::*)
9022        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9023        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9024        ;;
9025    *)
9026        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9027        ;;
9028    esac
9029}
9030
9031ac_header= ac_cache=
9032for ac_item in $ac_header_c_list
9033do
9034  if test $ac_cache; then
9035    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9036    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9037      printf "%s\n" "#define $ac_item 1" >> confdefs.h
9038    fi
9039    ac_header= ac_cache=
9040  elif test $ac_header; then
9041    ac_cache=$ac_item
9042  else
9043    ac_header=$ac_item
9044  fi
9045done
9046
9047
9048
9049
9050
9051
9052
9053
9054if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9055then :
9056
9057printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9058
9059fi
9060ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9061"
9062if test "x$ac_cv_header_dlfcn_h" = xyes
9063then :
9064  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9065
9066fi
9067
9068
9069
9070
9071
9072# Set options
9073
9074
9075
9076        enable_dlopen=no
9077
9078
9079  enable_win32_dll=no
9080
9081
9082            # Check whether --enable-shared was given.
9083if test ${enable_shared+y}
9084then :
9085  enableval=$enable_shared; p=${PACKAGE-default}
9086    case $enableval in
9087    yes) enable_shared=yes ;;
9088    no) enable_shared=no ;;
9089    *)
9090      enable_shared=no
9091      # Look at the argument we got.  We use all the common list separators.
9092      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9093      for pkg in $enableval; do
9094	IFS=$lt_save_ifs
9095	if test "X$pkg" = "X$p"; then
9096	  enable_shared=yes
9097	fi
9098      done
9099      IFS=$lt_save_ifs
9100      ;;
9101    esac
9102else case e in #(
9103  e) enable_shared=yes ;;
9104esac
9105fi
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115  # Check whether --enable-static was given.
9116if test ${enable_static+y}
9117then :
9118  enableval=$enable_static; p=${PACKAGE-default}
9119    case $enableval in
9120    yes) enable_static=yes ;;
9121    no) enable_static=no ;;
9122    *)
9123     enable_static=no
9124      # Look at the argument we got.  We use all the common list separators.
9125      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9126      for pkg in $enableval; do
9127	IFS=$lt_save_ifs
9128	if test "X$pkg" = "X$p"; then
9129	  enable_static=yes
9130	fi
9131      done
9132      IFS=$lt_save_ifs
9133      ;;
9134    esac
9135else case e in #(
9136  e) enable_static=yes ;;
9137esac
9138fi
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148  # Check whether --enable-pic was given.
9149if test ${enable_pic+y}
9150then :
9151  enableval=$enable_pic; lt_p=${PACKAGE-default}
9152     case $enableval in
9153     yes|no) pic_mode=$enableval ;;
9154     *)
9155       pic_mode=default
9156       # Look at the argument we got.  We use all the common list separators.
9157       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9158       for lt_pkg in $enableval; do
9159	 IFS=$lt_save_ifs
9160	 if test "X$lt_pkg" = "X$lt_p"; then
9161	   pic_mode=yes
9162	 fi
9163       done
9164       IFS=$lt_save_ifs
9165       ;;
9166     esac
9167else case e in #(
9168  e)           # Check whether --with-pic was given.
9169if test ${with_pic+y}
9170then :
9171  withval=$with_pic; lt_p=${PACKAGE-default}
9172	 case $withval in
9173	 yes|no) pic_mode=$withval ;;
9174	 *)
9175	   pic_mode=default
9176	   # Look at the argument we got.  We use all the common list separators.
9177	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9178	   for lt_pkg in $withval; do
9179	     IFS=$lt_save_ifs
9180	     if test "X$lt_pkg" = "X$lt_p"; then
9181	       pic_mode=yes
9182	     fi
9183	   done
9184	   IFS=$lt_save_ifs
9185	   ;;
9186	 esac
9187else case e in #(
9188  e) pic_mode=default ;;
9189esac
9190fi
9191
9192     ;;
9193esac
9194fi
9195
9196
9197
9198
9199
9200
9201
9202
9203  # Check whether --enable-fast-install was given.
9204if test ${enable_fast_install+y}
9205then :
9206  enableval=$enable_fast_install; p=${PACKAGE-default}
9207    case $enableval in
9208    yes) enable_fast_install=yes ;;
9209    no) enable_fast_install=no ;;
9210    *)
9211      enable_fast_install=no
9212      # Look at the argument we got.  We use all the common list separators.
9213      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9214      for pkg in $enableval; do
9215	IFS=$lt_save_ifs
9216	if test "X$pkg" = "X$p"; then
9217	  enable_fast_install=yes
9218	fi
9219      done
9220      IFS=$lt_save_ifs
9221      ;;
9222    esac
9223else case e in #(
9224  e) enable_fast_install=yes ;;
9225esac
9226fi
9227
9228
9229
9230
9231
9232
9233
9234
9235  shared_archive_member_spec=
9236case $host,$enable_shared in
9237power*-*-aix[5-9]*,yes)
9238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9239printf %s "checking which variant of shared library versioning to provide... " >&6; }
9240  # Check whether --enable-aix-soname was given.
9241if test ${enable_aix_soname+y}
9242then :
9243  enableval=$enable_aix_soname; case $enableval in
9244     aix|svr4|both)
9245       ;;
9246     *)
9247       as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9248       ;;
9249     esac
9250     lt_cv_with_aix_soname=$enable_aix_soname
9251else case e in #(
9252  e) # Check whether --with-aix-soname was given.
9253if test ${with_aix_soname+y}
9254then :
9255  withval=$with_aix_soname; case $withval in
9256         aix|svr4|both)
9257           ;;
9258         *)
9259           as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9260           ;;
9261         esac
9262         lt_cv_with_aix_soname=$with_aix_soname
9263else case e in #(
9264  e) if test ${lt_cv_with_aix_soname+y}
9265then :
9266  printf %s "(cached) " >&6
9267else case e in #(
9268  e) lt_cv_with_aix_soname=aix ;;
9269esac
9270fi
9271 ;;
9272esac
9273fi
9274
9275     enable_aix_soname=$lt_cv_with_aix_soname ;;
9276esac
9277fi
9278
9279  with_aix_soname=$enable_aix_soname
9280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9281printf "%s\n" "$with_aix_soname" >&6; }
9282  if test aix != "$with_aix_soname"; then
9283    # For the AIX way of multilib, we name the shared archive member
9284    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9285    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9286    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9287    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9288    if test 64 = "${OBJECT_MODE-32}"; then
9289      shared_archive_member_spec=shr_64
9290    else
9291      shared_archive_member_spec=shr
9292    fi
9293  fi
9294  ;;
9295*)
9296  with_aix_soname=aix
9297  ;;
9298esac
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309# This can be used to rebuild libtool when needed
9310LIBTOOL_DEPS=$ltmain
9311
9312# Always use our own libtool.
9313LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344test -z "$LN_S" && LN_S="ln -s"
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359if test -n "${ZSH_VERSION+set}"; then
9360   setopt NO_GLOB_SUBST
9361fi
9362
9363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9364printf %s "checking for objdir... " >&6; }
9365if test ${lt_cv_objdir+y}
9366then :
9367  printf %s "(cached) " >&6
9368else case e in #(
9369  e) rm -f .libs 2>/dev/null
9370mkdir .libs 2>/dev/null
9371if test -d .libs; then
9372  lt_cv_objdir=.libs
9373else
9374  # MS-DOS does not allow filenames that begin with a dot.
9375  lt_cv_objdir=_libs
9376fi
9377rmdir .libs 2>/dev/null ;;
9378esac
9379fi
9380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9381printf "%s\n" "$lt_cv_objdir" >&6; }
9382objdir=$lt_cv_objdir
9383
9384
9385
9386
9387
9388printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9389
9390
9391
9392
9393case $host_os in
9394aix3*)
9395  # AIX sometimes has problems with the GCC collect2 program.  For some
9396  # reason, if we set the COLLECT_NAMES environment variable, the problems
9397  # vanish in a puff of smoke.
9398  if test set != "${COLLECT_NAMES+set}"; then
9399    COLLECT_NAMES=
9400    export COLLECT_NAMES
9401  fi
9402  ;;
9403esac
9404
9405# Global variables:
9406ofile=libtool
9407can_build_shared=yes
9408
9409# All known linkers require a '.a' archive for static linking (except MSVC and
9410# ICC, which need '.lib').
9411libext=a
9412
9413with_gnu_ld=$lt_cv_prog_gnu_ld
9414
9415old_CC=$CC
9416old_CFLAGS=$CFLAGS
9417
9418# Set sane defaults for various variables
9419test -z "$CC" && CC=cc
9420test -z "$LTCC" && LTCC=$CC
9421test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9422test -z "$LD" && LD=ld
9423test -z "$ac_objext" && ac_objext=o
9424
9425func_cc_basename $compiler
9426cc_basename=$func_cc_basename_result
9427
9428
9429# Only perform the check for file, if the check method requires it
9430test -z "$MAGIC_CMD" && MAGIC_CMD=file
9431case $deplibs_check_method in
9432file_magic*)
9433  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9434    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9435printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9436if test ${lt_cv_path_MAGIC_CMD+y}
9437then :
9438  printf %s "(cached) " >&6
9439else case e in #(
9440  e) case $MAGIC_CMD in
9441[\\/*] |  ?:[\\/]*)
9442  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9443  ;;
9444*)
9445  lt_save_MAGIC_CMD=$MAGIC_CMD
9446  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9447  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9448  for ac_dir in $ac_dummy; do
9449    IFS=$lt_save_ifs
9450    test -z "$ac_dir" && ac_dir=.
9451    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9452      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9453      if test -n "$file_magic_test_file"; then
9454	case $deplibs_check_method in
9455	"file_magic "*)
9456	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9457	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9458	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9459	    $EGREP "$file_magic_regex" > /dev/null; then
9460	    :
9461	  else
9462	    cat <<_LT_EOF 1>&2
9463
9464*** Warning: the command libtool uses to detect shared libraries,
9465*** $file_magic_cmd, produces output that libtool cannot recognize.
9466*** The result is that libtool may fail to recognize shared libraries
9467*** as such.  This will affect the creation of libtool libraries that
9468*** depend on shared libraries, but programs linked with such libtool
9469*** libraries will work regardless of this problem.  Nevertheless, you
9470*** may want to report the problem to your system manager and/or to
9471*** bug-libtool@gnu.org
9472
9473_LT_EOF
9474	  fi ;;
9475	esac
9476      fi
9477      break
9478    fi
9479  done
9480  IFS=$lt_save_ifs
9481  MAGIC_CMD=$lt_save_MAGIC_CMD
9482  ;;
9483esac ;;
9484esac
9485fi
9486
9487MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9488if test -n "$MAGIC_CMD"; then
9489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9490printf "%s\n" "$MAGIC_CMD" >&6; }
9491else
9492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493printf "%s\n" "no" >&6; }
9494fi
9495
9496
9497
9498
9499
9500if test -z "$lt_cv_path_MAGIC_CMD"; then
9501  if test -n "$ac_tool_prefix"; then
9502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9503printf %s "checking for file... " >&6; }
9504if test ${lt_cv_path_MAGIC_CMD+y}
9505then :
9506  printf %s "(cached) " >&6
9507else case e in #(
9508  e) case $MAGIC_CMD in
9509[\\/*] |  ?:[\\/]*)
9510  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9511  ;;
9512*)
9513  lt_save_MAGIC_CMD=$MAGIC_CMD
9514  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9515  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9516  for ac_dir in $ac_dummy; do
9517    IFS=$lt_save_ifs
9518    test -z "$ac_dir" && ac_dir=.
9519    if test -f "$ac_dir/file"; then
9520      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9521      if test -n "$file_magic_test_file"; then
9522	case $deplibs_check_method in
9523	"file_magic "*)
9524	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9525	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9526	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9527	    $EGREP "$file_magic_regex" > /dev/null; then
9528	    :
9529	  else
9530	    cat <<_LT_EOF 1>&2
9531
9532*** Warning: the command libtool uses to detect shared libraries,
9533*** $file_magic_cmd, produces output that libtool cannot recognize.
9534*** The result is that libtool may fail to recognize shared libraries
9535*** as such.  This will affect the creation of libtool libraries that
9536*** depend on shared libraries, but programs linked with such libtool
9537*** libraries will work regardless of this problem.  Nevertheless, you
9538*** may want to report the problem to your system manager and/or to
9539*** bug-libtool@gnu.org
9540
9541_LT_EOF
9542	  fi ;;
9543	esac
9544      fi
9545      break
9546    fi
9547  done
9548  IFS=$lt_save_ifs
9549  MAGIC_CMD=$lt_save_MAGIC_CMD
9550  ;;
9551esac ;;
9552esac
9553fi
9554
9555MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9556if test -n "$MAGIC_CMD"; then
9557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9558printf "%s\n" "$MAGIC_CMD" >&6; }
9559else
9560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561printf "%s\n" "no" >&6; }
9562fi
9563
9564
9565  else
9566    MAGIC_CMD=:
9567  fi
9568fi
9569
9570  fi
9571  ;;
9572esac
9573
9574# Use C for the default configuration in the libtool script
9575
9576lt_save_CC=$CC
9577ac_ext=c
9578ac_cpp='$CPP $CPPFLAGS'
9579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9581ac_compiler_gnu=$ac_cv_c_compiler_gnu
9582
9583
9584# Source file extension for C test sources.
9585ac_ext=c
9586
9587# Object file extension for compiled C test sources.
9588objext=o
9589objext=$objext
9590
9591# Code to be used in simple compile tests
9592lt_simple_compile_test_code="int some_variable = 0;"
9593
9594# Code to be used in simple link tests
9595lt_simple_link_test_code='int main(void){return(0);}'
9596
9597
9598
9599
9600
9601
9602
9603# If no C compiler was specified, use CC.
9604LTCC=${LTCC-"$CC"}
9605
9606# If no C compiler flags were specified, use CFLAGS.
9607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9608
9609# Allow CC to be a program name with arguments.
9610compiler=$CC
9611
9612# Save the default compiler, since it gets overwritten when the other
9613# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9614compiler_DEFAULT=$CC
9615
9616# save warnings/boilerplate of simple test code
9617ac_outfile=conftest.$ac_objext
9618echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9619eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9620_lt_compiler_boilerplate=`cat conftest.err`
9621$RM conftest*
9622
9623ac_outfile=conftest.$ac_objext
9624echo "$lt_simple_link_test_code" >conftest.$ac_ext
9625eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626_lt_linker_boilerplate=`cat conftest.err`
9627$RM -r conftest*
9628
9629
9630## CAVEAT EMPTOR:
9631## There is no encapsulation within the following macros, do not change
9632## the running order or otherwise move them around unless you know exactly
9633## what you are doing...
9634if test -n "$compiler"; then
9635
9636lt_prog_compiler_no_builtin_flag=
9637
9638if test yes = "$GCC"; then
9639  case $cc_basename in
9640  nvcc*)
9641    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9642  *)
9643    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9644  esac
9645
9646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9647printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9648if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9649then :
9650  printf %s "(cached) " >&6
9651else case e in #(
9652  e) lt_cv_prog_compiler_rtti_exceptions=no
9653   ac_outfile=conftest.$ac_objext
9654   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9656   # Insert the option either (1) after the last *FLAGS variable, or
9657   # (2) before a word containing "conftest.", or (3) at the end.
9658   # Note that $ac_compile itself does not contain backslashes and begins
9659   # with a dollar sign (not a hyphen), so the echo should work correctly.
9660   # The option is referenced via a variable to avoid confusing sed.
9661   lt_compile=`echo "$ac_compile" | $SED \
9662   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664   -e 's:$: $lt_compiler_flag:'`
9665   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666   (eval "$lt_compile" 2>conftest.err)
9667   ac_status=$?
9668   cat conftest.err >&5
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   if (exit $ac_status) && test -s "$ac_outfile"; then
9671     # The compiler can only warn and ignore the option if not recognized
9672     # So say no if there are warnings other than the usual output.
9673     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9674     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9676       lt_cv_prog_compiler_rtti_exceptions=yes
9677     fi
9678   fi
9679   $RM conftest*
9680 ;;
9681esac
9682fi
9683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9684printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9685
9686if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9687    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9688else
9689    :
9690fi
9691
9692fi
9693
9694
9695
9696
9697
9698
9699  lt_prog_compiler_wl=
9700lt_prog_compiler_pic=
9701lt_prog_compiler_static=
9702
9703
9704  if test yes = "$GCC"; then
9705    lt_prog_compiler_wl='-Wl,'
9706    lt_prog_compiler_static='-static'
9707
9708    case $host_os in
9709      aix*)
9710      # All AIX code is PIC.
9711      if test ia64 = "$host_cpu"; then
9712	# AIX 5 now supports IA64 processor
9713	lt_prog_compiler_static='-Bstatic'
9714      fi
9715      lt_prog_compiler_pic='-fPIC'
9716      ;;
9717
9718    amigaos*)
9719      case $host_cpu in
9720      powerpc)
9721            # see comment about AmigaOS4 .so support
9722            lt_prog_compiler_pic='-fPIC'
9723        ;;
9724      m68k)
9725            # FIXME: we need at least 68020 code to build shared libraries, but
9726            # adding the '-m68020' flag to GCC prevents building anything better,
9727            # like '-m68040'.
9728            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9729        ;;
9730      esac
9731      ;;
9732
9733    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9734      # PIC is the default for these OSes.
9735      ;;
9736
9737    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9738      # This hack is so that the source file can tell whether it is being
9739      # built for inclusion in a dll (and should export symbols for example).
9740      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9741      # (--disable-auto-import) libraries
9742      lt_prog_compiler_pic='-DDLL_EXPORT'
9743      case $host_os in
9744      os2*)
9745	lt_prog_compiler_static='$wl-static'
9746	;;
9747      esac
9748      ;;
9749
9750    darwin* | rhapsody*)
9751      # PIC is the default on this platform
9752      # Common symbols not allowed in MH_DYLIB files
9753      lt_prog_compiler_pic='-fno-common'
9754      ;;
9755
9756    haiku*)
9757      # PIC is the default for Haiku.
9758      # The "-static" flag exists, but is broken.
9759      lt_prog_compiler_static=
9760      ;;
9761
9762    hpux*)
9763      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9764      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9765      # sets the default TLS model and affects inlining.
9766      case $host_cpu in
9767      hppa*64*)
9768	# +Z the default
9769	;;
9770      *)
9771	lt_prog_compiler_pic='-fPIC'
9772	;;
9773      esac
9774      ;;
9775
9776    interix[3-9]*)
9777      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9778      # Instead, we relocate shared libraries at runtime.
9779      ;;
9780
9781    msdosdjgpp*)
9782      # Just because we use GCC doesn't mean we suddenly get shared libraries
9783      # on systems that don't support them.
9784      lt_prog_compiler_can_build_shared=no
9785      enable_shared=no
9786      ;;
9787
9788    *nto* | *qnx*)
9789      # QNX uses GNU C++, but need to define -shared option too, otherwise
9790      # it will coredump.
9791      lt_prog_compiler_pic='-fPIC -shared'
9792      ;;
9793
9794    sysv4*MP*)
9795      if test -d /usr/nec; then
9796	lt_prog_compiler_pic=-Kconform_pic
9797      fi
9798      ;;
9799
9800    *)
9801      lt_prog_compiler_pic='-fPIC'
9802      ;;
9803    esac
9804
9805    case $cc_basename in
9806    nvcc*) # Cuda Compiler Driver 2.2
9807      lt_prog_compiler_wl='-Xlinker '
9808      if test -n "$lt_prog_compiler_pic"; then
9809        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9810      fi
9811      ;;
9812    esac
9813  else
9814    # PORTME Check for flag to pass linker flags through the system compiler.
9815    case $host_os in
9816    aix*)
9817      lt_prog_compiler_wl='-Wl,'
9818      if test ia64 = "$host_cpu"; then
9819	# AIX 5 now supports IA64 processor
9820	lt_prog_compiler_static='-Bstatic'
9821      else
9822	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9823      fi
9824      ;;
9825
9826    darwin* | rhapsody*)
9827      # PIC is the default on this platform
9828      # Common symbols not allowed in MH_DYLIB files
9829      lt_prog_compiler_pic='-fno-common'
9830      case $cc_basename in
9831      nagfor*)
9832        # NAG Fortran compiler
9833        lt_prog_compiler_wl='-Wl,-Wl,,'
9834        lt_prog_compiler_pic='-PIC'
9835        lt_prog_compiler_static='-Bstatic'
9836        ;;
9837      esac
9838      ;;
9839
9840    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9841      # This hack is so that the source file can tell whether it is being
9842      # built for inclusion in a dll (and should export symbols for example).
9843      lt_prog_compiler_pic='-DDLL_EXPORT'
9844      case $host_os in
9845      os2*)
9846	lt_prog_compiler_static='$wl-static'
9847	;;
9848      esac
9849      ;;
9850
9851    hpux9* | hpux10* | hpux11*)
9852      lt_prog_compiler_wl='-Wl,'
9853      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9854      # not for PA HP-UX.
9855      case $host_cpu in
9856      hppa*64*|ia64*)
9857	# +Z the default
9858	;;
9859      *)
9860	lt_prog_compiler_pic='+Z'
9861	;;
9862      esac
9863      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9864      lt_prog_compiler_static='$wl-a ${wl}archive'
9865      ;;
9866
9867    irix5* | irix6* | nonstopux*)
9868      lt_prog_compiler_wl='-Wl,'
9869      # PIC (with -KPIC) is the default.
9870      lt_prog_compiler_static='-non_shared'
9871      ;;
9872
9873    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*)
9874      case $cc_basename in
9875      # old Intel for x86_64, which still supported -KPIC.
9876      ecc*)
9877	lt_prog_compiler_wl='-Wl,'
9878	lt_prog_compiler_pic='-KPIC'
9879	lt_prog_compiler_static='-static'
9880        ;;
9881      *flang* | ftn | f18* | f95*)
9882        # Flang compiler.
9883	lt_prog_compiler_wl='-Wl,'
9884	lt_prog_compiler_pic='-fPIC'
9885	lt_prog_compiler_static='-static'
9886        ;;
9887      # icc used to be incompatible with GCC.
9888      # ICC 10 doesn't accept -KPIC any more.
9889      icc* | ifort*)
9890	lt_prog_compiler_wl='-Wl,'
9891	lt_prog_compiler_pic='-fPIC'
9892	lt_prog_compiler_static='-static'
9893        ;;
9894      # Lahey Fortran 8.1.
9895      lf95*)
9896	lt_prog_compiler_wl='-Wl,'
9897	lt_prog_compiler_pic='--shared'
9898	lt_prog_compiler_static='--static'
9899	;;
9900      nagfor*)
9901	# NAG Fortran compiler
9902	lt_prog_compiler_wl='-Wl,-Wl,,'
9903	lt_prog_compiler_pic='-PIC'
9904	lt_prog_compiler_static='-Bstatic'
9905	;;
9906      tcc*)
9907	# Fabrice Bellard et al's Tiny C Compiler
9908	lt_prog_compiler_wl='-Wl,'
9909	lt_prog_compiler_pic='-fPIC'
9910	lt_prog_compiler_static='-static'
9911	;;
9912      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9913        # Portland Group compilers (*not* the Pentium gcc compiler,
9914	# which looks to be a dead project)
9915	lt_prog_compiler_wl='-Wl,'
9916	lt_prog_compiler_pic='-fpic'
9917	lt_prog_compiler_static='-Bstatic'
9918        ;;
9919      ccc*)
9920        lt_prog_compiler_wl='-Wl,'
9921        # All Alpha code is PIC.
9922        lt_prog_compiler_static='-non_shared'
9923        ;;
9924      xl* | bgxl* | bgf* | mpixl*)
9925	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9926	lt_prog_compiler_wl='-Wl,'
9927	lt_prog_compiler_pic='-qpic'
9928	lt_prog_compiler_static='-qstaticlink'
9929	;;
9930      *)
9931	case `$CC -V 2>&1 | $SED 5q` in
9932	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9933	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9934	  lt_prog_compiler_pic='-KPIC'
9935	  lt_prog_compiler_static='-Bstatic'
9936	  lt_prog_compiler_wl=''
9937	  ;;
9938	*Sun\ F* | *Sun*Fortran*)
9939	  lt_prog_compiler_pic='-KPIC'
9940	  lt_prog_compiler_static='-Bstatic'
9941	  lt_prog_compiler_wl='-Qoption ld '
9942	  ;;
9943	*Sun\ C*)
9944	  # Sun C 5.9
9945	  lt_prog_compiler_pic='-KPIC'
9946	  lt_prog_compiler_static='-Bstatic'
9947	  lt_prog_compiler_wl='-Wl,'
9948	  ;;
9949        *Intel*\ [CF]*Compiler*)
9950	  lt_prog_compiler_wl='-Wl,'
9951	  lt_prog_compiler_pic='-fPIC'
9952	  lt_prog_compiler_static='-static'
9953	  ;;
9954	*Portland\ Group*)
9955	  lt_prog_compiler_wl='-Wl,'
9956	  lt_prog_compiler_pic='-fpic'
9957	  lt_prog_compiler_static='-Bstatic'
9958	  ;;
9959	esac
9960	;;
9961      esac
9962      ;;
9963
9964    newsos6)
9965      lt_prog_compiler_pic='-KPIC'
9966      lt_prog_compiler_static='-Bstatic'
9967      ;;
9968
9969    *-mlibc)
9970      lt_prog_compiler_wl='-Wl,'
9971      lt_prog_compiler_pic='-fPIC'
9972      lt_prog_compiler_static='-static'
9973      ;;
9974
9975    *nto* | *qnx*)
9976      # QNX uses GNU C++, but need to define -shared option too, otherwise
9977      # it will coredump.
9978      lt_prog_compiler_pic='-fPIC -shared'
9979      ;;
9980
9981    osf3* | osf4* | osf5*)
9982      lt_prog_compiler_wl='-Wl,'
9983      # All OSF/1 code is PIC.
9984      lt_prog_compiler_static='-non_shared'
9985      ;;
9986
9987    rdos*)
9988      lt_prog_compiler_static='-non_shared'
9989      ;;
9990
9991    serenity*)
9992      ;;
9993
9994    solaris*)
9995      lt_prog_compiler_pic='-KPIC'
9996      lt_prog_compiler_static='-Bstatic'
9997      case $cc_basename in
9998      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9999	lt_prog_compiler_wl='-Qoption ld ';;
10000      *)
10001	lt_prog_compiler_wl='-Wl,';;
10002      esac
10003      ;;
10004
10005    sunos4*)
10006      lt_prog_compiler_wl='-Qoption ld '
10007      lt_prog_compiler_pic='-PIC'
10008      lt_prog_compiler_static='-Bstatic'
10009      ;;
10010
10011    sysv4 | sysv4.2uw2* | sysv4.3*)
10012      lt_prog_compiler_wl='-Wl,'
10013      lt_prog_compiler_pic='-KPIC'
10014      lt_prog_compiler_static='-Bstatic'
10015      ;;
10016
10017    sysv4*MP*)
10018      if test -d /usr/nec; then
10019	lt_prog_compiler_pic='-Kconform_pic'
10020	lt_prog_compiler_static='-Bstatic'
10021      fi
10022      ;;
10023
10024    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10025      lt_prog_compiler_wl='-Wl,'
10026      lt_prog_compiler_pic='-KPIC'
10027      lt_prog_compiler_static='-Bstatic'
10028      ;;
10029
10030    unicos*)
10031      lt_prog_compiler_wl='-Wl,'
10032      lt_prog_compiler_can_build_shared=no
10033      ;;
10034
10035    uts4*)
10036      lt_prog_compiler_pic='-pic'
10037      lt_prog_compiler_static='-Bstatic'
10038      ;;
10039
10040    *)
10041      lt_prog_compiler_can_build_shared=no
10042      ;;
10043    esac
10044  fi
10045
10046case $host_os in
10047  # For platforms that do not support PIC, -DPIC is meaningless:
10048  *djgpp*)
10049    lt_prog_compiler_pic=
10050    ;;
10051  *)
10052    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10053    ;;
10054esac
10055
10056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10057printf %s "checking for $compiler option to produce PIC... " >&6; }
10058if test ${lt_cv_prog_compiler_pic+y}
10059then :
10060  printf %s "(cached) " >&6
10061else case e in #(
10062  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10063esac
10064fi
10065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10066printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10067lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10068
10069#
10070# Check to make sure the PIC flag actually works.
10071#
10072if test -n "$lt_prog_compiler_pic"; then
10073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10074printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10075if test ${lt_cv_prog_compiler_pic_works+y}
10076then :
10077  printf %s "(cached) " >&6
10078else case e in #(
10079  e) lt_cv_prog_compiler_pic_works=no
10080   ac_outfile=conftest.$ac_objext
10081   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10082   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10083   # Insert the option either (1) after the last *FLAGS variable, or
10084   # (2) before a word containing "conftest.", or (3) at the end.
10085   # Note that $ac_compile itself does not contain backslashes and begins
10086   # with a dollar sign (not a hyphen), so the echo should work correctly.
10087   # The option is referenced via a variable to avoid confusing sed.
10088   lt_compile=`echo "$ac_compile" | $SED \
10089   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10090   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10091   -e 's:$: $lt_compiler_flag:'`
10092   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10093   (eval "$lt_compile" 2>conftest.err)
10094   ac_status=$?
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   if (exit $ac_status) && test -s "$ac_outfile"; then
10098     # The compiler can only warn and ignore the option if not recognized
10099     # So say no if there are warnings other than the usual output.
10100     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10101     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10102     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10103       lt_cv_prog_compiler_pic_works=yes
10104     fi
10105   fi
10106   $RM conftest*
10107 ;;
10108esac
10109fi
10110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10111printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10112
10113if test yes = "$lt_cv_prog_compiler_pic_works"; then
10114    case $lt_prog_compiler_pic in
10115     "" | " "*) ;;
10116     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10117     esac
10118else
10119    lt_prog_compiler_pic=
10120     lt_prog_compiler_can_build_shared=no
10121fi
10122
10123fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135#
10136# Check to make sure the static flag actually works.
10137#
10138wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10140printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10141if test ${lt_cv_prog_compiler_static_works+y}
10142then :
10143  printf %s "(cached) " >&6
10144else case e in #(
10145  e) lt_cv_prog_compiler_static_works=no
10146   save_LDFLAGS=$LDFLAGS
10147   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10148   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10149   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10150     # The linker can only warn and ignore the option if not recognized
10151     # So say no if there are warnings
10152     if test -s conftest.err; then
10153       # Append any errors to the config.log.
10154       cat conftest.err 1>&5
10155       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10156       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10157       if diff conftest.exp conftest.er2 >/dev/null; then
10158         lt_cv_prog_compiler_static_works=yes
10159       fi
10160     else
10161       lt_cv_prog_compiler_static_works=yes
10162     fi
10163   fi
10164   $RM -r conftest*
10165   LDFLAGS=$save_LDFLAGS
10166 ;;
10167esac
10168fi
10169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10170printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10171
10172if test yes = "$lt_cv_prog_compiler_static_works"; then
10173    :
10174else
10175    lt_prog_compiler_static=
10176fi
10177
10178
10179
10180
10181
10182
10183
10184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10185printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10186if test ${lt_cv_prog_compiler_c_o+y}
10187then :
10188  printf %s "(cached) " >&6
10189else case e in #(
10190  e) lt_cv_prog_compiler_c_o=no
10191   $RM -r conftest 2>/dev/null
10192   mkdir conftest
10193   cd conftest
10194   mkdir out
10195   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196
10197   lt_compiler_flag="-o out/conftest2.$ac_objext"
10198   # Insert the option either (1) after the last *FLAGS variable, or
10199   # (2) before a word containing "conftest.", or (3) at the end.
10200   # Note that $ac_compile itself does not contain backslashes and begins
10201   # with a dollar sign (not a hyphen), so the echo should work correctly.
10202   lt_compile=`echo "$ac_compile" | $SED \
10203   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10205   -e 's:$: $lt_compiler_flag:'`
10206   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10207   (eval "$lt_compile" 2>out/conftest.err)
10208   ac_status=$?
10209   cat out/conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10212   then
10213     # The compiler can only warn and ignore the option if not recognized
10214     # So say no if there are warnings
10215     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10216     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10217     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10218       lt_cv_prog_compiler_c_o=yes
10219     fi
10220   fi
10221   chmod u+w . 2>&5
10222   $RM conftest*
10223   # SGI C++ compiler will create directory out/ii_files/ for
10224   # template instantiation
10225   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10226   $RM out/* && rmdir out
10227   cd ..
10228   $RM -r conftest
10229   $RM conftest*
10230 ;;
10231esac
10232fi
10233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10234printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10235
10236
10237
10238
10239
10240
10241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10242printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10243if test ${lt_cv_prog_compiler_c_o+y}
10244then :
10245  printf %s "(cached) " >&6
10246else case e in #(
10247  e) lt_cv_prog_compiler_c_o=no
10248   $RM -r conftest 2>/dev/null
10249   mkdir conftest
10250   cd conftest
10251   mkdir out
10252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10253
10254   lt_compiler_flag="-o out/conftest2.$ac_objext"
10255   # Insert the option either (1) after the last *FLAGS variable, or
10256   # (2) before a word containing "conftest.", or (3) at the end.
10257   # Note that $ac_compile itself does not contain backslashes and begins
10258   # with a dollar sign (not a hyphen), so the echo should work correctly.
10259   lt_compile=`echo "$ac_compile" | $SED \
10260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10262   -e 's:$: $lt_compiler_flag:'`
10263   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10264   (eval "$lt_compile" 2>out/conftest.err)
10265   ac_status=$?
10266   cat out/conftest.err >&5
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10269   then
10270     # The compiler can only warn and ignore the option if not recognized
10271     # So say no if there are warnings
10272     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10273     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10274     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10275       lt_cv_prog_compiler_c_o=yes
10276     fi
10277   fi
10278   chmod u+w . 2>&5
10279   $RM conftest*
10280   # SGI C++ compiler will create directory out/ii_files/ for
10281   # template instantiation
10282   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10283   $RM out/* && rmdir out
10284   cd ..
10285   $RM -r conftest
10286   $RM conftest*
10287 ;;
10288esac
10289fi
10290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10291printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10292
10293
10294
10295
10296hard_links=nottested
10297if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10298  # do not overwrite the value of need_locks provided by the user
10299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10300printf %s "checking if we can lock with hard links... " >&6; }
10301  hard_links=yes
10302  $RM conftest*
10303  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10304  touch conftest.a
10305  ln conftest.a conftest.b 2>&5 || hard_links=no
10306  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10308printf "%s\n" "$hard_links" >&6; }
10309  if test no = "$hard_links"; then
10310    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10311printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10312    need_locks=warn
10313  fi
10314else
10315  need_locks=no
10316fi
10317
10318
10319
10320
10321
10322
10323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10324printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10325
10326  runpath_var=
10327  allow_undefined_flag=
10328  always_export_symbols=no
10329  archive_cmds=
10330  archive_expsym_cmds=
10331  compiler_needs_object=no
10332  enable_shared_with_static_runtimes=no
10333  export_dynamic_flag_spec=
10334  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10335  hardcode_automatic=no
10336  hardcode_direct=no
10337  hardcode_direct_absolute=no
10338  hardcode_libdir_flag_spec=
10339  hardcode_libdir_separator=
10340  hardcode_minus_L=no
10341  hardcode_shlibpath_var=unsupported
10342  inherit_rpath=no
10343  link_all_deplibs=unknown
10344  module_cmds=
10345  module_expsym_cmds=
10346  old_archive_from_new_cmds=
10347  old_archive_from_expsyms_cmds=
10348  thread_safe_flag_spec=
10349  whole_archive_flag_spec=
10350  # include_expsyms should be a list of space-separated symbols to be *always*
10351  # included in the symbol list
10352  include_expsyms=
10353  # exclude_expsyms can be an extended regexp of symbols to exclude
10354  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10355  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10356  # as well as any symbol that contains 'd'.
10357  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10358  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10359  # platforms (ab)use it in PIC code, but their linkers get confused if
10360  # the symbol is explicitly referenced.  Since portable code cannot
10361  # rely on this symbol name, it's probably fine to never include it in
10362  # preloaded symbol tables.
10363  # Exclude shared library initialization/finalization symbols.
10364  extract_expsyms_cmds=
10365
10366  case $host_os in
10367  cygwin* | mingw* | windows* | pw32* | cegcc*)
10368    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10369    # When not using gcc, we currently assume that we are using
10370    # Microsoft Visual C++ or Intel C++ Compiler.
10371    if test yes != "$GCC"; then
10372      with_gnu_ld=no
10373    fi
10374    ;;
10375  interix*)
10376    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10377    with_gnu_ld=yes
10378    ;;
10379  esac
10380
10381  ld_shlibs=yes
10382
10383  # On some targets, GNU ld is compatible enough with the native linker
10384  # that we're better off using the native interface for both.
10385  lt_use_gnu_ld_interface=no
10386  if test yes = "$with_gnu_ld"; then
10387    case $host_os in
10388      aix*)
10389	# The AIX port of GNU ld has always aspired to compatibility
10390	# with the native linker.  However, as the warning in the GNU ld
10391	# block says, versions before 2.19.5* couldn't really create working
10392	# shared libraries, regardless of the interface used.
10393	case `$LD -v 2>&1` in
10394	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10395	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10396	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10397	  *)
10398	    lt_use_gnu_ld_interface=yes
10399	    ;;
10400	esac
10401	;;
10402      *)
10403	lt_use_gnu_ld_interface=yes
10404	;;
10405    esac
10406  fi
10407
10408  if test yes = "$lt_use_gnu_ld_interface"; then
10409    # If archive_cmds runs LD, not CC, wlarc should be empty
10410    wlarc='$wl'
10411
10412    # Set some defaults for GNU ld with shared library support. These
10413    # are reset later if shared libraries are not supported. Putting them
10414    # here allows them to be overridden if necessary.
10415    runpath_var=LD_RUN_PATH
10416    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10417    export_dynamic_flag_spec='$wl--export-dynamic'
10418    # ancient GNU ld didn't support --whole-archive et. al.
10419    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10420      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10421    else
10422      whole_archive_flag_spec=
10423    fi
10424    supports_anon_versioning=no
10425    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10426      *GNU\ gold*) supports_anon_versioning=yes ;;
10427      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10428      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10429      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10430      *\ 2.11.*) ;; # other 2.11 versions
10431      *) supports_anon_versioning=yes ;;
10432    esac
10433
10434    # See if GNU ld supports shared libraries.
10435    case $host_os in
10436    aix[3-9]*)
10437      # On AIX/PPC, the GNU linker is very broken
10438      if test ia64 != "$host_cpu"; then
10439	ld_shlibs=no
10440	cat <<_LT_EOF 1>&2
10441
10442*** Warning: the GNU linker, at least up to release 2.19, is reported
10443*** to be unable to reliably create shared libraries on AIX.
10444*** Therefore, libtool is disabling shared libraries support.  If you
10445*** really care for shared libraries, you may want to install binutils
10446*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10447*** You will then need to restart the configuration process.
10448
10449_LT_EOF
10450      fi
10451      ;;
10452
10453    amigaos*)
10454      case $host_cpu in
10455      powerpc)
10456            # see comment about AmigaOS4 .so support
10457            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10458            archive_expsym_cmds=''
10459        ;;
10460      m68k)
10461            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)'
10462            hardcode_libdir_flag_spec='-L$libdir'
10463            hardcode_minus_L=yes
10464        ;;
10465      esac
10466      ;;
10467
10468    beos*)
10469      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10470	allow_undefined_flag=unsupported
10471	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10472	# support --undefined.  This deserves some investigation.  FIXME
10473	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10474      else
10475	ld_shlibs=no
10476      fi
10477      ;;
10478
10479    cygwin* | mingw* | windows* | pw32* | cegcc*)
10480      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10481      # as there is no search path for DLLs.
10482      hardcode_libdir_flag_spec='-L$libdir'
10483      export_dynamic_flag_spec='$wl--export-all-symbols'
10484      allow_undefined_flag=unsupported
10485      always_export_symbols=no
10486      enable_shared_with_static_runtimes=yes
10487      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'
10488      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10489      file_list_spec='@'
10490
10491      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10492        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10493	# If the export-symbols file already is a .def file, use it as
10494	# is; otherwise, prepend EXPORTS...
10495	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10496          cp $export_symbols $output_objdir/$soname.def;
10497        else
10498          echo EXPORTS > $output_objdir/$soname.def;
10499          cat $export_symbols >> $output_objdir/$soname.def;
10500        fi~
10501        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10502      else
10503	ld_shlibs=no
10504      fi
10505      ;;
10506
10507    haiku*)
10508      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509      link_all_deplibs=no
10510      ;;
10511
10512    os2*)
10513      hardcode_libdir_flag_spec='-L$libdir'
10514      hardcode_minus_L=yes
10515      allow_undefined_flag=unsupported
10516      shrext_cmds=.dll
10517      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10518	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10519	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10520	$ECHO EXPORTS >> $output_objdir/$libname.def~
10521	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10522	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10523	emximp -o $lib $output_objdir/$libname.def'
10524      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10525	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10526	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10527	$ECHO EXPORTS >> $output_objdir/$libname.def~
10528	prefix_cmds="$SED"~
10529	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10530	  prefix_cmds="$prefix_cmds -e 1d";
10531	fi~
10532	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10533	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10534	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10535	emximp -o $lib $output_objdir/$libname.def'
10536      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10537      enable_shared_with_static_runtimes=yes
10538      file_list_spec='@'
10539      ;;
10540
10541    interix[3-9]*)
10542      hardcode_direct=no
10543      hardcode_shlibpath_var=no
10544      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10545      export_dynamic_flag_spec='$wl-E'
10546      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10547      # Instead, shared libraries are loaded at an image base (0x10000000 by
10548      # default) and relocated if they conflict, which is a slow very memory
10549      # consuming and fragmenting process.  To avoid this, we pick a random,
10550      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10551      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10552      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10553      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'
10554      ;;
10555
10556    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10557      tmp_diet=no
10558      if test linux-dietlibc = "$host_os"; then
10559	case $cc_basename in
10560	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10561	esac
10562      fi
10563      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10564	 && test no = "$tmp_diet"
10565      then
10566	tmp_addflag=' $pic_flag'
10567	tmp_sharedflag='-shared'
10568	case $cc_basename,$host_cpu in
10569        pgcc*)				# Portland Group C compiler
10570	  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'
10571	  tmp_addflag=' $pic_flag'
10572	  ;;
10573	pgf77* | pgf90* | pgf95* | pgfortran*)
10574					# Portland Group f77 and f90 compilers
10575	  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'
10576	  tmp_addflag=' $pic_flag -Mnomain' ;;
10577	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10578	  tmp_addflag=' -i_dynamic' ;;
10579	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10580	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10581	ifc* | ifort*)			# Intel Fortran compiler
10582	  tmp_addflag=' -nofor_main' ;;
10583	lf95*)				# Lahey Fortran 8.1
10584	  whole_archive_flag_spec=
10585	  tmp_sharedflag='--shared' ;;
10586        nagfor*)                        # NAGFOR 5.3
10587          tmp_sharedflag='-Wl,-shared' ;;
10588	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10589	  tmp_sharedflag='-qmkshrobj'
10590	  tmp_addflag= ;;
10591	nvcc*)	# Cuda Compiler Driver 2.2
10592	  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'
10593	  compiler_needs_object=yes
10594	  ;;
10595	esac
10596	case `$CC -V 2>&1 | $SED 5q` in
10597	*Sun\ C*)			# Sun C 5.9
10598	  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'
10599	  compiler_needs_object=yes
10600	  tmp_sharedflag='-G' ;;
10601	*Sun\ F*)			# Sun Fortran 8.3
10602	  tmp_sharedflag='-G' ;;
10603	esac
10604	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10605
10606        if test yes = "$supports_anon_versioning"; then
10607          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10608            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10609            echo "local: *; };" >> $output_objdir/$libname.ver~
10610            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10611        fi
10612
10613	case $cc_basename in
10614	tcc*)
10615	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10616	  export_dynamic_flag_spec='-rdynamic'
10617	  ;;
10618	xlf* | bgf* | bgxlf* | mpixlf*)
10619	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10620	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10621	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10622	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10623	  if test yes = "$supports_anon_versioning"; then
10624	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10625              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10626              echo "local: *; };" >> $output_objdir/$libname.ver~
10627              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10628	  fi
10629	  ;;
10630	esac
10631      else
10632        ld_shlibs=no
10633      fi
10634      ;;
10635
10636    *-mlibc)
10637	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10638	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10639      ;;
10640
10641    netbsd* | netbsdelf*-gnu)
10642      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10643	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10644	wlarc=
10645      else
10646	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10647	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10648      fi
10649      ;;
10650
10651    solaris*)
10652      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10653	ld_shlibs=no
10654	cat <<_LT_EOF 1>&2
10655
10656*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10657*** create shared libraries on Solaris systems.  Therefore, libtool
10658*** is disabling shared libraries support.  We urge you to upgrade GNU
10659*** binutils to release 2.9.1 or newer.  Another option is to modify
10660*** your PATH or compiler configuration so that the native linker is
10661*** used, and then restart.
10662
10663_LT_EOF
10664      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10665	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10666	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10667      else
10668	ld_shlibs=no
10669      fi
10670      ;;
10671
10672    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10673      case `$LD -v 2>&1` in
10674        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10675	ld_shlibs=no
10676	cat <<_LT_EOF 1>&2
10677
10678*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10679*** reliably create shared libraries on SCO systems.  Therefore, libtool
10680*** is disabling shared libraries support.  We urge you to upgrade GNU
10681*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10682*** your PATH or compiler configuration so that the native linker is
10683*** used, and then restart.
10684
10685_LT_EOF
10686	;;
10687	*)
10688	  # For security reasons, it is highly recommended that you always
10689	  # use absolute paths for naming shared libraries, and exclude the
10690	  # DT_RUNPATH tag from executables and libraries.  But doing so
10691	  # requires that you compile everything twice, which is a pain.
10692	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10693	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10694	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10695	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10696	  else
10697	    ld_shlibs=no
10698	  fi
10699	;;
10700      esac
10701      ;;
10702
10703    sunos4*)
10704      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10705      wlarc=
10706      hardcode_direct=yes
10707      hardcode_shlibpath_var=no
10708      ;;
10709
10710    *)
10711      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10712	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10713	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10714      else
10715	ld_shlibs=no
10716      fi
10717      ;;
10718    esac
10719
10720    if test no = "$ld_shlibs"; then
10721      runpath_var=
10722      hardcode_libdir_flag_spec=
10723      export_dynamic_flag_spec=
10724      whole_archive_flag_spec=
10725    fi
10726  else
10727    # PORTME fill in a description of your system's linker (not GNU ld)
10728    case $host_os in
10729    aix3*)
10730      allow_undefined_flag=unsupported
10731      always_export_symbols=yes
10732      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'
10733      # Note: this linker hardcodes the directories in LIBPATH if there
10734      # are no directories specified by -L.
10735      hardcode_minus_L=yes
10736      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10737	# Neither direct hardcoding nor static linking is supported with a
10738	# broken collect2.
10739	hardcode_direct=unsupported
10740      fi
10741      ;;
10742
10743    aix[4-9]*)
10744      if test ia64 = "$host_cpu"; then
10745	# On IA64, the linker does run time linking by default, so we don't
10746	# have to do anything special.
10747	aix_use_runtimelinking=no
10748	exp_sym_flag='-Bexport'
10749	no_entry_flag=
10750      else
10751	# If we're using GNU nm, then we don't want the "-C" option.
10752	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10753	# Without the "-l" option, or with the "-B" option, AIX nm treats
10754	# weak defined symbols like other global defined symbols, whereas
10755	# GNU nm marks them as "W".
10756	# While the 'weak' keyword is ignored in the Export File, we need
10757	# it in the Import File for the 'aix-soname' feature, so we have
10758	# to replace the "-B" option with "-P" for AIX nm.
10759	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10760	  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'
10761	else
10762	  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 == "L") || (\$ 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'
10763	fi
10764	aix_use_runtimelinking=no
10765
10766	# Test if we are trying to use run time linking or normal
10767	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10768	# have runtime linking enabled, and use it for executables.
10769	# For shared libraries, we enable/disable runtime linking
10770	# depending on the kind of the shared library created -
10771	# when "with_aix_soname,aix_use_runtimelinking" is:
10772	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10773	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10774	#            lib.a           static archive
10775	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10776	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10777	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10778	#            lib.a(lib.so.V) shared, rtl:no
10779	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10780	#            lib.a           static archive
10781	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10782	  for ld_flag in $LDFLAGS; do
10783	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10784	    aix_use_runtimelinking=yes
10785	    break
10786	  fi
10787	  done
10788	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10789	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10790	    # so we don't have lib.a shared libs to link our executables.
10791	    # We have to force runtime linking in this case.
10792	    aix_use_runtimelinking=yes
10793	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10794	  fi
10795	  ;;
10796	esac
10797
10798	exp_sym_flag='-bexport'
10799	no_entry_flag='-bnoentry'
10800      fi
10801
10802      # When large executables or shared objects are built, AIX ld can
10803      # have problems creating the table of contents.  If linking a library
10804      # or program results in "error TOC overflow" add -mminimal-toc to
10805      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10806      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10807
10808      archive_cmds=''
10809      hardcode_direct=yes
10810      hardcode_direct_absolute=yes
10811      hardcode_libdir_separator=':'
10812      link_all_deplibs=yes
10813      file_list_spec='$wl-f,'
10814      case $with_aix_soname,$aix_use_runtimelinking in
10815      aix,*) ;; # traditional, no import file
10816      svr4,* | *,yes) # use import file
10817	# The Import File defines what to hardcode.
10818	hardcode_direct=no
10819	hardcode_direct_absolute=no
10820	;;
10821      esac
10822
10823      if test yes = "$GCC"; then
10824	case $host_os in aix4.[012]|aix4.[012].*)
10825	# We only want to do this on AIX 4.2 and lower, the check
10826	# below for broken collect2 doesn't work under 4.3+
10827	  collect2name=`$CC -print-prog-name=collect2`
10828	  if test -f "$collect2name" &&
10829	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10830	  then
10831	  # We have reworked collect2
10832	  :
10833	  else
10834	  # We have old collect2
10835	  hardcode_direct=unsupported
10836	  # It fails to find uninstalled libraries when the uninstalled
10837	  # path is not listed in the libpath.  Setting hardcode_minus_L
10838	  # to unsupported forces relinking
10839	  hardcode_minus_L=yes
10840	  hardcode_libdir_flag_spec='-L$libdir'
10841	  hardcode_libdir_separator=
10842	  fi
10843	  ;;
10844	esac
10845	shared_flag='-shared'
10846	if test yes = "$aix_use_runtimelinking"; then
10847	  shared_flag="$shared_flag "'$wl-G'
10848	fi
10849	# Need to ensure runtime linking is disabled for the traditional
10850	# shared library, or the linker may eventually find shared libraries
10851	# /with/ Import File - we do not want to mix them.
10852	shared_flag_aix='-shared'
10853	shared_flag_svr4='-shared $wl-G'
10854      else
10855	# not using gcc
10856	if test ia64 = "$host_cpu"; then
10857	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10858	# chokes on -Wl,-G. The following line is correct:
10859	  shared_flag='-G'
10860	else
10861	  if test yes = "$aix_use_runtimelinking"; then
10862	    shared_flag='$wl-G'
10863	  else
10864	    shared_flag='$wl-bM:SRE'
10865	  fi
10866	  shared_flag_aix='$wl-bM:SRE'
10867	  shared_flag_svr4='$wl-G'
10868	fi
10869      fi
10870
10871      export_dynamic_flag_spec='$wl-bexpall'
10872      # It seems that -bexpall does not export symbols beginning with
10873      # underscore (_), so it is better to generate a list of symbols to export.
10874      always_export_symbols=yes
10875      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10876	# Warning - without using the other runtime loading flags (-brtl),
10877	# -berok will link without error, but may produce a broken library.
10878	allow_undefined_flag='-berok'
10879        # Determine the default libpath from the value encoded in an
10880        # empty executable.
10881        if test set = "${lt_cv_aix_libpath+set}"; then
10882  aix_libpath=$lt_cv_aix_libpath
10883else
10884  if test ${lt_cv_aix_libpath_+y}
10885then :
10886  printf %s "(cached) " >&6
10887else case e in #(
10888  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889/* end confdefs.h.  */
10890
10891int
10892main (void)
10893{
10894
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899if ac_fn_c_try_link "$LINENO"
10900then :
10901
10902  lt_aix_libpath_sed='
10903      /Import File Strings/,/^$/ {
10904	  /^0/ {
10905	      s/^0  *\([^ ]*\) *$/\1/
10906	      p
10907	  }
10908      }'
10909  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10910  # Check for a 64-bit object if we didn't find anything.
10911  if test -z "$lt_cv_aix_libpath_"; then
10912    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10913  fi
10914fi
10915rm -f core conftest.err conftest.$ac_objext conftest.beam \
10916    conftest$ac_exeext conftest.$ac_ext
10917  if test -z "$lt_cv_aix_libpath_"; then
10918    lt_cv_aix_libpath_=/usr/lib:/lib
10919  fi
10920   ;;
10921esac
10922fi
10923
10924  aix_libpath=$lt_cv_aix_libpath_
10925fi
10926
10927        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10928        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
10929      else
10930	if test ia64 = "$host_cpu"; then
10931	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10932	  allow_undefined_flag="-z nodefs"
10933	  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"
10934	else
10935	 # Determine the default libpath from the value encoded in an
10936	 # empty executable.
10937	 if test set = "${lt_cv_aix_libpath+set}"; then
10938  aix_libpath=$lt_cv_aix_libpath
10939else
10940  if test ${lt_cv_aix_libpath_+y}
10941then :
10942  printf %s "(cached) " >&6
10943else case e in #(
10944  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945/* end confdefs.h.  */
10946
10947int
10948main (void)
10949{
10950
10951  ;
10952  return 0;
10953}
10954_ACEOF
10955if ac_fn_c_try_link "$LINENO"
10956then :
10957
10958  lt_aix_libpath_sed='
10959      /Import File Strings/,/^$/ {
10960	  /^0/ {
10961	      s/^0  *\([^ ]*\) *$/\1/
10962	      p
10963	  }
10964      }'
10965  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10966  # Check for a 64-bit object if we didn't find anything.
10967  if test -z "$lt_cv_aix_libpath_"; then
10968    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10969  fi
10970fi
10971rm -f core conftest.err conftest.$ac_objext conftest.beam \
10972    conftest$ac_exeext conftest.$ac_ext
10973  if test -z "$lt_cv_aix_libpath_"; then
10974    lt_cv_aix_libpath_=/usr/lib:/lib
10975  fi
10976   ;;
10977esac
10978fi
10979
10980  aix_libpath=$lt_cv_aix_libpath_
10981fi
10982
10983	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10984	  # Warning - without using the other run time loading flags,
10985	  # -berok will link without error, but may produce a broken library.
10986	  no_undefined_flag=' $wl-bernotok'
10987	  allow_undefined_flag=' $wl-berok'
10988	  if test yes = "$with_gnu_ld"; then
10989	    # We only use this code for GNU lds that support --whole-archive.
10990	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10991	  else
10992	    # Exported symbols can be pulled into shared objects from archives
10993	    whole_archive_flag_spec='$convenience'
10994	  fi
10995	  archive_cmds_need_lc=yes
10996	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10997	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10998	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10999	  if test svr4 != "$with_aix_soname"; then
11000	    # This is similar to how AIX traditionally builds its shared libraries.
11001	    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'
11002	  fi
11003	  if test aix != "$with_aix_soname"; then
11004	    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'
11005	  else
11006	    # used by -dlpreopen to get the symbols
11007	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11008	  fi
11009	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11010	fi
11011      fi
11012      ;;
11013
11014    amigaos*)
11015      case $host_cpu in
11016      powerpc)
11017            # see comment about AmigaOS4 .so support
11018            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11019            archive_expsym_cmds=''
11020        ;;
11021      m68k)
11022            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)'
11023            hardcode_libdir_flag_spec='-L$libdir'
11024            hardcode_minus_L=yes
11025        ;;
11026      esac
11027      ;;
11028
11029    bsdi[45]*)
11030      export_dynamic_flag_spec=-rdynamic
11031      ;;
11032
11033    cygwin* | mingw* | windows* | pw32* | cegcc*)
11034      # When not using gcc, we currently assume that we are using
11035      # Microsoft Visual C++ or Intel C++ Compiler.
11036      # hardcode_libdir_flag_spec is actually meaningless, as there is
11037      # no search path for DLLs.
11038      case $cc_basename in
11039      cl* | icl*)
11040	# Native MSVC or ICC
11041	hardcode_libdir_flag_spec=' '
11042	allow_undefined_flag=unsupported
11043	always_export_symbols=yes
11044	file_list_spec='@'
11045	# Tell ltmain to make .lib files, not .a files.
11046	libext=lib
11047	# Tell ltmain to make .dll files, not .so files.
11048	shrext_cmds=.dll
11049	# FIXME: Setting linknames here is a bad hack.
11050	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11051	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11052            cp "$export_symbols" "$output_objdir/$soname.def";
11053            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11054          else
11055            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11056          fi~
11057          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11058          linknames='
11059	# The linker will not automatically build a static lib if we build a DLL.
11060	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11061	enable_shared_with_static_runtimes=yes
11062	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11063	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11064	# Don't use ranlib
11065	old_postinstall_cmds='chmod 644 $oldlib'
11066	postlink_cmds='lt_outputfile="@OUTPUT@"~
11067          lt_tool_outputfile="@TOOL_OUTPUT@"~
11068          case $lt_outputfile in
11069            *.exe|*.EXE) ;;
11070            *)
11071              lt_outputfile=$lt_outputfile.exe
11072              lt_tool_outputfile=$lt_tool_outputfile.exe
11073              ;;
11074          esac~
11075          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11076            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11077            $RM "$lt_outputfile.manifest";
11078          fi'
11079	;;
11080      *)
11081	# Assume MSVC and ICC wrapper
11082	hardcode_libdir_flag_spec=' '
11083	allow_undefined_flag=unsupported
11084	# Tell ltmain to make .lib files, not .a files.
11085	libext=lib
11086	# Tell ltmain to make .dll files, not .so files.
11087	shrext_cmds=.dll
11088	# FIXME: Setting linknames here is a bad hack.
11089	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11090	# The linker will automatically build a .lib file if we build a DLL.
11091	old_archive_from_new_cmds='true'
11092	# FIXME: Should let the user specify the lib program.
11093	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11094	enable_shared_with_static_runtimes=yes
11095	;;
11096      esac
11097      ;;
11098
11099    darwin* | rhapsody*)
11100
11101
11102  archive_cmds_need_lc=no
11103  hardcode_direct=no
11104  hardcode_automatic=yes
11105  hardcode_shlibpath_var=unsupported
11106  if test yes = "$lt_cv_ld_force_load"; then
11107    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\"`'
11108
11109  else
11110    whole_archive_flag_spec=''
11111  fi
11112  link_all_deplibs=yes
11113  allow_undefined_flag=$_lt_dar_allow_undefined
11114  case $cc_basename in
11115     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11116     *) _lt_dar_can_shared=$GCC ;;
11117  esac
11118  if test yes = "$_lt_dar_can_shared"; then
11119    output_verbose_link_cmd=func_echo_all
11120    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11121    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11122    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"
11123    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"
11124
11125  else
11126  ld_shlibs=no
11127  fi
11128
11129      ;;
11130
11131    dgux*)
11132      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133      hardcode_libdir_flag_spec='-L$libdir'
11134      hardcode_shlibpath_var=no
11135      ;;
11136
11137    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11138    # support.  Future versions do this automatically, but an explicit c++rt0.o
11139    # does not break anything, and helps significantly (at the cost of a little
11140    # extra space).
11141    freebsd2.2*)
11142      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11143      hardcode_libdir_flag_spec='-R$libdir'
11144      hardcode_direct=yes
11145      hardcode_shlibpath_var=no
11146      ;;
11147
11148    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11149    freebsd2.*)
11150      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11151      hardcode_direct=yes
11152      hardcode_minus_L=yes
11153      hardcode_shlibpath_var=no
11154      ;;
11155
11156    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11157    freebsd* | dragonfly* | midnightbsd*)
11158      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11159      hardcode_libdir_flag_spec='-R$libdir'
11160      hardcode_direct=yes
11161      hardcode_shlibpath_var=no
11162      ;;
11163
11164    hpux9*)
11165      if test yes = "$GCC"; then
11166	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'
11167      else
11168	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'
11169      fi
11170      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11171      hardcode_libdir_separator=:
11172      hardcode_direct=yes
11173
11174      # hardcode_minus_L: Not really in the search PATH,
11175      # but as the default location of the library.
11176      hardcode_minus_L=yes
11177      export_dynamic_flag_spec='$wl-E'
11178      ;;
11179
11180    hpux10*)
11181      if test yes,no = "$GCC,$with_gnu_ld"; then
11182	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11183      else
11184	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11185      fi
11186      if test no = "$with_gnu_ld"; then
11187	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11188	hardcode_libdir_separator=:
11189	hardcode_direct=yes
11190	hardcode_direct_absolute=yes
11191	export_dynamic_flag_spec='$wl-E'
11192	# hardcode_minus_L: Not really in the search PATH,
11193	# but as the default location of the library.
11194	hardcode_minus_L=yes
11195      fi
11196      ;;
11197
11198    hpux11*)
11199      if test yes,no = "$GCC,$with_gnu_ld"; then
11200	case $host_cpu in
11201	hppa*64*)
11202	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11203	  ;;
11204	ia64*)
11205	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11206	  ;;
11207	*)
11208	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11209	  ;;
11210	esac
11211      else
11212	case $host_cpu in
11213	hppa*64*)
11214	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11215	  ;;
11216	ia64*)
11217	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11218	  ;;
11219	*)
11220
11221	  # Older versions of the 11.00 compiler do not understand -b yet
11222	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11223	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11224printf %s "checking if $CC understands -b... " >&6; }
11225if test ${lt_cv_prog_compiler__b+y}
11226then :
11227  printf %s "(cached) " >&6
11228else case e in #(
11229  e) lt_cv_prog_compiler__b=no
11230   save_LDFLAGS=$LDFLAGS
11231   LDFLAGS="$LDFLAGS -b"
11232   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11233   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11234     # The linker can only warn and ignore the option if not recognized
11235     # So say no if there are warnings
11236     if test -s conftest.err; then
11237       # Append any errors to the config.log.
11238       cat conftest.err 1>&5
11239       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11240       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11241       if diff conftest.exp conftest.er2 >/dev/null; then
11242         lt_cv_prog_compiler__b=yes
11243       fi
11244     else
11245       lt_cv_prog_compiler__b=yes
11246     fi
11247   fi
11248   $RM -r conftest*
11249   LDFLAGS=$save_LDFLAGS
11250 ;;
11251esac
11252fi
11253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11254printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11255
11256if test yes = "$lt_cv_prog_compiler__b"; then
11257    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11258else
11259    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11260fi
11261
11262	  ;;
11263	esac
11264      fi
11265      if test no = "$with_gnu_ld"; then
11266	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11267	hardcode_libdir_separator=:
11268
11269	case $host_cpu in
11270	hppa*64*|ia64*)
11271	  hardcode_direct=no
11272	  hardcode_shlibpath_var=no
11273	  ;;
11274	*)
11275	  hardcode_direct=yes
11276	  hardcode_direct_absolute=yes
11277	  export_dynamic_flag_spec='$wl-E'
11278
11279	  # hardcode_minus_L: Not really in the search PATH,
11280	  # but as the default location of the library.
11281	  hardcode_minus_L=yes
11282	  ;;
11283	esac
11284      fi
11285      ;;
11286
11287    irix5* | irix6* | nonstopux*)
11288      if test yes = "$GCC"; then
11289	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'
11290	# Try to use the -exported_symbol ld option, if it does not
11291	# work, assume that -exports_file does not work either and
11292	# implicitly export all symbols.
11293	# This should be the same for all languages, so no per-tag cache variable.
11294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11295printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11296if test ${lt_cv_irix_exported_symbol+y}
11297then :
11298  printf %s "(cached) " >&6
11299else case e in #(
11300  e) save_LDFLAGS=$LDFLAGS
11301	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11302	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304int foo (void) { return 0; }
11305_ACEOF
11306if ac_fn_c_try_link "$LINENO"
11307then :
11308  lt_cv_irix_exported_symbol=yes
11309else case e in #(
11310  e) lt_cv_irix_exported_symbol=no ;;
11311esac
11312fi
11313rm -f core conftest.err conftest.$ac_objext conftest.beam \
11314    conftest$ac_exeext conftest.$ac_ext
11315           LDFLAGS=$save_LDFLAGS ;;
11316esac
11317fi
11318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11319printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11320	if test yes = "$lt_cv_irix_exported_symbol"; then
11321          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'
11322	fi
11323      else
11324	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'
11325	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'
11326      fi
11327      archive_cmds_need_lc='no'
11328      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11329      hardcode_libdir_separator=:
11330      inherit_rpath=yes
11331      link_all_deplibs=yes
11332      ;;
11333
11334    linux*)
11335      case $cc_basename in
11336      tcc*)
11337	# Fabrice Bellard et al's Tiny C Compiler
11338	ld_shlibs=yes
11339	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11340	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11341	;;
11342      esac
11343      ;;
11344
11345    *-mlibc)
11346      ;;
11347
11348    netbsd* | netbsdelf*-gnu)
11349      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11350	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11351      else
11352	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11353      fi
11354      hardcode_libdir_flag_spec='-R$libdir'
11355      hardcode_direct=yes
11356      hardcode_shlibpath_var=no
11357      ;;
11358
11359    newsos6)
11360      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361      hardcode_direct=yes
11362      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11363      hardcode_libdir_separator=:
11364      hardcode_shlibpath_var=no
11365      ;;
11366
11367    *nto* | *qnx*)
11368      ;;
11369
11370    openbsd*)
11371      if test -f /usr/libexec/ld.so; then
11372	hardcode_direct=yes
11373	hardcode_shlibpath_var=no
11374	hardcode_direct_absolute=yes
11375	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11376	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11377	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11378	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11379	  export_dynamic_flag_spec='$wl-E'
11380	else
11381	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11382	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11383	fi
11384      else
11385	ld_shlibs=no
11386      fi
11387      ;;
11388
11389    os2*)
11390      hardcode_libdir_flag_spec='-L$libdir'
11391      hardcode_minus_L=yes
11392      allow_undefined_flag=unsupported
11393      shrext_cmds=.dll
11394      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11395	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11396	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11397	$ECHO EXPORTS >> $output_objdir/$libname.def~
11398	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11399	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11400	emximp -o $lib $output_objdir/$libname.def'
11401      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11402	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11403	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11404	$ECHO EXPORTS >> $output_objdir/$libname.def~
11405	prefix_cmds="$SED"~
11406	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11407	  prefix_cmds="$prefix_cmds -e 1d";
11408	fi~
11409	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11410	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11411	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11412	emximp -o $lib $output_objdir/$libname.def'
11413      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11414      enable_shared_with_static_runtimes=yes
11415      file_list_spec='@'
11416      ;;
11417
11418    osf3*)
11419      if test yes = "$GCC"; then
11420	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11421	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'
11422      else
11423	allow_undefined_flag=' -expect_unresolved \*'
11424	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'
11425      fi
11426      archive_cmds_need_lc='no'
11427      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11428      hardcode_libdir_separator=:
11429      ;;
11430
11431    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11432      if test yes = "$GCC"; then
11433	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11434	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'
11435	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11436      else
11437	allow_undefined_flag=' -expect_unresolved \*'
11438	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'
11439	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~
11440          $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'
11441
11442	# Both c and cxx compiler support -rpath directly
11443	hardcode_libdir_flag_spec='-rpath $libdir'
11444      fi
11445      archive_cmds_need_lc='no'
11446      hardcode_libdir_separator=:
11447      ;;
11448
11449    serenity*)
11450      ;;
11451
11452    solaris*)
11453      no_undefined_flag=' -z defs'
11454      if test yes = "$GCC"; then
11455	wlarc='$wl'
11456	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11457	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11458          $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'
11459      else
11460	case `$CC -V 2>&1` in
11461	*"Compilers 5.0"*)
11462	  wlarc=''
11463	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11464	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11465            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11466	  ;;
11467	*)
11468	  wlarc='$wl'
11469	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11470	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11471            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11472	  ;;
11473	esac
11474      fi
11475      hardcode_libdir_flag_spec='-R$libdir'
11476      hardcode_shlibpath_var=no
11477      case $host_os in
11478      solaris2.[0-5] | solaris2.[0-5].*) ;;
11479      *)
11480	# The compiler driver will combine and reorder linker options,
11481	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11482	# but is careful enough not to reorder.
11483	# Supported since Solaris 2.6 (maybe 2.5.1?)
11484	if test yes = "$GCC"; then
11485	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11486	else
11487	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11488	fi
11489	;;
11490      esac
11491      link_all_deplibs=yes
11492      ;;
11493
11494    sunos4*)
11495      if test sequent = "$host_vendor"; then
11496	# Use $CC to link under sequent, because it throws in some extra .o
11497	# files that make .init and .fini sections work.
11498	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11499      else
11500	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11501      fi
11502      hardcode_libdir_flag_spec='-L$libdir'
11503      hardcode_direct=yes
11504      hardcode_minus_L=yes
11505      hardcode_shlibpath_var=no
11506      ;;
11507
11508    sysv4)
11509      case $host_vendor in
11510	sni)
11511	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11512	  hardcode_direct=yes # is this really true???
11513	;;
11514	siemens)
11515	  ## LD is ld it makes a PLAMLIB
11516	  ## CC just makes a GrossModule.
11517	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11518	  reload_cmds='$CC -r -o $output$reload_objs'
11519	  hardcode_direct=no
11520        ;;
11521	motorola)
11522	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11523	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11524	;;
11525      esac
11526      runpath_var='LD_RUN_PATH'
11527      hardcode_shlibpath_var=no
11528      ;;
11529
11530    sysv4.3*)
11531      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11532      hardcode_shlibpath_var=no
11533      export_dynamic_flag_spec='-Bexport'
11534      ;;
11535
11536    sysv4*MP*)
11537      if test -d /usr/nec; then
11538	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11539	hardcode_shlibpath_var=no
11540	runpath_var=LD_RUN_PATH
11541	hardcode_runpath_var=yes
11542	ld_shlibs=yes
11543      fi
11544      ;;
11545
11546    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11547      no_undefined_flag='$wl-z,text'
11548      archive_cmds_need_lc=no
11549      hardcode_shlibpath_var=no
11550      runpath_var='LD_RUN_PATH'
11551
11552      if test yes = "$GCC"; then
11553	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11554	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11555      else
11556	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11557	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11558      fi
11559      ;;
11560
11561    sysv5* | sco3.2v5* | sco5v6*)
11562      # Note: We CANNOT use -z defs as we might desire, because we do not
11563      # link with -lc, and that would cause any symbols used from libc to
11564      # always be unresolved, which means just about no library would
11565      # ever link correctly.  If we're not using GNU ld we use -z text
11566      # though, which does catch some bad symbols but isn't as heavy-handed
11567      # as -z defs.
11568      no_undefined_flag='$wl-z,text'
11569      allow_undefined_flag='$wl-z,nodefs'
11570      archive_cmds_need_lc=no
11571      hardcode_shlibpath_var=no
11572      hardcode_libdir_flag_spec='$wl-R,$libdir'
11573      hardcode_libdir_separator=':'
11574      link_all_deplibs=yes
11575      export_dynamic_flag_spec='$wl-Bexport'
11576      runpath_var='LD_RUN_PATH'
11577
11578      if test yes = "$GCC"; then
11579	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11581      else
11582	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11584      fi
11585      ;;
11586
11587    uts4*)
11588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11589      hardcode_libdir_flag_spec='-L$libdir'
11590      hardcode_shlibpath_var=no
11591      ;;
11592
11593    *)
11594      ld_shlibs=no
11595      ;;
11596    esac
11597
11598    if test sni = "$host_vendor"; then
11599      case $host in
11600      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11601	export_dynamic_flag_spec='$wl-Blargedynsym'
11602	;;
11603      esac
11604    fi
11605  fi
11606
11607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11608printf "%s\n" "$ld_shlibs" >&6; }
11609test no = "$ld_shlibs" && can_build_shared=no
11610
11611with_gnu_ld=$with_gnu_ld
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627#
11628# Do we need to explicitly link libc?
11629#
11630case "x$archive_cmds_need_lc" in
11631x|xyes)
11632  # Assume -lc should be added
11633  archive_cmds_need_lc=yes
11634
11635  if test yes,yes = "$GCC,$enable_shared"; then
11636    case $archive_cmds in
11637    *'~'*)
11638      # FIXME: we may have to deal with multi-command sequences.
11639      ;;
11640    '$CC '*)
11641      # Test whether the compiler implicitly links with -lc since on some
11642      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11643      # to ld, don't add -lc before -lgcc.
11644      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11645printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11646if test ${lt_cv_archive_cmds_need_lc+y}
11647then :
11648  printf %s "(cached) " >&6
11649else case e in #(
11650  e) $RM conftest*
11651	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11652
11653	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11654  (eval $ac_compile) 2>&5
11655  ac_status=$?
11656  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657  test $ac_status = 0; } 2>conftest.err; then
11658	  soname=conftest
11659	  lib=conftest
11660	  libobjs=conftest.$ac_objext
11661	  deplibs=
11662	  wl=$lt_prog_compiler_wl
11663	  pic_flag=$lt_prog_compiler_pic
11664	  compiler_flags=-v
11665	  linker_flags=-v
11666	  verstring=
11667	  output_objdir=.
11668	  libname=conftest
11669	  lt_save_allow_undefined_flag=$allow_undefined_flag
11670	  allow_undefined_flag=
11671	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11672  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11673  ac_status=$?
11674  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675  test $ac_status = 0; }
11676	  then
11677	    lt_cv_archive_cmds_need_lc=no
11678	  else
11679	    lt_cv_archive_cmds_need_lc=yes
11680	  fi
11681	  allow_undefined_flag=$lt_save_allow_undefined_flag
11682	else
11683	  cat conftest.err 1>&5
11684	fi
11685	$RM conftest*
11686	 ;;
11687esac
11688fi
11689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11690printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11691      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11692      ;;
11693    esac
11694  fi
11695  ;;
11696esac
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11850printf %s "checking dynamic linker characteristics... " >&6; }
11851
11852if test yes = "$GCC"; then
11853  case $host_os in
11854    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11855    *) lt_awk_arg='/^libraries:/' ;;
11856  esac
11857  case $host_os in
11858    mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11859    *) lt_sed_strip_eq='s|=/|/|g' ;;
11860  esac
11861  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11862  case $lt_search_path_spec in
11863  *\;*)
11864    # if the path contains ";" then we assume it to be the separator
11865    # otherwise default to the standard path separator (i.e. ":") - it is
11866    # assumed that no part of a normal pathname contains ";" but that should
11867    # okay in the real world where ";" in dirpaths is itself problematic.
11868    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11869    ;;
11870  *)
11871    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11872    ;;
11873  esac
11874  # Ok, now we have the path, separated by spaces, we can step through it
11875  # and add multilib dir if necessary...
11876  lt_tmp_lt_search_path_spec=
11877  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11878  # ...but if some path component already ends with the multilib dir we assume
11879  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11880  case "$lt_multi_os_dir; $lt_search_path_spec " in
11881  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11882    lt_multi_os_dir=
11883    ;;
11884  esac
11885  for lt_sys_path in $lt_search_path_spec; do
11886    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11887      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11888    elif test -n "$lt_multi_os_dir"; then
11889      test -d "$lt_sys_path" && \
11890	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11891    fi
11892  done
11893  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11894BEGIN {RS = " "; FS = "/|\n";} {
11895  lt_foo = "";
11896  lt_count = 0;
11897  for (lt_i = NF; lt_i > 0; lt_i--) {
11898    if ($lt_i != "" && $lt_i != ".") {
11899      if ($lt_i == "..") {
11900        lt_count++;
11901      } else {
11902        if (lt_count == 0) {
11903          lt_foo = "/" $lt_i lt_foo;
11904        } else {
11905          lt_count--;
11906        }
11907      }
11908    }
11909  }
11910  if (lt_foo != "") { lt_freq[lt_foo]++; }
11911  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11912}'`
11913  # AWK program above erroneously prepends '/' to C:/dos/paths
11914  # for these hosts.
11915  case $host_os in
11916    mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11917      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11918  esac
11919  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11920else
11921  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11922fi
11923library_names_spec=
11924libname_spec='lib$name'
11925soname_spec=
11926shrext_cmds=.so
11927postinstall_cmds=
11928postuninstall_cmds=
11929finish_cmds=
11930finish_eval=
11931shlibpath_var=
11932shlibpath_overrides_runpath=unknown
11933version_type=none
11934dynamic_linker="$host_os ld.so"
11935sys_lib_dlsearch_path_spec="/lib /usr/lib"
11936need_lib_prefix=unknown
11937hardcode_into_libs=no
11938
11939# when you set need_version to no, make sure it does not cause -set_version
11940# flags to be left without arguments
11941need_version=unknown
11942
11943
11944
11945case $host_os in
11946aix3*)
11947  version_type=linux # correct to gnu/linux during the next big refactor
11948  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11949  shlibpath_var=LIBPATH
11950
11951  # AIX 3 has no versioning support, so we append a major version to the name.
11952  soname_spec='$libname$release$shared_ext$major'
11953  ;;
11954
11955aix[4-9]*)
11956  version_type=linux # correct to gnu/linux during the next big refactor
11957  need_lib_prefix=no
11958  need_version=no
11959  hardcode_into_libs=yes
11960  if test ia64 = "$host_cpu"; then
11961    # AIX 5 supports IA64
11962    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11963    shlibpath_var=LD_LIBRARY_PATH
11964  else
11965    # With GCC up to 2.95.x, collect2 would create an import file
11966    # for dependence libraries.  The import file would start with
11967    # the line '#! .'.  This would cause the generated library to
11968    # depend on '.', always an invalid library.  This was fixed in
11969    # development snapshots of GCC prior to 3.0.
11970    case $host_os in
11971      aix4 | aix4.[01] | aix4.[01].*)
11972      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11973	   echo ' yes '
11974	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11975	:
11976      else
11977	can_build_shared=no
11978      fi
11979      ;;
11980    esac
11981    # Using Import Files as archive members, it is possible to support
11982    # filename-based versioning of shared library archives on AIX. While
11983    # this would work for both with and without runtime linking, it will
11984    # prevent static linking of such archives. So we do filename-based
11985    # shared library versioning with .so extension only, which is used
11986    # when both runtime linking and shared linking is enabled.
11987    # Unfortunately, runtime linking may impact performance, so we do
11988    # not want this to be the default eventually. Also, we use the
11989    # versioned .so libs for executables only if there is the -brtl
11990    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11991    # To allow for filename-based versioning support, we need to create
11992    # libNAME.so.V as an archive file, containing:
11993    # *) an Import File, referring to the versioned filename of the
11994    #    archive as well as the shared archive member, telling the
11995    #    bitwidth (32 or 64) of that shared object, and providing the
11996    #    list of exported symbols of that shared object, eventually
11997    #    decorated with the 'weak' keyword
11998    # *) the shared object with the F_LOADONLY flag set, to really avoid
11999    #    it being seen by the linker.
12000    # At run time we better use the real file rather than another symlink,
12001    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12002
12003    case $with_aix_soname,$aix_use_runtimelinking in
12004    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12005    # soname into executable. Probably we can add versioning support to
12006    # collect2, so additional links can be useful in future.
12007    aix,yes) # traditional libtool
12008      dynamic_linker='AIX unversionable lib.so'
12009      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12010      # instead of lib<name>.a to let people know that these are not
12011      # typical AIX shared libraries.
12012      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12013      ;;
12014    aix,no) # traditional AIX only
12015      dynamic_linker='AIX lib.a(lib.so.V)'
12016      # We preserve .a as extension for shared libraries through AIX4.2
12017      # and later when we are not doing run time linking.
12018      library_names_spec='$libname$release.a $libname.a'
12019      soname_spec='$libname$release$shared_ext$major'
12020      ;;
12021    svr4,*) # full svr4 only
12022      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12023      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12024      # We do not specify a path in Import Files, so LIBPATH fires.
12025      shlibpath_overrides_runpath=yes
12026      ;;
12027    *,yes) # both, prefer svr4
12028      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12029      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12030      # unpreferred sharedlib libNAME.a needs extra handling
12031      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"'
12032      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"'
12033      # We do not specify a path in Import Files, so LIBPATH fires.
12034      shlibpath_overrides_runpath=yes
12035      ;;
12036    *,no) # both, prefer aix
12037      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12038      library_names_spec='$libname$release.a $libname.a'
12039      soname_spec='$libname$release$shared_ext$major'
12040      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12041      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)'
12042      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"'
12043      ;;
12044    esac
12045    shlibpath_var=LIBPATH
12046  fi
12047  ;;
12048
12049amigaos*)
12050  case $host_cpu in
12051  powerpc)
12052    # Since July 2007 AmigaOS4 officially supports .so libraries.
12053    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12054    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12055    ;;
12056  m68k)
12057    library_names_spec='$libname.ixlibrary $libname.a'
12058    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12059    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'
12060    ;;
12061  esac
12062  ;;
12063
12064beos*)
12065  library_names_spec='$libname$shared_ext'
12066  dynamic_linker="$host_os ld.so"
12067  shlibpath_var=LIBRARY_PATH
12068  ;;
12069
12070bsdi[45]*)
12071  version_type=linux # correct to gnu/linux during the next big refactor
12072  need_version=no
12073  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12074  soname_spec='$libname$release$shared_ext$major'
12075  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12076  shlibpath_var=LD_LIBRARY_PATH
12077  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12078  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12079  # the default ld.so.conf also contains /usr/contrib/lib and
12080  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12081  # libtool to hard-code these into programs
12082  ;;
12083
12084cygwin* | mingw* | windows* | pw32* | cegcc*)
12085  version_type=windows
12086  shrext_cmds=.dll
12087  need_version=no
12088  need_lib_prefix=no
12089
12090  case $GCC,$cc_basename in
12091  yes,*)
12092    # gcc
12093    library_names_spec='$libname.dll.a'
12094    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12095    # If user builds GCC with multilib enabled,
12096    # it should just install on $(libdir)
12097    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12098    if test xyes = x"$multilib"; then
12099      postinstall_cmds='base_file=`basename \$file`~
12100        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12101        dldir=$destdir/`dirname \$dlpath`~
12102        $install_prog $dir/$dlname $destdir/$dlname~
12103        chmod a+x $destdir/$dlname~
12104        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12105          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12106        fi'
12107    else
12108      postinstall_cmds='base_file=`basename \$file`~
12109        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12110        dldir=$destdir/`dirname \$dlpath`~
12111        test -d \$dldir || mkdir -p \$dldir~
12112        $install_prog $dir/$dlname \$dldir/$dlname~
12113        chmod a+x \$dldir/$dlname~
12114        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12115          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12116        fi'
12117    fi
12118    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12119      dlpath=$dir/\$dldll~
12120       $RM \$dlpath'
12121    shlibpath_overrides_runpath=yes
12122
12123    case $host_os in
12124    cygwin*)
12125      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12126      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12127
12128      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12129      ;;
12130    mingw* | windows* | cegcc*)
12131      # MinGW DLLs use traditional 'lib' prefix
12132      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12133      ;;
12134    pw32*)
12135      # pw32 DLLs use 'pw' prefix rather than 'lib'
12136      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12137      ;;
12138    esac
12139    dynamic_linker='Win32 ld.exe'
12140    ;;
12141
12142  *,cl* | *,icl*)
12143    # Native MSVC or ICC
12144    libname_spec='$name'
12145    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12146    library_names_spec='$libname.dll.lib'
12147
12148    case $build_os in
12149    mingw* | windows*)
12150      sys_lib_search_path_spec=
12151      lt_save_ifs=$IFS
12152      IFS=';'
12153      for lt_path in $LIB
12154      do
12155        IFS=$lt_save_ifs
12156        # Let DOS variable expansion print the short 8.3 style file name.
12157        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12158        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12159      done
12160      IFS=$lt_save_ifs
12161      # Convert to MSYS style.
12162      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12163      ;;
12164    cygwin*)
12165      # Convert to unix form, then to dos form, then back to unix form
12166      # but this time dos style (no spaces!) so that the unix form looks
12167      # like /cygdrive/c/PROGRA~1:/cygdr...
12168      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12169      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12170      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12171      ;;
12172    *)
12173      sys_lib_search_path_spec=$LIB
12174      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12175        # It is most probably a Windows format PATH.
12176        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12177      else
12178        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12179      fi
12180      # FIXME: find the short name or the path components, as spaces are
12181      # common. (e.g. "Program Files" -> "PROGRA~1")
12182      ;;
12183    esac
12184
12185    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12186    postinstall_cmds='base_file=`basename \$file`~
12187      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12188      dldir=$destdir/`dirname \$dlpath`~
12189      test -d \$dldir || mkdir -p \$dldir~
12190      $install_prog $dir/$dlname \$dldir/$dlname'
12191    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12192      dlpath=$dir/\$dldll~
12193       $RM \$dlpath'
12194    shlibpath_overrides_runpath=yes
12195    dynamic_linker='Win32 link.exe'
12196    ;;
12197
12198  *)
12199    # Assume MSVC and ICC wrapper
12200    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12201    dynamic_linker='Win32 ld.exe'
12202    ;;
12203  esac
12204  # FIXME: first we should search . and the directory the executable is in
12205  shlibpath_var=PATH
12206  ;;
12207
12208darwin* | rhapsody*)
12209  dynamic_linker="$host_os dyld"
12210  version_type=darwin
12211  need_lib_prefix=no
12212  need_version=no
12213  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12214  soname_spec='$libname$release$major$shared_ext'
12215  shlibpath_overrides_runpath=yes
12216  shlibpath_var=DYLD_LIBRARY_PATH
12217  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12218
12219  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12220  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12221  ;;
12222
12223dgux*)
12224  version_type=linux # correct to gnu/linux during the next big refactor
12225  need_lib_prefix=no
12226  need_version=no
12227  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228  soname_spec='$libname$release$shared_ext$major'
12229  shlibpath_var=LD_LIBRARY_PATH
12230  ;;
12231
12232freebsd* | dragonfly* | midnightbsd*)
12233  # DragonFly does not have aout.  When/if they implement a new
12234  # versioning mechanism, adjust this.
12235  if test -x /usr/bin/objformat; then
12236    objformat=`/usr/bin/objformat`
12237  else
12238    case $host_os in
12239    freebsd[23].*) objformat=aout ;;
12240    *) objformat=elf ;;
12241    esac
12242  fi
12243  version_type=freebsd-$objformat
12244  case $version_type in
12245    freebsd-elf*)
12246      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247      soname_spec='$libname$release$shared_ext$major'
12248      need_version=no
12249      need_lib_prefix=no
12250      ;;
12251    freebsd-*)
12252      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12253      need_version=yes
12254      ;;
12255  esac
12256  case $host_cpu in
12257    powerpc64)
12258      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12259      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12260      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261/* end confdefs.h.  */
12262int test_pointer_size[sizeof (void *) - 5];
12263
12264_ACEOF
12265if ac_fn_c_try_compile "$LINENO"
12266then :
12267  shlibpath_var=LD_LIBRARY_PATH
12268else case e in #(
12269  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12270esac
12271fi
12272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12273      ;;
12274    *)
12275      shlibpath_var=LD_LIBRARY_PATH
12276      ;;
12277  esac
12278  case $host_os in
12279  freebsd2.*)
12280    shlibpath_overrides_runpath=yes
12281    ;;
12282  freebsd3.[01]* | freebsdelf3.[01]*)
12283    shlibpath_overrides_runpath=yes
12284    hardcode_into_libs=yes
12285    ;;
12286  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12287  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12288    shlibpath_overrides_runpath=no
12289    hardcode_into_libs=yes
12290    ;;
12291  *) # from 4.6 on, and DragonFly
12292    shlibpath_overrides_runpath=yes
12293    hardcode_into_libs=yes
12294    ;;
12295  esac
12296  ;;
12297
12298haiku*)
12299  version_type=linux # correct to gnu/linux during the next big refactor
12300  need_lib_prefix=no
12301  need_version=no
12302  dynamic_linker="$host_os runtime_loader"
12303  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304  soname_spec='$libname$release$shared_ext$major'
12305  shlibpath_var=LIBRARY_PATH
12306  shlibpath_overrides_runpath=no
12307  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12308  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12309  hardcode_into_libs=no
12310  ;;
12311
12312hpux9* | hpux10* | hpux11*)
12313  # Give a soname corresponding to the major version so that dld.sl refuses to
12314  # link against other versions.
12315  version_type=sunos
12316  need_lib_prefix=no
12317  need_version=no
12318  case $host_cpu in
12319  ia64*)
12320    shrext_cmds='.so'
12321    hardcode_into_libs=yes
12322    dynamic_linker="$host_os dld.so"
12323    shlibpath_var=LD_LIBRARY_PATH
12324    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12325    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12326    soname_spec='$libname$release$shared_ext$major'
12327    if test 32 = "$HPUX_IA64_MODE"; then
12328      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12329      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12330    else
12331      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12332      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12333    fi
12334    ;;
12335  hppa*64*)
12336    shrext_cmds='.sl'
12337    hardcode_into_libs=yes
12338    dynamic_linker="$host_os dld.sl"
12339    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12340    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12341    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342    soname_spec='$libname$release$shared_ext$major'
12343    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12344    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12345    ;;
12346  *)
12347    shrext_cmds='.sl'
12348    dynamic_linker="$host_os dld.sl"
12349    shlibpath_var=SHLIB_PATH
12350    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12351    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12352    soname_spec='$libname$release$shared_ext$major'
12353    ;;
12354  esac
12355  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12356  postinstall_cmds='chmod 555 $lib'
12357  # or fails outright, so override atomically:
12358  install_override_mode=555
12359  ;;
12360
12361interix[3-9]*)
12362  version_type=linux # correct to gnu/linux during the next big refactor
12363  need_lib_prefix=no
12364  need_version=no
12365  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366  soname_spec='$libname$release$shared_ext$major'
12367  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12368  shlibpath_var=LD_LIBRARY_PATH
12369  shlibpath_overrides_runpath=no
12370  hardcode_into_libs=yes
12371  ;;
12372
12373irix5* | irix6* | nonstopux*)
12374  case $host_os in
12375    nonstopux*) version_type=nonstopux ;;
12376    *)
12377	if test yes = "$lt_cv_prog_gnu_ld"; then
12378		version_type=linux # correct to gnu/linux during the next big refactor
12379	else
12380		version_type=irix
12381	fi ;;
12382  esac
12383  need_lib_prefix=no
12384  need_version=no
12385  soname_spec='$libname$release$shared_ext$major'
12386  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12387  case $host_os in
12388  irix5* | nonstopux*)
12389    libsuff= shlibsuff=
12390    ;;
12391  *)
12392    case $LD in # libtool.m4 will add one of these switches to LD
12393    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12394      libsuff= shlibsuff= libmagic=32-bit;;
12395    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12396      libsuff=32 shlibsuff=N32 libmagic=N32;;
12397    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12398      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12399    *) libsuff= shlibsuff= libmagic=never-match;;
12400    esac
12401    ;;
12402  esac
12403  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12404  shlibpath_overrides_runpath=no
12405  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12406  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12407  hardcode_into_libs=yes
12408  ;;
12409
12410# No shared lib support for Linux oldld, aout, or coff.
12411linux*oldld* | linux*aout* | linux*coff*)
12412  dynamic_linker=no
12413  ;;
12414
12415linux*android*)
12416  version_type=none # Android doesn't support versioned libraries.
12417  need_lib_prefix=no
12418  need_version=no
12419  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12420  soname_spec='$libname$release$shared_ext'
12421  finish_cmds=
12422  shlibpath_var=LD_LIBRARY_PATH
12423  shlibpath_overrides_runpath=yes
12424
12425  # This implies no fast_install, which is unacceptable.
12426  # Some rework will be needed to allow for fast_install
12427  # before this can be enabled.
12428  hardcode_into_libs=yes
12429
12430  dynamic_linker='Android linker'
12431  # -rpath works at least for libraries that are not overridden by
12432  # libraries installed in system locations.
12433  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12434  ;;
12435
12436# This must be glibc/ELF.
12437linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12438  version_type=linux # correct to gnu/linux during the next big refactor
12439  need_lib_prefix=no
12440  need_version=no
12441  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12442  soname_spec='$libname$release$shared_ext$major'
12443  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12444  shlibpath_var=LD_LIBRARY_PATH
12445  shlibpath_overrides_runpath=no
12446
12447  # Some binutils ld are patched to set DT_RUNPATH
12448  if test ${lt_cv_shlibpath_overrides_runpath+y}
12449then :
12450  printf %s "(cached) " >&6
12451else case e in #(
12452  e) lt_cv_shlibpath_overrides_runpath=no
12453    save_LDFLAGS=$LDFLAGS
12454    save_libdir=$libdir
12455    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12456	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12457    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h.  */
12459
12460int
12461main (void)
12462{
12463
12464  ;
12465  return 0;
12466}
12467_ACEOF
12468if ac_fn_c_try_link "$LINENO"
12469then :
12470  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12471then :
12472  lt_cv_shlibpath_overrides_runpath=yes
12473fi
12474fi
12475rm -f core conftest.err conftest.$ac_objext conftest.beam \
12476    conftest$ac_exeext conftest.$ac_ext
12477    LDFLAGS=$save_LDFLAGS
12478    libdir=$save_libdir
12479     ;;
12480esac
12481fi
12482
12483  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12484
12485  # This implies no fast_install, which is unacceptable.
12486  # Some rework will be needed to allow for fast_install
12487  # before this can be enabled.
12488  hardcode_into_libs=yes
12489
12490  # Ideally, we could use ldconfig to report *all* directories which are
12491  # searched for libraries, however this is still not possible.  Aside from not
12492  # being certain /sbin/ldconfig is available, command
12493  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12494  # even though it is searched at run-time.  Try to do the best guess by
12495  # appending ld.so.conf contents (and includes) to the search path.
12496  if test -f /etc/ld.so.conf; then
12497    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' ' '`
12498    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12499  fi
12500
12501  # We used to test for /lib/ld.so.1 and disable shared libraries on
12502  # powerpc, because MkLinux only supported shared libraries with the
12503  # GNU dynamic linker.  Since this was broken with cross compilers,
12504  # most powerpc-linux boxes support dynamic linking these days and
12505  # people can always --disable-shared, the test was removed, and we
12506  # assume the GNU/Linux dynamic linker is in use.
12507  dynamic_linker='GNU/Linux ld.so'
12508  ;;
12509
12510netbsdelf*-gnu)
12511  version_type=linux
12512  need_lib_prefix=no
12513  need_version=no
12514  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12515  soname_spec='$libname$release$shared_ext$major'
12516  shlibpath_var=LD_LIBRARY_PATH
12517  shlibpath_overrides_runpath=no
12518  hardcode_into_libs=yes
12519  dynamic_linker='NetBSD ld.elf_so'
12520  ;;
12521
12522netbsd*)
12523  version_type=sunos
12524  need_lib_prefix=no
12525  need_version=no
12526  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12527    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12528    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12529    dynamic_linker='NetBSD (a.out) ld.so'
12530  else
12531    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12532    soname_spec='$libname$release$shared_ext$major'
12533    dynamic_linker='NetBSD ld.elf_so'
12534  fi
12535  shlibpath_var=LD_LIBRARY_PATH
12536  shlibpath_overrides_runpath=yes
12537  hardcode_into_libs=yes
12538  ;;
12539
12540*-mlibc)
12541  version_type=linux # correct to gnu/linux during the next big refactor
12542  need_lib_prefix=no
12543  need_version=no
12544  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12545  soname_spec='$libname$release$shared_ext$major'
12546  dynamic_linker='mlibc ld.so'
12547  shlibpath_var=LD_LIBRARY_PATH
12548  shlibpath_overrides_runpath=no
12549  hardcode_into_libs=yes
12550  ;;
12551
12552newsos6)
12553  version_type=linux # correct to gnu/linux during the next big refactor
12554  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12555  shlibpath_var=LD_LIBRARY_PATH
12556  shlibpath_overrides_runpath=yes
12557  ;;
12558
12559*nto* | *qnx*)
12560  version_type=qnx
12561  need_lib_prefix=no
12562  need_version=no
12563  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12564  soname_spec='$libname$release$shared_ext$major'
12565  shlibpath_var=LD_LIBRARY_PATH
12566  shlibpath_overrides_runpath=no
12567  hardcode_into_libs=yes
12568  dynamic_linker='ldqnx.so'
12569  ;;
12570
12571openbsd*)
12572  version_type=sunos
12573  sys_lib_dlsearch_path_spec=/usr/lib
12574  need_lib_prefix=no
12575  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12576    need_version=no
12577  else
12578    need_version=yes
12579  fi
12580  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12581  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12582  shlibpath_var=LD_LIBRARY_PATH
12583  shlibpath_overrides_runpath=yes
12584  ;;
12585
12586os2*)
12587  libname_spec='$name'
12588  version_type=windows
12589  shrext_cmds=.dll
12590  need_version=no
12591  need_lib_prefix=no
12592  # OS/2 can only load a DLL with a base name of 8 characters or less.
12593  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12594    v=$($ECHO $release$versuffix | tr -d .-);
12595    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12596    $ECHO $n$v`$shared_ext'
12597  library_names_spec='${libname}_dll.$libext'
12598  dynamic_linker='OS/2 ld.exe'
12599  shlibpath_var=BEGINLIBPATH
12600  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12601  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12602  postinstall_cmds='base_file=`basename \$file`~
12603    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12604    dldir=$destdir/`dirname \$dlpath`~
12605    test -d \$dldir || mkdir -p \$dldir~
12606    $install_prog $dir/$dlname \$dldir/$dlname~
12607    chmod a+x \$dldir/$dlname~
12608    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12609      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12610    fi'
12611  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12612    dlpath=$dir/\$dldll~
12613    $RM \$dlpath'
12614  ;;
12615
12616osf3* | osf4* | osf5*)
12617  version_type=osf
12618  need_lib_prefix=no
12619  need_version=no
12620  soname_spec='$libname$release$shared_ext$major'
12621  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12622  shlibpath_var=LD_LIBRARY_PATH
12623  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12624  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12625  ;;
12626
12627rdos*)
12628  dynamic_linker=no
12629  ;;
12630
12631serenity*)
12632  version_type=linux # correct to gnu/linux during the next big refactor
12633  need_lib_prefix=no
12634  need_version=no
12635  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12636  soname_spec='$libname$release$shared_ext$major'
12637  shlibpath_var=LD_LIBRARY_PATH
12638  shlibpath_overrides_runpath=no
12639  dynamic_linker='SerenityOS LibELF'
12640  ;;
12641
12642solaris*)
12643  version_type=linux # correct to gnu/linux during the next big refactor
12644  need_lib_prefix=no
12645  need_version=no
12646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647  soname_spec='$libname$release$shared_ext$major'
12648  shlibpath_var=LD_LIBRARY_PATH
12649  shlibpath_overrides_runpath=yes
12650  hardcode_into_libs=yes
12651  # ldd complains unless libraries are executable
12652  postinstall_cmds='chmod +x $lib'
12653  ;;
12654
12655sunos4*)
12656  version_type=sunos
12657  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12658  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12659  shlibpath_var=LD_LIBRARY_PATH
12660  shlibpath_overrides_runpath=yes
12661  if test yes = "$with_gnu_ld"; then
12662    need_lib_prefix=no
12663  fi
12664  need_version=yes
12665  ;;
12666
12667sysv4 | sysv4.3*)
12668  version_type=linux # correct to gnu/linux during the next big refactor
12669  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12670  soname_spec='$libname$release$shared_ext$major'
12671  shlibpath_var=LD_LIBRARY_PATH
12672  case $host_vendor in
12673    sni)
12674      shlibpath_overrides_runpath=no
12675      need_lib_prefix=no
12676      runpath_var=LD_RUN_PATH
12677      ;;
12678    siemens)
12679      need_lib_prefix=no
12680      ;;
12681    motorola)
12682      need_lib_prefix=no
12683      need_version=no
12684      shlibpath_overrides_runpath=no
12685      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12686      ;;
12687  esac
12688  ;;
12689
12690sysv4*MP*)
12691  if test -d /usr/nec; then
12692    version_type=linux # correct to gnu/linux during the next big refactor
12693    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12694    soname_spec='$libname$shared_ext.$major'
12695    shlibpath_var=LD_LIBRARY_PATH
12696  fi
12697  ;;
12698
12699sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12700  version_type=sco
12701  need_lib_prefix=no
12702  need_version=no
12703  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12704  soname_spec='$libname$release$shared_ext$major'
12705  shlibpath_var=LD_LIBRARY_PATH
12706  shlibpath_overrides_runpath=yes
12707  hardcode_into_libs=yes
12708  if test yes = "$with_gnu_ld"; then
12709    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12710  else
12711    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12712    case $host_os in
12713      sco3.2v5*)
12714        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12715	;;
12716    esac
12717  fi
12718  sys_lib_dlsearch_path_spec='/usr/lib'
12719  ;;
12720
12721tpf*)
12722  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12723  version_type=linux # correct to gnu/linux during the next big refactor
12724  need_lib_prefix=no
12725  need_version=no
12726  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12727  shlibpath_var=LD_LIBRARY_PATH
12728  shlibpath_overrides_runpath=no
12729  hardcode_into_libs=yes
12730  ;;
12731
12732uts4*)
12733  version_type=linux # correct to gnu/linux during the next big refactor
12734  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12735  soname_spec='$libname$release$shared_ext$major'
12736  shlibpath_var=LD_LIBRARY_PATH
12737  ;;
12738
12739emscripten*)
12740  version_type=none
12741  need_lib_prefix=no
12742  need_version=no
12743  library_names_spec='$libname$release$shared_ext'
12744  soname_spec='$libname$release$shared_ext'
12745  finish_cmds=
12746  dynamic_linker="Emscripten linker"
12747  lt_prog_compiler_wl=
12748lt_prog_compiler_pic=
12749lt_prog_compiler_static=
12750
12751
12752  if test yes = "$GCC"; then
12753    lt_prog_compiler_wl='-Wl,'
12754    lt_prog_compiler_static='-static'
12755
12756    case $host_os in
12757      aix*)
12758      # All AIX code is PIC.
12759      if test ia64 = "$host_cpu"; then
12760	# AIX 5 now supports IA64 processor
12761	lt_prog_compiler_static='-Bstatic'
12762      fi
12763      lt_prog_compiler_pic='-fPIC'
12764      ;;
12765
12766    amigaos*)
12767      case $host_cpu in
12768      powerpc)
12769            # see comment about AmigaOS4 .so support
12770            lt_prog_compiler_pic='-fPIC'
12771        ;;
12772      m68k)
12773            # FIXME: we need at least 68020 code to build shared libraries, but
12774            # adding the '-m68020' flag to GCC prevents building anything better,
12775            # like '-m68040'.
12776            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12777        ;;
12778      esac
12779      ;;
12780
12781    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12782      # PIC is the default for these OSes.
12783      ;;
12784
12785    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12786      # This hack is so that the source file can tell whether it is being
12787      # built for inclusion in a dll (and should export symbols for example).
12788      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12789      # (--disable-auto-import) libraries
12790      lt_prog_compiler_pic='-DDLL_EXPORT'
12791      case $host_os in
12792      os2*)
12793	lt_prog_compiler_static='$wl-static'
12794	;;
12795      esac
12796      ;;
12797
12798    darwin* | rhapsody*)
12799      # PIC is the default on this platform
12800      # Common symbols not allowed in MH_DYLIB files
12801      lt_prog_compiler_pic='-fno-common'
12802      ;;
12803
12804    haiku*)
12805      # PIC is the default for Haiku.
12806      # The "-static" flag exists, but is broken.
12807      lt_prog_compiler_static=
12808      ;;
12809
12810    hpux*)
12811      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12812      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12813      # sets the default TLS model and affects inlining.
12814      case $host_cpu in
12815      hppa*64*)
12816	# +Z the default
12817	;;
12818      *)
12819	lt_prog_compiler_pic='-fPIC'
12820	;;
12821      esac
12822      ;;
12823
12824    interix[3-9]*)
12825      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12826      # Instead, we relocate shared libraries at runtime.
12827      ;;
12828
12829    msdosdjgpp*)
12830      # Just because we use GCC doesn't mean we suddenly get shared libraries
12831      # on systems that don't support them.
12832      lt_prog_compiler_can_build_shared=no
12833      enable_shared=no
12834      ;;
12835
12836    *nto* | *qnx*)
12837      # QNX uses GNU C++, but need to define -shared option too, otherwise
12838      # it will coredump.
12839      lt_prog_compiler_pic='-fPIC -shared'
12840      ;;
12841
12842    sysv4*MP*)
12843      if test -d /usr/nec; then
12844	lt_prog_compiler_pic=-Kconform_pic
12845      fi
12846      ;;
12847
12848    *)
12849      lt_prog_compiler_pic='-fPIC'
12850      ;;
12851    esac
12852
12853    case $cc_basename in
12854    nvcc*) # Cuda Compiler Driver 2.2
12855      lt_prog_compiler_wl='-Xlinker '
12856      if test -n "$lt_prog_compiler_pic"; then
12857        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12858      fi
12859      ;;
12860    esac
12861  else
12862    # PORTME Check for flag to pass linker flags through the system compiler.
12863    case $host_os in
12864    aix*)
12865      lt_prog_compiler_wl='-Wl,'
12866      if test ia64 = "$host_cpu"; then
12867	# AIX 5 now supports IA64 processor
12868	lt_prog_compiler_static='-Bstatic'
12869      else
12870	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12871      fi
12872      ;;
12873
12874    darwin* | rhapsody*)
12875      # PIC is the default on this platform
12876      # Common symbols not allowed in MH_DYLIB files
12877      lt_prog_compiler_pic='-fno-common'
12878      case $cc_basename in
12879      nagfor*)
12880        # NAG Fortran compiler
12881        lt_prog_compiler_wl='-Wl,-Wl,,'
12882        lt_prog_compiler_pic='-PIC'
12883        lt_prog_compiler_static='-Bstatic'
12884        ;;
12885      esac
12886      ;;
12887
12888    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12889      # This hack is so that the source file can tell whether it is being
12890      # built for inclusion in a dll (and should export symbols for example).
12891      lt_prog_compiler_pic='-DDLL_EXPORT'
12892      case $host_os in
12893      os2*)
12894	lt_prog_compiler_static='$wl-static'
12895	;;
12896      esac
12897      ;;
12898
12899    hpux9* | hpux10* | hpux11*)
12900      lt_prog_compiler_wl='-Wl,'
12901      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12902      # not for PA HP-UX.
12903      case $host_cpu in
12904      hppa*64*|ia64*)
12905	# +Z the default
12906	;;
12907      *)
12908	lt_prog_compiler_pic='+Z'
12909	;;
12910      esac
12911      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12912      lt_prog_compiler_static='$wl-a ${wl}archive'
12913      ;;
12914
12915    irix5* | irix6* | nonstopux*)
12916      lt_prog_compiler_wl='-Wl,'
12917      # PIC (with -KPIC) is the default.
12918      lt_prog_compiler_static='-non_shared'
12919      ;;
12920
12921    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*)
12922      case $cc_basename in
12923      # old Intel for x86_64, which still supported -KPIC.
12924      ecc*)
12925	lt_prog_compiler_wl='-Wl,'
12926	lt_prog_compiler_pic='-KPIC'
12927	lt_prog_compiler_static='-static'
12928        ;;
12929      *flang* | ftn | f18* | f95*)
12930        # Flang compiler.
12931	lt_prog_compiler_wl='-Wl,'
12932	lt_prog_compiler_pic='-fPIC'
12933	lt_prog_compiler_static='-static'
12934        ;;
12935      # icc used to be incompatible with GCC.
12936      # ICC 10 doesn't accept -KPIC any more.
12937      icc* | ifort*)
12938	lt_prog_compiler_wl='-Wl,'
12939	lt_prog_compiler_pic='-fPIC'
12940	lt_prog_compiler_static='-static'
12941        ;;
12942      # Lahey Fortran 8.1.
12943      lf95*)
12944	lt_prog_compiler_wl='-Wl,'
12945	lt_prog_compiler_pic='--shared'
12946	lt_prog_compiler_static='--static'
12947	;;
12948      nagfor*)
12949	# NAG Fortran compiler
12950	lt_prog_compiler_wl='-Wl,-Wl,,'
12951	lt_prog_compiler_pic='-PIC'
12952	lt_prog_compiler_static='-Bstatic'
12953	;;
12954      tcc*)
12955	# Fabrice Bellard et al's Tiny C Compiler
12956	lt_prog_compiler_wl='-Wl,'
12957	lt_prog_compiler_pic='-fPIC'
12958	lt_prog_compiler_static='-static'
12959	;;
12960      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12961        # Portland Group compilers (*not* the Pentium gcc compiler,
12962	# which looks to be a dead project)
12963	lt_prog_compiler_wl='-Wl,'
12964	lt_prog_compiler_pic='-fpic'
12965	lt_prog_compiler_static='-Bstatic'
12966        ;;
12967      ccc*)
12968        lt_prog_compiler_wl='-Wl,'
12969        # All Alpha code is PIC.
12970        lt_prog_compiler_static='-non_shared'
12971        ;;
12972      xl* | bgxl* | bgf* | mpixl*)
12973	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12974	lt_prog_compiler_wl='-Wl,'
12975	lt_prog_compiler_pic='-qpic'
12976	lt_prog_compiler_static='-qstaticlink'
12977	;;
12978      *)
12979	case `$CC -V 2>&1 | $SED 5q` in
12980	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12981	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12982	  lt_prog_compiler_pic='-KPIC'
12983	  lt_prog_compiler_static='-Bstatic'
12984	  lt_prog_compiler_wl=''
12985	  ;;
12986	*Sun\ F* | *Sun*Fortran*)
12987	  lt_prog_compiler_pic='-KPIC'
12988	  lt_prog_compiler_static='-Bstatic'
12989	  lt_prog_compiler_wl='-Qoption ld '
12990	  ;;
12991	*Sun\ C*)
12992	  # Sun C 5.9
12993	  lt_prog_compiler_pic='-KPIC'
12994	  lt_prog_compiler_static='-Bstatic'
12995	  lt_prog_compiler_wl='-Wl,'
12996	  ;;
12997        *Intel*\ [CF]*Compiler*)
12998	  lt_prog_compiler_wl='-Wl,'
12999	  lt_prog_compiler_pic='-fPIC'
13000	  lt_prog_compiler_static='-static'
13001	  ;;
13002	*Portland\ Group*)
13003	  lt_prog_compiler_wl='-Wl,'
13004	  lt_prog_compiler_pic='-fpic'
13005	  lt_prog_compiler_static='-Bstatic'
13006	  ;;
13007	esac
13008	;;
13009      esac
13010      ;;
13011
13012    newsos6)
13013      lt_prog_compiler_pic='-KPIC'
13014      lt_prog_compiler_static='-Bstatic'
13015      ;;
13016
13017    *-mlibc)
13018      lt_prog_compiler_wl='-Wl,'
13019      lt_prog_compiler_pic='-fPIC'
13020      lt_prog_compiler_static='-static'
13021      ;;
13022
13023    *nto* | *qnx*)
13024      # QNX uses GNU C++, but need to define -shared option too, otherwise
13025      # it will coredump.
13026      lt_prog_compiler_pic='-fPIC -shared'
13027      ;;
13028
13029    osf3* | osf4* | osf5*)
13030      lt_prog_compiler_wl='-Wl,'
13031      # All OSF/1 code is PIC.
13032      lt_prog_compiler_static='-non_shared'
13033      ;;
13034
13035    rdos*)
13036      lt_prog_compiler_static='-non_shared'
13037      ;;
13038
13039    serenity*)
13040      ;;
13041
13042    solaris*)
13043      lt_prog_compiler_pic='-KPIC'
13044      lt_prog_compiler_static='-Bstatic'
13045      case $cc_basename in
13046      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13047	lt_prog_compiler_wl='-Qoption ld ';;
13048      *)
13049	lt_prog_compiler_wl='-Wl,';;
13050      esac
13051      ;;
13052
13053    sunos4*)
13054      lt_prog_compiler_wl='-Qoption ld '
13055      lt_prog_compiler_pic='-PIC'
13056      lt_prog_compiler_static='-Bstatic'
13057      ;;
13058
13059    sysv4 | sysv4.2uw2* | sysv4.3*)
13060      lt_prog_compiler_wl='-Wl,'
13061      lt_prog_compiler_pic='-KPIC'
13062      lt_prog_compiler_static='-Bstatic'
13063      ;;
13064
13065    sysv4*MP*)
13066      if test -d /usr/nec; then
13067	lt_prog_compiler_pic='-Kconform_pic'
13068	lt_prog_compiler_static='-Bstatic'
13069      fi
13070      ;;
13071
13072    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13073      lt_prog_compiler_wl='-Wl,'
13074      lt_prog_compiler_pic='-KPIC'
13075      lt_prog_compiler_static='-Bstatic'
13076      ;;
13077
13078    unicos*)
13079      lt_prog_compiler_wl='-Wl,'
13080      lt_prog_compiler_can_build_shared=no
13081      ;;
13082
13083    uts4*)
13084      lt_prog_compiler_pic='-pic'
13085      lt_prog_compiler_static='-Bstatic'
13086      ;;
13087
13088    *)
13089      lt_prog_compiler_can_build_shared=no
13090      ;;
13091    esac
13092  fi
13093
13094case $host_os in
13095  # For platforms that do not support PIC, -DPIC is meaningless:
13096  *djgpp*)
13097    lt_prog_compiler_pic=
13098    ;;
13099  *)
13100    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13101    ;;
13102esac
13103
13104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13105printf %s "checking for $compiler option to produce PIC... " >&6; }
13106if test ${lt_cv_prog_compiler_pic+y}
13107then :
13108  printf %s "(cached) " >&6
13109else case e in #(
13110  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13111esac
13112fi
13113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13114printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13115lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13116
13117#
13118# Check to make sure the PIC flag actually works.
13119#
13120if test -n "$lt_prog_compiler_pic"; then
13121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13122printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13123if test ${lt_cv_prog_compiler_pic_works+y}
13124then :
13125  printf %s "(cached) " >&6
13126else case e in #(
13127  e) lt_cv_prog_compiler_pic_works=no
13128   ac_outfile=conftest.$ac_objext
13129   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13130   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13131   # Insert the option either (1) after the last *FLAGS variable, or
13132   # (2) before a word containing "conftest.", or (3) at the end.
13133   # Note that $ac_compile itself does not contain backslashes and begins
13134   # with a dollar sign (not a hyphen), so the echo should work correctly.
13135   # The option is referenced via a variable to avoid confusing sed.
13136   lt_compile=`echo "$ac_compile" | $SED \
13137   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13138   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13139   -e 's:$: $lt_compiler_flag:'`
13140   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13141   (eval "$lt_compile" 2>conftest.err)
13142   ac_status=$?
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   if (exit $ac_status) && test -s "$ac_outfile"; then
13146     # The compiler can only warn and ignore the option if not recognized
13147     # So say no if there are warnings other than the usual output.
13148     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13149     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13150     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13151       lt_cv_prog_compiler_pic_works=yes
13152     fi
13153   fi
13154   $RM conftest*
13155 ;;
13156esac
13157fi
13158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13159printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13160
13161if test yes = "$lt_cv_prog_compiler_pic_works"; then
13162    case $lt_prog_compiler_pic in
13163     "" | " "*) ;;
13164     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13165     esac
13166else
13167    lt_prog_compiler_pic=
13168     lt_prog_compiler_can_build_shared=no
13169fi
13170
13171fi
13172
13173
13174
13175
13176
13177#
13178# Check to make sure the static flag actually works.
13179#
13180wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13182printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13183if test ${lt_cv_prog_compiler_static_works+y}
13184then :
13185  printf %s "(cached) " >&6
13186else case e in #(
13187  e) lt_cv_prog_compiler_static_works=no
13188   save_LDFLAGS=$LDFLAGS
13189   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13190   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13191   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13192     # The linker can only warn and ignore the option if not recognized
13193     # So say no if there are warnings
13194     if test -s conftest.err; then
13195       # Append any errors to the config.log.
13196       cat conftest.err 1>&5
13197       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13198       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13199       if diff conftest.exp conftest.er2 >/dev/null; then
13200         lt_cv_prog_compiler_static_works=yes
13201       fi
13202     else
13203       lt_cv_prog_compiler_static_works=yes
13204     fi
13205   fi
13206   $RM -r conftest*
13207   LDFLAGS=$save_LDFLAGS
13208 ;;
13209esac
13210fi
13211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13212printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13213
13214if test yes = "$lt_cv_prog_compiler_static_works"; then
13215    :
13216else
13217    lt_prog_compiler_static=
13218fi
13219
13220
13221
13222='-fPIC'
13223  archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13224  archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13225  archive_cmds_need_lc=no
13226  no_undefined_flag=
13227  ;;
13228
13229*)
13230  dynamic_linker=no
13231  ;;
13232esac
13233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13234printf "%s\n" "$dynamic_linker" >&6; }
13235test no = "$dynamic_linker" && can_build_shared=no
13236
13237variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13238if test yes = "$GCC"; then
13239  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13240fi
13241
13242if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13243  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13244fi
13245
13246if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13247  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13248fi
13249
13250# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13251configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13252
13253# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13254func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13255
13256# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13257configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13356printf %s "checking how to hardcode library paths into programs... " >&6; }
13357hardcode_action=
13358if test -n "$hardcode_libdir_flag_spec" ||
13359   test -n "$runpath_var" ||
13360   test yes = "$hardcode_automatic"; then
13361
13362  # We can hardcode non-existent directories.
13363  if test no != "$hardcode_direct" &&
13364     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13365     # have to relink, otherwise we might link with an installed library
13366     # when we should be linking with a yet-to-be-installed one
13367     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13368     test no != "$hardcode_minus_L"; then
13369    # Linking always hardcodes the temporary library directory.
13370    hardcode_action=relink
13371  else
13372    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13373    hardcode_action=immediate
13374  fi
13375else
13376  # We cannot hardcode anything, or else we can only hardcode existing
13377  # directories.
13378  hardcode_action=unsupported
13379fi
13380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13381printf "%s\n" "$hardcode_action" >&6; }
13382
13383if test relink = "$hardcode_action" ||
13384   test yes = "$inherit_rpath"; then
13385  # Fast installation is not supported
13386  enable_fast_install=no
13387elif test yes = "$shlibpath_overrides_runpath" ||
13388     test no = "$enable_shared"; then
13389  # Fast installation is not necessary
13390  enable_fast_install=needless
13391fi
13392
13393
13394
13395
13396
13397
13398  if test yes != "$enable_dlopen"; then
13399  enable_dlopen=unknown
13400  enable_dlopen_self=unknown
13401  enable_dlopen_self_static=unknown
13402else
13403  lt_cv_dlopen=no
13404  lt_cv_dlopen_libs=
13405
13406  case $host_os in
13407  beos*)
13408    lt_cv_dlopen=load_add_on
13409    lt_cv_dlopen_libs=
13410    lt_cv_dlopen_self=yes
13411    ;;
13412
13413  mingw* | windows* | pw32* | cegcc*)
13414    lt_cv_dlopen=LoadLibrary
13415    lt_cv_dlopen_libs=
13416    ;;
13417
13418  cygwin*)
13419    lt_cv_dlopen=dlopen
13420    lt_cv_dlopen_libs=
13421    ;;
13422
13423  darwin*)
13424    # if libdl is installed we need to link against it
13425    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13426printf %s "checking for dlopen in -ldl... " >&6; }
13427if test ${ac_cv_lib_dl_dlopen+y}
13428then :
13429  printf %s "(cached) " >&6
13430else case e in #(
13431  e) ac_check_lib_save_LIBS=$LIBS
13432LIBS="-ldl  $LIBS"
13433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434/* end confdefs.h.  */
13435
13436/* Override any GCC internal prototype to avoid an error.
13437   Use char because int might match the return type of a GCC
13438   builtin and then its argument prototype would still apply.
13439   The 'extern "C"' is for builds by C++ compilers;
13440   although this is not generally supported in C code supporting it here
13441   has little cost and some practical benefit (sr 110532).  */
13442#ifdef __cplusplus
13443extern "C"
13444#endif
13445char dlopen (void);
13446int
13447main (void)
13448{
13449return dlopen ();
13450  ;
13451  return 0;
13452}
13453_ACEOF
13454if ac_fn_c_try_link "$LINENO"
13455then :
13456  ac_cv_lib_dl_dlopen=yes
13457else case e in #(
13458  e) ac_cv_lib_dl_dlopen=no ;;
13459esac
13460fi
13461rm -f core conftest.err conftest.$ac_objext conftest.beam \
13462    conftest$ac_exeext conftest.$ac_ext
13463LIBS=$ac_check_lib_save_LIBS ;;
13464esac
13465fi
13466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13467printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13468if test "x$ac_cv_lib_dl_dlopen" = xyes
13469then :
13470  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13471else case e in #(
13472  e)
13473    lt_cv_dlopen=dyld
13474    lt_cv_dlopen_libs=
13475    lt_cv_dlopen_self=yes
13476     ;;
13477esac
13478fi
13479
13480    ;;
13481
13482  tpf*)
13483    # Don't try to run any link tests for TPF.  We know it's impossible
13484    # because TPF is a cross-compiler, and we know how we open DSOs.
13485    lt_cv_dlopen=dlopen
13486    lt_cv_dlopen_libs=
13487    lt_cv_dlopen_self=no
13488    ;;
13489
13490  *)
13491    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13492if test "x$ac_cv_func_shl_load" = xyes
13493then :
13494  lt_cv_dlopen=shl_load
13495else case e in #(
13496  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13497printf %s "checking for shl_load in -ldld... " >&6; }
13498if test ${ac_cv_lib_dld_shl_load+y}
13499then :
13500  printf %s "(cached) " >&6
13501else case e in #(
13502  e) ac_check_lib_save_LIBS=$LIBS
13503LIBS="-ldld  $LIBS"
13504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h.  */
13506
13507/* Override any GCC internal prototype to avoid an error.
13508   Use char because int might match the return type of a GCC
13509   builtin and then its argument prototype would still apply.
13510   The 'extern "C"' is for builds by C++ compilers;
13511   although this is not generally supported in C code supporting it here
13512   has little cost and some practical benefit (sr 110532).  */
13513#ifdef __cplusplus
13514extern "C"
13515#endif
13516char shl_load (void);
13517int
13518main (void)
13519{
13520return shl_load ();
13521  ;
13522  return 0;
13523}
13524_ACEOF
13525if ac_fn_c_try_link "$LINENO"
13526then :
13527  ac_cv_lib_dld_shl_load=yes
13528else case e in #(
13529  e) ac_cv_lib_dld_shl_load=no ;;
13530esac
13531fi
13532rm -f core conftest.err conftest.$ac_objext conftest.beam \
13533    conftest$ac_exeext conftest.$ac_ext
13534LIBS=$ac_check_lib_save_LIBS ;;
13535esac
13536fi
13537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13538printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13539if test "x$ac_cv_lib_dld_shl_load" = xyes
13540then :
13541  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13542else case e in #(
13543  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13544if test "x$ac_cv_func_dlopen" = xyes
13545then :
13546  lt_cv_dlopen=dlopen
13547else case e in #(
13548  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13549printf %s "checking for dlopen in -ldl... " >&6; }
13550if test ${ac_cv_lib_dl_dlopen+y}
13551then :
13552  printf %s "(cached) " >&6
13553else case e in #(
13554  e) ac_check_lib_save_LIBS=$LIBS
13555LIBS="-ldl  $LIBS"
13556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557/* end confdefs.h.  */
13558
13559/* Override any GCC internal prototype to avoid an error.
13560   Use char because int might match the return type of a GCC
13561   builtin and then its argument prototype would still apply.
13562   The 'extern "C"' is for builds by C++ compilers;
13563   although this is not generally supported in C code supporting it here
13564   has little cost and some practical benefit (sr 110532).  */
13565#ifdef __cplusplus
13566extern "C"
13567#endif
13568char dlopen (void);
13569int
13570main (void)
13571{
13572return dlopen ();
13573  ;
13574  return 0;
13575}
13576_ACEOF
13577if ac_fn_c_try_link "$LINENO"
13578then :
13579  ac_cv_lib_dl_dlopen=yes
13580else case e in #(
13581  e) ac_cv_lib_dl_dlopen=no ;;
13582esac
13583fi
13584rm -f core conftest.err conftest.$ac_objext conftest.beam \
13585    conftest$ac_exeext conftest.$ac_ext
13586LIBS=$ac_check_lib_save_LIBS ;;
13587esac
13588fi
13589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13590printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13591if test "x$ac_cv_lib_dl_dlopen" = xyes
13592then :
13593  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13594else case e in #(
13595  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13596printf %s "checking for dlopen in -lsvld... " >&6; }
13597if test ${ac_cv_lib_svld_dlopen+y}
13598then :
13599  printf %s "(cached) " >&6
13600else case e in #(
13601  e) ac_check_lib_save_LIBS=$LIBS
13602LIBS="-lsvld  $LIBS"
13603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604/* end confdefs.h.  */
13605
13606/* Override any GCC internal prototype to avoid an error.
13607   Use char because int might match the return type of a GCC
13608   builtin and then its argument prototype would still apply.
13609   The 'extern "C"' is for builds by C++ compilers;
13610   although this is not generally supported in C code supporting it here
13611   has little cost and some practical benefit (sr 110532).  */
13612#ifdef __cplusplus
13613extern "C"
13614#endif
13615char dlopen (void);
13616int
13617main (void)
13618{
13619return dlopen ();
13620  ;
13621  return 0;
13622}
13623_ACEOF
13624if ac_fn_c_try_link "$LINENO"
13625then :
13626  ac_cv_lib_svld_dlopen=yes
13627else case e in #(
13628  e) ac_cv_lib_svld_dlopen=no ;;
13629esac
13630fi
13631rm -f core conftest.err conftest.$ac_objext conftest.beam \
13632    conftest$ac_exeext conftest.$ac_ext
13633LIBS=$ac_check_lib_save_LIBS ;;
13634esac
13635fi
13636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13637printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13638if test "x$ac_cv_lib_svld_dlopen" = xyes
13639then :
13640  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13641else case e in #(
13642  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13643printf %s "checking for dld_link in -ldld... " >&6; }
13644if test ${ac_cv_lib_dld_dld_link+y}
13645then :
13646  printf %s "(cached) " >&6
13647else case e in #(
13648  e) ac_check_lib_save_LIBS=$LIBS
13649LIBS="-ldld  $LIBS"
13650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h.  */
13652
13653/* Override any GCC internal prototype to avoid an error.
13654   Use char because int might match the return type of a GCC
13655   builtin and then its argument prototype would still apply.
13656   The 'extern "C"' is for builds by C++ compilers;
13657   although this is not generally supported in C code supporting it here
13658   has little cost and some practical benefit (sr 110532).  */
13659#ifdef __cplusplus
13660extern "C"
13661#endif
13662char dld_link (void);
13663int
13664main (void)
13665{
13666return dld_link ();
13667  ;
13668  return 0;
13669}
13670_ACEOF
13671if ac_fn_c_try_link "$LINENO"
13672then :
13673  ac_cv_lib_dld_dld_link=yes
13674else case e in #(
13675  e) ac_cv_lib_dld_dld_link=no ;;
13676esac
13677fi
13678rm -f core conftest.err conftest.$ac_objext conftest.beam \
13679    conftest$ac_exeext conftest.$ac_ext
13680LIBS=$ac_check_lib_save_LIBS ;;
13681esac
13682fi
13683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13684printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13685if test "x$ac_cv_lib_dld_dld_link" = xyes
13686then :
13687  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13688fi
13689
13690	       ;;
13691esac
13692fi
13693
13694	     ;;
13695esac
13696fi
13697
13698	   ;;
13699esac
13700fi
13701
13702	 ;;
13703esac
13704fi
13705
13706       ;;
13707esac
13708fi
13709
13710    ;;
13711  esac
13712
13713  if test no = "$lt_cv_dlopen"; then
13714    enable_dlopen=no
13715  else
13716    enable_dlopen=yes
13717  fi
13718
13719  case $lt_cv_dlopen in
13720  dlopen)
13721    save_CPPFLAGS=$CPPFLAGS
13722    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13723
13724    save_LDFLAGS=$LDFLAGS
13725    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13726
13727    save_LIBS=$LIBS
13728    LIBS="$lt_cv_dlopen_libs $LIBS"
13729
13730    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13731printf %s "checking whether a program can dlopen itself... " >&6; }
13732if test ${lt_cv_dlopen_self+y}
13733then :
13734  printf %s "(cached) " >&6
13735else case e in #(
13736  e) 	  if test yes = "$cross_compiling"; then :
13737  lt_cv_dlopen_self=cross
13738else
13739  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13740  lt_status=$lt_dlunknown
13741  cat > conftest.$ac_ext <<_LT_EOF
13742#line $LINENO "configure"
13743#include "confdefs.h"
13744
13745#if HAVE_DLFCN_H
13746#include <dlfcn.h>
13747#endif
13748
13749#include <stdio.h>
13750
13751#ifdef RTLD_GLOBAL
13752#  define LT_DLGLOBAL		RTLD_GLOBAL
13753#else
13754#  ifdef DL_GLOBAL
13755#    define LT_DLGLOBAL		DL_GLOBAL
13756#  else
13757#    define LT_DLGLOBAL		0
13758#  endif
13759#endif
13760
13761/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13762   find out it does not work in some platform. */
13763#ifndef LT_DLLAZY_OR_NOW
13764#  ifdef RTLD_LAZY
13765#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13766#  else
13767#    ifdef DL_LAZY
13768#      define LT_DLLAZY_OR_NOW		DL_LAZY
13769#    else
13770#      ifdef RTLD_NOW
13771#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13772#      else
13773#        ifdef DL_NOW
13774#          define LT_DLLAZY_OR_NOW	DL_NOW
13775#        else
13776#          define LT_DLLAZY_OR_NOW	0
13777#        endif
13778#      endif
13779#    endif
13780#  endif
13781#endif
13782
13783/* When -fvisibility=hidden is used, assume the code has been annotated
13784   correspondingly for the symbols needed.  */
13785#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13786int fnord (void) __attribute__((visibility("default")));
13787#endif
13788
13789int fnord (void) { return 42; }
13790int main (void)
13791{
13792  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13793  int status = $lt_dlunknown;
13794
13795  if (self)
13796    {
13797      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13798      else
13799        {
13800	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13801          else puts (dlerror ());
13802	}
13803      /* dlclose (self); */
13804    }
13805  else
13806    puts (dlerror ());
13807
13808  return status;
13809}
13810_LT_EOF
13811  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13812  (eval $ac_link) 2>&5
13813  ac_status=$?
13814  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13815  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13816    (./conftest; exit; ) >&5 2>/dev/null
13817    lt_status=$?
13818    case x$lt_status in
13819      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13820      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13821      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13822    esac
13823  else :
13824    # compilation failed
13825    lt_cv_dlopen_self=no
13826  fi
13827fi
13828rm -fr conftest*
13829
13830     ;;
13831esac
13832fi
13833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13834printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13835
13836    if test yes = "$lt_cv_dlopen_self"; then
13837      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13838      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13839printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13840if test ${lt_cv_dlopen_self_static+y}
13841then :
13842  printf %s "(cached) " >&6
13843else case e in #(
13844  e) 	  if test yes = "$cross_compiling"; then :
13845  lt_cv_dlopen_self_static=cross
13846else
13847  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13848  lt_status=$lt_dlunknown
13849  cat > conftest.$ac_ext <<_LT_EOF
13850#line $LINENO "configure"
13851#include "confdefs.h"
13852
13853#if HAVE_DLFCN_H
13854#include <dlfcn.h>
13855#endif
13856
13857#include <stdio.h>
13858
13859#ifdef RTLD_GLOBAL
13860#  define LT_DLGLOBAL		RTLD_GLOBAL
13861#else
13862#  ifdef DL_GLOBAL
13863#    define LT_DLGLOBAL		DL_GLOBAL
13864#  else
13865#    define LT_DLGLOBAL		0
13866#  endif
13867#endif
13868
13869/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13870   find out it does not work in some platform. */
13871#ifndef LT_DLLAZY_OR_NOW
13872#  ifdef RTLD_LAZY
13873#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13874#  else
13875#    ifdef DL_LAZY
13876#      define LT_DLLAZY_OR_NOW		DL_LAZY
13877#    else
13878#      ifdef RTLD_NOW
13879#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13880#      else
13881#        ifdef DL_NOW
13882#          define LT_DLLAZY_OR_NOW	DL_NOW
13883#        else
13884#          define LT_DLLAZY_OR_NOW	0
13885#        endif
13886#      endif
13887#    endif
13888#  endif
13889#endif
13890
13891/* When -fvisibility=hidden is used, assume the code has been annotated
13892   correspondingly for the symbols needed.  */
13893#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13894int fnord (void) __attribute__((visibility("default")));
13895#endif
13896
13897int fnord (void) { return 42; }
13898int main (void)
13899{
13900  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13901  int status = $lt_dlunknown;
13902
13903  if (self)
13904    {
13905      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13906      else
13907        {
13908	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13909          else puts (dlerror ());
13910	}
13911      /* dlclose (self); */
13912    }
13913  else
13914    puts (dlerror ());
13915
13916  return status;
13917}
13918_LT_EOF
13919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13920  (eval $ac_link) 2>&5
13921  ac_status=$?
13922  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13924    (./conftest; exit; ) >&5 2>/dev/null
13925    lt_status=$?
13926    case x$lt_status in
13927      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13928      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13929      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13930    esac
13931  else :
13932    # compilation failed
13933    lt_cv_dlopen_self_static=no
13934  fi
13935fi
13936rm -fr conftest*
13937
13938       ;;
13939esac
13940fi
13941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13942printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13943    fi
13944
13945    CPPFLAGS=$save_CPPFLAGS
13946    LDFLAGS=$save_LDFLAGS
13947    LIBS=$save_LIBS
13948    ;;
13949  esac
13950
13951  case $lt_cv_dlopen_self in
13952  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13953  *) enable_dlopen_self=unknown ;;
13954  esac
13955
13956  case $lt_cv_dlopen_self_static in
13957  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13958  *) enable_dlopen_self_static=unknown ;;
13959  esac
13960fi
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978striplib=
13979old_striplib=
13980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13981printf %s "checking whether stripping libraries is possible... " >&6; }
13982if test -z "$STRIP"; then
13983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984printf "%s\n" "no" >&6; }
13985else
13986  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13987    old_striplib="$STRIP --strip-debug"
13988    striplib="$STRIP --strip-unneeded"
13989    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13990printf "%s\n" "yes" >&6; }
13991  else
13992    case $host_os in
13993    darwin*)
13994      # FIXME - insert some real tests, host_os isn't really good enough
13995      striplib="$STRIP -x"
13996      old_striplib="$STRIP -S"
13997      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13998printf "%s\n" "yes" >&6; }
13999      ;;
14000    freebsd*)
14001      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14002        old_striplib="$STRIP --strip-debug"
14003        striplib="$STRIP --strip-unneeded"
14004        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14005printf "%s\n" "yes" >&6; }
14006      else
14007        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008printf "%s\n" "no" >&6; }
14009      fi
14010      ;;
14011    *)
14012      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013printf "%s\n" "no" >&6; }
14014      ;;
14015    esac
14016  fi
14017fi
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030  # Report what library types will actually be built
14031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14032printf %s "checking if libtool supports shared libraries... " >&6; }
14033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14034printf "%s\n" "$can_build_shared" >&6; }
14035
14036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14037printf %s "checking whether to build shared libraries... " >&6; }
14038  test no = "$can_build_shared" && enable_shared=no
14039
14040  # On AIX, shared libraries and static libraries use the same namespace, and
14041  # are all built from PIC.
14042  case $host_os in
14043  aix3*)
14044    test yes = "$enable_shared" && enable_static=no
14045    if test -n "$RANLIB"; then
14046      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14047      postinstall_cmds='$RANLIB $lib'
14048    fi
14049    ;;
14050
14051  aix[4-9]*)
14052    if test ia64 != "$host_cpu"; then
14053      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14054      yes,aix,yes) ;;			# shared object as lib.so file only
14055      yes,svr4,*) ;;			# shared object as lib.so archive member only
14056      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14057      esac
14058    fi
14059    ;;
14060  esac
14061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14062printf "%s\n" "$enable_shared" >&6; }
14063
14064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14065printf %s "checking whether to build static libraries... " >&6; }
14066  # Make sure either enable_shared or enable_static is yes.
14067  test yes = "$enable_shared" || enable_static=yes
14068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14069printf "%s\n" "$enable_static" >&6; }
14070
14071
14072
14073
14074fi
14075ac_ext=c
14076ac_cpp='$CPP $CPPFLAGS'
14077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14079ac_compiler_gnu=$ac_cv_c_compiler_gnu
14080
14081CC=$lt_save_CC
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097        ac_config_commands="$ac_config_commands libtool"
14098
14099
14100
14101
14102# Only expand once:
14103
14104
14105
14106
14107ac_ext=cpp
14108ac_cpp='$CXXCPP $CPPFLAGS'
14109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14112
14113
14114
14115
14116
14117
14118
14119ac_ext=cpp
14120ac_cpp='$CXXCPP $CPPFLAGS'
14121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14124if test -z "$CXX"; then
14125  if test -n "$CCC"; then
14126    CXX=$CCC
14127  else
14128    if test -n "$ac_tool_prefix"; then
14129  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14130  do
14131    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14134printf %s "checking for $ac_word... " >&6; }
14135if test ${ac_cv_prog_CXX+y}
14136then :
14137  printf %s "(cached) " >&6
14138else case e in #(
14139  e) if test -n "$CXX"; then
14140  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14141else
14142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143for as_dir in $PATH
14144do
14145  IFS=$as_save_IFS
14146  case $as_dir in #(((
14147    '') as_dir=./ ;;
14148    */) ;;
14149    *) as_dir=$as_dir/ ;;
14150  esac
14151    for ac_exec_ext in '' $ac_executable_extensions; do
14152  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14153    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14154    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14155    break 2
14156  fi
14157done
14158  done
14159IFS=$as_save_IFS
14160
14161fi ;;
14162esac
14163fi
14164CXX=$ac_cv_prog_CXX
14165if test -n "$CXX"; then
14166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14167printf "%s\n" "$CXX" >&6; }
14168else
14169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170printf "%s\n" "no" >&6; }
14171fi
14172
14173
14174    test -n "$CXX" && break
14175  done
14176fi
14177if test -z "$CXX"; then
14178  ac_ct_CXX=$CXX
14179  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14180do
14181  # Extract the first word of "$ac_prog", so it can be a program name with args.
14182set dummy $ac_prog; ac_word=$2
14183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14184printf %s "checking for $ac_word... " >&6; }
14185if test ${ac_cv_prog_ac_ct_CXX+y}
14186then :
14187  printf %s "(cached) " >&6
14188else case e in #(
14189  e) if test -n "$ac_ct_CXX"; then
14190  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14191else
14192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193for as_dir in $PATH
14194do
14195  IFS=$as_save_IFS
14196  case $as_dir in #(((
14197    '') as_dir=./ ;;
14198    */) ;;
14199    *) as_dir=$as_dir/ ;;
14200  esac
14201    for ac_exec_ext in '' $ac_executable_extensions; do
14202  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14203    ac_cv_prog_ac_ct_CXX="$ac_prog"
14204    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14205    break 2
14206  fi
14207done
14208  done
14209IFS=$as_save_IFS
14210
14211fi ;;
14212esac
14213fi
14214ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14215if test -n "$ac_ct_CXX"; then
14216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14217printf "%s\n" "$ac_ct_CXX" >&6; }
14218else
14219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220printf "%s\n" "no" >&6; }
14221fi
14222
14223
14224  test -n "$ac_ct_CXX" && break
14225done
14226
14227  if test "x$ac_ct_CXX" = x; then
14228    CXX="g++"
14229  else
14230    case $cross_compiling:$ac_tool_warned in
14231yes:)
14232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14233printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14234ac_tool_warned=yes ;;
14235esac
14236    CXX=$ac_ct_CXX
14237  fi
14238fi
14239
14240  fi
14241fi
14242# Provide some information about the compiler.
14243printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14244set X $ac_compile
14245ac_compiler=$2
14246for ac_option in --version -v -V -qversion; do
14247  { { ac_try="$ac_compiler $ac_option >&5"
14248case "(($ac_try" in
14249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250  *) ac_try_echo=$ac_try;;
14251esac
14252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14253printf "%s\n" "$ac_try_echo"; } >&5
14254  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14255  ac_status=$?
14256  if test -s conftest.err; then
14257    sed '10a\
14258... rest of stderr output deleted ...
14259         10q' conftest.err >conftest.er1
14260    cat conftest.er1 >&5
14261  fi
14262  rm -f conftest.er1 conftest.err
14263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14264  test $ac_status = 0; }
14265done
14266
14267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14268printf %s "checking whether the compiler supports GNU C++... " >&6; }
14269if test ${ac_cv_cxx_compiler_gnu+y}
14270then :
14271  printf %s "(cached) " >&6
14272else case e in #(
14273  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274/* end confdefs.h.  */
14275
14276int
14277main (void)
14278{
14279#ifndef __GNUC__
14280       choke me
14281#endif
14282
14283  ;
14284  return 0;
14285}
14286_ACEOF
14287if ac_fn_cxx_try_compile "$LINENO"
14288then :
14289  ac_compiler_gnu=yes
14290else case e in #(
14291  e) ac_compiler_gnu=no ;;
14292esac
14293fi
14294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14295ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14296 ;;
14297esac
14298fi
14299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14300printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14302
14303if test $ac_compiler_gnu = yes; then
14304  GXX=yes
14305else
14306  GXX=
14307fi
14308ac_test_CXXFLAGS=${CXXFLAGS+y}
14309ac_save_CXXFLAGS=$CXXFLAGS
14310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14311printf %s "checking whether $CXX accepts -g... " >&6; }
14312if test ${ac_cv_prog_cxx_g+y}
14313then :
14314  printf %s "(cached) " >&6
14315else case e in #(
14316  e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14317   ac_cxx_werror_flag=yes
14318   ac_cv_prog_cxx_g=no
14319   CXXFLAGS="-g"
14320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321/* end confdefs.h.  */
14322
14323int
14324main (void)
14325{
14326
14327  ;
14328  return 0;
14329}
14330_ACEOF
14331if ac_fn_cxx_try_compile "$LINENO"
14332then :
14333  ac_cv_prog_cxx_g=yes
14334else case e in #(
14335  e) CXXFLAGS=""
14336      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337/* end confdefs.h.  */
14338
14339int
14340main (void)
14341{
14342
14343  ;
14344  return 0;
14345}
14346_ACEOF
14347if ac_fn_cxx_try_compile "$LINENO"
14348then :
14349
14350else case e in #(
14351  e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14352	 CXXFLAGS="-g"
14353	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354/* end confdefs.h.  */
14355
14356int
14357main (void)
14358{
14359
14360  ;
14361  return 0;
14362}
14363_ACEOF
14364if ac_fn_cxx_try_compile "$LINENO"
14365then :
14366  ac_cv_prog_cxx_g=yes
14367fi
14368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14369esac
14370fi
14371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14372esac
14373fi
14374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14375   ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
14376esac
14377fi
14378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14379printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14380if test $ac_test_CXXFLAGS; then
14381  CXXFLAGS=$ac_save_CXXFLAGS
14382elif test $ac_cv_prog_cxx_g = yes; then
14383  if test "$GXX" = yes; then
14384    CXXFLAGS="-g -O2"
14385  else
14386    CXXFLAGS="-g"
14387  fi
14388else
14389  if test "$GXX" = yes; then
14390    CXXFLAGS="-O2"
14391  else
14392    CXXFLAGS=
14393  fi
14394fi
14395ac_prog_cxx_stdcxx=no
14396if test x$ac_prog_cxx_stdcxx = xno
14397then :
14398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14399printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14400if test ${ac_cv_prog_cxx_cxx11+y}
14401then :
14402  printf %s "(cached) " >&6
14403else case e in #(
14404  e) ac_cv_prog_cxx_cxx11=no
14405ac_save_CXX=$CXX
14406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407/* end confdefs.h.  */
14408$ac_cxx_conftest_cxx11_program
14409_ACEOF
14410for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14411do
14412  CXX="$ac_save_CXX $ac_arg"
14413  if ac_fn_cxx_try_compile "$LINENO"
14414then :
14415  ac_cv_prog_cxx_cxx11=$ac_arg
14416fi
14417rm -f core conftest.err conftest.$ac_objext conftest.beam
14418  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14419done
14420rm -f conftest.$ac_ext
14421CXX=$ac_save_CXX ;;
14422esac
14423fi
14424
14425if test "x$ac_cv_prog_cxx_cxx11" = xno
14426then :
14427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14428printf "%s\n" "unsupported" >&6; }
14429else case e in #(
14430  e) if test "x$ac_cv_prog_cxx_cxx11" = x
14431then :
14432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14433printf "%s\n" "none needed" >&6; }
14434else case e in #(
14435  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14436printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14437     CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
14438esac
14439fi
14440  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14441  ac_prog_cxx_stdcxx=cxx11 ;;
14442esac
14443fi
14444fi
14445if test x$ac_prog_cxx_stdcxx = xno
14446then :
14447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14448printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14449if test ${ac_cv_prog_cxx_cxx98+y}
14450then :
14451  printf %s "(cached) " >&6
14452else case e in #(
14453  e) ac_cv_prog_cxx_cxx98=no
14454ac_save_CXX=$CXX
14455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456/* end confdefs.h.  */
14457$ac_cxx_conftest_cxx98_program
14458_ACEOF
14459for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14460do
14461  CXX="$ac_save_CXX $ac_arg"
14462  if ac_fn_cxx_try_compile "$LINENO"
14463then :
14464  ac_cv_prog_cxx_cxx98=$ac_arg
14465fi
14466rm -f core conftest.err conftest.$ac_objext conftest.beam
14467  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14468done
14469rm -f conftest.$ac_ext
14470CXX=$ac_save_CXX ;;
14471esac
14472fi
14473
14474if test "x$ac_cv_prog_cxx_cxx98" = xno
14475then :
14476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14477printf "%s\n" "unsupported" >&6; }
14478else case e in #(
14479  e) if test "x$ac_cv_prog_cxx_cxx98" = x
14480then :
14481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14482printf "%s\n" "none needed" >&6; }
14483else case e in #(
14484  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14485printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14486     CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
14487esac
14488fi
14489  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14490  ac_prog_cxx_stdcxx=cxx98 ;;
14491esac
14492fi
14493fi
14494
14495ac_ext=cpp
14496ac_cpp='$CXXCPP $CPPFLAGS'
14497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14500
14501depcc="$CXX"  am_compiler_list=
14502
14503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14504printf %s "checking dependency style of $depcc... " >&6; }
14505if test ${am_cv_CXX_dependencies_compiler_type+y}
14506then :
14507  printf %s "(cached) " >&6
14508else case e in #(
14509  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14510  # We make a subdir and do the tests there.  Otherwise we can end up
14511  # making bogus files that we don't know about and never remove.  For
14512  # instance it was reported that on HP-UX the gcc test will end up
14513  # making a dummy file named 'D' -- because '-MD' means "put the output
14514  # in D".
14515  rm -rf conftest.dir
14516  mkdir conftest.dir
14517  # Copy depcomp to subdir because otherwise we won't find it if we're
14518  # using a relative directory.
14519  cp "$am_depcomp" conftest.dir
14520  cd conftest.dir
14521  # We will build objects and dependencies in a subdirectory because
14522  # it helps to detect inapplicable dependency modes.  For instance
14523  # both Tru64's cc and ICC support -MD to output dependencies as a
14524  # side effect of compilation, but ICC will put the dependencies in
14525  # the current directory while Tru64 will put them in the object
14526  # directory.
14527  mkdir sub
14528
14529  am_cv_CXX_dependencies_compiler_type=none
14530  if test "$am_compiler_list" = ""; then
14531     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14532  fi
14533  am__universal=false
14534  case " $depcc " in #(
14535     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14536     esac
14537
14538  for depmode in $am_compiler_list; do
14539    # Setup a source with many dependencies, because some compilers
14540    # like to wrap large dependency lists on column 80 (with \), and
14541    # we should not choose a depcomp mode which is confused by this.
14542    #
14543    # We need to recreate these files for each test, as the compiler may
14544    # overwrite some of them when testing with obscure command lines.
14545    # This happens at least with the AIX C compiler.
14546    : > sub/conftest.c
14547    for i in 1 2 3 4 5 6; do
14548      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14549      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14550      # Solaris 10 /bin/sh.
14551      echo '/* dummy */' > sub/conftst$i.h
14552    done
14553    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14554
14555    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14556    # mode.  It turns out that the SunPro C++ compiler does not properly
14557    # handle '-M -o', and we need to detect this.  Also, some Intel
14558    # versions had trouble with output in subdirs.
14559    am__obj=sub/conftest.${OBJEXT-o}
14560    am__minus_obj="-o $am__obj"
14561    case $depmode in
14562    gcc)
14563      # This depmode causes a compiler race in universal mode.
14564      test "$am__universal" = false || continue
14565      ;;
14566    nosideeffect)
14567      # After this tag, mechanisms are not by side-effect, so they'll
14568      # only be used when explicitly requested.
14569      if test "x$enable_dependency_tracking" = xyes; then
14570	continue
14571      else
14572	break
14573      fi
14574      ;;
14575    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14576      # This compiler won't grok '-c -o', but also, the minuso test has
14577      # not run yet.  These depmodes are late enough in the game, and
14578      # so weak that their functioning should not be impacted.
14579      am__obj=conftest.${OBJEXT-o}
14580      am__minus_obj=
14581      ;;
14582    none) break ;;
14583    esac
14584    if depmode=$depmode \
14585       source=sub/conftest.c object=$am__obj \
14586       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14587       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14588         >/dev/null 2>conftest.err &&
14589       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14590       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14591       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14592       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14593      # icc doesn't choke on unknown options, it will just issue warnings
14594      # or remarks (even with -Werror).  So we grep stderr for any message
14595      # that says an option was ignored or not supported.
14596      # When given -MP, icc 7.0 and 7.1 complain thus:
14597      #   icc: Command line warning: ignoring option '-M'; no argument required
14598      # The diagnosis changed in icc 8.0:
14599      #   icc: Command line remark: option '-MP' not supported
14600      if (grep 'ignoring option' conftest.err ||
14601          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14602        am_cv_CXX_dependencies_compiler_type=$depmode
14603        break
14604      fi
14605    fi
14606  done
14607
14608  cd ..
14609  rm -rf conftest.dir
14610else
14611  am_cv_CXX_dependencies_compiler_type=none
14612fi
14613 ;;
14614esac
14615fi
14616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14617printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
14618CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14619
14620 if
14621  test "x$enable_dependency_tracking" != xno \
14622  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14623  am__fastdepCXX_TRUE=
14624  am__fastdepCXX_FALSE='#'
14625else
14626  am__fastdepCXX_TRUE='#'
14627  am__fastdepCXX_FALSE=
14628fi
14629
14630
14631
14632
14633func_stripname_cnf ()
14634{
14635  case $2 in
14636  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14637  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14638  esac
14639} # func_stripname_cnf
14640
14641      if test -n "$CXX" && ( test no != "$CXX" &&
14642    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14643    (test g++ != "$CXX"))); then
14644  ac_ext=cpp
14645ac_cpp='$CXXCPP $CPPFLAGS'
14646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14650printf %s "checking how to run the C++ preprocessor... " >&6; }
14651if test -z "$CXXCPP"; then
14652  if test ${ac_cv_prog_CXXCPP+y}
14653then :
14654  printf %s "(cached) " >&6
14655else case e in #(
14656  e)     # Double quotes because $CXX needs to be expanded
14657    for CXXCPP in "$CXX -E" cpp /lib/cpp
14658    do
14659      ac_preproc_ok=false
14660for ac_cxx_preproc_warn_flag in '' yes
14661do
14662  # Use a header file that comes with gcc, so configuring glibc
14663  # with a fresh cross-compiler works.
14664  # On the NeXT, cc -E runs the code through the compiler's parser,
14665  # not just through cpp. "Syntax error" is here to catch this case.
14666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667/* end confdefs.h.  */
14668#include <limits.h>
14669		     Syntax error
14670_ACEOF
14671if ac_fn_cxx_try_cpp "$LINENO"
14672then :
14673
14674else case e in #(
14675  e) # Broken: fails on valid input.
14676continue ;;
14677esac
14678fi
14679rm -f conftest.err conftest.i conftest.$ac_ext
14680
14681  # OK, works on sane cases.  Now check whether nonexistent headers
14682  # can be detected and how.
14683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684/* end confdefs.h.  */
14685#include <ac_nonexistent.h>
14686_ACEOF
14687if ac_fn_cxx_try_cpp "$LINENO"
14688then :
14689  # Broken: success on invalid input.
14690continue
14691else case e in #(
14692  e) # Passes both tests.
14693ac_preproc_ok=:
14694break ;;
14695esac
14696fi
14697rm -f conftest.err conftest.i conftest.$ac_ext
14698
14699done
14700# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14701rm -f conftest.i conftest.err conftest.$ac_ext
14702if $ac_preproc_ok
14703then :
14704  break
14705fi
14706
14707    done
14708    ac_cv_prog_CXXCPP=$CXXCPP
14709   ;;
14710esac
14711fi
14712  CXXCPP=$ac_cv_prog_CXXCPP
14713else
14714  ac_cv_prog_CXXCPP=$CXXCPP
14715fi
14716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14717printf "%s\n" "$CXXCPP" >&6; }
14718ac_preproc_ok=false
14719for ac_cxx_preproc_warn_flag in '' yes
14720do
14721  # Use a header file that comes with gcc, so configuring glibc
14722  # with a fresh cross-compiler works.
14723  # On the NeXT, cc -E runs the code through the compiler's parser,
14724  # not just through cpp. "Syntax error" is here to catch this case.
14725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h.  */
14727#include <limits.h>
14728		     Syntax error
14729_ACEOF
14730if ac_fn_cxx_try_cpp "$LINENO"
14731then :
14732
14733else case e in #(
14734  e) # Broken: fails on valid input.
14735continue ;;
14736esac
14737fi
14738rm -f conftest.err conftest.i conftest.$ac_ext
14739
14740  # OK, works on sane cases.  Now check whether nonexistent headers
14741  # can be detected and how.
14742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743/* end confdefs.h.  */
14744#include <ac_nonexistent.h>
14745_ACEOF
14746if ac_fn_cxx_try_cpp "$LINENO"
14747then :
14748  # Broken: success on invalid input.
14749continue
14750else case e in #(
14751  e) # Passes both tests.
14752ac_preproc_ok=:
14753break ;;
14754esac
14755fi
14756rm -f conftest.err conftest.i conftest.$ac_ext
14757
14758done
14759# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14760rm -f conftest.i conftest.err conftest.$ac_ext
14761if $ac_preproc_ok
14762then :
14763
14764else case e in #(
14765  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14766printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14767as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14768See 'config.log' for more details" "$LINENO" 5; } ;;
14769esac
14770fi
14771
14772ac_ext=cpp
14773ac_cpp='$CXXCPP $CPPFLAGS'
14774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14777
14778else
14779  _lt_caught_CXX_error=yes
14780fi
14781
14782ac_ext=cpp
14783ac_cpp='$CXXCPP $CPPFLAGS'
14784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14787
14788archive_cmds_need_lc_CXX=no
14789allow_undefined_flag_CXX=
14790always_export_symbols_CXX=no
14791archive_expsym_cmds_CXX=
14792compiler_needs_object_CXX=no
14793export_dynamic_flag_spec_CXX=
14794hardcode_direct_CXX=no
14795hardcode_direct_absolute_CXX=no
14796hardcode_libdir_flag_spec_CXX=
14797hardcode_libdir_separator_CXX=
14798hardcode_minus_L_CXX=no
14799hardcode_shlibpath_var_CXX=unsupported
14800hardcode_automatic_CXX=no
14801inherit_rpath_CXX=no
14802module_cmds_CXX=
14803module_expsym_cmds_CXX=
14804link_all_deplibs_CXX=unknown
14805old_archive_cmds_CXX=$old_archive_cmds
14806reload_flag_CXX=$reload_flag
14807reload_cmds_CXX=$reload_cmds
14808no_undefined_flag_CXX=
14809whole_archive_flag_spec_CXX=
14810enable_shared_with_static_runtimes_CXX=no
14811
14812# Source file extension for C++ test sources.
14813ac_ext=cpp
14814
14815# Object file extension for compiled C++ test sources.
14816objext=o
14817objext_CXX=$objext
14818
14819# No sense in running all these tests if we already determined that
14820# the CXX compiler isn't working.  Some variables (like enable_shared)
14821# are currently assumed to apply to all compilers on this platform,
14822# and will be corrupted by setting them based on a non-working compiler.
14823if test yes != "$_lt_caught_CXX_error"; then
14824  # Code to be used in simple compile tests
14825  lt_simple_compile_test_code="int some_variable = 0;"
14826
14827  # Code to be used in simple link tests
14828  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14829
14830  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14831
14832
14833
14834
14835
14836
14837# If no C compiler was specified, use CC.
14838LTCC=${LTCC-"$CC"}
14839
14840# If no C compiler flags were specified, use CFLAGS.
14841LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14842
14843# Allow CC to be a program name with arguments.
14844compiler=$CC
14845
14846
14847  # save warnings/boilerplate of simple test code
14848  ac_outfile=conftest.$ac_objext
14849echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14850eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14851_lt_compiler_boilerplate=`cat conftest.err`
14852$RM conftest*
14853
14854  ac_outfile=conftest.$ac_objext
14855echo "$lt_simple_link_test_code" >conftest.$ac_ext
14856eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14857_lt_linker_boilerplate=`cat conftest.err`
14858$RM -r conftest*
14859
14860
14861  # Allow CC to be a program name with arguments.
14862  lt_save_CC=$CC
14863  lt_save_CFLAGS=$CFLAGS
14864  lt_save_LD=$LD
14865  lt_save_GCC=$GCC
14866  GCC=$GXX
14867  lt_save_with_gnu_ld=$with_gnu_ld
14868  lt_save_path_LD=$lt_cv_path_LD
14869  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14870    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14871  else
14872    $as_unset lt_cv_prog_gnu_ld
14873  fi
14874  if test -n "${lt_cv_path_LDCXX+set}"; then
14875    lt_cv_path_LD=$lt_cv_path_LDCXX
14876  else
14877    $as_unset lt_cv_path_LD
14878  fi
14879  test -z "${LDCXX+set}" || LD=$LDCXX
14880  CC=${CXX-"c++"}
14881  CFLAGS=$CXXFLAGS
14882  compiler=$CC
14883  compiler_CXX=$CC
14884  func_cc_basename $compiler
14885cc_basename=$func_cc_basename_result
14886
14887
14888  if test -n "$compiler"; then
14889    # We don't want -fno-exception when compiling C++ code, so set the
14890    # no_builtin_flag separately
14891    if test yes = "$GXX"; then
14892      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14893    else
14894      lt_prog_compiler_no_builtin_flag_CXX=
14895    fi
14896
14897    if test yes = "$GXX"; then
14898      # Set up default GNU C++ configuration
14899
14900
14901
14902# Check whether --with-gnu-ld was given.
14903if test ${with_gnu_ld+y}
14904then :
14905  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14906else case e in #(
14907  e) with_gnu_ld=no ;;
14908esac
14909fi
14910
14911ac_prog=ld
14912if test yes = "$GCC"; then
14913  # Check if gcc -print-prog-name=ld gives a path.
14914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14915printf %s "checking for ld used by $CC... " >&6; }
14916  case $host in
14917  *-*-mingw* | *-*-windows*)
14918    # gcc leaves a trailing carriage return, which upsets mingw
14919    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14920  *)
14921    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14922  esac
14923  case $ac_prog in
14924    # Accept absolute paths.
14925    [\\/]* | ?:[\\/]*)
14926      re_direlt='/[^/][^/]*/\.\./'
14927      # Canonicalize the pathname of ld
14928      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14929      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14930	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14931      done
14932      test -z "$LD" && LD=$ac_prog
14933      ;;
14934  "")
14935    # If it fails, then pretend we aren't using GCC.
14936    ac_prog=ld
14937    ;;
14938  *)
14939    # If it is relative, then search for the first ld in PATH.
14940    with_gnu_ld=unknown
14941    ;;
14942  esac
14943elif test yes = "$with_gnu_ld"; then
14944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14945printf %s "checking for GNU ld... " >&6; }
14946else
14947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14948printf %s "checking for non-GNU ld... " >&6; }
14949fi
14950if test ${lt_cv_path_LD+y}
14951then :
14952  printf %s "(cached) " >&6
14953else case e in #(
14954  e) if test -z "$LD"; then
14955  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14956  for ac_dir in $PATH; do
14957    IFS=$lt_save_ifs
14958    test -z "$ac_dir" && ac_dir=.
14959    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14960      lt_cv_path_LD=$ac_dir/$ac_prog
14961      # Check to see if the program is GNU ld.  I'd rather use --version,
14962      # but apparently some variants of GNU ld only accept -v.
14963      # Break only if it was the GNU/non-GNU ld that we prefer.
14964      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14965      *GNU* | *'with BFD'*)
14966	test no != "$with_gnu_ld" && break
14967	;;
14968      *)
14969	test yes != "$with_gnu_ld" && break
14970	;;
14971      esac
14972    fi
14973  done
14974  IFS=$lt_save_ifs
14975else
14976  lt_cv_path_LD=$LD # Let the user override the test with a path.
14977fi ;;
14978esac
14979fi
14980
14981LD=$lt_cv_path_LD
14982if test -n "$LD"; then
14983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14984printf "%s\n" "$LD" >&6; }
14985else
14986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14987printf "%s\n" "no" >&6; }
14988fi
14989test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14991printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14992if test ${lt_cv_prog_gnu_ld+y}
14993then :
14994  printf %s "(cached) " >&6
14995else case e in #(
14996  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
14997case `$LD -v 2>&1 </dev/null` in
14998*GNU* | *'with BFD'*)
14999  lt_cv_prog_gnu_ld=yes
15000  ;;
15001*)
15002  lt_cv_prog_gnu_ld=no
15003  ;;
15004esac ;;
15005esac
15006fi
15007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15008printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15009with_gnu_ld=$lt_cv_prog_gnu_ld
15010
15011
15012
15013
15014
15015
15016
15017      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15018      # archiving commands below assume that GNU ld is being used.
15019      if test yes = "$with_gnu_ld"; then
15020        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15021        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'
15022
15023        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15024        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15025
15026        # If archive_cmds runs LD, not CC, wlarc should be empty
15027        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15028        #     investigate it a little bit more. (MM)
15029        wlarc='$wl'
15030
15031        # ancient GNU ld didn't support --whole-archive et. al.
15032        if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15033          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15034        else
15035          whole_archive_flag_spec_CXX=
15036        fi
15037      else
15038        with_gnu_ld=no
15039        wlarc=
15040
15041        # A generic and very simple default shared library creation
15042        # command for GNU C++ for the case where it uses the native
15043        # linker, instead of GNU ld.  If possible, this setting should
15044        # overridden to take advantage of the native linker features on
15045        # the platform it is being used on.
15046        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15047      fi
15048
15049      # Commands to make compiler produce verbose output that lists
15050      # what "hidden" libraries, object files and flags are used when
15051      # linking a shared library.
15052      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15053
15054    else
15055      GXX=no
15056      with_gnu_ld=no
15057      wlarc=
15058    fi
15059
15060    # PORTME: fill in a description of your system's C++ link characteristics
15061    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15062printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15063    ld_shlibs_CXX=yes
15064    case $host_os in
15065      aix3*)
15066        # FIXME: insert proper C++ library support
15067        ld_shlibs_CXX=no
15068        ;;
15069      aix[4-9]*)
15070        if test ia64 = "$host_cpu"; then
15071          # On IA64, the linker does run time linking by default, so we don't
15072          # have to do anything special.
15073          aix_use_runtimelinking=no
15074          exp_sym_flag='-Bexport'
15075          no_entry_flag=
15076        else
15077          aix_use_runtimelinking=no
15078
15079          # Test if we are trying to use run time linking or normal
15080          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15081          # have runtime linking enabled, and use it for executables.
15082          # For shared libraries, we enable/disable runtime linking
15083          # depending on the kind of the shared library created -
15084          # when "with_aix_soname,aix_use_runtimelinking" is:
15085          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15086          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15087          #            lib.a           static archive
15088          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15089          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15090          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15091          #            lib.a(lib.so.V) shared, rtl:no
15092          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15093          #            lib.a           static archive
15094          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15095	    for ld_flag in $LDFLAGS; do
15096	      case $ld_flag in
15097	      *-brtl*)
15098	        aix_use_runtimelinking=yes
15099	        break
15100	        ;;
15101	      esac
15102	    done
15103	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15104	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15105	      # so we don't have lib.a shared libs to link our executables.
15106	      # We have to force runtime linking in this case.
15107	      aix_use_runtimelinking=yes
15108	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15109	    fi
15110	    ;;
15111          esac
15112
15113          exp_sym_flag='-bexport'
15114          no_entry_flag='-bnoentry'
15115        fi
15116
15117        # When large executables or shared objects are built, AIX ld can
15118        # have problems creating the table of contents.  If linking a library
15119        # or program results in "error TOC overflow" add -mminimal-toc to
15120        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15121        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15122
15123        archive_cmds_CXX=''
15124        hardcode_direct_CXX=yes
15125        hardcode_direct_absolute_CXX=yes
15126        hardcode_libdir_separator_CXX=':'
15127        link_all_deplibs_CXX=yes
15128        file_list_spec_CXX='$wl-f,'
15129        case $with_aix_soname,$aix_use_runtimelinking in
15130        aix,*) ;;	# no import file
15131        svr4,* | *,yes) # use import file
15132          # The Import File defines what to hardcode.
15133          hardcode_direct_CXX=no
15134          hardcode_direct_absolute_CXX=no
15135          ;;
15136        esac
15137
15138        if test yes = "$GXX"; then
15139          case $host_os in aix4.[012]|aix4.[012].*)
15140          # We only want to do this on AIX 4.2 and lower, the check
15141          # below for broken collect2 doesn't work under 4.3+
15142	  collect2name=`$CC -print-prog-name=collect2`
15143	  if test -f "$collect2name" &&
15144	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15145	  then
15146	    # We have reworked collect2
15147	    :
15148	  else
15149	    # We have old collect2
15150	    hardcode_direct_CXX=unsupported
15151	    # It fails to find uninstalled libraries when the uninstalled
15152	    # path is not listed in the libpath.  Setting hardcode_minus_L
15153	    # to unsupported forces relinking
15154	    hardcode_minus_L_CXX=yes
15155	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15156	    hardcode_libdir_separator_CXX=
15157	  fi
15158          esac
15159          shared_flag='-shared'
15160	  if test yes = "$aix_use_runtimelinking"; then
15161	    shared_flag=$shared_flag' $wl-G'
15162	  fi
15163	  # Need to ensure runtime linking is disabled for the traditional
15164	  # shared library, or the linker may eventually find shared libraries
15165	  # /with/ Import File - we do not want to mix them.
15166	  shared_flag_aix='-shared'
15167	  shared_flag_svr4='-shared $wl-G'
15168        else
15169          # not using gcc
15170          if test ia64 = "$host_cpu"; then
15171	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15172	  # chokes on -Wl,-G. The following line is correct:
15173	  shared_flag='-G'
15174          else
15175	    if test yes = "$aix_use_runtimelinking"; then
15176	      shared_flag='$wl-G'
15177	    else
15178	      shared_flag='$wl-bM:SRE'
15179	    fi
15180	    shared_flag_aix='$wl-bM:SRE'
15181	    shared_flag_svr4='$wl-G'
15182          fi
15183        fi
15184
15185        export_dynamic_flag_spec_CXX='$wl-bexpall'
15186        # It seems that -bexpall does not export symbols beginning with
15187        # underscore (_), so it is better to generate a list of symbols to
15188	# export.
15189        always_export_symbols_CXX=yes
15190	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15191          # Warning - without using the other runtime loading flags (-brtl),
15192          # -berok will link without error, but may produce a broken library.
15193          # The "-G" linker flag allows undefined symbols.
15194          no_undefined_flag_CXX='-bernotok'
15195          # Determine the default libpath from the value encoded in an empty
15196          # executable.
15197          if test set = "${lt_cv_aix_libpath+set}"; then
15198  aix_libpath=$lt_cv_aix_libpath
15199else
15200  if test ${lt_cv_aix_libpath__CXX+y}
15201then :
15202  printf %s "(cached) " >&6
15203else case e in #(
15204  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205/* end confdefs.h.  */
15206
15207int
15208main (void)
15209{
15210
15211  ;
15212  return 0;
15213}
15214_ACEOF
15215if ac_fn_cxx_try_link "$LINENO"
15216then :
15217
15218  lt_aix_libpath_sed='
15219      /Import File Strings/,/^$/ {
15220	  /^0/ {
15221	      s/^0  *\([^ ]*\) *$/\1/
15222	      p
15223	  }
15224      }'
15225  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15226  # Check for a 64-bit object if we didn't find anything.
15227  if test -z "$lt_cv_aix_libpath__CXX"; then
15228    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15229  fi
15230fi
15231rm -f core conftest.err conftest.$ac_objext conftest.beam \
15232    conftest$ac_exeext conftest.$ac_ext
15233  if test -z "$lt_cv_aix_libpath__CXX"; then
15234    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15235  fi
15236   ;;
15237esac
15238fi
15239
15240  aix_libpath=$lt_cv_aix_libpath__CXX
15241fi
15242
15243          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15244
15245          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
15246        else
15247          if test ia64 = "$host_cpu"; then
15248	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15249	    allow_undefined_flag_CXX="-z nodefs"
15250	    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"
15251          else
15252	    # Determine the default libpath from the value encoded in an
15253	    # empty executable.
15254	    if test set = "${lt_cv_aix_libpath+set}"; then
15255  aix_libpath=$lt_cv_aix_libpath
15256else
15257  if test ${lt_cv_aix_libpath__CXX+y}
15258then :
15259  printf %s "(cached) " >&6
15260else case e in #(
15261  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263
15264int
15265main (void)
15266{
15267
15268  ;
15269  return 0;
15270}
15271_ACEOF
15272if ac_fn_cxx_try_link "$LINENO"
15273then :
15274
15275  lt_aix_libpath_sed='
15276      /Import File Strings/,/^$/ {
15277	  /^0/ {
15278	      s/^0  *\([^ ]*\) *$/\1/
15279	      p
15280	  }
15281      }'
15282  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15283  # Check for a 64-bit object if we didn't find anything.
15284  if test -z "$lt_cv_aix_libpath__CXX"; then
15285    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15286  fi
15287fi
15288rm -f core conftest.err conftest.$ac_objext conftest.beam \
15289    conftest$ac_exeext conftest.$ac_ext
15290  if test -z "$lt_cv_aix_libpath__CXX"; then
15291    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15292  fi
15293   ;;
15294esac
15295fi
15296
15297  aix_libpath=$lt_cv_aix_libpath__CXX
15298fi
15299
15300	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15301	    # Warning - without using the other run time loading flags,
15302	    # -berok will link without error, but may produce a broken library.
15303	    no_undefined_flag_CXX=' $wl-bernotok'
15304	    allow_undefined_flag_CXX=' $wl-berok'
15305	    if test yes = "$with_gnu_ld"; then
15306	      # We only use this code for GNU lds that support --whole-archive.
15307	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15308	    else
15309	      # Exported symbols can be pulled into shared objects from archives
15310	      whole_archive_flag_spec_CXX='$convenience'
15311	    fi
15312	    archive_cmds_need_lc_CXX=yes
15313	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15314	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15315	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15316	    if test svr4 != "$with_aix_soname"; then
15317	      # This is similar to how AIX traditionally builds its shared
15318	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15319	      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'
15320	    fi
15321	    if test aix != "$with_aix_soname"; then
15322	      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'
15323	    else
15324	      # used by -dlpreopen to get the symbols
15325	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15326	    fi
15327	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15328          fi
15329        fi
15330        ;;
15331
15332      beos*)
15333	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15334	  allow_undefined_flag_CXX=unsupported
15335	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15336	  # support --undefined.  This deserves some investigation.  FIXME
15337	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15338	else
15339	  ld_shlibs_CXX=no
15340	fi
15341	;;
15342
15343      chorus*)
15344        case $cc_basename in
15345          *)
15346	  # FIXME: insert proper C++ library support
15347	  ld_shlibs_CXX=no
15348	  ;;
15349        esac
15350        ;;
15351
15352      cygwin* | mingw* | windows* | pw32* | cegcc*)
15353	case $GXX,$cc_basename in
15354	,cl* | no,cl* | ,icl* | no,icl*)
15355	  # Native MSVC or ICC
15356	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15357	  # no search path for DLLs.
15358	  hardcode_libdir_flag_spec_CXX=' '
15359	  allow_undefined_flag_CXX=unsupported
15360	  always_export_symbols_CXX=yes
15361	  file_list_spec_CXX='@'
15362	  # Tell ltmain to make .lib files, not .a files.
15363	  libext=lib
15364	  # Tell ltmain to make .dll files, not .so files.
15365	  shrext_cmds=.dll
15366	  # FIXME: Setting linknames here is a bad hack.
15367	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15368	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15369              cp "$export_symbols" "$output_objdir/$soname.def";
15370              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15371            else
15372              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15373            fi~
15374            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15375            linknames='
15376	  # The linker will not automatically build a static lib if we build a DLL.
15377	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15378	  enable_shared_with_static_runtimes_CXX=yes
15379	  # Don't use ranlib
15380	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15381	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15382            lt_tool_outputfile="@TOOL_OUTPUT@"~
15383            case $lt_outputfile in
15384              *.exe|*.EXE) ;;
15385              *)
15386                lt_outputfile=$lt_outputfile.exe
15387                lt_tool_outputfile=$lt_tool_outputfile.exe
15388                ;;
15389            esac~
15390            func_to_tool_file "$lt_outputfile"~
15391            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15392              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15393              $RM "$lt_outputfile.manifest";
15394            fi'
15395	  ;;
15396	*)
15397	  # g++
15398	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15399	  # as there is no search path for DLLs.
15400	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15401	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15402	  allow_undefined_flag_CXX=unsupported
15403	  always_export_symbols_CXX=no
15404	  enable_shared_with_static_runtimes_CXX=yes
15405	  file_list_spec_CXX='@'
15406
15407	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15408	    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'
15409	    # If the export-symbols file already is a .def file, use it as
15410	    # is; otherwise, prepend EXPORTS...
15411	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15412              cp $export_symbols $output_objdir/$soname.def;
15413            else
15414              echo EXPORTS > $output_objdir/$soname.def;
15415              cat $export_symbols >> $output_objdir/$soname.def;
15416            fi~
15417            $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'
15418	  else
15419	    ld_shlibs_CXX=no
15420	  fi
15421	  ;;
15422	esac
15423	;;
15424      darwin* | rhapsody*)
15425
15426
15427  archive_cmds_need_lc_CXX=no
15428  hardcode_direct_CXX=no
15429  hardcode_automatic_CXX=yes
15430  hardcode_shlibpath_var_CXX=unsupported
15431  if test yes = "$lt_cv_ld_force_load"; then
15432    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\"`'
15433
15434  else
15435    whole_archive_flag_spec_CXX=''
15436  fi
15437  link_all_deplibs_CXX=yes
15438  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15439  case $cc_basename in
15440     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15441     *) _lt_dar_can_shared=$GCC ;;
15442  esac
15443  if test yes = "$_lt_dar_can_shared"; then
15444    output_verbose_link_cmd=func_echo_all
15445    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"
15446    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15447    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"
15448    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"
15449       if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
15450      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"
15451      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"
15452    fi
15453
15454  else
15455  ld_shlibs_CXX=no
15456  fi
15457
15458	;;
15459
15460      os2*)
15461	hardcode_libdir_flag_spec_CXX='-L$libdir'
15462	hardcode_minus_L_CXX=yes
15463	allow_undefined_flag_CXX=unsupported
15464	shrext_cmds=.dll
15465	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15466	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15467	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15468	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15469	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15470	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15471	  emximp -o $lib $output_objdir/$libname.def'
15472	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15473	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15474	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15475	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15476	  prefix_cmds="$SED"~
15477	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15478	    prefix_cmds="$prefix_cmds -e 1d";
15479	  fi~
15480	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15481	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15482	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15483	  emximp -o $lib $output_objdir/$libname.def'
15484	old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15485	enable_shared_with_static_runtimes_CXX=yes
15486	file_list_spec_CXX='@'
15487	;;
15488
15489      dgux*)
15490        case $cc_basename in
15491          ec++*)
15492	    # FIXME: insert proper C++ library support
15493	    ld_shlibs_CXX=no
15494	    ;;
15495          ghcx*)
15496	    # Green Hills C++ Compiler
15497	    # FIXME: insert proper C++ library support
15498	    ld_shlibs_CXX=no
15499	    ;;
15500          *)
15501	    # FIXME: insert proper C++ library support
15502	    ld_shlibs_CXX=no
15503	    ;;
15504        esac
15505        ;;
15506
15507      freebsd2.*)
15508        # C++ shared libraries reported to be fairly broken before
15509	# switch to ELF
15510        ld_shlibs_CXX=no
15511        ;;
15512
15513      freebsd-elf*)
15514        archive_cmds_need_lc_CXX=no
15515        ;;
15516
15517      freebsd* | dragonfly* | midnightbsd*)
15518        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15519        # conventions
15520        ld_shlibs_CXX=yes
15521        ;;
15522
15523      haiku*)
15524        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15525        link_all_deplibs_CXX=no
15526        ;;
15527
15528      hpux9*)
15529        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15530        hardcode_libdir_separator_CXX=:
15531        export_dynamic_flag_spec_CXX='$wl-E'
15532        hardcode_direct_CXX=yes
15533        hardcode_minus_L_CXX=yes # Not in the search PATH,
15534				             # but as the default
15535				             # location of the library.
15536
15537        case $cc_basename in
15538          CC*)
15539            # FIXME: insert proper C++ library support
15540            ld_shlibs_CXX=no
15541            ;;
15542          aCC*)
15543            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'
15544            # Commands to make compiler produce verbose output that lists
15545            # what "hidden" libraries, object files and flags are used when
15546            # linking a shared library.
15547            #
15548            # There doesn't appear to be a way to prevent this compiler from
15549            # explicitly linking system object files so we need to strip them
15550            # from the output so that they don't get included in the library
15551            # dependencies.
15552            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"'
15553            ;;
15554          *)
15555            if test yes = "$GXX"; then
15556              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'
15557            else
15558              # FIXME: insert proper C++ library support
15559              ld_shlibs_CXX=no
15560            fi
15561            ;;
15562        esac
15563        ;;
15564
15565      hpux10*|hpux11*)
15566        if test no = "$with_gnu_ld"; then
15567	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15568	  hardcode_libdir_separator_CXX=:
15569
15570          case $host_cpu in
15571            hppa*64*|ia64*)
15572              ;;
15573            *)
15574	      export_dynamic_flag_spec_CXX='$wl-E'
15575              ;;
15576          esac
15577        fi
15578        case $host_cpu in
15579          hppa*64*|ia64*)
15580            hardcode_direct_CXX=no
15581            hardcode_shlibpath_var_CXX=no
15582            ;;
15583          *)
15584            hardcode_direct_CXX=yes
15585            hardcode_direct_absolute_CXX=yes
15586            hardcode_minus_L_CXX=yes # Not in the search PATH,
15587					         # but as the default
15588					         # location of the library.
15589            ;;
15590        esac
15591
15592        case $cc_basename in
15593          CC*)
15594	    # FIXME: insert proper C++ library support
15595	    ld_shlibs_CXX=no
15596	    ;;
15597          aCC*)
15598	    case $host_cpu in
15599	      hppa*64*)
15600	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15601	        ;;
15602	      ia64*)
15603	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15604	        ;;
15605	      *)
15606	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15607	        ;;
15608	    esac
15609	    # Commands to make compiler produce verbose output that lists
15610	    # what "hidden" libraries, object files and flags are used when
15611	    # linking a shared library.
15612	    #
15613	    # There doesn't appear to be a way to prevent this compiler from
15614	    # explicitly linking system object files so we need to strip them
15615	    # from the output so that they don't get included in the library
15616	    # dependencies.
15617	    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"'
15618	    ;;
15619          *)
15620	    if test yes = "$GXX"; then
15621	      if test no = "$with_gnu_ld"; then
15622	        case $host_cpu in
15623	          hppa*64*)
15624	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15625	            ;;
15626	          ia64*)
15627	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15628	            ;;
15629	          *)
15630	            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'
15631	            ;;
15632	        esac
15633	      fi
15634	    else
15635	      # FIXME: insert proper C++ library support
15636	      ld_shlibs_CXX=no
15637	    fi
15638	    ;;
15639        esac
15640        ;;
15641
15642      interix[3-9]*)
15643	hardcode_direct_CXX=no
15644	hardcode_shlibpath_var_CXX=no
15645	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15646	export_dynamic_flag_spec_CXX='$wl-E'
15647	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15648	# Instead, shared libraries are loaded at an image base (0x10000000 by
15649	# default) and relocated if they conflict, which is a slow very memory
15650	# consuming and fragmenting process.  To avoid this, we pick a random,
15651	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15652	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15653	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'
15654	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'
15655	;;
15656      irix5* | irix6*)
15657        case $cc_basename in
15658          CC*)
15659	    # SGI C++
15660	    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'
15661
15662	    # Archives containing C++ object files must be created using
15663	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15664	    # necessary to make sure instantiated templates are included
15665	    # in the archive.
15666	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15667	    ;;
15668          *)
15669	    if test yes = "$GXX"; then
15670	      if test no = "$with_gnu_ld"; then
15671	        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'
15672	      else
15673	        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'
15674	      fi
15675	    fi
15676	    link_all_deplibs_CXX=yes
15677	    ;;
15678        esac
15679        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15680        hardcode_libdir_separator_CXX=:
15681        inherit_rpath_CXX=yes
15682        ;;
15683
15684      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15685        case $cc_basename in
15686          KCC*)
15687	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15688
15689	    # KCC will only create a shared library if the output file
15690	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15691	    # to its proper name (with version) after linking.
15692	    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'
15693	    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'
15694	    # Commands to make compiler produce verbose output that lists
15695	    # what "hidden" libraries, object files and flags are used when
15696	    # linking a shared library.
15697	    #
15698	    # There doesn't appear to be a way to prevent this compiler from
15699	    # explicitly linking system object files so we need to strip them
15700	    # from the output so that they don't get included in the library
15701	    # dependencies.
15702	    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"'
15703
15704	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15705	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15706
15707	    # Archives containing C++ object files must be created using
15708	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15709	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15710	    ;;
15711	  icpc* | ecpc* )
15712	    # Intel C++
15713	    with_gnu_ld=yes
15714	    # version 8.0 and above of icpc choke on multiply defined symbols
15715	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15716	    # earlier do not add the objects themselves.
15717	    case `$CC -V 2>&1` in
15718	      *"Version 7."*)
15719	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15720		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'
15721		;;
15722	      *)  # Version 8.0 or newer
15723	        tmp_idyn=
15724	        case $host_cpu in
15725		  ia64*) tmp_idyn=' -i_dynamic';;
15726		esac
15727	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15728		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'
15729		;;
15730	    esac
15731	    archive_cmds_need_lc_CXX=no
15732	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15733	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15734	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15735	    ;;
15736          pgCC* | pgcpp*)
15737            # Portland Group C++ compiler
15738	    case `$CC -V` in
15739	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15740	      prelink_cmds_CXX='tpldir=Template.dir~
15741               rm -rf $tpldir~
15742               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15743               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15744	      old_archive_cmds_CXX='tpldir=Template.dir~
15745                rm -rf $tpldir~
15746                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15747                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15748                $RANLIB $oldlib'
15749	      archive_cmds_CXX='tpldir=Template.dir~
15750                rm -rf $tpldir~
15751                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15752                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15753	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15754                rm -rf $tpldir~
15755                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15756                $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'
15757	      ;;
15758	    *) # Version 6 and above use weak symbols
15759	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15760	      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'
15761	      ;;
15762	    esac
15763
15764	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15765	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15766	    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'
15767            ;;
15768	  cxx*)
15769	    # Compaq C++
15770	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15771	    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'
15772
15773	    runpath_var=LD_RUN_PATH
15774	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15775	    hardcode_libdir_separator_CXX=:
15776
15777	    # Commands to make compiler produce verbose output that lists
15778	    # what "hidden" libraries, object files and flags are used when
15779	    # linking a shared library.
15780	    #
15781	    # There doesn't appear to be a way to prevent this compiler from
15782	    # explicitly linking system object files so we need to strip them
15783	    # from the output so that they don't get included in the library
15784	    # dependencies.
15785	    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'
15786	    ;;
15787	  xl* | mpixl* | bgxl*)
15788	    # IBM XL 8.0 on PPC, with GNU ld
15789	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15790	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15791	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15792	    if test yes = "$supports_anon_versioning"; then
15793	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15794                cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15795                echo "local: *; };" >> $output_objdir/$libname.ver~
15796                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15797	    fi
15798	    ;;
15799	  *)
15800	    case `$CC -V 2>&1 | $SED 5q` in
15801	    *Sun\ C*)
15802	      # Sun C++ 5.9
15803	      no_undefined_flag_CXX=' -zdefs'
15804	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15805	      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'
15806	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15807	      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'
15808	      compiler_needs_object_CXX=yes
15809
15810	      # Not sure whether something based on
15811	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15812	      # would be better.
15813	      output_verbose_link_cmd='func_echo_all'
15814
15815	      # Archives containing C++ object files must be created using
15816	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15817	      # necessary to make sure instantiated templates are included
15818	      # in the archive.
15819	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15820	      ;;
15821	    esac
15822	    ;;
15823	esac
15824	;;
15825
15826      lynxos*)
15827        # FIXME: insert proper C++ library support
15828	ld_shlibs_CXX=no
15829	;;
15830
15831      m88k*)
15832        # FIXME: insert proper C++ library support
15833        ld_shlibs_CXX=no
15834	;;
15835
15836      mvs*)
15837        case $cc_basename in
15838          cxx*)
15839	    # FIXME: insert proper C++ library support
15840	    ld_shlibs_CXX=no
15841	    ;;
15842	  *)
15843	    # FIXME: insert proper C++ library support
15844	    ld_shlibs_CXX=no
15845	    ;;
15846	esac
15847	;;
15848
15849      *-mlibc)
15850        ld_shlibs_CXX=yes
15851	;;
15852
15853      netbsd*)
15854        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15855	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15856	  wlarc=
15857	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15858	  hardcode_direct_CXX=yes
15859	  hardcode_shlibpath_var_CXX=no
15860	fi
15861	# Workaround some broken pre-1.5 toolchains
15862	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15863	;;
15864
15865      *nto* | *qnx*)
15866        ld_shlibs_CXX=yes
15867	;;
15868
15869      openbsd*)
15870	if test -f /usr/libexec/ld.so; then
15871	  hardcode_direct_CXX=yes
15872	  hardcode_shlibpath_var_CXX=no
15873	  hardcode_direct_absolute_CXX=yes
15874	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15875	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15876	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15877	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15878	    export_dynamic_flag_spec_CXX='$wl-E'
15879	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15880	  fi
15881	  output_verbose_link_cmd=func_echo_all
15882	else
15883	  ld_shlibs_CXX=no
15884	fi
15885	;;
15886
15887      osf3* | osf4* | osf5*)
15888        case $cc_basename in
15889          KCC*)
15890	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15891
15892	    # KCC will only create a shared library if the output file
15893	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15894	    # to its proper name (with version) after linking.
15895	    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'
15896
15897	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15898	    hardcode_libdir_separator_CXX=:
15899
15900	    # Archives containing C++ object files must be created using
15901	    # the KAI C++ compiler.
15902	    case $host in
15903	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15904	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15905	    esac
15906	    ;;
15907          RCC*)
15908	    # Rational C++ 2.4.1
15909	    # FIXME: insert proper C++ library support
15910	    ld_shlibs_CXX=no
15911	    ;;
15912          cxx*)
15913	    case $host in
15914	      osf3*)
15915	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15916	        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'
15917	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15918		;;
15919	      *)
15920	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15921	        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'
15922	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15923                  echo "-hidden">> $lib.exp~
15924                  $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~
15925                  $RM $lib.exp'
15926	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15927		;;
15928	    esac
15929
15930	    hardcode_libdir_separator_CXX=:
15931
15932	    # Commands to make compiler produce verbose output that lists
15933	    # what "hidden" libraries, object files and flags are used when
15934	    # linking a shared library.
15935	    #
15936	    # There doesn't appear to be a way to prevent this compiler from
15937	    # explicitly linking system object files so we need to strip them
15938	    # from the output so that they don't get included in the library
15939	    # dependencies.
15940	    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"'
15941	    ;;
15942	  *)
15943	    if test yes,no = "$GXX,$with_gnu_ld"; then
15944	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15945	      case $host in
15946	        osf3*)
15947	          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'
15948		  ;;
15949	        *)
15950	          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'
15951		  ;;
15952	      esac
15953
15954	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15955	      hardcode_libdir_separator_CXX=:
15956
15957	      # Commands to make compiler produce verbose output that lists
15958	      # what "hidden" libraries, object files and flags are used when
15959	      # linking a shared library.
15960	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15961
15962	    else
15963	      # FIXME: insert proper C++ library support
15964	      ld_shlibs_CXX=no
15965	    fi
15966	    ;;
15967        esac
15968        ;;
15969
15970      psos*)
15971        # FIXME: insert proper C++ library support
15972        ld_shlibs_CXX=no
15973        ;;
15974
15975      serenity*)
15976        ;;
15977
15978      sunos4*)
15979        case $cc_basename in
15980          CC*)
15981	    # Sun C++ 4.x
15982	    # FIXME: insert proper C++ library support
15983	    ld_shlibs_CXX=no
15984	    ;;
15985          lcc*)
15986	    # Lucid
15987	    # FIXME: insert proper C++ library support
15988	    ld_shlibs_CXX=no
15989	    ;;
15990          *)
15991	    # FIXME: insert proper C++ library support
15992	    ld_shlibs_CXX=no
15993	    ;;
15994        esac
15995        ;;
15996
15997      solaris*)
15998        case $cc_basename in
15999          CC* | sunCC*)
16000	    # Sun C++ 4.2, 5.x and Centerline C++
16001            archive_cmds_need_lc_CXX=yes
16002	    no_undefined_flag_CXX=' -zdefs'
16003	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16004	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16005              $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'
16006
16007	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16008	    hardcode_shlibpath_var_CXX=no
16009	    case $host_os in
16010	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16011	      *)
16012		# The compiler driver will combine and reorder linker options,
16013		# but understands '-z linker_flag'.
16014	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16015		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16016	        ;;
16017	    esac
16018	    link_all_deplibs_CXX=yes
16019
16020	    output_verbose_link_cmd='func_echo_all'
16021
16022	    # Archives containing C++ object files must be created using
16023	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16024	    # necessary to make sure instantiated templates are included
16025	    # in the archive.
16026	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16027	    ;;
16028          gcx*)
16029	    # Green Hills C++ Compiler
16030	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16031
16032	    # The C++ compiler must be used to create the archive.
16033	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16034	    ;;
16035          *)
16036	    # GNU C++ compiler with Solaris linker
16037	    if test yes,no = "$GXX,$with_gnu_ld"; then
16038	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16039	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16040	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16041	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16042                  $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'
16043
16044	        # Commands to make compiler produce verbose output that lists
16045	        # what "hidden" libraries, object files and flags are used when
16046	        # linking a shared library.
16047	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16048	      else
16049	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16050	        # platform.
16051	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16052	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16053                  $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'
16054
16055	        # Commands to make compiler produce verbose output that lists
16056	        # what "hidden" libraries, object files and flags are used when
16057	        # linking a shared library.
16058	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16059	      fi
16060
16061	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16062	      case $host_os in
16063		solaris2.[0-5] | solaris2.[0-5].*) ;;
16064		*)
16065		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16066		  ;;
16067	      esac
16068	    fi
16069	    ;;
16070        esac
16071        ;;
16072
16073    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16074      no_undefined_flag_CXX='$wl-z,text'
16075      archive_cmds_need_lc_CXX=no
16076      hardcode_shlibpath_var_CXX=no
16077      runpath_var='LD_RUN_PATH'
16078
16079      case $cc_basename in
16080        CC*)
16081	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16082	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16083	  ;;
16084	*)
16085	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16086	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16087	  ;;
16088      esac
16089      ;;
16090
16091      sysv5* | sco3.2v5* | sco5v6*)
16092	# Note: We CANNOT use -z defs as we might desire, because we do not
16093	# link with -lc, and that would cause any symbols used from libc to
16094	# always be unresolved, which means just about no library would
16095	# ever link correctly.  If we're not using GNU ld we use -z text
16096	# though, which does catch some bad symbols but isn't as heavy-handed
16097	# as -z defs.
16098	no_undefined_flag_CXX='$wl-z,text'
16099	allow_undefined_flag_CXX='$wl-z,nodefs'
16100	archive_cmds_need_lc_CXX=no
16101	hardcode_shlibpath_var_CXX=no
16102	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16103	hardcode_libdir_separator_CXX=':'
16104	link_all_deplibs_CXX=yes
16105	export_dynamic_flag_spec_CXX='$wl-Bexport'
16106	runpath_var='LD_RUN_PATH'
16107
16108	case $cc_basename in
16109          CC*)
16110	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16111	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16112	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16113              '"$old_archive_cmds_CXX"
16114	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16115              '"$reload_cmds_CXX"
16116	    ;;
16117	  *)
16118	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16119	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16120	    ;;
16121	esac
16122      ;;
16123
16124      tandem*)
16125        case $cc_basename in
16126          NCC*)
16127	    # NonStop-UX NCC 3.20
16128	    # FIXME: insert proper C++ library support
16129	    ld_shlibs_CXX=no
16130	    ;;
16131          *)
16132	    # FIXME: insert proper C++ library support
16133	    ld_shlibs_CXX=no
16134	    ;;
16135        esac
16136        ;;
16137
16138      vxworks*)
16139        # FIXME: insert proper C++ library support
16140        ld_shlibs_CXX=no
16141        ;;
16142
16143      *)
16144        # FIXME: insert proper C++ library support
16145        ld_shlibs_CXX=no
16146        ;;
16147    esac
16148
16149    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16150printf "%s\n" "$ld_shlibs_CXX" >&6; }
16151    test no = "$ld_shlibs_CXX" && can_build_shared=no
16152
16153    GCC_CXX=$GXX
16154    LD_CXX=$LD
16155
16156    ## CAVEAT EMPTOR:
16157    ## There is no encapsulation within the following macros, do not change
16158    ## the running order or otherwise move them around unless you know exactly
16159    ## what you are doing...
16160    # Dependencies to place before and after the object being linked:
16161predep_objects_CXX=
16162postdep_objects_CXX=
16163predeps_CXX=
16164postdeps_CXX=
16165compiler_lib_search_path_CXX=
16166
16167cat > conftest.$ac_ext <<_LT_EOF
16168class Foo
16169{
16170public:
16171  Foo (void) { a = 0; }
16172private:
16173  int a;
16174};
16175_LT_EOF
16176
16177
16178_lt_libdeps_save_CFLAGS=$CFLAGS
16179case "$CC $CFLAGS " in #(
16180*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16181*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16182*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16183esac
16184
16185if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16186  (eval $ac_compile) 2>&5
16187  ac_status=$?
16188  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16189  test $ac_status = 0; }; then
16190  # Parse the compiler output and extract the necessary
16191  # objects, libraries and library flags.
16192
16193  # Sentinel used to keep track of whether or not we are before
16194  # the conftest object file.
16195  pre_test_object_deps_done=no
16196
16197  for p in `eval "$output_verbose_link_cmd"`; do
16198    case $prev$p in
16199
16200    -L* | -R* | -l*)
16201       # Some compilers place space between "-{L,R,l}" and the path.
16202       # Remove the space.
16203       if test x-L = x"$p" ||
16204          test x-R = x"$p" ||
16205          test x-l = x"$p"; then
16206	 prev=$p
16207	 continue
16208       fi
16209
16210       # Expand the sysroot to ease extracting the directories later.
16211       if test -z "$prev"; then
16212         case $p in
16213         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16214         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16215         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16216         esac
16217       fi
16218       case $p in
16219       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16220       esac
16221       if test no = "$pre_test_object_deps_done"; then
16222	 case $prev in
16223	 -L | -R)
16224	   # Internal compiler library paths should come after those
16225	   # provided the user.  The postdeps already come after the
16226	   # user supplied libs so there is no need to process them.
16227	   if test -z "$compiler_lib_search_path_CXX"; then
16228	     compiler_lib_search_path_CXX=$prev$p
16229	   else
16230	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16231	   fi
16232	   ;;
16233	 # The "-l" case would never come before the object being
16234	 # linked, so don't bother handling this case.
16235	 esac
16236       else
16237	 if test -z "$postdeps_CXX"; then
16238	   postdeps_CXX=$prev$p
16239	 else
16240	   postdeps_CXX="${postdeps_CXX} $prev$p"
16241	 fi
16242       fi
16243       prev=
16244       ;;
16245
16246    *.lto.$objext) ;; # Ignore GCC LTO objects
16247    *.$objext)
16248       # This assumes that the test object file only shows up
16249       # once in the compiler output.
16250       if test "$p" = "conftest.$objext"; then
16251	 pre_test_object_deps_done=yes
16252	 continue
16253       fi
16254
16255       if test no = "$pre_test_object_deps_done"; then
16256	 if test -z "$predep_objects_CXX"; then
16257	   predep_objects_CXX=$p
16258	 else
16259	   predep_objects_CXX="$predep_objects_CXX $p"
16260	 fi
16261       else
16262	 if test -z "$postdep_objects_CXX"; then
16263	   postdep_objects_CXX=$p
16264	 else
16265	   postdep_objects_CXX="$postdep_objects_CXX $p"
16266	 fi
16267       fi
16268       ;;
16269
16270    *) ;; # Ignore the rest.
16271
16272    esac
16273  done
16274
16275  # Clean up.
16276  rm -f a.out a.exe
16277else
16278  echo "libtool.m4: error: problem compiling CXX test program"
16279fi
16280
16281$RM -f confest.$objext
16282CFLAGS=$_lt_libdeps_save_CFLAGS
16283
16284# PORTME: override above test on systems where it is broken
16285case $host_os in
16286interix[3-9]*)
16287  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16288  # hack all around it, let's just trust "g++" to DTRT.
16289  predep_objects_CXX=
16290  postdep_objects_CXX=
16291  postdeps_CXX=
16292  ;;
16293esac
16294
16295
16296case " $postdeps_CXX " in
16297*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16298esac
16299 compiler_lib_search_dirs_CXX=
16300if test -n "${compiler_lib_search_path_CXX}"; then
16301 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16302fi
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334    lt_prog_compiler_wl_CXX=
16335lt_prog_compiler_pic_CXX=
16336lt_prog_compiler_static_CXX=
16337
16338
16339  # C++ specific cases for pic, static, wl, etc.
16340  if test yes = "$GXX"; then
16341    lt_prog_compiler_wl_CXX='-Wl,'
16342    lt_prog_compiler_static_CXX='-static'
16343
16344    case $host_os in
16345    aix*)
16346      # All AIX code is PIC.
16347      if test ia64 = "$host_cpu"; then
16348	# AIX 5 now supports IA64 processor
16349	lt_prog_compiler_static_CXX='-Bstatic'
16350      fi
16351      lt_prog_compiler_pic_CXX='-fPIC'
16352      ;;
16353
16354    amigaos*)
16355      case $host_cpu in
16356      powerpc)
16357            # see comment about AmigaOS4 .so support
16358            lt_prog_compiler_pic_CXX='-fPIC'
16359        ;;
16360      m68k)
16361            # FIXME: we need at least 68020 code to build shared libraries, but
16362            # adding the '-m68020' flag to GCC prevents building anything better,
16363            # like '-m68040'.
16364            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16365        ;;
16366      esac
16367      ;;
16368
16369    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16370      # PIC is the default for these OSes.
16371      ;;
16372    mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16373      # This hack is so that the source file can tell whether it is being
16374      # built for inclusion in a dll (and should export symbols for example).
16375      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16376      # (--disable-auto-import) libraries
16377      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16378      case $host_os in
16379      os2*)
16380	lt_prog_compiler_static_CXX='$wl-static'
16381	;;
16382      esac
16383      ;;
16384    darwin* | rhapsody*)
16385      # PIC is the default on this platform
16386      # Common symbols not allowed in MH_DYLIB files
16387      lt_prog_compiler_pic_CXX='-fno-common'
16388      ;;
16389    *djgpp*)
16390      # DJGPP does not support shared libraries at all
16391      lt_prog_compiler_pic_CXX=
16392      ;;
16393    haiku*)
16394      # PIC is the default for Haiku.
16395      # The "-static" flag exists, but is broken.
16396      lt_prog_compiler_static_CXX=
16397      ;;
16398    interix[3-9]*)
16399      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16400      # Instead, we relocate shared libraries at runtime.
16401      ;;
16402    sysv4*MP*)
16403      if test -d /usr/nec; then
16404	lt_prog_compiler_pic_CXX=-Kconform_pic
16405      fi
16406      ;;
16407    hpux*)
16408      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16409      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16410      # sets the default TLS model and affects inlining.
16411      case $host_cpu in
16412      hppa*64*)
16413	;;
16414      *)
16415	lt_prog_compiler_pic_CXX='-fPIC'
16416	;;
16417      esac
16418      ;;
16419    *qnx* | *nto*)
16420      # QNX uses GNU C++, but need to define -shared option too, otherwise
16421      # it will coredump.
16422      lt_prog_compiler_pic_CXX='-fPIC -shared'
16423      ;;
16424    *)
16425      lt_prog_compiler_pic_CXX='-fPIC'
16426      ;;
16427    esac
16428  else
16429    case $host_os in
16430      aix[4-9]*)
16431	# All AIX code is PIC.
16432	if test ia64 = "$host_cpu"; then
16433	  # AIX 5 now supports IA64 processor
16434	  lt_prog_compiler_static_CXX='-Bstatic'
16435	else
16436	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16437	fi
16438	;;
16439      chorus*)
16440	case $cc_basename in
16441	cxch68*)
16442	  # Green Hills C++ Compiler
16443	  # _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"
16444	  ;;
16445	esac
16446	;;
16447      mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16448	# This hack is so that the source file can tell whether it is being
16449	# built for inclusion in a dll (and should export symbols for example).
16450	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16451	;;
16452      dgux*)
16453	case $cc_basename in
16454	  ec++*)
16455	    lt_prog_compiler_pic_CXX='-KPIC'
16456	    ;;
16457	  ghcx*)
16458	    # Green Hills C++ Compiler
16459	    lt_prog_compiler_pic_CXX='-pic'
16460	    ;;
16461	  *)
16462	    ;;
16463	esac
16464	;;
16465      freebsd* | dragonfly* | midnightbsd*)
16466	# FreeBSD uses GNU C++
16467	;;
16468      hpux9* | hpux10* | hpux11*)
16469	case $cc_basename in
16470	  CC*)
16471	    lt_prog_compiler_wl_CXX='-Wl,'
16472	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16473	    if test ia64 != "$host_cpu"; then
16474	      lt_prog_compiler_pic_CXX='+Z'
16475	    fi
16476	    ;;
16477	  aCC*)
16478	    lt_prog_compiler_wl_CXX='-Wl,'
16479	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16480	    case $host_cpu in
16481	    hppa*64*|ia64*)
16482	      # +Z the default
16483	      ;;
16484	    *)
16485	      lt_prog_compiler_pic_CXX='+Z'
16486	      ;;
16487	    esac
16488	    ;;
16489	  *)
16490	    ;;
16491	esac
16492	;;
16493      interix*)
16494	# This is c89, which is MS Visual C++ (no shared libs)
16495	# Anyone wants to do a port?
16496	;;
16497      irix5* | irix6* | nonstopux*)
16498	case $cc_basename in
16499	  CC*)
16500	    lt_prog_compiler_wl_CXX='-Wl,'
16501	    lt_prog_compiler_static_CXX='-non_shared'
16502	    # CC pic flag -KPIC is the default.
16503	    ;;
16504	  *)
16505	    ;;
16506	esac
16507	;;
16508      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16509	case $cc_basename in
16510	  KCC*)
16511	    # KAI C++ Compiler
16512	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16513	    lt_prog_compiler_pic_CXX='-fPIC'
16514	    ;;
16515	  ecpc* )
16516	    # old Intel C++ for x86_64, which still supported -KPIC.
16517	    lt_prog_compiler_wl_CXX='-Wl,'
16518	    lt_prog_compiler_pic_CXX='-KPIC'
16519	    lt_prog_compiler_static_CXX='-static'
16520	    ;;
16521	  icpc* )
16522	    # Intel C++, used to be incompatible with GCC.
16523	    # ICC 10 doesn't accept -KPIC any more.
16524	    lt_prog_compiler_wl_CXX='-Wl,'
16525	    lt_prog_compiler_pic_CXX='-fPIC'
16526	    lt_prog_compiler_static_CXX='-static'
16527	    ;;
16528	  pgCC* | pgcpp*)
16529	    # Portland Group C++ compiler
16530	    lt_prog_compiler_wl_CXX='-Wl,'
16531	    lt_prog_compiler_pic_CXX='-fpic'
16532	    lt_prog_compiler_static_CXX='-Bstatic'
16533	    ;;
16534	  cxx*)
16535	    # Compaq C++
16536	    # Make sure the PIC flag is empty.  It appears that all Alpha
16537	    # Linux and Compaq Tru64 Unix objects are PIC.
16538	    lt_prog_compiler_pic_CXX=
16539	    lt_prog_compiler_static_CXX='-non_shared'
16540	    ;;
16541	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16542	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16543	    lt_prog_compiler_wl_CXX='-Wl,'
16544	    lt_prog_compiler_pic_CXX='-qpic'
16545	    lt_prog_compiler_static_CXX='-qstaticlink'
16546	    ;;
16547	  *)
16548	    case `$CC -V 2>&1 | $SED 5q` in
16549	    *Sun\ C*)
16550	      # Sun C++ 5.9
16551	      lt_prog_compiler_pic_CXX='-KPIC'
16552	      lt_prog_compiler_static_CXX='-Bstatic'
16553	      lt_prog_compiler_wl_CXX='-Qoption ld '
16554	      ;;
16555	    esac
16556	    ;;
16557	esac
16558	;;
16559      lynxos*)
16560	;;
16561      m88k*)
16562	;;
16563      mvs*)
16564	case $cc_basename in
16565	  cxx*)
16566	    lt_prog_compiler_pic_CXX='-W c,exportall'
16567	    ;;
16568	  *)
16569	    ;;
16570	esac
16571	;;
16572      netbsd* | netbsdelf*-gnu)
16573	;;
16574      *-mlibc)
16575	;;
16576      *qnx* | *nto*)
16577        # QNX uses GNU C++, but need to define -shared option too, otherwise
16578        # it will coredump.
16579        lt_prog_compiler_pic_CXX='-fPIC -shared'
16580        ;;
16581      osf3* | osf4* | osf5*)
16582	case $cc_basename in
16583	  KCC*)
16584	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16585	    ;;
16586	  RCC*)
16587	    # Rational C++ 2.4.1
16588	    lt_prog_compiler_pic_CXX='-pic'
16589	    ;;
16590	  cxx*)
16591	    # Digital/Compaq C++
16592	    lt_prog_compiler_wl_CXX='-Wl,'
16593	    # Make sure the PIC flag is empty.  It appears that all Alpha
16594	    # Linux and Compaq Tru64 Unix objects are PIC.
16595	    lt_prog_compiler_pic_CXX=
16596	    lt_prog_compiler_static_CXX='-non_shared'
16597	    ;;
16598	  *)
16599	    ;;
16600	esac
16601	;;
16602      psos*)
16603	;;
16604      serenity*)
16605        ;;
16606      solaris*)
16607	case $cc_basename in
16608	  CC* | sunCC*)
16609	    # Sun C++ 4.2, 5.x and Centerline C++
16610	    lt_prog_compiler_pic_CXX='-KPIC'
16611	    lt_prog_compiler_static_CXX='-Bstatic'
16612	    lt_prog_compiler_wl_CXX='-Qoption ld '
16613	    ;;
16614	  gcx*)
16615	    # Green Hills C++ Compiler
16616	    lt_prog_compiler_pic_CXX='-PIC'
16617	    ;;
16618	  *)
16619	    ;;
16620	esac
16621	;;
16622      sunos4*)
16623	case $cc_basename in
16624	  CC*)
16625	    # Sun C++ 4.x
16626	    lt_prog_compiler_pic_CXX='-pic'
16627	    lt_prog_compiler_static_CXX='-Bstatic'
16628	    ;;
16629	  lcc*)
16630	    # Lucid
16631	    lt_prog_compiler_pic_CXX='-pic'
16632	    ;;
16633	  *)
16634	    ;;
16635	esac
16636	;;
16637      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16638	case $cc_basename in
16639	  CC*)
16640	    lt_prog_compiler_wl_CXX='-Wl,'
16641	    lt_prog_compiler_pic_CXX='-KPIC'
16642	    lt_prog_compiler_static_CXX='-Bstatic'
16643	    ;;
16644	esac
16645	;;
16646      tandem*)
16647	case $cc_basename in
16648	  NCC*)
16649	    # NonStop-UX NCC 3.20
16650	    lt_prog_compiler_pic_CXX='-KPIC'
16651	    ;;
16652	  *)
16653	    ;;
16654	esac
16655	;;
16656      vxworks*)
16657	;;
16658      *)
16659	lt_prog_compiler_can_build_shared_CXX=no
16660	;;
16661    esac
16662  fi
16663
16664case $host_os in
16665  # For platforms that do not support PIC, -DPIC is meaningless:
16666  *djgpp*)
16667    lt_prog_compiler_pic_CXX=
16668    ;;
16669  *)
16670    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16671    ;;
16672esac
16673
16674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16675printf %s "checking for $compiler option to produce PIC... " >&6; }
16676if test ${lt_cv_prog_compiler_pic_CXX+y}
16677then :
16678  printf %s "(cached) " >&6
16679else case e in #(
16680  e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
16681esac
16682fi
16683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16684printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16685lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16686
16687#
16688# Check to make sure the PIC flag actually works.
16689#
16690if test -n "$lt_prog_compiler_pic_CXX"; then
16691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16692printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16693if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16694then :
16695  printf %s "(cached) " >&6
16696else case e in #(
16697  e) lt_cv_prog_compiler_pic_works_CXX=no
16698   ac_outfile=conftest.$ac_objext
16699   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16700   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16701   # Insert the option either (1) after the last *FLAGS variable, or
16702   # (2) before a word containing "conftest.", or (3) at the end.
16703   # Note that $ac_compile itself does not contain backslashes and begins
16704   # with a dollar sign (not a hyphen), so the echo should work correctly.
16705   # The option is referenced via a variable to avoid confusing sed.
16706   lt_compile=`echo "$ac_compile" | $SED \
16707   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16708   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16709   -e 's:$: $lt_compiler_flag:'`
16710   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16711   (eval "$lt_compile" 2>conftest.err)
16712   ac_status=$?
16713   cat conftest.err >&5
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   if (exit $ac_status) && test -s "$ac_outfile"; then
16716     # The compiler can only warn and ignore the option if not recognized
16717     # So say no if there are warnings other than the usual output.
16718     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16719     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16720     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16721       lt_cv_prog_compiler_pic_works_CXX=yes
16722     fi
16723   fi
16724   $RM conftest*
16725 ;;
16726esac
16727fi
16728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16729printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16730
16731if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16732    case $lt_prog_compiler_pic_CXX in
16733     "" | " "*) ;;
16734     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16735     esac
16736else
16737    lt_prog_compiler_pic_CXX=
16738     lt_prog_compiler_can_build_shared_CXX=no
16739fi
16740
16741fi
16742
16743
16744
16745
16746
16747#
16748# Check to make sure the static flag actually works.
16749#
16750wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16752printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16753if test ${lt_cv_prog_compiler_static_works_CXX+y}
16754then :
16755  printf %s "(cached) " >&6
16756else case e in #(
16757  e) lt_cv_prog_compiler_static_works_CXX=no
16758   save_LDFLAGS=$LDFLAGS
16759   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16760   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16761   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16762     # The linker can only warn and ignore the option if not recognized
16763     # So say no if there are warnings
16764     if test -s conftest.err; then
16765       # Append any errors to the config.log.
16766       cat conftest.err 1>&5
16767       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16768       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16769       if diff conftest.exp conftest.er2 >/dev/null; then
16770         lt_cv_prog_compiler_static_works_CXX=yes
16771       fi
16772     else
16773       lt_cv_prog_compiler_static_works_CXX=yes
16774     fi
16775   fi
16776   $RM -r conftest*
16777   LDFLAGS=$save_LDFLAGS
16778 ;;
16779esac
16780fi
16781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16782printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16783
16784if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16785    :
16786else
16787    lt_prog_compiler_static_CXX=
16788fi
16789
16790
16791
16792
16793    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16794printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16795if test ${lt_cv_prog_compiler_c_o_CXX+y}
16796then :
16797  printf %s "(cached) " >&6
16798else case e in #(
16799  e) lt_cv_prog_compiler_c_o_CXX=no
16800   $RM -r conftest 2>/dev/null
16801   mkdir conftest
16802   cd conftest
16803   mkdir out
16804   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16805
16806   lt_compiler_flag="-o out/conftest2.$ac_objext"
16807   # Insert the option either (1) after the last *FLAGS variable, or
16808   # (2) before a word containing "conftest.", or (3) at the end.
16809   # Note that $ac_compile itself does not contain backslashes and begins
16810   # with a dollar sign (not a hyphen), so the echo should work correctly.
16811   lt_compile=`echo "$ac_compile" | $SED \
16812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16814   -e 's:$: $lt_compiler_flag:'`
16815   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16816   (eval "$lt_compile" 2>out/conftest.err)
16817   ac_status=$?
16818   cat out/conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16821   then
16822     # The compiler can only warn and ignore the option if not recognized
16823     # So say no if there are warnings
16824     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16825     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16826     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16827       lt_cv_prog_compiler_c_o_CXX=yes
16828     fi
16829   fi
16830   chmod u+w . 2>&5
16831   $RM conftest*
16832   # SGI C++ compiler will create directory out/ii_files/ for
16833   # template instantiation
16834   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16835   $RM out/* && rmdir out
16836   cd ..
16837   $RM -r conftest
16838   $RM conftest*
16839 ;;
16840esac
16841fi
16842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16843printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16844
16845
16846
16847    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16848printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16849if test ${lt_cv_prog_compiler_c_o_CXX+y}
16850then :
16851  printf %s "(cached) " >&6
16852else case e in #(
16853  e) lt_cv_prog_compiler_c_o_CXX=no
16854   $RM -r conftest 2>/dev/null
16855   mkdir conftest
16856   cd conftest
16857   mkdir out
16858   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16859
16860   lt_compiler_flag="-o out/conftest2.$ac_objext"
16861   # Insert the option either (1) after the last *FLAGS variable, or
16862   # (2) before a word containing "conftest.", or (3) at the end.
16863   # Note that $ac_compile itself does not contain backslashes and begins
16864   # with a dollar sign (not a hyphen), so the echo should work correctly.
16865   lt_compile=`echo "$ac_compile" | $SED \
16866   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16867   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16868   -e 's:$: $lt_compiler_flag:'`
16869   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16870   (eval "$lt_compile" 2>out/conftest.err)
16871   ac_status=$?
16872   cat out/conftest.err >&5
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16875   then
16876     # The compiler can only warn and ignore the option if not recognized
16877     # So say no if there are warnings
16878     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16879     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16880     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16881       lt_cv_prog_compiler_c_o_CXX=yes
16882     fi
16883   fi
16884   chmod u+w . 2>&5
16885   $RM conftest*
16886   # SGI C++ compiler will create directory out/ii_files/ for
16887   # template instantiation
16888   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16889   $RM out/* && rmdir out
16890   cd ..
16891   $RM -r conftest
16892   $RM conftest*
16893 ;;
16894esac
16895fi
16896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16897printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16898
16899
16900
16901
16902hard_links=nottested
16903if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16904  # do not overwrite the value of need_locks provided by the user
16905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16906printf %s "checking if we can lock with hard links... " >&6; }
16907  hard_links=yes
16908  $RM conftest*
16909  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16910  touch conftest.a
16911  ln conftest.a conftest.b 2>&5 || hard_links=no
16912  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16914printf "%s\n" "$hard_links" >&6; }
16915  if test no = "$hard_links"; then
16916    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16917printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16918    need_locks=warn
16919  fi
16920else
16921  need_locks=no
16922fi
16923
16924
16925
16926    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16927printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16928
16929  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16930  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16931  case $host_os in
16932  aix[4-9]*)
16933    # If we're using GNU nm, then we don't want the "-C" option.
16934    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16935    # Without the "-l" option, or with the "-B" option, AIX nm treats
16936    # weak defined symbols like other global defined symbols, whereas
16937    # GNU nm marks them as "W".
16938    # While the 'weak' keyword is ignored in the Export File, we need
16939    # it in the Import File for the 'aix-soname' feature, so we have
16940    # to replace the "-B" option with "-P" for AIX nm.
16941    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16942      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'
16943    else
16944      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 == "L") || (\$ 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'
16945    fi
16946    ;;
16947  pw32*)
16948    export_symbols_cmds_CXX=$ltdll_cmds
16949    ;;
16950  cygwin* | mingw* | windows* | cegcc*)
16951    case $cc_basename in
16952    cl* | icl*)
16953      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16954      ;;
16955    *)
16956      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'
16957      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16958      ;;
16959    esac
16960    ;;
16961  *)
16962    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16963    ;;
16964  esac
16965
16966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16967printf "%s\n" "$ld_shlibs_CXX" >&6; }
16968test no = "$ld_shlibs_CXX" && can_build_shared=no
16969
16970with_gnu_ld_CXX=$with_gnu_ld
16971
16972
16973
16974
16975
16976
16977#
16978# Do we need to explicitly link libc?
16979#
16980case "x$archive_cmds_need_lc_CXX" in
16981x|xyes)
16982  # Assume -lc should be added
16983  archive_cmds_need_lc_CXX=yes
16984
16985  if test yes,yes = "$GCC,$enable_shared"; then
16986    case $archive_cmds_CXX in
16987    *'~'*)
16988      # FIXME: we may have to deal with multi-command sequences.
16989      ;;
16990    '$CC '*)
16991      # Test whether the compiler implicitly links with -lc since on some
16992      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16993      # to ld, don't add -lc before -lgcc.
16994      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16995printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16996if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16997then :
16998  printf %s "(cached) " >&6
16999else case e in #(
17000  e) $RM conftest*
17001	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17002
17003	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17004  (eval $ac_compile) 2>&5
17005  ac_status=$?
17006  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17007  test $ac_status = 0; } 2>conftest.err; then
17008	  soname=conftest
17009	  lib=conftest
17010	  libobjs=conftest.$ac_objext
17011	  deplibs=
17012	  wl=$lt_prog_compiler_wl_CXX
17013	  pic_flag=$lt_prog_compiler_pic_CXX
17014	  compiler_flags=-v
17015	  linker_flags=-v
17016	  verstring=
17017	  output_objdir=.
17018	  libname=conftest
17019	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17020	  allow_undefined_flag_CXX=
17021	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17022  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17023  ac_status=$?
17024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17025  test $ac_status = 0; }
17026	  then
17027	    lt_cv_archive_cmds_need_lc_CXX=no
17028	  else
17029	    lt_cv_archive_cmds_need_lc_CXX=yes
17030	  fi
17031	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17032	else
17033	  cat conftest.err 1>&5
17034	fi
17035	$RM conftest*
17036	 ;;
17037esac
17038fi
17039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17040printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17041      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17042      ;;
17043    esac
17044  fi
17045  ;;
17046esac
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17110printf %s "checking dynamic linker characteristics... " >&6; }
17111
17112library_names_spec=
17113libname_spec='lib$name'
17114soname_spec=
17115shrext_cmds=.so
17116postinstall_cmds=
17117postuninstall_cmds=
17118finish_cmds=
17119finish_eval=
17120shlibpath_var=
17121shlibpath_overrides_runpath=unknown
17122version_type=none
17123dynamic_linker="$host_os ld.so"
17124sys_lib_dlsearch_path_spec="/lib /usr/lib"
17125need_lib_prefix=unknown
17126hardcode_into_libs=no
17127
17128# when you set need_version to no, make sure it does not cause -set_version
17129# flags to be left without arguments
17130need_version=unknown
17131
17132
17133
17134case $host_os in
17135aix3*)
17136  version_type=linux # correct to gnu/linux during the next big refactor
17137  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17138  shlibpath_var=LIBPATH
17139
17140  # AIX 3 has no versioning support, so we append a major version to the name.
17141  soname_spec='$libname$release$shared_ext$major'
17142  ;;
17143
17144aix[4-9]*)
17145  version_type=linux # correct to gnu/linux during the next big refactor
17146  need_lib_prefix=no
17147  need_version=no
17148  hardcode_into_libs=yes
17149  if test ia64 = "$host_cpu"; then
17150    # AIX 5 supports IA64
17151    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17152    shlibpath_var=LD_LIBRARY_PATH
17153  else
17154    # With GCC up to 2.95.x, collect2 would create an import file
17155    # for dependence libraries.  The import file would start with
17156    # the line '#! .'.  This would cause the generated library to
17157    # depend on '.', always an invalid library.  This was fixed in
17158    # development snapshots of GCC prior to 3.0.
17159    case $host_os in
17160      aix4 | aix4.[01] | aix4.[01].*)
17161      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17162	   echo ' yes '
17163	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17164	:
17165      else
17166	can_build_shared=no
17167      fi
17168      ;;
17169    esac
17170    # Using Import Files as archive members, it is possible to support
17171    # filename-based versioning of shared library archives on AIX. While
17172    # this would work for both with and without runtime linking, it will
17173    # prevent static linking of such archives. So we do filename-based
17174    # shared library versioning with .so extension only, which is used
17175    # when both runtime linking and shared linking is enabled.
17176    # Unfortunately, runtime linking may impact performance, so we do
17177    # not want this to be the default eventually. Also, we use the
17178    # versioned .so libs for executables only if there is the -brtl
17179    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
17180    # To allow for filename-based versioning support, we need to create
17181    # libNAME.so.V as an archive file, containing:
17182    # *) an Import File, referring to the versioned filename of the
17183    #    archive as well as the shared archive member, telling the
17184    #    bitwidth (32 or 64) of that shared object, and providing the
17185    #    list of exported symbols of that shared object, eventually
17186    #    decorated with the 'weak' keyword
17187    # *) the shared object with the F_LOADONLY flag set, to really avoid
17188    #    it being seen by the linker.
17189    # At run time we better use the real file rather than another symlink,
17190    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17191
17192    case $with_aix_soname,$aix_use_runtimelinking in
17193    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17194    # soname into executable. Probably we can add versioning support to
17195    # collect2, so additional links can be useful in future.
17196    aix,yes) # traditional libtool
17197      dynamic_linker='AIX unversionable lib.so'
17198      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17199      # instead of lib<name>.a to let people know that these are not
17200      # typical AIX shared libraries.
17201      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17202      ;;
17203    aix,no) # traditional AIX only
17204      dynamic_linker='AIX lib.a(lib.so.V)'
17205      # We preserve .a as extension for shared libraries through AIX4.2
17206      # and later when we are not doing run time linking.
17207      library_names_spec='$libname$release.a $libname.a'
17208      soname_spec='$libname$release$shared_ext$major'
17209      ;;
17210    svr4,*) # full svr4 only
17211      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17212      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17213      # We do not specify a path in Import Files, so LIBPATH fires.
17214      shlibpath_overrides_runpath=yes
17215      ;;
17216    *,yes) # both, prefer svr4
17217      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17218      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17219      # unpreferred sharedlib libNAME.a needs extra handling
17220      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"'
17221      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"'
17222      # We do not specify a path in Import Files, so LIBPATH fires.
17223      shlibpath_overrides_runpath=yes
17224      ;;
17225    *,no) # both, prefer aix
17226      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17227      library_names_spec='$libname$release.a $libname.a'
17228      soname_spec='$libname$release$shared_ext$major'
17229      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17230      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)'
17231      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"'
17232      ;;
17233    esac
17234    shlibpath_var=LIBPATH
17235  fi
17236  ;;
17237
17238amigaos*)
17239  case $host_cpu in
17240  powerpc)
17241    # Since July 2007 AmigaOS4 officially supports .so libraries.
17242    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17243    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17244    ;;
17245  m68k)
17246    library_names_spec='$libname.ixlibrary $libname.a'
17247    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17248    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'
17249    ;;
17250  esac
17251  ;;
17252
17253beos*)
17254  library_names_spec='$libname$shared_ext'
17255  dynamic_linker="$host_os ld.so"
17256  shlibpath_var=LIBRARY_PATH
17257  ;;
17258
17259bsdi[45]*)
17260  version_type=linux # correct to gnu/linux during the next big refactor
17261  need_version=no
17262  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17263  soname_spec='$libname$release$shared_ext$major'
17264  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17265  shlibpath_var=LD_LIBRARY_PATH
17266  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17267  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17268  # the default ld.so.conf also contains /usr/contrib/lib and
17269  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17270  # libtool to hard-code these into programs
17271  ;;
17272
17273cygwin* | mingw* | windows* | pw32* | cegcc*)
17274  version_type=windows
17275  shrext_cmds=.dll
17276  need_version=no
17277  need_lib_prefix=no
17278
17279  case $GCC,$cc_basename in
17280  yes,*)
17281    # gcc
17282    library_names_spec='$libname.dll.a'
17283    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17284    # If user builds GCC with multilib enabled,
17285    # it should just install on $(libdir)
17286    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
17287    if test xyes = x"$multilib"; then
17288      postinstall_cmds='base_file=`basename \$file`~
17289        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17290        dldir=$destdir/`dirname \$dlpath`~
17291        $install_prog $dir/$dlname $destdir/$dlname~
17292        chmod a+x $destdir/$dlname~
17293        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17294          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
17295        fi'
17296    else
17297      postinstall_cmds='base_file=`basename \$file`~
17298        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17299        dldir=$destdir/`dirname \$dlpath`~
17300        test -d \$dldir || mkdir -p \$dldir~
17301        $install_prog $dir/$dlname \$dldir/$dlname~
17302        chmod a+x \$dldir/$dlname~
17303        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17304          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17305        fi'
17306    fi
17307    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17308      dlpath=$dir/\$dldll~
17309       $RM \$dlpath'
17310    shlibpath_overrides_runpath=yes
17311
17312    case $host_os in
17313    cygwin*)
17314      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17315      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17316
17317      ;;
17318    mingw* | windows* | cegcc*)
17319      # MinGW DLLs use traditional 'lib' prefix
17320      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17321      ;;
17322    pw32*)
17323      # pw32 DLLs use 'pw' prefix rather than 'lib'
17324      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17325      ;;
17326    esac
17327    dynamic_linker='Win32 ld.exe'
17328    ;;
17329
17330  *,cl* | *,icl*)
17331    # Native MSVC or ICC
17332    libname_spec='$name'
17333    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17334    library_names_spec='$libname.dll.lib'
17335
17336    case $build_os in
17337    mingw* | windows*)
17338      sys_lib_search_path_spec=
17339      lt_save_ifs=$IFS
17340      IFS=';'
17341      for lt_path in $LIB
17342      do
17343        IFS=$lt_save_ifs
17344        # Let DOS variable expansion print the short 8.3 style file name.
17345        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17346        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17347      done
17348      IFS=$lt_save_ifs
17349      # Convert to MSYS style.
17350      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17351      ;;
17352    cygwin*)
17353      # Convert to unix form, then to dos form, then back to unix form
17354      # but this time dos style (no spaces!) so that the unix form looks
17355      # like /cygdrive/c/PROGRA~1:/cygdr...
17356      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17357      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17358      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17359      ;;
17360    *)
17361      sys_lib_search_path_spec=$LIB
17362      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17363        # It is most probably a Windows format PATH.
17364        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17365      else
17366        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17367      fi
17368      # FIXME: find the short name or the path components, as spaces are
17369      # common. (e.g. "Program Files" -> "PROGRA~1")
17370      ;;
17371    esac
17372
17373    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17374    postinstall_cmds='base_file=`basename \$file`~
17375      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17376      dldir=$destdir/`dirname \$dlpath`~
17377      test -d \$dldir || mkdir -p \$dldir~
17378      $install_prog $dir/$dlname \$dldir/$dlname'
17379    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17380      dlpath=$dir/\$dldll~
17381       $RM \$dlpath'
17382    shlibpath_overrides_runpath=yes
17383    dynamic_linker='Win32 link.exe'
17384    ;;
17385
17386  *)
17387    # Assume MSVC and ICC wrapper
17388    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17389    dynamic_linker='Win32 ld.exe'
17390    ;;
17391  esac
17392  # FIXME: first we should search . and the directory the executable is in
17393  shlibpath_var=PATH
17394  ;;
17395
17396darwin* | rhapsody*)
17397  dynamic_linker="$host_os dyld"
17398  version_type=darwin
17399  need_lib_prefix=no
17400  need_version=no
17401  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17402  soname_spec='$libname$release$major$shared_ext'
17403  shlibpath_overrides_runpath=yes
17404  shlibpath_var=DYLD_LIBRARY_PATH
17405  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17406
17407  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17408  ;;
17409
17410dgux*)
17411  version_type=linux # correct to gnu/linux during the next big refactor
17412  need_lib_prefix=no
17413  need_version=no
17414  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17415  soname_spec='$libname$release$shared_ext$major'
17416  shlibpath_var=LD_LIBRARY_PATH
17417  ;;
17418
17419freebsd* | dragonfly* | midnightbsd*)
17420  # DragonFly does not have aout.  When/if they implement a new
17421  # versioning mechanism, adjust this.
17422  if test -x /usr/bin/objformat; then
17423    objformat=`/usr/bin/objformat`
17424  else
17425    case $host_os in
17426    freebsd[23].*) objformat=aout ;;
17427    *) objformat=elf ;;
17428    esac
17429  fi
17430  version_type=freebsd-$objformat
17431  case $version_type in
17432    freebsd-elf*)
17433      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17434      soname_spec='$libname$release$shared_ext$major'
17435      need_version=no
17436      need_lib_prefix=no
17437      ;;
17438    freebsd-*)
17439      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17440      need_version=yes
17441      ;;
17442  esac
17443  case $host_cpu in
17444    powerpc64)
17445      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
17446      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
17447      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448/* end confdefs.h.  */
17449int test_pointer_size[sizeof (void *) - 5];
17450
17451_ACEOF
17452if ac_fn_cxx_try_compile "$LINENO"
17453then :
17454  shlibpath_var=LD_LIBRARY_PATH
17455else case e in #(
17456  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
17457esac
17458fi
17459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17460      ;;
17461    *)
17462      shlibpath_var=LD_LIBRARY_PATH
17463      ;;
17464  esac
17465  case $host_os in
17466  freebsd2.*)
17467    shlibpath_overrides_runpath=yes
17468    ;;
17469  freebsd3.[01]* | freebsdelf3.[01]*)
17470    shlibpath_overrides_runpath=yes
17471    hardcode_into_libs=yes
17472    ;;
17473  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17474  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17475    shlibpath_overrides_runpath=no
17476    hardcode_into_libs=yes
17477    ;;
17478  *) # from 4.6 on, and DragonFly
17479    shlibpath_overrides_runpath=yes
17480    hardcode_into_libs=yes
17481    ;;
17482  esac
17483  ;;
17484
17485haiku*)
17486  version_type=linux # correct to gnu/linux during the next big refactor
17487  need_lib_prefix=no
17488  need_version=no
17489  dynamic_linker="$host_os runtime_loader"
17490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17491  soname_spec='$libname$release$shared_ext$major'
17492  shlibpath_var=LIBRARY_PATH
17493  shlibpath_overrides_runpath=no
17494  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
17495  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
17496  hardcode_into_libs=no
17497  ;;
17498
17499hpux9* | hpux10* | hpux11*)
17500  # Give a soname corresponding to the major version so that dld.sl refuses to
17501  # link against other versions.
17502  version_type=sunos
17503  need_lib_prefix=no
17504  need_version=no
17505  case $host_cpu in
17506  ia64*)
17507    shrext_cmds='.so'
17508    hardcode_into_libs=yes
17509    dynamic_linker="$host_os dld.so"
17510    shlibpath_var=LD_LIBRARY_PATH
17511    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17512    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17513    soname_spec='$libname$release$shared_ext$major'
17514    if test 32 = "$HPUX_IA64_MODE"; then
17515      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17516      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17517    else
17518      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17519      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17520    fi
17521    ;;
17522  hppa*64*)
17523    shrext_cmds='.sl'
17524    hardcode_into_libs=yes
17525    dynamic_linker="$host_os dld.sl"
17526    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17527    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17528    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17529    soname_spec='$libname$release$shared_ext$major'
17530    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17531    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17532    ;;
17533  *)
17534    shrext_cmds='.sl'
17535    dynamic_linker="$host_os dld.sl"
17536    shlibpath_var=SHLIB_PATH
17537    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17538    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17539    soname_spec='$libname$release$shared_ext$major'
17540    ;;
17541  esac
17542  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17543  postinstall_cmds='chmod 555 $lib'
17544  # or fails outright, so override atomically:
17545  install_override_mode=555
17546  ;;
17547
17548interix[3-9]*)
17549  version_type=linux # correct to gnu/linux during the next big refactor
17550  need_lib_prefix=no
17551  need_version=no
17552  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17553  soname_spec='$libname$release$shared_ext$major'
17554  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17555  shlibpath_var=LD_LIBRARY_PATH
17556  shlibpath_overrides_runpath=no
17557  hardcode_into_libs=yes
17558  ;;
17559
17560irix5* | irix6* | nonstopux*)
17561  case $host_os in
17562    nonstopux*) version_type=nonstopux ;;
17563    *)
17564	if test yes = "$lt_cv_prog_gnu_ld"; then
17565		version_type=linux # correct to gnu/linux during the next big refactor
17566	else
17567		version_type=irix
17568	fi ;;
17569  esac
17570  need_lib_prefix=no
17571  need_version=no
17572  soname_spec='$libname$release$shared_ext$major'
17573  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17574  case $host_os in
17575  irix5* | nonstopux*)
17576    libsuff= shlibsuff=
17577    ;;
17578  *)
17579    case $LD in # libtool.m4 will add one of these switches to LD
17580    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17581      libsuff= shlibsuff= libmagic=32-bit;;
17582    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17583      libsuff=32 shlibsuff=N32 libmagic=N32;;
17584    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17585      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17586    *) libsuff= shlibsuff= libmagic=never-match;;
17587    esac
17588    ;;
17589  esac
17590  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17591  shlibpath_overrides_runpath=no
17592  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17593  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17594  hardcode_into_libs=yes
17595  ;;
17596
17597# No shared lib support for Linux oldld, aout, or coff.
17598linux*oldld* | linux*aout* | linux*coff*)
17599  dynamic_linker=no
17600  ;;
17601
17602linux*android*)
17603  version_type=none # Android doesn't support versioned libraries.
17604  need_lib_prefix=no
17605  need_version=no
17606  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
17607  soname_spec='$libname$release$shared_ext'
17608  finish_cmds=
17609  shlibpath_var=LD_LIBRARY_PATH
17610  shlibpath_overrides_runpath=yes
17611
17612  # This implies no fast_install, which is unacceptable.
17613  # Some rework will be needed to allow for fast_install
17614  # before this can be enabled.
17615  hardcode_into_libs=yes
17616
17617  dynamic_linker='Android linker'
17618  # -rpath works at least for libraries that are not overridden by
17619  # libraries installed in system locations.
17620  hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17621  ;;
17622
17623# This must be glibc/ELF.
17624linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17625  version_type=linux # correct to gnu/linux during the next big refactor
17626  need_lib_prefix=no
17627  need_version=no
17628  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17629  soname_spec='$libname$release$shared_ext$major'
17630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17631  shlibpath_var=LD_LIBRARY_PATH
17632  shlibpath_overrides_runpath=no
17633
17634  # Some binutils ld are patched to set DT_RUNPATH
17635  if test ${lt_cv_shlibpath_overrides_runpath+y}
17636then :
17637  printf %s "(cached) " >&6
17638else case e in #(
17639  e) lt_cv_shlibpath_overrides_runpath=no
17640    save_LDFLAGS=$LDFLAGS
17641    save_libdir=$libdir
17642    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17643	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645/* end confdefs.h.  */
17646
17647int
17648main (void)
17649{
17650
17651  ;
17652  return 0;
17653}
17654_ACEOF
17655if ac_fn_cxx_try_link "$LINENO"
17656then :
17657  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17658then :
17659  lt_cv_shlibpath_overrides_runpath=yes
17660fi
17661fi
17662rm -f core conftest.err conftest.$ac_objext conftest.beam \
17663    conftest$ac_exeext conftest.$ac_ext
17664    LDFLAGS=$save_LDFLAGS
17665    libdir=$save_libdir
17666     ;;
17667esac
17668fi
17669
17670  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17671
17672  # This implies no fast_install, which is unacceptable.
17673  # Some rework will be needed to allow for fast_install
17674  # before this can be enabled.
17675  hardcode_into_libs=yes
17676
17677  # Ideally, we could use ldconfig to report *all* directories which are
17678  # searched for libraries, however this is still not possible.  Aside from not
17679  # being certain /sbin/ldconfig is available, command
17680  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17681  # even though it is searched at run-time.  Try to do the best guess by
17682  # appending ld.so.conf contents (and includes) to the search path.
17683  if test -f /etc/ld.so.conf; then
17684    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' ' '`
17685    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17686  fi
17687
17688  # We used to test for /lib/ld.so.1 and disable shared libraries on
17689  # powerpc, because MkLinux only supported shared libraries with the
17690  # GNU dynamic linker.  Since this was broken with cross compilers,
17691  # most powerpc-linux boxes support dynamic linking these days and
17692  # people can always --disable-shared, the test was removed, and we
17693  # assume the GNU/Linux dynamic linker is in use.
17694  dynamic_linker='GNU/Linux ld.so'
17695  ;;
17696
17697netbsdelf*-gnu)
17698  version_type=linux
17699  need_lib_prefix=no
17700  need_version=no
17701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17702  soname_spec='$libname$release$shared_ext$major'
17703  shlibpath_var=LD_LIBRARY_PATH
17704  shlibpath_overrides_runpath=no
17705  hardcode_into_libs=yes
17706  dynamic_linker='NetBSD ld.elf_so'
17707  ;;
17708
17709netbsd*)
17710  version_type=sunos
17711  need_lib_prefix=no
17712  need_version=no
17713  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17714    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17715    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17716    dynamic_linker='NetBSD (a.out) ld.so'
17717  else
17718    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17719    soname_spec='$libname$release$shared_ext$major'
17720    dynamic_linker='NetBSD ld.elf_so'
17721  fi
17722  shlibpath_var=LD_LIBRARY_PATH
17723  shlibpath_overrides_runpath=yes
17724  hardcode_into_libs=yes
17725  ;;
17726
17727*-mlibc)
17728  version_type=linux # correct to gnu/linux during the next big refactor
17729  need_lib_prefix=no
17730  need_version=no
17731  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17732  soname_spec='$libname$release$shared_ext$major'
17733  dynamic_linker='mlibc ld.so'
17734  shlibpath_var=LD_LIBRARY_PATH
17735  shlibpath_overrides_runpath=no
17736  hardcode_into_libs=yes
17737  ;;
17738
17739newsos6)
17740  version_type=linux # correct to gnu/linux during the next big refactor
17741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17742  shlibpath_var=LD_LIBRARY_PATH
17743  shlibpath_overrides_runpath=yes
17744  ;;
17745
17746*nto* | *qnx*)
17747  version_type=qnx
17748  need_lib_prefix=no
17749  need_version=no
17750  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17751  soname_spec='$libname$release$shared_ext$major'
17752  shlibpath_var=LD_LIBRARY_PATH
17753  shlibpath_overrides_runpath=no
17754  hardcode_into_libs=yes
17755  dynamic_linker='ldqnx.so'
17756  ;;
17757
17758openbsd*)
17759  version_type=sunos
17760  sys_lib_dlsearch_path_spec=/usr/lib
17761  need_lib_prefix=no
17762  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17763    need_version=no
17764  else
17765    need_version=yes
17766  fi
17767  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17768  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17769  shlibpath_var=LD_LIBRARY_PATH
17770  shlibpath_overrides_runpath=yes
17771  ;;
17772
17773os2*)
17774  libname_spec='$name'
17775  version_type=windows
17776  shrext_cmds=.dll
17777  need_version=no
17778  need_lib_prefix=no
17779  # OS/2 can only load a DLL with a base name of 8 characters or less.
17780  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17781    v=$($ECHO $release$versuffix | tr -d .-);
17782    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17783    $ECHO $n$v`$shared_ext'
17784  library_names_spec='${libname}_dll.$libext'
17785  dynamic_linker='OS/2 ld.exe'
17786  shlibpath_var=BEGINLIBPATH
17787  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17788  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17789  postinstall_cmds='base_file=`basename \$file`~
17790    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17791    dldir=$destdir/`dirname \$dlpath`~
17792    test -d \$dldir || mkdir -p \$dldir~
17793    $install_prog $dir/$dlname \$dldir/$dlname~
17794    chmod a+x \$dldir/$dlname~
17795    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17796      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17797    fi'
17798  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17799    dlpath=$dir/\$dldll~
17800    $RM \$dlpath'
17801  ;;
17802
17803osf3* | osf4* | osf5*)
17804  version_type=osf
17805  need_lib_prefix=no
17806  need_version=no
17807  soname_spec='$libname$release$shared_ext$major'
17808  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17809  shlibpath_var=LD_LIBRARY_PATH
17810  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17811  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17812  ;;
17813
17814rdos*)
17815  dynamic_linker=no
17816  ;;
17817
17818serenity*)
17819  version_type=linux # correct to gnu/linux during the next big refactor
17820  need_lib_prefix=no
17821  need_version=no
17822  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17823  soname_spec='$libname$release$shared_ext$major'
17824  shlibpath_var=LD_LIBRARY_PATH
17825  shlibpath_overrides_runpath=no
17826  dynamic_linker='SerenityOS LibELF'
17827  ;;
17828
17829solaris*)
17830  version_type=linux # correct to gnu/linux during the next big refactor
17831  need_lib_prefix=no
17832  need_version=no
17833  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17834  soname_spec='$libname$release$shared_ext$major'
17835  shlibpath_var=LD_LIBRARY_PATH
17836  shlibpath_overrides_runpath=yes
17837  hardcode_into_libs=yes
17838  # ldd complains unless libraries are executable
17839  postinstall_cmds='chmod +x $lib'
17840  ;;
17841
17842sunos4*)
17843  version_type=sunos
17844  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17845  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17846  shlibpath_var=LD_LIBRARY_PATH
17847  shlibpath_overrides_runpath=yes
17848  if test yes = "$with_gnu_ld"; then
17849    need_lib_prefix=no
17850  fi
17851  need_version=yes
17852  ;;
17853
17854sysv4 | sysv4.3*)
17855  version_type=linux # correct to gnu/linux during the next big refactor
17856  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17857  soname_spec='$libname$release$shared_ext$major'
17858  shlibpath_var=LD_LIBRARY_PATH
17859  case $host_vendor in
17860    sni)
17861      shlibpath_overrides_runpath=no
17862      need_lib_prefix=no
17863      runpath_var=LD_RUN_PATH
17864      ;;
17865    siemens)
17866      need_lib_prefix=no
17867      ;;
17868    motorola)
17869      need_lib_prefix=no
17870      need_version=no
17871      shlibpath_overrides_runpath=no
17872      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17873      ;;
17874  esac
17875  ;;
17876
17877sysv4*MP*)
17878  if test -d /usr/nec; then
17879    version_type=linux # correct to gnu/linux during the next big refactor
17880    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17881    soname_spec='$libname$shared_ext.$major'
17882    shlibpath_var=LD_LIBRARY_PATH
17883  fi
17884  ;;
17885
17886sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17887  version_type=sco
17888  need_lib_prefix=no
17889  need_version=no
17890  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17891  soname_spec='$libname$release$shared_ext$major'
17892  shlibpath_var=LD_LIBRARY_PATH
17893  shlibpath_overrides_runpath=yes
17894  hardcode_into_libs=yes
17895  if test yes = "$with_gnu_ld"; then
17896    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17897  else
17898    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17899    case $host_os in
17900      sco3.2v5*)
17901        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17902	;;
17903    esac
17904  fi
17905  sys_lib_dlsearch_path_spec='/usr/lib'
17906  ;;
17907
17908tpf*)
17909  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17910  version_type=linux # correct to gnu/linux during the next big refactor
17911  need_lib_prefix=no
17912  need_version=no
17913  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17914  shlibpath_var=LD_LIBRARY_PATH
17915  shlibpath_overrides_runpath=no
17916  hardcode_into_libs=yes
17917  ;;
17918
17919uts4*)
17920  version_type=linux # correct to gnu/linux during the next big refactor
17921  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17922  soname_spec='$libname$release$shared_ext$major'
17923  shlibpath_var=LD_LIBRARY_PATH
17924  ;;
17925
17926emscripten*)
17927  version_type=none
17928  need_lib_prefix=no
17929  need_version=no
17930  library_names_spec='$libname$release$shared_ext'
17931  soname_spec='$libname$release$shared_ext'
17932  finish_cmds=
17933  dynamic_linker="Emscripten linker"
17934  lt_prog_compiler_wl_CXX=
17935lt_prog_compiler_pic_CXX=
17936lt_prog_compiler_static_CXX=
17937
17938
17939  # C++ specific cases for pic, static, wl, etc.
17940  if test yes = "$GXX"; then
17941    lt_prog_compiler_wl_CXX='-Wl,'
17942    lt_prog_compiler_static_CXX='-static'
17943
17944    case $host_os in
17945    aix*)
17946      # All AIX code is PIC.
17947      if test ia64 = "$host_cpu"; then
17948	# AIX 5 now supports IA64 processor
17949	lt_prog_compiler_static_CXX='-Bstatic'
17950      fi
17951      lt_prog_compiler_pic_CXX='-fPIC'
17952      ;;
17953
17954    amigaos*)
17955      case $host_cpu in
17956      powerpc)
17957            # see comment about AmigaOS4 .so support
17958            lt_prog_compiler_pic_CXX='-fPIC'
17959        ;;
17960      m68k)
17961            # FIXME: we need at least 68020 code to build shared libraries, but
17962            # adding the '-m68020' flag to GCC prevents building anything better,
17963            # like '-m68040'.
17964            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17965        ;;
17966      esac
17967      ;;
17968
17969    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17970      # PIC is the default for these OSes.
17971      ;;
17972    mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17973      # This hack is so that the source file can tell whether it is being
17974      # built for inclusion in a dll (and should export symbols for example).
17975      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17976      # (--disable-auto-import) libraries
17977      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17978      case $host_os in
17979      os2*)
17980	lt_prog_compiler_static_CXX='$wl-static'
17981	;;
17982      esac
17983      ;;
17984    darwin* | rhapsody*)
17985      # PIC is the default on this platform
17986      # Common symbols not allowed in MH_DYLIB files
17987      lt_prog_compiler_pic_CXX='-fno-common'
17988      ;;
17989    *djgpp*)
17990      # DJGPP does not support shared libraries at all
17991      lt_prog_compiler_pic_CXX=
17992      ;;
17993    haiku*)
17994      # PIC is the default for Haiku.
17995      # The "-static" flag exists, but is broken.
17996      lt_prog_compiler_static_CXX=
17997      ;;
17998    interix[3-9]*)
17999      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18000      # Instead, we relocate shared libraries at runtime.
18001      ;;
18002    sysv4*MP*)
18003      if test -d /usr/nec; then
18004	lt_prog_compiler_pic_CXX=-Kconform_pic
18005      fi
18006      ;;
18007    hpux*)
18008      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18009      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18010      # sets the default TLS model and affects inlining.
18011      case $host_cpu in
18012      hppa*64*)
18013	;;
18014      *)
18015	lt_prog_compiler_pic_CXX='-fPIC'
18016	;;
18017      esac
18018      ;;
18019    *qnx* | *nto*)
18020      # QNX uses GNU C++, but need to define -shared option too, otherwise
18021      # it will coredump.
18022      lt_prog_compiler_pic_CXX='-fPIC -shared'
18023      ;;
18024    *)
18025      lt_prog_compiler_pic_CXX='-fPIC'
18026      ;;
18027    esac
18028  else
18029    case $host_os in
18030      aix[4-9]*)
18031	# All AIX code is PIC.
18032	if test ia64 = "$host_cpu"; then
18033	  # AIX 5 now supports IA64 processor
18034	  lt_prog_compiler_static_CXX='-Bstatic'
18035	else
18036	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18037	fi
18038	;;
18039      chorus*)
18040	case $cc_basename in
18041	cxch68*)
18042	  # Green Hills C++ Compiler
18043	  # _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"
18044	  ;;
18045	esac
18046	;;
18047      mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18048	# This hack is so that the source file can tell whether it is being
18049	# built for inclusion in a dll (and should export symbols for example).
18050	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18051	;;
18052      dgux*)
18053	case $cc_basename in
18054	  ec++*)
18055	    lt_prog_compiler_pic_CXX='-KPIC'
18056	    ;;
18057	  ghcx*)
18058	    # Green Hills C++ Compiler
18059	    lt_prog_compiler_pic_CXX='-pic'
18060	    ;;
18061	  *)
18062	    ;;
18063	esac
18064	;;
18065      freebsd* | dragonfly* | midnightbsd*)
18066	# FreeBSD uses GNU C++
18067	;;
18068      hpux9* | hpux10* | hpux11*)
18069	case $cc_basename in
18070	  CC*)
18071	    lt_prog_compiler_wl_CXX='-Wl,'
18072	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18073	    if test ia64 != "$host_cpu"; then
18074	      lt_prog_compiler_pic_CXX='+Z'
18075	    fi
18076	    ;;
18077	  aCC*)
18078	    lt_prog_compiler_wl_CXX='-Wl,'
18079	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18080	    case $host_cpu in
18081	    hppa*64*|ia64*)
18082	      # +Z the default
18083	      ;;
18084	    *)
18085	      lt_prog_compiler_pic_CXX='+Z'
18086	      ;;
18087	    esac
18088	    ;;
18089	  *)
18090	    ;;
18091	esac
18092	;;
18093      interix*)
18094	# This is c89, which is MS Visual C++ (no shared libs)
18095	# Anyone wants to do a port?
18096	;;
18097      irix5* | irix6* | nonstopux*)
18098	case $cc_basename in
18099	  CC*)
18100	    lt_prog_compiler_wl_CXX='-Wl,'
18101	    lt_prog_compiler_static_CXX='-non_shared'
18102	    # CC pic flag -KPIC is the default.
18103	    ;;
18104	  *)
18105	    ;;
18106	esac
18107	;;
18108      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18109	case $cc_basename in
18110	  KCC*)
18111	    # KAI C++ Compiler
18112	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18113	    lt_prog_compiler_pic_CXX='-fPIC'
18114	    ;;
18115	  ecpc* )
18116	    # old Intel C++ for x86_64, which still supported -KPIC.
18117	    lt_prog_compiler_wl_CXX='-Wl,'
18118	    lt_prog_compiler_pic_CXX='-KPIC'
18119	    lt_prog_compiler_static_CXX='-static'
18120	    ;;
18121	  icpc* )
18122	    # Intel C++, used to be incompatible with GCC.
18123	    # ICC 10 doesn't accept -KPIC any more.
18124	    lt_prog_compiler_wl_CXX='-Wl,'
18125	    lt_prog_compiler_pic_CXX='-fPIC'
18126	    lt_prog_compiler_static_CXX='-static'
18127	    ;;
18128	  pgCC* | pgcpp*)
18129	    # Portland Group C++ compiler
18130	    lt_prog_compiler_wl_CXX='-Wl,'
18131	    lt_prog_compiler_pic_CXX='-fpic'
18132	    lt_prog_compiler_static_CXX='-Bstatic'
18133	    ;;
18134	  cxx*)
18135	    # Compaq C++
18136	    # Make sure the PIC flag is empty.  It appears that all Alpha
18137	    # Linux and Compaq Tru64 Unix objects are PIC.
18138	    lt_prog_compiler_pic_CXX=
18139	    lt_prog_compiler_static_CXX='-non_shared'
18140	    ;;
18141	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18142	    # IBM XL 8.0, 9.0 on PPC and BlueGene
18143	    lt_prog_compiler_wl_CXX='-Wl,'
18144	    lt_prog_compiler_pic_CXX='-qpic'
18145	    lt_prog_compiler_static_CXX='-qstaticlink'
18146	    ;;
18147	  *)
18148	    case `$CC -V 2>&1 | $SED 5q` in
18149	    *Sun\ C*)
18150	      # Sun C++ 5.9
18151	      lt_prog_compiler_pic_CXX='-KPIC'
18152	      lt_prog_compiler_static_CXX='-Bstatic'
18153	      lt_prog_compiler_wl_CXX='-Qoption ld '
18154	      ;;
18155	    esac
18156	    ;;
18157	esac
18158	;;
18159      lynxos*)
18160	;;
18161      m88k*)
18162	;;
18163      mvs*)
18164	case $cc_basename in
18165	  cxx*)
18166	    lt_prog_compiler_pic_CXX='-W c,exportall'
18167	    ;;
18168	  *)
18169	    ;;
18170	esac
18171	;;
18172      netbsd* | netbsdelf*-gnu)
18173	;;
18174      *-mlibc)
18175	;;
18176      *qnx* | *nto*)
18177        # QNX uses GNU C++, but need to define -shared option too, otherwise
18178        # it will coredump.
18179        lt_prog_compiler_pic_CXX='-fPIC -shared'
18180        ;;
18181      osf3* | osf4* | osf5*)
18182	case $cc_basename in
18183	  KCC*)
18184	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18185	    ;;
18186	  RCC*)
18187	    # Rational C++ 2.4.1
18188	    lt_prog_compiler_pic_CXX='-pic'
18189	    ;;
18190	  cxx*)
18191	    # Digital/Compaq C++
18192	    lt_prog_compiler_wl_CXX='-Wl,'
18193	    # Make sure the PIC flag is empty.  It appears that all Alpha
18194	    # Linux and Compaq Tru64 Unix objects are PIC.
18195	    lt_prog_compiler_pic_CXX=
18196	    lt_prog_compiler_static_CXX='-non_shared'
18197	    ;;
18198	  *)
18199	    ;;
18200	esac
18201	;;
18202      psos*)
18203	;;
18204      serenity*)
18205        ;;
18206      solaris*)
18207	case $cc_basename in
18208	  CC* | sunCC*)
18209	    # Sun C++ 4.2, 5.x and Centerline C++
18210	    lt_prog_compiler_pic_CXX='-KPIC'
18211	    lt_prog_compiler_static_CXX='-Bstatic'
18212	    lt_prog_compiler_wl_CXX='-Qoption ld '
18213	    ;;
18214	  gcx*)
18215	    # Green Hills C++ Compiler
18216	    lt_prog_compiler_pic_CXX='-PIC'
18217	    ;;
18218	  *)
18219	    ;;
18220	esac
18221	;;
18222      sunos4*)
18223	case $cc_basename in
18224	  CC*)
18225	    # Sun C++ 4.x
18226	    lt_prog_compiler_pic_CXX='-pic'
18227	    lt_prog_compiler_static_CXX='-Bstatic'
18228	    ;;
18229	  lcc*)
18230	    # Lucid
18231	    lt_prog_compiler_pic_CXX='-pic'
18232	    ;;
18233	  *)
18234	    ;;
18235	esac
18236	;;
18237      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18238	case $cc_basename in
18239	  CC*)
18240	    lt_prog_compiler_wl_CXX='-Wl,'
18241	    lt_prog_compiler_pic_CXX='-KPIC'
18242	    lt_prog_compiler_static_CXX='-Bstatic'
18243	    ;;
18244	esac
18245	;;
18246      tandem*)
18247	case $cc_basename in
18248	  NCC*)
18249	    # NonStop-UX NCC 3.20
18250	    lt_prog_compiler_pic_CXX='-KPIC'
18251	    ;;
18252	  *)
18253	    ;;
18254	esac
18255	;;
18256      vxworks*)
18257	;;
18258      *)
18259	lt_prog_compiler_can_build_shared_CXX=no
18260	;;
18261    esac
18262  fi
18263
18264case $host_os in
18265  # For platforms that do not support PIC, -DPIC is meaningless:
18266  *djgpp*)
18267    lt_prog_compiler_pic_CXX=
18268    ;;
18269  *)
18270    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18271    ;;
18272esac
18273
18274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18275printf %s "checking for $compiler option to produce PIC... " >&6; }
18276if test ${lt_cv_prog_compiler_pic_CXX+y}
18277then :
18278  printf %s "(cached) " >&6
18279else case e in #(
18280  e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18281esac
18282fi
18283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18284printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18285lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18286
18287#
18288# Check to make sure the PIC flag actually works.
18289#
18290if test -n "$lt_prog_compiler_pic_CXX"; then
18291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18292printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18293if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18294then :
18295  printf %s "(cached) " >&6
18296else case e in #(
18297  e) lt_cv_prog_compiler_pic_works_CXX=no
18298   ac_outfile=conftest.$ac_objext
18299   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18300   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
18301   # Insert the option either (1) after the last *FLAGS variable, or
18302   # (2) before a word containing "conftest.", or (3) at the end.
18303   # Note that $ac_compile itself does not contain backslashes and begins
18304   # with a dollar sign (not a hyphen), so the echo should work correctly.
18305   # The option is referenced via a variable to avoid confusing sed.
18306   lt_compile=`echo "$ac_compile" | $SED \
18307   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18308   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18309   -e 's:$: $lt_compiler_flag:'`
18310   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18311   (eval "$lt_compile" 2>conftest.err)
18312   ac_status=$?
18313   cat conftest.err >&5
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   if (exit $ac_status) && test -s "$ac_outfile"; then
18316     # The compiler can only warn and ignore the option if not recognized
18317     # So say no if there are warnings other than the usual output.
18318     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18319     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18320     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18321       lt_cv_prog_compiler_pic_works_CXX=yes
18322     fi
18323   fi
18324   $RM conftest*
18325 ;;
18326esac
18327fi
18328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18329printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18330
18331if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18332    case $lt_prog_compiler_pic_CXX in
18333     "" | " "*) ;;
18334     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18335     esac
18336else
18337    lt_prog_compiler_pic_CXX=
18338     lt_prog_compiler_can_build_shared_CXX=no
18339fi
18340
18341fi
18342
18343
18344
18345
18346
18347#
18348# Check to make sure the static flag actually works.
18349#
18350wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18352printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18353if test ${lt_cv_prog_compiler_static_works_CXX+y}
18354then :
18355  printf %s "(cached) " >&6
18356else case e in #(
18357  e) lt_cv_prog_compiler_static_works_CXX=no
18358   save_LDFLAGS=$LDFLAGS
18359   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18360   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18361   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18362     # The linker can only warn and ignore the option if not recognized
18363     # So say no if there are warnings
18364     if test -s conftest.err; then
18365       # Append any errors to the config.log.
18366       cat conftest.err 1>&5
18367       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18368       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18369       if diff conftest.exp conftest.er2 >/dev/null; then
18370         lt_cv_prog_compiler_static_works_CXX=yes
18371       fi
18372     else
18373       lt_cv_prog_compiler_static_works_CXX=yes
18374     fi
18375   fi
18376   $RM -r conftest*
18377   LDFLAGS=$save_LDFLAGS
18378 ;;
18379esac
18380fi
18381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18382printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18383
18384if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18385    :
18386else
18387    lt_prog_compiler_static_CXX=
18388fi
18389
18390
18391
18392='-fPIC'
18393  archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
18394  archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
18395  archive_cmds_need_lc_CXX=no
18396  no_undefined_flag_CXX=
18397  ;;
18398
18399*)
18400  dynamic_linker=no
18401  ;;
18402esac
18403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18404printf "%s\n" "$dynamic_linker" >&6; }
18405test no = "$dynamic_linker" && can_build_shared=no
18406
18407variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18408if test yes = "$GCC"; then
18409  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18410fi
18411
18412if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18413  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18414fi
18415
18416if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18417  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18418fi
18419
18420# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18421configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18422
18423# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18424func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18425
18426# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18427configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18469printf %s "checking how to hardcode library paths into programs... " >&6; }
18470hardcode_action_CXX=
18471if test -n "$hardcode_libdir_flag_spec_CXX" ||
18472   test -n "$runpath_var_CXX" ||
18473   test yes = "$hardcode_automatic_CXX"; then
18474
18475  # We can hardcode non-existent directories.
18476  if test no != "$hardcode_direct_CXX" &&
18477     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18478     # have to relink, otherwise we might link with an installed library
18479     # when we should be linking with a yet-to-be-installed one
18480     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18481     test no != "$hardcode_minus_L_CXX"; then
18482    # Linking always hardcodes the temporary library directory.
18483    hardcode_action_CXX=relink
18484  else
18485    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18486    hardcode_action_CXX=immediate
18487  fi
18488else
18489  # We cannot hardcode anything, or else we can only hardcode existing
18490  # directories.
18491  hardcode_action_CXX=unsupported
18492fi
18493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18494printf "%s\n" "$hardcode_action_CXX" >&6; }
18495
18496if test relink = "$hardcode_action_CXX" ||
18497   test yes = "$inherit_rpath_CXX"; then
18498  # Fast installation is not supported
18499  enable_fast_install=no
18500elif test yes = "$shlibpath_overrides_runpath" ||
18501     test no = "$enable_shared"; then
18502  # Fast installation is not necessary
18503  enable_fast_install=needless
18504fi
18505
18506
18507
18508
18509
18510
18511
18512  fi # test -n "$compiler"
18513
18514  CC=$lt_save_CC
18515  CFLAGS=$lt_save_CFLAGS
18516  LDCXX=$LD
18517  LD=$lt_save_LD
18518  GCC=$lt_save_GCC
18519  with_gnu_ld=$lt_save_with_gnu_ld
18520  lt_cv_path_LDCXX=$lt_cv_path_LD
18521  lt_cv_path_LD=$lt_save_path_LD
18522  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18523  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18524fi # test yes != "$_lt_caught_CXX_error"
18525
18526ac_ext=cpp
18527ac_cpp='$CXXCPP $CPPFLAGS'
18528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18531
18532
18533  ax_cxx_compile_alternatives="20"    ax_cxx_compile_cxx20_required=true
18534  ac_ext=cpp
18535ac_cpp='$CXXCPP $CPPFLAGS'
18536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18539  ac_success=no
18540
18541
18542
18543
18544
18545    if test x$ac_success = xno; then
18546                    for alternative in ${ax_cxx_compile_alternatives}; do
18547      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18548        if test x"$switch" = xMSVC; then
18549                                        switch=-std:c++${alternative}
18550          cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_${switch}_MSVC" | sed "$as_sed_sh"`
18551        else
18552          cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_$switch" | sed "$as_sed_sh"`
18553        fi
18554        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5
18555printf %s "checking whether $CXX supports C++20 features with $switch... " >&6; }
18556if eval test \${$cachevar+y}
18557then :
18558  printf %s "(cached) " >&6
18559else case e in #(
18560  e) ac_save_CXX="$CXX"
18561           CXX="$CXX $switch"
18562           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563/* end confdefs.h.  */
18564
18565
18566// If the compiler admits that it is not ready for C++11, why torture it?
18567// Hopefully, this will speed up the test.
18568
18569#ifndef __cplusplus
18570
18571#error "This is not a C++ compiler"
18572
18573// MSVC always sets __cplusplus to 199711L in older versions; newer versions
18574// only set it correctly if /Zc:__cplusplus is specified as well as a
18575// /std:c++NN switch:
18576//
18577// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18578//
18579// The value __cplusplus ought to have is available in _MSVC_LANG since
18580// Visual Studio 2015 Update 3:
18581//
18582// https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
18583//
18584// This was also the first MSVC version to support C++14 so we can't use the
18585// value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having
18586// C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later.
18587#elif __cplusplus < 201103L && !defined _MSC_VER
18588
18589#error "This is not a C++11 compiler"
18590
18591#else
18592
18593namespace cxx11
18594{
18595
18596  namespace test_static_assert
18597  {
18598
18599    template <typename T>
18600    struct check
18601    {
18602      static_assert(sizeof(int) <= sizeof(T), "not big enough");
18603    };
18604
18605  }
18606
18607  namespace test_final_override
18608  {
18609
18610    struct Base
18611    {
18612      virtual ~Base() {}
18613      virtual void f() {}
18614    };
18615
18616    struct Derived : public Base
18617    {
18618      virtual ~Derived() override {}
18619      virtual void f() override {}
18620    };
18621
18622  }
18623
18624  namespace test_double_right_angle_brackets
18625  {
18626
18627    template < typename T >
18628    struct check {};
18629
18630    typedef check<void> single_type;
18631    typedef check<check<void>> double_type;
18632    typedef check<check<check<void>>> triple_type;
18633    typedef check<check<check<check<void>>>> quadruple_type;
18634
18635  }
18636
18637  namespace test_decltype
18638  {
18639
18640    int
18641    f()
18642    {
18643      int a = 1;
18644      decltype(a) b = 2;
18645      return a + b;
18646    }
18647
18648  }
18649
18650  namespace test_type_deduction
18651  {
18652
18653    template < typename T1, typename T2 >
18654    struct is_same
18655    {
18656      static const bool value = false;
18657    };
18658
18659    template < typename T >
18660    struct is_same<T, T>
18661    {
18662      static const bool value = true;
18663    };
18664
18665    template < typename T1, typename T2 >
18666    auto
18667    add(T1 a1, T2 a2) -> decltype(a1 + a2)
18668    {
18669      return a1 + a2;
18670    }
18671
18672    int
18673    test(const int c, volatile int v)
18674    {
18675      static_assert(is_same<int, decltype(0)>::value == true, "");
18676      static_assert(is_same<int, decltype(c)>::value == false, "");
18677      static_assert(is_same<int, decltype(v)>::value == false, "");
18678      auto ac = c;
18679      auto av = v;
18680      auto sumi = ac + av + 'x';
18681      auto sumf = ac + av + 1.0;
18682      static_assert(is_same<int, decltype(ac)>::value == true, "");
18683      static_assert(is_same<int, decltype(av)>::value == true, "");
18684      static_assert(is_same<int, decltype(sumi)>::value == true, "");
18685      static_assert(is_same<int, decltype(sumf)>::value == false, "");
18686      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18687      return (sumf > 0.0) ? sumi : add(c, v);
18688    }
18689
18690  }
18691
18692  namespace test_noexcept
18693  {
18694
18695    int f() { return 0; }
18696    int g() noexcept { return 0; }
18697
18698    static_assert(noexcept(f()) == false, "");
18699    static_assert(noexcept(g()) == true, "");
18700
18701  }
18702
18703  namespace test_constexpr
18704  {
18705
18706    template < typename CharT >
18707    unsigned long constexpr
18708    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18709    {
18710      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18711    }
18712
18713    template < typename CharT >
18714    unsigned long constexpr
18715    strlen_c(const CharT *const s) noexcept
18716    {
18717      return strlen_c_r(s, 0UL);
18718    }
18719
18720    static_assert(strlen_c("") == 0UL, "");
18721    static_assert(strlen_c("1") == 1UL, "");
18722    static_assert(strlen_c("example") == 7UL, "");
18723    static_assert(strlen_c("another\0example") == 7UL, "");
18724
18725  }
18726
18727  namespace test_rvalue_references
18728  {
18729
18730    template < int N >
18731    struct answer
18732    {
18733      static constexpr int value = N;
18734    };
18735
18736    answer<1> f(int&)       { return answer<1>(); }
18737    answer<2> f(const int&) { return answer<2>(); }
18738    answer<3> f(int&&)      { return answer<3>(); }
18739
18740    void
18741    test()
18742    {
18743      int i = 0;
18744      const int c = 0;
18745      static_assert(decltype(f(i))::value == 1, "");
18746      static_assert(decltype(f(c))::value == 2, "");
18747      static_assert(decltype(f(0))::value == 3, "");
18748    }
18749
18750  }
18751
18752  namespace test_uniform_initialization
18753  {
18754
18755    struct test
18756    {
18757      static const int zero {};
18758      static const int one {1};
18759    };
18760
18761    static_assert(test::zero == 0, "");
18762    static_assert(test::one == 1, "");
18763
18764  }
18765
18766  namespace test_lambdas
18767  {
18768
18769    void
18770    test1()
18771    {
18772      auto lambda1 = [](){};
18773      auto lambda2 = lambda1;
18774      lambda1();
18775      lambda2();
18776    }
18777
18778    int
18779    test2()
18780    {
18781      auto a = [](int i, int j){ return i + j; }(1, 2);
18782      auto b = []() -> int { return '0'; }();
18783      auto c = [=](){ return a + b; }();
18784      auto d = [&](){ return c; }();
18785      auto e = [a, &b](int x) mutable {
18786        const auto identity = [](int y){ return y; };
18787        for (auto i = 0; i < a; ++i)
18788          a += b--;
18789        return x + identity(a + b);
18790      }(0);
18791      return a + b + c + d + e;
18792    }
18793
18794    int
18795    test3()
18796    {
18797      const auto nullary = [](){ return 0; };
18798      const auto unary = [](int x){ return x; };
18799      using nullary_t = decltype(nullary);
18800      using unary_t = decltype(unary);
18801      const auto higher1st = [](nullary_t f){ return f(); };
18802      const auto higher2nd = [unary](nullary_t f1){
18803        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18804      };
18805      return higher1st(nullary) + higher2nd(nullary)(unary);
18806    }
18807
18808  }
18809
18810  namespace test_variadic_templates
18811  {
18812
18813    template <int...>
18814    struct sum;
18815
18816    template <int N0, int... N1toN>
18817    struct sum<N0, N1toN...>
18818    {
18819      static constexpr auto value = N0 + sum<N1toN...>::value;
18820    };
18821
18822    template <>
18823    struct sum<>
18824    {
18825      static constexpr auto value = 0;
18826    };
18827
18828    static_assert(sum<>::value == 0, "");
18829    static_assert(sum<1>::value == 1, "");
18830    static_assert(sum<23>::value == 23, "");
18831    static_assert(sum<1, 2>::value == 3, "");
18832    static_assert(sum<5, 5, 11>::value == 21, "");
18833    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18834
18835  }
18836
18837  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18838  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18839  // because of this.
18840  namespace test_template_alias_sfinae
18841  {
18842
18843    struct foo {};
18844
18845    template<typename T>
18846    using member = typename T::member_type;
18847
18848    template<typename T>
18849    void func(...) {}
18850
18851    template<typename T>
18852    void func(member<T>*) {}
18853
18854    void test();
18855
18856    void test() { func<foo>(0); }
18857
18858  }
18859
18860}  // namespace cxx11
18861
18862#endif  // __cplusplus >= 201103L
18863
18864
18865
18866
18867// If the compiler admits that it is not ready for C++14, why torture it?
18868// Hopefully, this will speed up the test.
18869
18870#ifndef __cplusplus
18871
18872#error "This is not a C++ compiler"
18873
18874#elif __cplusplus < 201402L && !defined _MSC_VER
18875
18876#error "This is not a C++14 compiler"
18877
18878#else
18879
18880namespace cxx14
18881{
18882
18883  namespace test_polymorphic_lambdas
18884  {
18885
18886    int
18887    test()
18888    {
18889      const auto lambda = [](auto&&... args){
18890        const auto istiny = [](auto x){
18891          return (sizeof(x) == 1UL) ? 1 : 0;
18892        };
18893        const int aretiny[] = { istiny(args)... };
18894        return aretiny[0];
18895      };
18896      return lambda(1, 1L, 1.0f, '1');
18897    }
18898
18899  }
18900
18901  namespace test_binary_literals
18902  {
18903
18904    constexpr auto ivii = 0b0000000000101010;
18905    static_assert(ivii == 42, "wrong value");
18906
18907  }
18908
18909  namespace test_generalized_constexpr
18910  {
18911
18912    template < typename CharT >
18913    constexpr unsigned long
18914    strlen_c(const CharT *const s) noexcept
18915    {
18916      auto length = 0UL;
18917      for (auto p = s; *p; ++p)
18918        ++length;
18919      return length;
18920    }
18921
18922    static_assert(strlen_c("") == 0UL, "");
18923    static_assert(strlen_c("x") == 1UL, "");
18924    static_assert(strlen_c("test") == 4UL, "");
18925    static_assert(strlen_c("another\0test") == 7UL, "");
18926
18927  }
18928
18929  namespace test_lambda_init_capture
18930  {
18931
18932    int
18933    test()
18934    {
18935      auto x = 0;
18936      const auto lambda1 = [a = x](int b){ return a + b; };
18937      const auto lambda2 = [a = lambda1(x)](){ return a; };
18938      return lambda2();
18939    }
18940
18941  }
18942
18943  namespace test_digit_separators
18944  {
18945
18946    constexpr auto ten_million = 100'000'000;
18947    static_assert(ten_million == 100000000, "");
18948
18949  }
18950
18951  namespace test_return_type_deduction
18952  {
18953
18954    auto f(int& x) { return x; }
18955    decltype(auto) g(int& x) { return x; }
18956
18957    template < typename T1, typename T2 >
18958    struct is_same
18959    {
18960      static constexpr auto value = false;
18961    };
18962
18963    template < typename T >
18964    struct is_same<T, T>
18965    {
18966      static constexpr auto value = true;
18967    };
18968
18969    int
18970    test()
18971    {
18972      auto x = 0;
18973      static_assert(is_same<int, decltype(f(x))>::value, "");
18974      static_assert(is_same<int&, decltype(g(x))>::value, "");
18975      return x;
18976    }
18977
18978  }
18979
18980}  // namespace cxx14
18981
18982#endif  // __cplusplus >= 201402L
18983
18984
18985
18986
18987// If the compiler admits that it is not ready for C++17, why torture it?
18988// Hopefully, this will speed up the test.
18989
18990#ifndef __cplusplus
18991
18992#error "This is not a C++ compiler"
18993
18994#elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
18995
18996#error "This is not a C++17 compiler"
18997
18998#else
18999
19000#include <initializer_list>
19001#include <utility>
19002#include <type_traits>
19003
19004namespace cxx17
19005{
19006
19007  namespace test_constexpr_lambdas
19008  {
19009
19010    constexpr int foo = [](){return 42;}();
19011
19012  }
19013
19014  namespace test::nested_namespace::definitions
19015  {
19016
19017  }
19018
19019  namespace test_fold_expression
19020  {
19021
19022    template<typename... Args>
19023    int multiply(Args... args)
19024    {
19025      return (args * ... * 1);
19026    }
19027
19028    template<typename... Args>
19029    bool all(Args... args)
19030    {
19031      return (args && ...);
19032    }
19033
19034  }
19035
19036  namespace test_extended_static_assert
19037  {
19038
19039    static_assert (true);
19040
19041  }
19042
19043  namespace test_auto_brace_init_list
19044  {
19045
19046    auto foo = {5};
19047    auto bar {5};
19048
19049    static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
19050    static_assert(std::is_same<int, decltype(bar)>::value);
19051  }
19052
19053  namespace test_typename_in_template_template_parameter
19054  {
19055
19056    template<template<typename> typename X> struct D;
19057
19058  }
19059
19060  namespace test_fallthrough_nodiscard_maybe_unused_attributes
19061  {
19062
19063    int f1()
19064    {
19065      return 42;
19066    }
19067
19068    [[nodiscard]] int f2()
19069    {
19070      [[maybe_unused]] auto unused = f1();
19071
19072      switch (f1())
19073      {
19074      case 17:
19075        f1();
19076        [[fallthrough]];
19077      case 42:
19078        f1();
19079      }
19080      return f1();
19081    }
19082
19083  }
19084
19085  namespace test_extended_aggregate_initialization
19086  {
19087
19088    struct base1
19089    {
19090      int b1, b2 = 42;
19091    };
19092
19093    struct base2
19094    {
19095      base2() {
19096        b3 = 42;
19097      }
19098      int b3;
19099    };
19100
19101    struct derived : base1, base2
19102    {
19103        int d;
19104    };
19105
19106    derived d1 {{1, 2}, {}, 4};  // full initialization
19107    derived d2 {{}, {}, 4};      // value-initialized bases
19108
19109  }
19110
19111  namespace test_general_range_based_for_loop
19112  {
19113
19114    struct iter
19115    {
19116      int i;
19117
19118      int& operator* ()
19119      {
19120        return i;
19121      }
19122
19123      const int& operator* () const
19124      {
19125        return i;
19126      }
19127
19128      iter& operator++()
19129      {
19130        ++i;
19131        return *this;
19132      }
19133    };
19134
19135    struct sentinel
19136    {
19137      int i;
19138    };
19139
19140    bool operator== (const iter& i, const sentinel& s)
19141    {
19142      return i.i == s.i;
19143    }
19144
19145    bool operator!= (const iter& i, const sentinel& s)
19146    {
19147      return !(i == s);
19148    }
19149
19150    struct range
19151    {
19152      iter begin() const
19153      {
19154        return {0};
19155      }
19156
19157      sentinel end() const
19158      {
19159        return {5};
19160      }
19161    };
19162
19163    void f()
19164    {
19165      range r {};
19166
19167      for (auto i : r)
19168      {
19169        [[maybe_unused]] auto v = i;
19170      }
19171    }
19172
19173  }
19174
19175  namespace test_lambda_capture_asterisk_this_by_value
19176  {
19177
19178    struct t
19179    {
19180      int i;
19181      int foo()
19182      {
19183        return [*this]()
19184        {
19185          return i;
19186        }();
19187      }
19188    };
19189
19190  }
19191
19192  namespace test_enum_class_construction
19193  {
19194
19195    enum class byte : unsigned char
19196    {};
19197
19198    byte foo {42};
19199
19200  }
19201
19202  namespace test_constexpr_if
19203  {
19204
19205    template <bool cond>
19206    int f ()
19207    {
19208      if constexpr(cond)
19209      {
19210        return 13;
19211      }
19212      else
19213      {
19214        return 42;
19215      }
19216    }
19217
19218  }
19219
19220  namespace test_selection_statement_with_initializer
19221  {
19222
19223    int f()
19224    {
19225      return 13;
19226    }
19227
19228    int f2()
19229    {
19230      if (auto i = f(); i > 0)
19231      {
19232        return 3;
19233      }
19234
19235      switch (auto i = f(); i + 4)
19236      {
19237      case 17:
19238        return 2;
19239
19240      default:
19241        return 1;
19242      }
19243    }
19244
19245  }
19246
19247  namespace test_template_argument_deduction_for_class_templates
19248  {
19249
19250    template <typename T1, typename T2>
19251    struct pair
19252    {
19253      pair (T1 p1, T2 p2)
19254        : m1 {p1},
19255          m2 {p2}
19256      {}
19257
19258      T1 m1;
19259      T2 m2;
19260    };
19261
19262    void f()
19263    {
19264      [[maybe_unused]] auto p = pair{13, 42u};
19265    }
19266
19267  }
19268
19269  namespace test_non_type_auto_template_parameters
19270  {
19271
19272    template <auto n>
19273    struct B
19274    {};
19275
19276    B<5> b1;
19277    B<'a'> b2;
19278
19279  }
19280
19281  namespace test_structured_bindings
19282  {
19283
19284    int arr[2] = { 1, 2 };
19285    std::pair<int, int> pr = { 1, 2 };
19286
19287    auto f1() -> int(&)[2]
19288    {
19289      return arr;
19290    }
19291
19292    auto f2() -> std::pair<int, int>&
19293    {
19294      return pr;
19295    }
19296
19297    struct S
19298    {
19299      int x1 : 2;
19300      volatile double y1;
19301    };
19302
19303    S f3()
19304    {
19305      return {};
19306    }
19307
19308    auto [ x1, y1 ] = f1();
19309    auto& [ xr1, yr1 ] = f1();
19310    auto [ x2, y2 ] = f2();
19311    auto& [ xr2, yr2 ] = f2();
19312    const auto [ x3, y3 ] = f3();
19313
19314  }
19315
19316  namespace test_exception_spec_type_system
19317  {
19318
19319    struct Good {};
19320    struct Bad {};
19321
19322    void g1() noexcept;
19323    void g2();
19324
19325    template<typename T>
19326    Bad
19327    f(T*, T*);
19328
19329    template<typename T1, typename T2>
19330    Good
19331    f(T1*, T2*);
19332
19333    static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
19334
19335  }
19336
19337  namespace test_inline_variables
19338  {
19339
19340    template<class T> void f(T)
19341    {}
19342
19343    template<class T> inline T g(T)
19344    {
19345      return T{};
19346    }
19347
19348    template<> inline void f<>(int)
19349    {}
19350
19351    template<> int g<>(int)
19352    {
19353      return 5;
19354    }
19355
19356  }
19357
19358}  // namespace cxx17
19359
19360#endif  // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
19361
19362
19363
19364
19365#ifndef __cplusplus
19366
19367#error "This is not a C++ compiler"
19368
19369#elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202002L
19370
19371#error "This is not a C++20 compiler"
19372
19373#else
19374
19375#include <version>
19376
19377namespace cxx20
19378{
19379
19380// As C++20 supports feature test macros in the standard, there is no
19381// immediate need to actually test for feature availability on the
19382// Autoconf side.
19383
19384}  // namespace cxx20
19385
19386#endif  // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202002L
19387
19388
19389
19390_ACEOF
19391if ac_fn_cxx_try_compile "$LINENO"
19392then :
19393  eval $cachevar=yes
19394else case e in #(
19395  e) eval $cachevar=no ;;
19396esac
19397fi
19398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19399           CXX="$ac_save_CXX" ;;
19400esac
19401fi
19402eval ac_res=\$$cachevar
19403	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19404printf "%s\n" "$ac_res" >&6; }
19405        if eval test x\$$cachevar = xyes; then
19406          CXX="$CXX $switch"
19407          if test -n "$CXXCPP" ; then
19408            CXXCPP="$CXXCPP $switch"
19409          fi
19410          ac_success=yes
19411          break
19412        fi
19413      done
19414      if test x$ac_success = xyes; then
19415        break
19416      fi
19417    done
19418  fi
19419  ac_ext=cpp
19420ac_cpp='$CXXCPP $CPPFLAGS'
19421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19424
19425  if test x$ax_cxx_compile_cxx20_required = xtrue; then
19426    if test x$ac_success = xno; then
19427      as_fn_error $? "*** A compiler with support for C++20 language features is required." "$LINENO" 5
19428    fi
19429  fi
19430  if test x$ac_success = xno; then
19431    HAVE_CXX20=0
19432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++20 support was found" >&5
19433printf "%s\n" "$as_me: No compiler with C++20 support was found" >&6;}
19434  else
19435    HAVE_CXX20=1
19436
19437printf "%s\n" "#define HAVE_CXX20 1" >>confdefs.h
19438
19439  fi
19440
19441
19442
19443
19444
19445    # Check whether --enable-developer was given.
19446if test ${enable_developer+y}
19447then :
19448  enableval=$enable_developer;
19449else case e in #(
19450  e) if test -d ${srcdir}/.git; then
19451             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: building from HEAD; developer mode autoenabled" >&5
19452printf "%s\n" "$as_me: building from HEAD; developer mode autoenabled" >&6;}
19453             enable_developer=yes
19454         else
19455             enable_developer=no
19456         fi ;;
19457esac
19458fi
19459
19460
19461    #
19462    # The following warning flags should also be enabled but cannot be.
19463    # Reasons given below.
19464    #
19465    # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under
19466    #                   Mac OS X.  This is due to the way _IOR is defined.
19467    #
19468
19469    try_c_cxx_flags="-D_FORTIFY_SOURCE=2 \
19470                     -Wall \
19471                     -Wcast-qual \
19472                     -Wextra \
19473                     -Wpointer-arith \
19474                     -Wredundant-decls \
19475                     -Wreturn-type \
19476                     -Wshadow \
19477                     -Wsign-compare \
19478                     -Wswitch \
19479                     -Wwrite-strings"
19480
19481    try_c_flags="-Wmissing-prototypes \
19482                 -Wno-traditional \
19483                 -Wstrict-prototypes"
19484
19485    try_cxx_flags="-Wabi \
19486                   -Wctor-dtor-privacy \
19487                   -Wno-deprecated \
19488                   -Wno-non-template-friend \
19489                   -Wno-pmf-conversions \
19490                   -Wnon-virtual-dtor \
19491                   -Woverloaded-virtual \
19492                   -Wreorder \
19493                   -Wsign-promo \
19494                   -Wsynth"
19495
19496    if test ${enable_developer} = yes; then
19497        try_werror=yes
19498        try_c_cxx_flags="${try_c_cxx_flags} -g -Werror"
19499    else
19500        try_werror=no
19501        try_c_cxx_flags="${try_c_cxx_flags} -DNDEBUG"
19502    fi
19503
19504
19505
19506    ac_ext=cpp
19507ac_cpp='$CXXCPP $CPPFLAGS'
19508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19511
19512    valid_cxxflags=
19513    for f in ${try_c_cxx_flags} ${try_cxx_flags}; do
19514
19515
19516
19517
19518    if test x"${kyua_CXX_has_werror-unset}" = xunset; then
19519        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror" >&5
19520printf %s "checking whether ${CXX} supports -Werror... " >&6; }
19521        saved_flags="${CXXFLAGS}"
19522        kyua_CXX_has_werror=no
19523        CXXFLAGS="${CXXFLAGS}  -Werror"
19524        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19525/* end confdefs.h.  */
19526
19527int
19528main (void)
19529{
19530return 0;
19531  ;
19532  return 0;
19533}
19534_ACEOF
19535if ac_fn_cxx_try_link "$LINENO"
19536then :
19537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19538printf "%s\n" "yes" >&6; }
19539                       kyua_CXX_has_werror=yes
19540else case e in #(
19541  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19542printf "%s\n" "no" >&6; } ;;
19543esac
19544fi
19545rm -f core conftest.err conftest.$ac_objext conftest.beam \
19546    conftest$ac_exeext conftest.$ac_ext
19547        CXXFLAGS="${saved_flags}"
19548    fi
19549
19550    if test "${f}" = "-Werror"; then
19551        found=${kyua_CXX_has_werror}
19552    else
19553        found=unset
19554        if test ${kyua_CXX_has_werror} = yes; then
19555
19556    if test x"${found-unset}" = xunset; then
19557        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
19558printf %s "checking whether ${CXX} supports ${f}... " >&6; }
19559        saved_flags="${CXXFLAGS}"
19560        found=no
19561        CXXFLAGS="${CXXFLAGS} -Werror ${f}"
19562        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563/* end confdefs.h.  */
19564
19565int
19566main (void)
19567{
19568return 0;
19569  ;
19570  return 0;
19571}
19572_ACEOF
19573if ac_fn_cxx_try_link "$LINENO"
19574then :
19575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19576printf "%s\n" "yes" >&6; }
19577                       found=yes
19578else case e in #(
19579  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19580printf "%s\n" "no" >&6; } ;;
19581esac
19582fi
19583rm -f core conftest.err conftest.$ac_objext conftest.beam \
19584    conftest$ac_exeext conftest.$ac_ext
19585        CXXFLAGS="${saved_flags}"
19586    fi
19587
19588        else
19589
19590    if test x"${found-unset}" = xunset; then
19591        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
19592printf %s "checking whether ${CXX} supports ${f}... " >&6; }
19593        saved_flags="${CXXFLAGS}"
19594        found=no
19595        CXXFLAGS="${CXXFLAGS}  ${f}"
19596        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597/* end confdefs.h.  */
19598
19599int
19600main (void)
19601{
19602return 0;
19603  ;
19604  return 0;
19605}
19606_ACEOF
19607if ac_fn_cxx_try_link "$LINENO"
19608then :
19609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19610printf "%s\n" "yes" >&6; }
19611                       found=yes
19612else case e in #(
19613  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614printf "%s\n" "no" >&6; } ;;
19615esac
19616fi
19617rm -f core conftest.err conftest.$ac_objext conftest.beam \
19618    conftest$ac_exeext conftest.$ac_ext
19619        CXXFLAGS="${saved_flags}"
19620    fi
19621
19622        fi
19623    fi
19624    if test ${found} = yes; then
19625        valid_cxxflags="${valid_cxxflags} ${f}"
19626    fi
19627
19628
19629    done
19630    if test -n "${valid_cxxflags}"; then
19631        CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}"
19632    fi
19633    ac_ext=cpp
19634ac_cpp='$CXXCPP $CPPFLAGS'
19635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19638
19639
19640
19641
19642# Check for ATF and add --enable-atf flag
19643# Check whether --enable-atf was given.
19644if test ${enable_atf+y}
19645then :
19646  enableval=$enable_atf; enable_atf=$enableval
19647else case e in #(
19648  e) enable_atf=no ;;
19649esac
19650fi
19651
19652 if test "x$enable_atf" = "xyes"; then
19653  WITH_ATF_TRUE=
19654  WITH_ATF_FALSE='#'
19655else
19656  WITH_ATF_TRUE='#'
19657  WITH_ATF_FALSE=
19658fi
19659
19660
19661# ATF dependencies
19662
19663
19664
19665
19666
19667
19668
19669
19670if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19671	if test -n "$ac_tool_prefix"; then
19672  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19673set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19675printf %s "checking for $ac_word... " >&6; }
19676if test ${ac_cv_path_PKG_CONFIG+y}
19677then :
19678  printf %s "(cached) " >&6
19679else case e in #(
19680  e) case $PKG_CONFIG in
19681  [\\/]* | ?:[\\/]*)
19682  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19683  ;;
19684  *)
19685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19686for as_dir in $PATH
19687do
19688  IFS=$as_save_IFS
19689  case $as_dir in #(((
19690    '') as_dir=./ ;;
19691    */) ;;
19692    *) as_dir=$as_dir/ ;;
19693  esac
19694    for ac_exec_ext in '' $ac_executable_extensions; do
19695  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19696    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19697    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19698    break 2
19699  fi
19700done
19701  done
19702IFS=$as_save_IFS
19703
19704  ;;
19705esac ;;
19706esac
19707fi
19708PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19709if test -n "$PKG_CONFIG"; then
19710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19711printf "%s\n" "$PKG_CONFIG" >&6; }
19712else
19713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19714printf "%s\n" "no" >&6; }
19715fi
19716
19717
19718fi
19719if test -z "$ac_cv_path_PKG_CONFIG"; then
19720  ac_pt_PKG_CONFIG=$PKG_CONFIG
19721  # Extract the first word of "pkg-config", so it can be a program name with args.
19722set dummy pkg-config; ac_word=$2
19723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19724printf %s "checking for $ac_word... " >&6; }
19725if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19726then :
19727  printf %s "(cached) " >&6
19728else case e in #(
19729  e) case $ac_pt_PKG_CONFIG in
19730  [\\/]* | ?:[\\/]*)
19731  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19732  ;;
19733  *)
19734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19735for as_dir in $PATH
19736do
19737  IFS=$as_save_IFS
19738  case $as_dir in #(((
19739    '') as_dir=./ ;;
19740    */) ;;
19741    *) as_dir=$as_dir/ ;;
19742  esac
19743    for ac_exec_ext in '' $ac_executable_extensions; do
19744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19745    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19747    break 2
19748  fi
19749done
19750  done
19751IFS=$as_save_IFS
19752
19753  ;;
19754esac ;;
19755esac
19756fi
19757ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19758if test -n "$ac_pt_PKG_CONFIG"; then
19759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19760printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
19761else
19762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19763printf "%s\n" "no" >&6; }
19764fi
19765
19766  if test "x$ac_pt_PKG_CONFIG" = x; then
19767    PKG_CONFIG=""
19768  else
19769    case $cross_compiling:$ac_tool_warned in
19770yes:)
19771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19773ac_tool_warned=yes ;;
19774esac
19775    PKG_CONFIG=$ac_pt_PKG_CONFIG
19776  fi
19777else
19778  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19779fi
19780
19781fi
19782if test -n "$PKG_CONFIG"; then
19783	_pkg_min_version=0.9.0
19784	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19785printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19786	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19788printf "%s\n" "yes" >&6; }
19789	else
19790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19791printf "%s\n" "no" >&6; }
19792		PKG_CONFIG=""
19793	fi
19794fi
19795if test -z "$PKG_CONFIG"; then
19796	as_fn_error $? "pkg-config not found" "$LINENO" 5
19797fi
19798if test "x$enable_atf" = "xyes"
19799then :
19800
19801
19802    spec="atf-c++ >= 0.21"
19803
19804
19805
19806
19807
19808    if test x"${with_atf}" = x"no"; then
19809        _found=no
19810    else
19811
19812pkg_failed=no
19813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${spec}" >&5
19814printf %s "checking for ${spec}... " >&6; }
19815
19816if test -n "$ATF_CXX_CFLAGS"; then
19817    pkg_cv_ATF_CXX_CFLAGS="$ATF_CXX_CFLAGS"
19818 elif test -n "$PKG_CONFIG"; then
19819    if test -n "$PKG_CONFIG" && \
19820    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${spec}\""; } >&5
19821  ($PKG_CONFIG --exists --print-errors "${spec}") 2>&5
19822  ac_status=$?
19823  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19824  test $ac_status = 0; }; then
19825  pkg_cv_ATF_CXX_CFLAGS=`$PKG_CONFIG --cflags "${spec}" 2>/dev/null`
19826		      test "x$?" != "x0" && pkg_failed=yes
19827else
19828  pkg_failed=yes
19829fi
19830 else
19831    pkg_failed=untried
19832fi
19833if test -n "$ATF_CXX_LIBS"; then
19834    pkg_cv_ATF_CXX_LIBS="$ATF_CXX_LIBS"
19835 elif test -n "$PKG_CONFIG"; then
19836    if test -n "$PKG_CONFIG" && \
19837    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${spec}\""; } >&5
19838  ($PKG_CONFIG --exists --print-errors "${spec}") 2>&5
19839  ac_status=$?
19840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19841  test $ac_status = 0; }; then
19842  pkg_cv_ATF_CXX_LIBS=`$PKG_CONFIG --libs "${spec}" 2>/dev/null`
19843		      test "x$?" != "x0" && pkg_failed=yes
19844else
19845  pkg_failed=yes
19846fi
19847 else
19848    pkg_failed=untried
19849fi
19850
19851
19852
19853if test $pkg_failed = yes; then
19854        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19855printf "%s\n" "no" >&6; }
19856
19857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19858        _pkg_short_errors_supported=yes
19859else
19860        _pkg_short_errors_supported=no
19861fi
19862        if test $_pkg_short_errors_supported = yes; then
19863                ATF_CXX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${spec}" 2>&1`
19864        else
19865                ATF_CXX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${spec}" 2>&1`
19866        fi
19867        # Put the nasty error message in config.log where it belongs
19868        echo "$ATF_CXX_PKG_ERRORS" >&5
19869
19870        found=no
19871elif test $pkg_failed = untried; then
19872        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873printf "%s\n" "no" >&6; }
19874        found=no
19875else
19876        ATF_CXX_CFLAGS=$pkg_cv_ATF_CXX_CFLAGS
19877        ATF_CXX_LIBS=$pkg_cv_ATF_CXX_LIBS
19878        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879printf "%s\n" "yes" >&6; }
19880        found=yes found_atf_cxx=yes
19881fi
19882        if test x"${with_atf}" = x"auto"; then
19883            _found="${found}"
19884        else
19885            if test x"${found}" = x"yes"; then
19886                _found=yes
19887            else
19888                as_fn_error $? "required ${spec} not found" "$LINENO" 5
19889            fi
19890        fi
19891    fi
19892
19893
19894
19895    spec="atf-sh >= 0.21"
19896
19897
19898
19899
19900
19901    if test x"${with_atf}" = x"no"; then
19902        _found=no
19903    else
19904        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${spec}" >&5
19905printf %s "checking for ${spec}... " >&6; }
19906         if test -n "$PKG_CONFIG" && \
19907    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${spec}\""; } >&5
19908  ($PKG_CONFIG --exists --print-errors "${spec}") 2>&5
19909  ac_status=$?
19910  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19911  test $ac_status = 0; }; then
19912  found=yes
19913else
19914  found=no
19915fi
19916         if test "${found}" = yes; then
19917             ATF_SH="$(${PKG_CONFIG} --variable=interpreter atf-sh)"
19918             ATF_SH=${ATF_SH}
19919
19920             found_atf_sh=yes
19921         fi
19922         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ATF_SH}" >&5
19923printf "%s\n" "${ATF_SH}" >&6; }
19924        if test x"${with_atf}" = x"auto"; then
19925            _found="${found}"
19926        else
19927            if test x"${found}" = x"yes"; then
19928                _found=yes
19929            else
19930                as_fn_error $? "required ${spec} not found" "$LINENO" 5
19931            fi
19932        fi
19933    fi
19934
19935
19936
19937else case e in #(
19938  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ATF support disabled" >&5
19939printf "%s\n" "$as_me: ATF support disabled" >&6;} ;;
19940esac
19941fi
19942
19943
19944
19945
19946# Check whether --with-doxygen was given.
19947if test ${with_doxygen+y}
19948then :
19949  withval=$with_doxygen;
19950else case e in #(
19951  e) with_doxygen=auto ;;
19952esac
19953fi
19954
19955
19956    if test "${with_doxygen}" = yes; then
19957        # Extract the first word of "doxygen", so it can be a program name with args.
19958set dummy doxygen; ac_word=$2
19959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19960printf %s "checking for $ac_word... " >&6; }
19961if test ${ac_cv_path_DOXYGEN+y}
19962then :
19963  printf %s "(cached) " >&6
19964else case e in #(
19965  e) case $DOXYGEN in
19966  [\\/]* | ?:[\\/]*)
19967  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19968  ;;
19969  *)
19970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971for as_dir in $PATH
19972do
19973  IFS=$as_save_IFS
19974  case $as_dir in #(((
19975    '') as_dir=./ ;;
19976    */) ;;
19977    *) as_dir=$as_dir/ ;;
19978  esac
19979    for ac_exec_ext in '' $ac_executable_extensions; do
19980  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19981    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
19982    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19983    break 2
19984  fi
19985done
19986  done
19987IFS=$as_save_IFS
19988
19989  ;;
19990esac ;;
19991esac
19992fi
19993DOXYGEN=$ac_cv_path_DOXYGEN
19994if test -n "$DOXYGEN"; then
19995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19996printf "%s\n" "$DOXYGEN" >&6; }
19997else
19998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19999printf "%s\n" "no" >&6; }
20000fi
20001
20002
20003        if test -z "${DOXYGEN}"; then
20004            as_fn_error $? "Doxygen explicitly requested but not found" "$LINENO" 5
20005        fi
20006    elif test "${with_doxygen}" = auto; then
20007        # Extract the first word of "doxygen", so it can be a program name with args.
20008set dummy doxygen; ac_word=$2
20009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20010printf %s "checking for $ac_word... " >&6; }
20011if test ${ac_cv_path_DOXYGEN+y}
20012then :
20013  printf %s "(cached) " >&6
20014else case e in #(
20015  e) case $DOXYGEN in
20016  [\\/]* | ?:[\\/]*)
20017  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20018  ;;
20019  *)
20020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20021for as_dir in $PATH
20022do
20023  IFS=$as_save_IFS
20024  case $as_dir in #(((
20025    '') as_dir=./ ;;
20026    */) ;;
20027    *) as_dir=$as_dir/ ;;
20028  esac
20029    for ac_exec_ext in '' $ac_executable_extensions; do
20030  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20031    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
20032    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20033    break 2
20034  fi
20035done
20036  done
20037IFS=$as_save_IFS
20038
20039  ;;
20040esac ;;
20041esac
20042fi
20043DOXYGEN=$ac_cv_path_DOXYGEN
20044if test -n "$DOXYGEN"; then
20045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20046printf "%s\n" "$DOXYGEN" >&6; }
20047else
20048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049printf "%s\n" "no" >&6; }
20050fi
20051
20052
20053    elif test "${with_doxygen}" = no; then
20054        DOXYGEN=
20055    else
20056        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for doxygen" >&5
20057printf %s "checking for doxygen... " >&6; }
20058        DOXYGEN="${with_doxygen}"
20059        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${DOXYGEN}" >&5
20060printf "%s\n" "${DOXYGEN}" >&6; }
20061        if test ! -x "${DOXYGEN}"; then
20062            as_fn_error $? "Doxygen binary ${DOXYGEN} is not executable" "$LINENO" 5
20063        fi
20064    fi
20065     if test -n "${DOXYGEN}"; then
20066  WITH_DOXYGEN_TRUE=
20067  WITH_DOXYGEN_FALSE='#'
20068else
20069  WITH_DOXYGEN_TRUE='#'
20070  WITH_DOXYGEN_FALSE=
20071fi
20072
20073
20074
20075
20076    lua_found=no
20077    for lua_release in ${LUA_VERSION:-5.4 5.3}; do
20078
20079pkg_failed=no
20080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua-${lua_release} >= ${lua_release}" >&5
20081printf %s "checking for lua-${lua_release} >= ${lua_release}... " >&6; }
20082
20083if test -n "$LUA_CFLAGS"; then
20084    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20085 elif test -n "$PKG_CONFIG"; then
20086    if test -n "$PKG_CONFIG" && \
20087    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-\${lua_release} >= \${lua_release}\""; } >&5
20088  ($PKG_CONFIG --exists --print-errors "lua-${lua_release} >= ${lua_release}") 2>&5
20089  ac_status=$?
20090  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20091  test $ac_status = 0; }; then
20092  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-${lua_release} >= ${lua_release}" 2>/dev/null`
20093		      test "x$?" != "x0" && pkg_failed=yes
20094else
20095  pkg_failed=yes
20096fi
20097 else
20098    pkg_failed=untried
20099fi
20100if test -n "$LUA_LIBS"; then
20101    pkg_cv_LUA_LIBS="$LUA_LIBS"
20102 elif test -n "$PKG_CONFIG"; then
20103    if test -n "$PKG_CONFIG" && \
20104    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-\${lua_release} >= \${lua_release}\""; } >&5
20105  ($PKG_CONFIG --exists --print-errors "lua-${lua_release} >= ${lua_release}") 2>&5
20106  ac_status=$?
20107  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20108  test $ac_status = 0; }; then
20109  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-${lua_release} >= ${lua_release}" 2>/dev/null`
20110		      test "x$?" != "x0" && pkg_failed=yes
20111else
20112  pkg_failed=yes
20113fi
20114 else
20115    pkg_failed=untried
20116fi
20117
20118
20119
20120if test $pkg_failed = yes; then
20121        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20122printf "%s\n" "no" >&6; }
20123
20124if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20125        _pkg_short_errors_supported=yes
20126else
20127        _pkg_short_errors_supported=no
20128fi
20129        if test $_pkg_short_errors_supported = yes; then
20130                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-${lua_release} >= ${lua_release}" 2>&1`
20131        else
20132                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-${lua_release} >= ${lua_release}" 2>&1`
20133        fi
20134        # Put the nasty error message in config.log where it belongs
20135        echo "$LUA_PKG_ERRORS" >&5
20136
20137
20138
20139pkg_failed=no
20140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua${lua_release} >= ${lua_release}" >&5
20141printf %s "checking for lua${lua_release} >= ${lua_release}... " >&6; }
20142
20143if test -n "$LUA_CFLAGS"; then
20144    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20145 elif test -n "$PKG_CONFIG"; then
20146    if test -n "$PKG_CONFIG" && \
20147    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\${lua_release} >= \${lua_release}\""; } >&5
20148  ($PKG_CONFIG --exists --print-errors "lua${lua_release} >= ${lua_release}") 2>&5
20149  ac_status=$?
20150  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151  test $ac_status = 0; }; then
20152  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua${lua_release} >= ${lua_release}" 2>/dev/null`
20153		      test "x$?" != "x0" && pkg_failed=yes
20154else
20155  pkg_failed=yes
20156fi
20157 else
20158    pkg_failed=untried
20159fi
20160if test -n "$LUA_LIBS"; then
20161    pkg_cv_LUA_LIBS="$LUA_LIBS"
20162 elif test -n "$PKG_CONFIG"; then
20163    if test -n "$PKG_CONFIG" && \
20164    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\${lua_release} >= \${lua_release}\""; } >&5
20165  ($PKG_CONFIG --exists --print-errors "lua${lua_release} >= ${lua_release}") 2>&5
20166  ac_status=$?
20167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20168  test $ac_status = 0; }; then
20169  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua${lua_release} >= ${lua_release}" 2>/dev/null`
20170		      test "x$?" != "x0" && pkg_failed=yes
20171else
20172  pkg_failed=yes
20173fi
20174 else
20175    pkg_failed=untried
20176fi
20177
20178
20179
20180if test $pkg_failed = yes; then
20181        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20182printf "%s\n" "no" >&6; }
20183
20184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20185        _pkg_short_errors_supported=yes
20186else
20187        _pkg_short_errors_supported=no
20188fi
20189        if test $_pkg_short_errors_supported = yes; then
20190                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua${lua_release} >= ${lua_release}" 2>&1`
20191        else
20192                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua${lua_release} >= ${lua_release}" 2>&1`
20193        fi
20194        # Put the nasty error message in config.log where it belongs
20195        echo "$LUA_PKG_ERRORS" >&5
20196
20197
20198
20199pkg_failed=no
20200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua >= ${lua_release}" >&5
20201printf %s "checking for lua >= ${lua_release}... " >&6; }
20202
20203if test -n "$LUA_CFLAGS"; then
20204    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20205 elif test -n "$PKG_CONFIG"; then
20206    if test -n "$PKG_CONFIG" && \
20207    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20208  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20209  ac_status=$?
20210  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20211  test $ac_status = 0; }; then
20212  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= ${lua_release}" 2>/dev/null`
20213		      test "x$?" != "x0" && pkg_failed=yes
20214else
20215  pkg_failed=yes
20216fi
20217 else
20218    pkg_failed=untried
20219fi
20220if test -n "$LUA_LIBS"; then
20221    pkg_cv_LUA_LIBS="$LUA_LIBS"
20222 elif test -n "$PKG_CONFIG"; then
20223    if test -n "$PKG_CONFIG" && \
20224    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20225  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20226  ac_status=$?
20227  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20228  test $ac_status = 0; }; then
20229  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= ${lua_release}" 2>/dev/null`
20230		      test "x$?" != "x0" && pkg_failed=yes
20231else
20232  pkg_failed=yes
20233fi
20234 else
20235    pkg_failed=untried
20236fi
20237
20238
20239
20240if test $pkg_failed = yes; then
20241        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20242printf "%s\n" "no" >&6; }
20243
20244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20245        _pkg_short_errors_supported=yes
20246else
20247        _pkg_short_errors_supported=no
20248fi
20249        if test $_pkg_short_errors_supported = yes; then
20250                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20251        else
20252                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20253        fi
20254        # Put the nasty error message in config.log where it belongs
20255        echo "$LUA_PKG_ERRORS" >&5
20256
20257        as_fn_error $? "Package requirements (lua >= ${lua_release}) were not met:
20258
20259$LUA_PKG_ERRORS
20260
20261Consider adjusting the PKG_CONFIG_PATH environment variable if you
20262installed software in a non-standard prefix.
20263
20264Alternatively, you may set the environment variables LUA_CFLAGS
20265and LUA_LIBS to avoid the need to call pkg-config.
20266See the pkg-config man page for more details." "$LINENO" 5
20267elif test $pkg_failed = untried; then
20268        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20269printf "%s\n" "no" >&6; }
20270        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20271printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20272as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20273is in your PATH or set the PKG_CONFIG environment variable to the full
20274path to pkg-config.
20275
20276Alternatively, you may set the environment variables LUA_CFLAGS
20277and LUA_LIBS to avoid the need to call pkg-config.
20278See the pkg-config man page for more details.
20279
20280To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20281See 'config.log' for more details" "$LINENO" 5; }
20282else
20283        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20284        LUA_LIBS=$pkg_cv_LUA_LIBS
20285        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20286printf "%s\n" "yes" >&6; }
20287        lua_found="lua"
20288fi
20289
20290elif test $pkg_failed = untried; then
20291        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20292printf "%s\n" "no" >&6; }
20293
20294
20295pkg_failed=no
20296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua >= ${lua_release}" >&5
20297printf %s "checking for lua >= ${lua_release}... " >&6; }
20298
20299if test -n "$LUA_CFLAGS"; then
20300    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20301 elif test -n "$PKG_CONFIG"; then
20302    if test -n "$PKG_CONFIG" && \
20303    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20304  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20305  ac_status=$?
20306  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20307  test $ac_status = 0; }; then
20308  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= ${lua_release}" 2>/dev/null`
20309		      test "x$?" != "x0" && pkg_failed=yes
20310else
20311  pkg_failed=yes
20312fi
20313 else
20314    pkg_failed=untried
20315fi
20316if test -n "$LUA_LIBS"; then
20317    pkg_cv_LUA_LIBS="$LUA_LIBS"
20318 elif test -n "$PKG_CONFIG"; then
20319    if test -n "$PKG_CONFIG" && \
20320    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20321  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20322  ac_status=$?
20323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20324  test $ac_status = 0; }; then
20325  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= ${lua_release}" 2>/dev/null`
20326		      test "x$?" != "x0" && pkg_failed=yes
20327else
20328  pkg_failed=yes
20329fi
20330 else
20331    pkg_failed=untried
20332fi
20333
20334
20335
20336if test $pkg_failed = yes; then
20337        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338printf "%s\n" "no" >&6; }
20339
20340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20341        _pkg_short_errors_supported=yes
20342else
20343        _pkg_short_errors_supported=no
20344fi
20345        if test $_pkg_short_errors_supported = yes; then
20346                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20347        else
20348                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20349        fi
20350        # Put the nasty error message in config.log where it belongs
20351        echo "$LUA_PKG_ERRORS" >&5
20352
20353        as_fn_error $? "Package requirements (lua >= ${lua_release}) were not met:
20354
20355$LUA_PKG_ERRORS
20356
20357Consider adjusting the PKG_CONFIG_PATH environment variable if you
20358installed software in a non-standard prefix.
20359
20360Alternatively, you may set the environment variables LUA_CFLAGS
20361and LUA_LIBS to avoid the need to call pkg-config.
20362See the pkg-config man page for more details." "$LINENO" 5
20363elif test $pkg_failed = untried; then
20364        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20365printf "%s\n" "no" >&6; }
20366        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20367printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20368as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20369is in your PATH or set the PKG_CONFIG environment variable to the full
20370path to pkg-config.
20371
20372Alternatively, you may set the environment variables LUA_CFLAGS
20373and LUA_LIBS to avoid the need to call pkg-config.
20374See the pkg-config man page for more details.
20375
20376To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20377See 'config.log' for more details" "$LINENO" 5; }
20378else
20379        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20380        LUA_LIBS=$pkg_cv_LUA_LIBS
20381        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20382printf "%s\n" "yes" >&6; }
20383        lua_found="lua"
20384fi
20385
20386else
20387        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20388        LUA_LIBS=$pkg_cv_LUA_LIBS
20389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390printf "%s\n" "yes" >&6; }
20391        lua_found="lua${lua_release}"
20392fi
20393elif test $pkg_failed = untried; then
20394        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20395printf "%s\n" "no" >&6; }
20396
20397
20398pkg_failed=no
20399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua${lua_release} >= ${lua_release}" >&5
20400printf %s "checking for lua${lua_release} >= ${lua_release}... " >&6; }
20401
20402if test -n "$LUA_CFLAGS"; then
20403    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20404 elif test -n "$PKG_CONFIG"; then
20405    if test -n "$PKG_CONFIG" && \
20406    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\${lua_release} >= \${lua_release}\""; } >&5
20407  ($PKG_CONFIG --exists --print-errors "lua${lua_release} >= ${lua_release}") 2>&5
20408  ac_status=$?
20409  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20410  test $ac_status = 0; }; then
20411  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua${lua_release} >= ${lua_release}" 2>/dev/null`
20412		      test "x$?" != "x0" && pkg_failed=yes
20413else
20414  pkg_failed=yes
20415fi
20416 else
20417    pkg_failed=untried
20418fi
20419if test -n "$LUA_LIBS"; then
20420    pkg_cv_LUA_LIBS="$LUA_LIBS"
20421 elif test -n "$PKG_CONFIG"; then
20422    if test -n "$PKG_CONFIG" && \
20423    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\${lua_release} >= \${lua_release}\""; } >&5
20424  ($PKG_CONFIG --exists --print-errors "lua${lua_release} >= ${lua_release}") 2>&5
20425  ac_status=$?
20426  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20427  test $ac_status = 0; }; then
20428  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua${lua_release} >= ${lua_release}" 2>/dev/null`
20429		      test "x$?" != "x0" && pkg_failed=yes
20430else
20431  pkg_failed=yes
20432fi
20433 else
20434    pkg_failed=untried
20435fi
20436
20437
20438
20439if test $pkg_failed = yes; then
20440        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441printf "%s\n" "no" >&6; }
20442
20443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20444        _pkg_short_errors_supported=yes
20445else
20446        _pkg_short_errors_supported=no
20447fi
20448        if test $_pkg_short_errors_supported = yes; then
20449                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua${lua_release} >= ${lua_release}" 2>&1`
20450        else
20451                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua${lua_release} >= ${lua_release}" 2>&1`
20452        fi
20453        # Put the nasty error message in config.log where it belongs
20454        echo "$LUA_PKG_ERRORS" >&5
20455
20456
20457
20458pkg_failed=no
20459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua >= ${lua_release}" >&5
20460printf %s "checking for lua >= ${lua_release}... " >&6; }
20461
20462if test -n "$LUA_CFLAGS"; then
20463    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20464 elif test -n "$PKG_CONFIG"; then
20465    if test -n "$PKG_CONFIG" && \
20466    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20467  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20468  ac_status=$?
20469  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20470  test $ac_status = 0; }; then
20471  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= ${lua_release}" 2>/dev/null`
20472		      test "x$?" != "x0" && pkg_failed=yes
20473else
20474  pkg_failed=yes
20475fi
20476 else
20477    pkg_failed=untried
20478fi
20479if test -n "$LUA_LIBS"; then
20480    pkg_cv_LUA_LIBS="$LUA_LIBS"
20481 elif test -n "$PKG_CONFIG"; then
20482    if test -n "$PKG_CONFIG" && \
20483    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20484  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20485  ac_status=$?
20486  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20487  test $ac_status = 0; }; then
20488  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= ${lua_release}" 2>/dev/null`
20489		      test "x$?" != "x0" && pkg_failed=yes
20490else
20491  pkg_failed=yes
20492fi
20493 else
20494    pkg_failed=untried
20495fi
20496
20497
20498
20499if test $pkg_failed = yes; then
20500        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20501printf "%s\n" "no" >&6; }
20502
20503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20504        _pkg_short_errors_supported=yes
20505else
20506        _pkg_short_errors_supported=no
20507fi
20508        if test $_pkg_short_errors_supported = yes; then
20509                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20510        else
20511                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20512        fi
20513        # Put the nasty error message in config.log where it belongs
20514        echo "$LUA_PKG_ERRORS" >&5
20515
20516        as_fn_error $? "Package requirements (lua >= ${lua_release}) were not met:
20517
20518$LUA_PKG_ERRORS
20519
20520Consider adjusting the PKG_CONFIG_PATH environment variable if you
20521installed software in a non-standard prefix.
20522
20523Alternatively, you may set the environment variables LUA_CFLAGS
20524and LUA_LIBS to avoid the need to call pkg-config.
20525See the pkg-config man page for more details." "$LINENO" 5
20526elif test $pkg_failed = untried; then
20527        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528printf "%s\n" "no" >&6; }
20529        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20530printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20531as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20532is in your PATH or set the PKG_CONFIG environment variable to the full
20533path to pkg-config.
20534
20535Alternatively, you may set the environment variables LUA_CFLAGS
20536and LUA_LIBS to avoid the need to call pkg-config.
20537See the pkg-config man page for more details.
20538
20539To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20540See 'config.log' for more details" "$LINENO" 5; }
20541else
20542        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20543        LUA_LIBS=$pkg_cv_LUA_LIBS
20544        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20545printf "%s\n" "yes" >&6; }
20546        lua_found="lua"
20547fi
20548
20549elif test $pkg_failed = untried; then
20550        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20551printf "%s\n" "no" >&6; }
20552
20553
20554pkg_failed=no
20555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua >= ${lua_release}" >&5
20556printf %s "checking for lua >= ${lua_release}... " >&6; }
20557
20558if test -n "$LUA_CFLAGS"; then
20559    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20560 elif test -n "$PKG_CONFIG"; then
20561    if test -n "$PKG_CONFIG" && \
20562    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20563  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20564  ac_status=$?
20565  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20566  test $ac_status = 0; }; then
20567  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= ${lua_release}" 2>/dev/null`
20568		      test "x$?" != "x0" && pkg_failed=yes
20569else
20570  pkg_failed=yes
20571fi
20572 else
20573    pkg_failed=untried
20574fi
20575if test -n "$LUA_LIBS"; then
20576    pkg_cv_LUA_LIBS="$LUA_LIBS"
20577 elif test -n "$PKG_CONFIG"; then
20578    if test -n "$PKG_CONFIG" && \
20579    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_release}\""; } >&5
20580  ($PKG_CONFIG --exists --print-errors "lua >= ${lua_release}") 2>&5
20581  ac_status=$?
20582  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20583  test $ac_status = 0; }; then
20584  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= ${lua_release}" 2>/dev/null`
20585		      test "x$?" != "x0" && pkg_failed=yes
20586else
20587  pkg_failed=yes
20588fi
20589 else
20590    pkg_failed=untried
20591fi
20592
20593
20594
20595if test $pkg_failed = yes; then
20596        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20597printf "%s\n" "no" >&6; }
20598
20599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20600        _pkg_short_errors_supported=yes
20601else
20602        _pkg_short_errors_supported=no
20603fi
20604        if test $_pkg_short_errors_supported = yes; then
20605                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20606        else
20607                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= ${lua_release}" 2>&1`
20608        fi
20609        # Put the nasty error message in config.log where it belongs
20610        echo "$LUA_PKG_ERRORS" >&5
20611
20612        as_fn_error $? "Package requirements (lua >= ${lua_release}) were not met:
20613
20614$LUA_PKG_ERRORS
20615
20616Consider adjusting the PKG_CONFIG_PATH environment variable if you
20617installed software in a non-standard prefix.
20618
20619Alternatively, you may set the environment variables LUA_CFLAGS
20620and LUA_LIBS to avoid the need to call pkg-config.
20621See the pkg-config man page for more details." "$LINENO" 5
20622elif test $pkg_failed = untried; then
20623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20624printf "%s\n" "no" >&6; }
20625        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20626printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20627as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20628is in your PATH or set the PKG_CONFIG environment variable to the full
20629path to pkg-config.
20630
20631Alternatively, you may set the environment variables LUA_CFLAGS
20632and LUA_LIBS to avoid the need to call pkg-config.
20633See the pkg-config man page for more details.
20634
20635To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20636See 'config.log' for more details" "$LINENO" 5; }
20637else
20638        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20639        LUA_LIBS=$pkg_cv_LUA_LIBS
20640        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20641printf "%s\n" "yes" >&6; }
20642        lua_found="lua"
20643fi
20644
20645else
20646        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20647        LUA_LIBS=$pkg_cv_LUA_LIBS
20648        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20649printf "%s\n" "yes" >&6; }
20650        lua_found="lua${lua_release}"
20651fi
20652else
20653        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20654        LUA_LIBS=$pkg_cv_LUA_LIBS
20655        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20656printf "%s\n" "yes" >&6; }
20657        lua_found="lua-${lua_release}"
20658fi
20659        if test "${lua_found}" != no; then
20660            break
20661        fi
20662    done
20663
20664    if test "${lua_found}" = no
20665then :
20666
20667else case e in #(
20668  e)
20669        LUA_CFLAGS=$(${PKG_CONFIG} --cflags ${lua_found})
20670
20671        LUA_LIBS=$(${PKG_CONFIG} --libs ${lua_found})
20672
20673         ;;
20674esac
20675fi
20676
20677    if test "${lua_found}" = no
20678then :
20679  as_fn_error $? "lua (5.3 or newer) is required" "$LINENO" 5
20680else case e in #(
20681  e)
20682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LUA_CFLAGS = ${LUA_CFLAGS}" >&5
20683printf "%s\n" "$as_me: using LUA_CFLAGS = ${LUA_CFLAGS}" >&6;}
20684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LUA_LIBS = ${LUA_LIBS}" >&5
20685printf "%s\n" "$as_me: using LUA_LIBS = ${LUA_LIBS}" >&6;}
20686     ;;
20687esac
20688fi
20689
20690
20691# Check for Kyua
20692# Extract the first word of "kyua", so it can be a program name with args.
20693set dummy kyua; ac_word=$2
20694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20695printf %s "checking for $ac_word... " >&6; }
20696if test ${ac_cv_path_KYUA+y}
20697then :
20698  printf %s "(cached) " >&6
20699else case e in #(
20700  e) case $KYUA in
20701  [\\/]* | ?:[\\/]*)
20702  ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
20703  ;;
20704  *)
20705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706for as_dir in $PATH
20707do
20708  IFS=$as_save_IFS
20709  case $as_dir in #(((
20710    '') as_dir=./ ;;
20711    */) ;;
20712    *) as_dir=$as_dir/ ;;
20713  esac
20714    for ac_exec_ext in '' $ac_executable_extensions; do
20715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20716    ac_cv_path_KYUA="$as_dir$ac_word$ac_exec_ext"
20717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20718    break 2
20719  fi
20720done
20721  done
20722IFS=$as_save_IFS
20723
20724  ;;
20725esac ;;
20726esac
20727fi
20728KYUA=$ac_cv_path_KYUA
20729if test -n "$KYUA"; then
20730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
20731printf "%s\n" "$KYUA" >&6; }
20732else
20733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20734printf "%s\n" "no" >&6; }
20735fi
20736
20737
20738 if test -n "${KYUA}"; then
20739  HAVE_KYUA_TRUE=
20740  HAVE_KYUA_FALSE='#'
20741else
20742  HAVE_KYUA_TRUE='#'
20743  HAVE_KYUA_FALSE=
20744fi
20745
20746
20747# Check for Git
20748# Extract the first word of "git", so it can be a program name with args.
20749set dummy git; ac_word=$2
20750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20751printf %s "checking for $ac_word... " >&6; }
20752if test ${ac_cv_path_GIT+y}
20753then :
20754  printf %s "(cached) " >&6
20755else case e in #(
20756  e) case $GIT in
20757  [\\/]* | ?:[\\/]*)
20758  ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
20759  ;;
20760  *)
20761  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20762for as_dir in $PATH
20763do
20764  IFS=$as_save_IFS
20765  case $as_dir in #(((
20766    '') as_dir=./ ;;
20767    */) ;;
20768    *) as_dir=$as_dir/ ;;
20769  esac
20770    for ac_exec_ext in '' $ac_executable_extensions; do
20771  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20772    ac_cv_path_GIT="$as_dir$ac_word$ac_exec_ext"
20773    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20774    break 2
20775  fi
20776done
20777  done
20778IFS=$as_save_IFS
20779
20780  ;;
20781esac ;;
20782esac
20783fi
20784GIT=$ac_cv_path_GIT
20785if test -n "$GIT"; then
20786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
20787printf "%s\n" "$GIT" >&6; }
20788else
20789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790printf "%s\n" "no" >&6; }
20791fi
20792
20793
20794
20795# Define pkg-config and tests directory
20796pkgconfigdir=\${libdir}/pkgconfig
20797
20798testsdir=\${exec_prefix}/tests/lutok
20799
20800
20801# Output configuration
20802cat >confcache <<\_ACEOF
20803# This file is a shell script that caches the results of configure
20804# tests run on this system so they can be shared between configure
20805# scripts and configure runs, see configure's option --config-cache.
20806# It is not useful on other systems.  If it contains results you don't
20807# want to keep, you may remove or edit it.
20808#
20809# config.status only pays attention to the cache file if you give it
20810# the --recheck option to rerun configure.
20811#
20812# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20813# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20814# following values.
20815
20816_ACEOF
20817
20818# The following way of writing the cache mishandles newlines in values,
20819# but we know of no workaround that is simple, portable, and efficient.
20820# So, we kill variables containing newlines.
20821# Ultrix sh set writes to stderr and can't be redirected directly,
20822# and sets the high bit in the cache file unless we assign to the vars.
20823(
20824  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20825    eval ac_val=\$$ac_var
20826    case $ac_val in #(
20827    *${as_nl}*)
20828      case $ac_var in #(
20829      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20830printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20831      esac
20832      case $ac_var in #(
20833      _ | IFS | as_nl) ;; #(
20834      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20835      *) { eval $ac_var=; unset $ac_var;} ;;
20836      esac ;;
20837    esac
20838  done
20839
20840  (set) 2>&1 |
20841    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20842    *${as_nl}ac_space=\ *)
20843      # 'set' does not quote correctly, so add quotes: double-quote
20844      # substitution turns \\\\ into \\, and sed turns \\ into \.
20845      sed -n \
20846	"s/'/'\\\\''/g;
20847	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20848      ;; #(
20849    *)
20850      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20851      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20852      ;;
20853    esac |
20854    sort
20855) |
20856  sed '
20857     /^ac_cv_env_/b end
20858     t clear
20859     :clear
20860     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20861     t end
20862     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20863     :end' >>confcache
20864if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20865  if test -w "$cache_file"; then
20866    if test "x$cache_file" != "x/dev/null"; then
20867      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20868printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20869      if test ! -f "$cache_file" || test -h "$cache_file"; then
20870	cat confcache >"$cache_file"
20871      else
20872        case $cache_file in #(
20873        */* | ?:*)
20874	  mv -f confcache "$cache_file"$$ &&
20875	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20876        *)
20877	  mv -f confcache "$cache_file" ;;
20878	esac
20879      fi
20880    fi
20881  else
20882    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20883printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20884  fi
20885fi
20886rm -f confcache
20887
20888test "x$prefix" = xNONE && prefix=$ac_default_prefix
20889# Let make expand exec_prefix.
20890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20891
20892DEFS=-DHAVE_CONFIG_H
20893
20894ac_libobjs=
20895ac_ltlibobjs=
20896U=
20897for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20898  # 1. Remove the extension, and $U if already installed.
20899  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20900  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20901  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20902  #    will be set to the directory where LIBOBJS objects are built.
20903  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20904  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20905done
20906LIBOBJS=$ac_libobjs
20907
20908LTLIBOBJS=$ac_ltlibobjs
20909
20910
20911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20912printf %s "checking that generated files are newer than configure... " >&6; }
20913   if test -n "$am_sleep_pid"; then
20914     # Hide warnings about reused PIDs.
20915     wait $am_sleep_pid 2>/dev/null
20916   fi
20917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20918printf "%s\n" "done" >&6; }
20919case $enable_silent_rules in # (((
20920  yes) AM_DEFAULT_VERBOSITY=0;;
20921   no) AM_DEFAULT_VERBOSITY=1;;
20922esac
20923if test $am_cv_make_support_nested_variables = yes; then
20924    AM_V='$(V)'
20925  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20926else
20927  AM_V=$AM_DEFAULT_VERBOSITY
20928  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20929fi
20930
20931 if test -n "$EXEEXT"; then
20932  am__EXEEXT_TRUE=
20933  am__EXEEXT_FALSE='#'
20934else
20935  am__EXEEXT_TRUE='#'
20936  am__EXEEXT_FALSE=
20937fi
20938
20939if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20940  as_fn_error $? "conditional \"AMDEP\" was never defined.
20941Usually this means the macro was only invoked conditionally." "$LINENO" 5
20942fi
20943if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20944  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20945Usually this means the macro was only invoked conditionally." "$LINENO" 5
20946fi
20947if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20948  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20949Usually this means the macro was only invoked conditionally." "$LINENO" 5
20950fi
20951if test -z "${WITH_ATF_TRUE}" && test -z "${WITH_ATF_FALSE}"; then
20952  as_fn_error $? "conditional \"WITH_ATF\" was never defined.
20953Usually this means the macro was only invoked conditionally." "$LINENO" 5
20954fi
20955if test -z "${WITH_DOXYGEN_TRUE}" && test -z "${WITH_DOXYGEN_FALSE}"; then
20956  as_fn_error $? "conditional \"WITH_DOXYGEN\" was never defined.
20957Usually this means the macro was only invoked conditionally." "$LINENO" 5
20958fi
20959if test -z "${HAVE_KYUA_TRUE}" && test -z "${HAVE_KYUA_FALSE}"; then
20960  as_fn_error $? "conditional \"HAVE_KYUA\" was never defined.
20961Usually this means the macro was only invoked conditionally." "$LINENO" 5
20962fi
20963
20964: "${CONFIG_STATUS=./config.status}"
20965ac_write_fail=0
20966ac_clean_files_save=$ac_clean_files
20967ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20969printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20970as_write_fail=0
20971cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20972#! $SHELL
20973# Generated by $as_me.
20974# Run this file to recreate the current configuration.
20975# Compiler output produced by configure, useful for debugging
20976# configure, is in config.log if it exists.
20977
20978debug=false
20979ac_cs_recheck=false
20980ac_cs_silent=false
20981
20982SHELL=\${CONFIG_SHELL-$SHELL}
20983export SHELL
20984_ASEOF
20985cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20986## -------------------- ##
20987## M4sh Initialization. ##
20988## -------------------- ##
20989
20990# Be more Bourne compatible
20991DUALCASE=1; export DUALCASE # for MKS sh
20992if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20993then :
20994  emulate sh
20995  NULLCMD=:
20996  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20997  # is contrary to our usage.  Disable this feature.
20998  alias -g '${1+"$@"}'='"$@"'
20999  setopt NO_GLOB_SUBST
21000else case e in #(
21001  e) case `(set -o) 2>/dev/null` in #(
21002  *posix*) :
21003    set -o posix ;; #(
21004  *) :
21005     ;;
21006esac ;;
21007esac
21008fi
21009
21010
21011
21012# Reset variables that may have inherited troublesome values from
21013# the environment.
21014
21015# IFS needs to be set, to space, tab, and newline, in precisely that order.
21016# (If _AS_PATH_WALK were called with IFS unset, it would have the
21017# side effect of setting IFS to empty, thus disabling word splitting.)
21018# Quoting is to prevent editors from complaining about space-tab.
21019as_nl='
21020'
21021export as_nl
21022IFS=" ""	$as_nl"
21023
21024PS1='$ '
21025PS2='> '
21026PS4='+ '
21027
21028# Ensure predictable behavior from utilities with locale-dependent output.
21029LC_ALL=C
21030export LC_ALL
21031LANGUAGE=C
21032export LANGUAGE
21033
21034# We cannot yet rely on "unset" to work, but we need these variables
21035# to be unset--not just set to an empty or harmless value--now, to
21036# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21037# also avoids known problems related to "unset" and subshell syntax
21038# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21039for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21040do eval test \${$as_var+y} \
21041  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21042done
21043
21044# Ensure that fds 0, 1, and 2 are open.
21045if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21046if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21047if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21048
21049# The user is always right.
21050if ${PATH_SEPARATOR+false} :; then
21051  PATH_SEPARATOR=:
21052  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21053    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21054      PATH_SEPARATOR=';'
21055  }
21056fi
21057
21058
21059# Find who we are.  Look in the path if we contain no directory separator.
21060as_myself=
21061case $0 in #((
21062  *[\\/]* ) as_myself=$0 ;;
21063  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21064for as_dir in $PATH
21065do
21066  IFS=$as_save_IFS
21067  case $as_dir in #(((
21068    '') as_dir=./ ;;
21069    */) ;;
21070    *) as_dir=$as_dir/ ;;
21071  esac
21072    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21073  done
21074IFS=$as_save_IFS
21075
21076     ;;
21077esac
21078# We did not find ourselves, most probably we were run as 'sh COMMAND'
21079# in which case we are not to be found in the path.
21080if test "x$as_myself" = x; then
21081  as_myself=$0
21082fi
21083if test ! -f "$as_myself"; then
21084  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21085  exit 1
21086fi
21087
21088
21089
21090# as_fn_error STATUS ERROR [LINENO LOG_FD]
21091# ----------------------------------------
21092# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21093# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21094# script with STATUS, using 1 if that was 0.
21095as_fn_error ()
21096{
21097  as_status=$1; test $as_status -eq 0 && as_status=1
21098  if test "$4"; then
21099    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21100    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21101  fi
21102  printf "%s\n" "$as_me: error: $2" >&2
21103  as_fn_exit $as_status
21104} # as_fn_error
21105
21106
21107# as_fn_set_status STATUS
21108# -----------------------
21109# Set $? to STATUS, without forking.
21110as_fn_set_status ()
21111{
21112  return $1
21113} # as_fn_set_status
21114
21115# as_fn_exit STATUS
21116# -----------------
21117# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21118as_fn_exit ()
21119{
21120  set +e
21121  as_fn_set_status $1
21122  exit $1
21123} # as_fn_exit
21124
21125# as_fn_unset VAR
21126# ---------------
21127# Portably unset VAR.
21128as_fn_unset ()
21129{
21130  { eval $1=; unset $1;}
21131}
21132as_unset=as_fn_unset
21133
21134# as_fn_append VAR VALUE
21135# ----------------------
21136# Append the text in VALUE to the end of the definition contained in VAR. Take
21137# advantage of any shell optimizations that allow amortized linear growth over
21138# repeated appends, instead of the typical quadratic growth present in naive
21139# implementations.
21140if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21141then :
21142  eval 'as_fn_append ()
21143  {
21144    eval $1+=\$2
21145  }'
21146else case e in #(
21147  e) as_fn_append ()
21148  {
21149    eval $1=\$$1\$2
21150  } ;;
21151esac
21152fi # as_fn_append
21153
21154# as_fn_arith ARG...
21155# ------------------
21156# Perform arithmetic evaluation on the ARGs, and store the result in the
21157# global $as_val. Take advantage of shells that can avoid forks. The arguments
21158# must be portable across $(()) and expr.
21159if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21160then :
21161  eval 'as_fn_arith ()
21162  {
21163    as_val=$(( $* ))
21164  }'
21165else case e in #(
21166  e) as_fn_arith ()
21167  {
21168    as_val=`expr "$@" || test $? -eq 1`
21169  } ;;
21170esac
21171fi # as_fn_arith
21172
21173
21174if expr a : '\(a\)' >/dev/null 2>&1 &&
21175   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21176  as_expr=expr
21177else
21178  as_expr=false
21179fi
21180
21181if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21182  as_basename=basename
21183else
21184  as_basename=false
21185fi
21186
21187if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21188  as_dirname=dirname
21189else
21190  as_dirname=false
21191fi
21192
21193as_me=`$as_basename -- "$0" ||
21194$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21195	 X"$0" : 'X\(//\)$' \| \
21196	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21197printf "%s\n" X/"$0" |
21198    sed '/^.*\/\([^/][^/]*\)\/*$/{
21199	    s//\1/
21200	    q
21201	  }
21202	  /^X\/\(\/\/\)$/{
21203	    s//\1/
21204	    q
21205	  }
21206	  /^X\/\(\/\).*/{
21207	    s//\1/
21208	    q
21209	  }
21210	  s/.*/./; q'`
21211
21212# Avoid depending upon Character Ranges.
21213as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21214as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21215as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21216as_cr_digits='0123456789'
21217as_cr_alnum=$as_cr_Letters$as_cr_digits
21218
21219
21220# Determine whether it's possible to make 'echo' print without a newline.
21221# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21222# for compatibility with existing Makefiles.
21223ECHO_C= ECHO_N= ECHO_T=
21224case `echo -n x` in #(((((
21225-n*)
21226  case `echo 'xy\c'` in
21227  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21228  xy)  ECHO_C='\c';;
21229  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21230       ECHO_T='	';;
21231  esac;;
21232*)
21233  ECHO_N='-n';;
21234esac
21235
21236# For backward compatibility with old third-party macros, we provide
21237# the shell variables $as_echo and $as_echo_n.  New code should use
21238# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21239as_echo='printf %s\n'
21240as_echo_n='printf %s'
21241
21242rm -f conf$$ conf$$.exe conf$$.file
21243if test -d conf$$.dir; then
21244  rm -f conf$$.dir/conf$$.file
21245else
21246  rm -f conf$$.dir
21247  mkdir conf$$.dir 2>/dev/null
21248fi
21249if (echo >conf$$.file) 2>/dev/null; then
21250  if ln -s conf$$.file conf$$ 2>/dev/null; then
21251    as_ln_s='ln -s'
21252    # ... but there are two gotchas:
21253    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21254    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21255    # In both cases, we have to default to 'cp -pR'.
21256    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21257      as_ln_s='cp -pR'
21258  elif ln conf$$.file conf$$ 2>/dev/null; then
21259    as_ln_s=ln
21260  else
21261    as_ln_s='cp -pR'
21262  fi
21263else
21264  as_ln_s='cp -pR'
21265fi
21266rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21267rmdir conf$$.dir 2>/dev/null
21268
21269
21270# as_fn_mkdir_p
21271# -------------
21272# Create "$as_dir" as a directory, including parents if necessary.
21273as_fn_mkdir_p ()
21274{
21275
21276  case $as_dir in #(
21277  -*) as_dir=./$as_dir;;
21278  esac
21279  test -d "$as_dir" || eval $as_mkdir_p || {
21280    as_dirs=
21281    while :; do
21282      case $as_dir in #(
21283      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21284      *) as_qdir=$as_dir;;
21285      esac
21286      as_dirs="'$as_qdir' $as_dirs"
21287      as_dir=`$as_dirname -- "$as_dir" ||
21288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21289	 X"$as_dir" : 'X\(//\)[^/]' \| \
21290	 X"$as_dir" : 'X\(//\)$' \| \
21291	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21292printf "%s\n" X"$as_dir" |
21293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21294	    s//\1/
21295	    q
21296	  }
21297	  /^X\(\/\/\)[^/].*/{
21298	    s//\1/
21299	    q
21300	  }
21301	  /^X\(\/\/\)$/{
21302	    s//\1/
21303	    q
21304	  }
21305	  /^X\(\/\).*/{
21306	    s//\1/
21307	    q
21308	  }
21309	  s/.*/./; q'`
21310      test -d "$as_dir" && break
21311    done
21312    test -z "$as_dirs" || eval "mkdir $as_dirs"
21313  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21314
21315
21316} # as_fn_mkdir_p
21317if mkdir -p . 2>/dev/null; then
21318  as_mkdir_p='mkdir -p "$as_dir"'
21319else
21320  test -d ./-p && rmdir ./-p
21321  as_mkdir_p=false
21322fi
21323
21324
21325# as_fn_executable_p FILE
21326# -----------------------
21327# Test if FILE is an executable regular file.
21328as_fn_executable_p ()
21329{
21330  test -f "$1" && test -x "$1"
21331} # as_fn_executable_p
21332as_test_x='test -x'
21333as_executable_p=as_fn_executable_p
21334
21335# Sed expression to map a string onto a valid CPP name.
21336as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21337as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21338
21339# Sed expression to map a string onto a valid variable name.
21340as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21341as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21342
21343
21344exec 6>&1
21345## ----------------------------------- ##
21346## Main body of $CONFIG_STATUS script. ##
21347## ----------------------------------- ##
21348_ASEOF
21349test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21350
21351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21352# Save the log message, to keep $0 and so on meaningful, and to
21353# report actual input values of CONFIG_FILES etc. instead of their
21354# values after options handling.
21355ac_log="
21356This file was extended by Lutok $as_me 0.6.2, which was
21357generated by GNU Autoconf 2.72.  Invocation command line was
21358
21359  CONFIG_FILES    = $CONFIG_FILES
21360  CONFIG_HEADERS  = $CONFIG_HEADERS
21361  CONFIG_LINKS    = $CONFIG_LINKS
21362  CONFIG_COMMANDS = $CONFIG_COMMANDS
21363  $ $0 $@
21364
21365on `(hostname || uname -n) 2>/dev/null | sed 1q`
21366"
21367
21368_ACEOF
21369
21370case $ac_config_files in *"
21371"*) set x $ac_config_files; shift; ac_config_files=$*;;
21372esac
21373
21374case $ac_config_headers in *"
21375"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21376esac
21377
21378
21379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21380# Files that config.status was made for.
21381config_files="$ac_config_files"
21382config_headers="$ac_config_headers"
21383config_commands="$ac_config_commands"
21384
21385_ACEOF
21386
21387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21388ac_cs_usage="\
21389'$as_me' instantiates files and other configuration actions
21390from templates according to the current configuration.  Unless the files
21391and actions are specified as TAGs, all are instantiated by default.
21392
21393Usage: $0 [OPTION]... [TAG]...
21394
21395  -h, --help       print this help, then exit
21396  -V, --version    print version number and configuration settings, then exit
21397      --config     print configuration, then exit
21398  -q, --quiet, --silent
21399                   do not print progress messages
21400  -d, --debug      don't remove temporary files
21401      --recheck    update $as_me by reconfiguring in the same conditions
21402      --file=FILE[:TEMPLATE]
21403                   instantiate the configuration file FILE
21404      --header=FILE[:TEMPLATE]
21405                   instantiate the configuration header FILE
21406
21407Configuration files:
21408$config_files
21409
21410Configuration headers:
21411$config_headers
21412
21413Configuration commands:
21414$config_commands
21415
21416Report bugs to <testing@FreeBSD.org>.
21417Lutok home page: <https://github.com/freebsd/lutok/>."
21418
21419_ACEOF
21420ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21421ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21423ac_cs_config='$ac_cs_config_escaped'
21424ac_cs_version="\\
21425Lutok config.status 0.6.2
21426configured by $0, generated by GNU Autoconf 2.72,
21427  with options \\"\$ac_cs_config\\"
21428
21429Copyright (C) 2023 Free Software Foundation, Inc.
21430This config.status script is free software; the Free Software Foundation
21431gives unlimited permission to copy, distribute and modify it."
21432
21433ac_pwd='$ac_pwd'
21434srcdir='$srcdir'
21435INSTALL='$INSTALL'
21436MKDIR_P='$MKDIR_P'
21437AWK='$AWK'
21438test -n "\$AWK" || AWK=awk
21439_ACEOF
21440
21441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21442# The default lists apply if the user does not specify any file.
21443ac_need_defaults=:
21444while test $# != 0
21445do
21446  case $1 in
21447  --*=?*)
21448    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21449    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21450    ac_shift=:
21451    ;;
21452  --*=)
21453    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21454    ac_optarg=
21455    ac_shift=:
21456    ;;
21457  *)
21458    ac_option=$1
21459    ac_optarg=$2
21460    ac_shift=shift
21461    ;;
21462  esac
21463
21464  case $ac_option in
21465  # Handling of the options.
21466  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21467    ac_cs_recheck=: ;;
21468  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21469    printf "%s\n" "$ac_cs_version"; exit ;;
21470  --config | --confi | --conf | --con | --co | --c )
21471    printf "%s\n" "$ac_cs_config"; exit ;;
21472  --debug | --debu | --deb | --de | --d | -d )
21473    debug=: ;;
21474  --file | --fil | --fi | --f )
21475    $ac_shift
21476    case $ac_optarg in
21477    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21478    '') as_fn_error $? "missing file argument" ;;
21479    esac
21480    as_fn_append CONFIG_FILES " '$ac_optarg'"
21481    ac_need_defaults=false;;
21482  --header | --heade | --head | --hea )
21483    $ac_shift
21484    case $ac_optarg in
21485    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21486    esac
21487    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21488    ac_need_defaults=false;;
21489  --he | --h)
21490    # Conflict between --help and --header
21491    as_fn_error $? "ambiguous option: '$1'
21492Try '$0 --help' for more information.";;
21493  --help | --hel | -h )
21494    printf "%s\n" "$ac_cs_usage"; exit ;;
21495  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21496  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21497    ac_cs_silent=: ;;
21498
21499  # This is an error.
21500  -*) as_fn_error $? "unrecognized option: '$1'
21501Try '$0 --help' for more information." ;;
21502
21503  *) as_fn_append ac_config_targets " $1"
21504     ac_need_defaults=false ;;
21505
21506  esac
21507  shift
21508done
21509
21510ac_configure_extra_args=
21511
21512if $ac_cs_silent; then
21513  exec 6>/dev/null
21514  ac_configure_extra_args="$ac_configure_extra_args --silent"
21515fi
21516
21517_ACEOF
21518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21519if \$ac_cs_recheck; then
21520  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21521  shift
21522  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21523  CONFIG_SHELL='$SHELL'
21524  export CONFIG_SHELL
21525  exec "\$@"
21526fi
21527
21528_ACEOF
21529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21530exec 5>>config.log
21531{
21532  echo
21533  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21534## Running $as_me. ##
21535_ASBOX
21536  printf "%s\n" "$ac_log"
21537} >&5
21538
21539_ACEOF
21540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21541#
21542# INIT-COMMANDS
21543#
21544AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21545
21546
21547# The HP-UX ksh and POSIX shell print the target directory to stdout
21548# if CDPATH is set.
21549(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21550
21551sed_quote_subst='$sed_quote_subst'
21552double_quote_subst='$double_quote_subst'
21553delay_variable_subst='$delay_variable_subst'
21554macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21555macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21556enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21557enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21558pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21559enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21560shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21561SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21562ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21563PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21564host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21565host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21566host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21567build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21568build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21569build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21570SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21571Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21572GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21573EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21574FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21575LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21576NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21577LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21578max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21579ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21580exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21581lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21582lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21583lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21584lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21585lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21586reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21587reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21588FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21589OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21590deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21591file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21592file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21593want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21594DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21595sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21596AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21597lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21598AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21599archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21600STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21601RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21602old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21603old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21604old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21605lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21606CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21607CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21608compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21609GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21610lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21611lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21612lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21613lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21614lt_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"`'
21615lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21616nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21617lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21618lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21619objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21620MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21621lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21622lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21623lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21624lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21625lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21626need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21627MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21628DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21629NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21630LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21631OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21632OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21633libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21634shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21635extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21636archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21637enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21638export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21639whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21640compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21641old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21642old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21643archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21644archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21645module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21646module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21647with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21648allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21649no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21650hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21651hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21652hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21653hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21654hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21655hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21656hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21657inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21658link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21659always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21660export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21661exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21662include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21663prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21664postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21665file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21666variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21667need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21668need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21669version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21670runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21671shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21672shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21673libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21674library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21675soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21676install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21677postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21678postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21679finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21680finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21681hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21682sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21683configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21684configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21685hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21686enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21687enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21688enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21689old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21690striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21691compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21692predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21693postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21694predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21695postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21696compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21697LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21698reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21699reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21700old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21701compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21702GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21703lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21704lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21705lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21706lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21707lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21708archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21709enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21710export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21711whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21712compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21713old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21714old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21715archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21716archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21717module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21718module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21719with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21720allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21721no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21722hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21723hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21724hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21725hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21726hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21727hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21728hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21729inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21730link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21731always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21732export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21733exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21734include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21735prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21736postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21737file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21738hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21739compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21740predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21741postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21742predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21743postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21744compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21745
21746LTCC='$LTCC'
21747LTCFLAGS='$LTCFLAGS'
21748compiler='$compiler_DEFAULT'
21749
21750# A function that is used when there is no print builtin or printf.
21751func_fallback_echo ()
21752{
21753  eval 'cat <<_LTECHO_EOF
21754\$1
21755_LTECHO_EOF'
21756}
21757
21758# Quote evaled strings.
21759for var in SHELL \
21760ECHO \
21761PATH_SEPARATOR \
21762SED \
21763GREP \
21764EGREP \
21765FGREP \
21766LD \
21767NM \
21768LN_S \
21769lt_SP2NL \
21770lt_NL2SP \
21771reload_flag \
21772FILECMD \
21773OBJDUMP \
21774deplibs_check_method \
21775file_magic_cmd \
21776file_magic_glob \
21777want_nocaseglob \
21778DLLTOOL \
21779sharedlib_from_linklib_cmd \
21780AR \
21781archiver_list_spec \
21782STRIP \
21783RANLIB \
21784CC \
21785CFLAGS \
21786compiler \
21787lt_cv_sys_global_symbol_pipe \
21788lt_cv_sys_global_symbol_to_cdecl \
21789lt_cv_sys_global_symbol_to_import \
21790lt_cv_sys_global_symbol_to_c_name_address \
21791lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21792lt_cv_nm_interface \
21793nm_file_list_spec \
21794lt_cv_truncate_bin \
21795lt_prog_compiler_no_builtin_flag \
21796lt_prog_compiler_pic \
21797lt_prog_compiler_wl \
21798lt_prog_compiler_static \
21799lt_cv_prog_compiler_c_o \
21800need_locks \
21801MANIFEST_TOOL \
21802DSYMUTIL \
21803NMEDIT \
21804LIPO \
21805OTOOL \
21806OTOOL64 \
21807shrext_cmds \
21808export_dynamic_flag_spec \
21809whole_archive_flag_spec \
21810compiler_needs_object \
21811with_gnu_ld \
21812allow_undefined_flag \
21813no_undefined_flag \
21814hardcode_libdir_flag_spec \
21815hardcode_libdir_separator \
21816exclude_expsyms \
21817include_expsyms \
21818file_list_spec \
21819variables_saved_for_relink \
21820libname_spec \
21821library_names_spec \
21822soname_spec \
21823install_override_mode \
21824finish_eval \
21825old_striplib \
21826striplib \
21827compiler_lib_search_dirs \
21828predep_objects \
21829postdep_objects \
21830predeps \
21831postdeps \
21832compiler_lib_search_path \
21833LD_CXX \
21834reload_flag_CXX \
21835compiler_CXX \
21836lt_prog_compiler_no_builtin_flag_CXX \
21837lt_prog_compiler_pic_CXX \
21838lt_prog_compiler_wl_CXX \
21839lt_prog_compiler_static_CXX \
21840lt_cv_prog_compiler_c_o_CXX \
21841export_dynamic_flag_spec_CXX \
21842whole_archive_flag_spec_CXX \
21843compiler_needs_object_CXX \
21844with_gnu_ld_CXX \
21845allow_undefined_flag_CXX \
21846no_undefined_flag_CXX \
21847hardcode_libdir_flag_spec_CXX \
21848hardcode_libdir_separator_CXX \
21849exclude_expsyms_CXX \
21850include_expsyms_CXX \
21851file_list_spec_CXX \
21852compiler_lib_search_dirs_CXX \
21853predep_objects_CXX \
21854postdep_objects_CXX \
21855predeps_CXX \
21856postdeps_CXX \
21857compiler_lib_search_path_CXX; do
21858    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21859    *[\\\\\\\`\\"\\\$]*)
21860      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21861      ;;
21862    *)
21863      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21864      ;;
21865    esac
21866done
21867
21868# Double-quote double-evaled strings.
21869for var in reload_cmds \
21870old_postinstall_cmds \
21871old_postuninstall_cmds \
21872old_archive_cmds \
21873extract_expsyms_cmds \
21874old_archive_from_new_cmds \
21875old_archive_from_expsyms_cmds \
21876archive_cmds \
21877archive_expsym_cmds \
21878module_cmds \
21879module_expsym_cmds \
21880export_symbols_cmds \
21881prelink_cmds \
21882postlink_cmds \
21883postinstall_cmds \
21884postuninstall_cmds \
21885finish_cmds \
21886sys_lib_search_path_spec \
21887configure_time_dlsearch_path \
21888configure_time_lt_sys_library_path \
21889reload_cmds_CXX \
21890old_archive_cmds_CXX \
21891old_archive_from_new_cmds_CXX \
21892old_archive_from_expsyms_cmds_CXX \
21893archive_cmds_CXX \
21894archive_expsym_cmds_CXX \
21895module_cmds_CXX \
21896module_expsym_cmds_CXX \
21897export_symbols_cmds_CXX \
21898prelink_cmds_CXX \
21899postlink_cmds_CXX; do
21900    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21901    *[\\\\\\\`\\"\\\$]*)
21902      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21903      ;;
21904    *)
21905      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21906      ;;
21907    esac
21908done
21909
21910ac_aux_dir='$ac_aux_dir'
21911
21912# See if we are running on zsh, and set the options that allow our
21913# commands through without removal of \ escapes INIT.
21914if test -n "\${ZSH_VERSION+set}"; then
21915   setopt NO_GLOB_SUBST
21916fi
21917
21918
21919    PACKAGE='$PACKAGE'
21920    VERSION='$VERSION'
21921    RM='$RM'
21922    ofile='$ofile'
21923
21924
21925
21926
21927
21928
21929_ACEOF
21930
21931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21932
21933# Handling of arguments.
21934for ac_config_target in $ac_config_targets
21935do
21936  case $ac_config_target in
21937    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
21938    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21939    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21940    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21941    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21942
21943  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21944  esac
21945done
21946
21947
21948# If the user did not use the arguments to specify the items to instantiate,
21949# then the envvar interface is used.  Set only those that are not.
21950# We use the long form for the default assignment because of an extremely
21951# bizarre bug on SunOS 4.1.3.
21952if $ac_need_defaults; then
21953  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21954  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21955  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21956fi
21957
21958# Have a temporary directory for convenience.  Make it in the build tree
21959# simply because there is no reason against having it here, and in addition,
21960# creating and moving files from /tmp can sometimes cause problems.
21961# Hook for its removal unless debugging.
21962# Note that there is a small window in which the directory will not be cleaned:
21963# after its creation but before its name has been assigned to '$tmp'.
21964$debug ||
21965{
21966  tmp= ac_tmp=
21967  trap 'exit_status=$?
21968  : "${ac_tmp:=$tmp}"
21969  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21970' 0
21971  trap 'as_fn_exit 1' 1 2 13 15
21972}
21973# Create a (secure) tmp directory for tmp files.
21974
21975{
21976  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21977  test -d "$tmp"
21978}  ||
21979{
21980  tmp=./conf$$-$RANDOM
21981  (umask 077 && mkdir "$tmp")
21982} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21983ac_tmp=$tmp
21984
21985# Set up the scripts for CONFIG_FILES section.
21986# No need to generate them if there are no CONFIG_FILES.
21987# This happens for instance with './config.status config.h'.
21988if test -n "$CONFIG_FILES"; then
21989
21990
21991ac_cr=`echo X | tr X '\015'`
21992# On cygwin, bash can eat \r inside `` if the user requested igncr.
21993# But we know of no other shell where ac_cr would be empty at this
21994# point, so we can use a bashism as a fallback.
21995if test "x$ac_cr" = x; then
21996  eval ac_cr=\$\'\\r\'
21997fi
21998ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21999if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22000  ac_cs_awk_cr='\\r'
22001else
22002  ac_cs_awk_cr=$ac_cr
22003fi
22004
22005echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22006_ACEOF
22007
22008
22009{
22010  echo "cat >conf$$subs.awk <<_ACEOF" &&
22011  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22012  echo "_ACEOF"
22013} >conf$$subs.sh ||
22014  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22015ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22016ac_delim='%!_!# '
22017for ac_last_try in false false false false false :; do
22018  . ./conf$$subs.sh ||
22019    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22020
22021  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22022  if test $ac_delim_n = $ac_delim_num; then
22023    break
22024  elif $ac_last_try; then
22025    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22026  else
22027    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22028  fi
22029done
22030rm -f conf$$subs.sh
22031
22032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22033cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22034_ACEOF
22035sed -n '
22036h
22037s/^/S["/; s/!.*/"]=/
22038p
22039g
22040s/^[^!]*!//
22041:repl
22042t repl
22043s/'"$ac_delim"'$//
22044t delim
22045:nl
22046h
22047s/\(.\{148\}\)..*/\1/
22048t more1
22049s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22050p
22051n
22052b repl
22053:more1
22054s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22055p
22056g
22057s/.\{148\}//
22058t nl
22059:delim
22060h
22061s/\(.\{148\}\)..*/\1/
22062t more2
22063s/["\\]/\\&/g; s/^/"/; s/$/"/
22064p
22065b
22066:more2
22067s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22068p
22069g
22070s/.\{148\}//
22071t delim
22072' <conf$$subs.awk | sed '
22073/^[^""]/{
22074  N
22075  s/\n//
22076}
22077' >>$CONFIG_STATUS || ac_write_fail=1
22078rm -f conf$$subs.awk
22079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22080_ACAWK
22081cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22082  for (key in S) S_is_set[key] = 1
22083  FS = ""
22084
22085}
22086{
22087  line = $ 0
22088  nfields = split(line, field, "@")
22089  substed = 0
22090  len = length(field[1])
22091  for (i = 2; i < nfields; i++) {
22092    key = field[i]
22093    keylen = length(key)
22094    if (S_is_set[key]) {
22095      value = S[key]
22096      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22097      len += length(value) + length(field[++i])
22098      substed = 1
22099    } else
22100      len += 1 + keylen
22101  }
22102
22103  print line
22104}
22105
22106_ACAWK
22107_ACEOF
22108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22109if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22110  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22111else
22112  cat
22113fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22114  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22115_ACEOF
22116
22117# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22118# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22119# trailing colons and then remove the whole line if VPATH becomes empty
22120# (actually we leave an empty line to preserve line numbers).
22121if test "x$srcdir" = x.; then
22122  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22123h
22124s///
22125s/^/:/
22126s/[	 ]*$/:/
22127s/:\$(srcdir):/:/g
22128s/:\${srcdir}:/:/g
22129s/:@srcdir@:/:/g
22130s/^:*//
22131s/:*$//
22132x
22133s/\(=[	 ]*\).*/\1/
22134G
22135s/\n//
22136s/^[^=]*=[	 ]*$//
22137}'
22138fi
22139
22140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22141fi # test -n "$CONFIG_FILES"
22142
22143# Set up the scripts for CONFIG_HEADERS section.
22144# No need to generate them if there are no CONFIG_HEADERS.
22145# This happens for instance with './config.status Makefile'.
22146if test -n "$CONFIG_HEADERS"; then
22147cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22148BEGIN {
22149_ACEOF
22150
22151# Transform confdefs.h into an awk script 'defines.awk', embedded as
22152# here-document in config.status, that substitutes the proper values into
22153# config.h.in to produce config.h.
22154
22155# Create a delimiter string that does not exist in confdefs.h, to ease
22156# handling of long lines.
22157ac_delim='%!_!# '
22158for ac_last_try in false false :; do
22159  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22160  if test -z "$ac_tt"; then
22161    break
22162  elif $ac_last_try; then
22163    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22164  else
22165    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22166  fi
22167done
22168
22169# For the awk script, D is an array of macro values keyed by name,
22170# likewise P contains macro parameters if any.  Preserve backslash
22171# newline sequences.
22172
22173ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22174sed -n '
22175s/.\{148\}/&'"$ac_delim"'/g
22176t rset
22177:rset
22178s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22179t def
22180d
22181:def
22182s/\\$//
22183t bsnl
22184s/["\\]/\\&/g
22185s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22186D["\1"]=" \3"/p
22187s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22188d
22189:bsnl
22190s/["\\]/\\&/g
22191s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22192D["\1"]=" \3\\\\\\n"\\/p
22193t cont
22194s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22195t cont
22196d
22197:cont
22198n
22199s/.\{148\}/&'"$ac_delim"'/g
22200t clear
22201:clear
22202s/\\$//
22203t bsnlc
22204s/["\\]/\\&/g; s/^/"/; s/$/"/p
22205d
22206:bsnlc
22207s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22208b cont
22209' <confdefs.h | sed '
22210s/'"$ac_delim"'/"\\\
22211"/g' >>$CONFIG_STATUS || ac_write_fail=1
22212
22213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22214  for (key in D) D_is_set[key] = 1
22215  FS = ""
22216}
22217/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22218  line = \$ 0
22219  split(line, arg, " ")
22220  if (arg[1] == "#") {
22221    defundef = arg[2]
22222    mac1 = arg[3]
22223  } else {
22224    defundef = substr(arg[1], 2)
22225    mac1 = arg[2]
22226  }
22227  split(mac1, mac2, "(") #)
22228  macro = mac2[1]
22229  prefix = substr(line, 1, index(line, defundef) - 1)
22230  if (D_is_set[macro]) {
22231    # Preserve the white space surrounding the "#".
22232    print prefix "define", macro P[macro] D[macro]
22233    next
22234  } else {
22235    # Replace #undef with comments.  This is necessary, for example,
22236    # in the case of _POSIX_SOURCE, which is predefined and required
22237    # on some systems where configure will not decide to define it.
22238    if (defundef == "undef") {
22239      print "/*", prefix defundef, macro, "*/"
22240      next
22241    }
22242  }
22243}
22244{ print }
22245_ACAWK
22246_ACEOF
22247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22248  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22249fi # test -n "$CONFIG_HEADERS"
22250
22251
22252eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22253shift
22254for ac_tag
22255do
22256  case $ac_tag in
22257  :[FHLC]) ac_mode=$ac_tag; continue;;
22258  esac
22259  case $ac_mode$ac_tag in
22260  :[FHL]*:*);;
22261  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22262  :[FH]-) ac_tag=-:-;;
22263  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22264  esac
22265  ac_save_IFS=$IFS
22266  IFS=:
22267  set x $ac_tag
22268  IFS=$ac_save_IFS
22269  shift
22270  ac_file=$1
22271  shift
22272
22273  case $ac_mode in
22274  :L) ac_source=$1;;
22275  :[FH])
22276    ac_file_inputs=
22277    for ac_f
22278    do
22279      case $ac_f in
22280      -) ac_f="$ac_tmp/stdin";;
22281      *) # Look for the file first in the build tree, then in the source tree
22282	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22283	 # because $ac_f cannot contain ':'.
22284	 test -f "$ac_f" ||
22285	   case $ac_f in
22286	   [\\/$]*) false;;
22287	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22288	   esac ||
22289	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22290      esac
22291      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22292      as_fn_append ac_file_inputs " '$ac_f'"
22293    done
22294
22295    # Let's still pretend it is 'configure' which instantiates (i.e., don't
22296    # use $as_me), people would be surprised to read:
22297    #    /* config.h.  Generated by config.status.  */
22298    configure_input='Generated from '`
22299	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22300	`' by configure.'
22301    if test x"$ac_file" != x-; then
22302      configure_input="$ac_file.  $configure_input"
22303      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22304printf "%s\n" "$as_me: creating $ac_file" >&6;}
22305    fi
22306    # Neutralize special characters interpreted by sed in replacement strings.
22307    case $configure_input in #(
22308    *\&* | *\|* | *\\* )
22309       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22310       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22311    *) ac_sed_conf_input=$configure_input;;
22312    esac
22313
22314    case $ac_tag in
22315    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22316      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22317    esac
22318    ;;
22319  esac
22320
22321  ac_dir=`$as_dirname -- "$ac_file" ||
22322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22323	 X"$ac_file" : 'X\(//\)[^/]' \| \
22324	 X"$ac_file" : 'X\(//\)$' \| \
22325	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22326printf "%s\n" X"$ac_file" |
22327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22328	    s//\1/
22329	    q
22330	  }
22331	  /^X\(\/\/\)[^/].*/{
22332	    s//\1/
22333	    q
22334	  }
22335	  /^X\(\/\/\)$/{
22336	    s//\1/
22337	    q
22338	  }
22339	  /^X\(\/\).*/{
22340	    s//\1/
22341	    q
22342	  }
22343	  s/.*/./; q'`
22344  as_dir="$ac_dir"; as_fn_mkdir_p
22345  ac_builddir=.
22346
22347case "$ac_dir" in
22348.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22349*)
22350  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22351  # A ".." for each directory in $ac_dir_suffix.
22352  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22353  case $ac_top_builddir_sub in
22354  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22355  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22356  esac ;;
22357esac
22358ac_abs_top_builddir=$ac_pwd
22359ac_abs_builddir=$ac_pwd$ac_dir_suffix
22360# for backward compatibility:
22361ac_top_builddir=$ac_top_build_prefix
22362
22363case $srcdir in
22364  .)  # We are building in place.
22365    ac_srcdir=.
22366    ac_top_srcdir=$ac_top_builddir_sub
22367    ac_abs_top_srcdir=$ac_pwd ;;
22368  [\\/]* | ?:[\\/]* )  # Absolute name.
22369    ac_srcdir=$srcdir$ac_dir_suffix;
22370    ac_top_srcdir=$srcdir
22371    ac_abs_top_srcdir=$srcdir ;;
22372  *) # Relative name.
22373    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22374    ac_top_srcdir=$ac_top_build_prefix$srcdir
22375    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22376esac
22377ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22378
22379
22380  case $ac_mode in
22381  :F)
22382  #
22383  # CONFIG_FILE
22384  #
22385
22386  case $INSTALL in
22387  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22388  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22389  esac
22390  ac_MKDIR_P=$MKDIR_P
22391  case $MKDIR_P in
22392  [\\/$]* | ?:[\\/]* ) ;;
22393  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22394  esac
22395_ACEOF
22396
22397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22398# If the template does not know about datarootdir, expand it.
22399# FIXME: This hack should be removed a few years after 2.60.
22400ac_datarootdir_hack=; ac_datarootdir_seen=
22401ac_sed_dataroot='
22402/datarootdir/ {
22403  p
22404  q
22405}
22406/@datadir@/p
22407/@docdir@/p
22408/@infodir@/p
22409/@localedir@/p
22410/@mandir@/p'
22411case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22412*datarootdir*) ac_datarootdir_seen=yes;;
22413*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22415printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22416_ACEOF
22417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22418  ac_datarootdir_hack='
22419  s&@datadir@&$datadir&g
22420  s&@docdir@&$docdir&g
22421  s&@infodir@&$infodir&g
22422  s&@localedir@&$localedir&g
22423  s&@mandir@&$mandir&g
22424  s&\\\${datarootdir}&$datarootdir&g' ;;
22425esac
22426_ACEOF
22427
22428# Neutralize VPATH when '$srcdir' = '.'.
22429# Shell code in configure.ac might set extrasub.
22430# FIXME: do we really want to maintain this feature?
22431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22432ac_sed_extra="$ac_vpsub
22433$extrasub
22434_ACEOF
22435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22436:t
22437/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22438s|@configure_input@|$ac_sed_conf_input|;t t
22439s&@top_builddir@&$ac_top_builddir_sub&;t t
22440s&@top_build_prefix@&$ac_top_build_prefix&;t t
22441s&@srcdir@&$ac_srcdir&;t t
22442s&@abs_srcdir@&$ac_abs_srcdir&;t t
22443s&@top_srcdir@&$ac_top_srcdir&;t t
22444s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22445s&@builddir@&$ac_builddir&;t t
22446s&@abs_builddir@&$ac_abs_builddir&;t t
22447s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22448s&@INSTALL@&$ac_INSTALL&;t t
22449s&@MKDIR_P@&$ac_MKDIR_P&;t t
22450$ac_datarootdir_hack
22451"
22452eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22453  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22454
22455test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22456  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22457  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22458      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22460which seems to be undefined.  Please make sure it is defined" >&5
22461printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22462which seems to be undefined.  Please make sure it is defined" >&2;}
22463
22464  rm -f "$ac_tmp/stdin"
22465  case $ac_file in
22466  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22467  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22468  esac \
22469  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22470 ;;
22471  :H)
22472  #
22473  # CONFIG_HEADER
22474  #
22475  if test x"$ac_file" != x-; then
22476    {
22477      printf "%s\n" "/* $configure_input  */" >&1 \
22478      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22479    } >"$ac_tmp/config.h" \
22480      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22481    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22482      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22483printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22484    else
22485      rm -f "$ac_file"
22486      mv "$ac_tmp/config.h" "$ac_file" \
22487	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22488    fi
22489  else
22490    printf "%s\n" "/* $configure_input  */" >&1 \
22491      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22492      || as_fn_error $? "could not create -" "$LINENO" 5
22493  fi
22494# Compute "$ac_file"'s index in $config_headers.
22495_am_arg="$ac_file"
22496_am_stamp_count=1
22497for _am_header in $config_headers :; do
22498  case $_am_header in
22499    $_am_arg | $_am_arg:* )
22500      break ;;
22501    * )
22502      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22503  esac
22504done
22505echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22506$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22507	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22508	 X"$_am_arg" : 'X\(//\)$' \| \
22509	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22510printf "%s\n" X"$_am_arg" |
22511    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22512	    s//\1/
22513	    q
22514	  }
22515	  /^X\(\/\/\)[^/].*/{
22516	    s//\1/
22517	    q
22518	  }
22519	  /^X\(\/\/\)$/{
22520	    s//\1/
22521	    q
22522	  }
22523	  /^X\(\/\).*/{
22524	    s//\1/
22525	    q
22526	  }
22527	  s/.*/./; q'`/stamp-h$_am_stamp_count
22528 ;;
22529
22530  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22531printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22532 ;;
22533  esac
22534
22535
22536  case $ac_file$ac_mode in
22537    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22538  # Older Autoconf quotes --file arguments for eval, but not when files
22539  # are listed without --file.  Let's play safe and only enable the eval
22540  # if we detect the quoting.
22541  # TODO: see whether this extra hack can be removed once we start
22542  # requiring Autoconf 2.70 or later.
22543  case $CONFIG_FILES in #(
22544  *\'*) :
22545    eval set x "$CONFIG_FILES" ;; #(
22546  *) :
22547    set x $CONFIG_FILES ;; #(
22548  *) :
22549     ;;
22550esac
22551  shift
22552  # Used to flag and report bootstrapping failures.
22553  am_rc=0
22554  for am_mf
22555  do
22556    # Strip MF so we end up with the name of the file.
22557    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22558    # Check whether this is an Automake generated Makefile which includes
22559    # dependency-tracking related rules and includes.
22560    # Grep'ing the whole file directly is not great: AIX grep has a line
22561    # limit of 2048, but all sed's we know have understand at least 4000.
22562    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22563      || continue
22564    am_dirpart=`$as_dirname -- "$am_mf" ||
22565$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566	 X"$am_mf" : 'X\(//\)[^/]' \| \
22567	 X"$am_mf" : 'X\(//\)$' \| \
22568	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22569printf "%s\n" X"$am_mf" |
22570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22571	    s//\1/
22572	    q
22573	  }
22574	  /^X\(\/\/\)[^/].*/{
22575	    s//\1/
22576	    q
22577	  }
22578	  /^X\(\/\/\)$/{
22579	    s//\1/
22580	    q
22581	  }
22582	  /^X\(\/\).*/{
22583	    s//\1/
22584	    q
22585	  }
22586	  s/.*/./; q'`
22587    am_filepart=`$as_basename -- "$am_mf" ||
22588$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22589	 X"$am_mf" : 'X\(//\)$' \| \
22590	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22591printf "%s\n" X/"$am_mf" |
22592    sed '/^.*\/\([^/][^/]*\)\/*$/{
22593	    s//\1/
22594	    q
22595	  }
22596	  /^X\/\(\/\/\)$/{
22597	    s//\1/
22598	    q
22599	  }
22600	  /^X\/\(\/\).*/{
22601	    s//\1/
22602	    q
22603	  }
22604	  s/.*/./; q'`
22605    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22606      && sed -e '/# am--include-marker/d' "$am_filepart" \
22607        | $MAKE -f - am--depfiles" >&5
22608   (cd "$am_dirpart" \
22609      && sed -e '/# am--include-marker/d' "$am_filepart" \
22610        | $MAKE -f - am--depfiles) >&5 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } || am_rc=$?
22614  done
22615  if test $am_rc -ne 0; then
22616    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22617printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22618as_fn_error $? "Something went wrong bootstrapping makefile fragments
22619    for automatic dependency tracking.  If GNU make was not used, consider
22620    re-running the configure script with MAKE=\"gmake\" (or whatever is
22621    necessary).  You can also try re-running configure with the
22622    '--disable-dependency-tracking' option to at least be able to build
22623    the package (albeit without support for automatic dependency tracking).
22624See 'config.log' for more details" "$LINENO" 5; }
22625  fi
22626  { am_dirpart=; unset am_dirpart;}
22627  { am_filepart=; unset am_filepart;}
22628  { am_mf=; unset am_mf;}
22629  { am_rc=; unset am_rc;}
22630  rm -f conftest-deps.mk
22631}
22632 ;;
22633    "libtool":C)
22634
22635    # See if we are running on zsh, and set the options that allow our
22636    # commands through without removal of \ escapes.
22637    if test -n "${ZSH_VERSION+set}"; then
22638      setopt NO_GLOB_SUBST
22639    fi
22640
22641    cfgfile=${ofile}T
22642    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22643    $RM "$cfgfile"
22644
22645    cat <<_LT_EOF >> "$cfgfile"
22646#! $SHELL
22647# Generated automatically by $as_me ($PACKAGE) $VERSION
22648# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22649
22650# Provide generalized library-building support services.
22651# Written by Gordon Matzigkeit, 1996
22652
22653# Copyright (C) 2024 Free Software Foundation, Inc.
22654# This is free software; see the source for copying conditions.  There is NO
22655# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22656
22657# GNU Libtool is free software; you can redistribute it and/or modify
22658# it under the terms of the GNU General Public License as published by
22659# the Free Software Foundation; either version 2 of the License, or
22660# (at your option) any later version.
22661#
22662# As a special exception to the GNU General Public License, if you
22663# distribute this file as part of a program or library that is built
22664# using GNU Libtool, you may include this file under the  same
22665# distribution terms that you use for the rest of that program.
22666#
22667# GNU Libtool is distributed in the hope that it will be useful, but
22668# WITHOUT ANY WARRANTY; without even the implied warranty of
22669# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22670# GNU General Public License for more details.
22671#
22672# You should have received a copy of the GNU General Public License
22673# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22674
22675
22676# The names of the tagged configurations supported by this script.
22677available_tags='CXX '
22678
22679# Configured defaults for sys_lib_dlsearch_path munging.
22680: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22681
22682# ### BEGIN LIBTOOL CONFIG
22683
22684# Which release of libtool.m4 was used?
22685macro_version=$macro_version
22686macro_revision=$macro_revision
22687
22688# Whether or not to build shared libraries.
22689build_libtool_libs=$enable_shared
22690
22691# Whether or not to build static libraries.
22692build_old_libs=$enable_static
22693
22694# What type of objects to build.
22695pic_mode=$pic_mode
22696
22697# Whether or not to optimize for fast installation.
22698fast_install=$enable_fast_install
22699
22700# Shared archive member basename,for filename based shared library versioning on AIX.
22701shared_archive_member_spec=$shared_archive_member_spec
22702
22703# Shell to use when invoking shell scripts.
22704SHELL=$lt_SHELL
22705
22706# An echo program that protects backslashes.
22707ECHO=$lt_ECHO
22708
22709# The PATH separator for the build system.
22710PATH_SEPARATOR=$lt_PATH_SEPARATOR
22711
22712# The host system.
22713host_alias=$host_alias
22714host=$host
22715host_os=$host_os
22716
22717# The build system.
22718build_alias=$build_alias
22719build=$build
22720build_os=$build_os
22721
22722# A sed program that does not truncate output.
22723SED=$lt_SED
22724
22725# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22726Xsed="\$SED -e 1s/^X//"
22727
22728# A grep program that handles long lines.
22729GREP=$lt_GREP
22730
22731# An ERE matcher.
22732EGREP=$lt_EGREP
22733
22734# A literal string matcher.
22735FGREP=$lt_FGREP
22736
22737# A BSD- or MS-compatible name lister.
22738NM=$lt_NM
22739
22740# Whether we need soft or hard links.
22741LN_S=$lt_LN_S
22742
22743# What is the maximum length of a command?
22744max_cmd_len=$max_cmd_len
22745
22746# Object file suffix (normally "o").
22747objext=$ac_objext
22748
22749# Executable file suffix (normally "").
22750exeext=$exeext
22751
22752# whether the shell understands "unset".
22753lt_unset=$lt_unset
22754
22755# turn spaces into newlines.
22756SP2NL=$lt_lt_SP2NL
22757
22758# turn newlines into spaces.
22759NL2SP=$lt_lt_NL2SP
22760
22761# convert \$build file names to \$host format.
22762to_host_file_cmd=$lt_cv_to_host_file_cmd
22763
22764# convert \$build files to toolchain format.
22765to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22766
22767# A file(cmd) program that detects file types.
22768FILECMD=$lt_FILECMD
22769
22770# An object symbol dumper.
22771OBJDUMP=$lt_OBJDUMP
22772
22773# Method to check whether dependent libraries are shared objects.
22774deplibs_check_method=$lt_deplibs_check_method
22775
22776# Command to use when deplibs_check_method = "file_magic".
22777file_magic_cmd=$lt_file_magic_cmd
22778
22779# How to find potential files when deplibs_check_method = "file_magic".
22780file_magic_glob=$lt_file_magic_glob
22781
22782# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22783want_nocaseglob=$lt_want_nocaseglob
22784
22785# DLL creation program.
22786DLLTOOL=$lt_DLLTOOL
22787
22788# Command to associate shared and link libraries.
22789sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22790
22791# The archiver.
22792AR=$lt_AR
22793
22794# Flags to create an archive (by configure).
22795lt_ar_flags=$lt_ar_flags
22796
22797# Flags to create an archive.
22798AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22799
22800# How to feed a file listing to the archiver.
22801archiver_list_spec=$lt_archiver_list_spec
22802
22803# A symbol stripping program.
22804STRIP=$lt_STRIP
22805
22806# Commands used to install an old-style archive.
22807RANLIB=$lt_RANLIB
22808old_postinstall_cmds=$lt_old_postinstall_cmds
22809old_postuninstall_cmds=$lt_old_postuninstall_cmds
22810
22811# Whether to use a lock for old archive extraction.
22812lock_old_archive_extraction=$lock_old_archive_extraction
22813
22814# A C compiler.
22815LTCC=$lt_CC
22816
22817# LTCC compiler flags.
22818LTCFLAGS=$lt_CFLAGS
22819
22820# Take the output of nm and produce a listing of raw symbols and C names.
22821global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22822
22823# Transform the output of nm in a proper C declaration.
22824global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22825
22826# Transform the output of nm into a list of symbols to manually relocate.
22827global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22828
22829# Transform the output of nm in a C name address pair.
22830global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22831
22832# Transform the output of nm in a C name address pair when lib prefix is needed.
22833global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22834
22835# The name lister interface.
22836nm_interface=$lt_lt_cv_nm_interface
22837
22838# Specify filename containing input files for \$NM.
22839nm_file_list_spec=$lt_nm_file_list_spec
22840
22841# The root where to search for dependent libraries,and where our libraries should be installed.
22842lt_sysroot=$lt_sysroot
22843
22844# Command to truncate a binary pipe.
22845lt_truncate_bin=$lt_lt_cv_truncate_bin
22846
22847# The name of the directory that contains temporary libtool files.
22848objdir=$objdir
22849
22850# Used to examine libraries when file_magic_cmd begins with "file".
22851MAGIC_CMD=$MAGIC_CMD
22852
22853# Must we lock files when doing compilation?
22854need_locks=$lt_need_locks
22855
22856# Manifest tool.
22857MANIFEST_TOOL=$lt_MANIFEST_TOOL
22858
22859# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22860DSYMUTIL=$lt_DSYMUTIL
22861
22862# Tool to change global to local symbols on Mac OS X.
22863NMEDIT=$lt_NMEDIT
22864
22865# Tool to manipulate fat objects and archives on Mac OS X.
22866LIPO=$lt_LIPO
22867
22868# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22869OTOOL=$lt_OTOOL
22870
22871# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22872OTOOL64=$lt_OTOOL64
22873
22874# Old archive suffix (normally "a").
22875libext=$libext
22876
22877# Shared library suffix (normally ".so").
22878shrext_cmds=$lt_shrext_cmds
22879
22880# The commands to extract the exported symbol list from a shared archive.
22881extract_expsyms_cmds=$lt_extract_expsyms_cmds
22882
22883# Variables whose values should be saved in libtool wrapper scripts and
22884# restored at link time.
22885variables_saved_for_relink=$lt_variables_saved_for_relink
22886
22887# Do we need the "lib" prefix for modules?
22888need_lib_prefix=$need_lib_prefix
22889
22890# Do we need a version for libraries?
22891need_version=$need_version
22892
22893# Library versioning type.
22894version_type=$version_type
22895
22896# Shared library runtime path variable.
22897runpath_var=$runpath_var
22898
22899# Shared library path variable.
22900shlibpath_var=$shlibpath_var
22901
22902# Is shlibpath searched before the hard-coded library search path?
22903shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22904
22905# Format of library name prefix.
22906libname_spec=$lt_libname_spec
22907
22908# List of archive names.  First name is the real one, the rest are links.
22909# The last name is the one that the linker finds with -lNAME
22910library_names_spec=$lt_library_names_spec
22911
22912# The coded name of the library, if different from the real name.
22913soname_spec=$lt_soname_spec
22914
22915# Permission mode override for installation of shared libraries.
22916install_override_mode=$lt_install_override_mode
22917
22918# Command to use after installation of a shared archive.
22919postinstall_cmds=$lt_postinstall_cmds
22920
22921# Command to use after uninstallation of a shared archive.
22922postuninstall_cmds=$lt_postuninstall_cmds
22923
22924# Commands used to finish a libtool library installation in a directory.
22925finish_cmds=$lt_finish_cmds
22926
22927# As "finish_cmds", except a single script fragment to be evaled but
22928# not shown.
22929finish_eval=$lt_finish_eval
22930
22931# Whether we should hardcode library paths into libraries.
22932hardcode_into_libs=$hardcode_into_libs
22933
22934# Compile-time system search path for libraries.
22935sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22936
22937# Detected run-time system search path for libraries.
22938sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22939
22940# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22941configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22942
22943# Whether dlopen is supported.
22944dlopen_support=$enable_dlopen
22945
22946# Whether dlopen of programs is supported.
22947dlopen_self=$enable_dlopen_self
22948
22949# Whether dlopen of statically linked programs is supported.
22950dlopen_self_static=$enable_dlopen_self_static
22951
22952# Commands to strip libraries.
22953old_striplib=$lt_old_striplib
22954striplib=$lt_striplib
22955
22956
22957# The linker used to build libraries.
22958LD=$lt_LD
22959
22960# How to create reloadable object files.
22961reload_flag=$lt_reload_flag
22962reload_cmds=$lt_reload_cmds
22963
22964# Commands used to build an old-style archive.
22965old_archive_cmds=$lt_old_archive_cmds
22966
22967# A language specific compiler.
22968CC=$lt_compiler
22969
22970# Is the compiler the GNU compiler?
22971with_gcc=$GCC
22972
22973# Compiler flag to turn off builtin functions.
22974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22975
22976# Additional compiler flags for building library objects.
22977pic_flag=$lt_lt_prog_compiler_pic
22978
22979# How to pass a linker flag through the compiler.
22980wl=$lt_lt_prog_compiler_wl
22981
22982# Compiler flag to prevent dynamic linking.
22983link_static_flag=$lt_lt_prog_compiler_static
22984
22985# Does compiler simultaneously support -c and -o options?
22986compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22987
22988# Whether or not to add -lc for building shared libraries.
22989build_libtool_need_lc=$archive_cmds_need_lc
22990
22991# Whether or not to disallow shared libs when runtime libs are static.
22992allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22993
22994# Compiler flag to allow reflexive dlopens.
22995export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22996
22997# Compiler flag to generate shared objects directly from archives.
22998whole_archive_flag_spec=$lt_whole_archive_flag_spec
22999
23000# Whether the compiler copes with passing no objects directly.
23001compiler_needs_object=$lt_compiler_needs_object
23002
23003# Create an old-style archive from a shared archive.
23004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23005
23006# Create a temporary old-style archive to link instead of a shared archive.
23007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23008
23009# Commands used to build a shared archive.
23010archive_cmds=$lt_archive_cmds
23011archive_expsym_cmds=$lt_archive_expsym_cmds
23012
23013# Commands used to build a loadable module if different from building
23014# a shared archive.
23015module_cmds=$lt_module_cmds
23016module_expsym_cmds=$lt_module_expsym_cmds
23017
23018# Whether we are building with GNU ld or not.
23019with_gnu_ld=$lt_with_gnu_ld
23020
23021# Flag that allows shared libraries with undefined symbols to be built.
23022allow_undefined_flag=$lt_allow_undefined_flag
23023
23024# Flag that enforces no undefined symbols.
23025no_undefined_flag=$lt_no_undefined_flag
23026
23027# Flag to hardcode \$libdir into a binary during linking.
23028# This must work even if \$libdir does not exist
23029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23030
23031# Whether we need a single "-rpath" flag with a separated argument.
23032hardcode_libdir_separator=$lt_hardcode_libdir_separator
23033
23034# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23035# DIR into the resulting binary.
23036hardcode_direct=$hardcode_direct
23037
23038# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23039# DIR into the resulting binary and the resulting library dependency is
23040# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23041# library is relocated.
23042hardcode_direct_absolute=$hardcode_direct_absolute
23043
23044# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23045# into the resulting binary.
23046hardcode_minus_L=$hardcode_minus_L
23047
23048# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23049# into the resulting binary.
23050hardcode_shlibpath_var=$hardcode_shlibpath_var
23051
23052# Set to "yes" if building a shared library automatically hardcodes DIR
23053# into the library and all subsequent libraries and executables linked
23054# against it.
23055hardcode_automatic=$hardcode_automatic
23056
23057# Set to yes if linker adds runtime paths of dependent libraries
23058# to runtime path list.
23059inherit_rpath=$inherit_rpath
23060
23061# Whether libtool must link a program against all its dependency libraries.
23062link_all_deplibs=$link_all_deplibs
23063
23064# Set to "yes" if exported symbols are required.
23065always_export_symbols=$always_export_symbols
23066
23067# The commands to list exported symbols.
23068export_symbols_cmds=$lt_export_symbols_cmds
23069
23070# Symbols that should not be listed in the preloaded symbols.
23071exclude_expsyms=$lt_exclude_expsyms
23072
23073# Symbols that must always be exported.
23074include_expsyms=$lt_include_expsyms
23075
23076# Commands necessary for linking programs (against libraries) with templates.
23077prelink_cmds=$lt_prelink_cmds
23078
23079# Commands necessary for finishing linking programs.
23080postlink_cmds=$lt_postlink_cmds
23081
23082# Specify filename containing input files.
23083file_list_spec=$lt_file_list_spec
23084
23085# How to hardcode a shared library path into an executable.
23086hardcode_action=$hardcode_action
23087
23088# The directories searched by this compiler when creating a shared library.
23089compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23090
23091# Dependencies to place before and after the objects being linked to
23092# create a shared library.
23093predep_objects=$lt_predep_objects
23094postdep_objects=$lt_postdep_objects
23095predeps=$lt_predeps
23096postdeps=$lt_postdeps
23097
23098# The library search path used internally by the compiler when linking
23099# a shared library.
23100compiler_lib_search_path=$lt_compiler_lib_search_path
23101
23102# ### END LIBTOOL CONFIG
23103
23104_LT_EOF
23105
23106    cat <<'_LT_EOF' >> "$cfgfile"
23107
23108# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23109
23110# func_munge_path_list VARIABLE PATH
23111# -----------------------------------
23112# VARIABLE is name of variable containing _space_ separated list of
23113# directories to be munged by the contents of PATH, which is string
23114# having a format:
23115# "DIR[:DIR]:"
23116#       string "DIR[ DIR]" will be prepended to VARIABLE
23117# ":DIR[:DIR]"
23118#       string "DIR[ DIR]" will be appended to VARIABLE
23119# "DIRP[:DIRP]::[DIRA:]DIRA"
23120#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23121#       "DIRA[ DIRA]" will be appended to VARIABLE
23122# "DIR[:DIR]"
23123#       VARIABLE will be replaced by "DIR[ DIR]"
23124func_munge_path_list ()
23125{
23126    case x$2 in
23127    x)
23128        ;;
23129    *:)
23130        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23131        ;;
23132    x:*)
23133        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23134        ;;
23135    *::*)
23136        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23137        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23138        ;;
23139    *)
23140        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23141        ;;
23142    esac
23143}
23144
23145
23146# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23147func_cc_basename ()
23148{
23149    for cc_temp in $*""; do
23150      case $cc_temp in
23151        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23152        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23153        \-*) ;;
23154        *) break;;
23155      esac
23156    done
23157    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23158}
23159
23160
23161# ### END FUNCTIONS SHARED WITH CONFIGURE
23162
23163_LT_EOF
23164
23165  case $host_os in
23166  aix3*)
23167    cat <<\_LT_EOF >> "$cfgfile"
23168# AIX sometimes has problems with the GCC collect2 program.  For some
23169# reason, if we set the COLLECT_NAMES environment variable, the problems
23170# vanish in a puff of smoke.
23171if test set != "${COLLECT_NAMES+set}"; then
23172  COLLECT_NAMES=
23173  export COLLECT_NAMES
23174fi
23175_LT_EOF
23176    ;;
23177  esac
23178
23179
23180
23181ltmain=$ac_aux_dir/ltmain.sh
23182
23183
23184  # We use sed instead of cat because bash on DJGPP gets confused if
23185  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23186  # text mode, it properly converts lines to CR/LF.  This bash problem
23187  # is reportedly fixed, but why not run on old versions too?
23188  $SED '$q' "$ltmain" >> "$cfgfile" \
23189     || (rm -f "$cfgfile"; exit 1)
23190
23191   mv -f "$cfgfile" "$ofile" ||
23192    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23193  chmod +x "$ofile"
23194
23195
23196    cat <<_LT_EOF >> "$ofile"
23197
23198# ### BEGIN LIBTOOL TAG CONFIG: CXX
23199
23200# The linker used to build libraries.
23201LD=$lt_LD_CXX
23202
23203# How to create reloadable object files.
23204reload_flag=$lt_reload_flag_CXX
23205reload_cmds=$lt_reload_cmds_CXX
23206
23207# Commands used to build an old-style archive.
23208old_archive_cmds=$lt_old_archive_cmds_CXX
23209
23210# A language specific compiler.
23211CC=$lt_compiler_CXX
23212
23213# Is the compiler the GNU compiler?
23214with_gcc=$GCC_CXX
23215
23216# Compiler flag to turn off builtin functions.
23217no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23218
23219# Additional compiler flags for building library objects.
23220pic_flag=$lt_lt_prog_compiler_pic_CXX
23221
23222# How to pass a linker flag through the compiler.
23223wl=$lt_lt_prog_compiler_wl_CXX
23224
23225# Compiler flag to prevent dynamic linking.
23226link_static_flag=$lt_lt_prog_compiler_static_CXX
23227
23228# Does compiler simultaneously support -c and -o options?
23229compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23230
23231# Whether or not to add -lc for building shared libraries.
23232build_libtool_need_lc=$archive_cmds_need_lc_CXX
23233
23234# Whether or not to disallow shared libs when runtime libs are static.
23235allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23236
23237# Compiler flag to allow reflexive dlopens.
23238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23239
23240# Compiler flag to generate shared objects directly from archives.
23241whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23242
23243# Whether the compiler copes with passing no objects directly.
23244compiler_needs_object=$lt_compiler_needs_object_CXX
23245
23246# Create an old-style archive from a shared archive.
23247old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23248
23249# Create a temporary old-style archive to link instead of a shared archive.
23250old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23251
23252# Commands used to build a shared archive.
23253archive_cmds=$lt_archive_cmds_CXX
23254archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23255
23256# Commands used to build a loadable module if different from building
23257# a shared archive.
23258module_cmds=$lt_module_cmds_CXX
23259module_expsym_cmds=$lt_module_expsym_cmds_CXX
23260
23261# Whether we are building with GNU ld or not.
23262with_gnu_ld=$lt_with_gnu_ld_CXX
23263
23264# Flag that allows shared libraries with undefined symbols to be built.
23265allow_undefined_flag=$lt_allow_undefined_flag_CXX
23266
23267# Flag that enforces no undefined symbols.
23268no_undefined_flag=$lt_no_undefined_flag_CXX
23269
23270# Flag to hardcode \$libdir into a binary during linking.
23271# This must work even if \$libdir does not exist
23272hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23273
23274# Whether we need a single "-rpath" flag with a separated argument.
23275hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23276
23277# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23278# DIR into the resulting binary.
23279hardcode_direct=$hardcode_direct_CXX
23280
23281# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23282# DIR into the resulting binary and the resulting library dependency is
23283# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23284# library is relocated.
23285hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23286
23287# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23288# into the resulting binary.
23289hardcode_minus_L=$hardcode_minus_L_CXX
23290
23291# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23292# into the resulting binary.
23293hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23294
23295# Set to "yes" if building a shared library automatically hardcodes DIR
23296# into the library and all subsequent libraries and executables linked
23297# against it.
23298hardcode_automatic=$hardcode_automatic_CXX
23299
23300# Set to yes if linker adds runtime paths of dependent libraries
23301# to runtime path list.
23302inherit_rpath=$inherit_rpath_CXX
23303
23304# Whether libtool must link a program against all its dependency libraries.
23305link_all_deplibs=$link_all_deplibs_CXX
23306
23307# Set to "yes" if exported symbols are required.
23308always_export_symbols=$always_export_symbols_CXX
23309
23310# The commands to list exported symbols.
23311export_symbols_cmds=$lt_export_symbols_cmds_CXX
23312
23313# Symbols that should not be listed in the preloaded symbols.
23314exclude_expsyms=$lt_exclude_expsyms_CXX
23315
23316# Symbols that must always be exported.
23317include_expsyms=$lt_include_expsyms_CXX
23318
23319# Commands necessary for linking programs (against libraries) with templates.
23320prelink_cmds=$lt_prelink_cmds_CXX
23321
23322# Commands necessary for finishing linking programs.
23323postlink_cmds=$lt_postlink_cmds_CXX
23324
23325# Specify filename containing input files.
23326file_list_spec=$lt_file_list_spec_CXX
23327
23328# How to hardcode a shared library path into an executable.
23329hardcode_action=$hardcode_action_CXX
23330
23331# The directories searched by this compiler when creating a shared library.
23332compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23333
23334# Dependencies to place before and after the objects being linked to
23335# create a shared library.
23336predep_objects=$lt_predep_objects_CXX
23337postdep_objects=$lt_postdep_objects_CXX
23338predeps=$lt_predeps_CXX
23339postdeps=$lt_postdeps_CXX
23340
23341# The library search path used internally by the compiler when linking
23342# a shared library.
23343compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23344
23345# ### END LIBTOOL TAG CONFIG: CXX
23346_LT_EOF
23347
23348 ;;
23349
23350  esac
23351done # for ac_tag
23352
23353
23354as_fn_exit 0
23355_ACEOF
23356ac_clean_files=$ac_clean_files_save
23357
23358test $ac_write_fail = 0 ||
23359  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23360
23361
23362# configure is writing to config.log, and then calls config.status.
23363# config.status does its own redirection, appending to config.log.
23364# Unfortunately, on DOS this fails, as config.log is still kept open
23365# by configure, so config.status won't be able to write to it; its
23366# output is simply discarded.  So we exec the FD to /dev/null,
23367# effectively closing config.log, so it can be properly (re)opened and
23368# appended to by config.status.  When coming back to configure, we
23369# need to make the FD available again.
23370if test "$no_create" != yes; then
23371  ac_cs_success=:
23372  ac_config_status_args=
23373  test "$silent" = yes &&
23374    ac_config_status_args="$ac_config_status_args --quiet"
23375  exec 5>/dev/null
23376  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23377  exec 5>>config.log
23378  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23379  # would make configure fail if this is the last instruction.
23380  $ac_cs_success || as_fn_exit 1
23381fi
23382if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23384printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23385fi
23386
23387
23388